summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2020-07-07 15:38:52 +0800
committerLiu Ying <victor.liu@nxp.com>2020-07-09 09:42:39 +0800
commitaa6fda9c4e3c3875d3c219ad79ffe688f44402bc (patch)
tree99979d8b12600a91c55b26026d5ae7ced64ff636 /include/video
parentba2b101d1f2b074edaeab489ad46d78877b29b79 (diff)
MLK-21509-4 drm/imx: dpu: crc: Add user-configurable CRC region(ROI) support
This patch adds user-configurable CRC region support. The users may choose a region of interest(ROI) as the CRC source (i.e., the CRC evaluation window) via the debugfs control node. The ROI cannot exceed the display region as indicated by drm_crtc_state->adjusted_mode. The users may write a string in the fashion of "roi:x1,y1,x2,y2" to the node to specify the ROI within the display region. The inclusive position at (x1, y1) indicates the upper left of the region, while the exclusive position at (x2, y2) indicates the lower right of the region. Signed-off-by: Liu Ying <victor.liu@nxp.com> Reviewed-by: Robby Cai <robby.cai@nxp.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/dpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/dpu.h b/include/video/dpu.h
index 07824f64298e..4115da97aab8 100644
--- a/include/video/dpu.h
+++ b/include/video/dpu.h
@@ -335,6 +335,7 @@ enum {
enum dpu_crc_source {
DPU_CRC_SRC_NONE,
DPU_CRC_SRC_FRAMEGEN,
+ DPU_CRC_SRC_FRAMEGEN_ROI,
};
struct dpu_fetchunit;