Lines Matching refs:subpicture_priv
265 XvMCSubpicturePrivate *subpicture_priv; in XvMCCreateSubpicture() local
293 subpicture_priv = CALLOC(1, sizeof(XvMCSubpicturePrivate)); in XvMCCreateSubpicture()
294 if (!subpicture_priv) in XvMCCreateSubpicture()
323 subpicture_priv->sampler = pipe->create_sampler_view(pipe, tex, &sampler_templ); in XvMCCreateSubpicture()
325 if (!subpicture_priv->sampler) { in XvMCCreateSubpicture()
326 FREE(subpicture_priv); in XvMCCreateSubpicture()
330 subpicture_priv->context = context; in XvMCCreateSubpicture()
340 subpicture->privData = subpicture_priv; in XvMCCreateSubpicture()
354 subpicture_priv->palette = pipe->create_sampler_view(pipe, tex, &sampler_templ); in XvMCCreateSubpicture()
356 if (!subpicture_priv->sampler) { in XvMCCreateSubpicture()
357 FREE(subpicture_priv); in XvMCCreateSubpicture()
373 XvMCSubpicturePrivate *subpicture_priv; in XvMCClearSubpicture() local
390 subpicture_priv = subpicture->privData; in XvMCClearSubpicture()
391 context_priv = subpicture_priv->context->privData; in XvMCClearSubpicture()
393 dst = subpicture_priv->sampler; in XvMCClearSubpicture()
413 XvMCSubpicturePrivate *subpicture_priv; in XvMCCompositeSubpicture() local
435 subpicture_priv = subpicture->privData; in XvMCCompositeSubpicture()
436 context_priv = subpicture_priv->context->privData; in XvMCCompositeSubpicture()
442 subpicture_priv->sampler->texture->format == PIPE_FORMAT_B4G4R4A4_UNORM) { in XvMCCompositeSubpicture()
443 upload_sampler_convert(pipe, subpicture_priv->sampler, &dst_box, image, srcx, srcy); in XvMCCompositeSubpicture()
445 … src_stride = image->width * util_format_get_blocksize(subpicture_priv->sampler->texture->format); in XvMCCompositeSubpicture()
446 upload_sampler(pipe, subpicture_priv->sampler, &dst_box, image->data, src_stride, srcx, srcy); in XvMCCompositeSubpicture()
457 XvMCSubpicturePrivate *subpicture_priv; in XvMCDestroySubpicture() local
466 subpicture_priv = subpicture->privData; in XvMCDestroySubpicture()
467 pipe_sampler_view_reference(&subpicture_priv->sampler, NULL); in XvMCDestroySubpicture()
468 pipe_sampler_view_reference(&subpicture_priv->palette, NULL); in XvMCDestroySubpicture()
469 FREE(subpicture_priv); in XvMCDestroySubpicture()
479 XvMCSubpicturePrivate *subpicture_priv; in XvMCSetSubpicturePalette() local
490 subpicture_priv = subpicture->privData; in XvMCSetSubpicturePalette()
491 context_priv = subpicture_priv->context->privData; in XvMCSetSubpicturePalette()
496 upload_sampler(pipe, subpicture_priv->palette, &dst_box, palette, 0, 0, 0); in XvMCSetSubpicturePalette()
512 XvMCSubpicturePrivate *subpicture_priv; in XvMCBlendSubpicture() local
530 subpicture_priv = subpicture->privData; in XvMCBlendSubpicture()
533 subpicture_priv->src_rect = src_rect; in XvMCBlendSubpicture()
534 subpicture_priv->dst_rect = dst_rect; in XvMCBlendSubpicture()
537 subpicture_priv->surface = target_surface; in XvMCBlendSubpicture()