codecparsers_h264: add gst_h264_video_calculate_framerate()
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Mon, 19 May 2014 15:43:54 +0000 (17:43 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 22 May 2014 14:12:35 +0000 (16:12 +0200)
commit753701bf689e2b349d382f79ba01f44d2e0e7602
treeae0d3a59569988929cfd7d3fdc13a7953bd0c863
parent746d021d70c1a23f5a3e5e888b4bc2abaa1aca1f
codecparsers_h264: add gst_h264_video_calculate_framerate()

Add a new function to calculate video stream framerate which rely on
SPS, slice header and pic timing using formula:

         time_scale                1                         1
fps = -----------------  x  ---------------  x  ------------------------
      num_units_in_tick     DeltaTfiDivisor     (field_pic_flag ? 2 : 1)

See section E2.1 of H264 specification for definition of variables.

https://bugzilla.gnome.org/show_bug.cgi?id=723352
docs/libs/gst-plugins-bad-libs-sections.txt
gst-libs/gst/codecparsers/gsth264parser.c
gst-libs/gst/codecparsers/gsth264parser.h