MCUXpresso_MIMXRT1052xxxxB/boards/evkbimxrt1050/eiq_examples/mpp_camera_ultraface_view_tflm/mpp_config.h
Yilin Sun 6baf4427ce
Updated to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-18 23:15:10 +08:00

105 lines
2.8 KiB
C

/*
* Copyright 2021-2023 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _MPP_CONFIG_H
#define _MPP_CONFIG_H
/* This header configures the MPP HAL and the application according to the board model */
/*******************************************************************************
* HAL configuration (Mandatory)
******************************************************************************/
/* Set here all the static configuration of the Media Processing Pipeline HAL */
/**
* This is the evkbimxrt1050 board configuration
* Disabling HAL of unused/missing devices saves memory
*/
#define HAL_ENABLE_CAMERA
#define HAL_ENABLE_CAMERA_DEV_CsiMt9m114 1
#define HAL_ENABLE_DISPLAY
#define HAL_ENABLE_DISPLAY_DEV_LcdifRk043fn 1
#define HAL_ENABLE_2D_IMGPROC
#define HAL_ENABLE_GFX_DEV_Pxp 1
/**
* This is the inference HAL configuration
*/
/* This example uses TFlite inference engine */
#define HAL_ENABLE_INFERENCE_TFLITE 1
#define HAL_ENABLE_INFERENCE_GLOW 0
#define HAL_ENABLE_INFERENCE_DVRT 0
/* The size of Tensor Arena buffer for TensorFlowLite-Micro */
/* minimum required arena size for Ultraface is 1536 */
#define HAL_TFLM_TENSOR_ARENA_SIZE_KB 1536
/**
* This is the PXP HAL configuration
*/
/* Workaround for the PXP bug where BGR888 is output instead of RGB888 [MPP-97] */
#define HAL_PXP_WORKAROUND_OUT_RGB 1
/**
* This is the display HAL configuration
*/
/* The display max byte per pixel */
#define HAL_DISPLAY_MAX_BPP 2
/**
* This is HAL debug configuration
*/
/* Log level configuration
* ERR: 0
* INFO: 1
* DEBUG: 2
*/
#ifndef HAL_LOG_LEVEL
#define HAL_LOG_LEVEL 0
#endif
/**
* Mutex lock timeout definition
* An arbitrary default value is defined to 5 seconds
* value unit should be milliseconds
* */
#define HAL_MUTEX_TIMEOUT_MS (5000)
/*******************************************************************************
* Application configuration (Optional)
******************************************************************************/
/* Set here all the static configuration of the Application */
/* camera parameters */
/* camera params (default values) */
#define APP_CAMERA_NAME "CsiMt9m114"
#define APP_CAMERA_WIDTH 480
#define APP_CAMERA_HEIGHT 272
#define APP_CAMERA_FORMAT MPP_PIXEL_RGB565
/* display parameters */
#define APP_DISPLAY_NAME "LcdifRk043fn"
#define APP_DISPLAY_WIDTH 480
#define APP_DISPLAY_HEIGHT 272
#define APP_DISPLAY_FORMAT MPP_PIXEL_RGB565
/* other parameters */
/* no rotation is needed to display in landscape because display Rk043 is already landscape */
#define APP_DISPLAY_LANDSCAPE_ROTATE ROTATE_0
/* detection boxes params */
/* maximum number of boxes stored in RAM by APP (1box ~= 16B) */
#define APP_MAX_BOXES 10000
#endif /* _MPP_CONFIG_H */