Lines Matching refs:uframe
52 struct uvcg_frame *uframe) in uvc_v4l2_get_bytesperline() argument
61 return u->desc.bBitsPerPixel * uframe->frame.w_width / 8; in uvc_v4l2_get_bytesperline()
68 struct uvcg_frame *uframe) in uvc_get_frame_size() argument
70 unsigned int bpl = uvc_v4l2_get_bytesperline(uformat, uframe); in uvc_get_frame_size()
72 return bpl ? bpl * uframe->frame.w_height : in uvc_get_frame_size()
73 uframe->frame.dw_max_video_frame_buffer_size; in uvc_get_frame_size()
99 struct uvcg_frame *uframe = NULL; in find_frame_by_index() local
106 uframe = frame->frm; in find_frame_by_index()
112 return uframe; in find_frame_by_index()
143 struct uvcg_frame *uframe = NULL; in find_closest_frame_by_size() local
166 uframe = frame->frm; in find_closest_frame_by_size()
174 if (!uframe) in find_closest_frame_by_size()
177 return uframe; in find_closest_frame_by_size()
245 struct uvcg_frame *uframe; in uvc_v4l2_try_format() local
262 uframe = find_closest_frame_by_size(uvc, uformat, in uvc_v4l2_try_format()
264 if (!uframe) in uvc_v4l2_try_format()
274 uframe->frame.w_width, uframe->frame.w_height); in uvc_v4l2_try_format()
276 if (fmt->fmt.pix.sizeimage != (uvc_v4l2_get_bytesperline(uformat, uframe) * in uvc_v4l2_try_format()
277 uframe->frame.w_height)) in uvc_v4l2_try_format()
280 fmt->fmt.pix.width = uframe->frame.w_width; in uvc_v4l2_try_format()
281 fmt->fmt.pix.height = uframe->frame.w_height; in uvc_v4l2_try_format()
282 fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(uformat, uframe); in uvc_v4l2_try_format()
283 fmt->fmt.pix.sizeimage = uvc_get_frame_size(uformat, uframe); in uvc_v4l2_try_format()
324 struct uvcg_frame *uframe = NULL; in uvc_v4l2_enum_frameintervals() local
334 uframe = frame->frm; in uvc_v4l2_enum_frameintervals()
338 if (!uframe) in uvc_v4l2_enum_frameintervals()
341 if (fival->index >= uframe->frame.b_frame_interval_type) in uvc_v4l2_enum_frameintervals()
345 uframe->dw_frame_interval[fival->index]; in uvc_v4l2_enum_frameintervals()
363 struct uvcg_frame *uframe = NULL; in uvc_v4l2_enum_framesizes() local
372 uframe = find_frame_by_index(uvc, uformat, fsize->index + 1); in uvc_v4l2_enum_framesizes()
373 if (!uframe) in uvc_v4l2_enum_framesizes()
377 fsize->discrete.width = uframe->frame.w_width; in uvc_v4l2_enum_framesizes()
378 fsize->discrete.height = uframe->frame.w_height; in uvc_v4l2_enum_framesizes()