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

v4l2-linux: Fix nv12 linesize #3507

Merged
merged 1 commit into from
Sep 27, 2020
Merged

Conversation

kkartaltepe
Copy link
Collaborator

Description

unlike other YUV based formats nv12 chroma plane has the same padding as
the luma plane.
ref: https://01.org/linuxgraphics/gfx-docs/drm/media/uapi/v4l/pixfmt-nv12.html

Motivation and Context

Fixes nv12 capture
fixes #3506

How Has This Been Tested?

Tested using ffmpeg and v4l2loopback for capture.
ffmpeg -re -loop 1 -i ~/SMPTE_Color_Bars.png -vf 'format=nv12' -f v4l2 /dev/video2

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

unlike other YUV based formats nv12 chroma plane has the same padding as
the luma plane.
ref: https://01.org/linuxgraphics/gfx-docs/drm/media/uapi/v4l/pixfmt-nv12.html
@kkartaltepe kkartaltepe changed the title v4l2-linx: Fix nv12 linesize v4l2-linux: Fix nv12 linesize Sep 26, 2020
@WizardCM WizardCM added the Bug Fix Non-breaking change which fixes an issue label Sep 27, 2020
@jp9000 jp9000 merged commit 0cad2ab into obsproject:master Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Non-breaking change which fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux Video Capture Device Graphical Bugs
3 participants