Pixel Aspect Ratio in Offscreen rendering

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Pixel Aspect Ratio in Offscreen rendering

Postby videoaudio » Fri Mar 11, 2016 2:29 am

Hi,

What is the pixel aspect ratio (https://en.wikipedia.org/wiki/Pixel_aspect_ratio) in output image (::onPait() output RGB buffer) in CEF offscreen rendering mode?

So far I am assuming it as 1 and pixels are square in nature.

is it safe to assume?
or any html setting also needed for it to be 1.

Thanks in advance.
videoaudio
Techie
 
Posts: 36
Joined: Tue Feb 17, 2015 10:08 am

Re: Pixel Aspect Ratio in Offscreen rendering

Postby magreenblatt » Fri Mar 11, 2016 4:05 pm

Pixels will be square by default, but you can probably get all kinds of strange results by changing the values returned from CefRenderHandler::GetScreenInfo().
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: Pixel Aspect Ratio in Offscreen rendering

Postby videoaudio » Mon Mar 14, 2016 3:02 am

I want them to be square most of the times.

Thanks @magreenblatt.
videoaudio
Techie
 
Posts: 36
Joined: Tue Feb 17, 2015 10:08 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 27 guests