summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-27 06:31:54 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-27 06:31:54 (GMT)
commitf27f7b4b58c8d40fa547a8444b6fccbe121b1079 (patch)
treea8b2bad427d2e03e3ffd894df99c1576b0fc213f
parentcc5fc1c2b6499fc7df317126eb69a45ae07a1359 (diff)
Add support to NEF handlign. I probably need to utilize libraw instead of dcraw so that this can work multiplatform
-rw-r--r--kstars/indi/indiccd.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/kstars/indi/indiccd.cpp b/kstars/indi/indiccd.cpp
index 81d90c6..6bb8f45 100644
--- a/kstars/indi/indiccd.cpp
+++ b/kstars/indi/indiccd.cpp
@@ -1055,7 +1055,7 @@ void CCD::processText(ITextVectorProperty *tvp)
void CCD::processBLOB(IBLOB* bp)
{
- enum blobType { BLOB_IMAGE, BLOB_FITS, BLOB_CR2, BLOB_OTHER} BType;
+ enum blobType { BLOB_IMAGE, BLOB_FITS, BLOB_CR2, BLOB_NEF, BLOB_OTHER} BType;
BType = BLOB_OTHER;
@@ -1092,6 +1092,8 @@ void CCD::processBLOB(IBLOB* bp)
BType = BLOB_FITS;
else if (format.contains("cr2"))
BType = BLOB_CR2;
+ else if (format.contains("nef"))
+ BType = BLOB_NEF;
if (BType == BLOB_OTHER)
{
@@ -1197,9 +1199,9 @@ void CCD::processBLOB(IBLOB* bp)
return;
}*/
- if (BType == BLOB_IMAGE || BType == BLOB_CR2)
+ if (BType == BLOB_IMAGE || BType == BLOB_CR2 || BType == BLOB_NEF)
{
- if (BType == BLOB_CR2)
+ if (BType == BLOB_CR2 || BType == BLOB_NEF)
{
if (QStandardPaths::findExecutable("dcraw").isEmpty() == false && QStandardPaths::findExecutable("cjpeg").isEmpty() == false)
{
@@ -1220,7 +1222,7 @@ void CCD::processBLOB(IBLOB* bp)
}
else
{
- KStars::Instance()->statusBar()->showMessage(i18n("Unable to find dcraw and cjpeg. Please install the required tools to convert CR2 to JPEG."));
+ KStars::Instance()->statusBar()->showMessage(i18n("Unable to find dcraw and cjpeg. Please install the required tools to convert CR2/NEF to JPEG."));
emit BLOBUpdated(bp);
return;
}