summaryrefslogtreecommitdiff
path: root/chromium/media/mp4/avc.h
blob: 3d815a1739d79f97b35d4b4294ce9fe916a37354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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/media_export.h"

namespace media {
namespace mp4 {

struct AVCDecoderConfigurationRecord;

class MEDIA_EXPORT AVC {
 public:
  static bool ConvertFrameToAnnexB(int length_size, std::vector<uint8>* buffer);

  static bool ConvertConfigToAnnexB(
      const AVCDecoderConfigurationRecord& avc_config,
      std::vector<uint8>* buffer);
};

}  // namespace mp4
}  // namespace media

#endif  // MEDIA_MP4_AVC_H_