Skip to content

Preserve sample values and row boundaries during pixel conversion - #3

Open
xia-chao wants to merge 2 commits into
mainfrom
fix/genicam-conversion-and-pool
Open

xia-chao wants to merge 2 commits into
mainfrom
fix/genicam-conversion-and-pool

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Respect sample byte order and preserve row padding when scaling unpacked pixels to 16 bits.
  • Unpack Mono10p and 12-bit packed formats by row, including partial groups.
  • Decode the second sample's low bits correctly in legacy Mono10Packed images.
  • Round the packed input stride up to a whole byte and drop a frame if conversion fails.

Validation

  • Built with ROS 2 Jazzy and Aravis 0.8.30 on Linux.
  • Ran the conversion contract against the original core and the revised build. Compared byte order, RGB row padding, two-row Mono10p/Mono12p/RGB12p output, legacy sample bits, and stride.

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