1. 程式人生 > >Camera persist使用手冊 之 module部分(一)

Camera persist使用手冊 之 module部分(一)

1. SENSOR模組

1) persist.camera.sensor.gain

數值:非負數

功能:手動設定real gain到sensor。

注意:該屬性在巨集ENABLE_MANUAL_EXPOSURE_UPDATE被使能的前提下生效。

示例:adb shell setprop persist.camera.sensor.gain 1

2) persist.camera.sensor.linecount

數值:非負數

功能:手動設定line count到sensor。

注意:該屬性在巨集ENABLE_MANUAL_EXPOSURE_UPDATE被使能的前提下生效。

示例:adb shell setprop persist.camera.sensor.linecount 1024

3) persist.dual.gain_tune

數值:非負數

功能:手動設定雙攝像頭gain factor。 

注意:該屬性在雙攝像頭使用場景中生效。

4) persist.dual.line_tune

數值:非負數

功能:手動設定雙攝像頭line count factor。

注意:該屬性在雙攝像頭使用場景中生效。

5) persist.camera.fastaec

數值:非負整數

功能:fast aec模式下,手動設定frame skip數目。

示例:adb shell setprop persist.camera.fastaec 2

6) persist.camera.iso100

數值:

非負數

功能:手動設定iso100的gain數值。

示例:adb shell setprop persist.camera.iso100 1

7) persist.camera.csid.payload

數值:0或4

功能:test模式下,將csid設定為0或4模式,以便產生相應的測試pattern。

示例:adb shell setprop persist.camera.csid.payload 4

8) persist.camera.sensorliveconnect

數值:0或1

功能:設定為1,則在程式碼中開啟sensor live connect執行緒,方便除錯工具實時控制AF。

示例:adb shell setprop persist.camera.sensorliveconnect 1

9) persist.partial.skip

數值:0或1

功能:設定為1,則使能閃光燈下的frame skip模式。

示例:adb shell setprop persist.partial.skip 1

10) persist.camera.led.rerdbg

數值:0或1

功能:開啟閃光燈去紅眼功能後,若將該屬性設定為1,則會列印預閃電流、持續時間、脈衝數目等除錯資訊。

示例:adb shell setprop persist.camera.led.rerdbg 1

11) persist.camera.cal.af

數值:0或1

功能:如果設定為0,則不載入eeprom中af校準資料。

示例:adb shell setprop persist.camera.cal.af 1

12) persist.camera.cal.awb

數值:0或1

功能:如果設定為0,則不載入eeprom中awb校準資料。

示例:adb shell setprop persist.camera.cal.awb 1

13) persist.camera.cal.lsc

數值:0或1

功能:如果設定為0,則不載入eeprom中lsc校準資料。

示例:adb shell setprop persist.camera.cal.lsc 1

14) persist.camera.cal.dp

數值:0或1

功能:如果設定為0,則不載入eeprom中dp校準資料。

示例:adb shell setprop persist.camera.cal.dp 1

15) persist.camera.cal.dual

數值:0或1

功能:如果設定為0,則不做dual camera校準。

示例:adb shell setprop persist.camera.cal.dual 1

16) persist.camera.dumpmetadata

數值:0或1

功能:若設定為1,則將sensor中的meta資料傳送到MCT BUS,然後通過mct_stream_fill_metadata_v1介面將資訊傳遞給HAL。

注意:該屬性需要配合HAL/PPROC中同名屬性進行使用,此處僅僅是HAL/PPROC中同名屬性生效的前提。

示例:adb shell setprop persist.camera.dumpmetadata 1

2. IFACE2模組

1) persist.camera.isp.testgen

數值:0或1

功能:若設定為1,折預覽將呈現七彩條紋影象。

示例:adb shell setprop persist.camera.isp.testgen 1

2) persist.camera.isp.dump

數值:需要dump的stream type所對應的enum數值。

功能:使能後,會根據設定的stream type去dump相應的幀資料。路徑:/data/misc/camera/

示例:adb shell setprop persist.camera.isp.dump 2

3) persist.camera.isp.dump_cnt

數值:非負整數

功能:該屬性定義persist.camera.isp.dump需要dump的幀數。

示例:adb shell setprop persist.camera.isp.dump_cnt 10

4) persist.camera.isp.ppbypass

數值:0或1

功能:使能該屬性後,isp不再自己申請native buffer,而是使用從HAL map過來的buffer,並且buffer將不做pproc處理。

注意:生效前提是HAL已經申請過足夠數量的buffer。

示例:adb shell setprop persist.camera.isp.ppbypass 1

5) persist.camera.isp.buf_cnt

數值:非零正整數

功能:stream on後,會request image buffer,有兩種方式,一是map HAL的buffer,二是自己在本地申請native buffer。如果選擇方式二,則該屬性將定義native buffer的數量。

注意:生效前提是ISP自己在本地申請native buffer。

示例:adb shell setprop persist.camera.isp.buf_cnt 4

6) persist.camera.hvx_lib_1

