mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
gldeinterlace: remove dead code accessing filter->in_tex_id
It's not set by anyone or anything and gldeinterlace is the only user of it now.
This commit is contained in:
parent
1da12235c3
commit
2a545d3bd1
1 changed files with 3 additions and 15 deletions
|
@ -469,7 +469,6 @@ gst_gl_deinterlace_greedyh_callback (gint width, gint height, guint texture,
|
||||||
GstGLDeinterlace *deinterlace_filter = GST_GL_DEINTERLACE (filter);
|
GstGLDeinterlace *deinterlace_filter = GST_GL_DEINTERLACE (filter);
|
||||||
GstGLContext *context = GST_GL_BASE_FILTER (filter)->context;
|
GstGLContext *context = GST_GL_BASE_FILTER (filter)->context;
|
||||||
GstGLFuncs *gl = context->gl_vtable;
|
GstGLFuncs *gl = context->gl_vtable;
|
||||||
guint temp;
|
|
||||||
|
|
||||||
shader =
|
shader =
|
||||||
gst_gl_deinterlace_get_fragment_shader (filter, "greedhy",
|
gst_gl_deinterlace_get_fragment_shader (filter, "greedhy",
|
||||||
|
@ -487,13 +486,7 @@ gst_gl_deinterlace_greedyh_callback (gint width, gint height, guint texture,
|
||||||
|
|
||||||
gst_gl_shader_use (shader);
|
gst_gl_shader_use (shader);
|
||||||
|
|
||||||
if (G_UNLIKELY (deinterlace_filter->prev_tex == 0)) {
|
if (G_LIKELY (deinterlace_filter->prev_tex != 0)) {
|
||||||
gst_gl_context_gen_texture (GST_GL_BASE_FILTER (filter)->context,
|
|
||||||
&deinterlace_filter->prev_tex,
|
|
||||||
GST_VIDEO_INFO_FORMAT (&filter->out_info),
|
|
||||||
GST_VIDEO_INFO_WIDTH (&filter->out_info),
|
|
||||||
GST_VIDEO_INFO_HEIGHT (&filter->out_info));
|
|
||||||
} else {
|
|
||||||
gl->ActiveTexture (GL_TEXTURE1);
|
gl->ActiveTexture (GL_TEXTURE1);
|
||||||
gst_gl_shader_set_uniform_1i (shader, "tex_prev", 1);
|
gst_gl_shader_set_uniform_1i (shader, "tex_prev", 1);
|
||||||
gl->BindTexture (GL_TEXTURE_2D, deinterlace_filter->prev_tex);
|
gl->BindTexture (GL_TEXTURE_2D, deinterlace_filter->prev_tex);
|
||||||
|
@ -514,11 +507,6 @@ gst_gl_deinterlace_greedyh_callback (gint width, gint height, guint texture,
|
||||||
|
|
||||||
gst_gl_filter_draw_texture (filter, texture, width, height);
|
gst_gl_filter_draw_texture (filter, texture, width, height);
|
||||||
|
|
||||||
if (texture == filter->in_tex_id) {
|
/* we keep the previous buffer around so this is safe */
|
||||||
temp = filter->in_tex_id;
|
|
||||||
filter->in_tex_id = deinterlace_filter->prev_tex;
|
|
||||||
deinterlace_filter->prev_tex = temp;
|
|
||||||
} else {
|
|
||||||
deinterlace_filter->prev_tex = texture;
|
deinterlace_filter->prev_tex = texture;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue