FFmpeg
Functions
dirac.c File Reference
#include "libavutil/pixdesc.h"
#include "dirac.h"
#include "golomb.h"
#include "mpeg12data.h"

Go to the source code of this file.

Functions

int av_dirac_parse_sequence_header (AVDiracSeqHeader **pdsh, const uint8_t *buf, size_t buf_size, void *log_ctx)
 Parse a Dirac sequence header. More...
 

Detailed Description

Dirac Decoder

Author
Marco Gerards marco.nosp@m.@gnu.nosp@m..org, David Conrad, Jordi Ortiz nenjo.nosp@m.rdi@.nosp@m.gmail.nosp@m..com

Definition in file dirac.c.

Function Documentation

◆ av_dirac_parse_sequence_header()

int av_dirac_parse_sequence_header ( AVDiracSeqHeader **  dsh,
const uint8_t *  buf,
size_t  buf_size,
void *  log_ctx 
)

Parse a Dirac sequence header.

Parameters
dshthis function will allocate and fill an AVDiracSeqHeader struct and write it into this pointer. The caller must free it with av_free().
bufthe data buffer
buf_sizethe size of the data buffer in bytes
log_ctxif non-NULL, this function will log errors here
Returns
0 on success, a negative AVERROR code on failure

Definition at line 400 of file dirac.c.

Referenced by dirac_decode_data_unit(), and dirac_header().