FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
atrac3plusdec.c File Reference

Sony ATRAC3+ compatible decoder. More...

#include <stdint.h>
#include <string.h>
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "atrac.h"
#include "atrac3plus.h"

Go to the source code of this file.

Data Structures

struct  ATRAC3PContext
 

Functions

static av_cold int atrac3p_decode_close (AVCodecContext *avctx)
 
static av_cold int set_channel_params (ATRAC3PContext *ctx, AVCodecContext *avctx)
 
static av_cold int atrac3p_decode_init (AVCodecContext *avctx)
 
static void decode_residual_spectrum (Atrac3pChanUnitCtx *ctx, float out[2][ATRAC3P_FRAME_SAMPLES], int num_channels, AVCodecContext *avctx)
 
static void reconstruct_frame (ATRAC3PContext *ctx, Atrac3pChanUnitCtx *ch_unit, int num_channels, AVCodecContext *avctx)
 
static int atrac3p_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

AVCodec ff_atrac3p_decoder
 

Detailed Description

Sony ATRAC3+ compatible decoder.

Container formats used to store its data: RIFF WAV (.at3) and Sony OpenMG (.oma, .aa3).

Technical description of this codec can be found here: http://wiki.multimedia.cx/index.php?title=ATRAC3plus

Kudos to Benjamin Larsson and Michael Karcher for their precious technical help!

Definition in file atrac3plusdec.c.

Function Documentation

static av_cold int atrac3p_decode_close ( AVCodecContext avctx)
static

Definition at line 68 of file atrac3plusdec.c.

Referenced by atrac3p_decode_init().

static av_cold int set_channel_params ( ATRAC3PContext ctx,
AVCodecContext avctx 
)
static

Definition at line 75 of file atrac3plusdec.c.

Referenced by atrac3p_decode_init().

static av_cold int atrac3p_decode_init ( AVCodecContext avctx)
static

Definition at line 141 of file atrac3plusdec.c.

static void decode_residual_spectrum ( Atrac3pChanUnitCtx ctx,
float  out[2][ATRAC3P_FRAME_SAMPLES],
int  num_channels,
AVCodecContext avctx 
)
static

Definition at line 196 of file atrac3plusdec.c.

Referenced by atrac3p_decode_frame().

static void reconstruct_frame ( ATRAC3PContext ctx,
Atrac3pChanUnitCtx ch_unit,
int  num_channels,
AVCodecContext avctx 
)
static

Definition at line 260 of file atrac3plusdec.c.

Referenced by atrac3p_decode_frame().

static int atrac3p_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 325 of file atrac3plusdec.c.

Variable Documentation

AVCodec ff_atrac3p_decoder
Initial value:
= {
.name = "atrac3plus",
.long_name = NULL_IF_CONFIG_SMALL("ATRAC3+ (Adaptive TRansform Acoustic Coding 3+)"),
.priv_data_size = sizeof(ATRAC3PContext),
}

Definition at line 387 of file atrac3plusdec.c.