Allow reading more than 6 sub-frames

This allows all images to be read from a Canon burst raw file.

Refactor raw image source to use unique_ptr.
This commit is contained in:
Lawrence Lee
2024-10-06 18:01:40 -07:00
parent 00360a6dbb
commit 860306dc35
3 changed files with 37 additions and 33 deletions

View File

@@ -745,7 +745,7 @@ void BayerProcess::FrameCountChanged(int n, int frameNum)
imageNumber->remove_all();
imageNumber->append("1");
for (int i = 2; i <= std::min(n, 6); ++i) {
for (int i = 2; i <= n; ++i) {
std::ostringstream entry;
entry << i;
imageNumber->append(entry.str());