Lines Matching refs:newinfo
120 SmokeCodecInfo *newinfo; in smokecodec_encode_new() local
129 newinfo = malloc (sizeof (SmokeCodecInfo)); in smokecodec_encode_new()
130 if (!newinfo) { in smokecodec_encode_new()
133 newinfo->width = width; in smokecodec_encode_new()
134 newinfo->height = height; in smokecodec_encode_new()
135 newinfo->fps_num = fps_num; in smokecodec_encode_new()
136 newinfo->fps_denom = fps_denom; in smokecodec_encode_new()
139 memset (&newinfo->cinfo, 0, sizeof (newinfo->cinfo)); in smokecodec_encode_new()
140 memset (&newinfo->jerr, 0, sizeof (newinfo->jerr)); in smokecodec_encode_new()
141 newinfo->cinfo.err = jpeg_std_error (&newinfo->jerr); in smokecodec_encode_new()
142 jpeg_create_compress (&newinfo->cinfo); in smokecodec_encode_new()
143 newinfo->cinfo.input_components = 3; in smokecodec_encode_new()
144 jpeg_set_defaults (&newinfo->cinfo); in smokecodec_encode_new()
146 newinfo->cinfo.dct_method = JDCT_FASTEST; in smokecodec_encode_new()
150 newinfo->cinfo.do_fancy_downsampling = FALSE; in smokecodec_encode_new()
153 newinfo->cinfo.raw_data_in = TRUE; in smokecodec_encode_new()
154 newinfo->cinfo.in_color_space = JCS_YCbCr; in smokecodec_encode_new()
155 newinfo->cinfo.comp_info[0].h_samp_factor = 2; in smokecodec_encode_new()
156 newinfo->cinfo.comp_info[0].v_samp_factor = 2; in smokecodec_encode_new()
157 newinfo->cinfo.comp_info[1].h_samp_factor = 1; in smokecodec_encode_new()
158 newinfo->cinfo.comp_info[1].v_samp_factor = 1; in smokecodec_encode_new()
159 newinfo->cinfo.comp_info[2].h_samp_factor = 1; in smokecodec_encode_new()
160 newinfo->cinfo.comp_info[2].v_samp_factor = 1; in smokecodec_encode_new()
162 newinfo->line[0] = malloc (DCTSIZE * 2 * sizeof (char *)); in smokecodec_encode_new()
163 newinfo->line[1] = malloc (DCTSIZE * sizeof (char *)); in smokecodec_encode_new()
164 newinfo->line[2] = malloc (DCTSIZE * sizeof (char *)); in smokecodec_encode_new()
165 base[0] = newinfo->compbuf[0] = malloc (256 * 2 * DCTSIZE * 2 * DCTSIZE); in smokecodec_encode_new()
166 base[1] = newinfo->compbuf[1] = malloc (256 * DCTSIZE * DCTSIZE); in smokecodec_encode_new()
167 base[2] = newinfo->compbuf[2] = malloc (256 * DCTSIZE * DCTSIZE); in smokecodec_encode_new()
170 newinfo->line[0][i] = base[0]; in smokecodec_encode_new()
172 newinfo->line[0][i + 1] = base[0]; in smokecodec_encode_new()
174 newinfo->line[1][j] = base[1]; in smokecodec_encode_new()
176 newinfo->line[2][j] = base[2]; in smokecodec_encode_new()
180 newinfo->jdest.init_destination = smokecodec_init_destination; in smokecodec_encode_new()
181 newinfo->jdest.empty_output_buffer = smokecodec_flush_destination; in smokecodec_encode_new()
182 newinfo->jdest.term_destination = smokecodec_term_destination; in smokecodec_encode_new()
183 newinfo->cinfo.dest = &newinfo->jdest; in smokecodec_encode_new()
185 jpeg_suppress_tables (&newinfo->cinfo, FALSE); in smokecodec_encode_new()
187 memset (&newinfo->dinfo, 0, sizeof (newinfo->dinfo)); in smokecodec_encode_new()
188 newinfo->dinfo.err = jpeg_std_error (&newinfo->jerr); in smokecodec_encode_new()
189 jpeg_create_decompress (&newinfo->dinfo); in smokecodec_encode_new()
191 newinfo->jsrc.init_source = smokecodec_init_source; in smokecodec_encode_new()
192 newinfo->jsrc.fill_input_buffer = smokecodec_fill_input_buffer; in smokecodec_encode_new()
193 newinfo->jsrc.skip_input_data = smokecodec_skip_input_data; in smokecodec_encode_new()
194 newinfo->jsrc.resync_to_restart = smokecodec_resync_to_restart; in smokecodec_encode_new()
195 newinfo->jsrc.term_source = smokecodec_term_source; in smokecodec_encode_new()
196 newinfo->dinfo.src = &newinfo->jsrc; in smokecodec_encode_new()
198 newinfo->need_keyframe = 1; in smokecodec_encode_new()
199 newinfo->threshold = 4000; in smokecodec_encode_new()
200 newinfo->minquality = 10; in smokecodec_encode_new()
201 newinfo->maxquality = 85; in smokecodec_encode_new()
202 newinfo->reference = malloc (3 * (width * height) / 2); in smokecodec_encode_new()
203 newinfo->refdec = 0; in smokecodec_encode_new()
205 *info = newinfo; in smokecodec_encode_new()