media: pisp_be: Use clamp() and define max sizes
Use the clamp() function from minmax.h and provide a define for the max sizes as they will be used in subsequent patches. Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
e9bb2eacc7
commit
aa89281bbc
@@ -21,10 +21,11 @@
|
||||
/* preferred byte alignment for outputs */
|
||||
#define PISP_BACK_END_OUTPUT_MAX_ALIGN 64u
|
||||
|
||||
/* minimum allowed tile width anywhere in the pipeline */
|
||||
#define PISP_BACK_END_MIN_TILE_WIDTH 16u
|
||||
/* minimum allowed tile width anywhere in the pipeline */
|
||||
#define PISP_BACK_END_MIN_TILE_HEIGHT 16u
|
||||
/* minimum allowed tile sizes anywhere in the pipeline */
|
||||
#define PISP_BACK_END_MIN_TILE_WIDTH 16u
|
||||
#define PISP_BACK_END_MIN_TILE_HEIGHT 16u
|
||||
#define PISP_BACK_END_MAX_TILE_WIDTH 65536u
|
||||
#define PISP_BACK_END_MAX_TILE_HEIGHT 65536u
|
||||
|
||||
#define PISP_BACK_END_NUM_OUTPUTS 2
|
||||
#define PISP_BACK_END_HOG_OUTPUT 1
|
||||
|
||||
Reference in New Issue
Block a user