cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / media / mp4 / avc.h
blob3d815a1739d79f97b35d4b4294ce9fe916a37354
1 // Copyright (c) 2012 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_MP4_AVC_H_
6 #define MEDIA_MP4_AVC_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "media/base/media_export.h"
13 namespace media {
14 namespace mp4 {
16 struct AVCDecoderConfigurationRecord;
18 class MEDIA_EXPORT AVC {
19 public:
20 static bool ConvertFrameToAnnexB(int length_size, std::vector<uint8>* buffer);
22 static bool ConvertConfigToAnnexB(
23 const AVCDecoderConfigurationRecord& avc_config,
24 std::vector<uint8>* buffer);
27 } // namespace mp4
28 } // namespace media
30 #endif // MEDIA_MP4_AVC_H_