Skip to content

Raise max video resolution limit from 1920x1080 to 3840x2160#29

Open
sunilnom wants to merge 1 commit into
OpenVisualCloud:mainfrom
sunilnom:2k_4k_tx
Open

Raise max video resolution limit from 1920x1080 to 3840x2160#29
sunilnom wants to merge 1 commit into
OpenVisualCloud:mainfrom
sunilnom:2k_4k_tx

Conversation

@sunilnom

@sunilnom sunilnom commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
  • Update validation in config_reader to allow 2K and 4K resolutions
  • Update test to reflect new 3840x2160 maximum

Description

Checklist

Code Quality

  • Code follows project style guidelines
  • No unnecessary debug logs or commented-out code
  • No hardcoded values / secrets

Testing

  • Unit test added/modified accordingly
  • Perform manual basic sanity testing at system level

Review Readiness

  • PR title and description are clear and meaningful
  • Story/Task IDs are linked

Documentation

  • README or relevant docs updated (if applicable)

Security

  • No sensitive data exposed (keys, passwords, tokens)
  • Input validation added where needed

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes
  • Testing
  • Other... Please describe:

- Update validation in config_reader to allow 2K and 4K resolutions
- Update test to reflect new 3840x2160 maximum

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases the maximum allowed video resolution in the JSON config validation from 1920×1080 to 3840×2160, and updates the corresponding unit test to reflect the new limit.

Changes:

  • Updated validate_tx_config() to allow resolutions up to 3840×2160.
  • Updated the unit test that verifies validation fails when the configured resolution exceeds the maximum.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/test_config_reader.c Updates the “exceeds max resolution” validation test input to exceed the new 3840 width limit.
src/util/config_reader.c Raises the max width/height validation thresholds and updates the associated error message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/util/config_reader.c
Comment on lines +421 to 422
LOG_ERROR("video resolution %dx%d exceeds maximum 3840x2160",
config->width, config->height);
struct dvledtx_config cfg;
fill_valid_config(&cfg);
cfg.width = 2000; /* > 1920 limit */
cfg.width = 4000; /* > 3840 limit */

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add unit tests to validate 2k and 4k resolutions, update README with the resolution support

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.

3 participants