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

Side by Side Diff: chromecast/public/media/decoder_config.h

Issue 1422113002: Enable pcm_s32le audio decoding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: DEPS roll Created 5 years 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 | « chromecast/media/cma/base/decoder_config_adapter.cc ('k') | media/base/audio_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ 5 #ifndef CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_
6 #define CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ 6 #define CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 enum SampleFormat { 39 enum SampleFormat {
40 kUnknownSampleFormat = 0, 40 kUnknownSampleFormat = 0,
41 kSampleFormatU8, // Unsigned 8-bit w/ bias of 128. 41 kSampleFormatU8, // Unsigned 8-bit w/ bias of 128.
42 kSampleFormatS16, // Signed 16-bit. 42 kSampleFormatS16, // Signed 16-bit.
43 kSampleFormatS32, // Signed 32-bit. 43 kSampleFormatS32, // Signed 32-bit.
44 kSampleFormatF32, // Float 32-bit. 44 kSampleFormatF32, // Float 32-bit.
45 kSampleFormatPlanarS16, // Signed 16-bit planar. 45 kSampleFormatPlanarS16, // Signed 16-bit planar.
46 kSampleFormatPlanarF32, // Float 32-bit planar. 46 kSampleFormatPlanarF32, // Float 32-bit planar.
47 kSampleFormatPlanarS32, // Signed 32-bit planar. 47 kSampleFormatPlanarS32, // Signed 32-bit planar.
48 kSampleFormatS24, // Signed 24-bit.
48 49
49 kSampleFormatMin = kUnknownSampleFormat, 50 kSampleFormatMin = kUnknownSampleFormat,
50 kSampleFormatMax = kSampleFormatPlanarS32, 51 kSampleFormatMax = kSampleFormatS24,
51 }; 52 };
52 53
53 enum VideoCodec { 54 enum VideoCodec {
54 kVideoCodecUnknown = 0, 55 kVideoCodecUnknown = 0,
55 kCodecH264, 56 kCodecH264,
56 kCodecVC1, 57 kCodecVC1,
57 kCodecMPEG2, 58 kCodecMPEG2,
58 kCodecMPEG4, 59 kCodecMPEG4,
59 kCodecTheora, 60 kCodecTheora,
60 kCodecVP8, 61 kCodecVP8,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 inline bool IsValidConfig(const VideoConfig& config) { 179 inline bool IsValidConfig(const VideoConfig& config) {
179 return config.codec >= kVideoCodecMin && 180 return config.codec >= kVideoCodecMin &&
180 config.codec <= kVideoCodecMax && 181 config.codec <= kVideoCodecMax &&
181 config.codec != kVideoCodecUnknown; 182 config.codec != kVideoCodecUnknown;
182 } 183 }
183 184
184 } // namespace media 185 } // namespace media
185 } // namespace chromecast 186 } // namespace chromecast
186 187
187 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ 188 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/base/decoder_config_adapter.cc ('k') | media/base/audio_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698