PDA

View Full Version : image subtitle should be resize before overlay in the screen


kazuyuki
2008-08-07, 11:52
I have a DVDrip, the resolving is changed from 720x576 to 512x336, but the idx/sub subtitle file don't change the resolving. When I play it, the sub always show in downright corner, some sentence can hardly be seen. I trace the code, find the problem takes place in DVDOverlayrenderer.cpp, line41:

else if (pOverlay->IsOverlayType(DVDOVERLAY_TYPE_IMAGE))
{
Render(pPicture, (CDVDOverlayImage*)pOverlay);


In pPicture, video is 512x336, but in pOverlay, it used the original resolving 720x576, and didn't resized at all. this make subtitle displaying location worng.

It also seem that xbmc doesn't process the parameter in idx file.

I think this is a BIG problem and I report it in trac:http://xbmc.org/trac/ticket/3421

I hope someone can reslove this problem.

kazuyuki
2008-08-07, 12:12
sorry, I got worng trac no, the ticket I submit is:http://xbmc.org/trac/ticket/4351

davidw89
2008-08-07, 17:27
subtitles keeps displaying in the middle even after i calibrate the screen

kazuyuki
2008-08-08, 13:18
subtitles keeps displaying in the middle even after i calibrate the screen

The video resolvion must be biger then standard DVD size 720x576(APL, and also720x480, for NTSC). and the subtitle is remain in 720x576, so the sub can only show it middle screen.

This is also what the bug's appearance.

kazuyuki
2008-08-09, 16:43
resloved. I add some process before it be rendered. I submit a patch to TRAC int http://xbmc.org/trac/ticket/4478. The patch has not been optmized yet.