ethjpg2k.h File Reference

#include "plat.h"

Go to the source code of this file.

Data Structures

struct  ethjpg2k_linux_hdr
 Header for a encoded image. More...
struct  ethjpg2k_linux_decode
 Header for the space for the image to be decoded. More...
struct  _ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMS
 ADV212 encoder parameters. More...
struct  _ETHJPG2K__VIDEO_DECODE_FIRMWARE_PARAMS
 ADV212 decoder parameters. More...
struct  _ETHJPG2K_HIPI_FIRMWARE_PARAMS
 ADV212 HIPI mode parameters. More...
union  _ETHJPG2K_FIRMWARE_PARAMS
 ADV212 generic parameters. More...
struct  _ETHJPG2K_FIRMWARE_DATA
 ADV212 firmware and parameters descriptor. More...
struct  ethjpg2k_linux_imgbuf
 Image ring buffer description. More...

Defines

#define IOCTL_ETHJPG2K_ENCDEC_LOAD_FIRMWARE   IOCTL_ETHJPG2K(0x51)
#define IOCTL_ETHJPG2K_ENCDEC_START   IOCTL_ETHJPG2K(0x52)
#define IOCTL_ETHJPG2K_ENCDEC_STOP   IOCTL_ETHJPG2K(0x53)
#define IOCTL_ETHJPG2K_ENC_QUALITY   IOCTL_ETHJPG2K(0x58)
#define IOCTL_ETHJPG2K_GPIO_READ   IOCTL_ETHJPG2K(0x60)
#define IOCTL_ETHJPG2K_GPIO_WRITE   IOCTL_ETHJPG2K(0x61)
#define IOCTL_ETHJPG2K_GPIO_WRITE_READ   IOCTL_ETHJPG2K(0x62)
#define IOCTL_ETHJPG2K_LINUX_INIT   IOCTL_ETHJPG2K(0x70)
#define IOCTL_ETHJPG2K_LINUX_GETBSIZE   IOCTL_ETHJPG2K(0x71)
#define IOCTL_ETHJPG2K_LINUX_SETBUF   IOCTL_ETHJPG2K(0x72)
#define IOCTL_ETHJPG2K_TW2835_WRITE_REG   IOCTL_ETHJPG2K(0x80)
#define IOCTL_ETHJPG2K_TW2835_READ_REG   IOCTL_ETHJPG2K(0x81)
#define IOCTL_ETHJPG2K_TW2835_RESET   IOCTL_ETHJPG2K(0x82)
#define IOCTL_ETHJPG2K_TW2835_TOUT_SEC   IOCTL_ETHJPG2K(0x83)
#define IOCTL_ETHJPG2K_TW2835_BATCH   IOCTL_ETHJPG2K(0x84)
#define IOCTL_ETHJPG2K_ADV212_WRITE_REG   IOCTL_ETHJPG2K(0x90)
#define IOCTL_ETHJPG2K_ADV212_READ_REG   IOCTL_ETHJPG2K(0x91)

Typedefs

typedef _ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMS ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMS
 ADV212 encoder parameters.
typedef _ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMSPETHJPG2K__VIDEO_ENCODE_FIRMWARE_PARAMS
 ADV212 encoder parameters.
typedef _ETHJPG2K__VIDEO_DECODE_FIRMWARE_PARAMS ETHJPG2K_VIDEO_DECODE_FIRMWARE_PARAMS
 ADV212 decoder parameters.
typedef _ETHJPG2K__VIDEO_DECODE_FIRMWARE_PARAMS PETHJPG2K_VIDEO_DECODE_FIRMWARE_PARAMS
 ADV212 decoder parameters.
typedef _ETHJPG2K_HIPI_FIRMWARE_PARAMS ETHJPG2K_HIPI_FIRMWARE_PARAMS
 ADV212 HIPI mode parameters.
typedef _ETHJPG2K_HIPI_FIRMWARE_PARAMSPETHJPG2K_HIPI_FIRMWARE_PARAMS
 ADV212 HIPI mode parameters.
typedef _ETHJPG2K_FIRMWARE_PARAMS ETHJPG2K_FIRMWARE_PARAMS
 ADV212 generic parameters.
typedef _ETHJPG2K_FIRMWARE_PARAMSPETHJPG2K_FIRMWARE_PARAMS
 ADV212 generic parameters.
typedef _ETHJPG2K_FIRMWARE_DATA ETHJPG2K_FIRMWARE_DATA
 ADV212 firmware and parameters descriptor.
typedef _ETHJPG2K_FIRMWARE_DATAPETHJPG2K_FIRMWARE_DATA
 ADV212 firmware and parameters descriptor.


Define Documentation

#define IOCTL_ETHJPG2K_ADV212_READ_REG   IOCTL_ETHJPG2K(0x91)

Reads a register from the ADV212. The argument is a pointer to an array of 2 ints: first is the register number, second is the value.

Definition at line 78 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_ADV212_WRITE_REG   IOCTL_ETHJPG2K(0x90)

Writes a register of the ADV212. The argument is a pointer to an array of 2 ints: first is the register number, second is the value.

Definition at line 75 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_ENC_QUALITY   IOCTL_ETHJPG2K(0x58)

Dynamically (so only when the encoder is running) sets the quality of the output stream. Parameter is an int which is the RCVAL.

Definition at line 22 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_ENCDEC_LOAD_FIRMWARE   IOCTL_ETHJPG2K(0x51)

The firmware is transferred to the driver via a struct ETHJPG2K_FIRMWARE_DATA.

