shithub: libvpx

Download patch

ref: 085882405000e462f0b4d44935e1fa9916df58c2
parent: 4a42d0918e199233723195ea0c9561a2343df1bd
parent: 48e1b2b97d88ca4e81f07999e0a9c8a1b225d0fa
author: Jerome Jiang <[email protected]>
date: Fri Jun 22 00:32:46 EDT 2018

Merge "Add capibility to configure decoder in encode tests."

--- a/test/encode_test_driver.cc
+++ b/test/encode_test_driver.cc
@@ -214,6 +214,7 @@
           case VPX_CODEC_CX_FRAME_PKT:
             has_cxdata = true;
             if (decoder.get() != NULL && DoDecode()) {
+              PreDecodeFrameHook(video, decoder.get());
               vpx_codec_err_t res_dec = decoder->DecodeFrame(
                   (const uint8_t *)pkt->data.frame.buf, pkt->data.frame.sz);
 
--- a/test/encode_test_driver.h
+++ b/test/encode_test_driver.h
@@ -232,6 +232,9 @@
   virtual void PreEncodeFrameHook(VideoSource * /*video*/,
                                   Encoder * /*encoder*/) {}
 
+  virtual void PreDecodeFrameHook(VideoSource * /*video*/,
+                                  Decoder * /*decoder*/) {}
+
   virtual void PostEncodeFrameHook(Encoder * /*encoder*/) {}
 
   // Hook to be called on every compressed data packet.