FFmpeg
|
libtwolame.c File Reference
Interface to libtwolame for mp2 encoding. More...
#include <twolame.h>
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include "mpegaudio.h"
Include dependency graph for libtwolame.c:
Go to the source code of this file.
Data Structures | |
struct | TWOLAMEContext |
Macros | |
#define | OFFSET(x) offsetof(TWOLAMEContext, x) |
#define | AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef struct TWOLAMEContext | TWOLAMEContext |
Functions | |
static av_cold int | twolame_encode_close (AVCodecContext *avctx) |
static av_cold int | twolame_encode_init (AVCodecContext *avctx) |
static int | twolame_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static const AVOption | options [] |
static const AVClass | libtwolame_class |
AVCodec | ff_libtwolame_encoder |
Detailed Description
Interface to libtwolame for mp2 encoding.
Definition in file libtwolame.c.
Macro Definition Documentation
#define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 153 of file libtwolame.c.
#define OFFSET | ( | x | ) | offsetof(TWOLAMEContext, x) |
Definition at line 152 of file libtwolame.c.
Typedef Documentation
typedef struct TWOLAMEContext TWOLAMEContext |
Function Documentation
|
static |
Definition at line 47 of file libtwolame.c.
Referenced by twolame_encode_init().
|
static |
Definition at line 91 of file libtwolame.c.
|
static |
Definition at line 54 of file libtwolame.c.
Variable Documentation
AVCodec ff_libtwolame_encoder |
Initial value:
= {
.name = "libtwolame",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_MP2,
.priv_data_size = sizeof(TWOLAMEContext),
.encode2 = twolame_encode_frame,
.capabilities = CODEC_CAP_DELAY,
.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO,
0 },
.supported_samplerates = (const int[]){ 16000, 22050, 24000, 32000, 44100, 48000, 0 },
.long_name = NULL_IF_CONFIG_SMALL("libtwolame MP2 (MPEG audio layer 2)"),
.priv_class = &libtwolame_class,
}
static av_cold int twolame_encode_init(AVCodecContext *avctx)
Definition: libtwolame.c:54
Definition: samplefmt.h:50
struct TWOLAMEContext TWOLAMEContext
#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
Definition: libavcodec/avcodec.h:381
static int twolame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libtwolame.c:91
static av_cold int twolame_encode_close(AVCodecContext *avctx)
Definition: libtwolame.c:47
Definition at line 176 of file libtwolame.c.
|
static |
Initial value:
= {
.class_name = "libtwolame encoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
Definition at line 169 of file libtwolame.c.
|
static |
Initial value:
= {
{ "mode", "Mpeg Mode", OFFSET(mode), AV_OPT_TYPE_INT, { .i64 = TWOLAME_AUTO_MODE }, TWOLAME_AUTO_MODE, TWOLAME_MONO, AE, "mode"},
{ "error_protection","enable CRC error protection", OFFSET(error_protection), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AE},
{ "copyright", "set MPEG Audio Copyright flag", OFFSET(copyright), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AE},
{ "original", "set MPEG Audio Original flag", OFFSET(original), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AE},
{ NULL },
}
or the Software in violation of any applicable export control laws in any jurisdiction Except as provided by mandatorily applicable UPF has no obligation to provide you with source code to the Software In the event Software contains any source unless expressly licensed for other it is provided solely for reference purposes pursuant to the terms of this License Source code may not be redistributed unless expressly provided for in this License INTELLECTUAL AND INDUSTRIAL PROPERTY RIGHTS Title to Software and all associated intellectual and industrial property rights is retained by UPF and or its licensors UPF warrants that the copyright in the Software is owned by it or licensed to it and that it has the power and authority to grant the Licence You shall keep intact all copyright
Definition: MELODIA - License.txt:24
Definition: opt.h:222
Definition: opt.h:229
Definition at line 154 of file libtwolame.c.
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11