FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
opusenc_psy.c File Reference
#include "opusenc_psy.h"
#include "opus_pvq.h"
#include "opustab.h"
#include "mdct15.h"
#include "libavutil/qsort.h"

Go to the source code of this file.

Functions

static void step_collect_psy_metrics (OpusPsyContext *s, int index)
 
static void search_for_change_points (OpusPsyContext *s, float tgt_change, int offset_s, int offset_e, int resolution, int level)
 
static int flush_silent_frames (OpusPsyContext *s)
 
static void psy_output_groups (OpusPsyContext *s)
 
int ff_opus_psy_process (OpusPsyContext *s, OpusPacketInfo *p)
 
void ff_opus_psy_celt_frame_init (OpusPsyContext *s, CeltFrame *f, int index)
 
static void celt_gauge_psy_weight (OpusPsyContext *s, OpusPsyStep **start, CeltFrame *f_out)
 
static int bands_dist (OpusPsyContext *s, CeltFrame *f, float *total_dist)
 
static void celt_search_for_dual_stereo (OpusPsyContext *s, CeltFrame *f)
 
static void celt_search_for_intensity (OpusPsyContext *s, CeltFrame *f)
 
static int celt_search_for_tf (OpusPsyContext *s, OpusPsyStep **start, CeltFrame *f)
 
int ff_opus_psy_celt_frame_process (OpusPsyContext *s, CeltFrame *f, int index)
 
void ff_opus_psy_postencode_update (OpusPsyContext *s, CeltFrame *f, OpusRangeCoder *rc)
 
av_cold int ff_opus_psy_init (OpusPsyContext *s, AVCodecContext *avctx, struct FFBufQueue *bufqueue, OpusEncOptions *options)
 
void ff_opus_psy_signal_eof (OpusPsyContext *s)
 
av_cold int ff_opus_psy_end (OpusPsyContext *s)
 

Function Documentation

static void step_collect_psy_metrics ( OpusPsyContext s,
int  index 
)
static

Definition at line 29 of file opusenc_psy.c.

Referenced by ff_opus_psy_process().

static void search_for_change_points ( OpusPsyContext s,
float  tgt_change,
int  offset_s,
int  offset_e,
int  resolution,
int  level 
)
static

Definition at line 114 of file opusenc_psy.c.

Referenced by ff_opus_psy_process().

static int flush_silent_frames ( OpusPsyContext s)
static

Definition at line 134 of file opusenc_psy.c.

Referenced by psy_output_groups().

static void psy_output_groups ( OpusPsyContext s)
static

Definition at line 156 of file opusenc_psy.c.

Referenced by ff_opus_psy_process().

int ff_opus_psy_process ( OpusPsyContext s,
OpusPacketInfo p 
)

Definition at line 173 of file opusenc_psy.c.

Referenced by opus_encode_frame().

void ff_opus_psy_celt_frame_init ( OpusPsyContext s,
CeltFrame f,
int  index 
)

Definition at line 204 of file opusenc_psy.c.

Referenced by celt_encode_frame().

static void celt_gauge_psy_weight ( OpusPsyContext s,
OpusPsyStep **  start,
CeltFrame f_out 
)
static

Definition at line 260 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

static int bands_dist ( OpusPsyContext s,
CeltFrame f,
float *  total_dist 
)
static

Definition at line 313 of file opusenc_psy.c.

Referenced by celt_search_for_dual_stereo(), and celt_search_for_intensity().

static void celt_search_for_dual_stereo ( OpusPsyContext s,
CeltFrame f 
)
static

Definition at line 332 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

static void celt_search_for_intensity ( OpusPsyContext s,
CeltFrame f 
)
static

Definition at line 344 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

static int celt_search_for_tf ( OpusPsyContext s,
OpusPsyStep **  start,
CeltFrame f 
)
static

Definition at line 365 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

int ff_opus_psy_celt_frame_process ( OpusPsyContext s,
CeltFrame f,
int  index 
)

Definition at line 400 of file opusenc_psy.c.

Referenced by celt_encode_frame().

void ff_opus_psy_postencode_update ( OpusPsyContext s,
CeltFrame f,
OpusRangeCoder rc 
)

Definition at line 424 of file opusenc_psy.c.

Referenced by opus_encode_frame().

av_cold int ff_opus_psy_init ( OpusPsyContext s,
AVCodecContext avctx,
struct FFBufQueue bufqueue,
OpusEncOptions options 
)

Definition at line 461 of file opusenc_psy.c.

Referenced by opus_encode_init().

void ff_opus_psy_signal_eof ( OpusPsyContext s)

Definition at line 533 of file opusenc_psy.c.

Referenced by opus_encode_frame().

av_cold int ff_opus_psy_end ( OpusPsyContext s)

Definition at line 538 of file opusenc_psy.c.

Referenced by opus_encode_end().