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

Unified Diff: media/mp4/avc.h

Issue 10536014: Implement ISO BMFF support in Media Source. (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..c406d1b6062251fc4fe5354cd6d2c18bcd58f8ba
--- /dev/null
+++ b/media/mp4/avc.h
@@ -0,0 +1,46 @@
+// 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 "base/basictypes.h"
+#include "media/base/channel_layout.h"
+#include <vector>
+
+namespace media {
+namespace mp4 {
+
+struct AVCDecoderConfigurationRecord {
+ uint8 version;
acolwell GONE FROM CHROMIUM 2012/06/06 17:32:39 nit: use int here and below. In general Chrome pre
strobe_ 2012/06/07 16:33:54 I'm working on converting the polymorphic Read() f
acolwell GONE FROM CHROMIUM 2012/06/07 19:44:02 Take it easy. This is the first file I reviewed an
strobe_ 2012/06/07 22:04:22 Contritely: I apologize. I see that that message m
+ uint8 profile_indication;
+ uint8 profile_compatibility;
+ uint8 avc_level;
+ uint8 length_size;
+
+ uint32 width;
+ uint32 height;
+ uint32 crop_top;
+ uint32 crop_left;
+ uint32 crop_right;
+ uint32 crop_bottom;
+
+ typedef std::vector<uint8> SPS;
+ typedef std::vector<uint8> PPS;
+
+ std::vector<SPS> spses;
acolwell GONE FROM CHROMIUM 2012/06/06 17:32:39 nit: How about sps_list & pps_list? or xxx_vector?
strobe_ 2012/06/07 16:33:54 Done.
+ std::vector<PPS> ppses;
+
+ AVCDecoderConfigurationRecord();
+ ~AVCDecoderConfigurationRecord();
+};
+
+bool ConvertAVCCToAnnexB(uint8 length_size, std::vector<uint8>* buffer);
+
+ChannelLayout ConvertAACChannelCountToChannelLayout(uint16 count);
acolwell GONE FROM CHROMIUM 2012/06/06 17:32:39 nit: change count to int
strobe_ 2012/06/07 16:33:54 Done.
+
+} // namespace mp4
+} // namespace media
+
+#endif // MEDIA_MP4_AVC_H_

Powered by Google App Engine
This is Rietveld 408576698