tegra自动白平衡

http://www.tabletroms.com/forums/adam-general-development/4846-%5Btechnical%5D-camera-discussion-10-print.html

GoForce 5500 programming SDK including ISP, VI, etc.
Just when you think things can't get any better... I've now got the Tegra 2 design guide and the Tegra 200 series hardware datasheet. Both of them flesh out information about not just the VI and ISP but the entire Tegra SoC.

And to add icing on the cake, courtesy of  kwilson73's sharp-eyed efforts I've got the GoForce 5500 software development kit (SDK) which includes programming source for the ISP, VI and the rest.

Here's a juicy extract:
Code:

typedef enum _GFISPATTRIBUTES { 
    GFISP_ATTR_ENABLE_ISP,          /**< The master switch of ISP. 1 = Enable ISP processing, 0 = Disable */ 
    GFISP_ATTR_ENABLE_OB,          /**< The master switch for optical black. 1 = Enable OB, 0 = Disable */ 
    GFISP_ATTR_ENABLE_SENSOR_MANUAL_OB,    /**< The master switch for SENSOR Manual optical black. 1 = Enable OB, 0 = Disable */ 
    GFISP_ATTR_ENABLE_SENSOR_AUTO_OB,    /**< The master switch for SENSOR Auto optical black. 1 = Enable OB, 0 = Disable */ 
    GFISP_ATTR_ENABLE_FOB,          /**< Switch for frame based optical black. 1 = Enable frame based optical black, 0 = Disable */ 
    GFISP_ATTR_ENABLE_FOB_SELFRESET, /**< Switch for self-reset for frame based optical black. 1 = Enable (reset every frame), 0 = Disable */ 
    GFISP_ATTR_ENABLE_FOB_TEMPORAL, /**< Switch for temporal filtering for frame based optical black. 1 = Enable temporal filtering, 0 = Disable */ 
    GFISP_ATTR_ENABLE_LOB,          /**< Switch for line based optical black. 1 = Enable line based OB, 0 = Disable */ 
    GFISP_ATTR_ENABLE_DEKNEE,      /**< Switch for deknee. 1 = Enable deknee, 0 = Disable */ 
    GFISP_ATTR_ENABLE_LENS_SHADING, /**< Switch for lens shading correction. 1 = Enable lens shading correction, 0 = Disable */ 
    GFISP_ATTR_ENABLE_WB,          /**< The master switch for white balance. 1 = Enable white balance, 0 = Disable */ 
    GFISP_ATTR_ENABLE_AWB,          /**< Switch for built-in automatic white balance. 1 = Automatic/dynamic (real-time) white balance, 0 = Preprogrammed mode white balance */ 
    GFISP_ATTR_AWB_HOLD,            /**< Switch to pause automatic white balance. Only effective when GFISP_ATTR_ENABLE_AWB=1. 1 = Start applying current AWB gain value to all future frames, 0 = Restore normal AWB mode */ 
    GFISP_ATTR_ENABLE_DEMOSAIC,    /**< Switch for demosaic processing. 1 = Enable demosaic processing, 0 = Disable */ 
    GFISP_ATTR_ENABLE_EDGE_ENHANCE, /**< Switch for edge enhancement. 1 = Enable edge enhancement, 0 = Disable */ 
    GFISP_ATTR_ENABLE_NOISE_CONTROL1, /**< Switch for noise control 1. Noise control method 1 is built in the demosaic unit.  1 = Enable noise control 1, 0 = Disable */ 
    GFISP_ATTR_ENABLE_BAD_PIXEL,    /**< Switch for bad pixel concealment. 1 = Enable bad pixel detection and concealment, 0 = Disable */ 
    GFISP_ATTR_ENABLE_COLOR_CORRECTION, /**< Switch for color correction. 1 = Enable color correction, 0 = Disable */ 
    GFISP_ATTR_ENABLE_NOISE_CONTROL2, /**< Switch for noise control 2. Noise control method 2 is built in the color correction unit.  1 = Enable noise control 2, 0 = Disable */ 
    GFISP_ATTR_ENABLE_GAMMA_CORRECTION, /**< Switch for gamma correction. 1 = Enable gamma correction, 0 = Disable */ 
    GFISP_ATTR_ENABLE_YUV_CONVERSION, /**< Switch for RGB to YUV conversion. 1 = Enable RGB-YUV conversion, 0 = Disable */ 
    GFISP_ATTR_ENABLE_NEGATIVE_EFFECT, /**< Switch for negative effect. 1 = Negate whole output image, 0 = Normal image */ 
    GFISP_ATTR_ENABLE_M2,          /**< Switch for M2 statistics. 1 = Enable M2 statistics gathering, 0 = Disable */ 
    GFISP_ATTR_ENABLE_M3,          /**< Switch for M3 statistics. 1 = Enable M3 statistics gathering, 0 = Disable */ 
    GFISP_ATTR_ENABLE_M4,          /**< Switch for M4 statistics. 1 = Enable M4 statistics gathering, 0 = Disable */ 
    GFISP_ATTR_ENABLE_STATS_RAISE,  /**< Switch for statistics raise. 1 = Generate raise vector when statistics gathering is complete, 0 = Disable */ 
    GFISP_ATTR_ENABLE_STATS_INT,    /**< Switch for statistics interrupt. 1 = Generate interrupt when statistics gathering is complete, 0 = Disable */ 
    GFISP_ATTR_STATS_LINE_END,      /**< The line at which statistics gathering is complete.  When the line counter reaches STATS_LINE_END, the raise vector and/or interrupt are generated (if enabled). */ 
#ifdef MANUAL_ENABLE_WAIT_FOR_OUTPUT_END 
    GFISP_ATTR_ENABLE_WAIT_FOR_OUTPUT_END, /**< Temporary used to enable wait for OUTPUT_END. 1 = Wait for output end, 0 = Disable */ 
#endif 
    /* Special effects */ 
    GFISP_ATTR_ENABLE_EMBOSS,      /**< Switch for emboss special effect. 1 = Enable emboss special effect, 0 = Disable */ 
    GFISP_ATTR_ENABLE_SOLARIZE,    /**< Switch for solarize special effect. 1 = Enable solarize special effect, 0 = Disable */ 
    GFISP_ATTR_ENABLE_SEPIA,        /**< Switch for sepia special effect. 1 = Enable sepia special effect, 0 = Disable */ 
    GFISP_ATTR_ENABLE_MONOCHROME,  /**< Switch for monochrome special effect. 1 = Enable monochrome special effect, 0 = Disable */ 
    /* Video settings */ 
    GFISP_ATTR_CONTRAST,            /**< Contrast control. Acts as offset for Y data. Range is [0, 128]. */ 
    GFISP_ATTR_BRIGHTNESS,          /**< Brightness control. Modifies slope of Y data. Range is [0, 256]. */ 
    GFISP_ATTR_HUE,                /**< Hue control. Modifies slope of UV data. Range is [0, 128]. */ 
    GFISP_ATTR_SATURATION_U,        /**< Hue control. Modifies slope of UV data. Range is [0, 256]. */ 
    GFISP_ATTR_SATURATION_V,        /**< Hue control. Modifies slope of UV data. Range is [0, 256]. */ 
    /* Software 3A control */ 
    GFISP_ATTR_ENABLE_3A_AE,        /**< Switch for software auto exposure. 1 = Enable auto exposure and disable sensor exposure, 0 = Disable */ 
    GFISP_ATTR_ENABLE_3A_AWB,      /**< Switch for software auto white balance. 1 = Enable auto white balance and disable sensor exposure, 0 = Disable */ 
    GFISP_ATTR_ENABLE_3A_AF,        /**< Switch for software auto focus. 1 = Enable auto focus and disable sensor auto focus, 0 = Disable */ 
  
    GFISP_ATTR_ENABLE_SENSOR_AE,        /**< Switch for sensor auto exposure. 1 = Enable sensor auto exposure and disable software expoture, 0 = Disable */ 
    GFISP_ATTR_ENABLE_SENSOR_AWB,      /**< Switch for sensor auto white balance. 1 = Enable sensor auto white balance and disable software white balance, 0 = Disable */ 
    GFISP_ATTR_ENABLE_SENSOR_AF,        /**< Switch for sensor auto focus. 1 = Enable sensor auto focus and disable software auto focus, 0 = Disable */ 
    GFISP_ATTR_ENABLE_AUTO_CC_VIVIDITY  /**< Flag for auto vividity. 1 = Enable auto vividity, 0 = Disable  auto vividity*/ 
} GFISPATTRIBUTES;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值