mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
assrender: Remove dead assignments
This commit is contained in:
parent
bc3917bb04
commit
6158953f58
1 changed files with 4 additions and 19 deletions
|
@ -570,13 +570,13 @@ blit_i420 (GstAssRender * render, ASS_Image * ass_image, GstBuffer * buffer)
|
||||||
const guint8 *src;
|
const guint8 *src;
|
||||||
guint8 *dst_y, *dst_u, *dst_v;
|
guint8 *dst_y, *dst_u, *dst_v;
|
||||||
gint x, y, w, h;
|
gint x, y, w, h;
|
||||||
gint w2, h2;
|
gint w2;
|
||||||
gint width = render->width;
|
gint width = render->width;
|
||||||
gint height = render->height;
|
gint height = render->height;
|
||||||
gint src_stride;
|
gint src_stride;
|
||||||
gint y_offset, y_height, y_width, y_stride;
|
gint y_offset, y_stride;
|
||||||
gint u_offset, u_height, u_width, u_stride;
|
gint u_offset, u_stride;
|
||||||
gint v_offset, v_height, v_width, v_stride;
|
gint v_offset, v_stride;
|
||||||
|
|
||||||
y_offset =
|
y_offset =
|
||||||
gst_video_format_get_component_offset (GST_VIDEO_FORMAT_I420, 0, width,
|
gst_video_format_get_component_offset (GST_VIDEO_FORMAT_I420, 0, width,
|
||||||
|
@ -588,20 +588,6 @@ blit_i420 (GstAssRender * render, ASS_Image * ass_image, GstBuffer * buffer)
|
||||||
gst_video_format_get_component_offset (GST_VIDEO_FORMAT_I420, 2, width,
|
gst_video_format_get_component_offset (GST_VIDEO_FORMAT_I420, 2, width,
|
||||||
height);
|
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);
|
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);
|
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);
|
v_stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_I420, 2, width);
|
||||||
|
@ -624,7 +610,6 @@ blit_i420 (GstAssRender * render, ASS_Image * ass_image, GstBuffer * buffer)
|
||||||
h = MIN (ass_image->h, height - ass_image->dst_y);
|
h = MIN (ass_image->h, height - ass_image->dst_y);
|
||||||
|
|
||||||
w2 = (w + 1) / 2;
|
w2 = (w + 1) / 2;
|
||||||
h2 = (h + 1) / 2;
|
|
||||||
|
|
||||||
src_stride = ass_image->stride;
|
src_stride = ass_image->stride;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue