• Home
  • Raw
  • Download

Lines Matching refs:Q

254     int Q;  in vp8cx_init_quantizer()  local
259 for (Q = 0; Q < QINDEX_RANGE; Q++) in vp8cx_init_quantizer()
262 quant_val = vp8_dc_quant(Q, cpi->common.y1dc_delta_q); in vp8cx_init_quantizer()
263 cpi->Y1quant_fast[Q][0] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
264 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0, in vp8cx_init_quantizer()
265 cpi->Y1quant_shift[Q] + 0, quant_val); in vp8cx_init_quantizer()
266 cpi->Y1zbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer()
267 cpi->Y1round[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
268 cpi->common.Y1dequant[Q][0] = quant_val; in vp8cx_init_quantizer()
269 cpi->zrun_zbin_boost_y1[Q][0] = (quant_val * zbin_boost[0]) >> 7; in vp8cx_init_quantizer()
271 quant_val = vp8_dc2quant(Q, cpi->common.y2dc_delta_q); in vp8cx_init_quantizer()
272 cpi->Y2quant_fast[Q][0] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
273 invert_quant(cpi->sf.improved_quant, cpi->Y2quant[Q] + 0, in vp8cx_init_quantizer()
274 cpi->Y2quant_shift[Q] + 0, quant_val); in vp8cx_init_quantizer()
275 cpi->Y2zbin[Q][0] = ((qzbin_factors_y2[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer()
276 cpi->Y2round[Q][0] = (qrounding_factors_y2[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
277 cpi->common.Y2dequant[Q][0] = quant_val; in vp8cx_init_quantizer()
278 cpi->zrun_zbin_boost_y2[Q][0] = (quant_val * zbin_boost[0]) >> 7; in vp8cx_init_quantizer()
280 quant_val = vp8_dc_uv_quant(Q, cpi->common.uvdc_delta_q); in vp8cx_init_quantizer()
281 cpi->UVquant_fast[Q][0] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
282 invert_quant(cpi->sf.improved_quant, cpi->UVquant[Q] + 0, in vp8cx_init_quantizer()
283 cpi->UVquant_shift[Q] + 0, quant_val); in vp8cx_init_quantizer()
284 cpi->UVzbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7;; in vp8cx_init_quantizer()
285 cpi->UVround[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
286 cpi->common.UVdequant[Q][0] = quant_val; in vp8cx_init_quantizer()
287 cpi->zrun_zbin_boost_uv[Q][0] = (quant_val * zbin_boost[0]) >> 7; in vp8cx_init_quantizer()
290 quant_val = vp8_ac_yquant(Q); in vp8cx_init_quantizer()
291 cpi->Y1quant_fast[Q][1] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
292 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 1, in vp8cx_init_quantizer()
293 cpi->Y1quant_shift[Q] + 1, quant_val); in vp8cx_init_quantizer()
294 cpi->Y1zbin[Q][1] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer()
295 cpi->Y1round[Q][1] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
296 cpi->common.Y1dequant[Q][1] = quant_val; in vp8cx_init_quantizer()
297 cpi->zrun_zbin_boost_y1[Q][1] = (quant_val * zbin_boost[1]) >> 7; in vp8cx_init_quantizer()
299 quant_val = vp8_ac2quant(Q, cpi->common.y2ac_delta_q); in vp8cx_init_quantizer()
300 cpi->Y2quant_fast[Q][1] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
301 invert_quant(cpi->sf.improved_quant, cpi->Y2quant[Q] + 1, in vp8cx_init_quantizer()
302 cpi->Y2quant_shift[Q] + 1, quant_val); in vp8cx_init_quantizer()
303 cpi->Y2zbin[Q][1] = ((qzbin_factors_y2[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer()
304 cpi->Y2round[Q][1] = (qrounding_factors_y2[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
305 cpi->common.Y2dequant[Q][1] = quant_val; in vp8cx_init_quantizer()
306 cpi->zrun_zbin_boost_y2[Q][1] = (quant_val * zbin_boost[1]) >> 7; in vp8cx_init_quantizer()
308 quant_val = vp8_ac_uv_quant(Q, cpi->common.uvac_delta_q); in vp8cx_init_quantizer()
309 cpi->UVquant_fast[Q][1] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
310 invert_quant(cpi->sf.improved_quant, cpi->UVquant[Q] + 1, in vp8cx_init_quantizer()
311 cpi->UVquant_shift[Q] + 1, quant_val); in vp8cx_init_quantizer()
312 cpi->UVzbin[Q][1] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer()
313 cpi->UVround[Q][1] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
314 cpi->common.UVdequant[Q][1] = quant_val; in vp8cx_init_quantizer()
315 cpi->zrun_zbin_boost_uv[Q][1] = (quant_val * zbin_boost[1]) >> 7; in vp8cx_init_quantizer()
319 cpi->Y1quant_fast[Q][i] = cpi->Y1quant_fast[Q][1]; in vp8cx_init_quantizer()
320 cpi->Y1quant[Q][i] = cpi->Y1quant[Q][1]; in vp8cx_init_quantizer()
321 cpi->Y1quant_shift[Q][i] = cpi->Y1quant_shift[Q][1]; in vp8cx_init_quantizer()
322 cpi->Y1zbin[Q][i] = cpi->Y1zbin[Q][1]; in vp8cx_init_quantizer()
323 cpi->Y1round[Q][i] = cpi->Y1round[Q][1]; in vp8cx_init_quantizer()
324 cpi->zrun_zbin_boost_y1[Q][i] = (cpi->common.Y1dequant[Q][1] * in vp8cx_init_quantizer()
327 cpi->Y2quant_fast[Q][i] = cpi->Y2quant_fast[Q][1]; in vp8cx_init_quantizer()
328 cpi->Y2quant[Q][i] = cpi->Y2quant[Q][1]; in vp8cx_init_quantizer()
329 cpi->Y2quant_shift[Q][i] = cpi->Y2quant_shift[Q][1]; in vp8cx_init_quantizer()
330 cpi->Y2zbin[Q][i] = cpi->Y2zbin[Q][1]; in vp8cx_init_quantizer()
331 cpi->Y2round[Q][i] = cpi->Y2round[Q][1]; in vp8cx_init_quantizer()
332 cpi->zrun_zbin_boost_y2[Q][i] = (cpi->common.Y2dequant[Q][1] * in vp8cx_init_quantizer()
335 cpi->UVquant_fast[Q][i] = cpi->UVquant_fast[Q][1]; in vp8cx_init_quantizer()
336 cpi->UVquant[Q][i] = cpi->UVquant[Q][1]; in vp8cx_init_quantizer()
337 cpi->UVquant_shift[Q][i] = cpi->UVquant_shift[Q][1]; in vp8cx_init_quantizer()
338 cpi->UVzbin[Q][i] = cpi->UVzbin[Q][1]; in vp8cx_init_quantizer()
339 cpi->UVround[Q][i] = cpi->UVround[Q][1]; in vp8cx_init_quantizer()
340 cpi->zrun_zbin_boost_uv[Q][i] = (cpi->common.UVdequant[Q][1] * in vp8cx_init_quantizer()
532 void vp8_set_quantizer(struct VP8_COMP *cpi, int Q) in vp8_set_quantizer() argument
539 cm->base_qindex = Q; in vp8_set_quantizer()
547 if (Q < 4) in vp8_set_quantizer()
549 new_delta_q = 4-Q; in vp8_set_quantizer()
562 if (cpi->oxcf.screen_content_mode && Q > 40) { in vp8_set_quantizer()
563 new_uv_delta_q = -(int)(0.15 * Q); in vp8_set_quantizer()