Class DpxFormat
DPX (SMPTE ST 268, Digital Moving-Picture Exchange), the frame format of film scanning and visual effects: a 2048-byte header of file, image, film and television fields, then up to eight image elements of 1 to 16-bit integer or 32 and 64-bit float samples, usually 10-bit printing-density RGB. Load gives the first element as its stored code values; LoadAll gives every element, and DpxReaderOptions picks one or turns log code values into linear light. Registered with WithDpx(EgamiContext).
public static class DpxFormat
- Inheritance
-
DpxFormat
- Inherited Members
Examples
// DPX (.dpx) and Cineon (.cin) are two formats; WithExtendedFormats() registers both.
EgamiContext context = EgamiContext.Default.WithDpx().WithCineon();
// Load gives the stored code values, unchanged: a 10-bit file loads as Rgb16 or Rgba16, code 1023 at 65535.
using Raster frame = Raster.Load("duck.dpx", context);
frame.Save("frame.png");
// Probe reads the header alone: one image per image element Egami reads.
RasterInfo info = Raster.Probe("duck.dpx", context);
Console.WriteLine($"{info.Width}×{info.Height} {info.Layout.ChannelOrder}, {info.ImageCount} element(s)");
Properties
Info
Gets the format's registration: name, MIME types, extensions, signature, reader and writer.
public static FormatInfo Info { get; }