X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Flibvpx%2Fsource%2Flibvpx%2Ftest%2Fencode_test_driver.h;h=9526068dae5b187a266e125fdb9a3921ecb0e679;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=8017a2a06451ce4b050be7a4bae2e8347fdf9a0c;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/libvpx/source/libvpx/test/encode_test_driver.h b/src/third_party/libvpx/source/libvpx/test/encode_test_driver.h index 8017a2a..9526068 100644 --- a/src/third_party/libvpx/source/libvpx/test/encode_test_driver.h +++ b/src/third_party/libvpx/source/libvpx/test/encode_test_driver.h @@ -16,6 +16,9 @@ #include "./vpx_config.h" #include "third_party/googletest/src/include/gtest/gtest.h" #include "vpx/vpx_encoder.h" +#if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER +#include "vpx/vp8cx.h" +#endif namespace libvpx_test { @@ -128,6 +131,13 @@ class Encoder { ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); } +#if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER + void Control(int ctrl_id, vpx_active_map_t *arg) { + const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); + ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); + } +#endif + void set_deadline(unsigned long deadline) { deadline_ = deadline; }