mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
vdpau: add compositor to mixer
This commit is contained in:
parent
6710e690f6
commit
574ffb440d
2 changed files with 7 additions and 1 deletions
|
|
@ -39,8 +39,9 @@ vlVdpVideoMixerCreate(VdpDevice device,
|
|||
void const *const *parameter_values,
|
||||
VdpVideoMixer *mixer)
|
||||
{
|
||||
VdpStatus ret;
|
||||
vlVdpVideoMixer *vmixer = NULL;
|
||||
struct pipe_video_context *context;
|
||||
VdpStatus ret;
|
||||
|
||||
debug_printf("[VDPAU] Creating VideoMixer\n");
|
||||
|
||||
|
|
@ -48,11 +49,15 @@ vlVdpVideoMixerCreate(VdpDevice device,
|
|||
if (!dev)
|
||||
return VDP_STATUS_INVALID_HANDLE;
|
||||
|
||||
context = dev->context->vpipe;
|
||||
|
||||
vmixer = CALLOC(1, sizeof(vlVdpVideoMixer));
|
||||
if (!vmixer)
|
||||
return VDP_STATUS_RESOURCES;
|
||||
|
||||
vmixer->device = dev;
|
||||
vmixer->compositor = context->create_compositor(context);
|
||||
|
||||
/*
|
||||
* TODO: Handle features and parameters
|
||||
* */
|
||||
|
|
|
|||
|
|
@ -189,6 +189,7 @@ typedef struct
|
|||
typedef struct
|
||||
{
|
||||
vlVdpDevice *device;
|
||||
struct pipe_video_compositor *compositor;
|
||||
} vlVdpVideoMixer;
|
||||
|
||||
typedef struct
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue