FFmpeg  4.0
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 float pvq_band_cost (CeltPVQ *pvq, CeltFrame *f, OpusRangeCoder *rc, int band, float *bits, float lambda)
 
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

◆ pvq_band_cost()

static float pvq_band_cost ( CeltPVQ pvq,
CeltFrame f,
OpusRangeCoder rc,
int  band,
float *  bits,
float  lambda 
)
static

Definition at line 28 of file opusenc_psy.c.

Referenced by bands_dist().

◆ step_collect_psy_metrics()

static void step_collect_psy_metrics ( OpusPsyContext s,
int  index 
)
static

Definition at line 79 of file opusenc_psy.c.

Referenced by ff_opus_psy_process().

◆ search_for_change_points()

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 164 of file opusenc_psy.c.

Referenced by ff_opus_psy_process().

◆ flush_silent_frames()

static int flush_silent_frames ( OpusPsyContext s)
static

Definition at line 184 of file opusenc_psy.c.

Referenced by psy_output_groups().

◆ psy_output_groups()

static void psy_output_groups ( OpusPsyContext s)
static

Definition at line 206 of file opusenc_psy.c.

Referenced by ff_opus_psy_process().

◆ ff_opus_psy_process()

int ff_opus_psy_process ( OpusPsyContext s,
OpusPacketInfo p 
)

Definition at line 223 of file opusenc_psy.c.

Referenced by opus_encode_frame().

◆ ff_opus_psy_celt_frame_init()

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

Definition at line 254 of file opusenc_psy.c.

Referenced by celt_encode_frame().

◆ celt_gauge_psy_weight()

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

Definition at line 310 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

◆ bands_dist()

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

Definition at line 363 of file opusenc_psy.c.

Referenced by celt_search_for_dual_stereo(), and celt_search_for_intensity().

◆ celt_search_for_dual_stereo()

static void celt_search_for_dual_stereo ( OpusPsyContext s,
CeltFrame f 
)
static

Definition at line 382 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

◆ celt_search_for_intensity()

static void celt_search_for_intensity ( OpusPsyContext s,
CeltFrame f 
)
static

Definition at line 398 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

◆ celt_search_for_tf()

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

Definition at line 421 of file opusenc_psy.c.

Referenced by ff_opus_psy_celt_frame_process().

◆ ff_opus_psy_celt_frame_process()

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

Definition at line 455 of file opusenc_psy.c.

Referenced by celt_encode_frame().

◆ ff_opus_psy_postencode_update()

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

Definition at line 479 of file opusenc_psy.c.

Referenced by opus_encode_frame().

◆ ff_opus_psy_init()

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

Definition at line 516 of file opusenc_psy.c.

Referenced by opus_encode_init().

◆ ff_opus_psy_signal_eof()

void ff_opus_psy_signal_eof ( OpusPsyContext s)

Definition at line 588 of file opusenc_psy.c.

Referenced by opus_encode_frame().

◆ ff_opus_psy_end()

av_cold int ff_opus_psy_end ( OpusPsyContext s)

Definition at line 593 of file opusenc_psy.c.

Referenced by opus_encode_end().