Coder Social home page Coder Social logo

mmal_render_example's People

Contributors

6by9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mmal_render_example's Issues

Encoding problem & 2 typo's

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

32 bits per pixel

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

Quick way to clear out buffer

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.