This describe GM8126 ioctl functions: source/dvr_type_define.h File Reference

GM8126 DVR

source/dvr_type_define.h File Reference

Go to the source code of this file.

Data Structures

struct  FuncTag_tag
 function tag for videograph level More...
struct  DIM_tag
 set width and height More...
struct  RECT_tag
 set size and position More...
struct  POS_tag
 set position x and y More...
struct  ROI_ALL_tag
 set ROI position x, y, width, height, and enable/disable More...
struct  QueueMemConfig_tag
 set queue memory configuration More...
struct  dvr_graph_vqueuet_tag
 set dvr graph queue configuration More...
struct  dvr_bs_data_tag
 dvr bit-stream data More...
struct  dvr_rate_tag
struct  video_process_tag
 dvr video parameter. More...
struct  ScalerParamtag
 scalar parameter More...

Defines

#define TRUE   1
#define FALSE   0
#define GMDVR_MEM_CFG_FILE   "/mnt/mtd/gmdvr_mem.cfg"
#define GMDVR_MAKE_FOURCC(a, b, c, d)   (int)((a)|(b)<<8|(c)<<16|(d)<<24)
#define GMVAL_DO_NOT_CARE   (-54172099)
#define GMVAL_RATE(val, base)   ((base<<16)|val)
#define GMVAL_RT_GET_VAL(rate)   (rate&0x0000FFFF)
#define GMVAL_RT_GET_BASE(rate)   (rate>>16)
#define GFID_DISP(plane_num)   (0x10000+plane_num)
#define GFID_ENC(ch_num)   (0x20000+ch_num)
#define GFID_DEC(ch_num)   (0x30000+ch_num)
#define MTHD_USE_CMP   0x1
#define FN_NONE   0x0
#define FN_LIVEVIEW   0x1
#define FN_RECORD   0x2
#define FN_PLAYBACK   0x4
#define FN_CASCADE   0x8
#define FN_LCD_PARAM   0x10
#define FN_PLANE_PARAM   0x20
#define FN_SUB1_RECORD   0x40
#define FN_SUB2_RECORD   0x80
#define FN_SUB3_RECORD   0x100
#define FN_SUB4_RECORD   0x200
#define FN_SUB5_RECORD   0x400
#define FN_SUB6_RECORD   0x800
#define FN_SUB7_RECORD   0x1000
#define FN_SUB8_RECORD   0x2000
#define FN_UPDATE_METHOD   0x10000
#define FN_PB_SCL_LINK   0x20000
#define FN_METHOD_USE_CMP   0x8000000
#define FN_SUB_ALL_RECORD   (FN_RECORD|FN_SUB1_RECORD|FN_SUB2_RECORD|FN_SUB3_RECORD|FN_SUB4_RECORD|FN_SUB5_RECORD|FN_SUB6_RECORD|FN_SUB7_RECORD|FN_SUB8_RECORD)
#define FN_RESET_TAG(ptag)   { (ptag)->func=0; (ptag)->lv_ch=0; (ptag)->rec_ch=0; (ptag)->pb_ch=0; (ptag)->cas_ch=0; }
#define FN_COPY_TAG(newt, ptag)   { (newt)->func=(ptag)->func; (newt)->lv_ch=(ptag)->lv_ch; (newt)->rec_ch=(ptag)->rec_ch; (newt)->pb_ch=(ptag)->pb_ch; (newt)->cas_ch=(ptag)->cas_ch; }
#define FN_SET_LV_CH(ptag, ch_num)   { (ptag)->func|=FN_LIVEVIEW; (ptag)->lv_ch|=(0x1<<ch_num); }
#define FN_SET_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB1_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB1_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB2_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB2_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB3_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB3_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB4_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB4_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB5_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB5_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB6_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB6_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB7_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB7_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB8_REC_CH(ptag, ch_num)   { (ptag)->func|=(FN_SUB8_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_PB_CH(ptag, ch_num)   { (ptag)->func|=FN_PLAYBACK; (ptag)->pb_ch|=(0x1<<ch_num); }
#define FN_SET_CAS_CH(ptag, ch_num)   { (ptag)->func|=FN_CASCADE; (ptag)->cas_ch|=(0x1<<ch_num); }
#define FN_SET_FUNC(ptag, fnc)   { (ptag)->func|=fnc; }
#define FN_REMOVE_FUNC(ptag, fnc)   { (ptag)->func&=(~fnc); }
#define FN_SET_ALL(ptag)
#define FN_IS_UPDATE(ptag)   ((ptag)->func&FN_UPDATE_METHOD)
#define FN_COMPARE(ptagA, ptagB)   ( ((ptagA)->func==(ptagB)->func) && ((ptagA)->lv_ch==(ptagB)->lv_ch) && ((ptagA)->rec_ch==(ptagB)->rec_ch) && ((ptagA)->pb_ch==(ptagB)->pb_ch) && ((ptagA)->cas_ch==(ptagB)->cas_ch) )
#define FN_IS_EMPTY(ptag)   ( ((ptag)->func==0) && ((ptag)->lv_ch==0) && ((ptag)->rec_ch==0) && ((ptag)->pb_ch==0) && ((ptag)->cas_ch==0) )
#define FN_IS_FN(ptag, fn)   ( (ptag)->func&(fn) )
#define FN_REMOVE_LV_CH(ptag, ch)   ( (ptag)->lv_ch&=(~ch) )
#define FN_CHECK_MASK(ptagA, ptagB)
#define FN_ITEMS(ptag)   (ptag)->func, (ptag)->lv_ch, (ptag)->rec_ch, (ptag)->pb_ch, (ptag)->cas_ch
#define QNAME_LCD   "lcd"
#define QNAME_3DI_SCL   "3di_scl"
#define QNAME_LV_SCL   "lv_scl"
#define QNAME_ENC_IN   "enc_in"
#define QNAME_ENC_OUT   "enc_out"
#define QNAME_SS_ENC_IN   "ssenc_in"
#define QNAME_SS_ENC_OUT   "ssenc_out"
#define QNAME_SUB1_ENC_IN   "sub1enc_in"
#define QNAME_SUB1_ENC_OUT   "sub1enc_out"
#define QNAME_SUB2_ENC_IN   "sub2enc_in"
#define QNAME_SUB2_ENC_OUT   "sub2enc_out"
#define QNAME_DEC_IN   "dec_in"
#define QNAME_PB_SCL   "pb_scl"
#define DBG_ENTITY_FNC   0x01
#define DBG_ENTITY_JOB_FLOW   0x02
#define DBG_DVR_FNC   0x04
#define DBG_DVR_DATA_FLOW   0x08
#define DBG_GRAPH_FNC   0x10
#define DBG_GRAPH_DATA   0x20
#define MCP_VIDEO_NTSC   0
#define MCP_VIDEO_PAL   1
#define MCP_VIDEO_VGA   2
#define DEFAULT_D1_WIDTH   720
#define DEFAULT_D1_HEIGHT   576
#define DEFAULT_CIF_WIDTH   352
#define DEFAULT_CIF_HEIGHT   288
#define DEFAULT_QCIF_WIDTH   176
#define DEFAULT_QCIF_HEIGHT   144

