6by9 / mmal_render_example Goto Github PK
View Code? Open in Web Editor NEWSimple example app of rendering user generated images to the display
Simple example app of rendering user generated images to the display
I've tried several different image encodings hoping to display a YUYV (yuv4:2:2) frame via openmax, but no joy, so I'm trying your mmal render code, but again, whatever encoding I try never looks correct.
It's strange, because, for example the encoding I initially tried,
MMAL_ENCODING_YUYV
works just fine when I convert the same 600k yuyv frame to jpeg via mmal.
BTW,
presumably 2 typo's in:
param.set |= MMAL_DISPLAY_SET_ALPHA;
param.layer = 0; //0 = opaque, 255 = transparent IIRC
should be
param.alpha = 255; //255 = opaque, 0 = transparent
Hi! Setting the following: #define ENCODING MMAL_ENCODING_RGB32
makes the program return the following error:
mmal: mmal_vc_port_info_set: failed to set port info (2:0): EINVAL
mmal: mmal_vc_port_set_format: mmal_vc_port_info_set failed 0xc42da0 (EINVAL)
This error shows on all pixel formats that are 32 bits per pixel
Hi! Is there anyway to quickly zero out a buffer? For my 32bpp buffer for a 1920x1080 screen I am finding that it is taking anywhere from 9 to 15 ms to actually zero out the buffer using memset on a raspberry PI. Thanks for the help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.