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

Unified Diff: media/formats/mp4/avc.h

Issue 1289923003: Refactor AnnexB bitstream conversion for AVC/H.264 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@annexb-avc-fix
Patch Set: BitstreamConverter doesn't need to have MEDIA_EXPORT Created 5 years, 4 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/formats/mp4/avc.h
diff --git a/media/formats/mp4/avc.h b/media/formats/mp4/avc.h
index add88bbcfa116594206fcee91f55ec9b14986a30..1de12c6b4c6ddac56f712583b2e2f6f7723dc775 100644
--- a/media/formats/mp4/avc.h
+++ b/media/formats/mp4/avc.h
@@ -8,7 +8,9 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
+#include "media/formats/mp4/bitstream_converter.h"
namespace media {
@@ -57,6 +59,20 @@ class MEDIA_EXPORT AVC {
const uint8* ptr);
};
+class AVCBitstreamConverter : public BitstreamConverter {
sandersd (OOO until July 31) 2015/08/17 18:24:07 Comment exact what this converts to/from.
servolk 2015/08/17 22:06:24 Done.
+ public:
+ explicit AVCBitstreamConverter(
+ scoped_ptr<AVCDecoderConfigurationRecord> avc_config);
+
+ // BitstreamConverter interface
+ bool ConvertFrame(std::vector<uint8>* frame_buf,
+ bool is_keyframe,
+ std::vector<SubsampleEntry>* subsamples) const override;
+ private:
+ ~AVCBitstreamConverter() override;
+ scoped_ptr<AVCDecoderConfigurationRecord> avc_config_;
+};
+
} // namespace mp4
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698