Home
last modified time | relevance | path

Searched refs:selection_arg (Results 1 – 2 of 2) sorted by relevance

/external/v4l2_codec2/components/
DV4L2Encoder.cpp512 struct v4l2_selection selection_arg; in configureInputFormat() local
513 memset(&selection_arg, 0, sizeof(selection_arg)); in configureInputFormat()
514 selection_arg.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in configureInputFormat()
515 selection_arg.target = V4L2_SEL_TGT_CROP; in configureInputFormat()
516 selection_arg.r = rect; in configureInputFormat()
517 if (mDevice->ioctl(VIDIOC_S_SELECTION, &selection_arg) == 0) { in configureInputFormat()
518 visibleRectangle = Rect(selection_arg.r.left, selection_arg.r.top, in configureInputFormat()
519 selection_arg.r.left + selection_arg.r.width, in configureInputFormat()
520 selection_arg.r.top + selection_arg.r.height); in configureInputFormat()
DV4L2Decoder.cpp681 struct v4l2_selection selection_arg; in getVisibleRect() local
682 memset(&selection_arg, 0, sizeof(selection_arg)); in getVisibleRect()
683 selection_arg.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in getVisibleRect()
684 selection_arg.target = V4L2_SEL_TGT_COMPOSE; in getVisibleRect()
686 if (mDevice->ioctl(VIDIOC_G_SELECTION, &selection_arg) == 0) { in getVisibleRect()
688 visible_rect = &selection_arg.r; in getVisibleRect()