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

Avoid unnecessary copies of the first argument of sabsample() #25

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,8 @@ HWY_EXPORT(subsample_core);
void rgb2ycbcr(uint8_t *HWY_RESTRICT in, std::vector<uint8_t *> &out, const int width) {
HWY_DYNAMIC_DISPATCH(rgb2ycbcr)(in, out, width);
}
void subsample(std::vector<uint8_t *> in, std::vector<int16_t *> &out, const int width, const int YCCtype) {
void subsample(std::vector<uint8_t *> &in, std::vector<int16_t *> &out, const int width,
const int YCCtype) {
HWY_DYNAMIC_DISPATCH(subsample_core)(in, out, width, YCCtype);
}
} // namespace jpegenc_hwy
Expand Down
2 changes: 1 addition & 1 deletion lib/color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

namespace jpegenc_hwy {
void rgb2ycbcr(uint8_t *in, std::vector<uint8_t *> &out, int width);
void subsample(std::vector<uint8_t *>, std::vector<int16_t *> &out, int width, int YCCtype);
void subsample(std::vector<uint8_t *> &in, std::vector<int16_t *> &out, int width, int YCCtype);
} // namespace jpegenc_hwy