Lines Matching refs:fmt
1448 struct v4l2_format fmt; in component_init() local
1628 fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in component_init()
1629 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_input.frame_height; in component_init()
1630 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_input.frame_width; in component_init()
1633 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in component_init()
1637 fmt.fmt.pix_mp.field = V4L2_FIELD_INTERLACED; in component_init()
1639 fmt.fmt.pix_mp.pixelformat = output_capability; in component_init()
1643 … setFormatParams(output_capability, drv_ctx.input_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in component_init()
1644 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in component_init()
1646 …fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.input_b… in component_init()
1647 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.inpu… in component_init()
1648 …DEBUG_PRINT_HIGH(" fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n ", i, fmt.fmt.pix_mp.plane_fmt[i… in component_init()
1651 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in component_init()
1661 memset(&fmt, 0, sizeof(fmt)); in component_init()
1663 fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in component_init()
1664 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_input.frame_height; in component_init()
1665 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_input.frame_width; in component_init()
1666 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in component_init()
1667 fmt.fmt.pix_mp.pixelformat = capture_capability; in component_init()
1668 DEBUG_PRINT_HIGH("VP output frame width = %d, height = %d", fmt.fmt.pix_mp.width, in component_init()
1669 fmt.fmt.pix_mp.height); in component_init()
1671 … setFormatParams(capture_capability, drv_ctx.output_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in component_init()
1672 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in component_init()
1674 fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * in component_init()
1676 fmt.fmt.pix_mp.height); in component_init()
1677 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.outp… in component_init()
1678 …DEBUG_PRINT_HIGH(" fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n ", i, fmt.fmt.pix_mp.plane_fmt[i… in component_init()
1681 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in component_init()
1689 drv_ctx.video_resolution_output.frame_height = fmt.fmt.pix_mp.height; in component_init()
1690 drv_ctx.video_resolution_output.frame_width = fmt.fmt.pix_mp.width; in component_init()
1691 drv_ctx.video_resolution_output.scan_lines = fmt.fmt.pix_mp.height; in component_init()
1692 drv_ctx.video_resolution_output.stride = fmt.fmt.pix_mp.width; in component_init()
2928 struct v4l2_format fmt; in set_parameter() local
2964 memset(&fmt, 0, sizeof(fmt)); in set_parameter()
2980 fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in set_parameter()
2981 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_output.frame_height; in set_parameter()
2982 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_output.frame_width; in set_parameter()
2983 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in set_parameter()
2984 fmt.fmt.pix_mp.pixelformat = capture_capability; in set_parameter()
2985 …olution_output.stride = %d, drv_ctx.video_resolution_output.scan_lines = %d", fmt.fmt.pix_mp.width, in set_parameter()
2986 …fmt.fmt.pix_mp.height, drv_ctx.video_resolution_output.stride, drv_ctx.video_resolution_output.sca… in set_parameter()
2989 … setFormatParams(capture_capability, drv_ctx.output_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in set_parameter()
2990 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_parameter()
2992 …fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.output_… in set_parameter()
2993 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.outp… in set_parameter()
2994 …fore VIDIOC_S_FMT (op) fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n",i,fmt.fmt.pix_mp.plane_fmt[… in set_parameter()
2999 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in set_parameter()
3000 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_parameter()
3002 …fter VIDIOC_S_FMT (op) fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n",i,fmt.fmt.pix_mp.plane_fmt[… in set_parameter()
3083 memset(&fmt, 0, sizeof(fmt)); in set_parameter()
3105 fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in set_parameter()
3106 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_input.frame_height; in set_parameter()
3107 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_input.frame_width; in set_parameter()
3110 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in set_parameter()
3114 fmt.fmt.pix_mp.field = V4L2_FIELD_INTERLACED; in set_parameter()
3116 fmt.fmt.pix_mp.pixelformat = output_capability; in set_parameter()
3120 … setFormatParams(output_capability, drv_ctx.input_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in set_parameter()
3121 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_parameter()
3123 …fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.input_b… in set_parameter()
3124 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.inpu… in set_parameter()
3125 …fore VIDIOC_S_FMT (ip) fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n",i,fmt.fmt.pix_mp.plane_fmt[… in set_parameter()
3129 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in set_parameter()
3149 fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in set_parameter()
3150 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_output.frame_height; in set_parameter()
3151 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_output.frame_width; in set_parameter()
3152 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in set_parameter()
3153 fmt.fmt.pix_mp.pixelformat = capture_capability; in set_parameter()
3154 …olution_output.stride = %d, drv_ctx.video_resolution_output.scan_lines = %d", fmt.fmt.pix_mp.width, in set_parameter()
3155 …fmt.fmt.pix_mp.height, drv_ctx.video_resolution_output.stride, drv_ctx.video_resolution_output.sca… in set_parameter()
3158 … setFormatParams(capture_capability, drv_ctx.output_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in set_parameter()
3159 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_parameter()
3161 …fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.output_… in set_parameter()
3162 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.outp… in set_parameter()
3163 …before VIDIOC_S_FMT op fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n",i,fmt.fmt.pix_mp.plane_fmt[… in set_parameter()
3167 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in set_parameter()
3168 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_parameter()
3170 …"after VIDIOC_S_FMT op fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n",i,fmt.fmt.pix_mp.plane_fmt[… in set_parameter()
3226 struct v4l2_format fmt; in set_parameter() local
3234 memset(&fmt, 0, sizeof(fmt)); in set_parameter()
3235 fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in set_parameter()
3236 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_output.frame_height; in set_parameter()
3237 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_output.frame_width; in set_parameter()
3238 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in set_parameter()
3257 fmt.fmt.pix_mp.pixelformat = capture_capability; in set_parameter()
3259 DEBUG_PRINT_HIGH("VP output frame width = %d, height = %d", fmt.fmt.pix_mp.width, in set_parameter()
3260 fmt.fmt.pix_mp.height); in set_parameter()
3262 … setFormatParams(capture_capability, drv_ctx.output_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in set_parameter()
3263 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_parameter()
3265 fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * in set_parameter()
3267 fmt.fmt.pix_mp.height); in set_parameter()
3268 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.outp… in set_parameter()
3271 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in set_parameter()
6766 struct v4l2_format fmt; in get_buffer_req() local
6820 struct v4l2_format fmt; in set_buffer_req() local
6844 struct v4l2_format fmt; in get_buffer_req() local
6847 memset((void *)&fmt, 0, sizeof(v4l2_format)); in get_buffer_req()
6854 fmt.type =V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in get_buffer_req()
6855 fmt.fmt.pix_mp.pixelformat = output_capability; in get_buffer_req()
6859 fmt.type =V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in get_buffer_req()
6860 fmt.fmt.pix_mp.pixelformat = capture_capability; in get_buffer_req()
6879 …buffer_prop->actualcount, buffer_prop->buffer_size, buffer_prop->buffer_type, fmt.fmt.pix_mp.pixel… in get_buffer_req()
6883 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_input.frame_height; in get_buffer_req()
6884 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_input.frame_width; in get_buffer_req()
6887 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in get_buffer_req()
6891 fmt.fmt.pix_mp.field = V4L2_FIELD_INTERLACED; in get_buffer_req()
6897 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_output.frame_height; in get_buffer_req()
6898 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_output.frame_width; in get_buffer_req()
6899 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in get_buffer_req()
6905 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_TRY_FMT, &fmt); in get_buffer_req()
6910 drv_ctx.input_num_planes = fmt.fmt.pix_mp.num_planes; in get_buffer_req()
6911 drv_ctx.video_resolution_input.frame_height = fmt.fmt.pix_mp.height; in get_buffer_req()
6912 drv_ctx.video_resolution_input.frame_width = fmt.fmt.pix_mp.width; in get_buffer_req()
6918 drv_ctx.output_num_planes = fmt.fmt.pix_mp.num_planes; in get_buffer_req()
6919 drv_ctx.video_resolution_output.frame_height = fmt.fmt.pix_mp.height; in get_buffer_req()
6920 drv_ctx.video_resolution_output.frame_width = fmt.fmt.pix_mp.width; in get_buffer_req()
6925 buffer_prop->frame_size = paddedFrameWidth32(fmt.fmt.pix_mp.height) * in get_buffer_req()
6926 paddedFrameWidth128(fmt.fmt.pix_mp.width) * in get_buffer_req()
6929 … fmt.fmt.pix_mp.num_planes, fmt.fmt.pix_mp.height, fmt.fmt.pix_mp.width, buffer_prop->frame_size); in get_buffer_req()
6940 buffer_prop->buffer_size = fmt.fmt.pix_mp.plane_fmt[0].sizeimage; in get_buffer_req()
6952 extra_data_size = fmt.fmt.pix_mp.plane_fmt[extra_idx].sizeimage; in get_buffer_req()
7012 struct v4l2_format fmt; in set_buffer_req() local
7017 memset((void *)&fmt, 0, sizeof(v4l2_format)); in set_buffer_req()
7030 fmt.type =V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in set_buffer_req()
7031 fmt.fmt.pix_mp.pixelformat = output_capability; in set_buffer_req()
7035 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in set_buffer_req()
7039 fmt.fmt.pix_mp.field = V4L2_FIELD_INTERLACED; in set_buffer_req()
7041 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_input.frame_height; in set_buffer_req()
7042 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_input.frame_width; in set_buffer_req()
7044 … setFormatParams(output_capability, drv_ctx.input_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in set_buffer_req()
7045 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_buffer_req()
7047 fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * in set_buffer_req()
7049 fmt.fmt.pix_mp.height); in set_buffer_req()
7050 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.inpu… in set_buffer_req()
7053 fmt.type =V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in set_buffer_req()
7054 fmt.fmt.pix_mp.pixelformat = capture_capability; in set_buffer_req()
7055 fmt.fmt.pix_mp.field = V4L2_FIELD_NONE; in set_buffer_req()
7056 fmt.fmt.pix_mp.height = drv_ctx.video_resolution_output.frame_height; in set_buffer_req()
7057 fmt.fmt.pix_mp.width = drv_ctx.video_resolution_output.frame_width; in set_buffer_req()
7059 … setFormatParams(capture_capability, drv_ctx.output_bytesperpixel, &(fmt.fmt.pix_mp.num_planes)); in set_buffer_req()
7060 for( i=0; i<fmt.fmt.pix_mp.num_planes; i++ ) in set_buffer_req()
7062 fmt.fmt.pix_mp.plane_fmt[i].sizeimage = paddedFrameWidth128(fmt.fmt.pix_mp.width * in set_buffer_req()
7064 fmt.fmt.pix_mp.height); in set_buffer_req()
7065 …fmt.fmt.pix_mp.plane_fmt[i].bytesperline = paddedFrameWidth128(fmt.fmt.pix_mp.width * drv_ctx.outp… in set_buffer_req()
7066 …IGH("set_buffer_req fmt.fmt.pix_mp.plane_fmt[%d].sizeimage = %d \n ", i, fmt.fmt.pix_mp.plane_fmt[… in set_buffer_req()
7070 ret = ioctl(drv_ctx.video_vpu_fd, VIDIOC_S_FMT, &fmt); in set_buffer_req()