OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_ | |
6 #define UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_ | |
7 | |
8 #include "media/types/video_decode_accelerator_impl.h" | |
9 | |
10 namespace media { | |
11 class BitstreamBuffer; | |
12 class PictureBuffer; | |
13 } | |
14 | |
15 namespace ui { | |
16 // Interface to perform different media video decoding implementations. | |
17 class VideoDecodeFactoryOzone | |
18 : public media::VideoDecodeAcceleratorImpl { | |
Ami GONE FROM CHROMIUM
2014/05/07 22:51:27
Per another comment earlier in the reviewlog, havi
Ami GONE FROM CHROMIUM
2014/05/07 22:51:27
I don't think you need the factory to inherit from
vignatti (out of this project)
2014/06/02 19:21:42
Done.
vignatti (out of this project)
2014/06/02 19:21:42
Done.
| |
19 public: | |
20 VideoDecodeFactoryOzone(); | |
21 virtual ~VideoDecodeFactoryOzone(); | |
22 | |
23 // Returns the instance | |
24 static VideoDecodeFactoryOzone* GetInstance(); | |
25 | |
26 // Sets the implementation delegate. Ownership is retained by the caller. | |
27 static void SetInstance(VideoDecodeFactoryOzone* impl); | |
28 | |
29 // media::VideoDecodeAccelerator implementation. | |
30 virtual bool Initialize(media::VideoCodecProfile profile, | |
31 Client* client); | |
32 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer); | |
33 virtual void AssignPictureBuffers( | |
34 const std::vector<media::PictureBuffer>& buffers); | |
35 virtual void ReusePictureBuffer(int32 picture_buffer_id); | |
36 virtual void Flush(); | |
37 virtual void Reset(); | |
38 virtual void Destroy(); | |
39 | |
40 private: | |
41 static VideoDecodeFactoryOzone* impl_; // not owned | |
42 }; | |
43 | |
44 } // namespace ui | |
45 | |
46 #endif // UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_ | |
OLD | NEW |