Lines Matching full:nf
248 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument
250 if (nf == 1) in v4l2_jpeg_decode_subsampling()
254 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
278 /* Lf = 8 + 3 * Nf, Nf >= 1 */ in jpeg_parse_frame_header()
284 int p, y, x, nf; in jpeg_parse_frame_header() local
309 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
310 if (nf < 0) in jpeg_parse_frame_header()
311 return nf; in jpeg_parse_frame_header()
313 * The spec allows 1 <= Nf <= 255, but we only support up to 4 in jpeg_parse_frame_header()
316 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
318 if (len != 8 + 3 * nf) in jpeg_parse_frame_header()
324 frame_header->num_components = nf; in jpeg_parse_frame_header()
326 for (i = 0; i < nf; i++) { in jpeg_parse_frame_header()
340 subs = v4l2_jpeg_decode_subsampling(nf, h_v); in jpeg_parse_frame_header()