Skip to content

Add dynamic V4L2 test pattern controls to emulated_camera_mplane#2845

Open
changyeon-jo wants to merge 2 commits into
google:mainfrom
changyeon-jo:migrate_tpg
Open

Add dynamic V4L2 test pattern controls to emulated_camera_mplane#2845
changyeon-jo wants to merge 2 commits into
google:mainfrom
changyeon-jo:migrate_tpg

Conversation

@changyeon-jo

Copy link
Copy Markdown

Implement support for dynamic video test patterns and their associated
V4L2 control handlers. Supported patterns include:

  • Pattern 0 (Legacy Pulse): Uniform color-cycling.
  • Pattern 1 (SMPTE + Bouncing Box): Full color SMPTE bars with an animated
    inverse-color bouncing box overlay, adapted for the 3-sink layout and
    640x480 resolution.
  • Pattern 2 (Animated Julia Set): CPU-intensive fractal pattern simulation
    for high-load host load scenarios.

Supports V4L2_CID_TEST_PATTERN and V4L2_CID_IMAGE_PROC_CLASS via the
VirtioMediaIoctlHandler implementation.

Bug: b/490699808

@changyeon-jo changyeon-jo force-pushed the migrate_tpg branch 2 times, most recently from 3b74c0d to 8515fd4 Compare July 10, 2026 23:40
Implement support for dynamic video test patterns and their associated
V4L2 control handlers. Supported patterns include:
- Pattern 0 (Legacy Pulse): Uniform color-cycling.
- Pattern 1 (SMPTE + Bouncing Box): Full color SMPTE bars with an animated
  inverse-color bouncing box overlay, adapted for the 3-sink layout and
  640x480 resolution.
- Pattern 2 (Animated Julia Set): CPU-intensive fractal pattern simulation
  for high-load host load scenarios.

Supports V4L2_CID_TEST_PATTERN and V4L2_CID_IMAGE_PROC_CLASS via the
VirtioMediaIoctlHandler implementation.

Bug: b/490699808
@changyeon-jo changyeon-jo marked this pull request as draft July 10, 2026 23:59
@changyeon-jo changyeon-jo marked this pull request as ready for review July 11, 2026 00:49
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.

2 participants