summaryrefslogtreecommitdiffstats
path: root/media/ffmpeg
diff options
context:
space:
mode:
authorcrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-13 20:36:51 +0000
committercrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-13 20:36:51 +0000
commit06ea4f7c2ee733bdf2e717af72cb56fb571eafac (patch)
treec1e387d65490a2bc7cf9bfc72e32d33b646e1df8 /media/ffmpeg
parenta5d3767bf2ddae040dd9bdb894bbe6276e7f5a2f (diff)
downloadchromium_src-06ea4f7c2ee733bdf2e717af72cb56fb571eafac.zip
chromium_src-06ea4f7c2ee733bdf2e717af72cb56fb571eafac.tar.gz
chromium_src-06ea4f7c2ee733bdf2e717af72cb56fb571eafac.tar.bz2
Pass more detailed audio hardware configuration information to the renderer
AudioHardwareConfig currently contains an ad-hoc mix of pieces of information about the audio input and output hardware. This CL adds more complete and symmetric information about the audio hardware as tracked in AudioHardwareConfig. The ChannelMixer is also upgraded to allow for "discrete" up and down mixing. BUG=none TEST=manual - several tests updated Review URL: https://codereview.chromium.org/12387006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/ffmpeg')
-rw-r--r--media/ffmpeg/ffmpeg_common.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index bf23430..a2c4efd 100644
--- a/media/ffmpeg/ffmpeg_common.cc
+++ b/media/ffmpeg/ffmpeg_common.cc
@@ -269,32 +269,6 @@ static AVSampleFormat SampleFormatToAVSampleFormat(SampleFormat sample_format) {
return AV_SAMPLE_FMT_NONE;
}
-// Converts a channel count into a channel layout. Layouts chosen based on the
-// Vorbis / Opus channel layout.
-static ChannelLayout GuessChannelLayout(int channels) {
- switch (channels) {
- case 1:
- return CHANNEL_LAYOUT_MONO;
- case 2:
- return CHANNEL_LAYOUT_STEREO;
- case 3:
- return CHANNEL_LAYOUT_SURROUND;
- case 4:
- return CHANNEL_LAYOUT_QUAD;
- case 5:
- return CHANNEL_LAYOUT_5_0;
- case 6:
- return CHANNEL_LAYOUT_5_1;
- case 7:
- return CHANNEL_LAYOUT_6_1;
- case 8:
- return CHANNEL_LAYOUT_7_1;
- default:
- DVLOG(1) << "Unsupported channel count: " << channels;
- }
- return CHANNEL_LAYOUT_UNSUPPORTED;
-}
-
void AVCodecContextToAudioDecoderConfig(
const AVCodecContext* codec_context,
AudioDecoderConfig* config) {