數值:external chromatix lib名稱

功能:手動指定載入的後置external chromatix lib。

注意:生效前提是tuning沒有設定external chromatix的name。

示例:adb shell setprop persist.camera.hvx_lib_1 libchromatix_xxx.so

7) persist.camera.hvx_lib_2

數值:external chromatix lib名稱

功能:手動指定載入的前置external chromatix lib。

注意:生效前提是tuning沒有設定external chromatix的name。

示例:adb shell setprop persist.camera.hvx_lib_2 libchromatix_xxx.so

3. ISP2模組

1) persist.camera.isp.turbo

數值:0或1

功能:若設定為1,則將turbo clk設定為ISP預設工作clk。

注意:設定完成後,需要重啟手機才會生效。

示例:adb shell setprop persist.camera.isp.turbo 1

2) persist.camera.isp.dualisp

數值:0或1

功能:若設定為1,將強制使用兩個VFE工作。若設定為0,則將根據預設clk與user請求clk的大小關係來決定使用VFE數量。

注意:若channel中有raw stream存在,該屬性將失效。

示例:adb shell setprop persist.camera.isp.dualisp 1

3) persist.camera.dumpmetadata

數值:0或1

功能:若設定為1,將分配meta dump的資源。同時,將列印mesh_roll、tintless_algo等sub isp module中的除錯資訊或在/data/misc/camera/路徑下生成相關除錯資訊檔案。

注意:該屬性需要配合HAL/PPROC中同名屬性進行使用,此處僅僅是HAL/PPROC中同名屬性生效的前提。

示例:adb shell setprop persist.camera.dumpmetadata 1

4) persist.camera.tintless.skip

數值:非負整數

功能:設定tintless所需要skip的frame數目,預設是skip 2幀。

示例:adb shell setprop persist.camera.tintless.skip 2

5) persist.camera.isp.regdump

數值:非負整數

功能:isp online process時,根據設定的數值去dump相應幀數的register資訊。

示例:adb shell setprop persist.camera.isp.regdump 30

6) persist.camera.isp.offregdump

數值:非負整數

功能:isp offline process時,根據設定的數值去dump相應幀數的register資訊。

示例:adb shell setprop persist.camera.isp.offregdump 30

7) persist.camera.isp.cac_disable

數值:0或1

功能:手動開/關CAC功能。

示例:adb shell setprop persist.camera.isp.cac_disable 1

8) persist.camera.isp.ltm_disable

數值:0或1

功能:手動開/關LTM功能。

示例:adb shell setprop persist.camera.isp.ltm_disable 1

9) persist.camera.ltm.overlap

數值:0-50

功能:手動定義cell overlap factor的大小。

示例:adb shell setprop persist.camera.isp.ltm_disable 10

4. STATS模組

1) persist.camera.ledcalib.enabled

數值:0或1

功能:手動開/關雙色溫LED校準功能。

示例:adb shell setprop persist.camera.ledcalib.enabled 1

2) persist.camera.mobicat

數值:0或1

功能:手動開/關mobicat。

示例:adb shell setprop persist.camera.mobicat 1

5. PPROC-NEW模組

1) persist.enable.max.pending.buf

數值:1或2

功能:定義cpp硬體一次操作所處理的buffer數量。

示例adb shell setprop persist.enable.max.pending.buf 1

2) persist.camera.c2d.disable

數值:0或1

功能手動開/關C2D。

示例adb shell setprop persist.camera.c2d.disable 1

3) persist.camera.tnr.force_enable

數值:0或1

功能:手動開/關TNR。

示例adb shell setprop persist.camera.tnr.force_enable 1

4) persist.camera.enable_vpu

數值:0或1

功能:手動開/關VPU。

示例adb shell setprop persist.camera.enable_vpu 1

5) persist.camera.dumpmetadata

數值:0或1

功能:使能後,將dump PPROC的Metadata到/data/misc/camera/路徑下。

示例adb shell setprop persist.camera.dumpmetadata 1


6. IMGLIB模組

1) persist.camera.imglib.hdr.dump

數值:no/in/out/in out

功能:設定為no,關閉HDR dump功能;設定為in,將dump輸入幀;設定為out,將dump輸出幀;設定為in out,將同時dump輸入與輸出幀。

示例adb shell setprop persist.camera.imglib.hdr.dump in

2) persist.camera.imglib.cac.dump

數值:no/in/out/inout

功能:設定為no,關閉CAC dump功能;設定為in,將dump輸入幀;設定為out,將dump輸出幀;設定為in out,將同時dump輸入與輸出幀。

示例adb shell setprop persist.camera.imglib.cac.dump no

3) persist.camera.mobicat

數值:0與非0

功能:設定為0,關閉這個功能;設定為其他值,將在返回給HAL的meta資訊中新增mobicat相關的除錯資訊。

注意:該屬性需要配合HAL中的同名屬性使用。

示例adb shell setprop persist.camera.mobicat 0

4) persist.camera.imglib.cf.ver

