Skip to content

rdk: Make HasLowResolution respect portrait resolution - #13527

Merged
johnedocampo merged 1 commit into
youtube:mainfrom
johnedocampo:rdk_fix
Oct 27, 2026
Merged

johnedocampo merged 1 commit into
youtube:mainfrom
johnedocampo:rdk_fix

Conversation

@johnedocampo

@johnedocampo johnedocampo commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

The HasLowResolution check in the RDK player implementation previously
relied on fixed width and height comparisons. This caused portrait
content to be incorrectly categorized when
the dimensions were swapped compared to standard landscape video.

This update ensures that orientation does not affect whether a stream
is identified as low resolution by checking the dimensions
agnostically. This provides consistent behavior for both landscape
and portrait orientations.

Bug: 574136609

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ✅ PASS All checks passed
CI / android ✅ PASS Passed
CI / evergreen ✅ PASS Passed
CI / linux ✅ PASS Passed
CI / tvos ✅ PASS Passed
@johnedocampo johnedocampo changed the title rdk: have HasLowResolution respect portrait Oct 20, 2026
@johnedocampo johnedocampo changed the title rdk: make HasLowResolution respect portrait resolution Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


starboard: Support portrait in HasLowResolution

The HasLowResolution check in the RDK player implementation previously
relied on fixed width and height comparisons. This caused portrait
content, like YouTube Shorts, to be incorrectly categorized when
the dimensions were swapped compared to standard landscape video.

This update ensures that orientation does not affect whether a stream
is identified as low resolution by checking the dimensions
agnostically. This provides consistent behavior for both landscape
and portrait orientations.

Bug: None

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message
@johnedocampo
johnedocampo force-pushed the rdk_fix branch 2 times, most recently from 28049b7 to 1cb9593 Compare October 20, 2026 21:45
@johnedocampo
johnedocampo marked this pull request as ready for review October 20, 2026 21:45
@johnedocampo
johnedocampo requested a review from a team as a code owner October 20, 2026 21:45

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the HasLowResolution method in player_internal.cc to compare resolution orientation-agnostically, ensuring portrait streams are treated the same as landscape equivalents. The review feedback suggests using auto instead of uint32_t for long_edge and short_edge to avoid potential signed/unsigned comparison warnings or build failures if width and height are stored as signed integers.

@lamdbui
lamdbui requested a review from jonastsai October 21, 2026 16:03
@johnedocampo
johnedocampo merged commit 348295b into youtube:main Oct 27, 2026
879 of 888 checks passed
@johnedocampo
johnedocampo deleted the rdk_fix branch October 27, 2026 19:56
cobalt-github-releaser-bot pushed a commit that referenced this pull request Oct 27, 2026
…solution

Refer to original PR: #13527

The HasLowResolution check in the RDK player implementation previously
relied on fixed width and height comparisons. This caused portrait
content to be incorrectly categorized when
the dimensions were swapped compared to standard landscape video.

This update ensures that orientation does not affect whether a stream
is identified as low resolution by checking the dimensions
agnostically. This provides consistent behavior for both landscape
and portrait orientations.

Bug: 574136609

(cherry picked from commit 348295b)
cobalt-github-releaser-bot pushed a commit that referenced this pull request Oct 27, 2026
…solution

Refer to original PR: #13527

The HasLowResolution check in the RDK player implementation previously
relied on fixed width and height comparisons. This caused portrait
content to be incorrectly categorized when
the dimensions were swapped compared to standard landscape video.

This update ensures that orientation does not affect whether a stream
is identified as low resolution by checking the dimensions
agnostically. This provides consistent behavior for both landscape
and portrait orientations.

Bug: 574136609

(cherry picked from commit 348295b)
@andrewsavage1 andrewsavage1 added the cp-27.lts Cherry Pick to the 27.lts branch label Oct 29, 2026
briantting pushed a commit that referenced this pull request Nov 3, 2026
…solution

Refer to original PR: #13527

The HasLowResolution check in the RDK player implementation previously
relied on fixed width and height comparisons. This caused portrait
content to be incorrectly categorized when
the dimensions were swapped compared to standard landscape video.

This update ensures that orientation does not affect whether a stream
is identified as low resolution by checking the dimensions
agnostically. This provides consistent behavior for both landscape
and portrait orientations.

Bug: 574136609

(cherry picked from commit 348295b)
briantting pushed a commit that referenced this pull request Nov 9, 2026
…solution

Refer to original PR: #13527

The HasLowResolution check in the RDK player implementation previously
relied on fixed width and height comparisons. This caused portrait
content to be incorrectly categorized when
the dimensions were swapped compared to standard landscape video.

This update ensures that orientation does not affect whether a stream
is identified as low resolution by checking the dimensions
agnostically. This provides consistent behavior for both landscape
and portrait orientations.

Bug: 574136609

(cherry picked from commit 348295b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cp-27.lts Cherry Pick to the 27.lts branch

3 participants