| Index: media/mp4/avc.h
|
| diff --git a/media/mp4/avc.h b/media/mp4/avc.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2767c145b855fed9ab67587b37d11b48d8022001
|
| --- /dev/null
|
| +++ b/media/mp4/avc.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_MP4_AVC_H_
|
| +#define MEDIA_MP4_AVC_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "media/base/channel_layout.h"
|
| +#include "media/base/media_export.h"
|
| +
|
| +namespace media {
|
| +namespace mp4 {
|
| +
|
| +struct AVCDecoderConfigurationRecord;
|
| +
|
| +class MEDIA_EXPORT AVC {
|
| + public:
|
| + static bool ConvertToAnnexB(int length_size, std::vector<uint8>* buffer);
|
| +
|
| + static bool InsertParameterSets(
|
| + const AVCDecoderConfigurationRecord& avc_config,
|
| + std::vector<uint8>* buffer);
|
| +
|
| + static ChannelLayout ConvertAACChannelCountToChannelLayout(int count);
|
| +};
|
| +
|
| +
|
| +} // namespace mp4
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_MP4_AVC_H_
|
|
|