#include <c313a.h>
Data Fields | |
union { | |
unsigned long hash32_r | |
struct { | |
unsigned short scale_r | |
union { | |
unsigned short hash16_r | |
struct { | |
unsigned char gamma_r | |
unsigned char black_r | |
} | |
} | |
} | |
}; | |
union { | |
unsigned long hash32_g | |
struct { | |
unsigned short scale_g | |
union { | |
unsigned short hash16_g | |
struct { | |
unsigned char gamma_g | |
unsigned char black_g | |
} | |
} | |
} | |
}; | |
00-03 | |
union { | |
unsigned long hash32_gb | |
struct { | |
unsigned short scale_gb | |
union { | |
unsigned short hash16_gb | |
struct { | |
unsigned char gamma_gb | |
unsigned char black_gb | |
} | |
} | |
} | |
}; | |
04-07 | |
union { | |
unsigned long hash32_b | |
struct { | |
unsigned short scale_b | |
union { | |
unsigned short hash16_b | |
struct { | |
unsigned char gamma_b | |
unsigned char black_b | |
} | |
} | |
} | |
}; | |
08-11 | |
unsigned short | quality2 |
12-15 | |
unsigned char | color |
unsigned char | byrshift |
color mode //18 | |
unsigned short | width |
bayer shift in compressor //19 | |
unsigned short | height |
frame width, pixels 20-21 - NOTE: should be 20-21 | |
unsigned short | meta_index |
unsigned char bindec_vert; //! ((bv-1) << 4) | (dv-1) & 0xf (binning/decimation vertical , 1..16 for each) | |
unsigned short | signffff |
index of the linked meta page | |
union { | |
unsigned long timestamp_sec | |
unsigned long frame_length | |
number of seconds since 1970 till the start of the frame exposure | |
}; | |
unsigned long | timestamp_usec |
width height quality meta_index signffff timestamp_sec (camogm only, exif is separate) timestamp_usec (camogm only, exif is separate)
Definition at line 1354 of file c313a.h.
unsigned long interframe_params_t::hash32_r |
unsigned short interframe_params_t::scale_r |
unsigned short interframe_params_t::hash16_r |
unsigned char interframe_params_t::gamma_r |
unsigned char interframe_params_t::black_r |
union { ... } |
This data will survive as long as the frame itself in the circular buffer. Some other fields (like exposure) are stored in Exif dont move - should partially match P_* area
unsigned long interframe_params_t::hash32_g |
unsigned short interframe_params_t::scale_g |
unsigned short interframe_params_t::hash16_g |
unsigned char interframe_params_t::gamma_g |
unsigned char interframe_params_t::black_g |
union { ... } |
00-03
unsigned long interframe_params_t::hash32_gb |
unsigned short interframe_params_t::scale_gb |
unsigned short interframe_params_t::hash16_gb |
unsigned char interframe_params_t::gamma_gb |
unsigned char interframe_params_t::black_gb |
union { ... } |
04-07
unsigned long interframe_params_t::hash32_b |
unsigned short interframe_params_t::scale_b |
unsigned short interframe_params_t::hash16_b |
unsigned char interframe_params_t::gamma_b |
unsigned char interframe_params_t::black_b |
union { ... } |
08-11
unsigned short interframe_params_t::quality2 |
12-15
Definition at line 1361 of file c313a.h.
Referenced by metaXML(), PHP_FUNCTION(), and Video::quality().
unsigned char interframe_params_t::color |
Quality is represented by 2-byte value. Each byte uses Y table if the value is Q<128,// 16-17 and C table with (Q-128) if it is Q>=128. If the High byte is zero, it is treated as Q^0x80 (Q|=(Q^0x80)<<8) for compatibility with a standard single-byte Q value
Definition at line 1365 of file c313a.h.
Referenced by metaXML(), and PHP_FUNCTION().
unsigned char interframe_params_t::byrshift |
color mode //18
Definition at line 1366 of file c313a.h.
Referenced by metaXML(), and PHP_FUNCTION().
unsigned short interframe_params_t::width |
bayer shift in compressor //19
Definition at line 1367 of file c313a.h.
Referenced by camogm_start(), Video::capture(), metaXML(), PHP_FUNCTION(), and sendImageFrame().
unsigned short interframe_params_t::height |
frame width, pixels 20-21 - NOTE: should be 20-21
Definition at line 1368 of file c313a.h.
Referenced by camogm_start(), Video::capture(), Video::height(), metaXML(), PHP_FUNCTION(), and sendImageFrame().
unsigned short interframe_params_t::meta_index |
unsigned char bindec_vert; //! ((bv-1) << 4) | (dv-1) & 0xf (binning/decimation vertical , 1..16 for each)
Definition at line 1389 of file c313a.h.
Referenced by metaXML(), PHP_FUNCTION(), sendImage(), sendImageFrame(), and updateIRQ_Exif().
unsigned short interframe_params_t::signffff |
index of the linked meta page
Definition at line 1391 of file c313a.h.
Referenced by camogm_start(), metaXML(), PHP_FUNCTION(), sendImage(), sendImageFrame(), and updateIRQ_interframe().
unsigned long interframe_params_t::timestamp_sec |
Definition at line 1394 of file c313a.h.
Referenced by camogm_frame_jpeg(), camogm_frame_kml(), camogm_start(), camogm_start_mov(), camogm_start_ogm(), camogm_status(), Video::fps(), metaXML(), PHP_FUNCTION(), and sendImageFrame().
unsigned long interframe_params_t::frame_length |
number of seconds since 1970 till the start of the frame exposure
Definition at line 1395 of file c313a.h.
Referenced by camogm_start(), metaXML(), PHP_FUNCTION(), sendImage(), sendImageFrame(), and updateIRQ_interframe().
union { ... } |
should be 0xffff - it will be a signature that JPEG data was not overwritten, JPEG bitstream can not have two 0xff after each other
unsigned long interframe_params_t::timestamp_usec |
Definition at line 1397 of file c313a.h.
Referenced by camogm_frame_jpeg(), camogm_frame_kml(), camogm_start(), camogm_start_mov(), camogm_start_ogm(), camogm_status(), Video::fps(), and PHP_FUNCTION().