Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mx27_pp.h File Reference


Detailed Description

Header file for MX27 V4L2 Video Output Driver.

Definition in file mx27_pp.h.

#include "mxc_v4l2_output.h"

Go to the source code of this file.

Classes

struct  _emma_pp_cfg
struct  _emma_pp_ptr
struct  _emma_pp_scale
struct  _emma_pp_size

Defines

#define BC_COEF   5
#define BC_NXT   2
#define CSC_TBL_A0   0x20
#define CSC_TBL_A1   0x00
#define CSC_TBL_B0   0x60
#define CSC_TBL_B1   0x40
#define CSC_TBL_NONE   0x80
#define CSC_TBL_REUSE   0x81
#define EN_BIGDATA   0x1000
#define EN_BIGQP   0x2000
#define EN_CSC   0x10
#define EN_DEBLOCK   0x02
#define EN_DEF   0x16
#define EN_DERING   0x04
#define EN_MACROBLOCK   0x20
#define EN_MASK   0x36
#define PP_CALC_BPP(cfg)   ((cfg)->rgb_resolution > 16 ? 4 : ((cfg)->rgb_resolution >> 3))
#define PP_CALC_CH_SIZE(cfg)   (PP_CALC_Y_SIZE(cfg) >> 2)
#define PP_CALC_DEST_SIZE(cfg)   ((cfg)->dim.out.height * PP_CALC_DEST_WIDTH(cfg))
#define PP_CALC_DEST_WIDTH(cfg)   (((cfg)->out_stride & ~1) * PP_CALC_BPP(cfg))
#define PP_CALC_QP_SIZE(cfg)   (PP_CALC_QP_WIDTH(cfg) * (((cfg)->dim.in.height + 15) >> 4))
#define PP_CALC_QP_WIDTH(cfg)
#define PP_CALC_Y_SIZE(cfg)   ((cfg)->in_y_stride * (cfg)->dim.in.height)
#define PP_CALC_YUV_SIZE(cfg)   ((PP_CALC_Y_SIZE(cfg) * 3) >> 1)
#define PP_CNTL   PP_REG(0x00)
#define PP_CSC_COEF_0123   PP_REG(0x38)
#define PP_CSC_COEF_4   PP_REG(0x3C)
#define PP_CSC_FP4_2_HW(coeff)   ((((coeff) << 7) + 5000) / 10000)
#define PP_CSC_HW_2_FP4(coeff)   ((((coeff) * 10000) + 64) >> 7)
#define PP_DEST_DISPLAY_WIDTH   PP_REG(0x28)
#define PP_DEST_FRAME_FMT_CNTL   PP_REG(0x30)
#define PP_DEST_IMAGE_SIZE   PP_REG(0x2C)
#define PP_DEST_RGB_PTR   PP_REG(0x18)
#define PP_INTRCNTL   PP_REG(0x04)
#define PP_INTRSTATUS   PP_REG(0x08)
#define PP_PIX_UYVY   16
#define PP_PIX_VYUY   24
#define PP_PIX_YUYV   0
#define PP_PIX_YVYU   8
#define PP_PROCESS_FRAME_PARA   PP_REG(0x20)
#define PP_QUANTIZER_PTR   PP_REG(0x1C)
#define PP_REG(ofs)   (IO_ADDRESS(EMMA_BASE_ADDR) - 0x400 + ofs)
#define PP_RESIZE_COEF_TBL   PP_REG(0x100)
#define PP_RESIZE_INDEX   PP_REG(0x34)
#define PP_SOURCE_CB_PTR   PP_REG(0x10)
#define PP_SOURCE_CR_PTR   PP_REG(0x14)
#define PP_SOURCE_FRAME_WIDTH   PP_REG(0x24)
#define PP_SOURCE_Y_PTR   PP_REG(0x0C)
#define SZ_COEF   (1 << BC_COEF)
#define SZ_NXT   (1 << BC_NXT)

Typedefs

typedef struct _emma_pp_cfg emma_pp_cfg
typedef struct _emma_pp_ptr emma_pp_ptr
typedef struct _emma_pp_scale emma_pp_scale
typedef struct _emma_pp_size emma_pp_size

Functions

int pp_cfg (vout_data *vout)
 Configure PP.
int pp_enable (int flag)
 Enable or disable PP.
void pp_exit (vout_data *vout)
 Deinitialize PP.
int pp_init (vout_data *vout)
 Initialize PP.
int pp_num_last (void)
 Get the display No. of last completed PP frame.
int pp_ptr (unsigned long ptr)
 Set PP input address.


Generated by  Doxygen 1.6.0   Back to index