Typedefs

typedef struct FuncTag_tag FuncTag
typedef enum QueueID_tag QueueID
typedef struct DIM_tag DIM
typedef struct RECT_tag RECT
typedef struct POS_tag POS
typedef struct ROI_ALL_tag ROI_ALL
typedef struct QueueMemConfig_tag QueMemCfg
typedef struct
dvr_graph_vqueuet_tag 
dvr_graph_vqueuet
typedef struct dvr_bs_data_tag dvr_bs_data
typedef struct dvr_rate_tag dvr_ratio
typedef struct video_process_tag video_process
typedef struct ScalerParamtag ScalerParam
typedef enum EncodeType_tag EncodeType
typedef enum LCDOutputColorTypeTag LCDOutputColorType
typedef enum LCDOutputModeTag LCDOutputMode
typedef enum LiveviewFrameTypeTag LiveviewFrameType
typedef enum LiveviewFrameModeTag LiveviewFrameMode
typedef enum GM3DIFrameTypeTag GM3DIFrameType
typedef enum LiveviewDMAOrderTag LiveviewDMAOrder
typedef enum LiveviewScalerRatioTag LiveviewScalerRatio
typedef enum CaptureColorModeTag CaptureColorMode
typedef enum EncoderInputFormatTag EncoderInputFormat
typedef enum DecoderOutputColorTag DecoderOutputColor
typedef enum JpegEncInputFormatTag JpegEncInputFormat
typedef enum
JpegEnc420InputFormatTag 
JpegEnc420InputFormat
typedef enum ScaleMethodTag ScaleMethod
typedef enum ScaleColorModeTag ScaleColorMode
typedef enum CapturePathTag CapturePath
typedef enum LCDResolutionTag LCDResolution

