Lines Matching refs:sgm
153 memset(pps->sgm.id_cnt, 0, sizeof(pps->sgm.id_cnt)); in set_segmentation()
165 pps->sgm.id_cnt[id]++; in set_segmentation()
177 } else if (pps->segment_enabled && pps->sgm.map_modified) { in set_segmentation()
178 memset(pps->sgm.id_cnt, 0, sizeof(pps->sgm.id_cnt)); in set_segmentation()
185 pps->sgm.id_cnt[id]++; in set_segmentation()
232 Sgm *sgm = &ppss->pps->sgm; in set_hdr_segmentation() local
241 sgm->map_modified = 1; in set_hdr_segmentation()
244 vp8e_put_lit(bitbuf, sgm->map_modified, 1); in set_hdr_segmentation()
265 if (sgm->map_modified) { in set_hdr_segmentation()
266 RK_S32 sum1 = sgm->id_cnt[0] + sgm->id_cnt[1]; in set_hdr_segmentation()
267 RK_S32 sum2 = sgm->id_cnt[2] + sgm->id_cnt[3]; in set_hdr_segmentation()
272 tmp = sum1 ? 255 * sgm->id_cnt[0] / sum1 : 255; in set_hdr_segmentation()
275 tmp = sum2 ? 255 * sgm->id_cnt[2] / sum2 : 255; in set_hdr_segmentation()
279 if (sgm->id_cnt[i] != 0) { in set_hdr_segmentation()
584 hw_cfg->segment_map_update = ctx->ppss.pps->sgm.map_modified; in set_new_frame()
586 ctx->ppss.pps->sgm.map_modified = 0; in set_new_frame()
1196 ctx->ppss.pps->sgm.map_modified = 0; in set_picbuf()