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

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

Issue 1769593002: Add 4 VP9 profiles to the media::VideoCodecProfile enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hevc-codec-7
Patch Set: Added some comments and dchecks Created 4 years, 8 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 | « gpu/config/gpu_info.h ('k') | media/base/video_codecs.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CODECS_H_ 5 #ifndef MEDIA_BASE_VIDEO_CODECS_H_
6 #define MEDIA_BASE_VIDEO_CODECS_H_ 6 #define MEDIA_BASE_VIDEO_CODECS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, 51 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6,
52 H264PROFILE_SCALABLEBASELINE = 7, 52 H264PROFILE_SCALABLEBASELINE = 7,
53 H264PROFILE_SCALABLEHIGH = 8, 53 H264PROFILE_SCALABLEHIGH = 8,
54 H264PROFILE_STEREOHIGH = 9, 54 H264PROFILE_STEREOHIGH = 9,
55 H264PROFILE_MULTIVIEWHIGH = 10, 55 H264PROFILE_MULTIVIEWHIGH = 10,
56 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, 56 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH,
57 VP8PROFILE_MIN = 11, 57 VP8PROFILE_MIN = 11,
58 VP8PROFILE_ANY = VP8PROFILE_MIN, 58 VP8PROFILE_ANY = VP8PROFILE_MIN,
59 VP8PROFILE_MAX = VP8PROFILE_ANY, 59 VP8PROFILE_MAX = VP8PROFILE_ANY,
60 VP9PROFILE_MIN = 12, 60 VP9PROFILE_MIN = 12,
61 VP9PROFILE_ANY = VP9PROFILE_MIN, 61 VP9PROFILE_PROFILE0 = VP9PROFILE_MIN,
62 VP9PROFILE_MAX = VP9PROFILE_ANY, 62 VP9PROFILE_PROFILE1 = 13,
63 VP9PROFILE_PROFILE2 = 14,
64 VP9PROFILE_PROFILE3 = 15,
65 VP9PROFILE_MAX = VP9PROFILE_PROFILE3,
63 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, 66 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX,
64 }; 67 };
65 68
66 std::string MEDIA_EXPORT GetCodecName(VideoCodec codec); 69 std::string MEDIA_EXPORT GetCodecName(VideoCodec codec);
67 std::string MEDIA_EXPORT GetProfileName(VideoCodecProfile profile); 70 std::string MEDIA_EXPORT GetProfileName(VideoCodecProfile profile);
68 71
69 // Handle parsing AVC/H.264 codec ids as outlined in RFC 6381 and ISO-14496-10. 72 // Handle parsing AVC/H.264 codec ids as outlined in RFC 6381 and ISO-14496-10.
70 MEDIA_EXPORT bool ParseAVCCodecId(const std::string& codec_id, 73 MEDIA_EXPORT bool ParseAVCCodecId(const std::string& codec_id,
71 VideoCodecProfile* profile, 74 VideoCodecProfile* profile,
72 uint8_t* level_idc); 75 uint8_t* level_idc);
73 76
74 } // namespace media 77 } // namespace media
75 78
76 #endif // MEDIA_BASE_VIDEO_CODECS_H_ 79 #endif // MEDIA_BASE_VIDEO_CODECS_H_
OLDNEW
« no previous file with comments | « gpu/config/gpu_info.h ('k') | media/base/video_codecs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698