數值:chroma flash 庫的版本號

功能返回使用的chroma flash 庫版本號給chroma flash初始化提供版本資訊。

注意該屬性一般有系統設定,此處僅做讀取操作。

示例adb shell getprop persist.camera.imglib.cf.ver

5) persist.imglib.cf.tune

數值:0或1

功能:“手動設定chroma flash引數”的總開關,使能後,才能通過其他屬性手動修改相應引數。

示例adb shell setprop persist.imglib.cf.tune 1

6) persist.imglib.cf.deghost

數值:0或1

功能手動開/關deghost功能。

注意該屬性在persist.imglib.cf.tune被使能後才能生效。

示例adb shell setprop persist.imglib.cf.deghost 1

7) persist.imglib.cf.flash_weight

數值:1-15

功能:手動設定chroma flash 亮度等級。

注意:該屬性在persist.imglib.cf.tune被使能後才能生效。

示例adb shell setprop persist.imglib.cf.flash_weight 1

8) persist.camera.imglib.dump

數值:0或1

功能imglib模組frame dump總開關。

示例adb shell setprop persist.camera.imglib.dump 1

9) persist.camera.fd.dump

數值:0-4

功能:設定為0,將關閉face frame dump功能;設定為1,將dump non-tracked faces幀資料;設定為2,將dump tracked faces幀資料;設定為3,將dump non-detected faces幀資料;設定為4,將dump所有的幀資料。

注意:該屬性只有在persist.camera.imglib.dump為1的前提下才能生效。

示例adb shell setprop persist.camera.fd.dump 1

10) persist.camera.imglib.face_sw

數值:0或1

功能:手動開/關軟體輔助人臉識別功能。

示例:adb shell setprop persist.camera.imglib.face_sw 1

11) persist.camera.imglib.face_all

數值:0或1

功能:手動開/關全形度搜尋人臉功能。使能該功能後,在識別人臉時,將不考慮手機的方向。

示例:adb shell setprop persist.camera.imglib.face_all 1

12) persist.camera.fd_region_filter

數值:0或1

功能使能後,將根據region來執行相應的濾波設定。相應region引數,由chromatix載入進來。

示例:adb shell setprop persist.camera.fd_region_filter 1

13) persist.camera.imglib.bsgc

數值:0或1

功能:設定為1,將Enable blink, smile, gaze, contour detection。

示例:adb shell setprop persist.camera.imglib.bsgc 1

14) persist.camera.imglib.fd_arm

數值:0或1

功能:設定為0,將優先申請HW FD資源。設定為1,將不優先使用HW FD資源,將會優先去申請DSP FD資源。

示例:adb shell setprop persist.camera.imglib.fd_arm 1

15) persist.camera.imglib.tp.mask

數值:0或1

功能:在TruePortrait模式下,設定為1,將使能bodymask。

示例:adb shell setprop persist.camera.imglib.tp.mask 1

16) persist.camera.imglib.tp.effect

數值:0-2

功能:在TruePortrait模式下,手動設定effect,0代表boke effect,1代表halo effect,2代表notion blur effect。

示例:adb shell setprop persist.camera.imglib.tp.effect 1

17) persist.camera.imglib.tp.power

數值:正整數

功能:在TruePortrait模式下,手動設定effect的強度,數值越大,強度越大。

示例:adb shell setprop persist.camera.imglib.tp.power 1

18) persist.camera.imglib.fddsp

數值:0或1

功能:設定為1,將強制使用FD DSP資源。

示例:adb shell setprop persist.camera.imglib.fddsp 1

19) persist.camera.imglib.cds

數值:0-5

功能:手動選擇CDS的執行模式:C、NEON、NENO_ASM、DSP、GPU、FCV。

示例:adb shell setprop persist.camera.imglib.cds 1

20) persist.camera.dumpmetadata

數值:0或1

功能:使能後,將meta中填充CAC相關除錯資訊。並且,可以dump WNR相關引數到/data/misc/camera/路徑下

示例:adb shell setprop persist.camera.dumpmetadata 1

7. MCT模組

1) persist.camera.max_prev.enable

數值:0或1

功能:使能後,將使用符合條件的最大尺寸來做preview。

示例:adb shell setprop persist.camera.max_prev.enable 1

2) persist.camera.max.snapshot

數值:0或1

功能:使能後,將使用符合條件的最大尺寸來做sanpshot。

示例:adb shell setprop persist.camera.max.snapshot 1

8. MM-STILL模組

1) persist.camera.max_prev.enable persist.camera.jpeg.dumpqtable

數值:0或1

功能:開啟後,將列印jpeg的quality table除錯資訊。

示例:adb shell setprop persist.camera.jpeg.dumpqtable 1

2) persist.camera.kpi.debug

數值:1或2

功能:設定KPI除錯資訊的級別,設定為1表示KPI_APT,設定為2表示KPI_DBG級別。

示例:adb shell setprop persist.camera.kpi.debug 1

《未完待續》