Coder Social home page Coder Social logo

Comments (3)

fooishbar avatar fooishbar commented on September 26, 2024 1

There's no per-mode discovery since format and mode are usually independent. However you can look at the formats array in drmModePlaneInfo, or parse the IN_FORMATS plane-property blob. drm_info/Weston/etc are probably your best places to look at for this.

from docs.

dvdhrm avatar dvdhrm commented on September 26, 2024

The examples use dumb-buffers, which is the driver-agnostic way to drive the display. For those, I think nearly everyone assumes 32bit RGBX buffers are supported (I even thought that was a requirement to support the dumb-buffer-API).

I would assume that the supported color-formats are fixed for a given hardware+mode, and thus are not discoverable. However, I wouldn't be surprised if there are DRM-properties that you can query for this information. I honestly don't know, though. You can try checking the libgbm / libdrm / mesa codebase for details, or maybe @fooishbar knows more?

from docs.

dvdhrm avatar dvdhrm commented on September 26, 2024

Thanks a lot for the info! I think the IN_FORMATS is suitable for this!

from docs.

Related Issues (12)

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.