Possible code changes to help with alignment
#16
sweet dude, worked like a charm. i forgot to define ntsc_4x3 at the beginning of the script. cheers dude :kickass:
Reply
#17
jonathan,

i was playing with this some more and it appears the list control does not scale height, it scales position and width only.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#18
hi jonathan,
i just thought that this functionality could solve the overscan problems my tv has with some scripts.

do you think that there could be a setting to set the scaled resolution to the video calibration setting? im hoping it's as simple as that. thanks so much!

-ast
/fellow jonathan irl (-:
Reply
#19
given the tight real estate i vote to un stickify this thread.
Reply
#20
hi jonathan,

i've just been able to play with self.setcoordinateresolution(ntsc_4x3) on 720p resolution.

to get controlimages to scale so they look close to the original i had to use this formula. it's probably not exact, but it looks alot better. the .91 is from dividing the 4:3 pixel ratio compared to the 1:1 of 720p.

Quote:self.padw = int(float((300 / 4)* 3 / .91))

should your code do this automatically, it appears the list control is scaling correctly.

the 1st picture is 720p with the formula, the second is 720p without the formula and the 3rd is the original at 480ntsc

Image
Image
Image



For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#21
i don't think so, no.

the problem is basically the aspect ratio changes. if i did this then anything full screen in 4x3 wouldn't be fullscreen in 720p (and vice-versa).

images are the only thing this really effects (ie size of dialog boxes is not as much of an issue) and the <keepaspectratio> tag in the skin (and i think you can set this from python as well?) takes care of that.

the skin uses 2 resolutions (pal and pal16x9) as the base for exactly this reason, and i don't think there's an easy way to do any automatic conversion.

you could probably do it on the fly by setting the window coordinate system to be ntsc16x9 rather than ntsc if using a widescreen mode?

any ideas are welcome Smile

cheers,
jonathan



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#22
thanks jonathan,

getresolution() and then setcoordinateresolution() to ntsc or ntsc_16x9 based on if getresolution() is a widescreen result works. i'll test more, but it worked for 720p.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#23
Okay, I wasn't around to post when this was added, but this is all kinds of awesome! Thank you so much for adding this functionality.

Gonna plug it into all of my scripts and consider it a major update for each of them....
For scripts, script development tools, and documentation, visit my website:
http://www.maskedfox.com/xbmc/
Reply

Logout Mark Read Team Forum Stats Members Help
Possible code changes to help with alignment0