diff options
author | strobe@google.com <strobe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-15 17:00:02 +0000 |
---|---|---|
committer | strobe@google.com <strobe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-15 17:00:02 +0000 |
commit | 8398ac4a8713c7382bdb88ff52c61903690b72bc (patch) | |
tree | 5c889ec3e111036649b93eb69fe032da105e6f55 /media/mp4/avc.h | |
parent | 57f2d412a609adafa29cd7f041ab5306a9986a04 (diff) | |
download | chromium_src-8398ac4a8713c7382bdb88ff52c61903690b72bc.zip chromium_src-8398ac4a8713c7382bdb88ff52c61903690b72bc.tar.gz chromium_src-8398ac4a8713c7382bdb88ff52c61903690b72bc.tar.bz2 |
Implement ISO BMFF support in Media Source (try 2).
Previous review: https://chromiumcodereview.appspot.com/10536014/
BUG=129072
TEST=MP4StreamParserTest
Review URL: https://chromiumcodereview.appspot.com/10534172
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/mp4/avc.h')
-rw-r--r-- | media/mp4/avc.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/media/mp4/avc.h b/media/mp4/avc.h new file mode 100644 index 0000000..2767c14 --- /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_ |