diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-03-18 09:33:26 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-03-18 09:33:26 +0100 |
commit | bdf51f12d2fb159671fed38767d5ba13902b5380 (patch) | |
tree | d594d0b51018f8aa2a3bc39a208c7ca5f0c694e6 /gst/dvbsuboverlay | |
parent | 9e7d1ba888af466a2625484d3091f701c70e9906 (diff) | |
download | gstreamer-plugins-bad-bdf51f12d2fb159671fed38767d5ba13902b5380.tar.gz |
dvbsuboverlay: Remove some unused variables in the I420 blending function
Diffstat (limited to 'gst/dvbsuboverlay')
-rw-r--r-- | gst/dvbsuboverlay/gstdvbsuboverlay.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index d50647de9..5dc04cb95 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -444,13 +444,13 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer) const guint8 *src; guint8 *dst_y, *dst_y2, *dst_u, *dst_v; gint x, y; - gint w2, h2; + gint w2; gint width = overlay->width; gint height = overlay->height; gint src_stride; - gint y_offset, y_height, y_width, y_stride; - gint u_offset, u_height, u_width, u_stride; - gint v_offset, v_height, v_width, v_stride; + gint y_offset, y_stride; + gint u_offset, u_stride; + gint v_offset, v_stride; gint scale = 0; gint scale_x = 0, scale_y = 0; /* 16.16 fixed point */ @@ -464,20 +464,6 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer) gst_video_format_get_component_offset (GST_VIDEO_FORMAT_I420, 2, width, height); - y_height = - gst_video_format_get_component_height (GST_VIDEO_FORMAT_I420, 0, height); - u_height = - gst_video_format_get_component_height (GST_VIDEO_FORMAT_I420, 1, height); - v_height = - gst_video_format_get_component_height (GST_VIDEO_FORMAT_I420, 2, height); - - y_width = - gst_video_format_get_component_width (GST_VIDEO_FORMAT_I420, 0, width); - u_width = - gst_video_format_get_component_width (GST_VIDEO_FORMAT_I420, 1, width); - v_width = - gst_video_format_get_component_width (GST_VIDEO_FORMAT_I420, 2, width); - y_stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_I420, 0, width); u_stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_I420, 1, width); v_stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_I420, 2, width); @@ -528,7 +514,6 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer) ystep = (sub_region->h << 16) / dh; w2 = (dw + 1) / 2; - h2 = (dh + 1) / 2; src_stride = sub_region->pict.rowstride; |