michael@0: // Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef MEDIA_MP4_AVC_H_ michael@0: #define MEDIA_MP4_AVC_H_ michael@0: michael@0: #include michael@0: michael@0: #include "mp4_demuxer/basictypes.h" michael@0: michael@0: namespace mp4_demuxer { michael@0: michael@0: struct AVCDecoderConfigurationRecord; michael@0: michael@0: class AVC { michael@0: public: michael@0: static bool ConvertFrameToAnnexB(int length_size, std::vector* buffer); michael@0: michael@0: static bool ConvertConfigToAnnexB( michael@0: const AVCDecoderConfigurationRecord& avc_config, michael@0: std::vector* buffer); michael@0: }; michael@0: michael@0: } // namespace mp4_demuxer michael@0: michael@0: #endif // MEDIA_MP4_AVC_H_