aboutsummaryrefslogtreecommitdiff
path: root/components/include/v4l2_codec2/components/VideoDecoder.h
diff options
context:
space:
mode:
authorChih-Yu Huang <akahuang@google.com>2020-05-27 17:52:33 +0900
committerChih-Yu Huang <akahuang@google.com>2020-07-09 19:32:13 +0900
commitbcc6ef637a5ce65d39e501c0a44f1f7fd770e591 (patch)
tree192ca6d9acfe6db72320776d629afd910167b4fb /components/include/v4l2_codec2/components/VideoDecoder.h
parent9b6dce4135b07daf957bd1f97b1e82e658bef267 (diff)
downloadv4l2_codec2-bcc6ef637a5ce65d39e501c0a44f1f7fd770e591.tar.gz
V4L2DecodeComponent: Support protected playback.
In this CL, V4L2DecodeComponent supports the protected playback by using C2VdaBqBlockPool. To use C2VdaBqBlockPool, there are 2 specific requirements compared to a normal C2BlockPool: 1. Call C2VdaBqBlockPool::requestNewBufferSet() before fetching blocks 2. Call MarkBlockPoolDataAsShared() after creating C2ConstGraphicBlock Bug: 153608694 Test: Run ExoPlayer Demo apk: Widevine dash policy tests Change-Id: Idce298d13cb2fb7f9dd88ae43cd4c8f0cb18dffb
Diffstat (limited to 'components/include/v4l2_codec2/components/VideoDecoder.h')
-rw-r--r--components/include/v4l2_codec2/components/VideoDecoder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/include/v4l2_codec2/components/VideoDecoder.h b/components/include/v4l2_codec2/components/VideoDecoder.h
index 9616106..41517b3 100644
--- a/components/include/v4l2_codec2/components/VideoDecoder.h
+++ b/components/include/v4l2_codec2/components/VideoDecoder.h
@@ -38,8 +38,9 @@ public:
const size_t size;
};
- using GetPoolCB = base::RepeatingCallback<void(
- std::unique_ptr<VideoFramePool>*, const media::Size& size, HalPixelFormat pixelFormat)>;
+ using GetPoolCB =
+ base::RepeatingCallback<void(std::unique_ptr<VideoFramePool>*, const media::Size& size,
+ HalPixelFormat pixelFormat, size_t numOutputBuffers)>;
using DecodeCB = base::OnceCallback<void(DecodeStatus)>;
using OutputCB = base::RepeatingCallback<void(std::unique_ptr<VideoFrame>)>;
using ErrorCB = base::RepeatingCallback<void()>;