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

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

Issue 1677563003: Implemented parsing for H.264/AVC codec ids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + resolve conflicts Created 4 years, 10 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/mime_util_internal.cc ('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 <string> 9 #include <string>
9 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
10 11
11 namespace media { 12 namespace media {
12 13
13 enum VideoCodec { 14 enum VideoCodec {
14 // These values are histogrammed over time; do not change their ordinal 15 // These values are histogrammed over time; do not change their ordinal
15 // values. When deleting a codec replace it with a dummy value; when adding a 16 // values. When deleting a codec replace it with a dummy value; when adding a
16 // codec, do so at the bottom (and update kVideoCodecMax). 17 // codec, do so at the bottom (and update kVideoCodecMax).
17 kUnknownVideoCodec = 0, 18 kUnknownVideoCodec = 0,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 VP8PROFILE_MAX = VP8PROFILE_ANY, 59 VP8PROFILE_MAX = VP8PROFILE_ANY,
59 VP9PROFILE_MIN = 12, 60 VP9PROFILE_MIN = 12,
60 VP9PROFILE_ANY = VP9PROFILE_MIN, 61 VP9PROFILE_ANY = VP9PROFILE_MIN,
61 VP9PROFILE_MAX = VP9PROFILE_ANY, 62 VP9PROFILE_MAX = VP9PROFILE_ANY,
62 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, 63 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX,
63 }; 64 };
64 65
65 std::string MEDIA_EXPORT GetCodecName(VideoCodec codec); 66 std::string MEDIA_EXPORT GetCodecName(VideoCodec codec);
66 std::string MEDIA_EXPORT GetProfileName(VideoCodecProfile profile); 67 std::string MEDIA_EXPORT GetProfileName(VideoCodecProfile profile);
67 68
69 // 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,
71 VideoCodecProfile* profile,
72 uint8_t* level_idc);
73
68 } // namespace media 74 } // namespace media
69 75
70 #endif // MEDIA_BASE_VIDEO_CODECS_H_ 76 #endif // MEDIA_BASE_VIDEO_CODECS_H_
OLDNEW
« no previous file with comments | « media/base/mime_util_internal.cc ('k') | media/base/video_codecs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698