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

Side by Side Diff: media/base/video_types.h

Issue 2370453003: 12-bit vp9 video support (Closed)
Patch Set: typO Created 4 years, 2 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 | « media/base/video_frame.cc ('k') | media/base/video_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MEDIA_BASE_VIDEO_TYPES_H_ 5 #ifndef MEDIA_BASE_VIDEO_TYPES_H_
6 #define MEDIA_BASE_VIDEO_TYPES_H_ 6 #define MEDIA_BASE_VIDEO_TYPES_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Plane size = Row pitch * (((height+31)/32)*32) 47 // Plane size = Row pitch * (((height+31)/32)*32)
48 PIXEL_FORMAT_MT21 = 15, 48 PIXEL_FORMAT_MT21 = 15,
49 49
50 PIXEL_FORMAT_YUV420P9 = 16, 50 PIXEL_FORMAT_YUV420P9 = 16,
51 PIXEL_FORMAT_YUV420P10 = 17, 51 PIXEL_FORMAT_YUV420P10 = 17,
52 PIXEL_FORMAT_YUV422P9 = 18, 52 PIXEL_FORMAT_YUV422P9 = 18,
53 PIXEL_FORMAT_YUV422P10 = 19, 53 PIXEL_FORMAT_YUV422P10 = 19,
54 PIXEL_FORMAT_YUV444P9 = 20, 54 PIXEL_FORMAT_YUV444P9 = 20,
55 PIXEL_FORMAT_YUV444P10 = 21, 55 PIXEL_FORMAT_YUV444P10 = 21,
56 56
57 PIXEL_FORMAT_YUV420P12 = 22,
58 PIXEL_FORMAT_YUV422P12 = 23,
59 PIXEL_FORMAT_YUV444P12 = 24,
60
57 // Please update UMA histogram enumeration when adding new formats here. 61 // Please update UMA histogram enumeration when adding new formats here.
58 PIXEL_FORMAT_MAX = 62 PIXEL_FORMAT_MAX =
59 PIXEL_FORMAT_YUV444P10, // Must always be equal to largest entry logged. 63 PIXEL_FORMAT_YUV444P12, // Must always be equal to largest entry logged.
60 }; 64 };
61 65
62 // Color space or color range used for the pixels. 66 // Color space or color range used for the pixels.
63 // Logged to UMA, so never reuse values. Leave gaps if necessary. 67 // Logged to UMA, so never reuse values. Leave gaps if necessary.
64 enum ColorSpace { 68 enum ColorSpace {
65 COLOR_SPACE_UNSPECIFIED = 0, // In general this is Rec601. 69 COLOR_SPACE_UNSPECIFIED = 0, // In general this is Rec601.
66 // The JPEG color space is the combination of Rec.601 and full range colors 70 // The JPEG color space is the combination of Rec.601 and full range colors
67 // (aka pc range colors). 71 // (aka pc range colors).
68 COLOR_SPACE_JPEG = 1, 72 COLOR_SPACE_JPEG = 1,
69 COLOR_SPACE_HD_REC709 = 2, // Rec709 "HD" color space. 73 COLOR_SPACE_HD_REC709 = 2, // Rec709 "HD" color space.
70 COLOR_SPACE_SD_REC601 = 3, // Rec601 "SD" color space. 74 COLOR_SPACE_SD_REC601 = 3, // Rec601 "SD" color space.
71 COLOR_SPACE_MAX = COLOR_SPACE_SD_REC601, 75 COLOR_SPACE_MAX = COLOR_SPACE_SD_REC601,
72 }; 76 };
73 77
74 // Returns the name of a Format as a string. 78 // Returns the name of a Format as a string.
75 MEDIA_EXPORT std::string VideoPixelFormatToString(VideoPixelFormat format); 79 MEDIA_EXPORT std::string VideoPixelFormatToString(VideoPixelFormat format);
76 80
77 // Returns true if |format| is a YUV format with multiple planes. 81 // Returns true if |format| is a YUV format with multiple planes.
78 MEDIA_EXPORT bool IsYuvPlanar(VideoPixelFormat format); 82 MEDIA_EXPORT bool IsYuvPlanar(VideoPixelFormat format);
79 83
80 // Returns true if |format| has no Alpha channel (hence is always opaque). 84 // Returns true if |format| has no Alpha channel (hence is always opaque).
81 MEDIA_EXPORT bool IsOpaque(VideoPixelFormat format); 85 MEDIA_EXPORT bool IsOpaque(VideoPixelFormat format);
82 86
83 } // namespace media 87 } // namespace media
84 88
85 #endif // MEDIA_BASE_VIDEO_TYPES_H_ 89 #endif // MEDIA_BASE_VIDEO_TYPES_H_
OLDNEW
« no previous file with comments | « media/base/video_frame.cc ('k') | media/base/video_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698