Lines Matching full:formats

39 	const struct hantro_fmt *formats;  in hantro_get_formats()  local
42 formats = ctx->dev->variant->enc_fmts; in hantro_get_formats()
45 formats = ctx->dev->variant->dec_fmts; in hantro_get_formats()
49 return formats; in hantro_get_formats()
94 * Allow only downconversion for postproc formats for now. in hantro_check_depth_match()
106 const struct hantro_fmt *formats; in hantro_find_format() local
109 formats = hantro_get_formats(ctx, &num_fmts); in hantro_find_format()
111 if (formats[i].fourcc == fourcc) in hantro_find_format()
112 return &formats[i]; in hantro_find_format()
114 formats = hantro_get_postproc_formats(ctx, &num_fmts); in hantro_find_format()
116 if (formats[i].fourcc == fourcc) in hantro_find_format()
117 return &formats[i]; in hantro_find_format()
124 const struct hantro_fmt *formats; in hantro_get_default_fmt() local
127 formats = hantro_get_formats(ctx, &num_fmts); in hantro_get_default_fmt()
129 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt()
131 hantro_check_depth_match(ctx, &formats[i])) in hantro_get_default_fmt()
132 return &formats[i]; in hantro_get_default_fmt()
163 /* For non-coded formats check if postprocessing scaling is possible */ in vidioc_enum_framesizes()
183 const struct hantro_fmt *fmt, *formats; in vidioc_enum_fmt() local
189 * - on the capture side we want to filter out all MODE_NONE formats. in vidioc_enum_fmt()
190 * - on the output side we want to filter out all formats that are in vidioc_enum_fmt()
193 * - on the capture side we want to filter out all formats that are in vidioc_enum_fmt()
195 * - on the output side we want to filter out all MODE_NONE formats. in vidioc_enum_fmt()
199 formats = hantro_get_formats(ctx, &num_fmts); in vidioc_enum_fmt()
201 bool mode_none = formats[i].codec_mode == HANTRO_MODE_NONE; in vidioc_enum_fmt()
202 fmt = &formats[i]; in vidioc_enum_fmt()
216 * Enumerate post-processed formats. As per the specification, in vidioc_enum_fmt()
217 * we enumerated these formats after natively decoded formats in vidioc_enum_fmt()
222 formats = hantro_get_postproc_formats(ctx, &num_fmts); in vidioc_enum_fmt()
224 fmt = &formats[i]; in vidioc_enum_fmt()
339 * For coded formats the application can specify in hantro_try_fmt()