Lines Matching defs:scale
275 static unsigned char jpeg_scale_qp(const unsigned char qp, int scale)
279 temp = DIV_ROUND_CLOSEST((unsigned int)qp * scale, 100);
291 const unsigned char *tab, int scale)
299 file_q_tab[i] = jpeg_scale_qp(tab[zigzag[i]], scale);
300 reordered_q_tab[i] = jpeg_scale_qp(tab[hw_reorder[i]], scale);
306 int scale;
313 scale = 5000 / ctx->quality;
315 scale = 200 - 2 * ctx->quality;
323 ctx->hw_luma_qtable, luma_q_table, scale);
325 ctx->hw_chroma_qtable, chroma_q_table, scale);