Lines Matching full:subpicture
127 XVMC_MSG(XVMC_TRACE, "[XvMC] Found requested subpicture format.\n" \
194 Status XvMCCreateSubpicture(Display *dpy, XvMCContext *context, XvMCSubpicture *subpicture,
204 XVMC_MSG(XVMC_TRACE, "[XvMC] Creating subpicture %p.\n", subpicture);
214 if (!subpicture)
262 subpicture->subpicture_id = XAllocID(dpy);
263 subpicture->context_id = context->context_id;
264 subpicture->xvimage_id = xvimage_id;
265 subpicture->width = width;
266 subpicture->height = height;
267 subpicture->num_palette_entries = NumPaletteEntries4XvID(xvimage_id);
268 subpicture->entry_bytes = PipeToComponentOrder(tex_templ.format, subpicture->component_order);
269 subpicture->privData = subpicture_priv;
271 if (subpicture->num_palette_entries > 0) {
274 tex_templ.width0 = subpicture->num_palette_entries;
293 XVMC_MSG(XVMC_TRACE, "[XvMC] Subpicture %p created.\n", subpicture);
299 Status XvMCClearSubpicture(Display *dpy, XvMCSubpicture *subpicture, short x, short y,
313 if (!subpicture)
321 subpicture_priv = subpicture->privData;
345 Status XvMCCompositeSubpicture(Display *dpy, XvMCSubpicture *subpicture, XvImage *image,
355 XVMC_MSG(XVMC_TRACE, "[XvMC] Compositing subpicture %p.\n", subpicture);
359 if (!subpicture)
364 if (subpicture->xvimage_id != image->id)
371 subpicture_priv = subpicture->privData;
380 XVMC_MSG(XVMC_TRACE, "[XvMC] Subpicture %p composited.\n", subpicture);
386 Status XvMCDestroySubpicture(Display *dpy, XvMCSubpicture *subpicture)
390 XVMC_MSG(XVMC_TRACE, "[XvMC] Destroying subpicture %p.\n", subpicture);
394 if (!subpicture)
397 subpicture_priv = subpicture->privData;
402 XVMC_MSG(XVMC_TRACE, "[XvMC] Subpicture %p destroyed.\n", subpicture);
408 Status XvMCSetSubpicturePalette(Display *dpy, XvMCSubpicture *subpicture, unsigned char *palette)
418 if (!subpicture)
421 subpicture_priv = subpicture->privData;
425 dst_box.width = subpicture->num_palette_entries;
429 XVMC_MSG(XVMC_TRACE, "[XvMC] Palette of Subpicture %p set.\n", subpicture);
435 Status XvMCBlendSubpicture(Display *dpy, XvMCSurface *target_surface, XvMCSubpicture *subpicture,
445 XVMC_MSG(XVMC_TRACE, "[XvMC] Associating subpicture %p with surface %p.\n", subpicture, target_surface);
452 if (!subpicture)
455 if (target_surface->context_id != subpicture->context_id)
458 /* TODO: Verify against subpicture independent scaling */
461 subpicture_priv = subpicture->privData;
467 surface_priv->subpicture = subpicture;
475 XvMCSubpicture *subpicture, short subx, short suby, unsigned short subw, unsigned short subh,
483 if (!subpicture)
486 if (source_surface->context_id != subpicture->context_id)
489 if (source_surface->context_id != subpicture->context_id)
498 Status XvMCSyncSubpicture(Display *dpy, XvMCSubpicture *subpicture)
502 if (!subpicture)
509 Status XvMCFlushSubpicture(Display *dpy, XvMCSubpicture *subpicture)
513 if (!subpicture)
520 Status XvMCGetSubpictureStatus(Display *dpy, XvMCSubpicture *subpicture, int *status)
524 if (!subpicture)