cpjamloki
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2015
07:19 AM
SetDestinationRect for SD mode
i have set below position for HD in rovideoplayer in imagecanvas, which is fitting best.
player.SetDestinationRect(x:656,y:149,w:576,h:324)
but in SD mode it's not fitted. so please help me for findout it's SD position..
and how to calculate SetDestinationRect according to screen?
player.SetDestinationRect(x:656,y:149,w:576,h:324)
but in SD mode it's not fitted. so please help me for findout it's SD position..
and how to calculate SetDestinationRect according to screen?
3 REPLIES 3

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2015
07:49 AM
Re: SetDestinationRect for SD mode
roDeviceInfo.GetDisplayMode() tells you whether the display is in 720p or 480i. Is that what you're asking?
--Mark
--Mark
cpjamloki
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2015
08:39 AM
Re: SetDestinationRect for SD mode
i have set for SD version. mean i know it's 480i.
if my HD position is player.SetDestinationRect(x:656,y:149,w:576,h:324) . then what should be position for SD as set for HD.
i mean if "w:576,h:324" for HD
then what should be for SD w=? h=?
because i am not understanding how it's adjusting according to screen(HD/SD).
please suggest me how to give width and height position corrosponding to each other, when i am changing one position(whether it is w or h) it's affected both (w , h).
if my HD position is player.SetDestinationRect(x:656,y:149,w:576,h:324) . then what should be position for SD as set for HD.
i mean if "w:576,h:324" for HD
then what should be for SD w=? h=?
because i am not understanding how it's adjusting according to screen(HD/SD).
please suggest me how to give width and height position corrosponding to each other, when i am changing one position(whether it is w or h) it's affected both (w , h).
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2015
11:11 AM
Re: SetDestinationRect for SD mode
640x480 to 1280x720 is a 200% x 150% proportion
So if you have w:576,h:324 for SD then that should be 1152,486 for HD/720p - it is a little more complicated if you want relative positioning/centering, or other considerations involved in the finished position.
For HD to SD -- with w:576,h:324 -- it'd be w:288, h:216 for SD
So if you have w:576,h:324 for SD then that should be 1152,486 for HD/720p - it is a little more complicated if you want relative positioning/centering, or other considerations involved in the finished position.
For HD to SD -- with w:576,h:324 -- it'd be w:288, h:216 for SD