Android源码之单双摄像头修改==展讯

2024-01-07 19:38

本文主要是介绍Android源码之单双摄像头修改==展讯,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

客制化需求中经常有要改成单摄像或者又要改回双摄像的。这篇博客总结一下关于单双摄像头的修改。关于单双摄像头需要修改下面三个地方: 
<一>

device\sprd\scx35\sp7731g_1h10\BoardConfig.mk 源码如下
  • 1
#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## secure boot
BOARD_SECURE_BOOT_ENABLE := false
SECURE_BOOT_SIGNAL_KEY := false
include $(PLATCOMM)/BoardConfigCommon.mk
include $(PLATCOMM)/emmc/BoardConfigEmmc.mk# board configs
TARGET_BOOTLOADER_BOARD_NAME := sp7731gea_hdr# select camera 2M,3M,5M,8M
CAMERA_SUPPORT_SIZE := 5M
FRONT_CAMERA_SUPPORT_SIZE := 0P3M
TARGET_BOARD_NO_FRONT_SENSOR := false
TARGET_BOARD_CAMERA_FLASH_CTRL := falseCAMERA_PHYSICAL_SIZE := 1_3inch
FRONT_CAMERA_PHYSICAL_SIZE := 1_5inch
# camera sensor type
CAMERA_SENSOR_TYPE_BACK := "ov8825_mipi_raw"
CAMERA_SENSOR_TYPE_FRONT := "GC2155_MIPI_yuv"
AT_CAMERA_SENSOR_TYPE_BACK := "autotest_ov8825_mipi_raw"
AT_CAMERA_SENSOR_TYPE_FRONT := "autotest_GC2155_MIPI_yuv"
#face detect
TARGET_BOARD_CAMERA_FACE_DETECT := true
TARGET_BOARD_CAMERA_FD_LIB := omron#hdr capture
TARGET_BOARD_CAMERA_HDR_CAPTURE := true#full screen display
TARGET_BOARD_CAMERA_FULL_SCREEN_DISPLAY := true#uv denoise
TARGET_BOARD_CAMERA_UV_DENOISE := true#capture mem
TARGET_BOARD_LOW_CAPTURE_MEM := true#snesor interface
TARGET_BOARD_BACK_CAMERA_INTERFACE := mipi
TARGET_BOARD_FRONT_CAMERA_INTERFACE := mipi#select camera zsl cap mode
TARGET_BOARD_CAMERA_CAPTURE_MODE := false#sprd zsl feature
TARGET_BOARD_CAMERA_SPRD_PRIVATE_ZSL := true#rotation capture
TARGET_BOARD_CAMERA_ROTATION_CAPTURE := true
ifeq ($(strip $(ZEDIEL_PROJECT_CONFIG)), $(filter $(ZEDIEL_PROJECT_CONFIG), ZEDIEL_SI706AKA ZEDIEL_SI706ASB))
TARGET_BOARD_BACK_CAMERA_ROTATION := true
TARGET_BOARD_FRONT_CAMERA_ROTATION := true
endif
#rm zoom from 1080p recording
TARGET_BOARD_DISABLE_1080P_RECORDING_ZOOM := true#select continuous auto focus
TARGET_BOARD_CAMERA_CAF := true#select no camera flash
#TARGET_BOARD_CAMERA_NO_FLASH_DEV := true#image angle in different project
#TARGET_BOARD_CAMERA_ADAPTER_IMAGE := 180#pre_allocate capture memory
TARGET_BOARD_CAMERA_PRE_ALLOC_CAPTURE_MEM := false
#sc8830g isp ver 0;sc9630 isp ver 1
TARGET_BOARD_CAMERA_ISP_SOFTWARE_VERSION := 0#select mipi d-phy mode(none, phya, phyb, phyab)
TARGET_BOARD_FRONT_CAMERA_MIPI := phyb
TARGET_BOARD_BACK_CAMERA_MIPI := phya#select ccir pclk src(source0, source1)
TARGET_BOARD_FRONT_CAMERA_CCIR_PCLK := source0
TARGET_BOARD_BACK_CAMERA_CCIR_PCLK := source0# select WCN
BOARD_HAVE_BLUETOOTH := true
ifeq ($(strip $(USE_SPRD_WCN)),true)
BOARD_SPRD_WCNBT_SR2351 := true
BOARD_HAVE_FM_TROUT := true
BOARD_USE_SPRD_FMAPP := true
endif#2351 GPS
BOARD_USE_SPRD_4IN1_GPS := true# WIFI configs
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION      := VER_2_1_DEVEL
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_sprdwl
BOARD_HOSTAPD_DRIVER        := NL80211
BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_sprdwl
BOARD_WLAN_DEVICE           := sc2351
WIFI_DRIVER_FW_PATH_PARAM   := "/data/misc/wifi/fwpath"
WIFI_DRIVER_FW_PATH_STA     := "sta_mode"
WIFI_DRIVER_FW_PATH_P2P     := "p2p_mode"
WIFI_DRIVER_FW_PATH_AP      := "ap_mode"
WIFI_DRIVER_MODULE_PATH     := "/system/lib/modules/sprdwl.ko"
WIFI_DRIVER_MODULE_NAME     := "sprdwl"# select sensor
#USE_INVENSENSE_LIB := true
USE_SPRD_SENSOR_LIB := true
# BOARD_HAVE_ACC := mxc622x
# BOARD_HAVE_ACC := mc3xxx
# BOARD_HAVE_ACC := stk8baxx
BOARD_HAVE_ACC := compatible
BOARD_ACC_INSTALL := 6
BOARD_HAVE_ORI := NULL
BOARD_ORI_INSTALL := NULL
# BOARD_HAVE_PLS := stk3x1x
BOARD_HAVE_PLS := gsl1680
#BOARD_HAVE_PLS := NULL# ext4 partition layout
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_CACHEIMAGE_PARTITION_SIZE := 150000000
BOARD_PRODNVIMAGE_PARTITION_SIZE := 5242880
BOARD_SYSINFOIMAGE_PARTITION_SIZE := 5242880
BOARD_PERSISTIMAGE_PARTITION_SIZE := 2097152
BOARD_FLASH_BLOCK_SIZE := 4096
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_PRODNVIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSINFOIMAGE_FILE_SYSTEM_TYPE := ext4TARGET_SYSTEMIMAGES_SPARSE_EXT_DISABLED := true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
TARGET_CACHEIMAGES_SPARSE_EXT_DISABLED := false
TARGET_PRODNVIMAGES_SPARSE_EXT_DISABLED := true
TARGET_SYSINFOIMAGES_SPARSE_EXT_DISABLED := truePRODUCT_COPY_FILES += $(BOARDDIR)/SC7730_UMS.xml:$(PRODUCT_OUT)/SC7730_UMS.xmlTARGET_GPU_USE_TILE_ALIGN := true
DEVICE_GSP_NOT_SCALING_UP_TWICE := true#TARGET_USES_LOGD := false# powerhint HAL config
# sprdemand, interhotplug, interpowerdown
BOARD_POWERHINT_HAL := sprdemand
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162

