FFmpeg
|
libshine.c File Reference
#include <shine/layer3.h>
#include "libavutil/intreadwrite.h"
#include "audio_frame_queue.h"
#include "avcodec.h"
#include "internal.h"
#include "mpegaudio.h"
#include "mpegaudiodecheader.h"
Include dependency graph for libshine.c:
Go to the source code of this file.
Data Structures | |
struct | SHINEContext |
Macros | |
#define | BUFFER_SIZE (4096 * 20) |
Typedefs | |
typedef struct SHINEContext | SHINEContext |
Functions | |
static av_cold int | libshine_encode_init (AVCodecContext *avctx) |
static int | libshine_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
static av_cold int | libshine_encode_close (AVCodecContext *avctx) |
Variables | |
static const int | libshine_sample_rates [] |
AVCodec | ff_libshine_encoder |
Macro Definition Documentation
#define BUFFER_SIZE (4096 * 20) |
Definition at line 31 of file libshine.c.
Referenced by libshine_encode_frame().
Typedef Documentation
typedef struct SHINEContext SHINEContext |
Function Documentation
|
static |
Definition at line 120 of file libshine.c.
|
static |
Definition at line 68 of file libshine.c.
|
static |
Definition at line 41 of file libshine.c.
Variable Documentation
AVCodec ff_libshine_encoder |
Initial value:
= {
.name = "libshine",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_MP3,
.priv_data_size = sizeof(SHINEContext),
.encode2 = libshine_encode_frame,
.capabilities = CODEC_CAP_DELAY,
.supported_samplerates = libshine_sample_rates,
.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO,
0 },
.long_name = NULL_IF_CONFIG_SMALL("libshine MP3 (MPEG audio layer 3)"),
}
Definition: samplefmt.h:50
static av_cold int libshine_encode_close(AVCodecContext *avctx)
Definition: libshine.c:120
#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 av_cold int libshine_encode_init(AVCodecContext *avctx)
Definition: libshine.c:41
static int libshine_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libshine.c:68
struct SHINEContext SHINEContext
Definition at line 133 of file libshine.c.
|
static |
Initial value:
= {
44100, 48000, 32000, 0
}
Definition at line 129 of file libshine.c.
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11