| Index: media/filters/ffmpeg_bitstream_converter.h
|
| diff --git a/media/filters/ffmpeg_bitstream_converter.h b/media/filters/ffmpeg_bitstream_converter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4b17486da3203b8441e2ca49c0c4e5440c6dab1b
|
| --- /dev/null
|
| +++ b/media/filters/ffmpeg_bitstream_converter.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
|
| +#define MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "media/base/media_export.h"
|
| +
|
| +struct AVPacket;
|
| +
|
| +namespace media {
|
| +
|
| +// Interface for classes that allow reformating of FFmpeg bitstreams
|
| +class MEDIA_EXPORT FFmpegBitstreamConverter {
|
| + public:
|
| + virtual ~FFmpegBitstreamConverter() {};
|
| +
|
| + // Reads the data in packet, and then overwrites this data with the
|
| + // converted version of packet
|
| + //
|
| + // Returns false if conversion failed. In this case, |packet| should not be
|
| + // changed.
|
| + virtual bool ConvertPacket(AVPacket* packet) = 0;
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_FILTERS_FFMPEG_BITSTREAM_CONVERTER_H_
|
|
|