VideoDecoderConfig constructor
VideoDecoderConfig({
- required String codec,
- dynamic description,
- int? codedWidth,
- int? codedHeight,
- int? displayAspectWidth,
- int? displayAspectHeight,
- VideoColorSpaceInit? colorSpace,
- HardwareAcceleration? hardwareAcceleration,
- bool? optimizeForLatency,
Implementation
factory VideoDecoderConfig(
{required String codec,
dynamic description,
int? codedWidth,
int? codedHeight,
int? displayAspectWidth,
int? displayAspectHeight,
VideoColorSpaceInit? colorSpace,
HardwareAcceleration? hardwareAcceleration,
bool? optimizeForLatency}) =>
VideoDecoderConfig._(
codec: codec,
description: description ?? undefined,
codedWidth: codedWidth ?? undefined,
codedHeight: codedHeight ?? undefined,
displayAspectWidth: displayAspectWidth ?? undefined,
displayAspectHeight: displayAspectHeight ?? undefined,
colorSpace: colorSpace ?? undefined,
hardwareAcceleration: hardwareAcceleration?.value ??
HardwareAcceleration.noPreference.value,
optimizeForLatency: optimizeForLatency ?? undefined);