-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathser.h
More file actions
37 lines (32 loc) · 882 Bytes
/
ser.h
File metadata and controls
37 lines (32 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _ser_h_
#define _ser_h_ 1
#include <stdint.h>
#include <sys/types.h>
#define SER_MONO 0
#define SER_BAYER_RGGB 8
#define SER_BAYER_GRBG 9
#define SER_BAYER_GBRG 10
#define SER_BAYER_BGGR 11
#define SER_BAYER_CYYM 16
#define SER_BAYER_YCMY 17
#define SER_BAYER_YMCY 18
#define SER_BAYER_MYYC 19
#define SER_RGB 100
#define SER_BGR 101
#define SER_MAX_STRING_LEN 40
struct SERHeader_s {
char FileID[14];
uint32_t LuID;
uint32_t ColorID;
uint32_t LittleEndian;
uint32_t ImageWidth;
uint32_t ImageHeight;
uint32_t PixelDepth;
uint32_t FrameCount;
char Observer[SER_MAX_STRING_LEN];
char Instrument[SER_MAX_STRING_LEN];
char Telescope[SER_MAX_STRING_LEN];
int64_t DateTime;
int64_t DateTimeUTC;
} __attribute__((packed));
#endif