| Index: source/libvpx/test/decode_test_driver.h
 | 
| ===================================================================
 | 
| --- source/libvpx/test/decode_test_driver.h	(revision 240950)
 | 
| +++ source/libvpx/test/decode_test_driver.h	(working copy)
 | 
| @@ -76,6 +76,16 @@
 | 
|      return detail ? detail : vpx_codec_error(&decoder_);
 | 
|    }
 | 
|  
 | 
| +  // Passes the external frame buffer information to libvpx.
 | 
| +  vpx_codec_err_t SetExternalFrameBuffers(
 | 
| +      vpx_codec_frame_buffer_t *fb_list, int fb_count,
 | 
| +      vpx_realloc_frame_buffer_cb_fn_t cb, void *user_priv) {
 | 
| +    InitOnce();
 | 
| +    return vpx_codec_set_frame_buffers(&decoder_,
 | 
| +                                       fb_list, fb_count,
 | 
| +                                       cb, user_priv);
 | 
| +  }
 | 
| +
 | 
|   protected:
 | 
|    virtual const vpx_codec_iface_t* CodecInterface() const = 0;
 | 
|  
 | 
| @@ -101,6 +111,10 @@
 | 
|    // Main decoding loop
 | 
|    virtual void RunLoop(CompressedVideoSource *video);
 | 
|  
 | 
| +  // Hook to be called before decompressing every frame.
 | 
| +  virtual void PreDecodeFrameHook(const CompressedVideoSource& video,
 | 
| +                                  Decoder *decoder) {}
 | 
| +
 | 
|    // Hook to be called on every decompressed frame.
 | 
|    virtual void DecompressedFrameHook(const vpx_image_t& img,
 | 
|                                       const unsigned int frame_number) {}
 | 
| 
 |