Lines Matching refs:plane
359 static inline unsigned tpg_g_twopixelsize(const struct tpg_data *tpg, unsigned plane) in tpg_g_twopixelsize() argument
361 return tpg->twopixelsize[plane]; in tpg_g_twopixelsize()
365 unsigned plane, unsigned x) in tpg_hdiv() argument
367 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
368 tpg->twopixelsize[plane] / 2; in tpg_hdiv()
377 unsigned plane, unsigned x) in tpg_hscale_div() argument
379 return tpg_hdiv(tpg, plane, tpg_hscale(tpg, x)); in tpg_hscale_div()
382 static inline unsigned tpg_g_bytesperline(const struct tpg_data *tpg, unsigned plane) in tpg_g_bytesperline() argument
384 return tpg->bytesperline[plane]; in tpg_g_bytesperline()
387 static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl) in tpg_s_bytesperline() argument
392 tpg->bytesperline[plane] = bpl; in tpg_s_bytesperline()
404 static inline unsigned tpg_g_line_width(const struct tpg_data *tpg, unsigned plane) in tpg_g_line_width() argument
410 return tpg_g_bytesperline(tpg, plane); in tpg_g_line_width()
420 unsigned plane, unsigned bpl) in tpg_calc_line_width() argument
436 static inline unsigned tpg_calc_plane_size(const struct tpg_data *tpg, unsigned plane) in tpg_calc_plane_size() argument
438 if (plane >= tpg_g_planes(tpg)) in tpg_calc_plane_size()
441 return tpg_g_bytesperline(tpg, plane) * tpg->buf_height / in tpg_calc_plane_size()
442 tpg->vdownsampling[plane]; in tpg_calc_plane_size()