add network image transporting (pre-alpha yet: many bugs)

This commit is contained in:
2023-02-28 17:18:07 +03:00
parent 764aa50ccc
commit 644de638ca
20 changed files with 847 additions and 698 deletions

View File

@@ -186,8 +186,7 @@ int saveFITS(IMG *img, char **outp){
}
char buff[PATH_MAX+1], fnam[PATH_MAX+1];
if(!GP->outfile && !GP->outfileprefix){
LOGERR("Can't save image: neither filename nor filename prefix pointed");
WARNX(_("Neither filename nor filename prefix pointed!"));
LOGWARN("Image not saved: neither filename nor filename prefix pointed");
return FALSE;
}
if(GP->outfile){ // pointed specific output file name like "file.fits", check it
@@ -819,6 +818,8 @@ void cancel(){
}
}
#ifdef IMAGEVIEW
static volatile int grabends = 1;
static void *grabnext(void *arg){
FNAME();
@@ -845,6 +846,8 @@ eof:
DBG("EXIT");
}
/**
* @brief ccdcaptured - get new image data for viewer
* @param img - pointer to IMG* (if IMG* is NULL, will be allocated here)
@@ -894,3 +897,4 @@ int ccdcaptured(IMG **imgptr){
}
return FALSE;
}
#endif