86 if (tags->
fourcc == fourcc)
107 av_log(avctx,
AV_LOG_ERROR,
"Pixel format was not specified and cannot be detected\n");
152 void *
data,
int *got_frame,
156 int buf_size = avpkt->
size;
157 int linesize_align = 4;
187 for(i=0; 2*i+1 < buf_size && i<avpkt->
size; i++){
188 dst[2*i+0]= buf[i]>>4;
189 dst[2*i+1]= buf[i]&15;
194 for(i=0; 4*i+3 < buf_size && i<avpkt->
size; i++){
195 dst[4*i+0]= buf[i]>>6;
196 dst[4*i+1]= buf[i]>>4&3;
197 dst[4*i+2]= buf[i]>>2&3;
198 dst[4*i+3]= buf[i] &3;
207 buf += buf_size - context->
length;
210 if (buf_size < len) {
211 av_log(avctx,
AV_LOG_ERROR,
"Invalid buffer size, packet size %d < expected length %d\n", buf_size, len);
250 flip(avctx, picture);
267 for(y = 0; y < avctx->
height; y++) {
268 for(x = 0; x < avctx->
width; x++)
269 line[2*x + 1] ^= 0x80;
277 for(y = 0; y < avctx->
height; y++) {
278 for(x = 0; x < avctx->
width - 1; x += 2)
305 .priv_class = &
class,