d3d9: explicitly set the processing input type

We do the processing on video files, not "graphics" generated sources.
This commit is contained in:
Steve Lhomme 2023-03-20 12:54:39 +01:00
parent 367b7e8eea
commit b86fbe2e7a
2 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,7 @@ static void SetupProcessorInput(struct vlc_gl_interop *interop, const video_form
IDXVAHD_VideoProcessor_SetVideoProcessStreamState( sys->processor.proc, 0, DXVAHD_STREAM_STATE_FRAME_FORMAT, sizeof(frame_format), &frame_format );
DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA colorspace = {
.Type = 0, // video, not graphics
.RGB_Range = fmt->color_range == COLOR_RANGE_FULL ? 0 : 1,
.YCbCr_xvYCC = fmt->color_range == COLOR_RANGE_FULL ? 1 : 0,
.YCbCr_Matrix = fmt->space == COLOR_SPACE_BT601 ? 0 : 1,

View File

@ -1421,6 +1421,7 @@ static void SetupProcessorInput(vout_display_t *vd, const video_format_t *fmt, c
IDXVAHD_VideoProcessor_SetVideoProcessStreamState( sys->processor.proc, 0, DXVAHD_STREAM_STATE_FRAME_FORMAT, sizeof(frame_format), &frame_format );
DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA colorspace = {
.Type = 0, // video, not graphics
.RGB_Range = fmt->color_range == COLOR_RANGE_FULL ? 0 : 1,
.YCbCr_xvYCC = fmt->color_range == COLOR_RANGE_FULL ? 1 : 0,
.YCbCr_Matrix = fmt->space == COLOR_SPACE_BT601 ? 0 : 1,