dvbsuboverlay: Remove some unused variables in the I420 blending function
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 18 Mar 2011 08:33:26 +0000 (09:33 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 18 Mar 2011 08:33:26 +0000 (09:33 +0100)
gst/dvbsuboverlay/gstdvbsuboverlay.c

index d50647d..5dc04cb 100644 (file)
@@ -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;