msharpen

msharpen — Performs sharpening limited to edge areas of the frame

Properties

gboolean highq Read / Write
gboolean mask Read / Write
guint strength Read / Write
guint threshold Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstElement
                ╰── GstBaseTransform
                    ╰── GstVideoFilter
                        ╰── GstEntransMsharpen

Description

This elements implements an unusual concept in spatial sharpening. Although designed specifically for anime, it also works well with normal video. The filter is very effective at sharpening important edges without amplifying noise.

  • strength indicates the strength of the sharpening to be applied to the edge detail areas. It is applied only to the edge detail areas as determined by threshold.

  • threshold indicates how close a pixel must be to the brightest or dimmest pixel to be mapped. This determines what is detected as edge detail and thus sharpened. To see what edge detail areas will be sharpened, use mask.

  • If mask is set to true, the areas to be sharpened are shown in white against a black background. Use this to set the level of detail to be sharpened. This function also makes a basic edge detection filter.

  • highq lets you tradeoff speed for quality of detail detection. Set it to true for the best detail detection. Set it to false for maximum speed.

History

  • VirtualDub msharpen filter [Donald A. Graft]
  • Also available in transcode (msharpen filter)
  • Also available in avidemux (MSharpen)


Element Information

plugin

virtualdub

author

Mark Nauwelaerts <mnauw@users.sourceforge.net>, Donald A. Graft

class

Filter/Effect/Video

Functions

Types and Values

GstEntransMsharpen

typedef GstMsharpen GstEntransMsharpen;

Property Details

The “highq” property

  “highq”                    gboolean

Tradoff speed for quality detection.

Flags: Read / Write

Default value: TRUE


The “mask” property

  “mask”                     gboolean

Show areas to be sharpened in white (basic edge detector).

Flags: Read / Write

Default value: FALSE


The “strength” property

  “strength”                 guint

Strength/weight of modification of a mapped pixel.

Flags: Read / Write

Allowed values: <= 256

Default value: 100


The “threshold” property

  “threshold”                guint

Threshold for pixel to be mapped.

Flags: Read / Write

Allowed values: <= 256

Default value: 10