FFmpeg
Data Fields
FFPsyModel Struct Reference

codec-specific psychoacoustic model implementation More...

#include <psymodel.h>

Data Fields

const char * name
 
int(* init )(FFPsyContext *apc)
 
FFPsyWindowInfo(* window )(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type)
 Suggest window sequence for channel. More...
 
void(* window_pair )(FFPsyContext *ctx, const float *audio0, const float *la0, const float *audio1, const float *la1, int channel0, int channel1, int prev_type0, int prev_type1, FFPsyWindowInfo wi[2])
 Suggest window sequences for both channels of a CPE with block switching synchronized across the pair (either channel's attack switches both), so common_window and the joint stereo tools stay available. More...
 
void(* analyze )(FFPsyContext *ctx, int channel, const float **coeffs, const FFPsyWindowInfo *wi)
 Perform psychoacoustic analysis and set band info (threshold, energy) for a group of channels. More...
 
void(* end )(FFPsyContext *apc)
 

Detailed Description

codec-specific psychoacoustic model implementation

Definition at line 116 of file psymodel.h.

Field Documentation

◆ name

const char* FFPsyModel::name

Definition at line 117 of file psymodel.h.

◆ init

int(* FFPsyModel::init) (FFPsyContext *apc)

Definition at line 118 of file psymodel.h.

◆ window

FFPsyWindowInfo(* FFPsyModel::window) (FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type)

Suggest window sequence for channel.

Parameters
ctxmodel context
audiosamples for the current frame
lalookahead samples (NULL when unavailable)
channelnumber of channel element to analyze
prev_typeprevious window type
Returns
suggested window information in a structure

Definition at line 131 of file psymodel.h.

◆ window_pair

void(* FFPsyModel::window_pair) (FFPsyContext *ctx, const float *audio0, const float *la0, const float *audio1, const float *la1, int channel0, int channel1, int prev_type0, int prev_type1, FFPsyWindowInfo wi[2])

Suggest window sequences for both channels of a CPE with block switching synchronized across the pair (either channel's attack switches both), so common_window and the joint stereo tools stay available.

Optional; when NULL the encoder decides each channel independently via window().

Definition at line 139 of file psymodel.h.

◆ analyze

void(* FFPsyModel::analyze) (FFPsyContext *ctx, int channel, const float **coeffs, const FFPsyWindowInfo *wi)

Perform psychoacoustic analysis and set band info (threshold, energy) for a group of channels.

Parameters
ctxmodel context
channelchannel number of the first channel in the group to perform analysis on
coeffsarray of pointers to the transformed coefficients
wiwindow information for the channels in the group

Definition at line 152 of file psymodel.h.

◆ end

void(* FFPsyModel::end) (FFPsyContext *apc)

Definition at line 154 of file psymodel.h.


The documentation for this struct was generated from the following file: