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()
133 const struct hantro_fmt *formats; in hantro_get_default_fmt() local
136 formats = hantro_get_formats(ctx, &num_fmts, need_postproc); in hantro_get_default_fmt()
138 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt()
140 hantro_check_depth_match(&formats[i], bit_depth)) in hantro_get_default_fmt()
141 return &formats[i]; in hantro_get_default_fmt()
144 formats = hantro_get_postproc_formats(ctx, &num_fmts); in hantro_get_default_fmt()
146 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt()
148 hantro_check_depth_match(&formats[i], bit_depth)) in hantro_get_default_fmt()
149 return &formats[i]; in hantro_get_default_fmt()
179 /* For non-coded formats check if postprocessing scaling is possible */ in vidioc_enum_framesizes()
202 const struct hantro_fmt *fmt, *formats; in vidioc_enum_fmt() local
208 * - on the capture side we want to filter out all MODE_NONE formats. in vidioc_enum_fmt()
209 * - on the output side we want to filter out all formats that are in vidioc_enum_fmt()
212 * - on the capture side we want to filter out all formats that are in vidioc_enum_fmt()
214 * - on the output side we want to filter out all MODE_NONE formats. in vidioc_enum_fmt()
218 formats = hantro_get_formats(ctx, &num_fmts, HANTRO_AUTO_POSTPROC); in vidioc_enum_fmt()
220 bool mode_none = formats[i].codec_mode == HANTRO_MODE_NONE; in vidioc_enum_fmt()
221 fmt = &formats[i]; in vidioc_enum_fmt()
235 * Enumerate post-processed formats. As per the specification, in vidioc_enum_fmt()
236 * we enumerated these formats after natively decoded formats in vidioc_enum_fmt()
241 formats = hantro_get_postproc_formats(ctx, &num_fmts); in vidioc_enum_fmt()
243 fmt = &formats[i]; in vidioc_enum_fmt()
360 * For coded formats the application can specify in hantro_try_fmt()