lkml.org 
[lkml]   [2021]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCHv4 1/5] media: v4l UAPI: add ROI selection targets
    Date
    UVC 1.5 requires Region Of Interest control to implement
    GET_CUR, GET_DEF, GET_MIN and GET_MAX requests. This patch
    adds new V4L2 selection API targets that will implement
    those ROI requests.

    Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
    ---
    include/uapi/linux/v4l2-common.h | 8 ++++++++
    1 file changed, 8 insertions(+)

    diff --git a/include/uapi/linux/v4l2-common.h b/include/uapi/linux/v4l2-common.h
    index 7d21c1634b4d..3651ebb8cb23 100644
    --- a/include/uapi/linux/v4l2-common.h
    +++ b/include/uapi/linux/v4l2-common.h
    @@ -78,6 +78,14 @@
    #define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102
    /* Current composing area plus all padding pixels */
    #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103
    +/* Current Region of Interest area */
    +#define V4L2_SEL_TGT_ROI 0x0200
    +/* Default Region of Interest area */
    +#define V4L2_SEL_TGT_ROI_DEFAULT 0x0201
    +/* Region of Interest minimum values */
    +#define V4L2_SEL_TGT_ROI_BOUNDS_MIN 0x0202
    +/* Region of Interest maximum values */
    +#define V4L2_SEL_TGT_ROI_BOUNDS_MAX 0x0203

    /* Selection flags */
    #define V4L2_SEL_FLAG_GE (1 << 0)
    --
    2.31.1.527.g47e6f16901-goog
    \
     
     \ /
      Last update: 2021-04-30 13:26    [W:3.903 / U:0.328 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site