Enumerations

enum  QueueID_tag {
  QID_LCD = 10, QID_3DI_SCL, QID_LV_SCL, QID_ENC_IN,
  QID_ENC_OUT, QID_SS_ENC_IN, QID_SS_ENC_OUT, QID_SUB1_ENC_IN,
  QID_SUB1_ENC_OUT, QID_SUB2_ENC_IN, QID_SUB2_ENC_OUT, QID_DEC_IN,
  QID_PB_SCL
}
enum  EncodeType_tag {
  ENC_TYPE_H264 = 0, ENC_TYPE_MPEG, ENC_TYPE_MJPEG, ENC_TYPE_YUV422,
  ENC_TYPE_COUNT
}
enum  LCDOutputColorTypeTag {
  LCD_COLOR_YUV422, LCD_COLOR_YUV420, LCD_COLOR_RGB = 16, LCD_COLOR_ARGB = 16,
  LCD_COLOR_RGB888, LCD_COLOR_RGB565, LCD_COLOR_RGB555, LCD_COLOR_RGB444,
  LCD_COLOR_RGB8
}
enum  LCDOutputModeTag { LCD_PROGRESSIVE = 0, LCD_INTERLACING = 1 }
enum  LiveviewFrameTypeTag { LVFRAME_EVEN_ODD = 0, LVFRAME_ENLARGE_ONE_FIELD = 1, LVFRAME_WEAVED_TWO_FIELDS = 2, LVFRAME_GM3DI_FORMAT = 3 }
enum  LiveviewFrameModeTag { LVFRAME_FRAME_MODE = 0, LVFRAME_FIELD_MODE = 1, LVFRAME_FIELD_MODE2 = 2 }
enum  GM3DIFrameTypeTag { GM3DI_FIELD = 1, GM3DI_FRAME = 2 }
enum  LiveviewDMAOrderTag { DMAORDER_PACKET = 0, DMAORDER_3PLANAR = 1, DMAORDER_2PLANAR = 2 }
enum  LiveviewScalerRatioTag { CAPSCALER_KEEP_RATIO = 0, CAPSCALER_NOT_KEEP_RATIO = 1 }
enum  CaptureColorModeTag {
  CAPCOLOR_RGB888 = 0, CAPCOLOR_RGB565 = 1, CAPCOLOR_YUV422 = 2, CAPCOLOR_YUV420_M0 = 3,
  CAPCOLOR_YUV420_M1 = 4
}
enum  EncoderInputFormatTag { ENC_INPUT_H2642D = 0, ENC_INPUT_MP42D = 1, ENC_INPUT_1D420 = 2, ENC_INPUT_1D422 = 3 }
enum  DecoderOutputColorTag { DEC_OUTPUT_COLOR_YUV420 = 4, DEC_OUTPUT_COLOR_YUV422 = 5 }
enum  JpegEncInputFormatTag {
  JCS_yuv420 = 0, JCS_yuv422 = 1, JCS_yuv211 = 2, JCS_yuv333 = 3,
  JCS_yuv222 = 4, JCS_yuv111 = 5, JCS_yuv400 = 6
}
enum  JpegEnc420InputFormatTag {
  JENC_INPUT_MP42D = 0, JENC_INPUT_1D420 = 1, JENC_INPUT_H2642D = 2, JENC_INPUT_DMAWRP420 = 3,
  JENC_INPUT_1D422 = 4
}
enum  ScaleMethodTag { SCALE_LINEAR = 0, SCALE_NON_LINEAR, SCALE_METHOD_COUNT }
enum  ScaleColorModeTag {
  SCALE_RGB888 = 0, SCALE_RGB565 = 1, SCALE_H264_YUV420_MODE0 = 2, SCALE_H264_YUV420_MODE1 = 3,
  SCALE_YUV444 = 4, SCALE_YUV422 = 5, SCALE_MP4_YUV420_MODE0 = 6, SCALE_MP4_YUV420_MODE1 = 7
}
enum  CapturePathTag { CAPPATH_DEFAULT = 0, CAPPATH_PATH_1, CAPPATH_PATH_2 }
enum  LCDResolutionTag {
  LCD_RES_D1, LCD_RES_SVGA, LCD_RES_XGA, LCD_RES_XVGA,
  LCD_RES_SXGA, LCD_RES_1360x768, LCD_RES_COUNT
}

Define Documentation

#define TRUE   1

Definition at line 7 of file dvr_type_define.h.

#define FALSE   0
Examples:
2ch_liveview.c, 2ch_playback.c, and pip.c.

Definition at line 11 of file dvr_type_define.h.

#define GMDVR_MEM_CFG_FILE   "/mnt/mtd/gmdvr_mem.cfg"

Definition at line 14 of file dvr_type_define.h.

#define GMDVR_MAKE_FOURCC (   a,
  b,
  c,
  d 
)    (int)((a)|(b)<<8|(c)<<16|(d)<<24)

Definition at line 15 of file dvr_type_define.h.

#define GMVAL_DO_NOT_CARE   (-54172099)

Definition at line 17 of file dvr_type_define.h.

#define GMVAL_RATE (   val,
  base 
)    ((base<<16)|val)

Definition at line 18 of file dvr_type_define.h.

#define GMVAL_RT_GET_VAL (   rate  )     (rate&0x0000FFFF)

Definition at line 20 of file dvr_type_define.h.

#define GMVAL_RT_GET_BASE (   rate  )     (rate>>16)

Definition at line 21 of file dvr_type_define.h.

#define GFID_DISP (   plane_num  )     (0x10000+plane_num)

Definition at line 24 of file dvr_type_define.h.

#define GFID_ENC (   ch_num  )     (0x20000+ch_num)

Definition at line 25 of file dvr_type_define.h.

#define GFID_DEC (   ch_num  )     (0x30000+ch_num)

Definition at line 26 of file dvr_type_define.h.

#define MTHD_USE_CMP   0x1

Definition at line 44 of file dvr_type_define.h.

#define FN_NONE   0x0

Definition at line 46 of file dvr_type_define.h.

#define FN_LIVEVIEW   0x1

Definition at line 47 of file dvr_type_define.h.

#define FN_RECORD   0x2

Definition at line 48 of file dvr_type_define.h.

#define FN_PLAYBACK   0x4

Definition at line 49 of file dvr_type_define.h.

#define FN_CASCADE   0x8

Definition at line 50 of file dvr_type_define.h.

#define FN_LCD_PARAM   0x10

Definition at line 51 of file dvr_type_define.h.

#define FN_PLANE_PARAM   0x20

Definition at line 52 of file dvr_type_define.h.

#define FN_SUB1_RECORD   0x40

Definition at line 53 of file dvr_type_define.h.

#define FN_SUB2_RECORD   0x80

Definition at line 54 of file dvr_type_define.h.

#define FN_SUB3_RECORD   0x100

Definition at line 55 of file dvr_type_define.h.

#define FN_SUB4_RECORD   0x200

Definition at line 56 of file dvr_type_define.h.

#define FN_SUB5_RECORD   0x400

Definition at line 57 of file dvr_type_define.h.

#define FN_SUB6_RECORD   0x800

Definition at line 58 of file dvr_type_define.h.

#define FN_SUB7_RECORD   0x1000

Definition at line 59 of file dvr_type_define.h.

#define FN_SUB8_RECORD   0x2000

Definition at line 60 of file dvr_type_define.h.

#define FN_UPDATE_METHOD   0x10000

Definition at line 61 of file dvr_type_define.h.

#define FN_PB_SCL_LINK   0x20000

Definition at line 62 of file dvr_type_define.h.

#define FN_METHOD_USE_CMP   0x8000000

Definition at line 63 of file dvr_type_define.h.

#define FN_SUB_ALL_RECORD   (FN_RECORD|FN_SUB1_RECORD|FN_SUB2_RECORD|FN_SUB3_RECORD|FN_SUB4_RECORD|FN_SUB5_RECORD|FN_SUB6_RECORD|FN_SUB7_RECORD|FN_SUB8_RECORD)

Definition at line 64 of file dvr_type_define.h.

#define FN_RESET_TAG (   ptag  )     { (ptag)->func=0; (ptag)->lv_ch=0; (ptag)->rec_ch=0; (ptag)->pb_ch=0; (ptag)->cas_ch=0; }
#define FN_COPY_TAG (   newt,
  ptag 
)    { (newt)->func=(ptag)->func; (newt)->lv_ch=(ptag)->lv_ch; (newt)->rec_ch=(ptag)->rec_ch; (newt)->pb_ch=(ptag)->pb_ch; (newt)->cas_ch=(ptag)->cas_ch; }

Definition at line 68 of file dvr_type_define.h.

#define FN_SET_LV_CH (   ptag,
  ch_num 
)    { (ptag)->func|=FN_LIVEVIEW; (ptag)->lv_ch|=(0x1<<ch_num); }
Examples:
2ch_liveview.c, liveview.c, and pip.c.

Definition at line 69 of file dvr_type_define.h.

#define FN_SET_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB1_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB1_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
#define FN_SET_SUB2_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB2_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }
Examples:
sub-bitstream-record.c, and update-record-setting.c.

Definition at line 72 of file dvr_type_define.h.

#define FN_SET_SUB3_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB3_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }

Definition at line 73 of file dvr_type_define.h.

#define FN_SET_SUB4_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB4_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }

Definition at line 74 of file dvr_type_define.h.

#define FN_SET_SUB5_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB5_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }

Definition at line 75 of file dvr_type_define.h.

#define FN_SET_SUB6_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB6_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }

Definition at line 76 of file dvr_type_define.h.

#define FN_SET_SUB7_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB7_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }

Definition at line 77 of file dvr_type_define.h.

#define FN_SET_SUB8_REC_CH (   ptag,
  ch_num 
)    { (ptag)->func|=(FN_SUB8_RECORD); (ptag)->rec_ch|=(0x1<<ch_num); }

Definition at line 78 of file dvr_type_define.h.

#define FN_SET_PB_CH (   ptag,
  ch_num 
)    { (ptag)->func|=FN_PLAYBACK; (ptag)->pb_ch|=(0x1<<ch_num); }
Examples:
2ch_playback.c, liveview.c, and playback.c.

Definition at line 79 of file dvr_type_define.h.

#define FN_SET_CAS_CH (   ptag,
  ch_num 
)    { (ptag)->func|=FN_CASCADE; (ptag)->cas_ch|=(0x1<<ch_num); }

Definition at line 80 of file dvr_type_define.h.

#define FN_SET_FUNC (   ptag,
  fnc 
)    { (ptag)->func|=fnc; }

Definition at line 81 of file dvr_type_define.h.

