Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
videocodec.h File Reference
#include <linux/videodev2.h>

Go to the source code of this file.

Data Structures

struct  vfe_polarity
 
struct  vfe_settings
 
struct  tvnorm
 
struct  jpeg_com_marker
 
struct  jpeg_app_marker
 
struct  videocodec
 
struct  videocodec_master
 

Macros

#define CODEC_DO_COMPRESSION   0
 
#define CODEC_DO_EXPANSION   1
 
#define CODEC_FLAG_JPEG   0x00000001L
 
#define CODEC_FLAG_MPEG   0x00000002L
 
#define CODEC_FLAG_DIVX   0x00000004L
 
#define CODEC_FLAG_WAVELET   0x00000008L
 
#define CODEC_FLAG_MAGIC   0x00000800L
 
#define CODEC_FLAG_HARDWARE   0x00001000L
 
#define CODEC_FLAG_VFE   0x00002000L
 
#define CODEC_FLAG_ENCODER   0x00004000L
 
#define CODEC_FLAG_DECODER   0x00008000L
 
#define CODEC_FLAG_NEEDIRQ   0x00010000L
 
#define CODEC_FLAG_RDWRPIC   0x00020000L
 
#define CODEC_MODE_BJPG   0x0001
 
#define CODEC_MODE_LJPG   0x0002
 
#define CODEC_MODE_MPEG1   0x0003
 
#define CODEC_MODE_MPEG2   0x0004
 
#define CODEC_MODE_MPEG4   0x0005
 
#define CODEC_MODE_MSDIVX   0x0006
 
#define CODEC_MODE_ODIVX   0x0007
 
#define CODEC_MODE_WAVELET   0x0008
 
#define CODEC_TYPE_NONE   0
 
#define CODEC_TYPE_L64702   1
 
#define CODEC_TYPE_ZR36050   2
 
#define CODEC_TYPE_ZR36016   3
 
#define CODEC_TYPE_ZR36060   4
 
#define CODEC_G_STATUS   0x0000 /* codec status (query only) */
 
#define CODEC_S_CODEC_MODE   0x0001 /* codec mode (baseline JPEG, MPEG1,... */
 
#define CODEC_G_CODEC_MODE   0x8001
 
#define CODEC_S_VFE   0x0002 /* additional video frontend setup */
 
#define CODEC_G_VFE   0x8002
 
#define CODEC_S_MMAP   0x0003 /* MMAP setup (if available) */
 
#define CODEC_S_JPEG_TDS_BYTE   0x0010 /* target data size in bytes */
 
#define CODEC_G_JPEG_TDS_BYTE   0x8010
 
#define CODEC_S_JPEG_SCALE   0x0011 /* scaling factor for quant. tables */
 
#define CODEC_G_JPEG_SCALE   0x8011
 
#define CODEC_S_JPEG_HDT_DATA   0x0018 /* huffman-tables */
 
#define CODEC_G_JPEG_HDT_DATA   0x8018
 
#define CODEC_S_JPEG_QDT_DATA   0x0019 /* quantizing-tables */
 
#define CODEC_G_JPEG_QDT_DATA   0x8019
 
#define CODEC_S_JPEG_APP_DATA   0x001A /* APP marker */
 
#define CODEC_G_JPEG_APP_DATA   0x801A
 
#define CODEC_S_JPEG_COM_DATA   0x001B /* COM marker */
 
#define CODEC_G_JPEG_COM_DATA   0x801B
 
#define CODEC_S_PRIVATE   0x1000 /* "private" commands start here */
 
#define CODEC_G_PRIVATE   0x9000
 
#define CODEC_G_FLAG   0x8000 /* this is how 'get' is detected */
 
#define CODEC_TRANSFER_KERNEL   0 /* use "memcopy" */
 
#define CODEC_TRANSFER_USER   1 /* use "to/from_user" */
 

Functions

struct videocodecvideocodec_attach (struct videocodec_master *)
 
int videocodec_detach (struct videocodec *)
 
int videocodec_register (const struct videocodec *)
 
int videocodec_unregister (const struct videocodec *)
 

Macro Definition Documentation

#define CODEC_DO_COMPRESSION   0

Definition at line 149 of file videocodec.h.

#define CODEC_DO_EXPANSION   1

Definition at line 150 of file videocodec.h.

#define CODEC_FLAG_DECODER   0x00008000L

Definition at line 164 of file videocodec.h.

#define CODEC_FLAG_DIVX   0x00000004L

Definition at line 156 of file videocodec.h.

#define CODEC_FLAG_ENCODER   0x00004000L

Definition at line 163 of file videocodec.h.

#define CODEC_FLAG_HARDWARE   0x00001000L

Definition at line 161 of file videocodec.h.

#define CODEC_FLAG_JPEG   0x00000001L

Definition at line 154 of file videocodec.h.

#define CODEC_FLAG_MAGIC   0x00000800L

Definition at line 160 of file videocodec.h.

#define CODEC_FLAG_MPEG   0x00000002L

