Commit Graph

48 Commits

Author SHA1 Message Date
Hank Peng
00e89b89f0 Make sure the output resolution of encoder doesn't exceed the Openh264 capability 2016-06-30 22:32:30 -07:00
Hank Peng
d58ac746a0 Avoid a potential deadlock between the main thread and worker thread when encoding or decoding complete 2015-12-08 11:53:22 -08:00
HaiboZhu
f9d8e9a76e Merge pull request #2249 from huili2/remove_output_colorformat
remove data format in decoder API
2015-11-19 09:11:29 +08:00
huili2
dc2cbe4a22 remove API data format in decoder in 1.6 2015-11-17 13:58:57 +08:00
Hank Peng
baa69f3cd0 Shut down the encoder/decoder thread when Encoding/DecodingComplete is invoked, to avoid potential crash on Android 2015-11-16 16:56:11 -08:00
Hank Peng
e014b5ea43 Avoid to call any host API after Encoding/DecodingComplete(), to avoid potential crash in the browser 2015-11-16 16:55:58 -08:00
sijchen
33c378f7b7 change API for slicing part for easier usage (the UseLoadBalancing flag is still under working) 2015-11-10 09:50:06 -08:00
pengyanhai
b5f1460dd1 Tear down the OpenH264 encoder and decoder properly to avoid potential crash and memory leak 2015-11-09 11:52:11 -08:00
Hank Peng
955fce60a1 Never call GMPVideoDecoderCallback after DecodingComplete, to fix bug #1204588 in Bugzilla 2015-11-04 11:29:02 -08:00
Ethan Hugg
a4bddf417e Change GMP code to RefCount instead of deleting on enc/decode complete. 2015-07-06 09:48:50 -07:00
Ethan Hugg
195df08bb9 Merge pull request #1746 from kinetiknz/gmp-fixes
Various fixes for the GeckoMediaPlugin wrapper
2015-01-30 09:25:35 -08:00
Matthew Gregan
02365371e8 Initialize SVideoProperty struct completely. 2015-01-29 19:01:47 +13:00
Matthew Gregan
9ea6603071 Pass AVCC extra data to the decoder (in AnnexB format) in InitDecode. 2015-01-29 18:58:44 +13:00
Matthew Gregan
30d7352d03 Call InputExhausted when input has not produced a frame, call Error when
the decoder did not produce valid output, call DrainComplete in Drain
and FlushComplete in Flush.  Without these, the caller of the GMP may
end up waiting forever on a requested operation to complete.
2015-01-29 18:58:44 +13:00
ruil2
095bb83e77 add screen content type setting 2015-01-28 16:25:51 +08:00
ruil2
4b52d99d97 use the new no delay decoderframe interface instead of old one 2015-01-26 09:56:11 +08:00
ruil2
6afdf36ecc return decoder error 2015-01-23 15:48:13 +08:00
Martin Storsjö
4df6f9420f Check for an already defined nullptr macro
In addition to the existing compiler version/feature checks, also
check if there is such a macro.

This avoids warnings when building with Xcode 6.0.
2015-01-16 14:02:01 +02:00
Ethan Hugg
fc6ea7e5a8 gmp-openh264 check buffer length before we overwrite with start code. 2015-01-14 15:28:55 -08:00
Haibo Zhu
a53dc467f6 Change default EC mode to ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE 2014-12-29 22:17:38 -08:00
ruil2
128546b992 add maxnalsize control for gmp wrapper 2014-11-11 14:18:02 +08:00
ruil2
fe55d5a208 update timestamp unit as millisecond 2014-11-04 11:28:35 +08:00
ruil2
e061bb3fc9 pass each frame timestamp to codec 2014-11-03 17:05:38 +08:00
zhuiling
0fe477625c improve py, and change mk according to mk 2014-09-12 10:25:46 +08:00
huili2
e8fdd4cf75 setget_dataformat_ut 2014-07-28 18:41:58 -07:00
HaiboZhu
39d490b23d Merge pull request #1224 from huili2/ec_flag_modif
modify EC API name and remove useless flag
2014-07-28 13:06:23 +08:00
huili2
933c477717 modify EC API name and remove useless flag 2014-07-27 21:35:26 -07:00
Ethan Hugg
06d92c4ed1 Update for new GMP API changes in FF34 2014-07-24 05:38:21 -07:00
ruil2
78650363b8 add decoder return value 2014-07-22 09:43:18 +08:00
Ethan Hugg
3bc9b47465 Changed gmp-api branch to master and astyled the changes. 2014-07-11 08:42:51 -07:00
Ethan Hugg
1acb0fb89f Updated to match gmp-api changes for Firefox33 2014-07-11 08:29:02 -07:00
ruil2
45c2fff6b8 interface update 2014-07-09 15:41:04 +08:00
Ethan Hugg
e4a2fad99b Destroy input frame on GMP encode on error conditions. 2014-07-01 09:35:10 -07:00
ruil2
1fa1d2f1c1 Merge pull request #1049 from ethanhugg/frameleak
Fix for memory leak of input frames in encoder.
2014-07-01 08:51:52 +08:00
Ethan Hugg
8662eca2c3 Fix for memory leak of input frames in encoder. 2014-06-30 16:59:50 -07:00
Ethan Hugg
ce5268076c Revert "add max nal size setting in gmp wrapper"
This reverts commit a20c503d14.
2014-06-30 13:58:28 -07:00
huili2
dc3fae4477 astyle all 2014-06-25 18:50:41 -07:00
Ethan Hugg
f9abd70eeb Merge pull request #1008 from mstorsjo/plugin-build
Clean up minor aspects of the plugin build process
2014-06-25 09:30:01 -07:00
Martin Storsjö
0f1f158d8b Don't build an unused libmodule.a file
This also avoids another manual edit in module/targets.mk. Now
the file is completely autogenerated by the build/mktargets.sh
script, just as all the other targets.mk files.
2014-06-25 09:12:06 +03:00
ruil2
99cfac6aa0 add IDR processing in gmp wrapper 2014-06-25 14:11:58 +08:00
Martin Storsjö
b3f7896a51 Inject STL_INCLUDES via MODULE_INCLUDES for the gmp plugin
This avoids having to rely on manual modifications to targets.mk,
which are overwritten if the targets.mk files are regenerated
via the script.
2014-06-25 08:59:55 +03:00
Ethan Hugg
3f333b01fd Merge pull request #1004 from emannion/android_plugin
building plugin on Android
2014-06-24 08:44:04 -07:00
enda mannion
7c0b92e3f6 building plugin on Android 2014-06-24 12:32:09 +01:00
ruil2
3fefb08b34 add iSubSeqId to make the meaning clearly. 2014-06-23 16:18:59 +08:00
ruil2
a20c503d14 add max nal size setting in gmp wrapper 2014-06-23 12:47:52 +08:00
ruil2
9500d549ec astyle gmp-openh264.cpp 2014-06-23 11:08:07 +08:00
Enda
68987b0ab8 string include fix for 64bit windows build 2014-06-19 15:16:45 +01:00
Ethan Hugg
0bc0b71ef3 Rollup of Gecko Media Plugin patches 2014-06-17 19:54:16 -07:00