-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add calculations for YUV / planar images #479
base: main
Are you sure you want to change the base?
Conversation
8e74f39
to
4bce41e
Compare
4bce41e
to
c9ed717
Compare
2aa3d29
to
71f2228
Compare
e14a6a3
to
e588acf
Compare
Also, create format definitions for YUV images.
Put self-header at the top, and C++ std headers after, before project- wide headers.
279d8a5
to
9f6e6a6
Compare
Add a quick explanation of what chroma subsampling is / how it affects how pixels are stored.
// Splits the frames from a raw video, based on the format of the frames, | ||
// and metadata such as height and width. This assumes raw video, with no | ||
// metadata in the file itself, and no audio tracks (such as a camera | ||
// feed). Returns if the operation succeeded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Returns if the operation succeeded"? Did you mean to say "Returns X", cause couldn't it return error code as well?
std::vector<char> buffer(frameSize); | ||
size_t totalRead = 0; | ||
while (totalRead < fileSize) { | ||
const size_t bytesRead = file.Read(buffer.data(), frameSize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this safe to do after a std::move operation? Would buffer have frameSize capacity?
Also, create format definitions for YUV images.