Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ColorCorrector

import type { ColorCorrector } from "https://aws-api.deno.dev/v0.4/services/mediaconvert.ts?docs=full";

Settings for color correction.

interface ColorCorrector {
Brightness?: number | null;
ClipLimits?: ClipLimits | null;
ColorSpaceConversion?: ColorSpaceConversion | null;
Contrast?: number | null;
Hdr10Metadata?: Hdr10Metadata | null;
Hue?: number | null;
SampleRangeConversion?: SampleRangeConversion | null;
Saturation?: number | null;
SdrReferenceWhiteLevel?: number | null;
}

§Properties

§
Brightness?: number | null
[src]

Brightness level.

§
ClipLimits?: ClipLimits | null
[src]

Specify YUV limits and RGB tolerances when you set Sample range conversion to Limited range clip.

§
ColorSpaceConversion?: ColorSpaceConversion | null
[src]

Specify the color space you want for this output. The service supports conversion between HDR formats, between SDR formats, from SDR to HDR, and from HDR to SDR. SDR to HDR conversion doesn't upgrade the dynamic range. The converted video has an HDR format, but visually appears the same as an unconverted output. HDR to SDR conversion uses Elemental tone mapping technology to approximate the outcome of manually regrading from HDR to SDR. Select Force P3D65 (SDR) to set the output color space metadata to the following: * Color primaries: Display P3 * Transfer characteristics: SMPTE 428M * Matrix coefficients: BT.709

§
Contrast?: number | null
[src]

Contrast level.

§
Hdr10Metadata?: Hdr10Metadata | null
[src]

Use these settings when you convert to the HDR 10 color space. Specify the SMPTE ST 2086 Mastering Display Color Volume static metadata that you want signaled in the output. These values don't affect the pixel values that are encoded in the video stream. They are intended to help the downstream video player display content in a way that reflects the intentions of the the content creator. When you set Color space conversion (ColorSpaceConversion) to HDR 10 (FORCE_HDR10), these settings are required. You must set values for Max frame average light level (maxFrameAverageLightLevel) and Max content light level (maxContentLightLevel); these settings don't have a default value. The default values for the other HDR 10 metadata settings are defined by the P3D65 color space. For more information about MediaConvert HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr.

§
Hue?: number | null
[src]

Hue in degrees.

§
SampleRangeConversion?: SampleRangeConversion | null
[src]

Specify how MediaConvert limits the color sample range for this output. To create a limited range output from a full range input: Choose Limited range squeeze. For full range inputs, MediaConvert performs a linear offset to color samples equally across all pixels and frames. Color samples in 10-bit outputs are limited to 64 through 940, and 8-bit outputs are limited to 16 through 235. Note: For limited range inputs, values for color samples are passed through to your output unchanged. MediaConvert does not limit the sample range. To correct pixels in your input that are out of range or out of gamut: Choose Limited range clip. Use for broadcast applications. MediaConvert conforms any pixels outside of the values that you specify under Minimum YUV and Maximum YUV to limited range bounds. MediaConvert also corrects any YUV values that, when converted to RGB, would be outside the bounds you specify under Minimum RGB tolerance and Maximum RGB tolerance. With either limited range conversion, MediaConvert writes the sample range metadata in the output.

§
Saturation?: number | null
[src]

Saturation level.

§
SdrReferenceWhiteLevel?: number | null
[src]

Specify the reference white level, in nits, for all of your SDR inputs. Use to correct brightness levels within HDR10 outputs. The following color metadata must be present in your SDR input: color primaries, transfer characteristics, and matrix coefficients. If your SDR input has missing color metadata, or if you want to correct input color metadata, manually specify a color space in the input video selector. For 1,000 nit peak brightness displays, we recommend that you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, or specify an integer from 100 to 1000.