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.

@FreezyLemon FreezyLemon force-pushed the refactor-txsize-rect-ratio branch from 54567e8 to 4398cb8 Compare February 20, 2024 22:02
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 force-pushed the refactor-txsize-rect-ratio branch from 4398cb8 to 02f3d37 Compare April 16, 2024 21:55
@FreezyLemon FreezyLemon force-pushed the refactor-txsize-rect-ratio branch from 02f3d37 to b6f5b54 Compare June 22, 2024 21:11
@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.

@lu-zero lu-zero force-pushed the refactor-txsize-rect-ratio branch from b6f5b54 to 13ee0da Compare August 14, 2024 11:43
@shssoichiro shssoichiro force-pushed the refactor-txsize-rect-ratio branch from 13ee0da to f1c90e4 Compare August 15, 2024 06:34
@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.

4 participants