88 if (tags->
fourcc == fourcc)
95 #if LIBAVCODEC_VERSION_MAJOR < 55
174 int buf_size = avpkt->
size;
175 int linesize_align = 4;
189 if (context->
tff >= 0) {
210 for (i = 0; 2 * i + 1 < buf_size && i<avpkt->
size; i++) {
211 dst[2 * i + 0] = buf[i] >> 4;
212 dst[2 * i + 1] = buf[i] & 15;
217 for (i = 0; 4 * i + 3 < buf_size && i<avpkt->
size; i++) {
218 dst[4 * i + 0] = buf[i] >> 6;
219 dst[4 * i + 1] = buf[i] >> 4 & 3;
220 dst[4 * i + 2] = buf[i] >> 2 & 3;
221 dst[4 * i + 3] = buf[i] & 3;
226 }
else if (need_copy) {
227 memcpy(frame->
buf[0]->
data, buf, buf_size);
236 if (buf_size < len) {
237 av_log(avctx,
AV_LOG_ERROR,
"Invalid buffer size, packet size %d < expected frame_size %d\n", buf_size, len);
286 if (!frame->
buf[1]) {
298 flip(avctx, picture);
315 for (y = 0; y < avctx->
height; y++) {
316 for (x = 0; x < avctx->
width; x++)
317 line[2 * x + 1] ^= 0x80;
325 for(y = 0; y < avctx->
height; y++) {
326 for(x = 0; x < avctx->
width - 1; x += 2)
359 .priv_class = &rawdec_class,