Lines Matching refs:utv
39 UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
82 avctx->priv_data = utv;
97 utv->buf_size = avpicture_get_size(avctx->pix_fmt,
99 utv->buffer = (uint8_t *)av_malloc(utv->buf_size);
101 if (utv->buffer == NULL) {
110 utv->codec = CCodec::CreateInstance(UNFCC(avctx->codec_tag), "libavcodec");
113 utv->codec->EncodeBegin(in_format, avctx->width, avctx->height,
117 avctx->extradata_size = utv->codec->EncodeGetExtraDataSize();
118 utv->codec->EncodeGetExtraData(info, avctx->extradata_size, in_format,
124 utv->codec->SetState(&flags, sizeof(flags));
132 UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
140 if ((ret = ff_alloc_packet2(avctx, pkt, utv->buf_size)) < 0)
148 y = utv->buffer;
164 memcpy(utv->buffer + i * (w << 1),
172 memcpy(utv->buffer + (h - i - 1) * w * rgb_size,
181 pkt->size = utv->codec->EncodeFrame(dst, &keyframe, utv->buffer);
205 UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
209 av_freep(&utv->buffer);
211 utv->codec->EncodeEnd();
212 CCodec::DeleteInstance(utv->codec);