Don't clear intermediate framebuffer.

The intermediate framebuffer size always matches the video size, so whenever
the deinterlace step is executed the whole framebuffer is repainted and hence
no clear is required.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Don't set EGL_SURFACE_TYPE explicitly.

EGL_WINDOW_BIT is the default value for EGL_SURFACE_TYPE, so there is no need
to set it explicitly.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Remove unneccesary conditionals.

The update_texture_simple method is only called when gl->has_unpack_row is
set, so we can avoid checking for it in the method.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Correct function names.

The color conversion is done in the deinterlace step and not in the scaling
step. Rename the functions to reflect this correctly.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Remove old nvidia quirk.

The quirk for closing not longer needed file handles was only required for
nvidia tegra l4t drivers up to release 12. As the current release is 16 and 12
is not used anymore, remove these unnecessary quirks.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Rename compute_bounding_box.

The function does not only compute the bounding box, but also clears the GL
viewport, so rename it to update_bounding_box.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Increase plugin priority.

The gles plugin should be used as primary plugin whenever it is available, so
we increase the plugin priority.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Initialize variables.

To ensure that we receive a defined value we initialize the border and depth
before passing them into Xlib.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Add render time measurement.

For debugging purpose it can be handy to see the actual render time used by
the plugin. This code just takes timestamps before and after the rendering and
computes the runtime.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Fix package name.

The package is named vlc-plugin-gles2 not vlc-plugins-gles2.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Release 0.1.2
Post release version bump.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>