summaryrefslogtreecommitdiff
path: root/omx/gstomxvideo.h
diff options
context:
space:
mode:
authorJulien Isorce <jisorce@oblong.com>2017-12-12 17:30:27 +0000
committerJulien Isorce <jisorce@oblong.com>2017-12-14 09:20:49 +0000
commit681087819372e57157a13fbf3ac813a3025a2a29 (patch)
tree89d33c2f883bde2333c6a0784e871bf891fb2172 /omx/gstomxvideo.h
parent7048134fa9818fc7814942698e87570f31932f26 (diff)
downloadgst-omx-681087819372e57157a13fbf3ac813a3025a2a29.tar.gz
omxvideodec: ignore very little variations of the framerate
If less than 1%. The dynamic format change should not happen when the resolution does not change and when only the framerate changes but very slightly, i.e. from 50000/1677=29.81 to 89/3=29.66 so a "percentage change" of less than 1% (i.e. 100*(29.81-29.66)/29.66 = 0.50 < 1 ). In that case just ignore it to avoid unnecessary renegotiation. https://bugzilla.gnome.org/show_bug.cgi?id=759043
Diffstat (limited to 'omx/gstomxvideo.h')
-rw-r--r--omx/gstomxvideo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomxvideo.h b/omx/gstomxvideo.h
index 87de973..993f3d6 100644
--- a/omx/gstomxvideo.h
+++ b/omx/gstomxvideo.h
@@ -57,6 +57,8 @@ gst_omx_video_find_nearest_frame (GstOMXBuffer * buf, GList * frames);
OMX_U32 gst_omx_video_calculate_framerate_q16 (GstVideoInfo * info);
+gboolean gst_omx_video_is_equal_framerate_q16 (OMX_U32 q16_a, OMX_U32 q16_b);
+
G_END_DECLS
#endif /* __GST_OMX_VIDEO_H__ */