PAR to SAR Helper Function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PAR to SAR Helper Function

HtGst

 

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.

Cheers,


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: PAR to SAR Helper Function

Sebastian Dröge-3
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (985 bytes) Download Attachment