| Index: content/common/gpu/media/v4l2_video_decode_accelerator.h
|
| diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h
|
| index 01714791442601555ef92bb99d66346b5ad89240..9eb04feb8fa203f46f9b6c13594ee91fc83002f2 100644
|
| --- a/content/common/gpu/media/v4l2_video_decode_accelerator.h
|
| +++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h
|
| @@ -275,6 +275,10 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
|
| bool CreateInputBuffers();
|
| bool CreateOutputBuffers();
|
|
|
| + // Query the hardware for a suitable format that we can use for
|
| + // importing into EGLImages for output, and set it.
|
| + bool SetupOutputFormat();
|
| +
|
| //
|
| // Methods run on child thread.
|
| //
|
| @@ -398,7 +402,8 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
|
| std::vector<OutputRecord> output_buffer_map_;
|
| // Required size of DPB for decoding.
|
| int output_dpb_size_;
|
| - // Stores the number of planes (i.e. separate memory buffers) for output.
|
| +
|
| + // Number of planes (i.e. separate memory buffers) for output.
|
| size_t output_planes_count_;
|
|
|
| // Pictures that are ready but not sent to PictureReady yet.
|
| @@ -434,6 +439,8 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
|
|
|
| // The codec we'll be decoding for.
|
| media::VideoCodecProfile video_profile_;
|
| + // Chosen output format.
|
| + uint32_t output_format_fourcc_;
|
|
|
| // The WeakPtrFactory for |weak_this_|.
|
| base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;
|
|
|