summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2022-05-06add some missing realloc checksJames Zern
Change-Id: I0fd1e094085c18b1d9a32333e876c2affeb6de23
2022-05-03vp9 svc sample: set fps from y4m fileJerome Jiang
Change-Id: I082c0409910da4cda5bf852b20ffa11ba5c2ebd6
2022-04-28examples: add missing argv_dup alloc checksJames Zern
Change-Id: Ia3080cbf50071d599c7168a20466392a963f101a
2022-02-08rtc-vp9: Fix intra-only for bypass modeMarco Paniconi
Allow intra-only frame in svc to also work in bypass (flexible-svc) mode. Added unittest for the flexible svc case. And fix the gld_fb_idx for (SL0, TL1) in bypass/flexible mode pattern in the sample encoder: force it to be 0 (same as lst_fb_idx), since the slot is unused on SL0. Change-Id: Iada9d1b052e470a0d5d25220809ad0c87cd46268
2022-01-31Merge "Use background segmentation mask with ROI" into mainJerome Jiang
2022-01-27Use background segmentation mask with ROIJerome Jiang
RTC sample encoder vpx_temporal_svc_encoder can take mask files as input when ROI_MAP is set to 1. Uses ROI and segmentation of vp9 to skip background encoding when source_sad is low and the correspond block in previous frame is also skipped. Change-Id: I8590e6f9a88cecfa1d7f375d4cc480f0f2af87b6
2021-12-02clear -Wextra-semi/-Wextra-semi-stmt warningsJames Zern
Bug: chromium:1257449 Change-Id: Ia9aafccc09b611521d4a7aedfe3723393a840c62
2021-11-02tools_common.h: add VPX_TOOLS_FORMAT_PRINTFJames Zern
and use it to set the format attribute for printf like functions. this allows the examples to be built with -Wformat-nonliteral without producing warnings. Bug: webm:1744 Change-Id: I26b4c41c9a42790053b1ae0e4a678af8f2cd1d82 Fixed: webm:1744
2021-03-12vp9-rtc: Add postencode_drop control to sample encoderMarco Paniconi
Change-Id: I1c989f26b0a7b9239adf37df8d96776f33b89a8b
2021-03-04Use -std=gnu++11 instead of -std=c++11Jerome Jiang
Cygwin and msys2 have stricter compliance requirement over standard c headers. Bug: webm:1708 Change-Id: I676b1227b9dd304149e50016468df0f057c6a78f
2021-02-18Remove two pass related code from svc sample encoder.Jerome Jiang
SVC sample encoder is only supposed to be used for realtime SVC. Bug: webm:1705 Change-Id: I5c0c3491732db3e148073aaf7f90ee8d662b57b5
2021-02-03Fix to vpx_temporal_svc_encoderMarco Paniconi
Avoid division by zero. Change-Id: Icf3f40aa32fe30f42c46417a1437ebe235e3ac96
2020-10-02Add codec control to disable loopfilter for vp9Jerome Jiang
Change-Id: I6d693e84570c353d20ec314acea43363956c0590
2020-08-25vp9-rtc: Add control to disable maxq on overshootMarco Paniconi
Add encoder control to disable feature to increase Q on overshoot detection, for CBR. Default (no usage of the control) means the feature is internally enabled. Add the control to the sample encoders, but keep it disabled as default (set to 0, so feature is on). Change-Id: Ia2237bc4aaea9770e5080dab20bfff9e3fd09199
2020-08-17rtc-vp9: Fix to rcstats in vp9_spatial_svc_encoderMarco Paniconi
Fixes the rcstats for case when #spatial_layers = 1. Change-Id: Ie28d99852033307bc4c69c7e738e1d4cab4e8cf5
2020-05-11Merge changes Ib55d46e9,I4a4feeabJames Zern
* changes: decode_api_test: add negative test for vpx_codec_error_detail examples: use die() on dec/enc_init() failure
2020-05-07examples: use die() on dec/enc_init() failureJames Zern
rather than die_codec(). calling any api functions with an uninitialized codec context is undefined. this avoids a crash in a call to vpx_codec_error_detail(). BUG=webm:1688 Change-Id: I4a4feeabc1cafa44c8d2f24587fad79e313dba6d
2020-05-06vpx_dec_fuzzer: add coverage for VP9D_SET_LOOP_FILTER_OPTJames Zern
BUG=chromium:1076203 Change-Id: Ib3339a9fd7d940b69a5ef89b3fbf7f4fdeaac006
2019-11-06example: Enable row-mt on low res and speed 7 8.Jerome Jiang
Verified row-mt works for low res and speed 7 8. Change-Id: I1e7f260fe5cda40a2da80ca47692a5864712ec30
2019-06-14vpx_dec_fuzzer: Remove fmemopen dependencyHarish Mahendrakar
fmemopen is not preferred during fuzzing. Removed all file operations. Removed need for allocating a different input buffer. data buffer is appropriately incremented and passed directly to decoder This will also test input being sent in an unaligned buffer to the library. Removed read_frame function and did the required parsing inline. Change-Id: I32829b0149dba9339f2e8bb4c0249a4987a630c7
2019-06-12vpx_dec_fuzzer: Add -fsanitize=fuzzer-no-linkHarish Mahendrakar
Updated build instructions for vpx_dec_fuzzer to include -fsanitize=fuzzer-no-link while configuring library Change-Id: Id158256aa1cfe3d847720e8558cb5998ad4fd777
2019-04-10Revert "Disable mismatch check on vp9 svc examples."Jerome Jiang
This reverts commit a1857812ea6a727d9bda91b852f7b8a9f506ac3f. Change-Id: Ib33f49af7631c9a6917539a58c447624df325f7f
2019-04-05svc_encodeframe: check strdup returnJames Zern
BUG=webm:1616 Change-Id: Ic9de589154485ad2de30b0b044991e1f9b852d74
2019-03-27Disable mismatch check on vp9 svc examples.Jerome Jiang
Change-Id: I49902a750758ba0ffe733be9b1efd0cdea44f936
2019-03-21fix redundant cast in examples.Jerome Jiang
Change-Id: I84280de82053f9056bda9d813baa6165ca9bcd1e
2019-03-14Merge "Enclose macro arguments in parentheses"Jerome Jiang
2019-03-14Enclose macro arguments in parenthesesJerome Jiang
BUG=webm:1606 Change-Id: I661485b860243c95b6450035dbac77b0dd4d9ff4
2019-03-11Merge "vp9: map speed > 9 to speed 9."Jerome Jiang
2019-03-08Merge "vp9 svc: add simulcast mode when inter-layer pred is off."Jerome Jiang
2019-03-07vp9 svc: add simulcast mode when inter-layer pred is off.Jerome Jiang
Force all upper spatial layers to be key frame if the base layer is key. Mode only works for inter-layer pred=off and non-flexible mode. Add flag to write out bitstream for each spatial layer in example encoder. Change-Id: I5db4543cf8697544ae49464f2157e692640d5256
2019-03-07vp9-svc: Fix to sample encoder for 1 layerMarco Paniconi
Fix to vp9_spatial_svc_encoder to run case of 1 spatial, 1 temporal layer. Change-Id: I93675c3c4bd2c55cb1c971679588525a8e5b889d
2019-03-05vp9: map speed > 9 to speed 9.Jerome Jiang
Report warning in example encoder. Change-Id: Iec4cdffce9faa65241756fbdac498214c8b93cc1
2019-03-05vp9 svc example: use CONFIG_VP9_DECODER guarding decoding.Jerome Jiang
Change-Id: I91f2955f2936303c3e09e9b2dc60e32305ebae17
2019-02-11Test decode and find mismatch in vp9 svc example encoder.Jerome Jiang
Also write it to opsnr.stt when internal stats is enabled. Removed some redundant code in vpxenc.c and vp9cx_set_ref.c Change-Id: I3700137fff0be92a23e4ab75713db72da1dc4076
2019-02-11refactor vp9 svc example encoder.Jerome Jiang
Put rc stats related code into a separate function. Change-Id: I11808bb947079b5fd9e53dfa5894bf227ed0c4c6
2019-02-08vp9 svc example encoder accept -o (--output) for output.Jerome Jiang
Make it same as vpxenc so easier to run on borg. Change-Id: Ie19db6e828ced773cba9aef715c8fbd0f4715b27
2019-02-07Merge "vp9: Write height and width to ivf header in SVC example encoder."Jerome Jiang
2019-02-07vp9: Write height and width to ivf header in SVC example encoder.Jerome Jiang
Write height and width of top layer to ivf header in SVC. vpxdec Can't decode it correctly when output is y4m. Change-Id: I9b2f1d54696611a30e252bdfd182897d191d92b5
2019-02-06Merge "No vpx_img_alloc for y4m input in example encoders."Jerome Jiang
2019-02-05No vpx_img_alloc for y4m input in example encoders.Jerome Jiang
Y4M reader has its own allocation. Change-Id: Ie02440a183126072ea773860f4e9dc9b412772f5
2019-02-01vpx_dec_fuzzer: Remove dependency on tools_common.cHarish Mahendrakar
Instead of calling get_vpx_decoder_by_name(), derive decoder interface directly. This will avoid dependecy on tools_common and hence any potential updates needed to build fuzzer, when tools_common uses functions defined in a different file With this dependency removed, fuzzer no longer needs to enable examples when building vpx_dec_fuzzer binaries Change-Id: I05753edf041b4bc742a6dc06e809a8a2929d379f
2019-01-30add y4m support to vp9 example encoders.Jerome Jiang
vp9_spatial_svc_encoder and vpx_temporal_svc_encoder. Change-Id: I8dfa1dfad83c83a26ddac4e7c57b5f1ff161e588
2018-12-21svc examples: resolve missing declarationsJohann
BUG=webm:1584 Change-Id: Icb7ba5bb5a6d460c4d0419b76ee54af461ca4a52
2018-11-14vpx_dec_fuzzer: Unify single and multi-thread testsHarish Mahendrakar
As thread count is now randomized, serial and threaded modes can be combined to a single binary. With this change, threads takes values between 1 to 64 and tests both single thread and multi-thread variants of the decoders Change-Id: I6dd2a3aa03bff9c0e2c126843b543d46892be696
2018-11-14Added libFuzzer plugin to test decodersHarish Mahendrakar
vpx_dec_fuzzer.cc can be built with clang++ to generate fuzzer binary Build instructions are part of the file Change-Id: I19ba0bd49b236e27b27e81a83f6de59f15bdc994
2018-09-15cosmetics: normalize include guardsJames Zern
use the recommended format [1] of: <PROJECT>_<PATH>_<FILE>_H_ [1] https://google.github.io/styleguide/cppguide.html#The__define_Guard "All header files should have #define guards to prevent multiple inclusion. The format of the symbol name should be <PROJECT>_<PATH>_<FILE>_H_." Change-Id: I2e8ab0b32fb23c30fa43cff5fec12d043c0d2037
2018-09-05vp9-svc: Allow for setting framerate per spatial layer.Marco Paniconi
Add duration to set_svc_ref_frame_config. BUG=b/113346831 Change-Id: I63613aed6b1183f98d04831600a6bdd645c740df
2018-08-30vp9: Fix rate control stats for bypass mode in sample encoderMarco Paniconi
Allow rate control stats to work for bypass mode in vp9_spatial_svc_encoder.c Change-Id: I66764a006a73b1fd13c07b4fc4e0c88b2bb2a035
2018-08-27vp9-svc: Change default pattern for bypass modeMarco Paniconi
For sample encoder: keep default pattern for bypass mode to example#0. Change-Id: Icddc4600d750a23a44b26517a327b546fd8eb412
2018-08-27Merge "SVC: extend api to specify temporal id for each spatial layers."Jerome Jiang