Table of Contents

Enum MpfImageType

Namespace
Egami.Formats.Jpeg
Assembly
Egami.dll

What an image of a Multi-Picture Format file is, from its MP entry (CIPA DC-007, and the gain map type CIPA added later).

public enum MpfImageType

Fields

BaselinePrimary = 196608

The primary image, which the file opens with.

Disparity = 131074

A view of a stereo or multi-view disparity set.

GainMap = 327680

A gain map, which turns the primary into an HDR image.

LargeThumbnail16K = 65541

A large thumbnail of about 16K size.

LargeThumbnail4K = 65539

A large thumbnail of about 4K size.

LargeThumbnail8K = 65540

A large thumbnail of about 8K size.

LargeThumbnailFullHd = 65538

A large thumbnail of about full HD size.

LargeThumbnailVga = 65537

A large thumbnail of about VGA size.

MultiAngle = 131075

A view of a multi-angle set.

OriginalPreservation = 262144

An original kept beside an edited primary.

Panorama = 131073

A frame of a panorama.

Undefined = 0

No type given.

Examples

// A JPEG's Multi-Picture index lists the images stored after the primary: previews, stereo views, a gain map.
using Raster photo = Raster.Load("ultrahdr.jpg");
MpfData? index = ((JpegDetails)photo.Metadata.FormatDetails!).MultiPicture;
foreach (MpfImage image in index?.Images ?? [])
{
    Console.WriteLine($"{image.Type}: {image.Length:N0} bytes at {image.Offset:N0}");
}

// LoadAll gives every JPEG image the index lists, the primary first; a plain JPEG gives one.
using RasterList all = Raster.LoadAll("ultrahdr.jpg");