Skip to content

d3d11: Add "sampler-filter" propoerty for user to be able to select filter method

    d3d11: Add "sampler-filter" propoerty for user to be able to select filter method

    Add "sampler-filter" property to d3d11videosink,
    d3d11convert, d3d11colorconvert, d3d11scale, and d3d11compositor
    elements. It's similar to "method" property of videoscale.

    This sampler-filter will be mapped to D3D11_FILTER value
    which is used for filter method of sampler state.

    Currently supported methods are
    - Point (least expensive, worst visual quality)
    - Bilinear
    - Trilinear (default)
    - Anisotropic (most expensive, best visual quality)

    See also https://docs.microsoft.com/en-us/visualstudio/debugger/graphics/point-bilinear-trilinear-and-anisotropic-texture-filtering-variants?view=vs-2019
    d3d11converter: Add config option for sampler filter mode selection

    ... and change default value from bilinear to trilinear, since
    trilinear is default value mode of d3d11 sampler state
    (see also https://docs.microsoft.com/en-us/windows/win32/api/d3d11/ns-d3d11-d3d11_sampler_desc#remarks)
    and it's known to tend to work best for 2D
    d3d11converter: Introduce config to be extensible

    Add a config argument like that of GstVideoConverter so that
    we can add more options without modifying existing methods

Merge request reports

Loading