mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 01:46:16 +00:00
vf_d3d11vpp: fix interlaced-only=no mode
"Real" frame flag vs. what we pretend it to be. It always used the real flag, and thus never deinterlaced unflagged frames, even if the suboption was set to "no".
This commit is contained in:
parent
358932a109
commit
c5361d12d8
@ -269,7 +269,7 @@ static int render(struct vf_instance *vf)
|
|||||||
mp_image_copy_attributes(out, in);
|
mp_image_copy_attributes(out, in);
|
||||||
|
|
||||||
D3D11_VIDEO_FRAME_FORMAT d3d_frame_format;
|
D3D11_VIDEO_FRAME_FORMAT d3d_frame_format;
|
||||||
if (!mp_refqueue_is_interlaced(p->queue)) {
|
if (!mp_refqueue_should_deint(p->queue)) {
|
||||||
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
|
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
|
||||||
} else if (mp_refqueue_top_field_first(p->queue)) {
|
} else if (mp_refqueue_top_field_first(p->queue)) {
|
||||||
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST;
|
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST;
|
||||||
@ -289,7 +289,7 @@ static int render(struct vf_instance *vf)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mp_refqueue_is_interlaced(p->queue)) {
|
if (!mp_refqueue_should_deint(p->queue)) {
|
||||||
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
|
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
|
||||||
} else if (mp_refqueue_is_top_field(p->queue)) {
|
} else if (mp_refqueue_is_top_field(p->queue)) {
|
||||||
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST;
|
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST;
|
||||||
|
Loading…
Reference in New Issue
Block a user