amfhqscaler

Wraps AMF's AMFHQScaler component (AMD Video Super Resolution, FSR-style bicubic, …). The element is intended for upscaling and refuses configurations where any output dimension is smaller than the input, mirroring the behavior of ffmpeg's sr_amf filter.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstAmfBaseFilter
                        ╰──amfhqscaler

Factory details

Authors: – GStreamer AMF contributors

Classification: – Filter/Converter/Video/Scaler/Hardware

Rank – none

Plugin – amfcodec

Package – GStreamer Bad Plug-ins

Pad Templates

sink

video/x-raw(memory:D3D12Memory):
         format: { NV12, P010_10LE, BGRA, RGBA }
          width: [ 128, 8192 ]
         height: [ 128, 4096 ]

video/x-raw(memory:D3D11Memory):
         format: { NV12, P010_10LE, BGRA, RGBA }
          width: [ 128, 8192 ]
         height: [ 128, 4096 ]
video/x-raw:
         format: { NV12, P010_10LE, BGRA, RGBA }
          width: [ 128, 8192 ]
         height: [ 128, 4096 ]

Presence – always

Direction – sink

Object type – GstPad


src

video/x-raw(memory:D3D12Memory):
         format: { NV12, P010_10LE, BGRA, RGBA }
          width: [ 128, 8192 ]
         height: [ 128, 4096 ]

video/x-raw(memory:D3D11Memory):
         format: { NV12, P010_10LE, BGRA, RGBA }
          width: [ 128, 8192 ]
         height: [ 128, 4096 ]
video/x-raw:
         format: { NV12, P010_10LE, BGRA, RGBA }
          width: [ 128, 8192 ]
         height: [ 128, 4096 ]

Presence – always

Direction – src

Object type – GstPad


Properties

add-borders

“add-borders” gboolean

Keep the original aspect ratio when scaling and fill padding with border-color

Flags : Read / Write

Default value : true


algorithm

“algorithm” Amf-hqscaler-algorithm *

High-quality scaling algorithm to use

Flags : Read / Write

Default value : bilinear (0)


border-color

“border-color” guint

Border color when add-borders is enabled (RGBA, 0xAARRGGBB)

Flags : Read / Write

Default value : 0


sharpness

“sharpness” gfloat

Sharpness factor (0.0 - 2.0)

Flags : Read / Write

Default value : 0.5


Named constants

Amf-hqscaler-algorithm

High-quality scaling algorithm

Members

bilinear (0) – Bilinear
bicubic (1) – Bicubic
videosr1-0 (2) – Video SR 1.0
point (3) – Point (nearest)
videosr1-1 (4) – Video SR 1.1

Since : 1.30


The results of the search are