ruil2
44b048edd6
move trace related info to interface header
2014-06-11 17:05:40 +08:00
huili2
24553c2e4a
access violation for array
2014-06-10 22:28:30 -07:00
ruil2
84c1f3a4ee
Merge pull request #945 from mstorsjo/log-callback
...
Don't use a global trace level, allow user-specified trace callbacks
2014-06-11 13:25:48 +08:00
huili2
7574e5c1db
Merge pull request #953 from ruil2/codec_fix
...
fix a typo
2014-06-11 13:14:39 +08:00
Martin Storsjö
090229f8a1
Add public options for setting a log callback
2014-06-11 08:08:56 +03:00
Martin Storsjö
dc91e0958b
Integrate the lone function from logging.cpp into welsCodecTrace.cpp
2014-06-11 08:08:56 +03:00
Martin Storsjö
6e5f31214a
Add a method for overriding the logging function in welsCodecTrace
2014-06-11 08:08:56 +03:00
Martin Storsjö
ce8065fe68
Don't use global variables in welsCodecTrace
...
This allows actually honoring the requested log level
properly if there are multiple codec instances within
the same process.
2014-06-11 08:08:56 +03:00
Martin Storsjö
cb5ee6c239
Remove the global log callback function
...
Now all logging should use a non-null log context, allowing to
pass the messages to the right recipient.
2014-06-11 08:08:56 +03:00
Martin Storsjö
b2cf56c618
Set a log context in the decoder
2014-06-11 08:08:55 +03:00
Martin Storsjö
9583ac4d52
Set and use a proper log context in the encoder
2014-06-11 08:08:55 +03:00
Martin Storsjö
8bac9315e6
Expose a SLogContext from welsCodecTrace
2014-06-11 08:08:29 +03:00
Martin Storsjö
4e428ab020
Add a log context to the encoder and decoder contexts
...
This will allow setting non-global logging callbacks, that
are different for each encoder or decoder instance.
2014-06-11 08:08:29 +03:00
Martin Storsjö
c8b81b4239
Only keep one single trace function pointer in welsCodecTrace
2014-06-11 08:08:29 +03:00
Martin Storsjö
20e889fadb
Change CM_WELS_TRACE to take a plain string, not a format and variadic arguments
...
The format string was always "%s" anyway.
2014-06-11 08:08:29 +03:00
Martin Storsjö
5e22d5366e
Remove the unused level parameter to welsStderrLevelTrace
2014-06-11 08:08:29 +03:00
Martin Storsjö
cfc9367610
Remove WelsStderrSetTraceLevel
...
The logging level is checked in welsCodecTrace anyway.
Previously, error logging wasn't ever shown if the trace
level was set to WELS_LOG_ERROR (as it was by default),
since welsStderrLevelTrace required the message level to
be strictly lower than the trace level.
2014-06-11 08:08:29 +03:00
Martin Storsjö
90be3d8215
Don't treat log levels as a bitmask
...
All use of log levels in the library just do a numerical
greater-than comparison between the set log level and the
level of the current message.
2014-06-11 08:08:29 +03:00
Martin Storsjö
0628c9b190
Set the trace level in the decoder console app via a proper option
2014-06-11 08:08:29 +03:00
Martin Storsjö
573dad7d04
Add a decoder option for setting the trace level
2014-06-11 08:08:29 +03:00
Martin Storsjö
77c3594e08
Actually set the trace level in the encoder console app
2014-06-11 08:08:29 +03:00
Martin Storsjö
c4a59690da
Allow setting the trace level before initializing the encoder
2014-06-11 08:08:29 +03:00
Martin Storsjö
1bccef940c
Read the right command line arguments in h264dec.cpp
...
pArgV[i++] evalates to the same string as cmd (which is
pArgV[i]); we need to increment i before indexing into
pArgV again.
2014-06-11 08:08:29 +03:00
Martin Storsjö
4f1ea1c4f8
Remove some unused typedefs
2014-06-11 08:08:29 +03:00
ruil2
a79c54cde7
fix a typo
2014-06-11 12:04:59 +08:00
ruil2
587a8b20f4
Merge pull request #951 from dongzha/AddArm64UnitTestEP
...
Ignore a special case for expand chroma picture under X86_ASM to fix issue #947
2014-06-11 10:43:45 +08:00
huili2
6f0cdd14f8
enable no-delay decoding for MSlice
2014-06-10 19:25:57 -07:00
dongzhang
fa137a93e9
Ignore a special case for expand chroma picture under X86_ASM
2014-06-11 10:05:29 +08:00
Ethan Hugg
e388bfc371
Merge pull request #939 from mstorsjo/fix-msvc-build
...
Use the ENFORCE_STACK_ALIGN_2D instead of the compiler-specific align attribute
2014-06-10 20:04:47 +00:00
Ethan Hugg
5f65de0ef4
Merge pull request #944 from mstorsjo/ios-test
...
Build libgtest.a and libopenh264.a when doing "make test" for iOS
2014-06-10 11:04:57 -07:00
Ethan Hugg
1d679a8357
Merge pull request #940 from mstorsjo/minor-cleanup
...
Minor cleanups
2014-06-10 11:02:43 -07:00
Martin Storsjö
314f732333
Use the ENFORCE_STACK_ALIGN_2D instead of the compiler-specific align attribute
...
This fixes building with MSVC.
2014-06-10 17:06:18 +03:00
Martin Storsjö
65616c2c53
Use a more descriptive include guard in the welsEncoder/DecoderExt.h files
2014-06-10 17:06:14 +03:00
Martin Storsjö
e6ba730c59
Remove a misleading comment
...
This comment claimed to be a completely different file.
2014-06-10 17:06:13 +03:00
Martin Storsjö
1ea50e209a
Fix a typo, setttings -> settings
2014-06-10 17:06:13 +03:00
Martin Storsjö
1b3dca6b7d
Build libgtest.a and libopenh264.a when doing "make test" for iOS
2014-06-10 16:10:48 +03:00
ruil2
5cad8a60c9
Merge pull request #941 from mstorsjo/test-multilayer-bitrate
...
Set a sensible total bitrate when testing multilayer encoding
2014-06-10 16:53:44 +08:00
ruil2
f9b7746ea1
Merge pull request #942 from mstorsjo/log-cleanup
...
Clean up some of the logging/trace files
2014-06-10 16:52:54 +08:00
Martin Storsjö
19ea4244f5
Set a sensible total bitrate when testing multilayer encoding
...
The previous encoder parameters triggered warning logging in
the encoder.
2014-06-10 11:04:45 +03:00
Martin Storsjö
cc65a1d76c
Don't include a [ENCODER]: prefix in all logging
...
The same trace module is used for the decoder now as well.
2014-06-10 10:52:26 +03:00
Martin Storsjö
17fc6bd66e
Remove the unnecessary method WelsTraceModuleIsExist(), which always returned true
2014-06-10 10:52:26 +03:00
Martin Storsjö
d93488448e
Remove some commented out lines
2014-06-10 10:52:26 +03:00
Martin Storsjö
968d87045d
Remove an unnecessary local function
2014-06-10 10:52:26 +03:00
Martin Storsjö
40af75c19d
Remove the unnecessary WelsSet/GetLogLevel functions
...
Nothing actually used the variable that these functions
handled.
2014-06-10 10:52:06 +03:00
Martin Storsjö
ba1de16ac2
Make internal logging variables static
...
This avoids polluting the global namespace.
2014-06-10 09:28:45 +03:00
Martin Storsjö
ab4fe3fdf4
Remove an unused variable
2014-06-10 09:27:54 +03:00
dongzhang
0e0c8b5569
add arm 64 deblock code and Unit Test code
2014-06-10 11:23:51 +08:00
ruil2
eb889c95e0
Merge pull request #938 from dongzha/AddArm64UnitTestEP
...
add ARM32/64 Unit Test for Expand Picture
2014-06-10 11:12:49 +08:00
huili2
a6ebecd707
Merge pull request #936 from ruil2/trace_cleanup
...
cleanup trace module
2014-06-10 10:55:46 +08:00
huili2
ee4341892c
Merge pull request #937 from ruil2/enc_warnings_1
...
clean build warning related encoder
2014-06-10 10:55:31 +08:00