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_ACCELERATED_VIDEO_DECODER_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ACCELERATED_VIDEO_DECODER_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_ACCELERATED_VIDEO_DECODER_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ACCELERATED_VIDEO_DECODER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // An AcceleratedVideoDecoder is a video decoder that requires support from an | 14 // An AcceleratedVideoDecoder is a video decoder that requires support from an |
15 // external accelerator (typically a hardware accelerator) to partially offload | 15 // external accelerator (typically a hardware accelerator) to partially offload |
16 // the decode process after parsing stream headers, and performing reference | 16 // the decode process after parsing stream headers, and performing reference |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // To be used after Decode() returns kNeedNewSurfaces. | 53 // To be used after Decode() returns kNeedNewSurfaces. |
54 virtual gfx::Size GetPicSize() const = 0; | 54 virtual gfx::Size GetPicSize() const = 0; |
55 virtual size_t GetRequiredNumOfPictures() const = 0; | 55 virtual size_t GetRequiredNumOfPictures() const = 0; |
56 | 56 |
57 private: | 57 private: |
58 DISALLOW_COPY_AND_ASSIGN(AcceleratedVideoDecoder); | 58 DISALLOW_COPY_AND_ASSIGN(AcceleratedVideoDecoder); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace content | 61 } // namespace content |
62 | 62 |
63 #endif // CONTENT_COMMON_GPU_MEDIA_ACCELERATED_VIDEO_DECODER_ | 63 #endif // CONTENT_COMMON_GPU_MEDIA_ACCELERATED_VIDEO_DECODER_H_ |
OLD | NEW |