x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / drivers / media / platform / sti / delta / delta-mjpeg.h
blob18e6b37217ee4f7270ce65a475602b0b8bf3e54f
1 /*
2 * Copyright (C) STMicroelectronics SA 2013
3 * Author: Hugues Fruchet <hugues.fruchet@st.com> for STMicroelectronics.
4 * License terms: GNU General Public License (GPL), version 2
5 */
7 #ifndef DELTA_MJPEG_H
8 #define DELTA_MJPEG_H
10 #include "delta.h"
12 struct mjpeg_component {
13 unsigned int id;/* 1=Y, 2=Cb, 3=Cr, 4=L, 5=Q */
14 unsigned int h_sampling_factor;
15 unsigned int v_sampling_factor;
16 unsigned int quant_table_index;
19 #define MJPEG_MAX_COMPONENTS 5
21 struct mjpeg_header {
22 unsigned int length;
23 unsigned int sample_precision;
24 unsigned int frame_width;
25 unsigned int frame_height;
26 unsigned int nb_of_components;
27 struct mjpeg_component components[MJPEG_MAX_COMPONENTS];
30 int delta_mjpeg_read_header(struct delta_ctx *pctx,
31 unsigned char *data, unsigned int size,
32 struct mjpeg_header *header,
33 unsigned int *data_offset);
35 #endif /* DELTA_MJPEG_H */