linux/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
/* _dpu_get_v_h_subsample_rate - Get subsample rates for all formats we support
 *   Note: Not using the drm_format_*_subsampling since we have formats
 */
Get subsample rates for all formats we support
Note: Not using the drm_format_*_subsampling since we have formats
Get subsample rates for all formats we support Note : Not using the drm_format_ * _subsampling since we have formats
static void _dpu_get_v_h_subsample_rate(
	enum dpu_chroma_samp_type chroma_sample,
	uint32_t *v_sample,
	uint32_t *h_sample)
{
	if (!v_sample || !h_sample)
		return;
	switch (chroma_sample) {
	case DPU_CHROMA_H2V1:
		*v_sample = 1;
		*h_sample = 2;
		break;
	case DPU_CHROMA_H1V2:
		*v_sample = 2;
		*h_sample = 1;
		break;
	case DPU_CHROMA_420:
		*v_sample = 2;
		*h_sample = 2;
		break;
	default:
		*v_sample = 1;
		*h_sample = 1;
		break;
	}
}
static void _dpu_get_v_h_subsample_rate ( enum dpu_chroma_samp_type chroma_sample , uint32_t * v_sample , uint32_t * h_sample ) { if ( ! v_sample || ! h_sample ) return ; switch ( chroma_sample ) { case DPU_CHROMA_H2V1 : * v_sample = 1 ; * h_sample = 2 ; break ; case DPU_CHROMA_H1V2 : * v_sample = 2 ; * h_sample = 1 ; break ; case DPU_CHROMA_420 : * v_sample = 2 ; * h_sample = 2 ; break ; default : * v_sample = 1 ; * h_sample = 1 ; break ; } }
_dpu_get_v_h_subsample_rate - Get subsample rates for all formats we support
   Note: Not using the drm_format_*_subsampling since we have formats
_dpu_get_v_h_subsample_rate - Get subsample rates for all formats we support Note : Not using the drm_format_ * _subsampling since we have formats