comparison libmpcodecs/vd_qtvideo.c @ 13188:f60bc2314146

small gcc warning fixes
author rathann
date Sat, 28 Aug 2004 20:59:49 +0000
parents 6a61d694f7d3
children 73086ea05489
comparison
equal deleted inserted replaced
13187:ec342714b8a9 13188:f60bc2314146
233 #endif 233 #endif
234 //Find codecscomponent for video decompression 234 //Find codecscomponent for video decompression
235 // result = FindCodec ('SVQ1',anyCodec,&compressor,&decompressor ); 235 // result = FindCodec ('SVQ1',anyCodec,&compressor,&decompressor );
236 // printf("FindCodec SVQ1 returned:%i compressor: 0x%X decompressor: 0x%X\n",result,compressor,decompressor); 236 // printf("FindCodec SVQ1 returned:%i compressor: 0x%X decompressor: 0x%X\n",result,compressor,decompressor);
237 237
238 sh->context = kYUVSPixelFormat; 238 sh->context = (void *)kYUVSPixelFormat;
239 #if 1 239 #if 1
240 { 240 {
241 int imgfmt = sh->codec->outfmt[sh->outfmtidx]; 241 int imgfmt = sh->codec->outfmt[sh->outfmtidx];
242 int qt_imgfmt; 242 int qt_imgfmt;
243 switch(imgfmt) 243 switch(imgfmt)
273 default: 273 default:
274 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unknown requested csp\n"); 274 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unknown requested csp\n");
275 return(0); 275 return(0);
276 } 276 }
277 mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"imgfmt: %s qt_imgfmt: %.4s\n", vo_format_name(imgfmt), &qt_imgfmt); 277 mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"imgfmt: %s qt_imgfmt: %.4s\n", vo_format_name(imgfmt), &qt_imgfmt);
278 sh->context = qt_imgfmt; 278 sh->context = (void *)qt_imgfmt;
279 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,imgfmt)) return 0; 279 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,imgfmt)) return 0;
280 } 280 }
281 #else 281 #else
282 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; 282 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0;
283 #endif 283 #endif
311 311
312 if(!codec_inited){ 312 if(!codec_inited){
313 result = QTNewGWorldFromPtr( 313 result = QTNewGWorldFromPtr(
314 &OutBufferGWorld, 314 &OutBufferGWorld,
315 // kYUVSPixelFormat, //pixel format of new GWorld == YUY2 315 // kYUVSPixelFormat, //pixel format of new GWorld == YUY2
316 sh->context, 316 (OSType)sh->context,
317 &OutBufferRect, //we should benchmark if yvu9 is faster for svq3, too 317 &OutBufferRect, //we should benchmark if yvu9 is faster for svq3, too
318 0, 318 0,
319 0, 319 0,
320 0, 320 0,
321 mpi->planes[0], 321 mpi->planes[0],