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

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

Issue 14495010: Add UMA stats for audio/video containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 MEDIA_BASE_CONTAINER_NAMES_H_
6 #define MEDIA_BASE_CONTAINER_NAMES_H_
7
8 #include "base/basictypes.h"
9
10 namespace media {
11
12 namespace container_names {
13
14 // This is the set of input container formats detected for logging purposes. Not
15 // all of these are enabled (and it varies by product). Any additions need to be
16 // done at the end of the list (before CONTAINER_MAX). This list must be kept in
17 // sync with the enum definition "MediaContainers" in
18 // tools/metrics/histograms/histograms.xml.
19 enum MediaContainerName {
20 CONTAINER_UNKNOWN, // Unknown
21 CONTAINER_AAC, // AAC (Advanced Audio Coding)
22 CONTAINER_AC3, // AC-3
23 CONTAINER_AIFF, // AIFF (Audio Interchange File Format)
24 CONTAINER_AMR, // AMR (Adaptive Multi-Rate Audio)
25 CONTAINER_APE, // APE (Monkey's Audio)
26 CONTAINER_ASF, // ASF (Advanced / Active Streaming Format)
27 CONTAINER_ASS, // SSA (SubStation Alpha) subtitle
28 CONTAINER_AVI, // AVI (Audio Video Interleaved)
29 CONTAINER_BINK, // Bink
30 CONTAINER_CAF, // CAF (Apple Core Audio Format)
31 CONTAINER_DTS, // DTS
32 CONTAINER_DTSHD, // DTS-HD
33 CONTAINER_DV, // DV (Digital Video)
34 CONTAINER_DXA, // DXA
35 CONTAINER_EAC3, // Enhanced AC-3
36 CONTAINER_FLAC, // FLAC (Free Lossless Audio Codec)
37 CONTAINER_FLV, // FLV (Flash Video)
38 CONTAINER_GSM, // GSM (Global System for Mobile Audio)
39 CONTAINER_H261, // H.261
40 CONTAINER_H263, // H.263
41 CONTAINER_H264, // H.264
42 CONTAINER_HLS, // HLS (Apple HTTP Live Streaming PlayList)
43 CONTAINER_IRCAM, // Berkeley/IRCAM/CARL Sound Format
44 CONTAINER_MJPEG, // MJPEG video
45 CONTAINER_MOV, // QuickTime / MOV / MPEG4
46 CONTAINER_MP3, // MP3 (MPEG audio layer 2/3)
47 CONTAINER_MPEG2PS, // MPEG-2 Program Stream
48 CONTAINER_MPEG2TS, // MPEG-2 Transport Stream
49 CONTAINER_MPEG4BS, // MPEG-4 Bitstream
50 CONTAINER_OGG, // Ogg
51 CONTAINER_RM, // RM (RealMedia)
52 CONTAINER_SRT, // SRT (SubRip subtitle)
53 CONTAINER_SWF, // SWF (ShockWave Flash)
54 CONTAINER_VC1, // VC-1
55 CONTAINER_WAV, // WAV / WAVE (Waveform Audio)
56 CONTAINER_WEBM, // Matroska / WebM
57 CONTAINER_WTV, // WTV (Windows Television)
58 CONTAINER_MAX // Must be last
59 };
60
61 // Determine the container type.
62 MediaContainerName DetermineContainer(const uint8* buffer, int buffer_size);
63
64 } // namespace container_names
65
66 } // namespace media
67
68 #endif // MEDIA_BASE_CONTAINER_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698