mirror of
https://github.com/eddyem/SBIG_340.git
synced 2026-02-02 13:25:01 +03:00
fix bug in jpeg storing
This commit is contained in:
parent
ae4b511542
commit
c2a06aac3a
@ -68,7 +68,13 @@ static int write_jpeg(const char *fname, const uint8_t *data, imstorage *img){
|
|||||||
* @return 0 if all OK
|
* @return 0 if all OK
|
||||||
*/
|
*/
|
||||||
int write_debayer(imstorage *img, uint16_t black){
|
int write_debayer(imstorage *img, uint16_t black){
|
||||||
|
int ts = img->timestamp;
|
||||||
|
store_type st = img->st;
|
||||||
|
img->timestamp = 0;
|
||||||
|
img->st = STORE_REWRITE;
|
||||||
char *name = make_filename(img, SUFFIX_JPEG);
|
char *name = make_filename(img, SUFFIX_JPEG);
|
||||||
|
img->timestamp = ts;
|
||||||
|
img->st = st;
|
||||||
if(!name) return 1;
|
if(!name) return 1;
|
||||||
int r = 0;
|
int r = 0;
|
||||||
size_t fsz = img->W * img->H * sizeof(uint16_t);
|
size_t fsz = img->W * img->H * sizeof(uint16_t);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user