drivers/media/platform/st/sti/delta/delta-mjpeg.h

Source file repositories/reference/linux-study-clean/drivers/media/platform/st/sti/delta/delta-mjpeg.h

File Facts

System
Linux kernel
Corpus path
drivers/media/platform/st/sti/delta/delta-mjpeg.h
Extension
.h
Size
862 bytes
Lines
36
Domain
Driver Families
Bucket
drivers/media
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct mjpeg_component {
	unsigned int id;/* 1=Y, 2=Cb, 3=Cr, 4=L, 5=Q */
	unsigned int h_sampling_factor;
	unsigned int v_sampling_factor;
	unsigned int quant_table_index;
};

#define MJPEG_MAX_COMPONENTS 5

struct mjpeg_header {
	unsigned int length;
	unsigned int sample_precision;
	unsigned int frame_width;
	unsigned int frame_height;
	unsigned int nb_of_components;
	struct mjpeg_component components[MJPEG_MAX_COMPONENTS];
};

int delta_mjpeg_read_header(struct delta_ctx *pctx,
			    unsigned char *data, unsigned int size,
			    struct mjpeg_header *header,
			    unsigned int *data_offset);

#endif /* DELTA_MJPEG_H */

Annotation

Implementation Notes