Lines Matching refs:frame

164 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
183 if ((ret = ff_thread_get_buffer(avctx, frame, 0)) < 0)
186 outptr = frame->data[0]; // Output image pointer
188 /* Decompress frame */
257 av_log(avctx, AV_LOG_ERROR, "BUG! Unknown MSZH compression in frame decoder.\n");
264 * gives a file with ZLIB fourcc, but frame is really uncompressed.
265 * To be sure that's true check also frame size */
294 av_log(avctx, AV_LOG_ERROR, "BUG! Unknown codec in frame decoder compression switch.\n");
384 y_out = frame->data[0] + (height - 1) * frame->linesize[0];
385 offset = (height - 1) * frame->linesize[1];
386 u_out = FF_PTR_ADD(frame->data[1], offset);
387 offset = (height - 1) * frame->linesize[2];
388 v_out = FF_PTR_ADD(frame->data[2], offset);
397 y_out -= frame->linesize[0];
398 u_out -= frame->linesize[1];
399 v_out -= frame->linesize[2];
417 y_out -= frame->linesize[0];
418 u_out -= frame->linesize[1];
419 v_out -= frame->linesize[2];
425 pixel_ptr = row * frame->linesize[0];
442 y_out -= frame->linesize[0];
443 u_out -= frame->linesize[1];
444 v_out -= frame->linesize[2];
455 y_out -= frame->linesize[0];
456 u_out -= frame->linesize[1];
457 v_out -= frame->linesize[2];
461 u_out = frame->data[1] + ((height >> 1) - 1) * frame->linesize[1];
462 v_out = frame->data[2] + ((height >> 1) - 1) * frame->linesize[2];
467 memcpy(y_out + col - frame->linesize[0], encoded, 2);
472 y_out -= frame->linesize[0] << 1;
473 u_out -= frame->linesize[1];
474 v_out -= frame->linesize[2];
482 frame->key_frame = 1;
483 frame->pict_type = AV_PICTURE_TYPE_I;