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

Side by Side Diff: content/public/common/encrypted_media_codecs.h

Issue 246033002: Store SupportedCodecs in KeySystemInfo and KeySystems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_
6 #define CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_
7
8 namespace content {
9
10 enum SupportedCodecMask {
11 NO_CODECS = 0,
12 WEBM_VORBIS = 1 << 0,
13 WEBM_AUDIO_CODECS = WEBM_VORBIS,
14 WEBM_VP8 = 1 << 1,
15 WEBM_VIDEO_CODECS = WEBM_VP8,
16 WEBM_ALL_CODECS = (WEBM_AUDIO_CODECS | WEBM_VIDEO_CODECS),
17 #if defined(USE_PROPRIETARY_CODECS)
18 MP4_AAC = 1 << 2,
19 MP4_AUDIO_CODECS = MP4_AAC,
20 MP4_AVC1 = 1 << 3,
21 MP4_VIDEO_CODECS = MP4_AVC1,
22 MP4_ALL_CODECS = (MP4_AUDIO_CODECS | MP4_VIDEO_CODECS),
23 ALL_CODECS = (WEBM_ALL_CODECS | MP4_ALL_CODECS),
24 #else
25 ALL_CODECS = WEBM_ALL_CODECS,
26 #endif // defined(USE_PROPRIETARY_CODECS)
27 };
28
29 // Defines bitmask values used to specify supported codecs.
ddorwin 2014/04/23 21:07:20 The comment should be at line 10, right?
xhwang 2014/04/23 23:30:37 Done.
30 // Each value represents a codec within a specific container.
31 // The mask values are stored in a SupportedCodecs.
32 typedef uint32 SupportedCodecs;
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698