Skip to content

Commit

Permalink
removed lots of unused stuff, changed frame dimension handling, grab …
Browse files Browse the repository at this point in the history
…whole raw frame from libraw
  • Loading branch information
knallio committed Aug 2, 2020
1 parent 918e8c5 commit 3c34350
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 343 deletions.
16 changes: 10 additions & 6 deletions indi-gphoto/gphoto_ccd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1484,12 +1484,16 @@ bool GPhotoCCD::grabImage()
uint16_t subX = PrimaryCCD.getSubX();
uint16_t subY = PrimaryCCD.getSubY();

// Align all boundaries to be even
// This should fix issues with subframed bayered images.
// subX -= subX % 2;
// subY -= subY % 2;
// subW -= subW % 2;
// subH -= subH % 2;
// Set bayer pattern offset if boundaries are uneven
if (subX % 2)
{
IUSaveText(&BayerT[0], "1" );
}

if (subY % 2)
{
IUSaveText(&BayerT[1], "1" );
}

int subFrameSize = subW * subH * bpp / 8 * ((naxis == 3) ? 3 : 1);
int oneFrameSize = subW * subH * bpp / 8;
Expand Down
Loading

0 comments on commit 3c34350

Please sign in to comment.