summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2019-04-13 15:59:39 +0800
committerLiu Ying <victor.liu@nxp.com>2019-05-07 14:45:49 +0800
commit0ed040a467ef98187f4893183c58d5cfd0f0e2bd (patch)
treed16e339c4c5a92407bbf88e3971b50cb3fa3b755 /include/video
parenta7469b05e8e99b8845f13fec29dc282e12f13804 (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> (cherry picked from commit 1d3b253e11f0d09f9956abb587962a751cd34b5f)
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 d81bf2ba86d2..569b5538ea7b 100644
--- a/include/video/dpu.h
+++ b/include/video/dpu.h
@@ -449,6 +449,7 @@ enum {
enum dpu_crc_source {
DPU_CRC_SRC_NONE,
DPU_CRC_SRC_FRAMEGEN,
+ DPU_CRC_SRC_FRAMEGEN_ROI,
};
struct dpu_fetchunit;