Searched refs:surface_subpic (Results 1 – 2 of 2) sorted by relevance
341 …subpic_size(int surf_width, int surf_height, int dst_w, int dst_h, PsbVASurfaceRec *surface_subpic) in psb_calculate_subpic_size() argument350 subpic_h_ratio = (float)surface_subpic->subpic_srcw / surface_subpic->subpic_dstw; in psb_calculate_subpic_size()351 subpic_v_ratio = (float)surface_subpic->subpic_srch / surface_subpic->subpic_dsth; in psb_calculate_subpic_size()353 subpic_h_dest_ratio = (float)dst_w / surface_subpic->subpic_dstw; in psb_calculate_subpic_size()354 subpic_v_dest_ratio = (float)dst_h / surface_subpic->subpic_dsth; in psb_calculate_subpic_size()356 if (!(surface_subpic->subpic_flags & VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD)) { in psb_calculate_subpic_size()358 surface_subpic->subpic_dstx /= src_h_ratio; in psb_calculate_subpic_size()359 surface_subpic->subpic_dsty /= src_v_ratio; in psb_calculate_subpic_size()360 surface_subpic->subpic_dstx /= subpic_h_ratio; in psb_calculate_subpic_size()361 surface_subpic->subpic_dsty /= subpic_v_ratio; in psb_calculate_subpic_size()[all …]
1293 PsbVASurfaceRec *surface_subpic; in psb__LinkSubpictIntoSurface() local1308 surface_subpic = (PsbVASurfaceRec *)obj_surface->subpictures; in psb__LinkSubpictIntoSurface()1310 if (surface_subpic->subpic_id == obj_subpic->subpic_id) { in psb__LinkSubpictIntoSurface()1314 surface_subpic = surface_subpic->next; in psb__LinkSubpictIntoSurface()1315 } while (surface_subpic); in psb__LinkSubpictIntoSurface()1324 surface_subpic = (PsbVASurfaceRec *)calloc(1, sizeof(*surface_subpic)); in psb__LinkSubpictIntoSurface()1325 if (NULL == surface_subpic) in psb__LinkSubpictIntoSurface()1329 surface_subpic->subpic_id = obj_subpic->subpic_id; in psb__LinkSubpictIntoSurface()1330 surface_subpic->fourcc = image->format.fourcc; in psb__LinkSubpictIntoSurface()1331 surface_subpic->size = image->data_size; in psb__LinkSubpictIntoSurface()[all …]