Chromium Code Reviews| Index: media/video/video_decode_accelerator.h |
| diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h |
| index e2bcdf64855fdf3455fc0a3b73ae2b59c2e928e6..5cd16dd99fadd6d6ce534bf4fc20791faf822fc1 100644 |
| --- a/media/video/video_decode_accelerator.h |
| +++ b/media/video/video_decode_accelerator.h |
| @@ -53,6 +53,19 @@ class MEDIA_EXPORT VideoDecodeAccelerator { |
| LARGEST_ERROR_ENUM, |
| }; |
| + // Parameters required for the Initialize(). |
| + struct MEDIA_EXPORT StreamParameters { |
|
xhwang
2015/12/02 06:48:18
IMHO "Parameters" doesn't add any value to the nam
liberato (no reviews please)
2015/12/02 16:18:50
i don't think that VDA::Config will always be a su
Tima Vaisburd
2015/12/02 18:02:15
(1) Not every method calling Initialize() has VDC
liberato (no reviews please)
2015/12/02 18:29:47
(1) good question -- i don't know. "whole VDC" do
xhwang
2015/12/02 18:58:34
I am okay with just renaming the current StreamPar
Tima Vaisburd
2015/12/02 22:56:58
Done.
Tima Vaisburd
2015/12/02 22:56:58
This is what I ended up doing in this PS, although
sandersd (OOO until July 31)
2015/12/02 23:33:27
I wanted to add my late $0.02 here because this in
|
| + StreamParameters(); |
| + StreamParameters(VideoCodecProfile profile); |
| + StreamParameters(const VideoDecoderConfig& config); |
| + |
| + // |profile| combines the information about the codec and its profile. |
| + VideoCodecProfile profile; |
| + |
| + // The flag indicating whether the stream is encrypted. |
| + bool is_encrypted; |
|
xhwang
2015/12/02 06:48:18
Having multiple constructors is actually the perfe
liberato (no reviews please)
2015/12/02 16:18:50
+1
Tima Vaisburd
2015/12/02 18:02:15
Acknowledged.
Tima Vaisburd
2015/12/02 22:56:58
Done.
|
| + }; |
| + |
| // Interface for collaborating with picture interface to provide memory for |
| // output picture and blitting them. These callbacks will not be made unless |
| // Initialize() has returned successfully. |
| @@ -111,10 +124,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator { |
| // attached can we start to decode. |
| // |
| // Parameters: |
| - // |profile| is the video stream's format profile. |
| + // |params| are the initialization parameters. |
| // |client| is the client of this video decoder. Does not take ownership of |
| // |client| which must be valid until Destroy() is called. |
| - virtual bool Initialize(VideoCodecProfile profile, Client* client) = 0; |
| + virtual bool Initialize(const StreamParameters& params, Client* client) = 0; |
| // Sets a CDM to be used by the decoder to decode encrypted buffers. |
| // Client::NotifyCdmAttached() will then be called to indicate whether the CDM |