Skip to content

Commit

Permalink
Use Nearest filtering for RGB to YUV.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 13, 2023
1 parent 8462f65 commit 3869f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video/ffmpeg_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,10 +1470,10 @@ void VideoEncoder::process_rgb(Vulkan::CommandBuffer &cmd, YCbCrPipeline &pipeli
if (Vulkan::format_is_srgb(view.get_format()))
{
cmd.set_unorm_texture(0, 0, view);
cmd.set_sampler(0, 0, Vulkan::StockSampler::LinearClamp);
cmd.set_sampler(0, 0, Vulkan::StockSampler::NearestClamp);
}
else
cmd.set_texture(0, 0, view, Vulkan::StockSampler::LinearClamp);
cmd.set_texture(0, 0, view, Vulkan::StockSampler::NearestClamp);

cmd.set_storage_texture(0, 1, wrapped_planes[0] ? *wrapped_planes[0] : pipeline.luma->get_view());
cmd.set_storage_texture(0, 2, pipeline.chroma_full->get_view());
Expand Down

0 comments on commit 3869f59

Please sign in to comment.