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

Fix full range override #912

Closed
wants to merge 1 commit into from
Closed

Conversation

bmatherly
Copy link
Member

Partial fix for:
https://forum.shotcut.org/t/23-04-color-range-regression/38609

The "force_full_range" parameter was not being taken into account because it is only calculated when the producer is opened.

Additionally, workaround an issue that full range conversion does does not work for 420P->420P.

Partial fix for:
https://forum.shotcut.org/t/23-04-color-range-regression/38609

The "force_full_range" parameter was not being taken into account
because it is only calculated when the producer is opened.

Additionally, workaround an issue that full range conversion does
does not work for 420P->420P.
@@ -1586,6 +1586,16 @@ static int convert_image_yuvp(producer_avformat self,
int dst_full_range)
{
int result = self->yuv_colorspace;

// Workaround: swscale does not convert the range if the src & dst are both 420P
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this was recently uncovered because the deinterlace filter is no longer requesting 422 if deinterlacing is not required. I was not able to find a way to get the swscale API to convert between full and mpeg ranges if both source and destination are 420P.

@ddennedy
Copy link
Member

ddennedy commented May 4, 2023

There were some things I did not like in this PR, but it very much inspired my commit 97dcafd that does not require a Shotcut change.

@ddennedy ddennedy closed this May 4, 2023
@bmatherly bmatherly deleted the full_range branch November 6, 2023 02:09
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

2 participants