dml_round_to_multiple
detile_buf_plane1_addr = dml_round_to_multiple((unsigned int) ((2.0 * detile_buf_size_in_bytes) / 3.0),
full_swath_bytes_packed_l = dml_round_to_multiple(rq_param->misc.rq_l.full_swath_bytes * 2 / 3,
full_swath_bytes_packed_c = dml_round_to_multiple(rq_param->misc.rq_c.full_swath_bytes * 2 / 3,
rq_dlg_param->swath_width_ub = dml_round_to_multiple(vp_width - 1, blk256_width, 1)
rq_dlg_param->swath_width_ub = dml_round_to_multiple(vp_height - 1, blk256_height, 1)
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1)
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1)
* (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1) + meta_blk_height)
meta_pte_req_per_frame_ub = (dml_round_to_multiple(meta_surface_bytes - vmpg_bytes,
dpte_row_width_ub = dml_round_to_multiple(data_pitch * dpte_row_height - 1,
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1)
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1)
detile_buf_plane1_addr = dml_round_to_multiple((unsigned int) ((2.0 * detile_buf_size_in_bytes) / 3.0),
full_swath_bytes_packed_l = dml_round_to_multiple(rq_param->misc.rq_l.full_swath_bytes * 2 / 3,
full_swath_bytes_packed_c = dml_round_to_multiple(rq_param->misc.rq_c.full_swath_bytes * 2 / 3,
rq_dlg_param->swath_width_ub = dml_round_to_multiple(vp_width - 1, blk256_width, 1)
rq_dlg_param->swath_width_ub = dml_round_to_multiple(vp_height - 1, blk256_height, 1)
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1)
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1)
* (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1) + meta_blk_height)
meta_pte_req_per_frame_ub = (dml_round_to_multiple(meta_surface_bytes - vmpg_bytes,
dpte_row_width_ub = dml_round_to_multiple(data_pitch * dpte_row_height - 1,
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1)
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1)
detile_buf_plane1_addr = dml_round_to_multiple(
full_swath_bytes_packed_l = dml_round_to_multiple(
full_swath_bytes_packed_c = dml_round_to_multiple(
rq_dlg_param->swath_width_ub = dml_round_to_multiple(vp_width - 1, blk256_width, 1)
rq_dlg_param->swath_width_ub = dml_round_to_multiple(
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1)
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1)
* (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1)
meta_pte_req_per_frame_ub = (dml_round_to_multiple(
dpte_row_width_ub = dml_round_to_multiple(
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1)
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1)
detile_buf_plane1_addr = dml_round_to_multiple((unsigned int)((2.0 * detile_buf_size_in_bytes) / 3.0),
full_swath_bytes_packed_l = dml_round_to_multiple(rq_param->misc.rq_l.full_swath_bytes * 2.0 / 3.0,
full_swath_bytes_packed_c = dml_round_to_multiple(rq_param->misc.rq_c.full_swath_bytes * 2.0 / 3.0,
temp = dml_round_to_multiple(vp_width - 1, blk256_width, 1) + blk256_width;
temp = dml_round_to_multiple(vp_height - 1, blk256_height, 1) + blk256_height;
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1)
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1)
* (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1) + meta_blk_height)
meta_pte_req_per_frame_ub = (dml_round_to_multiple(meta_surface_bytes - vmpg_bytes,
dpte_row_width_ub = dml_round_to_multiple(data_pitch * dpte_row_height - 1,
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1)
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1)
detile_buf_plane1_addr = dml_round_to_multiple((unsigned int) ((2.0 * detile_buf_size_in_bytes) / 3.0), 1024, 0) / 1024.0; // 2/3 to luma
full_swath_bytes_packed_l = dml_round_to_multiple(rq_param->misc.rq_l.full_swath_bytes * 2.0 / 3.0, 256, 1) + 256;
full_swath_bytes_packed_c = dml_round_to_multiple(rq_param->misc.rq_c.full_swath_bytes * 2.0 / 3.0, 256, 1) + 256;
temp = dml_round_to_multiple(vp_width - 1, blk256_width, 1) + blk256_width;
temp = dml_round_to_multiple(vp_height - 1, blk256_height, 1) + blk256_height;
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1) + meta_req_width;
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1) + meta_req_height;
meta_surface_bytes = meta_pitch * (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1) + meta_blk_height) * bytes_per_element / 256;
meta_pte_req_per_frame_ub = (dml_round_to_multiple(meta_surface_bytes - vmpg_bytes, 8 * vmpg_bytes, 1) + 8 * vmpg_bytes) / (8 * vmpg_bytes);
dpte_row_width_ub = dml_round_to_multiple(data_pitch * dpte_row_height - 1, dpte_req_width, 1) + dpte_req_width;
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1) + dpte_req_width;
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1) + dpte_req_height;
detile_buf_plane1_addr = dml_round_to_multiple((unsigned int) ((2.0 * detile_buf_size_in_bytes) / 3.0), 1024, 0) / 1024.0; // 2/3 to luma
full_swath_bytes_packed_l = dml_round_to_multiple(rq_param->misc.rq_l.full_swath_bytes * 2.0 / 3.0, 256, 1) + 256;
full_swath_bytes_packed_c = dml_round_to_multiple(rq_param->misc.rq_c.full_swath_bytes * 2.0 / 3.0, 256, 1) + 256;
temp = dml_round_to_multiple(vp_width - 1, blk256_width, 1) + blk256_width;
temp = dml_round_to_multiple(vp_height - 1, blk256_height, 1) + blk256_height;
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1) + meta_req_width;
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1) + meta_req_height;
meta_surface_bytes = meta_pitch * (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1) + meta_blk_height) * bytes_per_element / 256;
meta_pte_req_per_frame_ub = (dml_round_to_multiple(meta_surface_bytes - vmpg_bytes, 8 * vmpg_bytes, 1) + 8 * vmpg_bytes) / (8 * vmpg_bytes);
dpte_row_width_ub = dml_round_to_multiple(data_pitch * dpte_row_height - 1, dpte_req_width, 1) + dpte_req_width;
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1) + dpte_req_width;
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1) + dpte_req_height;
dml_round_to_multiple(
detile_buf_plane1_addr = dml_round_to_multiple(
full_swath_bytes_packed_l = dml_round_to_multiple(
full_swath_bytes_packed_c = dml_round_to_multiple(
rq_dlg_param->swath_width_ub = dml_round_to_multiple(vp_width - 1, blk256_width, 1)
rq_dlg_param->swath_width_ub = dml_round_to_multiple(
meta_row_width_ub = dml_round_to_multiple(vp_width - 1, meta_req_width, 1)
meta_row_width_ub = dml_round_to_multiple(vp_height - 1, meta_req_height, 1)
* (dml_round_to_multiple(vp_height - 1, meta_blk_height, 1)
meta_pte_req_per_frame_ub = (dml_round_to_multiple(
dpte_row_width_ub = dml_round_to_multiple(
dpte_row_width_ub = dml_round_to_multiple(vp_width - 1, dpte_req_width, 1)
dpte_row_width_ub = dml_round_to_multiple(vp_height - 1, dpte_req_height, 1)
__DML_DLL_EXPORT__ dml_uint_t dml_round_to_multiple(dml_uint_t num, dml_uint_t multiple, dml_bool_t up);
detile_buf_plane1_addr = (unsigned int)(dml_round_to_multiple((unsigned int)((2.0 * detile_buf_size_in_bytes) / 3.0), 1024, 0) / 1024.0); // 2/3 to luma
detile_buf_plane1_addr = (dml_uint_t)(dml_round_to_multiple((dml_uint_t)((2.0 * detile_buf_size_in_bytes) / 3.0), 1024, 0) / 1024.0); // 2/3 to luma