DocsGRADEReference

Compression

1 min read

On this page

Digital artefacts: flat blocks, real JPEG DCT, or H.264-like video with deblocking.

Studio categoryMedia & Glitch
Pipeline stagePost Colour (display colour, after the colour nodes)
Default position40 in its stage
Works inLive views and Image mode
C++ / BlueprintFGradeLayer::Effects.Compression (FGradeCompression)

Manual: Compression. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

Digital artefacts: JPEG-like blocks and chroma bleeding (VHS/webcam looks).

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.Compression.Enabledon/offoffTurns this on or off (the other values are kept while it is off).
AmountEffects.Compression.Amount0..10040
Block SizeEffects.Compression.BlockSize2..328Block size in pixels.
Chroma BleedEffects.Compression.ChromaBleed0..1000Horizontal colour smear, 0..100.
CodecEGradeCompressionCodecJPEG

DCT

ParameterBlueprint pathValuesDefaultDescription
SteepnessEffects.Compression.Steepness0.25..41Quantisation steepness from low to high frequencies (1 = linear).
Chroma BiasEffects.Compression.ChromaBias0.25..41.5Extra quantisation of the chroma (more colour banding), 0.25..4.
PrequantizationEffects.Compression.Prequantization0..1000RGB posterisation before the DCT, 0..100.
Chroma DownsampleEffects.Compression.ChromaDownsample0..3, integer1Chroma resolution divided by 2^N before quantisation (Video uses 1 = 4:2:0).

Deblocking

ParameterBlueprint pathValuesDefaultDescription
DeblockingEGradeDeblockModeAdaptive
Deblock StrengthEffects.Compression.DeblockStrength0..10050Pixels filtered on each side of a block edge (Uniform) or the activity threshold (Adaptive), 0..100.
Edge PreservationEffects.Compression.EdgePreservation0..10050Keeps real edges sharp while deblocking, 0..100.

Enumerations

Compression Codec (EGradeCompressionCodec)

ValueMeaning
BlocksClassic look: flat blocks plus chroma bleed (cheapest).
JPEGReal DCT quantisation on 8x8 blocks (JPEG).
Video (H.264-like)DCT on 4x4 blocks, chroma subsampling and a deblocking filter (H.264-like video).

Deblock Mode (EGradeDeblockMode)

ValueMeaning
Off-
UniformSame strength on every block edge.
AdaptivePer-block activity: filters flat blocks, keeps real edges.

Generated from the GRADE C++ headers. Back to the reference index.