-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enum Rav1dFrameType
: Make a real enum
and make `fn is_{inter_or_s…
…witch,key_or_intra}` methods instead (#625) The `fn is_{inter_or_switch,key_or_intra}`s took whole `&Rav1dFrameHeader`s as arguments, but this doesn't work in `fn parse_frame_hdr` if the `Rav1dFrameHeader` isn't constructed, so now these `fn`s are methods on `enum Rav1dFrameType`. The implementation is also simpler, not using `& 1`, but it should still be optimized to the same since Rust knows `enum`s can only be certain values. I also adjusted `enum {D,R}av1dPixelLayout` to use the same approach as `enum Rav1dPixelLayout` for conversions.
- Loading branch information
Showing
5 changed files
with
124 additions
and
114 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.