VdpStatus ret;
bool supported;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating decoder\n");
-
if (!decoder)
return VDP_STATUS_INVALID_POINTER;
*decoder = 0;
goto error_handle;
}
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Decoder created succesfully\n");
-
return VDP_STATUS_OK;
error_handle:
{
vlVdpDecoder *vldecoder;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying decoder\n");
-
vldecoder = (vlVdpDecoder *)vlGetDataHTAB(decoder);
if (!vldecoder)
return VDP_STATUS_INVALID_HANDLE;
{
vlVdpDecoder *vldecoder;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Decoder get parameters called\n");
-
vldecoder = (vlVdpDecoder *)vlGetDataHTAB(decoder);
if (!vldecoder)
return VDP_STATUS_INVALID_HANDLE;
struct pipe_h264_picture_desc h264;
} desc;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Decoding\n");
-
if (!(picture_info && bitstream_buffers))
return VDP_STATUS_INVALID_POINTER;
vl_compositor_init(&dev->compositor, dev->context->pipe);
*get_proc_address = &vlVdpGetProcAddress;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Device created succesfully\n");
return VDP_STATUS_OK;
vlVdpPresentationQueueTarget *pqt;
VdpStatus ret;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating PresentationQueueTarget\n");
-
if (!drawable)
return VDP_STATUS_INVALID_HANDLE;
{
vlVdpPresentationQueueTarget *pqt;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying PresentationQueueTarget\n");
-
pqt = vlGetDataHTAB(presentation_queue_target);
if (!pqt)
return VDP_STATUS_INVALID_HANDLE;
VdpStatus
vlVdpDeviceDestroy(VdpDevice device)
{
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying device\n");
-
vlVdpDevice *dev = vlGetDataHTAB(device);
if (!dev)
return VDP_STATUS_INVALID_HANDLE;
FREE(dev);
vlDestroyHTAB();
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Device destroyed successfully\n");
-
return VDP_STATUS_OK;
}
unsigned max_width, max_height, i;
enum pipe_video_profile prof = PIPE_VIDEO_PROFILE_UNKNOWN;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating VideoMixer\n");
-
vlVdpDevice *dev = vlGetDataHTAB(device);
if (!dev)
return VDP_STATUS_INVALID_HANDLE;
}
ret = VDP_STATUS_INVALID_VALUE;
if (vmixer->max_layers > 4) {
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Max layers > 4 not supported\n", vmixer->max_layers);
+ VDPAU_MSG(VDPAU_WARN, "[VDPAU] Max layers > 4 not supported\n", vmixer->max_layers);
goto no_params;
}
max_width = screen->get_video_param(screen, prof, PIPE_VIDEO_CAP_MAX_WIDTH);
max_height = screen->get_video_param(screen, prof, PIPE_VIDEO_CAP_MAX_HEIGHT);
if (vmixer->video_width < 48 ||
vmixer->video_width > max_width) {
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] 48 < %u < %u not valid for width\n", vmixer->video_width, max_width);
+ VDPAU_MSG(VDPAU_WARN, "[VDPAU] 48 < %u < %u not valid for width\n", vmixer->video_width, max_width);
goto no_params;
}
if (vmixer->video_height < 48 ||
vmixer->video_height > max_height) {
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] 48 < %u < %u not valid for height\n", vmixer->video_height, max_height);
+ VDPAU_MSG(VDPAU_WARN, "[VDPAU] 48 < %u < %u not valid for height\n", vmixer->video_height, max_height);
goto no_params;
}
vmixer->luma_key_min = 0.f;
{
vlVdpVideoMixer *vmixer;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying VideoMixer\n");
-
vmixer = vlGetDataHTAB(mixer);
if (!vmixer)
return VDP_STATUS_INVALID_HANDLE;
vlVdpOutputSurface *vlsurface = NULL;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating output surface\n");
if (!(width && height))
return VDP_STATUS_INVALID_SIZE;
{
vlVdpOutputSurface *vlsurface;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying output surface\n");
-
vlsurface = vlGetDataHTAB(surface);
if (!vlsurface)
return VDP_STATUS_INVALID_HANDLE;
{
vlVdpOutputSurface *vlsurface;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Getting output surface parameters\n");
-
vlsurface = vlGetDataHTAB(surface);
if (!vlsurface)
return VDP_STATUS_INVALID_HANDLE;
struct pipe_box box;
struct pipe_video_rect dst_rect;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Uploading indexed output surface\n");
-
vlsurface = vlGetDataHTAB(surface);
if (!vlsurface)
return VDP_STATUS_INVALID_HANDLE;
void *blend;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Composing output surfaces\n");
-
dst_vlsurface = vlGetDataHTAB(destination_surface);
if (!dst_vlsurface)
return VDP_STATUS_INVALID_HANDLE;
vlVdpPresentationQueue *pq = NULL;
VdpStatus ret;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating PresentationQueue\n");
-
if (!presentation_queue)
return VDP_STATUS_INVALID_POINTER;
{
vlVdpPresentationQueue *pq;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying PresentationQueue\n");
-
pq = vlGetDataHTAB(presentation_queue);
if (!pq)
return VDP_STATUS_INVALID_HANDLE;
vlVdpPresentationQueue *pq;
union pipe_color_union color;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Setting background color\n");
-
if (!background_color)
return VDP_STATUS_INVALID_POINTER;
vlVdpPresentationQueue *pq;
union pipe_color_union color;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Getting background color\n");
-
if (!background_color)
return VDP_STATUS_INVALID_POINTER;
vlVdpPresentationQueue *pq;
struct timespec ts;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Getting queue time\n");
-
if (!current_time)
return VDP_STATUS_INVALID_POINTER;
sprintf(cmd, "xwd -id %d -out vdpau_frame_%08d.xwd", (int)pq->drawable, ++framenum);
if (system(cmd) != 0)
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Dumping surface %d failed.\n", surface);
+ VDPAU_MSG(VDPAU_ERR, "[VDPAU] Dumping surface %d failed.\n", surface);
}
pipe_surface_reference(&drawable_surface, NULL);
struct pipe_screen *pscreen;
uint32_t max_2d_texture_level;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpVideoSurface capabilities\n");
-
if (!(is_supported && max_width && max_height))
return VDP_STATUS_INVALID_POINTER;
vlVdpDevice *dev;
struct pipe_screen *pscreen;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpVideoSurface get/put bits YCbCr capabilities\n");
-
if (!is_supported)
return VDP_STATUS_INVALID_POINTER;
struct pipe_screen *pscreen;
enum pipe_video_profile p_profile;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpDecoder capabilities\n");
-
if (!(is_supported && max_level && max_macroblocks && max_width && max_height))
return VDP_STATUS_INVALID_POINTER;
struct pipe_screen *pscreen;
enum pipe_format format;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpOutputSurface capabilities\n");
-
dev = vlGetDataHTAB(device);
if (!dev)
return VDP_STATUS_INVALID_HANDLE;
vlVdpOutputSurfaceQueryGetPutBitsNativeCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba_format,
VdpBool *is_supported)
{
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpOutputSurface get/put bits native capabilities\n");
-
if (!is_supported)
return VDP_STATUS_INVALID_POINTER;
VdpColorTableFormat color_table_format,
VdpBool *is_supported)
{
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpOutputSurface put bits indexed capabilities\n");
-
if (!is_supported)
return VDP_STATUS_INVALID_POINTER;
VdpYCbCrFormat bits_ycbcr_format,
VdpBool *is_supported)
{
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpOutputSurface put bits YCbCr capabilities\n");
-
if (!is_supported)
return VDP_STATUS_INVALID_POINTER;
vlVdpBitmapSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba_format,
VdpBool *is_supported, uint32_t *max_width, uint32_t *max_height)
{
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpBitmapSurface capabilities\n");
-
if (!(is_supported && max_width && max_height))
return VDP_STATUS_INVALID_POINTER;
vlVdpSurface *p_surf;
VdpStatus ret;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating a surface\n");
-
if (!(width && height)) {
ret = VDP_STATUS_INVALID_SIZE;
goto inv_size;