OpenMAX Playground for Raspberry Pi's VideoCore IV
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Sep 19, 2017
LICENSE Initial commit Sep 19, 2017
Makefile Initial Commit Sep 19, 2017
README.md * using mmap for loading files Sep 20, 2017
cHelper.h * using omxAssert to print out as string in case of error Sep 19, 2017
main.c * code cleanup in JPEG encoder Nov 3, 2017
mmapHelper.c * code cleanup in JPEG encoder Nov 3, 2017
mmapHelper.h * using mmap for loading files Sep 20, 2017
omxDump.c * code cleanup in JPEG encoder Nov 3, 2017
omxDump.h * code cleanup in JPEG encoder Nov 3, 2017
omxHelper.c * making omxJPEGEnc more usable in other projects, like PICS Nov 16, 2017
omxHelper.h + resize (first working example that works on the entire image at once) Sep 21, 2017
omxImageRead.c * using mmap for loading files Sep 20, 2017
omxImageRead.h Initial Commit Sep 19, 2017
omxJPEGDec.c + resize (first working example that works on the entire image at once) Sep 21, 2017
omxJPEGDec.h Initial Commit Sep 19, 2017
omxJPEGEnc.c * making omxJPEGEnc more usable in other projects, like PICS Nov 16, 2017
omxJPEGEnc.h * making omxJPEGEnc more usable in other projects, like PICS Nov 16, 2017
omxResize.c * making omxJPEGEnc more usable in other projects, like PICS Nov 16, 2017
omxResize.h + resize (first working example that works on the entire image at once) Sep 21, 2017
omxTunnel.c * working image_decode -> resize tunnel to decode JPEG to RGBA Sep 29, 2017
omxTunnel.h * first attempt for setting up a tunnel between two components Sep 28, 2017
simpleJPEG.c * using omxAssert to print out as string in case of error Sep 19, 2017
simpleJPEG.h Initial Commit Sep 19, 2017

README.md

OMXPlayground

OpenMAX Playground for Raspberry Pi's VideoCore IV

Remarks

image_read

This is not going to work. Quote from an Engineer Reading an image using OMX.broadcom.image_read

image_read isn't going to work, and I'm surprised if it is actually in the build. (I'll look at removing it tomorrow if it is).

When the chip was used as a co-processor there was a mode where it could also act as the main processor too, and that is the mode that image_read (and image_write) were intended for.

With the Pi the GPU has no direct access to the SD card or other storage, so it can't directly read the image data. You need to be looking at image_decode and passing in the source data via buffers.

image_decode

[...] the output port supports several colour formats. However, the component doesn't support colour format changing, so the colour format will be set to match that emitted by the encountered image format.

You need to use image_resize in order to change the colour format to the desired (for instance JPEG -> RAW corresponds to YUV -> RGB).