8000 Extend the signature of imdecodemulti() by kochanczyk · Pull Request #24405 · opencv/opencv · GitHub
[go: up one dir, main page]

Skip to content

Extend the signature of imdecodemulti() #24405

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

Merged
merged 8 commits into from
Oct 30, 2023
Prev Previous commit
Next Next commit
Pass the optional range of pages by value, not by reference
This change fixes building OpenCV under iOS Framework.
  • Loading branch information
kochanczyk committed Oct 19, 2023
commit 18894cf6be9944ba49b2188029d1a210b1a865fa
2 changes: 1 addition & 1 deletion modules/imgcodecs/include/opencv2/imgcodecs.hpp
AD7C
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ See cv::imreadmulti for the list of supported formats and flags description.
@param mats A vector of Mat objects holding each page, if more than one.
@param range A continuous selection of pages.
*/
CV_EXPORTS_W bool imdecodemulti(InputArray buf, int flags, CV_OUT std::vector<Mat>& mats, const cv::Range& range = Range::all());
CV_EXPORTS_W bool imdecodemulti(InputArray buf, int flags, CV_OUT std::vector<Mat>& mats, cv::Range range = Range::all());

/** @brief Encodes an image into a memory buffer.

Expand Down
2 changes: 1 addition & 1 deletion modules/imgcodecs/src/loadsave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ imdecodemulti_(const Mat& buf, int flags, std::vector<Mat>& mats, int start, int
return !mats.empty();
}

bool imdecodemulti(InputArray _buf, int flags, CV_OUT std::vector<Mat>& mats, const Range& range)
bool imdecodemulti(InputArray _buf, int flags, CV_OUT std::vector<Mat>& mats, Range range)
{
CV_TRACE_FUNCTION();

Expand Down
0