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

bugfix: failed to obtain frameSize when open rawfile #548

Closed
wants to merge 2 commits into from

Conversation

for13to1
Copy link
Contributor

@@ -278,7 +278,7 @@ struct Size
{
return this->width != other.width || this->height != other.height;
}
constexpr bool isValid() const { return this->width != 0 && this->height != 0; }
constexpr bool isValid() const { return this->width > 0 && this->height > 0; }
Copy link
Member

Choose a reason for hiding this comment

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

This is equal to the old code. The problem is the static cast further up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This style can work both on signed or unsigned integer type definition: only positive values are valid, which means it allow using signed interger declaration.

Comment on lines +567 to +578
allExtensions.append("rgba");
allExtensions.append("rbga");
allExtensions.append("grba");
allExtensions.append("gbra");
allExtensions.append("brga");
allExtensions.append("bgra");
allExtensions.append("argb");
allExtensions.append("arbg");
allExtensions.append("agrb");
allExtensions.append("agbr");
allExtensions.append("abrg");
allExtensions.append("abgr");
Copy link
Member

Choose a reason for hiding this comment

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

Do you think these are missing? This was not metioned in the issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will open another issue, since I found YUView supports RGB image with alpha channel.
With these appending, opening *.rgba files will be more convenient.

@ChristianFeldmann
Copy link
Member

I am not sure about the RGB file extensions but there was no issue for this so closing this for now.

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