From: Jason T. <ta...@ur...> - 2006-08-14 18:27:28
|
Hi Michael, On Mon, 2006-08-14 at 17:54 +0200, Michael Roitzsch wrote: > DVDs use one overlay per menu. When you navigate amongst the buttons, > all that changes is a clipping area (where the overlay receives > different coloring inside the area than outside). Ah, that makes sense. When I received the OVERLAY_EVENT_SHOW event, I used _x_blend_rgb32 on the overlay and examined the resulting RGBA image. When I saw only the first menu selection image, even though the image was the full frame size, I assumed something was wrong. I see now that _x_blend_rgb32 is using the hili_* fields in the overlay struct to do clipping and that indeed, the rle given with OVERLAY_EVENT_SHOW is the full overlay. My basic plan then is to convert the overlay the RGBA, use SwScaler to scale it, and convert back to RLE. Then I can intercept OVERLAY_EVENT_MENU_BUTTON and adjust the hili_* values to reflect the scaled rle. Thanks for your help, Jason. |