Commit Graph

459 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
b64a100da2 std:: prefixes for ReaderBase 2019-08-04 22:41:51 -04:00
FeRD (Frank Dana)
5746cd7b8b std:: prefixes for TextReader.h/.cpp 2019-08-04 22:39:13 -04:00
FeRD (Frank Dana)
cb567e44d0 std:: prefixes for AudioBufferSource/AudioDeviceInfo 2019-08-04 22:36:53 -04:00
FeRD (Frank Dana)
b6b832fb81 std:: prefixes for CacheBase/Disk/Memory 2019-08-04 22:34:24 -04:00
FeRD (Frank Dana)
0b6f9ff5bd AudioReaderSource.h: Remove 'using...std' 2019-08-04 22:25:36 -04:00
FeRD (Frank Dana)
b4b6223e89 std:: prefixes for FFmpegReader.h/.cpp 2019-08-04 22:23:33 -04:00
FeRD (Frank Dana)
e49039d568 std:: prefixes for Timeline.h/.cpp 2019-08-04 22:23:06 -04:00
FeRD (Frank Dana)
0dbbe942d2 Use std:: in WriterBase 2019-08-04 21:53:29 -04:00
Jonathan Thomas
0449b5b4eb Merge pull request #276 from ferdnyc/swig-Wall
SWIG: Warnings cleanup
2019-07-29 17:31:10 -05:00
Jonathan Thomas
12fce8040f Merge pull request #266 from ferdnyc/zmq-default-params
Default values for ZMQ logging calls
2019-07-29 16:30:22 -05:00
Jonathan Thomas
5f331e24df Merge pull request #265 from ferdnyc/catch-by-reference
Exceptions: catch-by-reference and other cleanup
2019-07-29 16:27:40 -05:00
Jonathan Thomas
f3354d997a Merge pull request #264 from ferdnyc/inline-av_err2str
FFmpegUtilities: inline av_make_error_string
2019-07-29 16:25:37 -05:00
Frank Dana
47d69779b6 Fix override syntax
Overrides go at the end of the declaration. Qt also has the `Q_DECL_OVERRIDE` preprocessor define, which expands to `override` only when building the code using C++11 or higher.
2019-07-16 12:28:00 -04:00
nick black
4a1d133da8 PlayerDemo: declare keyPressEvent() override 2019-07-16 10:37:45 -04:00
FeRD (Frank Dana)
0ac3720023 SWIG: Warnings cleanup
* Remove a SWIG pragma from Frame.h (gcc warns on it)
* Place the equivalent %warnfilter in the openshot.i files
* Set openshot.i PROPERTY GENERATED_COMPILE_OPTIONS with flags to
  disable warning spew in generated SWIG code, if -Wall is used

(Also, remove 'using namespace std' from Frame.h, and add std::
prefixes to necessary variables.)
2019-07-12 13:28:47 -04:00
Frank Dana
86e610bfc8 Fix parameter documentation for brightness
The range was listed as 0 – 100, but implemented as -1 – +1. Edited documentation to reflect reality.

Reported by @jeffski like a year and a half ago.
Fixes #71
2019-07-10 04:48:31 -04:00
FeRD (Frank Dana)
e1ffe0762f ZmqLogger.h: Correct default values for optional params 2019-07-03 15:24:45 -04:00
FeRD (Frank Dana)
75c9565f31 ZmqLogger.h: Remove using namespace std; add prefixes 2019-07-03 14:07:36 -04:00
FeRD (Frank Dana)
2dc2fffa45 ZmqLogger: default AppendDebugMethod()'s extra params
Give the AppendDebugMethod() declaration a set of default values for
all parameters after the first. (It uses `""` and `-1.0`, which are
what callers were passing in anyway.) This way, callers have the
_option_ to eschew this kind of thing:
```
ZmqLogger::Instance()->AppendDebugMethod("Message", "start", start,
"length", length, "", -1, "", -1, "", -1, "", -1);
```
instead, they can use the functionally equivalent:
```
ZmqLogger::Instance()->AppendDebugMethod("Message", "start", start,
"length", length);
```
Passing meaningless args is the compiler's job, not the programmer's.
2019-07-03 14:06:44 -04:00
FeRD (Frank Dana)
80765147b9 Exceptions.h: fixes for noexcept, unused vars, std::
Some fixes for `-Wall`-readiness:
* Removed `using namespace std;` from the header and
  added `std::` prefixes where needed (`std::string`)
* Replaced `throw ()` in declarations with `noexcept`,
  as `throw ()` is [deprecated in c++11][1]
* Several exception classes had a `file_path` member
  variable, despite never using it. Removed the
  unused class member.

[1]:<https://en.cppreference.com/w/cpp/language/noexcept_spec>
2019-07-03 13:12:02 -04:00
FeRD (Frank Dana)
db51ea1ee0 FFmpegUtilities: inline av_make_error_string
Avoids warnings about the function being unused, if compiling
with `-Wall`

Borrowed from:
222f145230/src/zm_ffmpeg.h (L241)
2019-07-03 03:33:52 -04:00
Jonathan Thomas
67e2ae4c1b Merge branch 'develop' into cmake-owns-version
# Conflicts:
#	CMakeLists.txt
2019-07-01 12:30:56 -05:00
Jonathan Thomas
376170d7dd Merging work from @ferdnyc, to move version info to CMake, and other misc Cmake improvements. This was the easiest way to resolve the merge conflict for me (to apply it locally and commit it). 2019-07-01 12:24:50 -05:00
Frank Dana
8f42a9ff07 Fix tabs-vs-spaces indent in Timeline.h 2019-06-26 02:07:02 -04:00
Chris Kirmse
572875b8d7 Merge remote-tracking branch 'upstream/develop' into develop 2019-06-24 10:00:22 -07:00