Definition at line 15 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_ENCDEC_START   IOCTL_ETHJPG2K(0x52)

The encoder/decoder is started.

Definition at line 17 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_ENCDEC_STOP   IOCTL_ETHJPG2K(0x53)

The encoder/decoder is stopped.

Definition at line 19 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_GPIO_READ   IOCTL_ETHJPG2K(0x60)

Reads the current output GPIO value. The argument is a pointer to an int. This IOCTL is used for masking only the bits that the user needs to change.

Definition at line 29 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_GPIO_WRITE   IOCTL_ETHJPG2K(0x61)

Writes to he output GPIO pins implemented on the CTR1474. The argument is a pointer to an int.Only the pins 0-7 are user available. Bits 8 and 9 control the 2 LEDs on the board. Bit 9 switches the data path between the video front-end and the ADV212 between encoding and decoding modes.

Definition at line 35 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_GPIO_WRITE_READ   IOCTL_ETHJPG2K(0x62)

Reads the current output GPIO value. The argument is a pointer to an int. This IOCTL is used for masking only the bits that the user needs to change.

Definition at line 39 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_LINUX_GETBSIZE   IOCTL_ETHJPG2K(0x71)

The size (in pages) of the buffer for the acquisition of images is returned.

Definition at line 47 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_LINUX_INIT   IOCTL_ETHJPG2K(0x70)

This IOCTL initializes the companion chips on the CTR1474. Should be called before any attempt to encode/decode a video stream.

Definition at line 45 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_LINUX_SETBUF   IOCTL_ETHJPG2K(0x72)

Sets the dimensions of the image ring buffer. Pass a ethjpg2k_linux_imgbuf structure.

Definition at line 50 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_TW2835_BATCH   IOCTL_ETHJPG2K(0x84)

Does a batch of operations to reduce the number of context switches (it'useful when downloading bitmaps for example). The argument is a pointer to an an array of ints. The first one is the length of remaining elements. After it the actual operations.

Definition at line 69 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_TW2835_READ_REG   IOCTL_ETHJPG2K(0x81)

Reads a register from the TWA2835. The argument is a pointer to an array of 2 ints: first is the register number, second is the value.

Definition at line 59 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_TW2835_RESET   IOCTL_ETHJPG2K(0x82)

Resets the TWA2835.

Definition at line 61 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_TW2835_TOUT_SEC   IOCTL_ETHJPG2K(0x83)

Sets the timeout (in seconds) when waiting for an event from the video front-end.

Definition at line 64 of file ethjpg2k.h.

#define IOCTL_ETHJPG2K_TW2835_WRITE_REG   IOCTL_ETHJPG2K(0x80)

Writes a register of the TWA2835. The argument is a pointer to an array of 2 ints: first is the register number, second is the value.

Definition at line 56 of file ethjpg2k.h.


Typedef Documentation

typedef struct _ETHJPG2K_FIRMWARE_DATA ETHJPG2K_FIRMWARE_DATA

ADV212 firmware and parameters descriptor.

The firmware and the parameters to load into the ADV212

typedef union _ETHJPG2K_FIRMWARE_PARAMS ETHJPG2K_FIRMWARE_PARAMS

ADV212 generic parameters.

Union for passing parameters to the encoding/decoding/HIPI engine of the ADV212

typedef struct _ETHJPG2K_HIPI_FIRMWARE_PARAMS ETHJPG2K_HIPI_FIRMWARE_PARAMS

ADV212 HIPI mode parameters.

These are parameters that specifies the JPEG2K HIPI mode parameters. For more information see the TechNote Getting Started with the ADV212

typedef struct _ETHJPG2K__VIDEO_DECODE_FIRMWARE_PARAMS ETHJPG2K_VIDEO_DECODE_FIRMWARE_PARAMS

ADV212 decoder parameters.

These are parameters that specifies the JPEG2K decoder parameters. For more information see the TechNote Getting Started with the ADV212

typedef struct _ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMS ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMS

ADV212 encoder parameters.

These are parameters that specifies the JPEG2K encoder parameters. For more information see the TechNote Getting Started with the ADV212

typedef struct _ETHJPG2K_VIDEO_ENCODE_FIRMWARE_PARAMS * PETHJPG2K__VIDEO_ENCODE_FIRMWARE_PARAMS

ADV212 encoder parameters.

These are parameters that specifies the JPEG2K encoder parameters. For more information see the TechNote Getting Started with the ADV212

typedef struct _ETHJPG2K_FIRMWARE_DATA * PETHJPG2K_FIRMWARE_DATA

ADV212 firmware and parameters descriptor.

The firmware and the parameters to load into the ADV212

typedef union _ETHJPG2K_FIRMWARE_PARAMS * PETHJPG2K_FIRMWARE_PARAMS

ADV212 generic parameters.

Union for passing parameters to the encoding/decoding/HIPI engine of the ADV212

typedef struct _ETHJPG2K_HIPI_FIRMWARE_PARAMS * PETHJPG2K_HIPI_FIRMWARE_PARAMS

ADV212 HIPI mode parameters.

These are parameters that specifies the JPEG2K HIPI mode parameters. For more information see the TechNote Getting Started with the ADV212

typedef struct _ETHJPG2K__VIDEO_DECODE_FIRMWARE_PARAMS PETHJPG2K_VIDEO_DECODE_FIRMWARE_PARAMS

ADV212 decoder parameters.

These are parameters that specifies the JPEG2K decoder parameters. For more information see the TechNote Getting Started with the ADV212


Generated on Sat Dec 20 08:27:54 2008 for CTR1474 by  doxygen 1.5.1