FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
api-flac-test.c File Reference
#include "libavcodec/avcodec.h"
#include "libavutil/common.h"
#include "libavutil/samplefmt.h"

Go to the source code of this file.

Macros

#define NUMBER_OF_FRAMES   200
 
#define NAME_BUFF_SIZE   100
 

Functions

static int generate_raw_frame (uint16_t *frame_data, int i, int sample_rate, int channels, int frame_size)
 
static int init_encoder (AVCodec *enc, AVCodecContext **enc_ctx, int64_t ch_layout, int sample_rate)
 
static int init_decoder (AVCodec *dec, AVCodecContext **dec_ctx, int64_t ch_layout)
 
static int run_test (AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx, AVCodecContext *dec_ctx)
 
static int close_encoder (AVCodecContext **enc_ctx)
 
static int close_decoder (AVCodecContext **dec_ctx)
 
int main (void)
 

Macro Definition Documentation

#define NUMBER_OF_FRAMES   200

Definition at line 34 of file api-flac-test.c.

Referenced by run_test().

#define NAME_BUFF_SIZE   100

Definition at line 35 of file api-flac-test.c.

Referenced by init_encoder().

Function Documentation

static int generate_raw_frame ( uint16_t *  frame_data,
int  i,
int  sample_rate,
int  channels,
int  frame_size 
)
static

Definition at line 38 of file api-flac-test.c.

Referenced by run_test().

static int init_encoder ( AVCodec enc,
AVCodecContext **  enc_ctx,
int64_t  ch_layout,
int  sample_rate 
)
static

Definition at line 51 of file api-flac-test.c.

Referenced by main().

static int init_decoder ( AVCodec dec,
AVCodecContext **  dec_ctx,
int64_t  ch_layout 
)
static

Definition at line 81 of file api-flac-test.c.

Referenced by main().

static int run_test ( AVCodec enc,
AVCodec dec,
AVCodecContext enc_ctx,
AVCodecContext dec_ctx 
)
static

Definition at line 108 of file api-flac-test.c.

Referenced by main().

static int close_encoder ( AVCodecContext **  enc_ctx)
static

Definition at line 226 of file api-flac-test.c.

Referenced by main().

static int close_decoder ( AVCodecContext **  dec_ctx)
static

Definition at line 233 of file api-flac-test.c.

Referenced by main().

int main ( void  )

Definition at line 240 of file api-flac-test.c.