41 uint32_t
flags, in_format;
45 in_format = UTVF_YV12;
50 in_format = UTVF_YUYV;
104 utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag),
"libavcodec");
108 CBGROSSWIDTH_WINDOWS);
114 CBGROSSWIDTH_WINDOWS);
118 utv->
codec->SetState(&flags,
sizeof(flags));
124 const AVFrame *pic,
int *got_packet)
128 int ret, rgb_size, i;
145 for (i = 0; i < h; i++) {
149 for (i = 0; i < h / 2; i++) {
157 for (i = 0; i < h; i++)
158 memcpy(utv->
buffer + i * (w << 1),
165 for (i = 0; i < h; i++)
166 memcpy(utv->
buffer + (h - i - 1) * w * rgb_size,
205 utv->
codec->EncodeEnd();
206 CCodec::DeleteInstance(utv->
codec);