Lines Matching defs:frame
51 * transporting an entire codebook every 8th frame, the new codebook is
54 * codebook. A full codebook is also sent on the very first frame of a
104 AVFrame *frame;
110 int width; /* width of a frame */
111 int height; /* height of a frame */
181 s->frame = av_frame_alloc();
182 if (!s->frame)
263 /* 0x80 means that frame is finished */
330 * important for decoding frame maps since each vector needs to have a
343 static int vqa_decode_frame_pal8(VqaContext *s, AVFrame *frame)
371 /* first, traverse through the frame and find the subchunks */
487 /* decode the frame */
501 /* render the final PAL8 frame */
508 pixel_ptr = y * frame->linesize[0] + x;
523 frame->data[0][pixel_ptr + 0] = 255 - lobyte;
524 frame->data[0][pixel_ptr + 1] = 255 - lobyte;
525 frame->data[0][pixel_ptr + 2] = 255 - lobyte;
526 frame->data[0][pixel_ptr + 3] = 255 - lobyte;
527 pixel_ptr += frame->linesize[0];
547 frame->data[0][pixel_ptr + 0] = s->codebook[vector_index++];
548 frame->data[0][pixel_ptr + 1] = s->codebook[vector_index++];
549 frame->data[0][pixel_ptr + 2] = s->codebook[vector_index++];
550 frame->data[0][pixel_ptr + 3] = s->codebook[vector_index++];
551 pixel_ptr += frame->linesize[0];
626 static int vqa_decode_frame_hicolor(VqaContext *s, AVFrame *frame)
697 /* decode the frame */
716 av_log(s->avctx, AV_LOG_ERROR, "frame has no block data\n");
766 unsigned char *dst = s->frame->data[0] + y_pos * s->frame->linesize[0]
775 dst += s->frame->linesize[0];
803 if ((res = ff_reget_buffer(avctx, s->frame, 0)) < 0)
809 if ((res = vqa_decode_frame_pal8(s, s->frame)) < 0)
813 memcpy(s->frame->data[1], s->palette, PALETTE_COUNT * 4);
814 s->frame->palette_has_changed = 1;
816 if ((res = vqa_decode_frame_hicolor(s, s->frame)) < 0)
823 if ((res = av_frame_ref(rframe, s->frame)) < 0)
836 av_frame_free(&s->frame);