| Index: media/mp4/avc.h
|
| diff --git a/media/mp4/avc.h b/media/mp4/avc.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..285f5aa6f39b8384c53aa3b3859dd48d98177a9f
|
| --- /dev/null
|
| +++ b/media/mp4/avc.h
|
| @@ -0,0 +1,43 @@
|
| +// 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"
|
| +
|
| +namespace media {
|
| +namespace mp4 {
|
| +
|
| +struct AVCDecoderConfigurationRecord {
|
| + uint8 version;
|
| + uint8 profile_indication;
|
| + uint8 profile_compatibility;
|
| + uint8 avc_level;
|
| + uint8 length_size;
|
| +
|
| + typedef std::vector<uint8> SPS;
|
| + typedef std::vector<uint8> PPS;
|
| +
|
| + std::vector<SPS> sps_list;
|
| + std::vector<PPS> pps_list;
|
| +
|
| + AVCDecoderConfigurationRecord();
|
| + ~AVCDecoderConfigurationRecord();
|
| +};
|
| +
|
| +// Parse(BoxReader, AVCDecoderConfigurationRecord) is declared in
|
| +// box_definitions.h.
|
| +
|
| +bool ConvertAVCCToAnnexB(int length_size, std::vector<uint8>* buffer);
|
| +
|
| +ChannelLayout ConvertAACChannelCountToChannelLayout(int count);
|
| +
|
| +} // namespace mp4
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_MP4_AVC_H_
|
|
|