Martin Storsjö
3422d3b976
Declare the g_strCodecVer variable as const
...
Previously, the variable itself wasn't const (which meant that
it could be set to point to another const string instead).
By declaring it as const, gcc doesn't warn about it being unused,
and we can get rid of a workaround.
2015-01-04 21:00:23 +02:00
Martin Storsjö
50dc4757e4
Add a new public function WelsGetCodecVersionEx
...
This function doesn't return a struct, but fills in a struct via
a provided pointer.
The ABI of returning a struct is different between MSVC and mingw.
This allows using the same function from mingw, even though the DLL
has been built with MSVC.
2015-01-03 01:09:04 +02:00
ruil2
0babd8d7ab
add profile and level checking in ParamValidation
2014-12-24 15:40:30 +08:00
Martin Storsjö
7411469e1d
Avoid a warning about an unused static variable
2014-12-19 11:06:51 +02:00
Martin Storsjö
8bfeae27a4
Add a public function for getting the codec version
...
If the codec library is loaded dynamically, it may be necessary that
the loaded library actually matches the version that was used when
it was built, to avoid issues due to ABI differences. Therefore add
a public function to allow getting the version of the currently
loaded library.
2014-12-18 13:20:33 +02:00
Sijia Chen
1b26bd4b88
put this file into good format
2014-12-17 14:15:10 +08:00
Sijia Chen
3c08f04993
add fix for protection of wrong reading if input is invalid
2014-12-17 14:14:23 +08:00
lyao2
ca2436bb5e
add average QP in statistics
2014-12-16 10:32:44 +08:00
huili2
3e57fdc448
add this log for codec
2014-12-10 22:15:32 -08:00
ruil2
5ba9e409ba
update maxbitrate to control bitrate vary range
2014-12-11 10:56:58 +08:00
Martin Storsjö
7da17b5abd
Log the encoder version later in the initialization
...
Previously, the encoder logging was done in InitEncoder(),
which is called from the constructor. Therefore, it was impossible
to override the log level, to silence this message.
2014-12-10 14:39:08 +02:00
ruil2
56c895ffb4
1. should not set WELS_LOG_ERROR level in encoder initilization.
...
2.fix UT bug
2014-12-05 17:08:00 +08:00
sijchen
607d814e0f
Merge pull request #1577 from ruil2/set_param
...
modify log info(remove unuseful log and add some new logs)
2014-12-01 11:36:24 -08:00
sijchen
8c7aaa8421
Merge pull request #1568 from ruil2/cleanup
...
add iBitsVaryPercentage parameters to control bitrate
2014-11-30 21:39:39 -08:00
ruil2
a100fb8031
modify log info(remove unuseful log and add some new logs)
2014-12-01 12:13:58 +08:00
ruil2
8028fe7130
add SetOption(ENCODER_OPTION_SVC_ENCODE_PARAM_BASE,&base) for encoder
2014-12-01 10:35:32 +08:00
ruil2
30820fd8b5
use iBitsVaryPercentage passed by the app instead of the macro
2014-12-01 09:16:35 +08:00
ruil2
7c0369da23
add iBitsVaryPercentage parameters to control bitrate
2014-11-27 15:55:48 +08:00
sijchen
f48b2e55ba
Merge pull request #1553 from ruil2/max2
...
add maxbitrate verification
2014-11-25 09:14:39 -08:00
Martin Storsjö
1ff9de36ce
Explicitly cast int64_t to float
...
This fixes warnings when bulding with MSVC.
2014-11-25 14:28:20 +02:00
ruil2
d543ae89db
add maxbitrate verification
2014-11-25 17:12:06 +08:00
Sijia Chen
cef85118b5
add parentness
2014-11-24 22:44:06 -08:00
Sijia Chen
3be7e90221
add one more conditin for statistics printing to avoid timestamp problem
2014-11-24 16:11:52 -08:00
Sijia Chen
b56b8725fc
add total length in encoder output and complete most of the statistis calculation
2014-11-13 13:56:58 -08:00
Sijia Chen
cd5928d397
fix a calculation of fAverageFrameRate
2014-11-11 16:12:38 -08:00
sijchen
dbd4330508
Merge pull request #1482 from ruil2/cabac_refine
...
add setoption trace
2014-11-03 15:39:45 +08:00
ruil2
c19db25043
add setoption trace
2014-11-03 10:37:07 +08:00
Martin Storsjö
655f3b43b6
Add a cast when converting from int64_t to float
...
This avoids a warning when building with MSVC.
2014-10-30 11:07:22 +02:00
Sijia Chen
6a2a4efef6
fix names to keep consistent of style
...
improve UT to cover more cases under GetStatistics
2014-10-24 14:39:50 +08:00
sijchen
273e1227a5
Merge pull request #1440 from shihuade/APIUTV1.4
...
fix bug in set option return value
2014-10-24 09:00:56 +08:00
Martin Storsjö
57aae73d4c
Add casts to avoid warnings about comparison between signed and unsigned
2014-10-23 14:20:38 +03:00
huashi
8d5863a170
fix bug in set option return value
2014-10-23 17:51:35 +08:00
Sijia Chen
a765197b73
add interface and basic implementaion and UT for EncoderStatistics
2014-10-22 11:35:17 +08:00
Sijia Chen
cbe7891300
add clip in ParamTranscode for input para checking
2014-10-21 16:00:46 +08:00
Sijia Chen
68fed53687
add checking of frame rate and temporal layer setting for encoder input param
...
Reviewed at https://rbcommons.com/s/OpenH264/r/836/
2014-09-30 17:54:24 +08:00
Sijia Chen
147c9052b8
add reading of the new option
2014-09-23 18:04:24 +08:00
Sijia Chen
05684744c9
remove duplicate constant macro and modify the num_ref check accordingly
2014-09-17 18:10:27 +08:00
huili2
684c42536d
Merge pull request #1330 from ruil2/delivery_status
...
modify delivery status interface
2014-09-05 13:32:52 +08:00
ruil2
4fc144b698
Merge pull request #1333 from huili2/print_ver_master
...
modify version info in enc/dec
2014-09-05 13:23:49 +08:00
huili2
1b1ea2b9ef
modify version info in enc/dec
2014-09-04 21:55:06 -07:00
ruil2
2f041c7a4b
modify delivery status interface
2014-09-05 10:57:51 +08:00
sijchen
61926f208c
add a setoption for further setting
2014-09-04 14:24:14 +08:00
ruil2
7e8cde055f
add UT for LTR setopton and fix crash issue
2014-09-03 13:28:14 +08:00
ruil2
cafb91a66a
remove redundent lines
2014-08-28 11:24:28 +08:00
ruil2
cebf586c3a
update trace output
2014-08-28 11:04:25 +08:00
ruil2
40e952f981
remove "\n" which shoudl be added by the trace sink
2014-08-27 14:34:05 +08:00
ruil2
9b5902b94a
update the number of reference when ltr changes
2014-08-27 12:19:59 +08:00
ruil2
d6f0dee0c4
add more LTR parameters
2014-08-26 11:06:30 +08:00
ruil2
f7cd6e7aad
use WelsEnc namespace instead of WelsSVCEnc
2014-08-11 16:08:49 +08:00
ruil2
059e19074a
add parameter verification
2014-08-01 12:39:29 +08:00