FFmpeg
|
roqaudioenc.c File Reference
Include dependency graph for roqaudioenc.c:
Go to the source code of this file.
Data Structures | |
struct | ROQDPCMContext |
Macros | |
#define | ROQ_FRAME_SIZE 735 |
#define | ROQ_HEADER_SIZE 8 |
#define | MAX_DPCM (127*127) |
Functions | |
static av_cold int | roq_dpcm_encode_close (AVCodecContext *avctx) |
static av_cold int | roq_dpcm_encode_init (AVCodecContext *avctx) |
static unsigned char | dpcm_predict (short *previous, short current) |
static int | roq_dpcm_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
AVCodec | ff_roq_dpcm_encoder |
Macro Definition Documentation
#define MAX_DPCM (127*127) |
Definition at line 32 of file roqaudioenc.c.
Referenced by dpcm_predict().
#define ROQ_FRAME_SIZE 735 |
Definition at line 29 of file roqaudioenc.c.
Referenced by roq_dpcm_encode_init().
#define ROQ_HEADER_SIZE 8 |
Definition at line 30 of file roqaudioenc.c.
Referenced by roq_dpcm_encode_frame(), and roq_dpcm_encode_init().
Function Documentation
|
static |
Definition at line 87 of file roqaudioenc.c.
Referenced by roq_dpcm_encode_frame().
|
static |
Definition at line 45 of file roqaudioenc.c.
Referenced by roq_dpcm_encode_init().
|
static |
Definition at line 127 of file roqaudioenc.c.
|
static |
Definition at line 54 of file roqaudioenc.c.
Variable Documentation
AVCodec ff_roq_dpcm_encoder |
Initial value:
= {
.name = "roq_dpcm",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_ROQ_DPCM,
.priv_data_size = sizeof(ROQDPCMContext),
.encode2 = roq_dpcm_encode_frame,
.capabilities = CODEC_CAP_DELAY,
.long_name = NULL_IF_CONFIG_SMALL("id RoQ DPCM"),
}
Definition: libavcodec/avcodec.h:375
static av_cold int roq_dpcm_encode_close(AVCodecContext *avctx)
Definition: roqaudioenc.c:45
Definition: samplefmt.h:50
Definition: roqaudioenc.c:35
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: libavcodec/avcodec.h:770
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: roqaudioenc.c:127
static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
Definition: roqaudioenc.c:54
Definition at line 194 of file roqaudioenc.c.
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11