home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Zoom : adding 'no aspect ratio change' in general settings
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Huge" data-source="post: 70096" data-attributes="member: 23832"><p>Hi, I have had some experience writing a video player and we came up with the following ideas.</p><p></p><p>1. Output (screen) pixel aspect ratio is fixed. Set this once, and forget.</p><p></p><p>2. Source pixel aspect ratio can be found from direct-show, or assumed from video rect (pal, ntsc etc). *may* require some overrride, but probably not.</p><p></p><p>3. black-bar detection in the source is a topic of its own - handle it a) automatically detect, b) let user specify (per channel ?) c) ignore.</p><p></p><p>So, once the above (constant for given hardware setup, ie, do not need to be dynamically addressable) considerations have been taken into account, the problem reduces to the problem of fitting one rectangle inside another. A simple scheme is this:</p><p>Have 2 controls, "allowable crop" and "allowable stretch".</p><p></p><p>It works like this: say you have 3% allowable stretch. First thing you do is expand the video rect in the "unused" direction by up to this fraction. If that is all you need to do, then you are done.</p><p>Otherwise, look at your "allowable crop". Say this is 20%. zoom the image (1:1) until either 20% of the image has gone, or the black bars on the side are all taken up. Whatever left over is black-barred.</p><p></p><p>This works so well because for a given user, these numbers are pretty much constant. ie.</p><p>Person A is a video-phile and requires a 1:1 aspect ratio, and can not tollerate losing the edge of the screen = allowable crop=0%, allowable stetch=0%.</p><p>Person B (me!) does not like to "waste" room on the telly, does not really like stretching, and can handle a bit of the image missing at the edges: allowable stretch=2%, allowable crop=10%.</p><p>etc.</p><p></p><p>You do not really need to change these dynamically, so you could use the spot in the video menu to correct for source-black-bar detection/lack of. These are more subtle, and if you consider the allowable stretch, these changes wont violate peoples aspect-ratio expectations.</p></blockquote><p></p>
[QUOTE="Huge, post: 70096, member: 23832"] Hi, I have had some experience writing a video player and we came up with the following ideas. 1. Output (screen) pixel aspect ratio is fixed. Set this once, and forget. 2. Source pixel aspect ratio can be found from direct-show, or assumed from video rect (pal, ntsc etc). *may* require some overrride, but probably not. 3. black-bar detection in the source is a topic of its own - handle it a) automatically detect, b) let user specify (per channel ?) c) ignore. So, once the above (constant for given hardware setup, ie, do not need to be dynamically addressable) considerations have been taken into account, the problem reduces to the problem of fitting one rectangle inside another. A simple scheme is this: Have 2 controls, "allowable crop" and "allowable stretch". It works like this: say you have 3% allowable stretch. First thing you do is expand the video rect in the "unused" direction by up to this fraction. If that is all you need to do, then you are done. Otherwise, look at your "allowable crop". Say this is 20%. zoom the image (1:1) until either 20% of the image has gone, or the black bars on the side are all taken up. Whatever left over is black-barred. This works so well because for a given user, these numbers are pretty much constant. ie. Person A is a video-phile and requires a 1:1 aspect ratio, and can not tollerate losing the edge of the screen = allowable crop=0%, allowable stetch=0%. Person B (me!) does not like to "waste" room on the telly, does not really like stretching, and can handle a bit of the image missing at the edges: allowable stretch=2%, allowable crop=10%. etc. You do not really need to change these dynamically, so you could use the spot in the video menu to correct for source-black-bar detection/lack of. These are more subtle, and if you consider the allowable stretch, these changes wont violate peoples aspect-ratio expectations. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Zoom : adding 'no aspect ratio change' in general settings
Contact us
RSS
Top
Bottom