ethjpg2k_linux_hdr Struct Reference

Header for a encoded image. More...

#include <ethjpg2k.h>


Data Fields

unsigned long field
unsigned long index
union {
   unsigned long   info
   struct {
      unsigned char   version
      unsigned char   reserved
      unsigned char   videoFormat
      unsigned char   codeFormat
   }   Info_s
Info_u
unsigned long size
unsigned long start
unsigned int overflow
unsigned int ticket


Detailed Description

Header for a encoded image.

This is the image header passed to the user level when encoding.

Definition at line 86 of file ethjpg2k.h.


Field Documentation

unsigned long ethjpg2k_linux_hdr::field

0xfffffff0 or 0xfffffff1 depending if frame is even or odd in an interlaced stream.

Definition at line 89 of file ethjpg2k.h.

unsigned long ethjpg2k_linux_hdr::index

The current frame number.

Definition at line 91 of file ethjpg2k.h.

unsigned long ethjpg2k_linux_hdr::info

Definition at line 96 of file ethjpg2k.h.

unsigned char ethjpg2k_linux_hdr::version

Header version: 0x02 for encode firmware with App ID = 0xFF82

Definition at line 101 of file ethjpg2k.h.

unsigned char ethjpg2k_linux_hdr::reserved

Definition at line 102 of file ethjpg2k.h.

unsigned char ethjpg2k_linux_hdr::videoFormat

VFORMAT parameter: 0 = NTSC 4:2:2 1 = PAL 4:2:2 2 = 1080i Luminance 3 = 1080i Chrominance 4 = Custom specific 5 = 720p/60 Luminance 6 = 720p/60 Chrominance 8 = NTSC de-interlaced 9 = PAL de-interlaced

Definition at line 114 of file ethjpg2k.h.

unsigned char ethjpg2k_linux_hdr::codeFormat

Output code stream format ­ COD_STYLE parameter setting: bit 0 = ADV202 Raw Format bit 1 = J2C Format bit 2 = Jp2 Format bit 3 = 1 = ADV202 header not generated bit 3 = 0 = ADV202 header generated bit 4 to 7 only valid with J2c or Jp2 format, otherwise these bits must all be 0. bit 4 = 1 = Include EPH bit 4 = 0 = EPH not included bit 5 = 1 = Include SOP bit 5 = 0 = SOP not included bit 6 = 1 = Include PLT bit 6 = 0 = PLT not included bit 7 = 1 = include PPT bit 7 = 0 = Packet headers with Packet Body

Definition at line 133 of file ethjpg2k.h.

struct { ... } ethjpg2k_linux_hdr::Info_s

union { ... } ethjpg2k_linux_hdr::Info_u

Attributes of the frame (see ADV212 data sheet for more information)

unsigned long ethjpg2k_linux_hdr::size

Size (in bytes) of the acquired image.

Definition at line 137 of file ethjpg2k.h.

unsigned long ethjpg2k_linux_hdr::start

Location in the mmaped area of the image.

Definition at line 140 of file ethjpg2k.h.

unsigned int ethjpg2k_linux_hdr::overflow

Number of image lost since last read (if we don't keep up with the pace of image acquired).

Definition at line 143 of file ethjpg2k.h.

unsigned int ethjpg2k_linux_hdr::ticket

Number that has to be written to the device when finished.

Definition at line 145 of file ethjpg2k.h.


The documentation for this struct was generated from the following file:
Generated on Sat Dec 20 08:27:54 2008 for CTR1474 by  doxygen 1.5.1