mirror of https://code.videolan.org/videolan/vlc
d3d9: explicitly set the processing input type
We do the processing on video files, not "graphics" generated sources.
This commit is contained in:
parent
367b7e8eea
commit
b86fbe2e7a
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue