Lines Matching refs:picture
100 const AVFrame *picture, int *got_packet);
678 AVFrame *picture;
686 picture = av_frame_alloc();
687 if (!picture) {
695 av_frame_free(&picture);
701 picture->data[0] = av_malloc(size + size / 2);
702 if (!picture->data[0]) {
704 av_frame_free(&picture);
707 picture->data[1] = picture->data[0] + size;
708 picture->data[2] = picture->data[1] + size / 4;
709 memset(picture->data[0], 0, size);
710 memset(picture->data[1], 128, size / 2);
711 xvid_encode_frame(avctx, packet, picture, &got_packet);
713 av_free(picture->data[0]);
714 av_frame_free(&picture);
731 const AVFrame *picture, int *got_packet)
763 xvid_enc_frame.input.plane[i] = picture->data[i];
764 xvid_enc_frame.input.stride[i] = picture->linesize[i];
772 picture->pict_type == AV_PICTURE_TYPE_I ? XVID_TYPE_IVOP :
773 picture->pict_type == AV_PICTURE_TYPE_P ? XVID_TYPE_PVOP :
774 picture->pict_type == AV_PICTURE_TYPE_B ? XVID_TYPE_BVOP :
792 xvid_enc_frame.quant = picture->quality / FF_QP2LAMBDA;