Skip to content

Commit

Permalink
Merge branch 'toup_no_flush' into dslr_support
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-beilis committed Aug 20, 2023
2 parents c05c47d + c7c23e8 commit 5f61b9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/toup_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ namespace ols
handle_error("Toupcam_PullImage",hr);
return;
}
// printf("handle_frame: Toupcam_PullImage=(%ux%u)\n", w, h);
/* // printf("handle_frame: Toupcam_PullImage=(%ux%u)\n", w, h);
hr = Toupcam_put_Option(hcam_, TOUPCAM_OPTION_FLUSH, 2);
if (FAILED(hr))
{
handle_error("Toupcam_put_Option FLUSH",hr);
// printf("handle_frame:Toupcam_put_Option(TOUPCAM_OPTION_FLUSH, 2)=%d\n", hr);
}
}*/

if(bpp == 2) {
int bits=16;
Expand Down Expand Up @@ -402,11 +402,11 @@ namespace ols
/* 1 = hard flush, discard frames cached by camera DDR (if any)
2 = soft flush, discard frames cached by toupcam.dll (if any)
3 = both flush */
hr = Toupcam_put_Option(hcam_, TOUPCAM_OPTION_FLUSH, 3);
/* hr = Toupcam_put_Option(hcam_, TOUPCAM_OPTION_FLUSH, 3);
if (FAILED(hr))
{
// printf("start_stream:Toupcam_put_Option(TOUPCAM_OPTION_FLUSH, 3)=%d\n", hr);
}
}*/
{
std::unique_lock<std::mutex> guard(lock_);
callback_ = callback;
Expand Down Expand Up @@ -472,12 +472,12 @@ namespace ols
/* 1 = hard flush, discard frames cached by camera DDR (if any)
2 = soft flush, discard frames cached by toupcam.dll (if any)
3 = both flush */
hr = Toupcam_put_Option(hcam_, TOUPCAM_OPTION_FLUSH, 3);
/* hr = Toupcam_put_Option(hcam_, TOUPCAM_OPTION_FLUSH, 3);
if (FAILED(hr))
{
e = make_message("Toupcam_put_Option(TOUPCAM_OPTION_FLUSH, 3)", hr);
return;
}
}*/
}

/// list of camera controls that the camera supports
Expand Down

0 comments on commit 5f61b9c

Please sign in to comment.