Allow supervised users to delete profiles in about:settings.
[chromium-blink-merge.git] / media / base / sample_format.h
blob7a488433ab8925726b3a6a15cad85b1cb788e6ee
1 // Copyright 2013 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.
5 #ifndef MEDIA_BASE_SAMPLE_FORMAT_H
6 #define MEDIA_BASE_SAMPLE_FORMAT_H
8 #include "media/base/media_export.h"
10 namespace media {
12 enum SampleFormat {
13 // These values are histogrammed over time; do not change their ordinal
14 // values. When deleting a sample format replace it with a dummy value; when
15 // adding a sample format, do so at the bottom before kSampleFormatMax, and
16 // update the value of kSampleFormatMax.
17 kUnknownSampleFormat = 0,
18 kSampleFormatU8, // Unsigned 8-bit w/ bias of 128.
19 kSampleFormatS16, // Signed 16-bit.
20 kSampleFormatS32, // Signed 32-bit.
21 kSampleFormatF32, // Float 32-bit.
22 kSampleFormatPlanarS16, // Signed 16-bit planar.
23 kSampleFormatPlanarF32, // Float 32-bit planar.
24 kSampleFormatPlanarS32, // Signed 32-bit planar.
26 // Must always be equal to largest value ever logged.
27 kSampleFormatMax = kSampleFormatPlanarS32,
30 // Returns the number of bytes used per channel for the specified
31 // |sample_format|.
32 MEDIA_EXPORT int SampleFormatToBytesPerChannel(SampleFormat sample_format);
34 // Returns the name of the sample format as a string
35 MEDIA_EXPORT const char* SampleFormatToString(SampleFormat sample_format);
37 } // namespace media
39 #endif // MEDIA_BASE_SAMPLE_FORMAT_H