94 lines
2.5 KiB
C
94 lines
2.5 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
|
|
*/
|
|
#define HAL_ENABLE_INFERENCE_TFLITE 0
|
|
#define HAL_ENABLE_INFERENCE_GLOW 0
|
|
#define HAL_ENABLE_INFERENCE_DVRT 0
|
|
|
|
/**
|
|
* 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
|
|
|
|
#endif /* _MPP_CONFIG_H */
|