zr36050.h (0337966d121ebebf73a1c346123e8112796e684e) zr36050.h (2a0c28063de23646bb56152095ce73ea2284dc26)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
1/*
2 * Zoran ZR36050 basic configuration functions - header file
3 *
4 * Copyright (C) 2001 Wolfgang Scherr <scherr@net4you.at>
2/*
3 * Zoran ZR36050 basic configuration functions - header file
4 *
5 * Copyright (C) 2001 Wolfgang Scherr <scherr@net4you.at>
5 *
6 * $Id: zr36050.h,v 1.1.2.2 2003/01/14 21:18:22 rbultje Exp $
7 *
8 * ------------------------------------------------------------------------
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * ------------------------------------------------------------------------
21 */
22
23#ifndef ZR36050_H
24#define ZR36050_H
25
26#include "videocodec.h"
27
28/* data stored for each zoran jpeg codec chip */

--- 51 unchanged lines hidden (view full) ---

80#define ZR050_ACV_HI 0x016
81#define ZR050_ACV_MH 0x017
82#define ZR050_ACV_ML 0x018
83#define ZR050_ACV_LO 0x019
84#define ZR050_ACT_HI 0x01a
85#define ZR050_ACT_MH 0x01b
86#define ZR050_ACT_ML 0x01c
87#define ZR050_ACT_LO 0x01d
6 */
7
8#ifndef ZR36050_H
9#define ZR36050_H
10
11#include "videocodec.h"
12
13/* data stored for each zoran jpeg codec chip */

--- 51 unchanged lines hidden (view full) ---

65#define ZR050_ACV_HI 0x016
66#define ZR050_ACV_MH 0x017
67#define ZR050_ACV_ML 0x018
68#define ZR050_ACV_LO 0x019
69#define ZR050_ACT_HI 0x01a
70#define ZR050_ACT_MH 0x01b
71#define ZR050_ACT_ML 0x01c
72#define ZR050_ACT_LO 0x01d
88#define ZR050_ACV_TRUN_HI 0x01e
89#define ZR050_ACV_TRUN_MH 0x01f
90#define ZR050_ACV_TRUN_ML 0x020
91#define ZR050_ACV_TRUN_LO 0x021
73#define ZR050_ACV_TURN_HI 0x01e
74#define ZR050_ACV_TURN_MH 0x01f
75#define ZR050_ACV_TURN_ML 0x020
76#define ZR050_ACV_TURN_LO 0x021
92#define ZR050_STATUS_0 0x02e
93#define ZR050_STATUS_1 0x02f
94
95#define ZR050_SOF_IDX 0x040
96#define ZR050_SOS1_IDX 0x07a
97#define ZR050_SOS2_IDX 0x08a
98#define ZR050_SOS3_IDX 0x09a
99#define ZR050_SOS4_IDX 0x0aa

--- 40 unchanged lines hidden (view full) ---

140#define ZR050_OP_NSCN_3 0x40
141#define ZR050_OP_NSCN_4 0x60
142#define ZR050_OP_NSCN_5 0x80
143#define ZR050_OP_NSCN_6 0xA0
144#define ZR050_OP_NSCN_7 0xC0
145#define ZR050_OP_NSCN_8 0xE0
146#define ZR050_OP_OVF 0x10
147
77#define ZR050_STATUS_0 0x02e
78#define ZR050_STATUS_1 0x02f
79
80#define ZR050_SOF_IDX 0x040
81#define ZR050_SOS1_IDX 0x07a
82#define ZR050_SOS2_IDX 0x08a
83#define ZR050_SOS3_IDX 0x09a
84#define ZR050_SOS4_IDX 0x0aa

--- 40 unchanged lines hidden (view full) ---

125#define ZR050_OP_NSCN_3 0x40
126#define ZR050_OP_NSCN_4 0x60
127#define ZR050_OP_NSCN_5 0x80
128#define ZR050_OP_NSCN_6 0xA0
129#define ZR050_OP_NSCN_7 0xC0
130#define ZR050_OP_NSCN_8 0xE0
131#define ZR050_OP_OVF 0x10
132
148
149/* zr36050 markers-enable register bits */
150
151#define ZR050_ME_APP 0x80
152#define ZR050_ME_COM 0x40
153#define ZR050_ME_DRI 0x20
154#define ZR050_ME_DQT 0x10
155#define ZR050_ME_DHT 0x08
156#define ZR050_ME_DNL 0x04

--- 14 unchanged lines hidden (view full) ---

171#define ZR050_ST_DATOVF_MASK 0x01
172
173/* pixel component idx */
174
175#define ZR050_Y_COMPONENT 0
176#define ZR050_U_COMPONENT 1
177#define ZR050_V_COMPONENT 2
178
133/* zr36050 markers-enable register bits */
134
135#define ZR050_ME_APP 0x80
136#define ZR050_ME_COM 0x40
137#define ZR050_ME_DRI 0x20
138#define ZR050_ME_DQT 0x10
139#define ZR050_ME_DHT 0x08
140#define ZR050_ME_DNL 0x04

--- 14 unchanged lines hidden (view full) ---

155#define ZR050_ST_DATOVF_MASK 0x01
156
157/* pixel component idx */
158
159#define ZR050_Y_COMPONENT 0
160#define ZR050_U_COMPONENT 1
161#define ZR050_V_COMPONENT 2
162
163int zr36050_init_module(void);
164void zr36050_cleanup_module(void);
179#endif /*fndef ZR36050_H */
165#endif /*fndef ZR36050_H */