From: Guillaume Desmottes Date: Thu, 23 Jan 2020 09:40:36 +0000 (+0530) Subject: interlace: factor out gst_interlace_decorate_buffer_ts() X-Git-Tag: 1.19.3~507^2~2170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bfbddf85949308e4bf6ab91e33cf7d79fd679d1;p=platform%2Fupstream%2Fgstreamer.git interlace: factor out gst_interlace_decorate_buffer_ts() --- diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index 13a9f6f..d561a1d 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -333,8 +333,8 @@ static const PulldownFormat formats[] = { }; static void -gst_interlace_decorate_buffer (GstInterlace * interlace, GstBuffer * buf, - int n_fields, gboolean interlaced) +gst_interlace_decorate_buffer_ts (GstInterlace * interlace, GstBuffer * buf, + int n_fields) { /* field duration = src_fps_d / (2 * src_fps_n) */ if (interlace->src_fps_n == 0) { @@ -352,6 +352,13 @@ gst_interlace_decorate_buffer (GstInterlace * interlace, GstBuffer * buf, gst_util_uint64_scale (GST_SECOND, interlace->src_fps_d * n_fields, interlace->src_fps_n * 2); } +} + +static void +gst_interlace_decorate_buffer (GstInterlace * interlace, GstBuffer * buf, + int n_fields, gboolean interlaced) +{ + gst_interlace_decorate_buffer_ts (interlace, buf, n_fields); if (interlace->field_index == 0) { GST_BUFFER_FLAG_SET (buf, GST_VIDEO_BUFFER_FLAG_TFF);