Imager::File::HEIF::Encoder::Parameter(3)

NAME
Imager::File::HEIF::Encoder - information about a libheif encoder

SYNOPSIS
  # see Imager::File::HEIF::Encoders
  for my $param ($encoder->parameters) {
    print "Name: ", $param->name, "\n";
    print "Default: ", $param->default, "\n";
    print "Type: ", $param->type, "\n";
    my $min = $param->minimum;
    my $max = $param->maximum;
    my @values = $param->values;
    if (defined $maximum && defined $minimum) {
      print "Range: $minimum..$maximum\n";
    }
    elsif (defined $maximum) {
      print "Range: ..$maximum\n";
    }
    elsif (defined $minimum) {
      print "Range: $minimum..\n";
    }
    elsif (@values) {
      print "Values: @values\n";
    }
    else {
      # may not be true
      print "Values unrestricted\n";
    }
  }

DESCRIPTION
Provides information about one parameter of a libheif encoder, as returned by the Imager::File::HEIF::Encoder parameters method.

These aren't yet useful.

METHODS

name
    The name of the parameter.

default
    The default value of the parameter. In some cases the API doesn't return a default, or the default doesn't match the allowable values for that parameter.

type
    One of "integer", "boolean", or "string", representing the type of value accepted by the parameter.

minimum, maximum, values
    Describes the range or the possible values accepted by this parameter.

AUTHOR
Tony Cook <tony@develop-help.com>

SEE ALSO
Imager::File::HEIF, Imager, Imager::Files.