#ifndef MEDIA_BASE_SAMPLE_FORMAT_H_
#define MEDIA_BASE_SAMPLE_FORMAT_H_
#include "media/base/media_shmem_export.h"
namespace media {
enum SampleFormat { … };
MEDIA_SHMEM_EXPORT int SampleFormatToBytesPerChannel(
SampleFormat sample_format);
MEDIA_SHMEM_EXPORT int SampleFormatToBitsPerChannel(SampleFormat sample_format);
MEDIA_SHMEM_EXPORT const char* SampleFormatToString(SampleFormat sample_format);
MEDIA_SHMEM_EXPORT bool IsPlanar(SampleFormat sample_format);
MEDIA_SHMEM_EXPORT bool IsInterleaved(SampleFormat sample_format);
MEDIA_SHMEM_EXPORT bool IsBitstream(SampleFormat sample_format);
}
#endif