summaryrefslogtreecommitdiff
path: root/examples/egl
diff options
context:
space:
mode:
authorGwang Yoon Hwang <yoon@igalia.com>2016-01-20 03:10:38 +0900
committerMatthew Waters <matthew@centricular.com>2016-05-04 13:42:23 +1000
commit27d2cdd45dcf0bbd58c753e4b33058607153c4c1 (patch)
tree7cfe8c1439db4fae64254f076fe17dd981a8c904 /examples/egl
parent91dd92964d2171c6e43878f93cb0980101795cf2 (diff)
downloadgst-omx-27d2cdd45dcf0bbd58c753e4b33058607153c4c1.tar.gz
omxvideodec : Use gstglmemoryegl for the RPi
Modified to use gstglmemoryegl to avoid texture creation/copy operations at the glupload. [Matthew Waters]: gst-indent the sources and port testegl to GstGLMemoryEGL https://bugzilla.gnome.org/show_bug.cgi?id=760918
Diffstat (limited to 'examples/egl')
-rw-r--r--examples/egl/testegl.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/examples/egl/testegl.c b/examples/egl/testegl.c
index 29214d6..d4b46e4 100644
--- a/examples/egl/testegl.c
+++ b/examples/egl/testegl.c
@@ -719,13 +719,7 @@ init_textures (APP_STATE_T * state, GstBuffer * buffer)
{
GstCapsFeatures *feature = gst_caps_get_features (state->caps, 0);
- if (gst_caps_features_contains (feature, "memory:EGLImage")) {
- /* nothing special to do */
- g_print ("Prepare texture for EGLImage\n");
- state->can_avoid_upload = FALSE;
- glGenTextures (1, &state->tex);
- glBindTexture (GL_TEXTURE_2D, state->tex);
- } else if (gst_caps_features_contains (feature, "memory:GLMemory")) {
+ if (gst_caps_features_contains (feature, "memory:GLMemory")) {
g_print ("Prepare texture for GLMemory\n");
state->can_avoid_upload = TRUE;
state->tex = 0;
@@ -1144,10 +1138,6 @@ init_parse_launch_player (APP_STATE_T * state, const gchar * spipeline)
./testegl "filesrc location=big_buck_bunny_720p_h264.mov ! qtdemux ! \
h264parse ! omxh264dec ! glcolorscale ! \
- video/x-raw(memory:EGLImage) ! fakesink name=vsink"
-
- ./testegl "filesrc location=big_buck_bunny_720p_h264.mov ! qtdemux ! \
- h264parse ! omxh264dec ! glcolorscale ! \
video/x-raw(memory:GLMemory) ! fakesink name=vsink"
./testegl "filesrc location=big_buck_bunny_720p_h264.mov ! qtdemux ! \