Lines Matching refs:vlsurf
426 vlVdpSurface *vlsurf; in vlVdpDecoderRender() local
449 vlsurf = (vlVdpSurface *)vlGetDataHTAB(target); in vlVdpDecoderRender()
450 if (!vlsurf) in vlVdpDecoderRender()
453 if (vlsurf->device != vldecoder->device) in vlVdpDecoderRender()
456 if (vlsurf->video_buffer != NULL && vlsurf->video_buffer->chroma_format != dec->chroma_format) in vlVdpDecoderRender()
460 pipe_mutex_lock(vlsurf->device->mutex); in vlVdpDecoderRender()
465 if (vlsurf->video_buffer == NULL || in vlVdpDecoderRender()
466 … !screen->is_video_format_supported(screen, vlsurf->video_buffer->buffer_format, dec->profile) || in vlVdpDecoderRender()
467 !buffer_support[vlsurf->video_buffer->interlaced]) { in vlVdpDecoderRender()
470 if (vlsurf->video_buffer) in vlVdpDecoderRender()
471 vlsurf->video_buffer->destroy(vlsurf->video_buffer); in vlVdpDecoderRender()
474 …vlsurf->templat.buffer_format = screen->get_video_param(screen, dec->profile, PIPE_VIDEO_CAP_PREFE… in vlVdpDecoderRender()
477 …vlsurf->templat.interlaced = screen->get_video_param(screen, dec->profile, PIPE_VIDEO_CAP_PREFERS_… in vlVdpDecoderRender()
480 vlsurf->video_buffer = dec->context->create_video_buffer(dec->context, &vlsurf->templat); in vlVdpDecoderRender()
483 if (!vlsurf->video_buffer) { in vlVdpDecoderRender()
484 pipe_mutex_unlock(vlsurf->device->mutex); in vlVdpDecoderRender()
487 vlVdpVideoSurfaceClear(vlsurf); in vlVdpDecoderRender()
513 pipe_mutex_unlock(vlsurf->device->mutex); in vlVdpDecoderRender()
518 pipe_mutex_unlock(vlsurf->device->mutex); in vlVdpDecoderRender()
522 dec->begin_frame(dec, vlsurf->video_buffer, &desc.base); in vlVdpDecoderRender()
523 …dec->decode_bitstream(dec, vlsurf->video_buffer, &desc.base, bitstream_buffer_count, buffers, size… in vlVdpDecoderRender()
524 dec->end_frame(dec, vlsurf->video_buffer, &desc.base); in vlVdpDecoderRender()
525 pipe_mutex_unlock(vlsurf->device->mutex); in vlVdpDecoderRender()