FFmpeg
|
#include <inttypes.h>
#include <math.h>
#include "libavutil/avassert.h"
#include "libavutil/float_dsp.h"
#include "libavutil/mem.h"
#include "libavutil/tx.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "internal.h"
#include "vorbis.h"
#include "vorbisdsp.h"
#include "vorbis_data.h"
#include "xiph.h"
Go to the source code of this file.
Data Structures | |
struct | vorbis_codebook |
struct | vorbis_floor |
union | vorbis_floor::vorbis_floor_u |
struct | vorbis_floor::vorbis_floor_u::vorbis_floor0_s |
struct | vorbis_floor::vorbis_floor_u::vorbis_floor1_s |
struct | vorbis_residue |
struct | vorbis_mapping |
struct | vorbis_mode |
struct | vorbis_context_s |
Macros | |
#define | BITSTREAM_READER_LE |
#define | V_NB_BITS 8 |
#define | V_NB_BITS2 11 |
#define | V_MAX_VLCS (1 << 16) |
#define | V_MAX_PARTITIONS (1 << 20) |
#define | BARK(x) (13.1f * atan(0.00074f * (x)) + 2.24f * atan(1.85e-8f * (x) * (x)) + 1e-4f * (x)) |
#define | VALIDATE_INDEX(idx, limit) |
#define | GET_VALIDATED_INDEX(idx, bits, limit) |
Typedefs | |
typedef union vorbis_floor_u | vorbis_floor_data |
typedef struct vorbis_floor0_s | vorbis_floor0 |
typedef struct vorbis_floor1_s | vorbis_floor1 |
typedef int(* | vorbis_floor_decode_func) (struct vorbis_context_s *, vorbis_floor_data *, float *) |
Functions | |
static float | vorbisfloat2float (unsigned val) |
static void | vorbis_free (vorbis_context *vc) |
static int | vorbis_parse_setup_hdr_codebooks (vorbis_context *vc) |
static int | vorbis_parse_setup_hdr_tdtransforms (vorbis_context *vc) |
static int | vorbis_floor0_decode (vorbis_context *vc, vorbis_floor_data *vfu, float *vec) |
static int | create_map (vorbis_context *vc, unsigned floor_number) |
static int | vorbis_floor1_decode (vorbis_context *vc, vorbis_floor_data *vfu, float *vec) |
static int | vorbis_parse_setup_hdr_floors (vorbis_context *vc) |
static int | vorbis_parse_setup_hdr_residues (vorbis_context *vc) |
static int | vorbis_parse_setup_hdr_mappings (vorbis_context *vc) |
static int | vorbis_parse_setup_hdr_modes (vorbis_context *vc) |
static int | vorbis_parse_setup_hdr (vorbis_context *vc) |
static int | vorbis_parse_id_hdr (vorbis_context *vc) |
static av_cold int | vorbis_decode_init (AVCodecContext *avctx) |
static av_always_inline int | setup_classifs (vorbis_context *vc, vorbis_residue *vr, uint8_t *do_not_decode, unsigned ch_used, int partition_count, int ptns_to_read) |
static av_always_inline int | vorbis_residue_decode_internal (vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, float *vec, unsigned vlen, unsigned ch_left, int vr_type) |
static int | vorbis_residue_decode (vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, float *vec, unsigned vlen, unsigned ch_left) |
static int | vorbis_parse_audio_packet (vorbis_context *vc, float **floor_ptr) |
static int | vorbis_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
static av_cold int | vorbis_decode_close (AVCodecContext *avctx) |
static av_cold void | vorbis_decode_flush (AVCodecContext *avctx) |
Variables | |
static const char | idx_err_str [] = "Index value %d out of range (0 - %d) for %s at %s:%i\n" |
const FFCodec | ff_vorbis_decoder |
Vorbis I decoder
This file is part of FFmpeg.
FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Vorbis I decoder
Definition in file vorbisdec.c.
#define BITSTREAM_READER_LE |
Definition at line 37 of file vorbisdec.c.
#define V_NB_BITS 8 |
Definition at line 48 of file vorbisdec.c.
#define V_NB_BITS2 11 |
Definition at line 49 of file vorbisdec.c.
#define V_MAX_VLCS (1 << 16) |
Definition at line 50 of file vorbisdec.c.
#define V_MAX_PARTITIONS (1 << 20) |
Definition at line 51 of file vorbisdec.c.
Definition at line 165 of file vorbisdec.c.
#define VALIDATE_INDEX | ( | idx, | |
limit | |||
) |
Definition at line 169 of file vorbisdec.c.
Definition at line 176 of file vorbisdec.c.
typedef union vorbis_floor_u vorbis_floor_data |
Definition at line 62 of file vorbisdec.c.
typedef struct vorbis_floor0_s vorbis_floor0 |
Definition at line 63 of file vorbisdec.c.
typedef struct vorbis_floor1_s vorbis_floor1 |
Definition at line 64 of file vorbisdec.c.
typedef int(* vorbis_floor_decode_func) (struct vorbis_context_s *, vorbis_floor_data *, float *) |
Definition at line 68 of file vorbisdec.c.
|
static |
Definition at line 182 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr_codebooks().
|
static |
Definition at line 194 of file vorbisdec.c.
Referenced by vorbis_decode_close(), vorbis_decode_frame(), and vorbis_decode_init().
|
static |
Definition at line 244 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr().
|
static |
Definition at line 483 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr().
|
static |
Definition at line 1117 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr_floors().
|
static |
Definition at line 860 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr_floors().
|
static |
Definition at line 1231 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr_floors().
|
static |
Definition at line 509 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr().
|
static |
Definition at line 699 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr().
|
static |
Definition at line 780 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr().
|
static |
Definition at line 895 of file vorbisdec.c.
Referenced by vorbis_parse_setup_hdr().
|
static |
Definition at line 924 of file vorbisdec.c.
Referenced by vorbis_decode_frame(), and vorbis_decode_init().
|
static |
Definition at line 970 of file vorbisdec.c.
Referenced by vorbis_decode_frame(), and vorbis_decode_init().
|
static |
Definition at line 1050 of file vorbisdec.c.
|
static |
Definition at line 1358 of file vorbisdec.c.
Referenced by vorbis_residue_decode_internal().
|
static |
Definition at line 1407 of file vorbisdec.c.
Referenced by vorbis_residue_decode().
|
inlinestatic |
Definition at line 1585 of file vorbisdec.c.
Referenced by vorbis_parse_audio_packet().
|
static |
Definition at line 1605 of file vorbisdec.c.
Referenced by vorbis_decode_frame().
|
static |
Definition at line 1770 of file vorbisdec.c.
|
static |
Definition at line 1864 of file vorbisdec.c.
|
static |
Definition at line 1873 of file vorbisdec.c.
Definition at line 168 of file vorbisdec.c.
const FFCodec ff_vorbis_decoder |
Definition at line 1885 of file vorbisdec.c.