Posts: 22
Joined: Wed Sep 18, 2019 1:13 pm

Raspberry Pi 3 B Decode and render image with GLES2

Tue Oct 22, 2019 7:41 am

I am new with graphic programming and what I am trying to do is to decode and display with HW acceleration a JPEG on screen in specific position and dimension without X11.
All example that I found doesn't work ( ... 6#p1555166), I always get this error when compile:

Code: Select all

/usr/bin/ld: video/VideoObjects/VideoObjectGLES2_EGL.o: undefined reference to symbol 'eglCreateImageKHR'
/usr/bin/ld: //opt/vc/lib/ error adding symbols: DSO missing from command line
I am using Raspbian GNU/Linux 10 (buster).
Someone can help me to fix the error or better give some example to achieve what I need?


User avatar
Posts: 229
Joined: Sun Jun 16, 2013 1:18 pm
Location: Germany
Contact: Website

Re: Raspberry Pi 3 B Decode and render image with GLES2

Wed Oct 23, 2019 5:24 pm

The linked code sounds overly complicated. Also you don't necessarily need GL for any of that. You might have a look at a rather small tool I wrote in 2015: ... r/showjpeg. Modifying the dst_rect should allow you to place it freely on the screen.
info-beamer hosted - A user and programmer friendly digital signage platform for the Pi:

Return to “Graphics programming”