40 uint32_t
flags, in_format;
44 in_format = UTVF_YV12;
49 in_format = UTVF_YUYV;
103 utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag),
"libavcodec");
107 CBGROSSWIDTH_WINDOWS);
113 CBGROSSWIDTH_WINDOWS);
117 utv->
codec->SetState(&flags,
sizeof(flags));
123 const AVFrame *pic,
int *got_packet)
127 int ret, rgb_size, i;
144 for (i = 0; i < h; i++) {
148 for (i = 0; i < h / 2; i++) {
156 for (i = 0; i < h; i++)
157 memcpy(utv->
buffer + i * (w << 1),
164 for (i = 0; i < h; i++)
165 memcpy(utv->
buffer + (h - i - 1) * w * rgb_size,
204 utv->
codec->EncodeEnd();
205 CCodec::DeleteInstance(utv->
codec);