Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn get_rect_tx_log_ratio into associated function for TxSize #3353

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

FreezyLemon
Copy link
Contributor

get_rect_tx_log_ratio is only used with width & height of TxSize (tx is in the name), so it makes sense to make it a TxSize method instead.

Using tx_size.width_log2() - 2 seemed more straightforward than the call to ILog, so I replaced that too.

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.72%. Comparing base (3c3a26f) to head (b6f5b54).
Report is 25 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3353      +/-   ##
==========================================
+ Coverage   88.52%   88.72%   +0.20%     
==========================================
  Files          89       89              
  Lines       28323    27754     -569     
==========================================
- Hits        25074    24626     -448     
+ Misses       3249     3128     -121     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FreezyLemon FreezyLemon changed the title Slightly refactor some TxSize-related code Turn get_rect_tx_log_ratio into associated function for TxSize Jun 22, 2024
Copy link
Collaborator

@lu-zero lu-zero left a comment

Choose a reason for hiding this comment

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

It seems fine.

@shssoichiro shssoichiro merged commit 92f506e into xiph:master Aug 15, 2024
24 of 25 checks passed
@FreezyLemon FreezyLemon deleted the refactor-txsize-rect-ratio branch August 15, 2024 15:26
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.

None yet

4 participants