[MPlayer-dev-eng] [PATCH] dvdnav - wait, still frame, change audio and spu (nav)

Ötvös Attila oattila at chello.hu
Fri Mar 9 19:16:12 CET 2007


2007. március 9. 00.53 dátummal Nico Sabbi ezt írta:
> please, describe in detail what every patch is supposed to do and
> comment the code. How can we review such huge changes without comments'
Hi Nico Sabbi!

My main modifies are in colorspu.patch:

I expanded all draw_alpha() functions with the dp parameter.

The dp specifies the destination planes in drawing.
dp values:
0: DEST_PLANES_Y - Y plane (default)
1: DEST_PLANES_U - U plane in YUV mode
2: DEST_PLANES_V - V plane in YUV mode
3: DEST_PLANES_RB - Red plane in RGB mode or Blue plane in BGR mode
4: DEST_PLANES_G - Green plane in RGB or BGR mode
5: DEST_PLANES_BR - Blue plane in RGB mode or Red plane in BGR mode
6: DEST_PLANES_YUYV - All planes in YUYV mode

The new 4 control function can query current mode in vo's.
New functions:
VOCTRL_YUVSPU_SUPPORT - The vo is YUV mode
VOCTRL_RGBSPU_SUPPORT - The vo is RGB mode
VOCTRL_BGRSPU_SUPPORT - The vo is BGR mode
VOCTRL_YUYSPU_SUPPORT - The vo is YUYV mode
The spudec decodies the SPU on the basis of this function result.

The spudec_process_data() generates the images on the basis of the palette of 
button.

The images:
image: Y plane in YUV, YUY or default mode, Red plane in RGB mode, Blue plane 
in BGR mode.
imageu: U plane in YUV or YUY mode, Green plane in RGB or BGR mode
imagev: V plane in YUV or YUY mode, Blue plane in RGB mode, Red plane in BGR 
mode
imageyuy: all planes in YUYV mode (generate from yuv image with 
spu_create_yuy())
aimage: alpha Y, B, R and G plane in YUV, RGB and BGR mode
aimageuv: alpha U and V plane in YUV mode
aimageyuy: alpha all planes in YUYV mode (generate from yuv image with 
spu_create_yuy())

The spudec_process_fill() function filles parts of the image on the basis of 
the button area.

The spu_yuv_to_rgb() function convertes YUV colors to RGB colors.

The spudec_create_yuy() function creates yuyv images from the yuv images.

I created scale functions to YUV/YUYV, RGB/BGR images.

Control functions:
spudec_dvdnav_mode(): Enable/disable the dvdmenu mode and set color mode.
spudec_dvdnav_area(): Set the dvd menu button area and palette

I append comments to colorspu.patch.

Best regards!
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colorspu.patch
Type: text/x-diff
Size: 173026 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070309/890d9cfe/attachment.patch>


More information about the MPlayer-dev-eng mailing list