#include "jinclude.h"
#include "jpeglib.h"
Go to the source code of this file.
◆ JPEG_INTERNALS
◆ jpeg_start_compress()
Definition at line 39 of file jcapistd.c.
40{
42 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
43
46
47
49 (*cinfo->
dest->init_destination) (cinfo);
50
52
53 (*cinfo->
master->prepare_for_pass) (cinfo);
54
55
56
59}
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
jinit_compress_master(j_compress_ptr cinfo)
#define ERREXIT1(cinfo, code, p1)
struct jpeg_comp_master * master
struct jpeg_destination_mgr * dest
Referenced by main(), and write_JPEG_file().
◆ jpeg_write_raw_data()
Definition at line 121 of file jcapistd.c.
123{
125
127 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
129 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
130 return 0;
131 }
132
133
134 if (cinfo->progress !=
NULL) {
136 cinfo->progress->pass_limit = (
long) cinfo->
image_height;
137 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
138 }
139
140
141
142
143
144
145 if (cinfo->
master->call_pass_startup)
146 (*cinfo->
master->pass_startup) (cinfo);
147
148
151 ERREXIT(cinfo, JERR_BUFFER_SIZE);
152
153
154 if (! (*cinfo->
coef->compress_data) (cinfo,
data)) {
155
156 return 0;
157 }
158
159
161 return lines_per_iMCU_row;
162}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define WARNMS(cinfo, code)
JSAMPARRAY JDIMENSION num_lines
int min_DCT_v_scaled_size
struct jpeg_c_coef_controller * coef
◆ jpeg_write_scanlines()
Definition at line 78 of file jcapistd.c.
80{
82
84 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
86 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
87
88
89 if (cinfo->progress !=
NULL) {
91 cinfo->progress->pass_limit = (
long) cinfo->
image_height;
92 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
93 }
94
95
96
97
98
99
100 if (cinfo->
master->call_pass_startup)
101 (*cinfo->
master->pass_startup) (cinfo);
102
103
107
108 row_ctr = 0;
111 return row_ctr;
112}
struct jpeg_c_main_controller * main
Referenced by main(), and write_JPEG_file().