ADPCM Codecs
Public Attributes | List of all members
adpcm_ffmpeg::AVFrame Struct Reference

This structure provides the uncompressed PCM data. More...

#include <adpcm.h>

Public Attributes

uint8_t * data [AV_NUM_DATA_POINTERS]
 
int nb_samples
 
int16_t ** extended_data
 

Detailed Description

This structure provides the uncompressed PCM data.

Member Data Documentation

◆ data

uint8_t* adpcm_ffmpeg::AVFrame::data[AV_NUM_DATA_POINTERS]

pointer to the picture/channel planes. This might be different from the first allocated byte

Some decoders access areas outside 0,0 - width,height, please see avcodec_align_dimensions2(). Some filters and swscale can read up to 16 bytes beyond the planes, if these filters are to be used, then 16 extra bytes must be allocated.

NOTE: Except for hwaccel formats, pointers not needed by the format MUST be set to NULL.

◆ extended_data

int16_t** adpcm_ffmpeg::AVFrame::extended_data

pointers to the data planes/channels.

For video, this should simply point to data[].

For planar audio, each channel has a separate data pointer, and linesize[0] contains the size of each channel buffer. For packed audio, there is just one data pointer, and linesize[0] contains the total size of the buffer for all channels.

Note: Both data and extended_data should always be set in a valid frame, but for planar audio with more channels that can fit in data, extended_data must be used in order to access all channels.

◆ nb_samples

int adpcm_ffmpeg::AVFrame::nb_samples

number of audio samples (per channel) described by this frame


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