Definition at line 155 of file videocodec.h.

#define CODEC_FLAG_NEEDIRQ   0x00010000L

Definition at line 165 of file videocodec.h.

#define CODEC_FLAG_RDWRPIC   0x00020000L

Definition at line 166 of file videocodec.h.

#define CODEC_FLAG_VFE   0x00002000L

Definition at line 162 of file videocodec.h.

#define CODEC_FLAG_WAVELET   0x00000008L

Definition at line 157 of file videocodec.h.

#define CODEC_G_CODEC_MODE   0x8001

Definition at line 190 of file videocodec.h.

#define CODEC_G_FLAG   0x8000 /* this is how 'get' is detected */

Definition at line 211 of file videocodec.h.

#define CODEC_G_JPEG_APP_DATA   0x801A

Definition at line 204 of file videocodec.h.

#define CODEC_G_JPEG_COM_DATA   0x801B

Definition at line 206 of file videocodec.h.

#define CODEC_G_JPEG_HDT_DATA   0x8018

Definition at line 200 of file videocodec.h.

#define CODEC_G_JPEG_QDT_DATA   0x8019

Definition at line 202 of file videocodec.h.

#define CODEC_G_JPEG_SCALE   0x8011

Definition at line 198 of file videocodec.h.

#define CODEC_G_JPEG_TDS_BYTE   0x8010

Definition at line 196 of file videocodec.h.

#define CODEC_G_PRIVATE   0x9000

Definition at line 209 of file videocodec.h.

#define CODEC_G_STATUS   0x0000 /* codec status (query only) */

Definition at line 188 of file videocodec.h.

#define CODEC_G_VFE   0x8002

Definition at line 192 of file videocodec.h.

#define CODEC_MODE_BJPG   0x0001

Definition at line 169 of file videocodec.h.

#define CODEC_MODE_LJPG   0x0002

Definition at line 170 of file videocodec.h.

#define CODEC_MODE_MPEG1   0x0003

Definition at line 171 of file videocodec.h.

#define CODEC_MODE_MPEG2   0x0004

Definition at line 172 of file videocodec.h.

#define CODEC_MODE_MPEG4   0x0005

Definition at line 173 of file videocodec.h.

#define CODEC_MODE_MSDIVX   0x0006

Definition at line 174 of file videocodec.h.

#define CODEC_MODE_ODIVX   0x0007

Definition at line 175 of file videocodec.h.

#define CODEC_MODE_WAVELET   0x0008

Definition at line 176 of file videocodec.h.

#define CODEC_S_CODEC_MODE   0x0001 /* codec mode (baseline JPEG, MPEG1,... */

Definition at line 189 of file videocodec.h.

#define CODEC_S_JPEG_APP_DATA   0x001A /* APP marker */

Definition at line 203 of file videocodec.h.

#define CODEC_S_JPEG_COM_DATA   0x001B /* COM marker */

Definition at line 205 of file videocodec.h.

#define CODEC_S_JPEG_HDT_DATA   0x0018 /* huffman-tables */

Definition at line 199 of file videocodec.h.

#define CODEC_S_JPEG_QDT_DATA   0x0019 /* quantizing-tables */

Definition at line 201 of file videocodec.h.

#define CODEC_S_JPEG_SCALE   0x0011 /* scaling factor for quant. tables */

Definition at line 197 of file videocodec.h.

#define CODEC_S_JPEG_TDS_BYTE   0x0010 /* target data size in bytes */

Definition at line 195 of file videocodec.h.

#define CODEC_S_MMAP   0x0003 /* MMAP setup (if available) */

Definition at line 193 of file videocodec.h.

#define CODEC_S_PRIVATE   0x1000 /* "private" commands start here */

Definition at line 208 of file videocodec.h.

#define CODEC_S_VFE   0x0002 /* additional video frontend setup */

Definition at line 191 of file videocodec.h.

#define CODEC_TRANSFER_KERNEL   0 /* use "memcopy" */

Definition at line 215 of file videocodec.h.

#define CODEC_TRANSFER_USER   1 /* use "to/from_user" */

Definition at line 216 of file videocodec.h.

#define CODEC_TYPE_L64702   1

Definition at line 181 of file videocodec.h.

#define CODEC_TYPE_NONE   0

Definition at line 180 of file videocodec.h.

#define CODEC_TYPE_ZR36016   3

Definition at line 183 of file videocodec.h.

#define CODEC_TYPE_ZR36050   2

Definition at line 182 of file videocodec.h.

#define CODEC_TYPE_ZR36060   4

Definition at line 184 of file videocodec.h.

Function Documentation

struct videocodec* videocodec_attach ( struct videocodec_master )
read

Definition at line 77 of file videocodec.c.

int videocodec_detach ( struct videocodec )

Definition at line 169 of file videocodec.c.

int videocodec_register ( const struct videocodec )

Definition at line 234 of file videocodec.c.

int videocodec_unregister ( const struct videocodec )

Definition at line 269 of file videocodec.c.