vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jul 10 15:48:35 2019 +0200| [f4eb4a795c0dbd8731b2d0149e37f1030aff9b7b] | committer: Steve Lhomme
dxva2_deinterlace: depend less on the surface parameters In push we won't init from a surface but from a video context. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4eb4a795c0dbd8731b2d0149e37f1030aff9b7b --- modules/hw/d3d9/dxva2_deinterlace.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/hw/d3d9/dxva2_deinterlace.c b/modules/hw/d3d9/dxva2_deinterlace.c index 7c6bdd0721..2564752818 100644 --- a/modules/hw/d3d9/dxva2_deinterlace.c +++ b/modules/hw/d3d9/dxva2_deinterlace.c @@ -456,10 +456,10 @@ int D3D9OpenDeinterlace(vlc_object_t *obj) goto error; hr = IDirectXVideoProcessorService_CreateSurface( processor, - dstDesc.Width, - dstDesc.Height, + dsc.SampleWidth, + dsc.SampleHeight, 0, - dstDesc.Format, + dsc.Format, D3DPOOL_DEFAULT, 0, DXVA2_VideoProcessorRenderTarget, @@ -470,28 +470,28 @@ int D3D9OpenDeinterlace(vlc_object_t *obj) DXVA2_ValueRange Range; hr = IDirectXVideoProcessorService_GetProcAmpRange( processor, processorGUID, &dsc, - dstDesc.Format, DXVA2_ProcAmp_Brightness, + dsc.Format, DXVA2_ProcAmp_Brightness, &Range ); if (FAILED(hr)) goto error; sys->Brightness = Range.DefaultValue.Value; hr = IDirectXVideoProcessorService_GetProcAmpRange( processor, processorGUID, &dsc, - dstDesc.Format, DXVA2_ProcAmp_Contrast, + dsc.Format, DXVA2_ProcAmp_Contrast, &Range ); if (FAILED(hr)) goto error; sys->Contrast = Range.DefaultValue.Value; hr = IDirectXVideoProcessorService_GetProcAmpRange( processor, processorGUID, &dsc, - dstDesc.Format, DXVA2_ProcAmp_Hue, + dsc.Format, DXVA2_ProcAmp_Hue, &Range ); if (FAILED(hr)) goto error; sys->Hue = Range.DefaultValue.Value; hr = IDirectXVideoProcessorService_GetProcAmpRange( processor, processorGUID, &dsc, - dstDesc.Format, DXVA2_ProcAmp_Saturation, + dsc.Format, DXVA2_ProcAmp_Saturation, &Range ); if (FAILED(hr)) goto error; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
