37 #include <libdirac_decoder/dirac_parser.h>
58 for (idx = 0; idx < num_formats; ++idx)
77 void *
data,
int *data_size,
80 const uint8_t *buf = avpkt->
data;
81 int buf_size = avpkt->
size;
93 dirac_buffer(p_dirac_params->
p_decoder, buf, buf + buf_size);
94 if ((buf[4] & 0x08) == 0x08 && (buf[4] & 0x03))
107 dirac_sourceparams_t *src_params = &p_dirac_params->
p_decoder->src_params;
110 0, avccontext) < 0) {
112 src_params->width, src_params->height);
117 avccontext->
height = src_params->height;
118 avccontext->
width = src_params->width;
123 "Dirac chroma format %d not supported currently\n",
128 avccontext->
time_base.
den = src_params->frame_rate.numerator;
129 avccontext->
time_base.
num = src_params->frame_rate.denominator;
145 buffer[2] = buffer[1] +
146 pic.
linesize[1] * src_params->chroma_height;
152 case STATE_SEQUENCE_END:
155 case STATE_PICTURE_AVAIL:
178 dirac_decoder_close(p_dirac_params->
p_decoder);