Lines Matching refs:plane
434 static inline unsigned tpg_g_twopixelsize(const struct tpg_data *tpg, unsigned plane) in tpg_g_twopixelsize() argument
436 return tpg->twopixelsize[plane]; in tpg_g_twopixelsize()
440 unsigned plane, unsigned x) in tpg_hdiv() argument
442 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
443 tpg->twopixelsize[plane] / 2; in tpg_hdiv()
452 unsigned plane, unsigned x) in tpg_hscale_div() argument
454 return tpg_hdiv(tpg, plane, tpg_hscale(tpg, x)); in tpg_hscale_div()
457 static inline unsigned tpg_g_bytesperline(const struct tpg_data *tpg, unsigned plane) in tpg_g_bytesperline() argument
459 return tpg->bytesperline[plane]; in tpg_g_bytesperline()
462 static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl) in tpg_s_bytesperline() argument
467 tpg->bytesperline[plane] = bpl; in tpg_s_bytesperline()
481 static inline unsigned tpg_g_line_width(const struct tpg_data *tpg, unsigned plane) in tpg_g_line_width() argument
487 return tpg_g_bytesperline(tpg, plane); in tpg_g_line_width()
497 unsigned plane, unsigned bpl) in tpg_calc_line_width() argument
513 static inline unsigned tpg_calc_plane_size(const struct tpg_data *tpg, unsigned plane) in tpg_calc_plane_size() argument
515 if (plane >= tpg_g_planes(tpg)) in tpg_calc_plane_size()
518 return tpg_g_bytesperline(tpg, plane) * tpg->buf_height / in tpg_calc_plane_size()
519 tpg->vdownsampling[plane]; in tpg_calc_plane_size()