Go to advanced search

by zephyr5415
Wed Feb 13, 2019 3:29 am
Forum: C/C++
Topic: Decode JPEG stream using MMAL or OpenMax
Replies: 11
Views: 2215

Re: Decode JPEG stream using MMAL or OpenMax

video_decode is really designed for decoding MJPEG or H264, not single JPEGs. It would probably work and ignore EXIF headers and the like, but image_decode is intended to decode single images (and provides access to EXIF metadata, thumbnails, and the like). In either case the input port width/heigh...
by zephyr5415
Tue Feb 12, 2019 9:29 am
Forum: C/C++
Topic: Decode JPEG stream using MMAL or OpenMax
Replies: 11
Views: 2215

Re: Decode JPEG stream using MMAL or OpenMax

Hi @6by9, sorry for reply late. the codes I referenced are from here. https://github.com/6by9/rpi_mmal_examples/blob/master/graph_decode_render.c which uses graphic_connection to connect the decode module and render module. I just made merely change like following, I think I must miss some things t...
by zephyr5415
Tue Feb 12, 2019 2:37 am
Forum: C/C++
Topic: Decode JPEG stream using MMAL or OpenMax
Replies: 11
Views: 2215

Re: Decode JPEG stream using MMAL or OpenMax

Hi @6by9, sorry for reply late. the codes I referenced are from here. https://github.com/6by9/rpi_mmal_examples/blob/master/graph_decode_render.c which uses graphic_connection to connect the decode module and render module. I just made merely change like following, I think I must miss some things to...
by zephyr5415
Fri Feb 01, 2019 5:45 am
Forum: C/C++
Topic: Decode JPEG stream using MMAL or OpenMax
Replies: 11
Views: 2215

Re: Decode JPEG stream using MMAL or OpenMax

I recently tried to use mmal to decode the jpeg stream (MJPEG without timestamps) on raspberry pi and have already tried the source code from https://github.com/6by9/rpi_mmal_examples.git My question is that I simply modify the codes of graph_decode_render.c, which originally decode h264 file and ou...
by zephyr5415
Thu Jan 17, 2019 9:08 am
Forum: Graphics, sound and multimedia
Topic: [SOLVED]Build SDL2 on RaspberryPi2
Replies: 2
Views: 2038

Re: [SOLVED]Build SDL2 on RaspberryPi2

Finally, we can simply install SDL2 packages, 2.0.5 for Raspbian stretch. apt-cache serach SDL2 to find them. Anyway, I'm surprised that it seems to be so difficult to rebuild them. And according to my tests, the lib built by libsdl team don't work. Al Do you know if SDL2 in strech enabled hardware...
by zephyr5415
Tue Jan 08, 2019 7:43 am
Forum: OpenGLES
Topic: graphics_get_display_size wrong?
Replies: 4
Views: 4523

Re: graphics_get_display_size wrong?

I got the same issue on my rpi-stretch-Lite (uname -a = kernel 4.14.90-v7+ #1183) and set the boot config to hdmi_safe=1 where I'd like to run my application with SDL2 and is failed with SDL_Init(). I get the SDL driver number = 2. driver name "RPI" and "dummy". I cannot init video driver:RPI becaus...

Go to advanced search