Mercurial > mplayer.hg
comparison libvo/vo_fsdga.c @ 612:77e0094f0cce
some warnings killed
author | szabii |
---|---|
date | Tue, 24 Apr 2001 10:21:12 +0000 |
parents | 7de9e48c83a5 |
children | d40f2b686846 |
comparison
equal
deleted
inserted
replaced
611:a188733d60de | 612:77e0094f0cce |
---|---|
279 static uint32_t query_format( uint32_t format ) | 279 static uint32_t query_format( uint32_t format ) |
280 { | 280 { |
281 printf("vo_dga: query_format\n"); | 281 printf("vo_dga: query_format\n"); |
282 | 282 |
283 if( !vo_init() ) return 0; // Can't open X11 | 283 if( !vo_init() ) return 0; // Can't open X11 |
284 printf("Format: %lx\n", format); | 284 printf("Format: %lx\n", (unsigned long) format); |
285 | 285 |
286 if( format==IMGFMT_YV12 ) return 1; | 286 if( format==IMGFMT_YV12 ) return 1; |
287 if( ( format&IMGFMT_BGR_MASK )==IMGFMT_BGR && | 287 if( ( format&IMGFMT_BGR_MASK )==IMGFMT_BGR && |
288 ( format&0xFF )==vo_depthonscreen ) return 1; | 288 ( format&0xFF )==vo_depthonscreen ) return 1; |
289 return 0; | 289 return 0; |
339 vo_dga_src_format = format; | 339 vo_dga_src_format = format; |
340 vo_dga_src_width = width; | 340 vo_dga_src_width = width; |
341 vo_dga_src_height = height; | 341 vo_dga_src_height = height; |
342 vo_dga_bpp = (vo_depthonscreen+7) >> 3; | 342 vo_dga_bpp = (vo_depthonscreen+7) >> 3; |
343 | 343 |
344 printf("vo_dga: bytes/line: %d, screen res: %dx%d, depth: %d, base: %08x, bpp: %d\n", | 344 printf("vo_dga: bytes/line: %d, screen res: %dx%d, depth: %d, base: %p, bpp: %d\n", |
345 vo_dga_width, vo_dga_vp_width, | 345 vo_dga_width, vo_dga_vp_width, |
346 vo_dga_vp_height, vo_depthonscreen, vo_dga_base, | 346 vo_dga_vp_height, vo_depthonscreen, vo_dga_base, |
347 vo_dga_bpp); | 347 vo_dga_bpp); |
348 printf("vo_dga: video res: %dx%d\n", vo_dga_src_width, vo_dga_src_height); | 348 printf("vo_dga: video res: %dx%d\n", vo_dga_src_width, vo_dga_src_height); |
349 | 349 |