uint32_t max_references,
VdpDecoder *decoder)
{
+ return VDP_STATUS_NO_IMPLEMENTATION;
+
+#if 0
enum pipe_video_profile p_profile = PIPE_VIDEO_PROFILE_UNKNOWN;
VdpStatus ret = VDP_STATUS_OK;
vlVdpDecoder *vldecoder = NULL;
no_decoder:
inv_device:
return ret;
+#endif
}
VdpStatus
vlVdpDecoderDestroy(VdpDecoder decoder)
{
+ return VDP_STATUS_NO_IMPLEMENTATION;
+
+#if 0
debug_printf("[VDPAU] Destroying decoder\n");
vlVdpDecoder *vldecoder;
FREE(vldecoder);
return VDP_STATUS_OK;
+#endif
}
+#if 0
VdpStatus
vlVdpCreateSurfaceTarget(vlVdpDecoder *vldecoder, vlVdpSurface *vlsurf)
{
memset(&surf_template, 0, sizeof(surf_template));
surf_template.format = surf_tex->format;
surf_template.usage = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET;
- vlsurf->psurface = vctx->create_surface(vctx->screen, surf_tex, &surf_template);
+ //vlsurf->psurface = vctx->create_surface(vctx->screen, surf_tex, &surf_template);
pipe_resource_reference(&surf_tex, NULL);
- if (!vlsurf->psurface)
- return VDP_STATUS_RESOURCES;
+ //if (!vlsurf->psurface)
+ // return VDP_STATUS_RESOURCES;
debug_printf("[VDPAU] Done creating surface\n");
return VDP_STATUS_OK;
skip_frame:
return ret;
}
+#endif
VdpStatus
vlVdpDecoderRender(VdpDecoder decoder,
uint32_t bitstream_buffer_count,
VdpBitstreamBuffer const *bitstream_buffers)
{
+ return VDP_STATUS_NO_IMPLEMENTATION;
+
+#if 0
vlVdpDecoder *vldecoder;
vlVdpSurface *vlsurf;
struct vl_screen *vscreen;
assert(0);
return ret;
+#endif
}
VdpStatus
return VDP_STATUS_OK;
no_handle:
- FREE(p_surf->psurface);
+ //FREE(p_surf->psurface);
inv_device:
no_surf:
FREE(p_surf);
if (!p_surf)
return VDP_STATUS_INVALID_HANDLE;
- if (p_surf->psurface) {
- if (p_surf->psurface->texture) {
- if (p_surf->psurface->texture->screen)
- p_surf->psurface->context->surface_destroy(p_surf->psurface->context, p_surf->psurface);
- }
- }
+ //if (p_surf->psurface) {
+ // if (p_surf->psurface->texture) {
+ // if (p_surf->psurface->texture->screen)
+ // p_surf->psurface->context->surface_destroy(p_surf->psurface->context, p_surf->psurface);
+ // }
+ //}
FREE(p_surf);
return VDP_STATUS_OK;
}
if (!p_surf)
return VDP_STATUS_INVALID_HANDLE;
- if (!p_surf->psurface)
- return VDP_STATUS_RESOURCES;
+ //if (!p_surf->psurface)
+ // return VDP_STATUS_RESOURCES;
return VDP_STATUS_OK;
}