return;
}
- if (lib_vra->post_detection_enable[instance]) {
#ifdef ENABLE_HYBRID_FD
+ if (lib_vra->post_detection_enable[instance]) {
struct fimc_is_lib_support *lib = &gPtr_lib_support;
u32 offset_region;
struct is_region *is_region;
fd_in_size->height);
spin_unlock_irqrestore(&fdae_info->slock, flags);
+ } else
#endif
- } else {
+ {
face_data->face_num = 0;
}
}
return 0;
}
-
#endif
+
static void fimc_is_lib_vra_callback_end_input(u32 instance,
u32 frame_index, unsigned char *base_address)
{
alloc_info->max_tr_res_frames = 5;
#if defined(ENABLE_HYBRID_FD)
alloc_info->max_hybrid_faces = MAX_HYBRID_FACES;
+#else
+ alloc_info->max_hybrid_faces = 0;
#endif
status = CALL_VRAOP(lib_vra, ex_get_memory_sizes,
callbacks->frw_invoke_hybrid_pr_ptr = NULL;
callbacks->frw_abort_hybrid_pr_ptr = NULL;
callbacks->sen_post_detect_ready_ptr = fimc_is_lib_vra_callback_post_detect_ready;
+#else
+ callbacks->frw_invoke_hybrid_pr_ptr = NULL;
+ callbacks->frw_abort_hybrid_pr_ptr = NULL;
+ callbacks->sen_post_detect_ready_ptr = NULL;
#endif
lib_vra->fr_work_init.hw_clock_freq_mhz = 533; /* Not used */
}
lib_vra->all_face_num[instance] = 0;
+#ifdef ENABLE_HYBRID_FD
lib_vra->pdt_all_face_num[instance] = 0;
+#endif
lib_vra->af_all_face_num[instance] = 0;
clear_bit(VRA_INST_APPLY_TUNE_SET, &lib_vra->inst_state[instance]);
for (i = 0; i < VRA_TOTAL_SENSORS; i++) {
lib_vra->all_face_num[i] = 0;
+#ifdef ENABLE_HYBRID_FD
lib_vra->pdt_all_face_num[i] = 0;
+#endif
lib_vra->af_all_face_num[i] = 0;
clear_bit(VRA_INST_APPLY_TUNE_SET, &lib_vra->inst_state[i]);
}
enum api_vra_type (*frame_work_abort)(void *fr_obj_ptr,
vra_boolean reset_tr_data_base);
enum api_vra_type (*frame_work_terminate)(void *fr_obj_ptr);
-#ifdef ENABLE_HYBRID_FD
+ /* The set_post_detect_output is added with the ENABLE_HYBRID_FD.
+ * This function was deprecated after including CNN hardware in VRA block.
+ * But, we keep this interface function for backward compatibility
+ */
enum api_vra_type (*set_post_detect_output)(void *sen_obj_ptr,
vra_boolean post_detect_output);
-#endif
#ifdef ENABLE_VRA_CHANGE_SETFILE_PARSING
int (*copy_tune_set)(void *sen_obj_ptr, vra_uint32 instance_id, struct lib_vra_tune_set *set);
int (*apply_tune_set)(void *sen_obj_ptr, vra_uint32 instance_id, vra_uint32 index);