Lines Matching refs:header
15 static char *header_str(struct mjpeg_header *header, in header_str() argument
22 if (!header) in header_str()
31 header->length, in header_str()
32 header->sample_precision, in header_str()
33 header->frame_width, in header_str()
34 header->frame_height, in header_str()
35 header->nb_of_components); in header_str()
42 struct mjpeg_header *header) in delta_mjpeg_read_sof() argument
50 memset(header, 0, sizeof(*header)); in delta_mjpeg_read_sof()
51 header->length = be16_to_cpu(*(__be16 *)(data + offset)); in delta_mjpeg_read_sof()
53 header->sample_precision = *(u8 *)(data + offset); in delta_mjpeg_read_sof()
55 header->frame_height = be16_to_cpu(*(__be16 *)(data + offset)); in delta_mjpeg_read_sof()
57 header->frame_width = be16_to_cpu(*(__be16 *)(data + offset)); in delta_mjpeg_read_sof()
59 header->nb_of_components = *(u8 *)(data + offset); in delta_mjpeg_read_sof()
62 if (header->nb_of_components >= MJPEG_MAX_COMPONENTS) { in delta_mjpeg_read_sof()
65 pctx->name, header->nb_of_components, in delta_mjpeg_read_sof()
70 if ((offset + header->nb_of_components * in delta_mjpeg_read_sof()
71 sizeof(header->components[0])) > size) in delta_mjpeg_read_sof()
85 struct mjpeg_header *header, in delta_mjpeg_read_header() argument
119 header); in delta_mjpeg_read_header()
138 header_str(header, str, sizeof(str))); in delta_mjpeg_read_header()