Skip to content

Add encode_raw_plane_10_with_params.#101

Open
James2022-rgb wants to merge 2 commits intokornelski:mainfrom
James2022-rgb:feature/encode_raw_plane_10_with_params
Open

Add encode_raw_plane_10_with_params.#101
James2022-rgb wants to merge 2 commits intokornelski:mainfrom
James2022-rgb:feature/encode_raw_plane_10_with_params

Conversation

@James2022-rgb
Copy link

Hi, this PR adds encode_raw_plane_10_with_params to rav1f::av1encoder::Encoder, which allows encoding with color spaces besides sRGB.

color_pixel_range: PixelRange, matrix_coefficients: MatrixCoefficients,
) -> Result<EncodedImage, Error> {
self.encode_raw_planes_internal(width, height, planes, alpha, color_pixel_range, matrix_coefficients, 8)
const TRANSFER_CHARACTERISTICS: TransferCharacteristics = TransferCharacteristics::SRGB;
Copy link
Owner

Choose a reason for hiding this comment

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

The constants are not needed. You can use the values directly.

Copy link
Author

Choose a reason for hiding this comment

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

Done!

Copy link
Author

Choose a reason for hiding this comment

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

Should I use the Resolve conversation the button ?

@kornelski
Copy link
Owner

Thanks for the PR

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.

2 participants