typedef struct { char id[4]; // Type "MXF\0" struct { u32 vers_major:3; // Version, always 1.3 u32 vers_minor:3; // u32 image_codec:2; // Image Codec: 01=MxPEG; 00=JPEG u32 serial:24; // Serial number, e.g: 0x008145 } data_info; u64 timestamp; // Timestamp (DMA) in usec u32 framenumber; // DMA frame number (0 after reboot) u32 genno; // JPEG number (0 after demon restart) int sequence_no; // current recording sequence number (0..999999) time_t last_event; // Time of last event in seconds struct { u32 installed:1; // Sensor installed u32 res2:2; // reserved for later use u32 bw_sensor:1; // B/W sensor u32 offset_x:12; // Right offset 0..4095 u32 offset_y:12; // Top offset 0..4095 u32 size_x:12; // X size of Bayer region 0..4095 u32 size_y:12; // Y size of Bayer region 0..4095 u32 res_zoom6:6; // reserved bits for different zoom u32 zoom_x:3; // X zoom factor 1=125..2=250..3=500..4=1000..5=2000 u32 zoom_y:3; // Y zoom factor 1=125..2=250..3=500..4=1000..5=2000 } zoom[2]; // {left, right} zoom info u32 alarm_counter; // Subevent counter (starts at 0) u32 jpegtime_us; // Time of JPEG coding in usec u32 looptime_us; // Prg runtime from one frame to the next in usec struct { u32 res8:8; // reserved for plot info u32 xsize:12; // X rendering size in pixels 0..4095 u32 ysize:12; // Y rendering size in pixels 0..4095 } plot_info; // For modes like "VGA2" (640x240) } TMxPEGFrameHeader; // size = 64 Bytes
Copyright (c) 2005-2007, MOBOTIX AG. All rights reserved.