Lines Matching refs:plane
379 static inline unsigned tpg_g_twopixelsize(const struct tpg_data *tpg, unsigned plane) in tpg_g_twopixelsize() argument
381 return tpg->twopixelsize[plane]; in tpg_g_twopixelsize()
385 unsigned plane, unsigned x) in tpg_hdiv() argument
387 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
388 tpg->twopixelsize[plane] / 2; in tpg_hdiv()
397 unsigned plane, unsigned x) in tpg_hscale_div() argument
399 return tpg_hdiv(tpg, plane, tpg_hscale(tpg, x)); in tpg_hscale_div()
402 static inline unsigned tpg_g_bytesperline(const struct tpg_data *tpg, unsigned plane) in tpg_g_bytesperline() argument
404 return tpg->bytesperline[plane]; in tpg_g_bytesperline()
407 static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl) in tpg_s_bytesperline() argument
412 tpg->bytesperline[plane] = bpl; in tpg_s_bytesperline()
424 static inline unsigned tpg_g_line_width(const struct tpg_data *tpg, unsigned plane) in tpg_g_line_width() argument
430 return tpg_g_bytesperline(tpg, plane); in tpg_g_line_width()
440 unsigned plane, unsigned bpl) in tpg_calc_line_width() argument
456 static inline unsigned tpg_calc_plane_size(const struct tpg_data *tpg, unsigned plane) in tpg_calc_plane_size() argument
458 if (plane >= tpg_g_planes(tpg)) in tpg_calc_plane_size()
461 return tpg_g_bytesperline(tpg, plane) * tpg->buf_height / in tpg_calc_plane_size()
462 tpg->vdownsampling[plane]; in tpg_calc_plane_size()