FFmpeg
Loading...
Searching...
No Matches
api-ac3-flush-test.c File Reference
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "libavcodec/avcodec.h"
#include "libavutil/channel_layout.h"
#include "libavutil/error.h"
#include "libavutil/frame.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"

Go to the source code of this file.

Data Structures

struct  ExportValues
 

Functions

static int check_double (AVCodecContext *ctx, const char *name, double expected)
 
static int check_int (AVCodecContext *ctx, const char *name, int64_t expected)
 
static int check_downmix (AVCodecContext *ctx)
 
static int check_options (AVCodecContext *ctx, int has_target_level)
 
static int get_export_values (AVCodecContext *ctx, struct ExportValues *values)
 
static int generate_ac3_packet (AVPacket *pkt)
 
static int decode_one_frame (AVCodecContext *ctx, const AVPacket *src_pkt)
 
static int check_export_values (AVCodecContext *ctx, const struct ExportValues *expected)
 
static int run_test (const char *name, const AVPacket *pkt)
 
int main (void)
 

Function Documentation

◆ check_double()

static int check_double ( AVCodecContext * ctx,
const char * name,
double expected )
static

Definition at line 38 of file api-ac3-flush-test.c.

Referenced by check_export_values(), and check_options().

◆ check_int()

static int check_int ( AVCodecContext * ctx,
const char * name,
int64_t expected )
static

Definition at line 56 of file api-ac3-flush-test.c.

Referenced by check_export_values(), and check_options().

◆ check_downmix()

static int check_downmix ( AVCodecContext * ctx)
static

Definition at line 74 of file api-ac3-flush-test.c.

Referenced by check_options().

◆ check_options()

static int check_options ( AVCodecContext * ctx,
int has_target_level )
static

Definition at line 95 of file api-ac3-flush-test.c.

Referenced by run_test().

◆ get_export_values()

static int get_export_values ( AVCodecContext * ctx,
struct ExportValues * values )
static

Definition at line 116 of file api-ac3-flush-test.c.

Referenced by run_test().

◆ generate_ac3_packet()

static int generate_ac3_packet ( AVPacket * pkt)
static

Definition at line 134 of file api-ac3-flush-test.c.

Referenced by main().

◆ decode_one_frame()

static int decode_one_frame ( AVCodecContext * ctx,
const AVPacket * src_pkt )
static

Definition at line 201 of file api-ac3-flush-test.c.

Referenced by run_test().

◆ check_export_values()

static int check_export_values ( AVCodecContext * ctx,
const struct ExportValues * expected )
static

Definition at line 224 of file api-ac3-flush-test.c.

Referenced by run_test().

◆ run_test()

static int run_test ( const char * name,
const AVPacket * pkt )
static

Definition at line 239 of file api-ac3-flush-test.c.

Referenced by main().

◆ main()

int main ( void )

Definition at line 312 of file api-ac3-flush-test.c.