PAR to SAR Helper Function

Sebastian Dröge sebastian at centricular.com
Tue Sep 20 14:29:29 UTC 2016


On Mo, 2016-09-19 at 18:55 -0700, ht techdev wrote:
>  
> Hi
> Need to generate proper SAR values for an HEVC encoder, as per T-REC-
> H.265-201504, i.e. the following:
> 
>  
> Initially, I directly mapped GST_VIDEO_INFO_PAR_N(&info) and
> GST_VIDEO_INFO_PAR_D(&info), for these values. However, it seems that
> regardless of frame’s width and height, I always get 1:1.
> I am wondering if there some existing conversion function, in
> gstreamer 1.4.5,  that may be able to the above conversion.

The SAR is the same as the PAR, yes. If you always get 1:1 but expect
something else, then caps are wrong and you'll have to debug where and
why they are set wrong.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 967 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160920/1cc6e83c/attachment-0001.sig>


More information about the gstreamer-devel mailing list