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 | |
10 struct AVPacket; | |
11 | |
12 namespace media { | |
13 | |
14 // Interface for classes that allow reformating of FFmpeg bitstreams | |
15 class FFmpegBitstreamConverter { | |
16 public: | |
17 virtual ~FFmpegBitstreamConverter() {}; | |
18 | |
19 // Reads the data in packet, and then overwrites this data with the | |
20 // converted version of packet | |
21 virtual bool ConvertPacket(AVPacket* packet) = 0; | |
xhwang
2014/11/06 04:35:28
What's the return value?
kjoswiak
2014/11/07 02:14:38
Done.
| |
22 }; | |
23 | |
24 } // namespace media | |
25 | |
26 #endif // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_ | |
OLD | NEW |