OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_ |
| 6 #define MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "media/base/media_export.h" |
| 10 |
| 11 struct AVPacket; |
| 12 |
| 13 namespace media { |
| 14 |
| 15 // Interface for classes that allow reformating of FFmpeg bitstreams |
| 16 class MEDIA_EXPORT FFmpegBitstreamConverter { |
| 17 public: |
| 18 virtual ~FFmpegBitstreamConverter() {}; |
| 19 |
| 20 // Reads the data in packet, and then overwrites this data with the |
| 21 // converted version of packet |
| 22 // |
| 23 // Returns false if conversion failed. In this case, |packet| should not be |
| 24 // changed. |
| 25 virtual bool ConvertPacket(AVPacket* packet) = 0; |
| 26 }; |
| 27 |
| 28 } // namespace media |
| 29 |
| 30 #endif // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_ |
OLD | NEW |