[MPlayer-dev-eng] [PATCH] Color SPU rendering
Ötvös Attila
oattila at chello.hu
Tue Jan 29 23:40:04 CET 2008
2008. január 29. 23.20 dátummal Reimar Döffinger ezt írta:
Hi Reimar Döffinger!
> Well, there is not really anything really libvo specific in these
> patches.
> Also the biggest questions about it are:
> 1) How is this supposed to compile at all? It uses some dp variable that is
> not declared at all.
> 2) What is that VOCTRL_GUISUPPORT supposed to do? I can't see how the
> return value is supposed to be useful in any way.
1, call VOCTRL_COLOROSD_SUPPORT
if return VO_TRUE:
call VOCTRL_QUERY_FORMAT -> set color spu type:
YUV (eg: IMGFMT_YV12, IMGFMT_I420, ...),
YUY,
RGB,
BGR (IMGFMT_BGR32, IMGFMT_BGR24, ...)
3, spudec make more planes: (Y-U-V-A, or R-G-B-A) and call
YUV mode:
draw_alpha( dp=DEST_PLANES_Y ),
draw_alpha( dp=DEST_PLANES_U ),
draw_alpha( dp=DEST_PLANES_V )
YUY mode:
draw_alpha( dp=DEST_PLANES_YUYV )
RGB, BGR mode:
draw_alpha( dp=DEST_PLANES_RB ),
draw_alpha( dp=DEST_PLANES_G ),
draw_alpha( dp=DEST_PLANES_BR )
4, if VOCTRL_COLOROSD_SUPPORT return false:
spudec make grayscale and call
draw_alpha( dp=DEST_PLANES_Y )
Best regard.
Attila
More information about the MPlayer-dev-eng
mailing list