#define FN_REMOVE_FUNC (   ptag,
  fnc 
)    { (ptag)->func&=(~fnc); }

Definition at line 82 of file dvr_type_define.h.

#define FN_SET_ALL (   ptag  ) 
Value:
{   (ptag)->func=(0xFF);   /* Note: 'func' value doesn't include FN_UPDATE_METHOD. */ \
                                           (ptag)->lv_ch=0xFFFFFFFF; (ptag)->rec_ch=0xFFFFFFFF; (ptag)->pb_ch=0xFFFFFFFF; (ptag)->cas_ch=0xF; }

Definition at line 83 of file dvr_type_define.h.

#define FN_IS_UPDATE (   ptag  )     ((ptag)->func&FN_UPDATE_METHOD)

Definition at line 85 of file dvr_type_define.h.

#define FN_COMPARE (   ptagA,
  ptagB 
)    ( ((ptagA)->func==(ptagB)->func) && ((ptagA)->lv_ch==(ptagB)->lv_ch) && ((ptagA)->rec_ch==(ptagB)->rec_ch) && ((ptagA)->pb_ch==(ptagB)->pb_ch) && ((ptagA)->cas_ch==(ptagB)->cas_ch) )

Definition at line 86 of file dvr_type_define.h.

#define FN_IS_EMPTY (   ptag  )     ( ((ptag)->func==0) && ((ptag)->lv_ch==0) && ((ptag)->rec_ch==0) && ((ptag)->pb_ch==0) && ((ptag)->cas_ch==0) )

Definition at line 87 of file dvr_type_define.h.

#define FN_IS_FN (   ptag,
  fn 
)    ( (ptag)->func&(fn) )

Definition at line 88 of file dvr_type_define.h.

#define FN_REMOVE_LV_CH (   ptag,
  ch 
)    ( (ptag)->lv_ch&=(~ch) )

Definition at line 89 of file dvr_type_define.h.

#define FN_CHECK_MASK (   ptagA,
  ptagB 
)
Value:
((((ptagA)->func&(ptagB)->func)==FN_LIVEVIEW)?((ptagA)->lv_ch&(ptagB)->lv_ch):              \
            ((((ptagA)->func&(ptagB)->func)==FN_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch):          \
                ((((ptagA)->func&(ptagB)->func)==FN_SUB1_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB2_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB3_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB4_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB5_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB6_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB7_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                    ((((ptagA)->func&(ptagB)->func)==FN_SUB8_RECORD)?((ptagA)->rec_ch&(ptagB)->rec_ch): \
                        ((((ptagA)->func&(ptagB)->func)==FN_PLAYBACK)?((ptagA)->pb_ch&(ptagB)->pb_ch):  \
                            ((((ptagA)->func&(ptagB)->func)==FN_CASCADE)?((ptagA)->cas_ch&(ptagB)->cas_ch): \
                        ((ptagA)->func&(ptagB)->func) ))))))))))))

Definition at line 92 of file dvr_type_define.h.

#define FN_ITEMS (   ptag  )     (ptag)->func, (ptag)->lv_ch, (ptag)->rec_ch, (ptag)->pb_ch, (ptag)->cas_ch

Definition at line 116 of file dvr_type_define.h.

#define QNAME_LCD   "lcd"

Definition at line 120 of file dvr_type_define.h.

#define QNAME_3DI_SCL   "3di_scl"

Definition at line 121 of file dvr_type_define.h.

#define QNAME_LV_SCL   "lv_scl"

Definition at line 122 of file dvr_type_define.h.

#define QNAME_ENC_IN   "enc_in"

Definition at line 123 of file dvr_type_define.h.

#define QNAME_ENC_OUT   "enc_out"

Definition at line 124 of file dvr_type_define.h.

#define QNAME_SS_ENC_IN   "ssenc_in"

Definition at line 125 of file dvr_type_define.h.

#define QNAME_SS_ENC_OUT   "ssenc_out"

Definition at line 126 of file dvr_type_define.h.

