Lines Matching +full:jpeg +full:- +full:codec

1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* linux/drivers/media/platform/samsung/s5p-jpeg/jpeg-regs.h
4 * Register definition file for Samsung JPEG codec driver
6 * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd.
18 /* JPEG mode register */
29 /* JPEG operation status register */
34 #define S5P_QT_NUMt_SHIFT(t) (((t) - 1) << 1)
39 #define S5P_HT_NUMt_AC_SHIFT(t) (((t) << 1) - 1)
42 #define S5P_HT_NUMt_DC_SHIFT(t) (((t) - 1) << 1)
45 /* JPEG restart interval register upper byte */
48 /* JPEG restart interval register lower byte */
51 /* JPEG vertical resolution register upper byte */
54 /* JPEG vertical resolution register lower byte */
57 /* JPEG horizontal resolution register upper byte */
60 /* JPEG horizontal resolution register lower byte */
63 /* JPEG byte count register upper byte */
66 /* JPEG byte count register middle byte */
69 /* JPEG byte count register lower byte */
72 /* JPEG interrupt setting register */
81 /* JPEG interrupt status register */
88 /* JPEG command register */
95 /* JPEG file r/w address register */
98 /* Coefficient for RGB-to-YCbCr converter register */
99 #define S5P_JPG_COEF(n) (0x5c + (((n) - 1) << 2))
100 #define S5P_COEFn_SHIFT(j) ((3 - (j)) << 3)
103 /* JPEG color mode register */
111 /* JPEG clock control register */
116 /* JPEG start register */
119 /* JPEG SW reset register */
122 /* JPEG timer setting register */
128 /* JPEG timer status register */
135 /* JPEG decompression output format register */
141 /* JPEG version register */
144 /* JPEG compressed stream size interrupt setting register */
150 /* JPEG compressed stream size interrupt status register */
154 /* JPEG quantizer table register */
157 /* JPEG DC Huffman table register */
160 /* JPEG DC Huffman table register */
163 /* JPEG AC Huffman table register */
166 /* JPEG AC Huffman table register */
172 /* JPEG Codec Control Registers */
208 /* JPEG CNTL Register bit */
229 /* JPEG INT Register bit */
249 /* JPEG IMAGE SIZE Register bit */
257 /* JPEG IMAGE FORMAT Register bit */
312 /* JPEG HUFF count Register bit */
315 /* JPEG Decoded_img_x_y_size Register bit */
318 /* JPEG Decoded image format Register bit */
321 /* JPEG TBL SEL Register bit */
322 #define EXYNOS4_Q_TBL_COMP(c, n) ((n) << (((c) - 1) << 1))
339 #define EXYNOS4_HUFF_TBL_COMP(c, n) ((n) << ((((c) - 1) << 1) + 6))
373 /* JPEG quantizer table register */
376 /* JPEG DC luminance (code length) Huffman table register */
379 /* JPEG DC luminance (values) Huffman table register */
382 /* JPEG DC chrominance (code length) Huffman table register */
385 /* JPEG DC chrominance (values) Huffman table register */
388 /* JPEG AC luminance (code length) Huffman table register */
391 /* JPEG AC luminance (values) Huffman table register */
394 /* JPEG AC chrominance (code length) Huffman table register */
397 /* JPEG AC chrominance (values) Huffman table register */
402 /* JPEG mode register */
414 /* JPEG operation status register */
420 #define EXYNOS3250_QT_NUM_SHIFT(t) ((((t) - 1) << 1) + 8)
424 #define EXYNOS3250_HT_NUM_AC_SHIFT(t) (((t) << 1) - 1)
427 #define EXYNOS3250_HT_NUM_DC_SHIFT(t) (((t) - 1) << 1)
430 /* JPEG restart interval register */
434 /* JPEG vertical resolution register */
438 /* JPEG horizontal resolution register */
442 /* JPEG byte count register */
446 /* JPEG interrupt mask register */
456 /* JPEG interrupt status register */
518 /* Source or destination JPEG file DMA buffer address */
521 /* Coefficients for RGB-to-YCbCr converter register */
522 #define EXYNOS3250_JPG_COEF(n) (0x128 + (((n) - 1) << 2))
523 #define EXYNOS3250_COEF_SHIFT(j) ((3 - (j)) << 3)
559 /* JPEG SW reset register */
562 /* JPEG timer setting register */
568 /* JPEG timer status register */
580 /* JPEG decompression output format register */
599 /* Input JPEG stream byte size for decompression */
607 /* Scale-down ratio when decoding */
636 /* RGB <-> YUV conversion coefficients */