FFmpeg
|
libilbc.c File Reference
#include <ilbc.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
Include dependency graph for libilbc.c:
Go to the source code of this file.
Data Structures | |
struct | ILBCDecContext |
struct | ILBCEncContext |
Typedefs | |
typedef struct ILBCDecContext | ILBCDecContext |
typedef struct ILBCEncContext | ILBCEncContext |
Functions | |
static int | get_mode (AVCodecContext *avctx) |
static av_cold int | ilbc_decode_init (AVCodecContext *avctx) |
static int | ilbc_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
static av_cold int | ilbc_encode_init (AVCodecContext *avctx) |
static int | ilbc_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static const AVOption | ilbc_dec_options [] |
static const AVClass | ilbc_dec_class |
AVCodec | ff_libilbc_decoder |
static const AVOption | ilbc_enc_options [] |
static const AVClass | ilbc_enc_class |
static const AVCodecDefault | ilbc_encode_defaults [] |
AVCodec | ff_libilbc_encoder |
Typedef Documentation
typedef struct ILBCDecContext ILBCDecContext |
typedef struct ILBCEncContext ILBCEncContext |
Function Documentation
|
static |
Definition at line 30 of file libilbc.c.
Referenced by ilbc_decode_init(), and ilbc_encode_init().
|
static |
|
static |
|
static |
|
static |
Variable Documentation
AVCodec ff_libilbc_decoder |
Initial value:
= {
.name = "libilbc",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_ILBC,
.priv_data_size = sizeof(ILBCDecContext),
.init = ilbc_decode_init,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("iLBC (Internet Low Bitrate Codec)"),
.priv_class = &ilbc_dec_class,
}
static int ilbc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: libilbc.c:80
struct ILBCDecContext ILBCDecContext
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#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 decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
Definition: libavcodec/avcodec.h:441
AVCodec ff_libilbc_encoder |
Initial value:
= {
.name = "libilbc",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_ILBC,
.priv_data_size = sizeof(ILBCEncContext),
.init = ilbc_encode_init,
.encode2 = ilbc_encode_frame,
.long_name = NULL_IF_CONFIG_SMALL("iLBC (Internet Low Bitrate Codec)"),
.defaults = ilbc_encode_defaults,
.priv_class = &ilbc_enc_class,
}
struct ILBCEncContext ILBCEncContext
Definition: samplefmt.h:50
#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 ilbc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libilbc.c:164
Definition: libavcodec/avcodec.h:441
|
static |
Initial value:
= {
.class_name = "libilbc",
.item_name = av_default_item_name,
.option = ilbc_dec_options,
.version = LIBAVUTIL_VERSION_INT,
}
|
static |
Initial value:
= {
{ "enhance", "Enhance the decoded audio (adds delay)", offsetof(ILBCDecContext, enhance), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM },
{ NULL }
}
Definition: opt.h:222
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282
Definition: libilbc.c:42
|
static |
Initial value:
= {
.class_name = "libilbc",
.item_name = av_default_item_name,
.option = ilbc_enc_options,
.version = LIBAVUTIL_VERSION_INT,
}
|
static |
Initial value:
= {
{ "mode", "iLBC mode (20 or 30 ms frames)", offsetof(ILBCEncContext, mode), AV_OPT_TYPE_INT, { .i64 = 20 }, 20, 30, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM },
{ NULL }
}
Definition: opt.h:222
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:281
Definition: libilbc.c:119
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11