Skip to content

videoio: fixed V4L frame size for non-BGR output#27193

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
mshabunin:fix-v4l-size
Apr 3, 2025
Merged

videoio: fixed V4L frame size for non-BGR output#27193
asmorkalov merged 1 commit intoopencv:4.xfrom
mshabunin:fix-v4l-size

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

@mshabunin mshabunin commented Apr 3, 2025

Resolves #27166

  • Restored image initialization process for non-BGR data
  • Minor code style changes (convertToRgb)
  • Use non-rounded value when setting CAP_PROP_FOURCC property (it prevented selecting BE fourcc)
  • Changed expected dimensions in the test for XBGR32 and ABGR32 formats
  • Changed dump file names in the test

Notes:

Dumped test files (with BGR conversion):
image

@mshabunin
Copy link
Copy Markdown
Contributor Author

CC @jveitchmichaelis , please check the fix on your side if possible.

@asmorkalov asmorkalov self-requested a review April 3, 2025 05:15
@asmorkalov asmorkalov self-assigned this Apr 3, 2025
@asmorkalov asmorkalov added this to the 4.12.0 milestone Apr 3, 2025
@asmorkalov asmorkalov merged commit d49dee8 into opencv:4.x Apr 3, 2025
26 of 28 checks passed
@mshabunin mshabunin deleted the fix-v4l-size branch April 3, 2025 07:53
@jveitchmichaelis
Copy link
Copy Markdown
Contributor

Thanks for the swift action on this, I'll try and get some feedback from our users and see if this fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

16-bit images captured by UVC cameras + V4L are returned as a flattened array

3 participants