41 uint32_t
flags, in_format;
45 in_format = UTVF_YV12;
53 in_format = UTVF_YUYV;
101 if (utv->
buffer == NULL) {
110 utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag),
"libavcodec");
114 CBGROSSWIDTH_WINDOWS);
120 CBGROSSWIDTH_WINDOWS);
124 utv->
codec->SetState(&flags,
sizeof(flags));
130 const AVFrame *pic,
int *got_packet)
134 int ret, rgb_size, i;
151 for (i = 0; i < h; i++) {
155 for (i = 0; i < h / 2; i++) {
163 for (i = 0; i < h; i++)
164 memcpy(utv->
buffer + i * (w << 1),
171 for (i = 0; i < h; i++)
172 memcpy(utv->
buffer + (h - i - 1) * w * rgb_size,
211 utv->
codec->EncodeEnd();
212 CCodec::DeleteInstance(utv->
codec);