ffmpeg: Update class names
This commit is contained in:
@@ -43,7 +43,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
class AVCodecDecoder : public Decoder {
|
class AVCodecDecoder : public BDecoder {
|
||||||
public:
|
public:
|
||||||
AVCodecDecoder();
|
AVCodecDecoder();
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ static const size_t kDefaultChunkBufferSize = 2 * 1024 * 1024;
|
|||||||
|
|
||||||
AVCodecEncoder::AVCodecEncoder(uint32 codecID, int bitRateScale)
|
AVCodecEncoder::AVCodecEncoder(uint32 codecID, int bitRateScale)
|
||||||
:
|
:
|
||||||
Encoder(),
|
BEncoder(),
|
||||||
fBitRateScale(bitRateScale),
|
fBitRateScale(bitRateScale),
|
||||||
fCodecID((CodecID)codecID),
|
fCodecID((CodecID)codecID),
|
||||||
fCodec(NULL),
|
fCodec(NULL),
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ extern "C" {
|
|||||||
typedef AVCodecID CodecID;
|
typedef AVCodecID CodecID;
|
||||||
|
|
||||||
|
|
||||||
class AVCodecEncoder : public Encoder {
|
class AVCodecEncoder : public BEncoder {
|
||||||
public:
|
public:
|
||||||
AVCodecEncoder(uint32 codecID,
|
AVCodecEncoder(uint32 codecID,
|
||||||
int bitRateScale);
|
int bitRateScale);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
|
|
||||||
class AVFormatReader : public Reader {
|
class AVFormatReader : public BReader {
|
||||||
public:
|
public:
|
||||||
AVFormatReader();
|
AVFormatReader();
|
||||||
~AVFormatReader();
|
~AVFormatReader();
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class AVFormatWriter : public Writer {
|
class AVFormatWriter : public BWriter {
|
||||||
public:
|
public:
|
||||||
AVFormatWriter();
|
AVFormatWriter();
|
||||||
~AVFormatWriter();
|
~AVFormatWriter();
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ extern "C" {
|
|||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
Decoder*
|
BDecoder*
|
||||||
FFmpegPlugin::NewDecoder(uint index)
|
FFmpegPlugin::NewDecoder(uint index)
|
||||||
{
|
{
|
||||||
// TODO: Confirm we can check index here.
|
// TODO: Confirm we can check index here.
|
||||||
@@ -53,7 +53,7 @@ FFmpegPlugin::NewDecoder(uint index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Reader*
|
BReader*
|
||||||
FFmpegPlugin::NewReader()
|
FFmpegPlugin::NewReader()
|
||||||
{
|
{
|
||||||
return new(std::nothrow) AVFormatReader();
|
return new(std::nothrow) AVFormatReader();
|
||||||
@@ -67,7 +67,7 @@ FFmpegPlugin::GetSupportedFormats(media_format** _formats, size_t* _count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Writer*
|
BWriter*
|
||||||
FFmpegPlugin::NewWriter()
|
FFmpegPlugin::NewWriter()
|
||||||
{
|
{
|
||||||
return new(std::nothrow) AVFormatWriter();
|
return new(std::nothrow) AVFormatWriter();
|
||||||
@@ -84,7 +84,7 @@ FFmpegPlugin::GetSupportedFileFormats(const media_file_format** _fileFormats,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Encoder*
|
BEncoder*
|
||||||
FFmpegPlugin::NewEncoder(const media_codec_info& codecInfo)
|
FFmpegPlugin::NewEncoder(const media_codec_info& codecInfo)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < gEncoderCount; i++) {
|
for (size_t i = 0; i < gEncoderCount; i++) {
|
||||||
@@ -97,7 +97,7 @@ FFmpegPlugin::NewEncoder(const media_codec_info& codecInfo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Encoder*
|
BEncoder*
|
||||||
FFmpegPlugin::NewEncoder(const media_format& format)
|
FFmpegPlugin::NewEncoder(const media_format& format)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < gEncoderCount; i++) {
|
for (size_t i = 0; i < gEncoderCount; i++) {
|
||||||
@@ -133,7 +133,7 @@ FFmpegPlugin::RegisterNextEncoder(int32* cookie, media_codec_info* _codecInfo,
|
|||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
MediaPlugin*
|
BMediaPlugin*
|
||||||
instantiate_plugin()
|
instantiate_plugin()
|
||||||
{
|
{
|
||||||
return new(std::nothrow) FFmpegPlugin;
|
return new(std::nothrow) FFmpegPlugin;
|
||||||
|
|||||||
@@ -18,24 +18,24 @@
|
|||||||
#include <Writer.h>
|
#include <Writer.h>
|
||||||
|
|
||||||
|
|
||||||
class FFmpegPlugin : public ReaderPlugin, public DecoderPlugin,
|
class FFmpegPlugin : public BReaderPlugin, public BDecoderPlugin,
|
||||||
public WriterPlugin, public EncoderPlugin {
|
public BWriterPlugin, public BEncoderPlugin {
|
||||||
public:
|
public:
|
||||||
virtual Reader* NewReader();
|
virtual BReader* NewReader();
|
||||||
|
|
||||||
virtual Decoder* NewDecoder(uint index);
|
virtual BDecoder* NewDecoder(uint index);
|
||||||
virtual status_t GetSupportedFormats(media_format** _formats,
|
virtual status_t GetSupportedFormats(media_format** _formats,
|
||||||
size_t* _count);
|
size_t* _count);
|
||||||
|
|
||||||
virtual Writer* NewWriter();
|
virtual BWriter* NewWriter();
|
||||||
virtual status_t GetSupportedFileFormats(
|
virtual status_t GetSupportedFileFormats(
|
||||||
const media_file_format** _fileFormats,
|
const media_file_format** _fileFormats,
|
||||||
size_t* _count);
|
size_t* _count);
|
||||||
|
|
||||||
virtual Encoder* NewEncoder(
|
virtual BEncoder* NewEncoder(
|
||||||
const media_codec_info& codecInfo);
|
const media_codec_info& codecInfo);
|
||||||
|
|
||||||
virtual Encoder* NewEncoder(const media_format& format);
|
virtual BEncoder* NewEncoder(const media_format& format);
|
||||||
|
|
||||||
virtual status_t RegisterNextEncoder(int32* cookie,
|
virtual status_t RegisterNextEncoder(int32* cookie,
|
||||||
media_codec_info* codecInfo,
|
media_codec_info* codecInfo,
|
||||||
|
|||||||
Reference in New Issue
Block a user