Chromium Code Reviews| 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 |