Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce 'buffer_type' structure #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rzerres
Copy link
Contributor

@rzerres rzerres commented Mar 9, 2019

When addressing buffers within V4L2, their types are defined in "enum v4l2_buf_type" in <videodev2.h>.
The enum definitions correspond with human readable names, which are accessible through this new 'buffer_type' structure.

  • define a V4L2 buffer type structure (.name, .type)
  • refer 'v4l2_buf_type' enum values to their lexical names

- define a V4L2 buffer type structure (.name, .type)
- refer 'v4l2_buf_type' enum values to their lexical names

Signed-off-by: Ralf Zerres <[email protected]>
@rzerres rzerres changed the title introduce structure buffer_type introduce 'buffer_type' structure Mar 9, 2019
- take the field value in question and output its dereferenced name
  from the referenced structure

Signed-off-by: Ralf Zerres <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant