VLC  3.0.21
Data Structures | Macros | Typedefs
vlc_codec.h File Reference
Include dependency graph for vlc_codec.h:

Go to the source code of this file.

Data Structures

struct  decoder_t
 
struct  decoder_cc_desc_t
 
struct  encoder_t
 

Macros

#define VLCDEC_SUCCESS   VLC_SUCCESS
 
#define VLCDEC_ECRITICAL   VLC_EGENERIC
 
#define VLCDEC_RELOAD   (-100)
 

Typedefs

typedef struct decoder_owner_sys_t decoder_owner_sys_t
 
typedef struct decoder_cc_desc_t decoder_cc_desc_t
 

Functions

static int decoder_UpdateVideoFormat (decoder_t *dec)
 Updates the video output format. More...
 
static picture_tdecoder_NewPicture (decoder_t *dec)
 Allocates an output picture buffer. More...
 
void decoder_AbortPictures (decoder_t *dec, bool b_abort)
 Abort any calls of decoder_NewPicture. More...
 
static int decoder_QueueVideo (decoder_t *dec, picture_t *p_pic)
 This function queues a single picture to the video output. More...
 
static int decoder_QueueCc (decoder_t *dec, block_t *p_cc, const decoder_cc_desc_t *p_desc)
 This function queues the Closed Captions. More...
 
static int decoder_QueueAudio (decoder_t *dec, block_t *p_aout_buf)
 This function queues a single audio block to the audio output. More...
 
static int decoder_QueueSub (decoder_t *dec, subpicture_t *p_spu)
 This function queues a single subtitle to the video output. More...
 
static int decoder_UpdateAudioFormat (decoder_t *dec)
 This function notifies the audio output pipeline of a new audio output format (fmt_out.audio). More...
 
block_tdecoder_NewAudioBuffer (decoder_t *, int i_nb_samples)
 This function will return a new audio buffer usable by a decoder as an output buffer. More...
 
subpicture_tdecoder_NewSubpicture (decoder_t *, const subpicture_updater_t *)
 This function will return a new subpicture usable by a decoder as an output buffer. More...
 
int decoder_GetInputAttachments (decoder_t *, input_attachment_t ***ppp_attachment, int *pi_attachment)
 This function gives all input attachments at once. More...
 
vlc_tick_t decoder_GetDisplayDate (decoder_t *, vlc_tick_t)
 This function converts a decoder timestamp into a display date comparable to mdate(). More...
 
int decoder_GetDisplayRate (decoder_t *)
 This function returns the current input rate. More...
 

Detailed Description

Decoder and encoder modules interface

Macro Definition Documentation

◆ VLCDEC_ECRITICAL

#define VLCDEC_ECRITICAL   VLC_EGENERIC

◆ VLCDEC_RELOAD

#define VLCDEC_RELOAD   (-100)

◆ VLCDEC_SUCCESS

#define VLCDEC_SUCCESS   VLC_SUCCESS