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

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

Issue 7572040: Enable media.dll / libmedia.so. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/base/callback.h ('k') | media/base/clock.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 MEDIA_BASE_CHANNEL_LAYOUT_H_ 5 #ifndef MEDIA_BASE_CHANNEL_LAYOUT_H_
6 #define MEDIA_BASE_CHANNEL_LAYOUT_H_ 6 #define MEDIA_BASE_CHANNEL_LAYOUT_H_
7 7
8 #include "media/base/media_export.h"
9
8 enum ChannelLayout { 10 enum ChannelLayout {
9 CHANNEL_LAYOUT_NONE = 0, 11 CHANNEL_LAYOUT_NONE = 0,
10 CHANNEL_LAYOUT_UNSUPPORTED, 12 CHANNEL_LAYOUT_UNSUPPORTED,
11 13
12 // Front C 14 // Front C
13 CHANNEL_LAYOUT_MONO, 15 CHANNEL_LAYOUT_MONO,
14 16
15 // Front L, Front R 17 // Front L, Front R
16 CHANNEL_LAYOUT_STEREO, 18 CHANNEL_LAYOUT_STEREO,
17 19
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 79
78 // The channel orderings for each layout as specified by FFmpeg. 80 // The channel orderings for each layout as specified by FFmpeg.
79 // Values represent the index of each channel in each layout. For example, the 81 // Values represent the index of each channel in each layout. For example, the
80 // left side surround sound channel in FFmpeg's 5.1 layout is in the 5th 82 // left side surround sound channel in FFmpeg's 5.1 layout is in the 5th
81 // position (because the order is L, R, C, LFE, LS, RS), so 83 // position (because the order is L, R, C, LFE, LS, RS), so
82 // kChannelOrderings[CHANNEL_LAYOUT_5POINT1][SIDE_LEFT] = 4; 84 // kChannelOrderings[CHANNEL_LAYOUT_5POINT1][SIDE_LEFT] = 4;
83 // Values of -1 mean the channel at that index is not used for that layout. 85 // Values of -1 mean the channel at that index is not used for that layout.
84 extern const int kChannelOrderings[CHANNEL_LAYOUT_MAX][CHANNELS_MAX]; 86 extern const int kChannelOrderings[CHANNEL_LAYOUT_MAX][CHANNELS_MAX];
85 87
86 // Returns the number of channels in a given ChannelLayout. 88 // Returns the number of channels in a given ChannelLayout.
87 int ChannelLayoutToChannelCount(ChannelLayout layout); 89 MEDIA_EXPORT int ChannelLayoutToChannelCount(ChannelLayout layout);
88 90
89 #endif // MEDIA_BASE_CHANNEL_LAYOUT_H_ 91 #endif // MEDIA_BASE_CHANNEL_LAYOUT_H_
OLDNEW
« no previous file with comments | « media/base/callback.h ('k') | media/base/clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698