I hope to use the TI 2A Library in DVSDK environment.
First of all, I succeed the capture RGB bare image. Also I convert YUV 4:2:0 and resize for encoder from the RGB image. Now I want to use TI 2A Library from the IPNC SDK package of APPRO RDK.
I find out the source code for example of TI 2A Library. I think the files are alg_aewb.c alg_aewb_control.c. and the IPNC_DM368-2.0.0 SDK include the ae_ti.c for Auto Exposure source code. But Auto White Balance is supported as binary library as “libti_awb.a”. The library have grovel variable AWB_TI_AWB for Auto White Balance analytic. But I cannot link the AWB_TI_AWB with ported source alg_aewb.c in dvsdk.
I tested the code in the directory in “dvsdk_2_10_01_18/dvsdk_demos_2_10_00_17/dm365/aewd”
Please help me !!!
I added the “-L. -lti_awb” on LD_FLAGS in Makefile
LD_FLAGS += -lpthread -lpng -ljpeg -lfreetype -lasound -L. -lti_awb
============================================================
Compiling alg_aewb.o from alg_aewb.c..
Compiling alg_aewb_control.o from alg_aewb_control.c..
alg_aewb_control.c:5: warning: ?쁸ee_table??defined but not used
Compiling awb_calc_data.o from awb_calc_data.c..
Compiling TI_aewb_tables.o from TI_aewb_tables.c..
Linking aewd from ae_ti.o alg_aewb.o alg_aewb_control.o awb_calc_data.o TI_aewb_tables.o aewd_config/linker.cmd..
alg_aewb.o: In function `ALG_aewbCreate':
/home/ykjung/dvsdk_2_10_01_18/dvsdk_demos_2_10_00_17/dm365/aewd/alg_aewb.c:490: undefined reference to `AWB_TI_AWB'
alg_aewb.o: In function `TI2AFunc':
/home/ykjung/dvsdk_2_10_01_18/dvsdk_demos_2_10_00_17/dm365/aewd/alg_aewb.c:783: undefined reference to `RGB2RGB_stab'
/home/ykjung/dvsdk_2_10_01_18/dvsdk_demos_2_10_00_17/dm365/aewd/alg_aewb.c:797: undefined reference to `AWB_TI_AWB'
alg_aewb.o: In function `ALG_aewbDelete':
/home/ykjung/dvsdk_2_10_01_18/dvsdk_demos_2_10_00_17/dm365/aewd/alg_aewb.c:964: undefined reference to `AWB_TI_AWB'
collect2: ld returned 1 exit status
make: *** [aewd] Error 1