#define QNAME_SUB1_ENC_IN   "sub1enc_in"

Definition at line 127 of file dvr_type_define.h.

#define QNAME_SUB1_ENC_OUT   "sub1enc_out"

Definition at line 128 of file dvr_type_define.h.

#define QNAME_SUB2_ENC_IN   "sub2enc_in"

Definition at line 129 of file dvr_type_define.h.

#define QNAME_SUB2_ENC_OUT   "sub2enc_out"

Definition at line 130 of file dvr_type_define.h.

#define QNAME_DEC_IN   "dec_in"

Definition at line 131 of file dvr_type_define.h.

#define QNAME_PB_SCL   "pb_scl"

Definition at line 132 of file dvr_type_define.h.

#define DBG_ENTITY_FNC   0x01

Definition at line 278 of file dvr_type_define.h.

#define DBG_ENTITY_JOB_FLOW   0x02

Definition at line 279 of file dvr_type_define.h.

#define DBG_DVR_FNC   0x04

Definition at line 280 of file dvr_type_define.h.

#define DBG_DVR_DATA_FLOW   0x08

Definition at line 281 of file dvr_type_define.h.

#define DBG_GRAPH_FNC   0x10

Definition at line 282 of file dvr_type_define.h.

#define DBG_GRAPH_DATA   0x20

Definition at line 283 of file dvr_type_define.h.

#define MCP_VIDEO_NTSC   0

video mode : NTSC

Examples:
2ch_liveview.c, and pip.c.

Definition at line 298 of file dvr_type_define.h.

#define MCP_VIDEO_PAL   1

video mode : PAL

Examples:
2ch_liveview.c, and pip.c.

Definition at line 299 of file dvr_type_define.h.

#define MCP_VIDEO_VGA   2

video mode : VGA

Definition at line 300 of file dvr_type_define.h.

#define DEFAULT_D1_WIDTH   720

Definition at line 412 of file dvr_type_define.h.

#define DEFAULT_D1_HEIGHT   576

Definition at line 413 of file dvr_type_define.h.

#define DEFAULT_CIF_WIDTH   352

Definition at line 414 of file dvr_type_define.h.

#define DEFAULT_CIF_HEIGHT   288

Definition at line 415 of file dvr_type_define.h.

#define DEFAULT_QCIF_WIDTH   176

Definition at line 416 of file dvr_type_define.h.

#define DEFAULT_QCIF_HEIGHT   144

Definition at line 417 of file dvr_type_define.h.


Typedef Documentation

typedef struct FuncTag_tag FuncTag

function tag for videograph level

typedef enum QueueID_tag QueueID
typedef struct DIM_tag DIM

set width and height

typedef struct RECT_tag RECT

set size and position

typedef struct POS_tag POS

set position x and y

typedef struct ROI_ALL_tag ROI_ALL

set ROI position x, y, width, height, and enable/disable

typedef struct QueueMemConfig_tag QueMemCfg

set queue memory configuration

set dvr graph queue configuration

typedef struct dvr_bs_data_tag dvr_bs_data

dvr bit-stream data

typedef struct dvr_rate_tag dvr_ratio

dvr video parameter.

typedef struct ScalerParamtag ScalerParam

scalar parameter

typedef enum EncodeType_tag EncodeType

Enumeration Type Documentation

Enumerator:
QID_LCD 
QID_3DI_SCL 
QID_LV_SCL 
QID_ENC_IN 
QID_ENC_OUT 
QID_SS_ENC_IN 
QID_SS_ENC_OUT 
QID_SUB1_ENC_IN 
QID_SUB1_ENC_OUT 
QID_SUB2_ENC_IN 
QID_SUB2_ENC_OUT 
QID_DEC_IN 
QID_PB_SCL 

Definition at line 137 of file dvr_type_define.h.

Enumerator:
ENC_TYPE_H264 
ENC_TYPE_MPEG 
ENC_TYPE_MJPEG 
ENC_TYPE_YUV422 
ENC_TYPE_COUNT 

