Native Vorbis encoder. More...
#include <float.h>#include "avcodec.h"#include "dsputil.h"#include "vorbis.h"#include "vorbis_enc_data.h"#include "bitstream.h"#include <assert.h>Go to the source code of this file.
Native Vorbis encoder.
Definition in file vorbis_enc.c.
| #define BITSTREAM_WRITER_LE |
Definition at line 33 of file vorbis_enc.c.
| static int apply_window_and_mdct | ( | vorbis_enc_context * | venc, | |
| signed short * | audio, | |||
| int | samples | |||
| ) | [static] |
Definition at line 844 of file vorbis_enc.c.
Referenced by vorbis_encode_frame().
| static int cb_lookup_vals | ( | int | lookup, | |
| int | dimentions, | |||
| int | entries | |||
| ) | [static] |
Definition at line 135 of file vorbis_enc.c.
Referenced by create_vorbis_context(), put_codebook_header(), and ready_codebook().
| static void create_vorbis_context | ( | vorbis_enc_context * | venc, | |
| AVCodecContext * | avccontext | |||
| ) | [static] |
Definition at line 206 of file vorbis_enc.c.
Referenced by vorbis_encode_init().
| static void floor_encode | ( | vorbis_enc_context * | venc, | |
| vorbis_enc_floor * | fc, | |||
| PutBitContext * | pb, | |||
| uint_fast16_t * | posts, | |||
| float * | floor, | |||
| int | samples | |||
| ) | [static] |
Definition at line 666 of file vorbis_enc.c.
Referenced by vorbis_encode_frame().
| static void floor_fit | ( | vorbis_enc_context * | venc, | |
| vorbis_enc_floor * | fc, | |||
| float * | coeffs, | |||
| uint_fast16_t * | posts, | |||
| int | samples | |||
| ) | [static] |
Definition at line 638 of file vorbis_enc.c.
Referenced by vorbis_encode_frame().
| static float get_floor_average | ( | vorbis_enc_floor * | fc, | |
| float * | coeffs, | |||
| int | i | |||
| ) | [static] |
Definition at line 627 of file vorbis_enc.c.
Referenced by floor_fit().
| static void put_codebook_header | ( | PutBitContext * | pb, | |
| vorbis_enc_codebook * | cb | |||
| ) | [static] |
Definition at line 376 of file vorbis_enc.c.
Referenced by put_main_header().
| static void put_codeword | ( | PutBitContext * | pb, | |
| vorbis_enc_codebook * | cb, | |||
| int | entry | |||
| ) | [inline, static] |
Definition at line 128 of file vorbis_enc.c.
Referenced by floor_encode(), put_vector(), and residue_encode().
| static void put_float | ( | PutBitContext * | pb, | |
| float | f | |||
| ) | [static] |
Definition at line 366 of file vorbis_enc.c.
Referenced by put_codebook_header().
| static void put_floor_header | ( | PutBitContext * | pb, | |
| vorbis_enc_floor * | fc | |||
| ) | [static] |
Definition at line 435 of file vorbis_enc.c.
Referenced by put_main_header().
| static int put_main_header | ( | vorbis_enc_context * | venc, | |
| uint8_t ** | out | |||
| ) | [static] |
Definition at line 498 of file vorbis_enc.c.
Referenced by vorbis_encode_init().
| static void put_residue_header | ( | PutBitContext * | pb, | |
| vorbis_enc_residue * | rc | |||
| ) | [static] |
Definition at line 467 of file vorbis_enc.c.
Referenced by put_main_header().
| static float* put_vector | ( | vorbis_enc_codebook * | book, | |
| PutBitContext * | pb, | |||
| float * | num | |||
| ) | [static] |
Definition at line 740 of file vorbis_enc.c.
Referenced by residue_encode().
| static void ready_codebook | ( | vorbis_enc_codebook * | cb | ) | [static] |
Definition at line 141 of file vorbis_enc.c.
Referenced by create_vorbis_context().
| static void ready_residue | ( | vorbis_enc_residue * | rc, | |
| vorbis_enc_context * | venc | |||
| ) | [static] |
Definition at line 174 of file vorbis_enc.c.
Referenced by create_vorbis_context().
| static int render_point | ( | int | x0, | |
| int | y0, | |||
| int | x1, | |||
| int | y1, | |||
| int | x | |||
| ) | [static] |
Definition at line 662 of file vorbis_enc.c.
Referenced by floor_encode().
| static void residue_encode | ( | vorbis_enc_context * | venc, | |
| vorbis_enc_residue * | rc, | |||
| PutBitContext * | pb, | |||
| float * | coeffs, | |||
| int | samples, | |||
| int | real_ch | |||
| ) | [static] |
Definition at line 759 of file vorbis_enc.c.
Referenced by vorbis_encode_frame().
| static av_cold int vorbis_encode_close | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 979 of file vorbis_enc.c.
| static int vorbis_encode_frame | ( | AVCodecContext * | avccontext, | |
| unsigned char * | packets, | |||
| int | buf_size, | |||
| void * | data | |||
| ) | [static] |
Definition at line 921 of file vorbis_enc.c.
| static av_cold int vorbis_encode_init | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 894 of file vorbis_enc.c.
{
"vorbis",
CODEC_TYPE_AUDIO,
CODEC_ID_VORBIS,
sizeof(vorbis_enc_context),
vorbis_encode_init,
vorbis_encode_frame,
vorbis_encode_close,
.capabilities= CODEC_CAP_DELAY,
.sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Vorbis"),
}
Definition at line 1039 of file vorbis_enc.c.
1.7.1