[M120 Migration][hbbtv] Audio tracks count notification
[platform/framework/web/chromium-efl.git] / media / filters / ffmpeg_bitstream_converter.h
1 // Copyright 2014 The Chromium Authors
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 "media/base/media_export.h"
9
10 struct AVPacket;
11
12 namespace media {
13
14 // Interface for classes that allow reformating of FFmpeg bitstreams
15 class MEDIA_EXPORT 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   //
22   // Returns false if conversion failed. In this case, |packet| should not be
23   // changed.
24   virtual bool ConvertPacket(AVPacket* packet) = 0;
25 };
26
27 }  // namespace media
28
29 #endif  // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_