FFmpeg
Public Attributes | List of all members
FFPsyModel Struct Reference

codec-specific psychoacoustic model implementation More...

#include <psymodel.h>

Public Attributes

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(* 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

Member Data Documentation

§ 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

§ 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

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