Chromium Code Reviews| Index: media/base/container_names.h |
| diff --git a/media/base/container_names.h b/media/base/container_names.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..33bada53407c69fb87202c3d89c342ff8cd617c6 |
| --- /dev/null |
| +++ b/media/base/container_names.h |
| @@ -0,0 +1,68 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_BASE_CONTAINER_NAMES_H_ |
| +#define MEDIA_BASE_CONTAINER_NAMES_H_ |
| + |
| +#include "base/basictypes.h" |
| + |
| +namespace media { |
| + |
| +namespace container_names { |
| + |
| +// This is the set of input container formats detected for logging purposes. Not |
| +// all of these are enabled (and it varies by product). Any additions need to be |
| +// done at the end of the list (before CONTAINER_MAX). This list must be kept in |
| +// sync with the enum definition "FFmpegContainers" in |
| +// tools/metrics/histograms/histograms.xml. |
| +enum FFmpegContainerName { |
|
acolwell GONE FROM CHROMIUM
2013/05/18 01:22:09
nit: Is there any reason to keep the FFmpeg here?
jrummell
2013/05/22 18:27:39
Done.
|
| + CONTAINER_UNKNOWN, // Unknown |
| + CONTAINER_AAC, // AAC (Advanced Audio Coding) |
| + CONTAINER_AC3, // AC-3 |
| + CONTAINER_AIFF, // AIFF (Audio Interchange File Format) |
| + CONTAINER_AMR, // AMR (Adaptive Multi-Rate Audio) |
| + CONTAINER_APE, // APE (Monkey's Audio) |
| + CONTAINER_ASF, // ASF (Advanced / Active Streaming Format) |
| + CONTAINER_ASS, // SSA (SubStation Alpha) subtitle |
| + CONTAINER_AVI, // AVI (Audio Video Interleaved) |
| + CONTAINER_BINK, // Bink |
| + CONTAINER_CAF, // CAF (Apple Core Audio Format) |
| + CONTAINER_DTS, // DTS |
| + CONTAINER_DTSHD, // DTS-HD |
| + CONTAINER_DV, // DV (Digital Video) |
| + CONTAINER_DXA, // DXA |
| + CONTAINER_EAC3, // Enhanced AC-3 |
| + CONTAINER_FLAC, // FLAC (Free Lossless Audio Codec) |
| + CONTAINER_FLV, // FLV (Flash Video) |
| + CONTAINER_GSM, // GSM (Global System for Mobile Audio) |
| + CONTAINER_H261, // H.261 |
| + CONTAINER_H263, // H.263 |
| + CONTAINER_H264, // H.264 |
| + CONTAINER_HLS, // HLS (Apple HTTP Live Streaming PlayList) |
| + CONTAINER_IRCAM, // Berkeley/IRCAM/CARL Sound Format |
| + CONTAINER_MJPEG, // MJPEG video |
| + CONTAINER_MOV, // QuickTime / MOV / MPEG4 |
| + CONTAINER_MP3, // MP3 (MPEG audio layer 2/3) |
| + CONTAINER_MPEG2PS, // MPEG-2 Program Stream |
| + CONTAINER_MPEG2TS, // MPEG-2 Transport Stream |
| + CONTAINER_MPEG4BS, // MPEG-4 Bitstream |
| + CONTAINER_OGG, // Ogg |
| + CONTAINER_RM, // RM (RealMedia) |
| + CONTAINER_SRT, // SRT (SubRip subtitle) |
| + CONTAINER_SWF, // SWF (ShockWave Flash) |
| + CONTAINER_VC1, // VC-1 |
| + CONTAINER_WAV, // WAV / WAVE (Waveform Audio) |
| + CONTAINER_WEBM, // Matroska / WebM |
| + CONTAINER_WTV, // WTV (Windows Television) |
| + CONTAINER_MAX // Must be last |
| +}; |
| + |
| +// Determine the container type. |
| +FFmpegContainerName DetermineContainer(const uint8* buffer, int buffer_size); |
| + |
| +} // namespace container_names |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_BASE_CONTAINER_NAMES_H_ |