Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1701)

Unified Diff: media/mp4/avc.h

Issue 10534172: Implement ISO BMFF support in Media Source (try 2). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/mp4/avc.h
diff --git a/media/mp4/avc.h b/media/mp4/avc.h
new file mode 100644
index 0000000000000000000000000000000000000000..2767c145b855fed9ab67587b37d11b48d8022001
--- /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_
« no previous file with comments | « media/media.gyp ('k') | media/mp4/avc.cc » ('j') | media/mp4/track_run_iterator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698