Lines Matching refs:uframe

61 			      struct uvcg_frame *uframe)  in uvc_v4l2_get_bytesperline()  argument
70 return u->desc.bBitsPerPixel * uframe->frame.w_width / 8; in uvc_v4l2_get_bytesperline()
77 struct uvcg_frame *uframe) in uvc_get_frame_size() argument
79 unsigned int bpl = uvc_v4l2_get_bytesperline(uformat, uframe); in uvc_get_frame_size()
81 return bpl ? bpl * uframe->frame.w_height : in uvc_get_frame_size()
82 uframe->frame.dw_max_video_frame_buffer_size; in uvc_get_frame_size()
108 struct uvcg_frame *uframe = NULL; in find_frame_by_index() local
115 uframe = frame->frm; in find_frame_by_index()
121 return uframe; in find_frame_by_index()
152 struct uvcg_frame *uframe = NULL; in find_closest_frame_by_size() local
175 uframe = frame->frm; in find_closest_frame_by_size()
183 if (!uframe) in find_closest_frame_by_size()
186 return uframe; in find_closest_frame_by_size()
254 struct uvcg_frame *uframe; in uvc_v4l2_try_format() local
271 uframe = find_closest_frame_by_size(uvc, uformat, in uvc_v4l2_try_format()
273 if (!uframe) in uvc_v4l2_try_format()
283 uframe->frame.w_width, uframe->frame.w_height); in uvc_v4l2_try_format()
285 if (fmt->fmt.pix.sizeimage != (uvc_v4l2_get_bytesperline(uformat, uframe) * in uvc_v4l2_try_format()
286 uframe->frame.w_height)) in uvc_v4l2_try_format()
289 fmt->fmt.pix.width = uframe->frame.w_width; in uvc_v4l2_try_format()
290 fmt->fmt.pix.height = uframe->frame.w_height; in uvc_v4l2_try_format()
291 fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(uformat, uframe); in uvc_v4l2_try_format()
292 fmt->fmt.pix.sizeimage = uvc_get_frame_size(uformat, uframe); in uvc_v4l2_try_format()
383 struct uvcg_frame *uframe = NULL; in uvc_v4l2_enum_frameintervals() local
393 uframe = frame->frm; in uvc_v4l2_enum_frameintervals()
397 if (!uframe) in uvc_v4l2_enum_frameintervals()
400 if (fival->index >= uframe->frame.b_frame_interval_type) in uvc_v4l2_enum_frameintervals()
404 uframe->dw_frame_interval[fival->index]; in uvc_v4l2_enum_frameintervals()
422 struct uvcg_frame *uframe = NULL; in uvc_v4l2_enum_framesizes() local
431 uframe = find_frame_by_index(uvc, uformat, fsize->index + 1); in uvc_v4l2_enum_framesizes()
432 if (!uframe) in uvc_v4l2_enum_framesizes()
436 fsize->discrete.width = uframe->frame.w_width; in uvc_v4l2_enum_framesizes()
437 fsize->discrete.height = uframe->frame.w_height; in uvc_v4l2_enum_framesizes()