DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
container_names.h
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 <stdint.h>
9 
10 namespace edash_packager {
11 namespace media {
12 
15 enum MediaContainerName {
16  CONTAINER_UNKNOWN, // Unknown
17  CONTAINER_AAC, // AAC (Advanced Audio Coding)
18  CONTAINER_AC3, // AC-3
19  CONTAINER_AIFF, // AIFF (Audio Interchange File Format)
20  CONTAINER_AMR, // AMR (Adaptive Multi-Rate Audio)
21  CONTAINER_APE, // APE (Monkey's Audio)
22  CONTAINER_ASF, // ASF (Advanced / Active Streaming Format)
23  CONTAINER_ASS, // SSA (SubStation Alpha) subtitle
24  CONTAINER_AVI, // AVI (Audio Video Interleaved)
25  CONTAINER_BINK, // Bink
26  CONTAINER_CAF, // CAF (Apple Core Audio Format)
27  CONTAINER_DTS, // DTS
28  CONTAINER_DTSHD, // DTS-HD
29  CONTAINER_DV, // DV (Digital Video)
30  CONTAINER_DXA, // DXA
31  CONTAINER_EAC3, // Enhanced AC-3
32  CONTAINER_FLAC, // FLAC (Free Lossless Audio Codec)
33  CONTAINER_FLV, // FLV (Flash Video)
34  CONTAINER_GSM, // GSM (Global System for Mobile Audio)
35  CONTAINER_H261, // H.261
36  CONTAINER_H263, // H.263
37  CONTAINER_H264, // H.264
38  CONTAINER_HLS, // HLS (Apple HTTP Live Streaming PlayList)
39  CONTAINER_IRCAM, // Berkeley/IRCAM/CARL Sound Format
40  CONTAINER_MJPEG, // MJPEG video
41  CONTAINER_MOV, // QuickTime / MOV / MPEG4
42  CONTAINER_MP3, // MP3 (MPEG audio layer 2/3)
43  CONTAINER_MPEG2PS, // MPEG-2 Program Stream
44  CONTAINER_MPEG2TS, // MPEG-2 Transport Stream
45  CONTAINER_MPEG4BS, // MPEG-4 Bitstream
46  CONTAINER_OGG, // Ogg
47  CONTAINER_RM, // RM (RealMedia)
48  CONTAINER_SRT, // SRT (SubRip subtitle)
49  CONTAINER_SWF, // SWF (ShockWave Flash)
50  CONTAINER_TTML, // TTML file.
51  CONTAINER_VC1, // VC-1
52  CONTAINER_WAV, // WAV / WAVE (Waveform Audio)
53  CONTAINER_WEBM, // Matroska / WebM
54  CONTAINER_WEBVTT, // WebVTT file.
55  CONTAINER_WTV, // WTV (Windows Television)
56  CONTAINER_MAX // Must be last
57 };
58 
60 MediaContainerName DetermineContainer(const uint8_t* buffer, int buffer_size);
61 
62 } // namespace media
63 } // namespace edash_packager
64 
65 #endif // MEDIA_BASE_CONTAINER_NAMES_H_