在这个文件中第一点:

TARGET_BOARD_NO_FRONT_SENSOR := false
如果为false代表机器有双摄像头,如果为true代表只有后置摄像头没有前置摄像头。
  • 1
  • 2
#select mipi d-phy mode(none, phya, phyb, phyab)
TARGET_BOARD_FRONT_CAMERA_MIPI := phyb
TARGET_BOARD_BACK_CAMERA_MIPI := phya
这里面对应的是前后摄像头处理的寄存器。双摄像头情况下前摄FRONT对应得是phyb,后摄BACK对应的是phya,如果要改成单摄像头,单后摄的话不用做修改,单前摄的话把前摄的处理屏蔽,后摄改成phyb。这里面要解释下硬件上处理单摄像头都是用后摄摄像头的配置。
  • 1
  • 2
  • 3
  • 4

<三>

kernel\arch\arm\boot\dts\sprd-scx35_sp7731gea_hdr.dts
文件中 gpio角如下sprd_sensor {compatible  = "sprd,sprd_sensor";reg = <0x60c00000 0x1000>;gpios = <&d_gpio_gpio 186 0    /* 0: main reset*/&d_gpio_gpio 188 0    /* 1: main powerdown*/前摄&d_gpio_gpio 186 0    /* 2:sub reset*/&d_gpio_gpio 187 0    /* 3:sub powerdown*/后摄&d_gpio_gpio 0 0     /* 4:main core voltage*/
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

如果是双摄像头的话就是上面这种配置,如果是单摄的话将后摄和前摄的gpio角对换,

sprd_sensor {compatible  = "sprd,sprd_sensor";reg = <0x60c00000 0x1000>;gpios = <&d_gpio_gpio 186 0    /* 0: main reset*/&d_gpio_gpio 187 0    /* 1: main powerdown*/前摄&d_gpio_gpio 186 0    /* 2:sub reset*/&d_gpio_gpio 188 0    /* 3:sub powerdown*/后摄&d_gpio_gpio 0 0     /* 4:main core voltage*/
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

以上是单双摄像头需要修改的地方。另外需要在

vendor\sprd\modules\libcamera\oem\src\sensor_cfg.c
  • 1
const SENSOR_MATCH_T main_sensor_infor_tab[]=
{
#ifdef CONFIG_BACK_CAMERA_MIPI
#if defined(CONFIG_CAMERA_ISP_VERSION_V3) || defined(CONFIG_CAMERA_ISP_VERSION_V4)
//{"s5k3l2xx_mipi", &g_s5k3l2xx_mipi_raw_info},{"s5k4h5yc_mipi", &g_s5k4h5yc_mipi_raw_info},{"s5k4h5yc_mipi", &g_s5k4h5yc_jsl_mipi_raw_info},{"ov8825_mipi_raw", &g_ov8825_mipi_raw_info},{"hi544_mipi_raw", &g_hi544_mipi_raw_info},{"ov5640_mipi_yuv", &g_ov5640_mipi_yuv_info},{"ov5640_mipi_raw", &g_ov5640_mipi_raw_info},{"ov5670_mipi_raw", &g_ov5670_mipi_raw_info},{"ov13850_mipi_raw", &g_ov13850_mipi_raw_info},{"ov8858_mipi_raw", &g_ov8858_mipi_raw_info},
#else#if 1//  {"sp2508_mipi",&g_sp2508_mipi_raw_info},//      {"gc2755_mipi",&g_gc2755_mipi_raw_info},//    {"sp2529_mipi",&g_SP2529_MIPI_yuv_info},
//      {"gc5004_mipi",&g_gc5004_mipi_raw_info},//  {"gc2145_mipi",&g_GC2145_MIPI_yuv_info},{"gc2145_back_mipi",&g_GC2145_BACK_MIPI_yuv_info},{"gc2355_mipi",&g_gc2355_mipi_raw_info},{"sp2509_back_mipi",&g_sp2509_back_mipi_raw_info},{"gc2365_back_mipi", &g_gc2365_back_mipi_raw_info},{"gc0310_mipi",&g_GC0310_BACK_MIPI_yuv_info},{"gc030a_back_mipi", &g_gc030a_back_mipi_raw_info},{"sp0a09_back_mipi",&g_sp0a09_back_mipi_raw_info},{"gc5024_mipi",&g_gc5024_mipi_raw_info},{"gc5005_mipi",&g_gc5005_mipi_raw_info},{"ov5675_mipi_raw",&g_ov5675_mipi_raw_info},//{"gc5024_mipi",&g_gc5024_mipi_raw_info},      //  {"sp5408_mipi",&g_sp5408_raw_info},//  {"sp5409_mipi",&g_sp5409_mipi_raw_info},//  {"ov5645_mipi",&g_ov5645_mipi_yuv_info},//    {"bf3a20_mipi",&g_BF3A20_mipi_yuv_info},#else{"ov8825_mipi_raw", &g_ov8825_mipi_raw_info},{"hi544_mipi_raw", &g_hi544_mipi_raw_info},{"ov5640_mipi_yuv", &g_ov5640_mipi_yuv_info},{"ov5648_mipi_raw", &g_ov5648_mipi_raw_info},{"ov2680_mipi_raw", &g_ov2680_mipi_raw_info},{"sr352_mipi_yuv", &g_sr352_mipi_yuv_info},{"imx219_mipi_raw", &g_imx219_mipi_raw_info},{"s5k4ec_mipi_yuv", &g_s5k4ec_mipi_yuv_info},//{"ov8830_mipi_raw", &g_ov8830_mipi_raw_info},{"imx179_mipi_raw", &g_imx179_mipi_raw_info},{"ov8865_mipi_raw", &g_ov8865_mipi_raw_info},{"ov13850_mipi_raw", &g_ov13850_mipi_raw_info},//{"s5k5ccgx_yuv_info", &g_s5k5ccgx_yuv_info_mipi},//{"s5k4e1ga_mipi_raw", &g_s5k4e1ga_mipi_raw_info},//{"hi351_mipi_yuv", &g_hi351_mipi_yuv_info},//{"ov5640_mipi_raw", &g_ov5640_mipi_raw_info},//{"ov5647_mipi_raw_info", &g_ov5647_mipi_raw_info},{"ov5670_mipi_raw", &g_ov5670_mipi_raw_info},//{"SP2529_MIPI_yuv", &g_SP2529_MIPI_yuv_info},#endif
#endif
#endif
#ifdef CONFIG_BACK_CAMERA_CCIR{"ov5640_yuv", &g_ov5640_yuv_info},{"hi253_yuv", &g_hi253_yuv_info},{"ov5640_yuv", &g_ov5640_yuv_info},{"hi253_yuv_info", &g_hi253_yuv_info},{"GT2005_yuv", &g_GT2005_yuv_info},{"s5k4ec_yuv", &g_s5k4ec_yuv_info},{"sr352_yuv", &g_sr352_yuv_info},//{"ov7675_yuv", &g_OV7675_yuv_info},//{"ov2655_yuv", &g_OV2655_yuv_info},//{"ov7675_yuv", &g_OV7675_yuv_info},//{"ov2640_yuv", &g_OV2640_yuv_info},{"HM2058_yuv", &g_HM2058_yuv_info},
#endif{"", NULL},
};const SENSOR_MATCH_T sub_sensor_infor_tab[]=
{
#ifdef CONFIG_FRONT_CAMERA_CCIR{"GC2155_yuv", &g_GC2155_yuv_info},{"hi253_yuv", &g_hi253_yuv_info},{"GC0308_yuv", &g_GC0308_yuv_info},{"GC2035_yuv", &g_GC2035_yuv_info},{"HI702_yuv", &g_HI702_yuv_info},{"ov7675_yuv", &g_OV7675_yuv_info},//{"GC0309_yuv", &g_GC0309_yuv_info},//{"OV7690_yuv", g_OV7690_yuv_info},
#endif#ifdef CONFIG_FRONT_CAMERA_MIPI
#if (defined(CONFIG_CAMERA_ISP_VERSION_V3) || defined(CONFIG_CAMERA_ISP_VERSION_V4)){"s5k5e3yx_mipi", &g_s5k5e3yx_mipi_raw_info},{"ov5648_mipi_raw", &g_ov5648_mipi_raw_info},{"ov2680_mipi_raw", &g_ov2680_mipi_raw_info},
#endif  {"sp2509_mipi",&g_sp2509_mipi_raw_info},{"sp0a08_mipi",&g_sp0a08_mipi_raw_info},{"sp0a09_mipi",&g_sp0a09_mipi_raw_info},//{"hi255_yuv", &g_hi255_yuv_info},
//  {"GC2155_MIPI_yuv", &g_GC2155_MIPI_yuv_info},{"GC0310_MIPI_yuv", &g_GC0310_MIPI_yuv_info},{"gc030a_mipi", &g_gc030a_mipi_raw_info},{"gc2145_mipi",&g_GC2145_MIPI_yuv_info},{"gc2365_mipi", &g_gc2365_mipi_raw_info},
#if !(defined(CONFIG_CAMERA_ISP_VERSION_V3) || defined(CONFIG_CAMERA_ISP_VERSION_V4)){"GC0310_MIPI_yuv", &g_GC0310_MIPI_yuv_info},{"sr030pc50_yuv", &g_sr030pc50_yuv_info},
#endif
#endif{"", NULL},
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113

在这里面注意要有你对应的前后摄像头的驱动文件的引用,如果上面几点都OK了就能正确的修改陈单双摄像头。

这篇关于Android源码之单双摄像头修改==展讯的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/581031

相关文章

JAVA智听未来一站式有声阅读平台听书系统小程序源码

智听未来,一站式有声阅读平台听书系统 🌟&nbsp;开篇:遇见未来,从“智听”开始 在这个快节奏的时代,你是否渴望在忙碌的间隙,找到一片属于自己的宁静角落?是否梦想着能随时随地,沉浸在知识的海洋,或是故事的奇幻世界里?今天,就让我带你一起探索“智听未来”——这一站式有声阅读平台听书系统,它正悄悄改变着我们的阅读方式,让未来触手可及! 📚&nbsp;第一站:海量资源,应有尽有 走进“智听

Android实现任意版本设置默认的锁屏壁纸和桌面壁纸(两张壁纸可不一致)

客户有些需求需要设置默认壁纸和锁屏壁纸  在默认情况下 这两个壁纸是相同的  如果需要默认的锁屏壁纸和桌面壁纸不一样 需要额外修改 Android13实现 替换默认桌面壁纸: 将图片文件替换frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.*  (注意不能是bmp格式) 替换默认锁屏壁纸: 将图片资源放入vendo

Android平台播放RTSP流的几种方案探究(VLC VS ExoPlayer VS SmartPlayer)

技术背景 好多开发者需要遴选Android平台RTSP直播播放器的时候,不知道如何选的好,本文针对常用的方案,做个大概的说明: 1. 使用VLC for Android VLC Media Player(VLC多媒体播放器),最初命名为VideoLAN客户端,是VideoLAN品牌产品,是VideoLAN计划的多媒体播放器。它支持众多音频与视频解码器及文件格式,并支持DVD影音光盘,VCD影

Java ArrayList扩容机制 (源码解读)

结论:初始长度为10,若所需长度小于1.5倍原长度,则按照1.5倍扩容。若不够用则按照所需长度扩容。 一. 明确类内部重要变量含义         1:数组默认长度         2:这是一个共享的空数组实例,用于明确创建长度为0时的ArrayList ,比如通过 new ArrayList<>(0),ArrayList 内部的数组 elementData 会指向这个 EMPTY_EL

如何在Visual Studio中调试.NET源码

今天偶然在看别人代码时,发现在他的代码里使用了Any判断List<T>是否为空。 我一般的做法是先判断是否为null,再判断Count。 看了一下Count的源码如下: 1 [__DynamicallyInvokable]2 public int Count3 {4 [__DynamicallyInvokable]5 get

工厂ERP管理系统实现源码(JAVA)

工厂进销存管理系统是一个集采购管理、仓库管理、生产管理和销售管理于一体的综合解决方案。该系统旨在帮助企业优化流程、提高效率、降低成本,并实时掌握各环节的运营状况。 在采购管理方面,系统能够处理采购订单、供应商管理和采购入库等流程,确保采购过程的透明和高效。仓库管理方面,实现库存的精准管理,包括入库、出库、盘点等操作,确保库存数据的准确性和实时性。 生产管理模块则涵盖了生产计划制定、物料需求计划、

android-opencv-jni

//------------------start opencv--------------------@Override public void onResume(){ super.onResume(); //通过OpenCV引擎服务加载并初始化OpenCV类库,所谓OpenCV引擎服务即是 //OpenCV_2.4.3.2_Manager_2.4_*.apk程序包,存

从状态管理到性能优化:全面解析 Android Compose

文章目录 引言一、Android Compose基本概念1.1 什么是Android Compose?1.2 Compose的优势1.3 如何在项目中使用Compose 二、Compose中的状态管理2.1 状态管理的重要性2.2 Compose中的状态和数据流2.3 使用State和MutableState处理状态2.4 通过ViewModel进行状态管理 三、Compose中的列表和滚动

Spring 源码解读:自定义实现Bean定义的注册与解析

引言 在Spring框架中,Bean的注册与解析是整个依赖注入流程的核心步骤。通过Bean定义,Spring容器知道如何创建、配置和管理每个Bean实例。本篇文章将通过实现一个简化版的Bean定义注册与解析机制,帮助你理解Spring框架背后的设计逻辑。我们还将对比Spring中的BeanDefinition和BeanDefinitionRegistry,以全面掌握Bean注册和解析的核心原理。

两个月冲刺软考——访问位与修改位的题型(淘汰哪一页);内聚的类型;关于码制的知识点;地址映射的相关内容

1.访问位与修改位的题型(淘汰哪一页) 访问位:为1时表示在内存期间被访问过,为0时表示未被访问;修改位:为1时表示该页面自从被装入内存后被修改过,为0时表示未修改过。 置换页面时,最先置换访问位和修改位为00的,其次是01(没被访问但被修改过)的,之后是10(被访问了但没被修改过),最后是11。 2.内聚的类型 功能内聚:完成一个单一功能,各个部分协同工作,缺一不可。 顺序内聚: