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

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

Issue 10826296: Introduce shared_memory_support media target for PPAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 3 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/audio/shared_memory_util.cc ('k') | media/base/channel_layout.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "build/build_config.h"
9 #include "media/base/media_export.h" 8 #include "media/base/media_export.h"
10 9
11 enum ChannelLayout { 10 enum ChannelLayout {
12 CHANNEL_LAYOUT_NONE = 0, 11 CHANNEL_LAYOUT_NONE = 0,
13 CHANNEL_LAYOUT_UNSUPPORTED, 12 CHANNEL_LAYOUT_UNSUPPORTED,
14 13
15 // Front C 14 // Front C
16 CHANNEL_LAYOUT_MONO, 15 CHANNEL_LAYOUT_MONO,
17 16
18 // Front L, Front R 17 // Front L, Front R
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 LEFT_OF_CENTER, 70 LEFT_OF_CENTER,
72 RIGHT_OF_CENTER, 71 RIGHT_OF_CENTER,
73 BACK_CENTER, 72 BACK_CENTER,
74 SIDE_LEFT, 73 SIDE_LEFT,
75 SIDE_RIGHT, 74 SIDE_RIGHT,
76 STEREO_LEFT, 75 STEREO_LEFT,
77 STEREO_RIGHT, 76 STEREO_RIGHT,
78 CHANNELS_MAX 77 CHANNELS_MAX
79 }; 78 };
80 79
81 #if defined(OS_MACOSX) || defined(USE_PULSEAUDIO)
82 // The channel orderings for each layout as specified by FFmpeg. 80 // The channel orderings for each layout as specified by FFmpeg.
83 // 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
84 // 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
85 // 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
86 // kChannelOrderings[CHANNEL_LAYOUT_5POINT1][SIDE_LEFT] = 4; 84 // kChannelOrderings[CHANNEL_LAYOUT_5POINT1][SIDE_LEFT] = 4;
87 // 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.
88 extern const int kChannelOrderings[CHANNEL_LAYOUT_MAX][CHANNELS_MAX]; 86 MEDIA_EXPORT extern const int
89 #endif 87 kChannelOrderings[CHANNEL_LAYOUT_MAX][CHANNELS_MAX];
90 88
91 // Returns the number of channels in a given ChannelLayout. 89 // Returns the number of channels in a given ChannelLayout.
92 MEDIA_EXPORT int ChannelLayoutToChannelCount(ChannelLayout layout); 90 MEDIA_EXPORT int ChannelLayoutToChannelCount(ChannelLayout layout);
93 91
94 #endif // MEDIA_BASE_CHANNEL_LAYOUT_H_ 92 #endif // MEDIA_BASE_CHANNEL_LAYOUT_H_
OLDNEW
« no previous file with comments | « media/audio/shared_memory_util.cc ('k') | media/base/channel_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698