Index: media/filters/vpx_video_decoder.h |
diff --git a/media/filters/vpx_video_decoder.h b/media/filters/vpx_video_decoder.h |
index cc02e89aad0b57027818b3f1702c8f8d5e9f2669..f55fd3108f17f5edb72a6905f3cec4e12330185d 100644 |
--- a/media/filters/vpx_video_decoder.h |
+++ b/media/filters/vpx_video_decoder.h |
@@ -14,6 +14,7 @@ |
#include "media/base/video_frame_pool.h" |
struct vpx_codec_ctx; |
+struct vpx_codec_frame_buffer; |
struct vpx_image; |
namespace base { |
@@ -41,6 +42,15 @@ class MEDIA_EXPORT VpxVideoDecoder : public VideoDecoder { |
virtual void Stop(const base::Closure& closure) OVERRIDE; |
virtual bool HasAlpha() const OVERRIDE; |
+ // Callback that will be called by libvpx if the frame buffer size needs to |
+ // increase. Parameters: |
+ // user_priv Data passed into libvpx (we pass NULL). |
+ // new_size Minimum size needed by libvpx to decompress the next frame. |
+ // fb Pointer to the frame buffer to update. |
+ // Returns VPX_CODEC_OK on success. Returns < 0 on failure. |
+ static int32 ReallocVP9FrameBuffer(void* user_priv, size_t new_size, |
+ vpx_codec_frame_buffer* fb); |
+ |
private: |
enum DecoderState { |
kUninitialized, |
@@ -83,6 +93,9 @@ class MEDIA_EXPORT VpxVideoDecoder : public VideoDecoder { |
VideoFramePool frame_pool_; |
+ // Frame Buffers used for VP9 decoding. |
+ vpx_codec_frame_buffer* frame_buffers_; |
acolwell GONE FROM CHROMIUM
2013/12/17 19:07:03
nit: Use scoped_vector<vpx_codec_frame_buffer>
vignesh
2013/12/18 18:01:02
not applicable anymore. Done.
|
+ |
DISALLOW_COPY_AND_ASSIGN(VpxVideoDecoder); |
}; |