Skip to content

test(nodes): add pixel conversion tests for chroma subsampling boundaries #509

@staging-devin-ai-integration

Description

Context

PR #505 added I420/NV12 round-trip tests with solid colors (white, black, red). These avoid chroma subsampling edge cases because every 2×2 block has identical RGB values.

Suggested change

Add tests with:

  • Mixed-color images (e.g., checkerboard pattern) to exercise per-2×2 chroma averaging
  • Odd dimensions (e.g., 5×5, 7×3) to test boundary column/row handling in rgba8_to_i420_buf and rgba8_to_nv12_buf

Origin

Identified by automated review on #505.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions