Lines Matching full:formats

42 	const struct hantro_fmt *formats;  in hantro_get_formats()  local
50 formats = ctx->dev->variant->enc_fmts; in hantro_get_formats()
53 formats = ctx->dev->variant->dec_fmts; in hantro_get_formats()
57 return formats; in hantro_get_formats()
102 * Allow only downconversion for postproc formats for now. in hantro_check_depth_match()
114 const struct hantro_fmt *formats; in hantro_find_format() local
117 formats = hantro_get_formats(ctx, &num_fmts, HANTRO_AUTO_POSTPROC); in hantro_find_format()
119 if (formats[i].fourcc == fourcc) in hantro_find_format()
120 return &formats[i]; in hantro_find_format()
122 formats = hantro_get_postproc_formats(ctx, &num_fmts); in hantro_find_format()
124 if (formats[i].fourcc == fourcc) in hantro_find_format()
125 return &formats[i]; in hantro_find_format()
151 const struct hantro_fmt *formats; in hantro_get_default_fmt() local
154 formats = hantro_get_formats(ctx, &num_fmts, need_postproc); in hantro_get_default_fmt()
156 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt()
158 hantro_check_depth_match(&formats[i], bit_depth)) in hantro_get_default_fmt()
159 return &formats[i]; in hantro_get_default_fmt()
162 formats = hantro_get_postproc_formats(ctx, &num_fmts); in hantro_get_default_fmt()
164 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt()
166 hantro_check_depth_match(&formats[i], bit_depth)) in hantro_get_default_fmt()
167 return &formats[i]; in hantro_get_default_fmt()
197 /* For non-coded formats check if postprocessing scaling is possible */ in vidioc_enum_framesizes()
220 const struct hantro_fmt *fmt, *formats; in vidioc_enum_fmt() local
227 * hardware supported pixel formats in vidioc_enum_fmt()
234 * - on the capture side we want to filter out all MODE_NONE formats. in vidioc_enum_fmt()
235 * - on the output side we want to filter out all formats that are in vidioc_enum_fmt()
238 * - on the capture side we want to filter out all formats that are in vidioc_enum_fmt()
240 * - on the output side we want to filter out all MODE_NONE formats. in vidioc_enum_fmt()
244 formats = hantro_get_formats(ctx, &num_fmts, HANTRO_AUTO_POSTPROC); in vidioc_enum_fmt()
246 bool mode_none = formats[i].codec_mode == HANTRO_MODE_NONE; in vidioc_enum_fmt()
247 fmt = &formats[i]; in vidioc_enum_fmt()
261 * Enumerate post-processed formats. As per the specification, in vidioc_enum_fmt()
262 * we enumerated these formats after natively decoded formats in vidioc_enum_fmt()
267 formats = hantro_get_postproc_formats(ctx, &num_fmts); in vidioc_enum_fmt()
269 fmt = &formats[i]; in vidioc_enum_fmt()
386 * For coded formats the application can specify in hantro_try_fmt()