[AndroidWebViewShell] Replace rebaseline script with a new version using test_runner.py
[chromium-blink-merge.git] / media / filters / ffmpeg_bitstream_converter.h
blob4b17486da3203b8441e2ca49c0c4e5440c6dab1b
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.
5 #ifndef MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
6 #define MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
8 #include "base/basictypes.h"
9 #include "media/base/media_export.h"
11 struct AVPacket;
13 namespace media {
15 // Interface for classes that allow reformating of FFmpeg bitstreams
16 class MEDIA_EXPORT FFmpegBitstreamConverter {
17 public:
18 virtual ~FFmpegBitstreamConverter() {};
20 // Reads the data in packet, and then overwrites this data with the
21 // converted version of packet
23 // Returns false if conversion failed. In this case, |packet| should not be
24 // changed.
25 virtual bool ConvertPacket(AVPacket* packet) = 0;
28 } // namespace media
30 #endif // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_