Lines Matching defs:frame
38 uint8_t *frame;
62 gdv->frame = av_calloc(gdv->frame_size, 1);
63 if (!gdv->frame)
69 gdv->frame[i * 2048 + j * 8 + k] = j;
253 bytestream2_init(g2, gdv->frame, gdv->frame_size);
258 gdv->frame[c * 16 + i] = c;
294 bytestream2_init(g2, gdv->frame, gdv->frame_size);
341 bytestream2_init(g2, gdv->frame, gdv->frame_size);
404 c1 = gdv->frame[bytestream2_tell_p(pb) - real_off];
405 c2 = gdv->frame[bytestream2_tell_p(pb) - real_off + 1];
459 static int gdv_decode_frame(AVCodecContext *avctx, AVFrame *frame,
471 bytestream2_init_writer(pb, gdv->frame, gdv->frame_size);
479 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
485 rescale(gdv, gdv->frame, avctx->width, avctx->height,
490 memset(gdv->frame + PREAMBLE_SIZE, 0, gdv->frame_size - PREAMBLE_SIZE);
519 memcpy(frame->data[1], gdv->pal, AVPALETTE_SIZE);
520 dst = frame->data[0];
527 memcpy(dst + didx, gdv->frame + sidx, avctx->width);
529 didx += frame->linesize[0];
537 memcpy(dst + didx, gdv->frame + sidx, avctx->width);
540 uint8_t *src2 = gdv->frame + sidx;
547 didx += frame->linesize[0];
559 av_freep(&gdv->frame);