Definition at line 269 of file dvr_type_define.h.

Enumerator:
LCD_COLOR_YUV422 
LCD_COLOR_YUV420 
LCD_COLOR_RGB 
LCD_COLOR_ARGB 
LCD_COLOR_RGB888 
LCD_COLOR_RGB565 
LCD_COLOR_RGB555 
LCD_COLOR_RGB444 
LCD_COLOR_RGB8 

Definition at line 286 of file dvr_type_define.h.

Enumerator:
LCD_PROGRESSIVE 
LCD_INTERLACING 

Definition at line 302 of file dvr_type_define.h.

Enumerator:
LVFRAME_EVEN_ODD 
LVFRAME_ENLARGE_ONE_FIELD 
LVFRAME_WEAVED_TWO_FIELDS 
LVFRAME_GM3DI_FORMAT 

Definition at line 307 of file dvr_type_define.h.

Enumerator:
LVFRAME_FRAME_MODE 
LVFRAME_FIELD_MODE 
LVFRAME_FIELD_MODE2 

Definition at line 314 of file dvr_type_define.h.

Enumerator:
GM3DI_FIELD 
GM3DI_FRAME 

Definition at line 320 of file dvr_type_define.h.

Enumerator:
DMAORDER_PACKET 
DMAORDER_3PLANAR 
DMAORDER_2PLANAR 

Definition at line 326 of file dvr_type_define.h.

Enumerator:
CAPSCALER_KEEP_RATIO 
CAPSCALER_NOT_KEEP_RATIO 

Definition at line 332 of file dvr_type_define.h.

Enumerator:
CAPCOLOR_RGB888 
CAPCOLOR_RGB565 
CAPCOLOR_YUV422 
CAPCOLOR_YUV420_M0 
CAPCOLOR_YUV420_M1 

Definition at line 338 of file dvr_type_define.h.

Enumerator:
ENC_INPUT_H2642D 
ENC_INPUT_MP42D 
ENC_INPUT_1D420 
ENC_INPUT_1D422 

Definition at line 346 of file dvr_type_define.h.

Enumerator:
DEC_OUTPUT_COLOR_YUV420 
DEC_OUTPUT_COLOR_YUV422 

Definition at line 353 of file dvr_type_define.h.

Enumerator:
JCS_yuv420 
JCS_yuv422 
JCS_yuv211 
JCS_yuv333 
JCS_yuv222 
JCS_yuv111 
JCS_yuv400 

Definition at line 358 of file dvr_type_define.h.

Enumerator:
JENC_INPUT_MP42D 
JENC_INPUT_1D420 
JENC_INPUT_H2642D 
JENC_INPUT_DMAWRP420 
JENC_INPUT_1D422 

Definition at line 368 of file dvr_type_define.h.

Enumerator:
SCALE_LINEAR 
SCALE_NON_LINEAR 
SCALE_METHOD_COUNT 

Definition at line 376 of file dvr_type_define.h.

Enumerator:
SCALE_RGB888 
SCALE_RGB565 
SCALE_H264_YUV420_MODE0 
SCALE_H264_YUV420_MODE1 
SCALE_YUV444 
SCALE_YUV422 
SCALE_MP4_YUV420_MODE0 
SCALE_MP4_YUV420_MODE1 

Definition at line 382 of file dvr_type_define.h.

Enumerator:
CAPPATH_DEFAULT 
CAPPATH_PATH_1 
CAPPATH_PATH_2 

Definition at line 394 of file dvr_type_define.h.

Enumerator:
LCD_RES_D1 
LCD_RES_SVGA 
LCD_RES_XGA 
LCD_RES_XVGA 
LCD_RES_SXGA 
LCD_RES_1360x768 
LCD_RES_COUNT 

Definition at line 401 of file dvr_type_define.h.

Generated on Wed Jun 15 2011 15:51:00 for This describe GM8126 ioctl functions by  doxygen 1.7.1