OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_GPU_MEDIA_VP9_PICTURE_H_ | 5 #ifndef MEDIA_GPU_VP9_PICTURE_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_VP9_PICTURE_H_ | 6 #define MEDIA_GPU_VP9_PICTURE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "media/filters/vp9_parser.h" | 12 #include "media/filters/vp9_parser.h" |
13 | 13 |
14 namespace content { | 14 namespace media { |
15 | 15 |
16 class V4L2VP9Picture; | 16 class V4L2VP9Picture; |
17 class VaapiVP9Picture; | 17 class VaapiVP9Picture; |
18 | 18 |
19 class VP9Picture : public base::RefCounted<VP9Picture> { | 19 class VP9Picture : public base::RefCounted<VP9Picture> { |
20 public: | 20 public: |
21 VP9Picture(); | 21 VP9Picture(); |
22 | 22 |
23 virtual V4L2VP9Picture* AsV4L2VP9Picture(); | 23 virtual V4L2VP9Picture* AsV4L2VP9Picture(); |
24 virtual VaapiVP9Picture* AsVaapiVP9Picture(); | 24 virtual VaapiVP9Picture* AsVaapiVP9Picture(); |
25 | 25 |
26 std::unique_ptr<media::Vp9FrameHeader> frame_hdr; | 26 std::unique_ptr<media::Vp9FrameHeader> frame_hdr; |
27 | 27 |
28 protected: | 28 protected: |
29 friend class base::RefCounted<VP9Picture>; | 29 friend class base::RefCounted<VP9Picture>; |
30 virtual ~VP9Picture(); | 30 virtual ~VP9Picture(); |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(VP9Picture); | 32 DISALLOW_COPY_AND_ASSIGN(VP9Picture); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace content | 35 } // namespace media |
36 | 36 |
37 #endif // CONTENT_COMMON_GPU_MEDIA_VP9_PICTURE_H_ | 37 #endif // MEDIA_GPU_VP9_PICTURE_H_ |
OLD | NEW |