Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Side by Side Diff: chrome/gpu/arc_video_accelerator.h

Issue 2151183002: Skip posting DecodeTask of resolution changing while resetting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable VP9 decoding Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/gpu/arc_gpu_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 5 #ifndef CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace arc { 13 namespace arc {
14 14
15 enum HalPixelFormatExtension { 15 enum HalPixelFormatExtension {
16 // The pixel formats defined in Android but are used here. They are defined 16 // The pixel formats defined in Android but are used here. They are defined
17 // in "system/core/include/system/graphics.h" 17 // in "system/core/include/system/graphics.h"
18 HAL_PIXEL_FORMAT_BGRA_8888 = 5, 18 HAL_PIXEL_FORMAT_BGRA_8888 = 5,
19 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, 19 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23,
20 20
21 // The following formats are not defined in Android, but used in 21 // The following formats are not defined in Android, but used in
22 // ArcVideoAccelerator to identify the input format. 22 // ArcVideoAccelerator to identify the input format.
23 HAL_PIXEL_FORMAT_H264 = 0x34363248, 23 HAL_PIXEL_FORMAT_H264 = 0x34363248,
24 HAL_PIXEL_FORMAT_VP8 = 0x00385056, 24 HAL_PIXEL_FORMAT_VP8 = 0x00385056,
25 HAL_PIXEL_FORMAT_VP9 = 0x00395056,
25 }; 26 };
26 27
27 enum PortType { 28 enum PortType {
28 PORT_INPUT = 0, 29 PORT_INPUT = 0,
29 PORT_OUTPUT = 1, 30 PORT_OUTPUT = 1,
30 PORT_COUNT = 2, 31 PORT_COUNT = 2,
31 }; 32 };
32 33
33 struct BufferMetadata { 34 struct BufferMetadata {
34 int64_t timestamp = 0; // in microseconds 35 int64_t timestamp = 0; // in microseconds
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // called. 157 // called.
157 virtual void Flush() = 0; 158 virtual void Flush() = 0;
158 159
159 virtual ~ArcVideoAccelerator() {} 160 virtual ~ArcVideoAccelerator() {}
160 }; 161 };
161 162
162 } // namespace arc 163 } // namespace arc
163 } // namespace chromeos 164 } // namespace chromeos
164 165
165 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 166 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « chrome/gpu/arc_gpu_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698