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

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

Issue 1685683004: Move media::AudioCodec to its own source file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/BUILD.gn ('k') | media/base/audio_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
(Empty)
1 // Copyright 2016 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_AUDIO_CODECS_H_
6 #define MEDIA_BASE_AUDIO_CODECS_H_
7
8 #include <string>
9 #include "media/base/media_export.h"
10
11 namespace media {
12
13 enum AudioCodec {
14 // 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 // codec, do so at the bottom before kAudioCodecMax, and update the value of
17 // kAudioCodecMax to equal the new codec.
18 kUnknownAudioCodec = 0,
19 kCodecAAC = 1,
20 kCodecMP3 = 2,
21 kCodecPCM = 3,
22 kCodecVorbis = 4,
23 kCodecFLAC = 5,
24 kCodecAMR_NB = 6,
25 kCodecAMR_WB = 7,
26 kCodecPCM_MULAW = 8,
27 kCodecGSM_MS = 9,
28 kCodecPCM_S16BE = 10,
29 kCodecPCM_S24BE = 11,
30 kCodecOpus = 12,
31 kCodecEAC3 = 13,
32 kCodecPCM_ALAW = 14,
33 kCodecALAC = 15,
34 kCodecAC3 = 16,
35 // DO NOT ADD RANDOM AUDIO CODECS!
36 //
37 // The only acceptable time to add a new codec is if there is production code
38 // that uses said codec in the same CL.
39
40 // Must always be equal to the largest entry ever logged.
41 kAudioCodecMax = kCodecAC3,
42 };
43
44 std::string MEDIA_EXPORT GetCodecName(AudioCodec codec);
45
46 } // namespace media
47
48 #endif // MEDIA_BASE_AUDIO_CODECS_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/audio_codecs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698