Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_FORMATS_MP4_BITSTREAM_CONVERTER_H_ | |
| 6 #define MEDIA_FORMATS_MP4_BITSTREAM_CONVERTER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 struct SubsampleEntry; | |
| 16 | |
| 17 namespace mp4 { | |
| 18 | |
| 19 class BitstreamConverter | |
| 20 : public base::RefCountedThreadSafe<BitstreamConverter> { | |
| 21 public: | |
| 22 virtual bool ConvertFrame(std::vector<uint8>* frame_buf, | |
|
sandersd (OOO until July 31)
2015/08/17 18:24:07
Comment what these parameters are. (In particular,
servolk
2015/08/17 22:06:24
Done.
| |
| 23 bool is_keyframe, | |
| 24 std::vector<SubsampleEntry>* subsamples) const = 0; | |
| 25 protected: | |
| 26 friend class base::RefCountedThreadSafe<BitstreamConverter>; | |
| 27 virtual ~BitstreamConverter(); | |
| 28 }; | |
| 29 | |
| 30 } // namespace mp4 | |
| 31 } // namespace media | |
| 32 | |
| 33 #endif // MEDIA_FORMATS_MP4_AVC_H_ | |
| OLD | NEW |