interframe_params_t Struct Reference

width,height, quality are still needed even with new Exif - it is used to rebuild JPEG header More...

#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


Detailed Description

width,height, quality are still needed even with new Exif - it is used to rebuild JPEG header

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.


Field Documentation

unsigned long interframe_params_t::hash32_r

Definition at line 1357 of file c313a.h.

Referenced by metaXML(), and PHP_FUNCTION().

unsigned short interframe_params_t::scale_r

Definition at line 1357 of file c313a.h.

unsigned short interframe_params_t::hash16_r

Definition at line 1357 of file c313a.h.

unsigned char interframe_params_t::gamma_r

Definition at line 1357 of file c313a.h.

unsigned char interframe_params_t::black_r

Definition at line 1357 of file c313a.h.

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

Definition at line 1358 of file c313a.h.

Referenced by metaXML(), and PHP_FUNCTION().

unsigned short interframe_params_t::scale_g

Definition at line 1358 of file c313a.h.

unsigned short interframe_params_t::hash16_g

Definition at line 1358 of file c313a.h.

unsigned char interframe_params_t::gamma_g

Definition at line 1358 of file c313a.h.

unsigned char interframe_params_t::black_g

Definition at line 1358 of file c313a.h.

union { ... }

00-03

unsigned long interframe_params_t::hash32_gb

Definition at line 1359 of file c313a.h.

Referenced by metaXML(), and PHP_FUNCTION().

unsigned short interframe_params_t::scale_gb

Definition at line 1359 of file c313a.h.

unsigned short interframe_params_t::hash16_gb

Definition at line 1359 of file c313a.h.

unsigned char interframe_params_t::gamma_gb

Definition at line 1359 of file c313a.h.

unsigned char interframe_params_t::black_gb

Definition at line 1359 of file c313a.h.

union { ... }

04-07

unsigned long interframe_params_t::hash32_b

Definition at line 1360 of file c313a.h.

Referenced by metaXML(), and PHP_FUNCTION().

unsigned short interframe_params_t::scale_b

Definition at line 1360 of file c313a.h.

unsigned short interframe_params_t::hash16_b

Definition at line 1360 of file c313a.h.

unsigned char interframe_params_t::gamma_b

Definition at line 1360 of file c313a.h.

unsigned char interframe_params_t::black_b

Definition at line 1360 of file c313a.h.

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().


The documentation for this struct was generated from the following file:
Generated on Fri Nov 28 00:08:47 2008 for elphel by  doxygen 1.5.1