41 uint32_t
flags, in_format;
46 in_format = UTVF_YV12;
54 in_format = UTVF_YUYV;
115 utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag),
"libavcodec");
119 CBGROSSWIDTH_WINDOWS);
125 CBGROSSWIDTH_WINDOWS);
129 utv->
codec->SetState(&flags,
sizeof(flags));
135 const AVFrame *pic,
int *got_packet)
139 int ret, rgb_size, i;
156 for (i = 0; i < h; i++) {
160 for (i = 0; i < h / 2; i++) {
168 for (i = 0; i < h; i++)
169 memcpy(utv->
buffer + i * (w << 1),
176 for (i = 0; i < h; i++)
177 memcpy(utv->
buffer + (h - i - 1) * w * rgb_size,
216 utv->
codec->EncodeEnd();
217 CCodec::DeleteInstance(utv->
codec);