54 case MKTAG(
'U',
'L',
'Y',
'0'):
58 case MKTAG(
'U',
'L',
'Y',
'2'):
62 case MKTAG(
'U',
'L',
'R',
'G'):
64 format = UTVF_RGB24_WIN;
66 case MKTAG(
'U',
'L',
'R',
'A'):
68 format = UTVF_RGB32_WIN;
72 "Not a Ut Video FOURCC: %X\n", avctx->
codec_tag);
101 utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag),
"libavcodec");
108 if (begin_ret != 0) {
110 "Could not initialize decoder: %d\n", begin_ret);
135 pic->linesize[0] = w;
136 pic->linesize[1] = pic->linesize[2] = w / 2;
137 pic->data[0] = utv->
buffer;
138 pic->data[2] = utv->
buffer + (w * h);
139 pic->data[1] = pic->data[2] + (w * h / 4);
142 pic->linesize[0] = w * 2;
143 pic->data[0] = utv->
buffer;
168 utv->
codec->DecodeEnd();
169 CCodec::DeleteInstance(utv->
codec);