//********************************************************************************************************************* // function : de_fce_get_hist(unsigned int sel, unsigned int chno, // unsigned int hist[256], unsigned int *sum) // description : get histogram result // parameters : // sel <rtmx select> // chno <overlay select> // hist[256] <frame histogram> // sum <frame pixel value sum> // return : // success //********************************************************************************************************************* int de_fce_get_hist(unsigned int sel, unsigned int chno, unsigned int hist[256], unsigned int *sum) { unsigned int base; base = fce_hw_base[sel][chno]; #if 0 //for_test //FIXME *sum = 0x2EE0000; for(i=0; i<256; i++) { hist[i] = 0x5DC; } return 0; #endif //Read histogram to hist[256] memcpy((unsigned char *)hist, (unsigned char *)fce_hist_block[sel][chno].off, sizeof(unsigned int)*256); //Read *sum = get_wvalue(base + 0x20); return 0; }
static unsigned int hdmi_readl(unsigned int addr) { return get_wvalue(hdmi_base_addr + addr); }