ADPCM Codecs
All Classes Files Functions Variables Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
adpcm_ffmpeg::ADPCMEncoder Class Referenceabstract

ADPCM Encoder. More...

#include <ADPCMEncoder.h>

Inheritance diagram for adpcm_ffmpeg::ADPCMEncoder:
Inheritance graph
[legend]
Collaboration diagram for adpcm_ffmpeg::ADPCMEncoder:
Collaboration graph
[legend]

Public Member Functions

bool begin (int sampleRate, int channels)
 
void end ()
 
AVPacketencode (int16_t *data, size_t sampleCount)
 
virtual bool is_trellis ()
 
int blockAlign ()
 
AVCodecContextctx ()
 
void setCodecID (AVCodecID id)
 
AVCodecID codecID ()
 
void setFrameSize (int fs)
 
virtual void setBlockSize (int size)
 
int blockSize ()
 
int frameSize ()
 
int channels ()
 
bool isPlanar ()
 

Protected Member Functions

virtual int adpcm_encode_init_impl ()=0
 
virtual int adpcm_encode_init ()
 
int adpcm_encode_close ()
 
uint8_t adpcm_ima_compress_sample (ADPCMChannelStatus *c, int16_t sample)
 
uint8_t adpcm_ima_qt_compress_sample (ADPCMChannelStatus *c, int16_t sample)
 
uint8_t adpcm_yamaha_compress_sample (ADPCMChannelStatus *c, int16_t sample)
 
virtual int adpcm_encode_frame_impl (AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)=0
 
virtual int adpcm_encode_frame (AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 
int av_get_bits_per_sample ()
 
int ff_get_encode_buffer (AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int flags)
 
int ff_get_buffer (AVCodecContext *avctx, AVFrame *frame, int flags)
 
void avpriv_request_sample (void *avc, const char *msg,...)
 

Protected Attributes

AVPacket result
 
AVFrame frame
 
int16_t * extended_data [2] = {0}
 
std::vector< uint8_t > av_packet_data
 
std::vector< std::vector< int16_t > > frame_extended_data_vectors
 
int st
 
int pkt_size
 
int ret
 
const int16_t * samples
 
const int16_t *const * samples_p
 
uint8_t * dst
 
ADPCMEncodeContextc
 
ADPCMEncodeContexts
 
AVCodecContext avctx
 
ADPCMEncodeContext enc_ctx
 
std::vector< AVSampleFormat > sample_formats
 

Detailed Description

ADPCM Encoder.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: