87 if (tags->
fourcc == fourcc)
94 #if LIBAVCODEC_VERSION_MAJOR < 55
119 av_log(avctx,
AV_LOG_ERROR,
"Pixel format was not specified and cannot be detected\n");
174 int buf_size = avpkt->
size;
175 int linesize_align = 4;
189 if (context->
tff >= 0) {
203 for (i = 0; 2 * i + 1 < buf_size && i<avpkt->
size; i++) {
204 dst[2 * i + 0] = buf[i] >> 4;
205 dst[2 * i + 1] = buf[i] & 15;
210 for (i = 0; 4 * i + 3 < buf_size && i<avpkt->
size; i++) {
211 dst[4 * i + 0] = buf[i] >> 6;
212 dst[4 * i + 1] = buf[i] >> 4 & 3;
213 dst[4 * i + 2] = buf[i] >> 2 & 3;
214 dst[4 * i + 3] = buf[i] & 3;
223 buf += buf_size - context->
length;
226 if (buf_size < len) {
227 av_log(avctx,
AV_LOG_ERROR,
"Invalid buffer size, packet size %d < expected length %d\n", buf_size, len);
267 flip(avctx, picture);
284 for (y = 0; y < avctx->
height; y++) {
285 for (x = 0; x < avctx->
width; x++)
286 line[2 * x + 1] ^= 0x80;
294 for(y = 0; y < avctx->
height; y++) {
295 for(x = 0; x < avctx->
width - 1; x += 2)
322 .priv_class = &
class,