type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
defines |
#define Sleep(ms) mdelay(ms) |
defines | #define RETAILMSG(x,...) |
defines | #define TEXT |
defines |
#define OV3640_LIMIT_EXPOSURE_LINES (1253) |
defines | #define OV3640_VIDEO_NORMALMODE_30FRAME_RATE (30) |
defines | #define OV3640_VIDEO_NORMALMODE_FRAME_RATE (15) |
defines | #define OV3640_VIDEO_NIGHTMODE_FRAME_RATE (7.5) |
defines | #define BANDING50_30HZ |
functions | kal_uint16 OV3640_read_cmos_sensor(kal_uint32 addr)
{
kal_uint16 get_byte=0;
iReadReg((u16) addr ,(u8*)&get_byte,OV3640_WRITE_ID);
return get_byte;
} |
functions | void OV3640_write_cmos_sensor(kal_uint32 addr, kal_uint32 para)
{
OV3640I2CConfig.operation=I2C_OP_WRITE;
OV3640I2CConfig.slaveAddr=OV3640_sensor_write_I2C_address>>1;
OV3640I2CConfig.transfer_num=1; /* TRANSAC_LEN */
OV3640I2CConfig.transfer_len=3;
OV3640I2CConfig.buffer[0]=(UINT8)(addr>>8);
OV3640I2CConfig.buff... |
functions | kal_uint32 OV3640_read_cmos_sensor(kal_uint32 addr)
{
kal_uint8 get_byte=0xFF;
OV3640I2CConfig.operation=I2C_OP_WRITE;
OV3640I2CConfig.slaveAddr=OV3640_sensor_write_I2C_address>>1;
OV3640I2CConfig.transfer_num=1; /* TRANSAC_LEN */
OV3640I2CConfig.transfer_len=2;
OV3640I2CConfig.buffer[0]=(UINT8)(addr>>8);
OV364... |
functions | void OV3640_set_dummy(kal_uint16 pixels, kal_uint16 lines)
{
kal_uint8 temp_reg1, temp_reg2;
kal_uint16 temp_reg;
/*Very Important: The line_length must < 0x1000, it is to say 0x3028 must < 0x10, or else the sensor will crash*/
/*The dummy_pixel must < 2156*/
if (pixels >= 2156)
pixels = 2... |
functions | kal_uint16 OV3640_read_OV3640_gain(void)
{
kal_uint8 temp_reg;
kal_uint16 sensor_gain;
temp_reg=OV3640_read_cmos_sensor(0x3000);
sensor_gain=(16+(temp_reg&0x0F));
if(temp_reg&0x10)
sensor_gain<<=1;
if(temp_reg&0x20)
sensor_gain<<=1;
if(temp_reg&0x40)
sens... |
functions | kal_uint16 OV3640_read_shutter(void)
{
kal_uint8 temp_reg1, temp_reg2;
kal_uint16 temp_reg, extra_exp_lines;
temp_reg1 = OV3640_read_cmos_sensor(0x3003); // AEC[b7~b0]
temp_reg2 = OV3640_read_cmos_sensor(0x3002); // AEC[b15~b8]
temp_reg = (temp_reg1 & 0xFF) | (temp_reg2 << 8);
temp_reg1 ... |
functions | void OV3640_write_OV3640_gain(kal_uint16 gain)
{
kal_uint16 temp_reg;
RETAILMSG(1, (TEXT("OV3640 write gain: %d\r\n"), gain));
if(gain > 248) return ;//ASSERT(0);
temp_reg = 0;
if (gain > 31)
{
temp_reg |= 0x10;
gain = gain >> 1;
} |
functions | void OV3640_write_shutter(kal_uint16 shutter)
{
if (OV3640_gPVmode)
{
if (shutter <= OV3640_PV_EXPOSURE_LIMITATION)
{
OV3640_extra_exposure_lines = 0;
} |
functions | void OV3640_Computer_AEC(kal_uint16 preview_clk_in_M, kal_uint16 capture_clk_in_M)
{
kal_uint16 PV_Line_Width;
kal_uint16 Capture_Line_Width;
kal_uint16 Capture_Maximum_Shutter;
kal_uint16 Capture_Exposure;
kal_uint16 Capture_Gain16;
kal_uint16 Capture_Banding_Filter;
kal_uint32 Gain_Exposur... |
functions | void OV3640_Computer_AECAGC(kal_uint16 preview_clk_in_M, kal_uint16 capture_clk_in_M)
{
kal_uint16 PV_Line_Width;
kal_uint16 Capture_Line_Width;
kal_uint16 Capture_Maximum_Shutter;
kal_uint16 Capture_Exposure;
kal_uint16 Capture_Gain16;
kal_uint32 Capture_Banding_Filter;
kal_uint32 Gain_Expo... |
functions | void OV3640_set_isp_driving_current(kal_uint8 current)
{
} |
functions | void OV3640_night_mode(kal_bool enable)
{
//kal_uint16 night = 0;
//kal_uint16 temp=OV3640_read_cmos_sensor(0x3302);
OV3640_Night_mode = enable;
if (OV3640_sensor_cap_state == KAL_TRUE) {
return ; //If capture mode, return directely.
} |
functions | void OV3640_set_VGA_mode(void)
{
//-----------------------------------
//From capture to preview
//-----------------------------------
//-------------------------------------------------------------------------------
// PLL MY_OUTPUT clock(fclk)
// fclk = (0x40 - 0x300E[5:0]) x N x Bit8Div x MCLK / M, wher... |
functions | void OV3640_YUV_sensor_initial_setting(void)
{
//;Sensor rest
//OV3640_write_cmos_sensor(0x3012,0x80);
//Sleep(10);
OV3640_write_cmos_sensor(0x304d,0x45);
OV3640_write_cmos_sensor(0x30a7,0x5e); //add
OV3640_write_cmos_sensor(0x3087,0x16);
OV3640_write_cmos_senso... |
functions | void OV3640_set_AE_mode(kal_bool AE_enable)
{
kal_uint8 temp_AE_reg = 0;
if (AE_enable == KAL_TRUE)
{
// turn on AEC/AGC
temp_AE_reg = OV3640_read_cmos_sensor(0x3013);
OV3640_write_cmos_sensor(0x3013, temp_AE_reg| 0x05);
{ /* -------OV3640 extra line can not auto set to 0 when change from capture to p... |
functions | void OV3640_set_AWB_mode(kal_bool AWB_enable)
{
kal_uint8 temp_AWB_reg = 0;
//return ;
if (AWB_enable == KAL_TRUE)
{
//enable Auto WB
temp_AWB_reg = OV3640_read_cmos_sensor(0x3302);
OV3640_write_cmos_sensor(0x3302, temp_AWB_reg | 0x01);
} |
functions | u32 ov3640_calc_mipiclk(void)
{
u32 rxpll, val, n, m, bit8div;
u32 sdiv_inv, mipidiv;
u32 fclk, mipiclk, mclk = 26000000;
u8 lut1[4] = {2, 3, 4, 6} |
functions | void OV3640_set_QXGA_mode(void)
{
//@@ Capture QXGA Key setting
//99 2048 1536
//98 0 0
OV3640_write_cmos_sensor(0x3012,0x00); //soft reset, sensor array resolution:QXGA
/*
fclk=(0x40-0x300E[5:0])*N*Bit8Div*MCLK/M
N=1/1.5/2/3... |
functions | UINT32 OV3640GetSensorID(UINT32 *sensorID)
{
volatile signed char i;
//s_move to here from CISModulePowerOn()
OV3640_write_cmos_sensor(0x300E, 0x39);
OV3640_write_cmos_sensor(0x300E, 0xB9);// ;Enable bit[7]
OV3640_write_cmos_sensor(0x308D, 0x14);//
OV3640_write_cmos_sensor(0x30AD, 0x82);// ;Enable bit[7]
OV... |
functions | UINT32 OV3640Open(void)
{
volatile signed char i;
kal_uint16 sensor_id=0;
sensor_id_fail = 0;
#if WINMO_USE
OV3640hDrvI2C=DRV_I2COpen(0);
DRV_I2CSetParam(OV3640hDrvI2C, I2C_VAL_FS_SAMPLE_DIV, 3);
DRV_I2CSetParam(OV3640hDrvI2C, I2C_VAL_FS_STEP_DIV, 8);
DRV_I2CSetParam(OV3640hDrvI2C, I2C_... |
functions | UINT32 OV3640Close(void)
{
// CISModulePowerOn(FALSE);
#if WINMO_USE
#ifndef SOFTWARE_I2C_INTERFACE /* software I2c MODE */
DRV_I2CClose(OV3640hDrvI2C);
#endif
#endif
return ERROR_NONE;
} |
functions | kal_uint16 OV3640_Reg2Gain(const kal_uint8 iReg)
{
kal_uint8 iI;
kal_uint16 iGain = BASEGAIN; // 1x-gain base
// Range: 1x to 32x
// Gain = (GAIN[7] + 1) * (GAIN[6] + 1) * (GAIN[5] + 1) * (GAIN[4] + 1) * (1 + GAIN[3:0] / 16)
for (iI = 7; iI >= 4; iI--) {
iGain *= (((iReg >> iI) & 0x01) +... |
functions | kal_uint8 OV3640_Gain2Reg(const kal_uint16 iGain)
{
kal_uint8 iReg = 0x00;
if (iGain < 2 * BASEGAIN) {
// Gain = 1 + GAIN[3:0](0x00) / 16
iReg = 16 * (iGain - BASEGAIN) / BASEGAIN;
} |
functions | else if (iGain < 4 * BASEGAIN) {
// Gain = 2 * (1 + GAIN[3:0](0x00) / 16)
iReg |= 0x10;
iReg |= 8 * (iGain - 2 * BASEGAIN) / BASEGAIN;
} |
functions | else if (iGain < 8 * BASEGAIN) {
// Gain = 4 * (1 + GAIN[3:0](0x00) / 16)
iReg |= 0x30;
iReg |= 4 * (iGain - 4 * BASEGAIN) / BASEGAIN;
} |
functions | else if (iGain < 16 * BASEGAIN) {
// Gain = 8 * (1 + GAIN[3:0](0x00) / 16)
iReg |= 0x70;
iReg |= 2 * (iGain - 8 * BASEGAIN) / BASEGAIN;
} |
functions | else if (iGain < 32 * BASEGAIN) {
// Gain = 16 * (1 + GAIN[3:0](0x00) / 16)
iReg |= 0xF0;
iReg |= (iGain - 16 * BASEGAIN) / BASEGAIN;
} |
functions | kal_uint16 OV3640_write_gain(kal_uint16 gain)
{
#if 0
kal_uint8 iReg = OV3640_Gain2Reg(iGain);
kal_uint8 gain = iGain / BASEGAIN;
OV3640_write_cmos_sensor(0x3001, iReg); //AGC[7:0]
// kal_prompt_trace(MOD_ENG, "Write GAIN: %d, YAvg: %x", gain, OV3640_read_cmos_sensor(0x301B));
return gain;
#e... |
functions | kal_uint16 OV3640_read_gain(void)
{
#if 0
kal_uint8 iReg = 0;
kal_uint16 sensor_gain = 0;
iReg = OV3640_read_cmos_sensor(0x3001);
sensor_gain = OV3640_Reg2Gain(iReg);
//kal_prompt_trace(MOD_ENG, "Read Gain:%d", sensor_gain/BASEGAIN);
return sensor_gain;
#else
kal_uint8 temp_reg;
kal_uint16 sens... |
functions | void OV3640_set_mirror_flip(kal_uint8 image_mirror, kal_uint16 *iStartX, kal_uint16 *iStartY)
{
kal_uint8 iTemp = 0;
kal_uint8 iTemp2 = 0;
iTemp = OV3640_read_cmos_sensor(0x307C)&(~0x03);
iTemp2 = OV3640_read_cmos_sensor(0x3090)&(~0x08);
switch (image_mirror) {
case IMAGE_NORMAL:
*iStartX = 1;
... |
functions | void OV3640GetEvAwbRef(UINT32 pSensorAEAWBRefStruct/*PSENSOR_AE_AWB_REF_STRUCT Ref*/)
{
PSENSOR_AE_AWB_REF_STRUCT Ref = (PSENSOR_AE_AWB_REF_STRUCT)pSensorAEAWBRefStruct;
SENSORDB("OV3640GetEvAwbRef ref = 0x%x \n", Ref);
Ref->SensorAERef.AeRefLV05Shutter = 1503;
Ref->SensorAERef.AeRefLV05Gain = 496... |
functions | void OV3640GetCurAeAwbInfo(UINT32 pSensorAEAWBCurStruct/*PSENSOR_AE_AWB_CUR_STRUCT Info*/)
{
PSENSOR_AE_AWB_CUR_STRUCT Info = (PSENSOR_AE_AWB_CUR_STRUCT)pSensorAEAWBCurStruct;
SENSORDB("OV3640GetCurAeAwbInfo Info = 0x%x \n", Info);
Info->SensorAECur.AeCurShutter = OV3640_read_shutter();
Info->Sens... |
functions | UINT32 OV3640Preview(MSDK_SENSOR_EXPOSURE_WINDOW_STRUCT *image_window,
MSDK_SENSOR_CONFIG_STRUCT *sensor_config_data)
{
//kal_uint8 iTemp = 0;
kal_uint16 iStartX = 0, iStartY = 0;
kal_uint16 shutter = 0,pv_gain = 0;
#if WINMO_USE
kal_prompt_trace(MOD_ENG, "Prev:isp_op_mode=%x,Frame rate=%x", senso... |
functions | UINT32 OV3640Capture(MSDK_SENSOR_EXPOSURE_WINDOW_STRUCT *image_window, MSDK_SENSOR_CONFIG_STRUCT *sensor_config_data)
{
volatile kal_uint32 shutter = 0; //OV3640_exposure_lines;
//kal_uint32 extra_line = 0;
kal_uint32 pv_gain = 0;
kal_uint8 temp;//for cal auto uv
int temp_shutter = 0;
kal_uint3... |
functions | 2
if (zoom_factor < 2)
{
OV3640_write_cmos_sensor(0x3011, 0x02);//01->02
OV3640_write_cmos_sensor(0x300e, 0x32);
OV3640_capture_pclk = 606; //485;//23833334;
OV3640_FULL_dummy_pixels = 0;
... |
functions | else if (zoom_factor < 5)
{
OV3640_write_cmos_sensor(0x3011, 0x02);
OV3640_write_cmos_sensor(0x300e, 0x35);
OV3640_capture_pclk = 317;//254;//23833334;
OV3640_FULL_dummy_pixels = 0;//200;
} |
functions | zero
if (shutter == 0)
{
shutter = 1;
} |
functions | UINT32 OV3640GetResolution(MSDK_SENSOR_RESOLUTION_INFO_STRUCT *pSensorResolution)
{
pSensorResolution->SensorFullWidth=OV3640_IMAGE_SENSOR_FULL_WIDTH - 2 * IMAGE_SENSOR_START_GRAB_X - 8; //modify by yanxu
pSensorResolution->SensorFullHeight=OV3640_IMAGE_SENSOR_FULL_HEIGHT - 2 * IMAGE_SENSOR_START_GRAB_Y - 6;
pSenso... |
functions | UINT32 OV3640GetInfo(MSDK_SCENARIO_ID_ENUM ScenarioId,
MSDK_SENSOR_INFO_STRUCT *pSensorInfo,
MSDK_SENSOR_CONFIG_STRUCT *pSensorConfigData)
{
pSensorInfo->SensorPreviewResolutionX=OV3640_IMAGE_SENSOR_PV_WIDTH - 8;
pSensorInfo->SensorPreviewResolutionY=OV3640_IMAGE_SENSOR_PV_HEIGHT - 6;
pSensorInfo->Sens... |
functions | UINT32 OV3640Control(MSDK_SCENARIO_ID_ENUM ScenarioId, MSDK_SENSOR_EXPOSURE_WINDOW_STRUCT *pImageWindow,
MSDK_SENSOR_CONFIG_STRUCT *pSensorConfigData)
{
switch (ScenarioId)
{
case MSDK_SCENARIO_ID_CAMERA_PREVIEW:
case MSDK_SCENARIO_ID_VIDEO_PREVIEW:
case MSDK_SCENARIO_ID_VIDEO_CAPTURE_MPEG4:
OV3640Pre... |
functions | void OV3640Query(PMSDK_FEATURE_INFO_STRUCT pSensorFeatureInfo)
{
MSDK_FEATURE_TYPE_RANGE_STRUCT *pFeatureRange;
MSDK_FEATURE_TYPE_MULTI_SELECTION_STRUCT *pFeatureMultiSelection;
switch (pSensorFeatureInfo->FeatureId)
{
case ISP_FEATURE_DSC_MODE:
pSensorFeatureInfo->FeatureType = MSDK_FEATURE_TYPE_MULTI_SELECTI... |
functions | BOOL OV3640_set_param_wb(UINT16 para)
{
//This sensor need more time to balance AWB,
//we suggest higher fps or drop some frame to avoid garbage color when preview initial
switch (para)
{
case AWB_MODE_OFF:
OV3640_AWB_ENABLE = KAL_FALSE;
OV3640_set_AWB_mode(OV364... |
functions | BOOL OV3640_set_param_effect(UINT16 para)
{
kal_uint32 ret = TRUE;
kal_uint16 temp=OV3640_read_cmos_sensor(0x3302);
OV3640_write_cmos_sensor(0x3302,temp|0x80);
switch (para)
{
case MEFFECT_OFF:
//OV3640_write_cmos_sensor(0x3302, 0xef);
OV3640_write_cmos_sensor(0x3355, 0x04);
OV3640_wr... |
functions | BOOL OV3640_set_param_banding(UINT16 para)
{
kal_uint16 PV_Line_Width = 0;
// kal_uint16 Preview_Banding_Filter = 0;
// kal_uint16 Exposure_Step = 0;
PV_Line_Width = OV3640_FULL_PERIOD_PIXEL_NUMS + OV3640_PV_dummy_pixels*2;
//kal_prompt_trace(MOD_ENG,"call banding function ");
/* switch (para)
{
case CAM_B... |
functions | BOOL OV3640_set_param_exposure(UINT16 para)
{
kal_uint16 temp=OV3640_read_cmos_sensor(0x3302);
OV3640_write_cmos_sensor(0x3302,temp|0x80);
kal_uint8 temp_reg;
temp_reg=OV3640_read_cmos_sensor(0x3355);
switch (para)
{
case AE_EV_COMP_13:
//OV3640_write_cmos_sensor(0x3302, 0xef);
OV3640... |
functions | UINT32 OV3640YUVSensorSetting(FEATURE_ID iCmd, UINT32 iPara)
{
// if( OV3640_sensor_cap_state == KAL_TRUE)
// return TRUE;
switch (iCmd) {
case FID_SCENE_MODE:
// printk("Set Scene Mode:%d\n", iPara);
if (iPara == SCENE_MODE_OFF)
{
OV3640_night_mode(0);
} |
functions | else if (iPara == SCENE_MODE_NIGHTSCENE)
{
OV3640_night_mode(1);
} |
functions | UINT32 OV3640YUVSetVideoMode(UINT16 u2FrameRate)
{
kal_uint8 iTemp;
printk("[OV2640YUV] Set Video Mode \n");
OV3640_VEDIO_encode_mode = KAL_TRUE;
//iTemp = OV3640_read_cmos_sensor(0x3014);
//OV3640_write_cmos_sensor(0x3014, iTemp & 0xf7); //Disable night mode
if (u2FrameRate == 30)
{
... |
functions | else if (u2FrameRate == 15)
{
// set Max gain to 16X
OV3640_write_cmos_sensor(0x3015, 0x01); //jerry
OV3640_write_cmos_sensor(0x3011,0x01);
// clear extra exposure line
OV3640_write_cmos_sensor(0x302d, 0x00);
OV3640_write_cmos_sensor(0x302e, 0x00);
} |
functions | UINT32 OV3640FeatureControl(MSDK_SENSOR_FEATURE_ENUM FeatureId,
UINT8 *pFeaturePara,UINT32 *pFeatureParaLen)
{
UINT16 u2Temp = 0;
UINT16 *pFeatureReturnPara16=(UINT16 *) pFeaturePara;
UINT16 *pFeatureData16=(UINT16 *) pFeaturePara;
UINT32 *pFeatureReturnPara32=(UINT32 *) pFeaturePara;
UINT32 *pFeatu... |
functions | UINT32 OV3640_YUV_SensorInit(PSENSOR_FUNCTION_STRUCT *pfFunc)
{
/* To Do : Check Sensor status here */
if (pfFunc!=NULL)
*pfFunc=&SensorFuncOV3640;
return ERROR_NONE;
} |
functions | int _group_number(int group_id)
{
if (group_id == IOP_GROUP_EFFECT) return 5;
else if (group_id == IOP_GROUP_CORRECT) return 4;
else if (group_id == IOP_GROUP_COLOR) return 3;
else if (group_id == IOP_GROUP_TONE) return 2;
else if (group_id == IOP_GROUP_BASIC) return 1;
else ... |
functions | int dt_iop_get_group(const dt_iop_module_t *module)
{
gchar *key = dt_util_dstrcat(NULL, "plugins/darkroom/%s/modulegroup", module->op);
int prefs = dt_conf_get_int(key);
/* if zero, not found, record it */
if (!prefs)
{
const int default_group = module->default_group();
dt_conf_set_int(key, _group_n... |
functions | int test_yaffs_symlink_ENOENT2(void)
{
int error_code = 0;
output = yaffs_symlink(FILE_PATH,"non-existing-dir/sym_link");
if (output<0){
error_code=yaffs_get_error();
if (abs(error_code)==ENOENT){
return 1;
} |
functions | int test_yaffs_symlink_ENOENT2_clean(void)
{
if (output >= 0){
return yaffs_unlink(SYMLINK_PATH);
} |
defines |
#define H5B_PACKAGE /*suppress error about including H5Bpkg */ |
defines | #define H5B_SIZEOF_HDR(F) \ |
defines | #define H5B_INS_UD_T_NULL {NULL, HADDR_UNDEF, H5AC__NO_FLAGS_SET} |
functions | herr_t
H5B_create(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, void *udata,
haddr_t *addr_p/*out*/)
{
H5B_t *bt = NULL;
H5B_shared_t *shared=NULL; /* Pointer to shared B-tree info */
herr_t ret_value = SUCCEED;
FUNC_ENTER_NOAPI(FAIL)
/*
* Check arguments.
*/
... |
functions | htri_t
H5B_find(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void *udata)
{
H5B_t *bt = NULL;
H5UC_t *rc_shared; /* Ref-counted shared info */
H5B_shared_t *shared; /* Pointer to shared B-tree info */
H5B_cache_ud_t cache_udata; /* User-data for metad... |
functions | herr_t
H5B_split(H5F_t *f, hid_t dxpl_id, H5B_ins_ud_t *bt_ud, unsigned idx,
void *udata, H5B_ins_ud_t *split_bt_ud/*out*/)
{
H5P_genplist_t *dx_plist; /* Data transfer property list */
H5B_shared_t *shared; /* Pointer to shared B-tree info */
H5B_cache_ud_t cache_udata; ... |
functions | herr_t
H5B_insert(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
void *udata)
{
/*
* These are defined this way to satisfy alignment constraints.
*/
uint64_t _lt_key[128], _md_key[128], _rt_key[128];
uint8_t *lt_key=(uint8_t*)_lt_key;
uint8_t *md_key=(uint8_t*)_md_k... |
functions | herr_t
H5B_insert_child(H5B_t *bt, unsigned *bt_flags, unsigned idx,
haddr_t child, H5B_ins_t anchor, const void *md_key)
{
H5B_shared_t *shared; /* Pointer to shared B-tree info */
uint8_t *base; /* Base offset for move */
FUNC_ENTER_NOAPI_NOINIT_NOERR
HDassert(... |
functions | H5B_ins_t
H5B_insert_helper(H5F_t *f, hid_t dxpl_id, H5B_ins_ud_t *bt_ud,
const H5B_class_t *type,
uint8_t *lt_key, hbool_t *lt_key_changed,
uint8_t *md_key, void *udata,
uint8_t *rt_key, hbool_t *rt_key_changed,
H5B_ins_ud_t *split_bt_ud/*out*/)
{
H5B_t... |
functions | else if(cmp < 0 && idx == 0) {
if(bt->level > 0) {
/*
* The value being inserted is less than any value in this tree.
* Follow the minimum branch out of this node to a subtree.
*/
child_bt_ud.addr = bt->child[idx];
if(NULL == (child_bt_u... |
functions | else if(type->follow_min) {
/*
* The value being inserted is less than any leaf node out of this
* current node. Follow the minimum branch to a leaf node and let
* the subclass handle the problem.
*/
if((int)(my_ins = (type->insert)(f, dxpl_id... |
functions | else if(cmp > 0 && idx + 1 >= bt->nchildren) {
if (bt->level > 0) {
/*
* The value being inserted is larger than any value in this tree.
* Follow the maximum branch out of this node to a subtree.
*/
idx = bt->nchildren - 1;
child_bt_ud.addr... |
functions | else if(type->follow_max) {
/*
* The value being inserted is larger than any leaf node out of the
* current node. Follow the maximum branch to a leaf node and let
* the subclass handle the problem.
*/
idx = bt->nchildren - 1;
if((i... |
functions | else if(cmp) {
/*
* We couldn't figure out which branch to follow out of this node. THIS
* IS A MAJOR PROBLEM THAT NEEDS TO BE FIXED --rpm.
*/
HDassert("INTERNAL HDF5 ERROR (contact rpm)" && 0);
#ifdef NDEBUG
HDabort();
#endif /* NDEBUG */
} |
functions | else if(bt->level > 0) {
/*
* Follow a branch out of this node to another subtree.
*/
HDassert(idx < bt->nchildren);
child_bt_ud.addr = bt->child[idx];
if(NULL == (child_bt_ud.bt = (H5B_t *)H5AC_protect(f, dxpl_id, H5AC_BT, child_bt_ud.addr, &cache_udata, H5AC_WRITE)))
HGOTO_ERROR(H5E_BTREE, ... |
functions | else if(H5B_INS_LEFT == my_ins || H5B_INS_RIGHT == my_ins) {
hbool_t *tmp_bt_flags_ptr = NULL;
H5B_t *tmp_bt;
/*
* If this node is full then split it before inserting the new child.
*/
if(bt->nchildren == shared->two_k) {
if(H5B_split(f, dxpl_id, bt_ud, idx, udata, split_bt_ud/*out*/) < 0)
... |
functions | herr_t
H5B_iterate_helper(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
H5B_operator_t op, void *udata)
{
H5B_t *bt = NULL; /* Pointer to current B-tree node */
H5UC_t *rc_shared; /* Ref-counted shared info */
H5B_shared_t *shared; /* Pointer to shared B-... |
functions | herr_t
H5B_iterate(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
H5B_operator_t op, void *udata)
{
herr_t ret_value; /* Return value */
FUNC_ENTER_NOAPI_NOERR
/*
* Check arguments.
*/
HDassert(f);
HDassert(type);
HDassert(H5F_addr_defined(addr));
HDass... |
functions | H5B_ins_t
H5B_remove_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type,
int level, uint8_t *lt_key/*out*/,
hbool_t *lt_key_changed/*out*/, void *udata,
uint8_t *rt_key/*out*/, hbool_t *rt_key_changed/*out*/)
{
H5B_t *bt = NULL, *sibling = NULL;
unsigned bt_flags = H5AC__NO_FLAGS_... |
functions | else if(type->remove) {
/*
* We're at a leaf node but the leaf node points to an object that
* has a removal method. Pass the removal request to the pointed-to
* object and let it decide how to progress.
*/
if((int)(ret_value = (type->remove)(f, dxpl_id,
bt->child[idx], H5B_NKEY(bt, shared,... |
functions | else if(0 == idx) {
/*
* The subtree is the left-most child of this node. We update the
* key and child arrays and lt_key as appropriate, depending on the
* status of bt->critical_key. Return H5B_INS_NOOP.
*/
if(type->critical_key == H5B_LEFT)... |
functions | else if(idx + 1 == bt->nchildren) {
/*
* The subtree is the right-most child of this node. We update the
* key and child arrays and rt_key as appropriate, depending on the
* status of bt->critical_key. Return H5B_INS_NOOP.
*/
if(type->critical... |
functions | herr_t
H5B_remove(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void *udata)
{
/* These are defined this way to satisfy alignment constraints */
uint64_t _lt_key[128], _rt_key[128];
uint8_t *lt_key = (uint8_t*)_lt_key; /*left key*/
uint8_t *rt_key = (uint8_t*)_rt_key; /*right key*/
... |
functions | herr_t
H5B_delete(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void *udata)
{
H5B_t *bt = NULL; /* B-tree node being operated on */
H5UC_t *rc_shared; /* Ref-counted shared info */
H5B_shared_t *shared; /* Pointer to shared B-tree info */
H5B_cach... |
functions | herr_t
H5B_shared_free(void *_shared)
{
H5B_shared_t *shared = (H5B_shared_t *)_shared;
FUNC_ENTER_NOAPI_NOINIT_NOERR
/* Free the raw B-tree node buffer */
shared->page = H5FL_BLK_FREE(page, shared->page);
/* Free the B-tree native key offsets buffer */
shared->nkey = H5FL_SEQ_FREE(size_t, sh... |
functions | herr_t
H5B_get_info_helper(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
const H5B_info_ud_t *info_udata)
{
H5B_t *bt = NULL; /* Pointer to current B-tree node */
H5UC_t *rc_shared; /* Ref-counted shared info */
H5B_shared_t *shared; /* Pointer to shared B-tree... |
functions | herr_t
H5B_get_info(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
H5B_info_t *bt_info, H5B_operator_t op, void *udata)
{
H5B_info_ud_t info_udata; /* User-data for B-tree size iteration */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
/*
... |
functions | htri_t
H5B_valid(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr)
{
H5B_t *bt = NULL; /* The B-tree */
H5UC_t *rc_shared; /* Ref-counted shared info */
H5B_shared_t *shared; /* Pointer to shared B-tree info */
H5B_cache_u... |
functions | herr_t
H5B_node_dest(H5B_t *bt)
{
FUNC_ENTER_NOAPI_NOINIT_NOERR
/* check arguments */
HDassert(bt);
HDassert(bt->rc_shared);
bt->child = H5FL_SEQ_FREE(haddr_t, bt->child);
bt->native = H5FL_BLK_FREE(native_block, bt->native);
H5UC_DEC(bt->rc_shared);
bt = H5FL_FREE(H5B_t, bt);
FUN... |
defines |
#define _NET_WM_STATE_REMOVE 0l |
defines | #define _NET_WM_STATE_ADD 1l |
functions | Bool isMapNotify(Display *dpy, XEvent *ev, XPointer win)
{
return ev->type == MapNotify && ev->xmap.window == *((Window*)win);
} |
functions | Bool isUnmapNotify(Display *dpy, XEvent *ev, XPointer win)
{
return ev->type == UnmapNotify && ev->xunmap.window == *((Window*)win);
} |
functions | Bool isConfigureNotify(Display *dpy, XEvent *ev, XPointer win)
{
return ev->type == ConfigureNotify && ev->xconfigure.window == *((Window*)win);
} |
functions | SDL_bool
X11_IsWindowLegacyFullscreen(_THIS, SDL_Window * window)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
return (data->fswindow != 0);
} |
functions | SDL_bool
X11_IsWindowMapped(_THIS, SDL_Window * window)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
XWindowAttributes attr;
X11_XGetWindowAttributes(videodata->display, data->xwindow, &attr);
if (attr.map_state != I... |
functions | SDL_bool
X11_IsActionAllowed(SDL_Window *window, Atom action)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
Atom _NET_WM_ALLOWED_ACTIONS = data->videodata->_NET_WM_ALLOWED_ACTIONS;
Atom type;
Display *display = data->videodata->display;
int form;
unsigned long remain;
unsig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.