Mercurial > mplayer.hg
comparison libvo/vo_yuv4mpeg.c @ 7688:41d242c5bee1
since draw_slice() can handle packed RGB too, set the VFCAP_ACCEPT_STRIDE flag
author | arpi |
---|---|
date | Wed, 09 Oct 2002 22:37:27 +0000 |
parents | eca7dbad0166 |
children | 5b39e79af5fe |
comparison
equal
deleted
inserted
replaced
7687:a9a19a991a70 | 7688:41d242c5bee1 |
---|---|
345 { | 345 { |
346 case IMGFMT_YV12: | 346 case IMGFMT_YV12: |
347 // gets done in draw_slice | 347 // gets done in draw_slice |
348 break; | 348 break; |
349 | 349 |
350 case IMGFMT_BGR|24: | 350 case IMGFMT_BGR24: |
351 case IMGFMT_RGB|24: | 351 case IMGFMT_RGB24: |
352 memcpy(rgb_buffer, src[0], image_width * image_height * 3); | 352 memcpy(rgb_buffer, src[0], image_width * image_height * 3); |
353 break; | 353 break; |
354 } | 354 } |
355 return 0; | 355 return 0; |
356 } | 356 } |
365 * information sampled correct. */ | 365 * information sampled correct. */ |
366 | 366 |
367 switch(format) | 367 switch(format) |
368 { | 368 { |
369 case IMGFMT_YV12: | 369 case IMGFMT_YV12: |
370 return VFCAP_CSP_SUPPORTED|VFCAP_OSD; | 370 return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; |
371 case IMGFMT_BGR|24: | 371 case IMGFMT_BGR|24: |
372 case IMGFMT_RGB|24: | 372 case IMGFMT_RGB|24: |
373 return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; | 373 return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; |
374 } | 374 } |
375 } | 375 } |
376 else | 376 else |
377 { | 377 { |
378 | 378 |
379 switch(format) | 379 switch(format) |
380 { | 380 { |
381 case IMGFMT_YV12: | 381 case IMGFMT_YV12: |
382 return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; | 382 return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; |
383 case IMGFMT_BGR|24: | 383 case IMGFMT_BGR|24: |
384 case IMGFMT_RGB|24: | 384 case IMGFMT_RGB|24: |
385 return VFCAP_CSP_SUPPORTED|VFCAP_OSD; | 385 return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; |
386 } | 386 } |
387 } | 387 } |
388 return 0; | 388 return 0; |
389 } | 389 } |
390 | 390 |