mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Minor cleanups
This commit is contained in:
parent
53314a17f5
commit
ce3813a9e9
10
video.c
10
video.c
@ -3215,7 +3215,7 @@ static void CuvidQueueVideoSurface(CuvidDecoder * decoder, int surface, int soft
|
|||||||
|
|
||||||
// can't wait for output queue empty
|
// can't wait for output queue empty
|
||||||
if (atomic_read(&decoder->SurfacesFilled) >= VIDEO_SURFACES_MAX) {
|
if (atomic_read(&decoder->SurfacesFilled) >= VIDEO_SURFACES_MAX) {
|
||||||
Warning(_("video/vdpau: output buffer full, dropping frame (%d/%d)\n"), ++decoder->FramesDropped,
|
Warning(_("video/cuvid: output buffer full, dropping frame (%d/%d)\n"), ++decoder->FramesDropped,
|
||||||
decoder->FrameCounter);
|
decoder->FrameCounter);
|
||||||
if (!(decoder->FramesDisplayed % 300)) {
|
if (!(decoder->FramesDisplayed % 300)) {
|
||||||
CuvidPrintFrames(decoder);
|
CuvidPrintFrames(decoder);
|
||||||
@ -3236,7 +3236,7 @@ static void CuvidQueueVideoSurface(CuvidDecoder * decoder, int surface, int soft
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug(4, "video/vdpau: yy video surface %#08x@%d ready\n", surface, decoder->SurfaceWrite);
|
Debug(4, "video/cuvid: yy video surface %#08x@%d ready\n", surface, decoder->SurfaceWrite);
|
||||||
|
|
||||||
decoder->SurfacesRb[decoder->SurfaceWrite] = surface;
|
decoder->SurfacesRb[decoder->SurfaceWrite] = surface;
|
||||||
decoder->SurfaceWrite = (decoder->SurfaceWrite + 1) % VIDEO_SURFACES_MAX;
|
decoder->SurfaceWrite = (decoder->SurfaceWrite + 1) % VIDEO_SURFACES_MAX;
|
||||||
@ -3276,7 +3276,7 @@ static void CuvidRenderFrame(CuvidDecoder * decoder, const AVCodecContext * vide
|
|||||||
|
|
||||||
// update aspect ratio changes
|
// update aspect ratio changes
|
||||||
if (decoder->InputWidth && decoder->InputHeight && av_cmp_q(decoder->InputAspect, frame->sample_aspect_ratio)) {
|
if (decoder->InputWidth && decoder->InputHeight && av_cmp_q(decoder->InputAspect, frame->sample_aspect_ratio)) {
|
||||||
Debug(3, "video/vdpau: aspect ratio changed\n");
|
Debug(3, "video/cuvid: aspect ratio changed\n");
|
||||||
|
|
||||||
decoder->InputAspect = frame->sample_aspect_ratio;
|
decoder->InputAspect = frame->sample_aspect_ratio;
|
||||||
// printf("new aspect %d:%d\n",frame->sample_aspect_ratio.num,frame->sample_aspect_ratio.den);
|
// printf("new aspect %d:%d\n",frame->sample_aspect_ratio.num,frame->sample_aspect_ratio.den);
|
||||||
@ -3381,7 +3381,7 @@ Debug(3,"fmt %02d:%02d width %d:%d hight %d:%d\n",decoder->ColorSpace,frame->co
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Debug(3,"video/vdpau: pixel format %d not supported\n", video_ctx->pix_fmt);
|
// Debug(3,"video/cuvid: pixel format %d not supported\n", video_ctx->pix_fmt);
|
||||||
av_frame_free(&frame);
|
av_frame_free(&frame);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3743,7 +3743,7 @@ static void CuvidMixVideo(CuvidDecoder * decoder, __attribute__((unused))
|
|||||||
p->renderertest = NULL;
|
p->renderertest = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Debug(4, "video/vdpau: yy video surface %p displayed\n", current, decoder->SurfaceRead);
|
Debug(4, "video/cuvid: yy video surface %p displayed\n", current, decoder->SurfaceRead);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PLACEBO
|
#ifdef PLACEBO
|
||||||
|
Loading…
Reference in New Issue
Block a user