Skip navigation links
A B C D E F G H I J M O P Q R S T U V W 

A

alphaInfo - Variable in enum com.facebook.spectrum.image.ImagePixelSpecification
Information about the optional alpha channel

B

BaseSpectrumLogger - Class in com.facebook.spectrum.logging
Logger implementation that performs no operations
BaseSpectrumLogger() - Constructor for class com.facebook.spectrum.logging.BaseSpectrumLogger
 
BITMAP - Static variable in class com.facebook.spectrum.image.ImageFormat
An uncompressed image of continious pixel data
BitmapTarget - Class in com.facebook.spectrum
BitmapTarget() - Constructor for class com.facebook.spectrum.BitmapTarget
 
blue - Variable in class com.facebook.spectrum.image.ImageColor
 
build() - Method in class com.facebook.spectrum.Configuration.Builder
Builds a new Configuration from this builder.
build() - Method in class com.facebook.spectrum.options.DecodeOptions.Builder
 
build() - Method in class com.facebook.spectrum.options.EncodeOptions.Builder
 
build() - Method in class com.facebook.spectrum.options.Options.Builder
 
build() - Method in class com.facebook.spectrum.options.TranscodeOptions.Builder
 
build() - Method in class com.facebook.spectrum.options.TransformOptions.Builder
 
Builder() - Static method in class com.facebook.spectrum.Configuration
 
Builder() - Static method in class com.facebook.spectrum.options.DecodeOptions
Creates a default DecodeOptions.Builder with the output pixel specification that matches Bitmap.Config#ARGB_8888.
Builder(ImagePixelSpecification) - Static method in class com.facebook.spectrum.options.DecodeOptions
Creates a DecodeOptions.Builder with the given output pixel specification.
Builder(EncodeRequirement) - Static method in class com.facebook.spectrum.options.EncodeOptions
Creates an EncodeOptions.Builder with the given EncodeRequirement.
Builder() - Constructor for class com.facebook.spectrum.options.Options.Builder
 
Builder(EncodeRequirement) - Static method in class com.facebook.spectrum.options.TranscodeOptions
Creates an TranscodeOptions.Builder with the given EncodeRequirement.
Builder() - Static method in class com.facebook.spectrum.options.TransformOptions
Creates a default TransformOptions.Builder with the output pixel specification that matches Bitmap.Config#ARGB_8888.
Builder(ImagePixelSpecification) - Static method in class com.facebook.spectrum.options.TransformOptions
Creates a TransformOptions.Builder with the given output pixel specification.
bytesPerPixel - Variable in enum com.facebook.spectrum.image.ImagePixelSpecification
The number of bytes per pixel (covering all its components).

C

checkArgument(boolean) - Static method in class com.facebook.spectrum.utils.Preconditions
Asserts that the given assertion about an argument is true.
checkNotNull(T) - Static method in class com.facebook.spectrum.utils.Preconditions
Asserts that the given reference is not null.
checkState(boolean) - Static method in class com.facebook.spectrum.utils.Preconditions
Asserts that the given assertion about a state is true.
chromaSamplingMode - Variable in class com.facebook.spectrum.image.ImageSpecification
 
chromaSamplingModeOverride - Variable in class com.facebook.spectrum.Configuration
General: The ImageChromaSamplingMode to use when encoding.
close() - Method in class com.facebook.spectrum.EncodedImageSink
Closes the underlying OutputStream if the EncodedImageSink owns it.
close() - Method in class com.facebook.spectrum.EncodedImageSource
Closes the underlying InputStream if the EncodedImageSource owns it.
colorModel - Variable in enum com.facebook.spectrum.image.ImagePixelSpecification
Number of color components and how to interpret them
com.facebook.spectrum - package com.facebook.spectrum
 
com.facebook.spectrum.image - package com.facebook.spectrum.image
 
com.facebook.spectrum.logging - package com.facebook.spectrum.logging
 
com.facebook.spectrum.options - package com.facebook.spectrum.options
 
com.facebook.spectrum.plugins - package com.facebook.spectrum.plugins
 
com.facebook.spectrum.requirements - package com.facebook.spectrum.requirements
 
com.facebook.spectrum.utils - package com.facebook.spectrum.utils
 
componentsOrder - Variable in enum com.facebook.spectrum.image.ImagePixelSpecification
Order of the components in memory representation .
Configuration - Class in com.facebook.spectrum
The Configuration class defines configuration parameters that can be used to tweak low level options of how an operation is performed.
configuration - Variable in class com.facebook.spectrum.options.Options.Builder
 
configuration(Configuration) - Method in class com.facebook.spectrum.options.Options.Builder
Options in the configuration object will override default and app-wide settings.
configuration - Variable in class com.facebook.spectrum.options.Options
Options in the configuration object will override default and app-wide settings.
Configuration.Builder - Class in com.facebook.spectrum
 
Configuration.ImageHint - Enum in com.facebook.spectrum
Optional hint when encoding WebP images
Configuration.SamplingMethod - Enum in com.facebook.spectrum
Sampling algorithms for the exact resize block
createBitmapArgb(int, int) - Method in class com.facebook.spectrum.BitmapTarget
Allocates a bitmap with the given width, height, and Bitmap.Config#ARGB_8888.
createPlugin() - Method in class com.facebook.spectrum.plugins.SpectrumPlugin
Creates a new native plugin on the heap and returns a raw pointer
crop(CropRequirement) - Method in class com.facebook.spectrum.options.Options.Builder
The crop requirement to apply.
cropAbsoluteToOrigin(int, int, int, int, boolean) - Method in class com.facebook.spectrum.options.Options.Builder
The crop requirement to apply.
cropRelativeToOrigin(float, float, float, float, boolean) - Method in class com.facebook.spectrum.options.Options.Builder
The crop requirement to apply.
cropRequirement - Variable in class com.facebook.spectrum.options.Options.Builder
 
cropRequirement - Variable in class com.facebook.spectrum.options.Transformations
The CropRequirement to apply.
CropRequirement - Class in com.facebook.spectrum.requirements
Defines how an image should be cropped.

D

decode(EncodedImageSource, BitmapTarget, DecodeOptions, Object) - Method in class com.facebook.spectrum.Spectrum
A decode operation reads an encoded image and creates a bitmap.
decode(InputStream, BitmapTarget, DecodeOptions) - Method in class com.facebook.spectrum.SpectrumHybrid
Wraps the native decode method
DecodeOptions - Class in com.facebook.spectrum.options
This Options object encapsulates all parameters for a decode operation.
DecodeOptions.Builder - Class in com.facebook.spectrum.options
defaultBackgroundColor - Variable in class com.facebook.spectrum.Configuration
General: Default background color to merge transparent images onto.
degrees - Variable in class com.facebook.spectrum.requirements.RotateRequirement
The angle in degrees.

E

empty() - Static method in class com.facebook.spectrum.image.ImageMetadata
 
encode(Bitmap, EncodedImageSink, EncodeOptions, Object) - Method in class com.facebook.spectrum.Spectrum
An encode operation reads a bitmap and creates an encoded image.
encode(Bitmap, OutputStream, EncodeOptions) - Method in class com.facebook.spectrum.SpectrumHybrid
Wraps the native encode method
EncodedImageFormat - Class in com.facebook.spectrum.image
Represents a compressed image format such as EncodedImageFormat.JPEG.
EncodedImageFormat(String) - Constructor for class com.facebook.spectrum.image.EncodedImageFormat
 
EncodedImageSink - Class in com.facebook.spectrum
Abstraction for any encoded output
EncodedImageSource - Class in com.facebook.spectrum
Abstraction for any encoded input
EncodeOptions - Class in com.facebook.spectrum.options
This Options object encapsulates all parameters for an encode operation.
EncodeOptions.Builder - Class in com.facebook.spectrum.options
 
encodeRequirement(EncodeRequirement) - Method in class com.facebook.spectrum.options.EncodeOptions.Builder
The EncodeRequirement to apply.
encodeRequirement - Variable in class com.facebook.spectrum.options.Options.Builder
 
encodeRequirement - Variable in class com.facebook.spectrum.options.Options
The EncodeRequirement to apply.
encodeRequirement(EncodeRequirement) - Method in class com.facebook.spectrum.options.TranscodeOptions.Builder
The EncodeRequirement to apply.
EncodeRequirement - Class in com.facebook.spectrum.requirements
Defines how an image should be encoded.
EncodeRequirement(EncodedImageFormat) - Constructor for class com.facebook.spectrum.requirements.EncodeRequirement
Creates a new EncodeRequirement for the given EncodedImageFormat.
EncodeRequirement(EncodedImageFormat, EncodeRequirement.Mode) - Constructor for class com.facebook.spectrum.requirements.EncodeRequirement
EncodeRequirement(EncodedImageFormat, int) - Constructor for class com.facebook.spectrum.requirements.EncodeRequirement
Creates a new EncodeRequirement for the given EncodedImageFormat and quality.
EncodeRequirement(EncodedImageFormat, int, EncodeRequirement.Mode) - Constructor for class com.facebook.spectrum.requirements.EncodeRequirement
Creates a new EncodeRequirement for the given EncodedImageFormat, EncodeRequirement.Mode, and quality.
EncodeRequirement.Mode - Enum in com.facebook.spectrum.requirements
 
ensureLoadedAndInitialized() - Method in class com.facebook.spectrum.plugins.SpectrumPlugin
Ensures the native library is loaded and the hybrid object is initialized
equals(Object) - Method in class com.facebook.spectrum.Configuration
 
equals(Object) - Method in class com.facebook.spectrum.image.ImageColor
 
equals(Object) - Method in class com.facebook.spectrum.image.ImageFormat
 
equals(Object) - Method in class com.facebook.spectrum.image.ImageMetadata
 
equals(Object) - Method in class com.facebook.spectrum.image.ImageSize
 
equals(Object) - Method in class com.facebook.spectrum.image.ImageSpecification
 
equals(Object) - Method in class com.facebook.spectrum.options.Options
 
equals(Object) - Method in class com.facebook.spectrum.options.Transformations
 
equals(Object) - Method in class com.facebook.spectrum.requirements.CropRequirement
 
equals(Object) - Method in class com.facebook.spectrum.requirements.EncodeRequirement
 
equals(Object) - Method in class com.facebook.spectrum.requirements.ResizeRequirement
 
equals(Object) - Method in class com.facebook.spectrum.requirements.RotateRequirement
 

F

flipHorizontally - Variable in class com.facebook.spectrum.requirements.RotateRequirement
Flips the image horizontally (on a vertical axis).
flipVertically - Variable in class com.facebook.spectrum.requirements.RotateRequirement
Flips the image vertically (on a horizontal axis).
forceUpOrientation - Variable in class com.facebook.spectrum.requirements.RotateRequirement
Forces to rotate the bytes of the images if it contains extra orientation metadata.
format - Variable in class com.facebook.spectrum.image.ImageSpecification
 
format - Variable in class com.facebook.spectrum.requirements.EncodeRequirement
The format of the target encoded image.
from(File) - Static method in class com.facebook.spectrum.EncodedImageSink
Creates an EncodedImageSink for the given file.
from(String) - Static method in class com.facebook.spectrum.EncodedImageSink
Creates an EncodedImageSink for the given file.
from(OutputStream) - Static method in class com.facebook.spectrum.EncodedImageSink
Creates an EncodedImageSink for the given OutputStream.
from(File) - Static method in class com.facebook.spectrum.EncodedImageSource
Creates an EncodedImageSource for the given file.
from(String) - Static method in class com.facebook.spectrum.EncodedImageSource
Creates an EncodedImageSource for the given file.
from(byte[]) - Static method in class com.facebook.spectrum.EncodedImageSource
Creates an EncodedImageSource for the given byte array.
from(InputStream) - Static method in class com.facebook.spectrum.EncodedImageSource
Creates an EncodedImageSource for the given InputStream.
from(Bitmap.Config) - Static method in enum com.facebook.spectrum.image.ImagePixelSpecification
 
fromBitmap(Bitmap) - Static method in class com.facebook.spectrum.image.ImageSpecification
Creates an image specification from the provided Bitmap object.

G

getBitmap() - Method in class com.facebook.spectrum.BitmapTarget
 
getDescription() - Method in exception com.facebook.spectrum.SpectrumException
Additional verbose descriptions (e.g.
getInputImageSpecification() - Method in class com.facebook.spectrum.SpectrumResult
Detected input image specification for the operation.
getInputStream() - Method in class com.facebook.spectrum.EncodedImageSource
Returns the underlying InputStream
getLocation() - Method in exception com.facebook.spectrum.SpectrumException
The location of the error including method and line number
getMessage() - Method in exception com.facebook.spectrum.SpectrumException
The specific error message (e.g.
getName() - Method in exception com.facebook.spectrum.SpectrumException
Name that groups similar exceptions together (e.g.
getOutputImageSpecification() - Method in class com.facebook.spectrum.SpectrumResult
Determined output image specification for the operation.
getOutputStream() - Method in class com.facebook.spectrum.EncodedImageSink
Returns the underlying OutputStream
getPlugin() - Method in class com.facebook.spectrum.plugins.SpectrumPlugin
Creates a new native instance of the plugin.
getRuleName() - Method in class com.facebook.spectrum.SpectrumResult
Name of the rule which has performed the operation.
getTotalBytesRead() - Method in class com.facebook.spectrum.SpectrumResult
Total number of bytes that has been read from the underlying image source
getTotalBytesWritten() - Method in class com.facebook.spectrum.SpectrumResult
Total number of bytes that has been written to the image sink
GIF - Static variable in class com.facebook.spectrum.image.EncodedImageFormat
A GIF encoded image, see https://en.wikipedia.org/wiki/GIF
green - Variable in class com.facebook.spectrum.image.ImageColor
 

H

hashCode() - Method in class com.facebook.spectrum.Configuration
 
hashCode() - Method in class com.facebook.spectrum.image.ImageColor
 
hashCode() - Method in class com.facebook.spectrum.image.ImageFormat
 
hashCode() - Method in class com.facebook.spectrum.image.ImageMetadata
 
hashCode() - Method in class com.facebook.spectrum.image.ImageSize
 
hashCode() - Method in class com.facebook.spectrum.image.ImageSpecification
 
hashCode() - Method in class com.facebook.spectrum.options.Options
 
hashCode() - Method in class com.facebook.spectrum.options.Transformations
 
hashCode() - Method in class com.facebook.spectrum.requirements.CropRequirement
 
hashCode() - Method in class com.facebook.spectrum.requirements.ResizeRequirement
 
hashCode() - Method in class com.facebook.spectrum.requirements.RotateRequirement
 
HEIF - Static variable in class com.facebook.spectrum.image.EncodedImageFormat
A HEIF encoded image, see https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
height - Variable in class com.facebook.spectrum.image.ImageSize
The size's height.

I

identifier - Variable in class com.facebook.spectrum.image.ImageFormat
 
ImageChromaSamplingMode - Enum in com.facebook.spectrum.image
Chroma sampling describe the number of luma information per chroma information.
ImageColor - Class in com.facebook.spectrum.image
Representation of an RGB color information.
ImageColor(int, int, int) - Constructor for class com.facebook.spectrum.image.ImageColor
 
ImageFormat - Class in com.facebook.spectrum.image
Represents an image format.
ImageFormat(String) - Constructor for class com.facebook.spectrum.image.ImageFormat
 
ImageMetadata - Class in com.facebook.spectrum.image
Metadata represents information that is stored in images beside their pixel values.
ImageMetadata() - Constructor for class com.facebook.spectrum.image.ImageMetadata
 
ImageOrientation - Enum in com.facebook.spectrum.image
The orientation describes the transformation that needs to be applied to the underlying image in order to reach its intended representation.
ImagePixelSpecification - Enum in com.facebook.spectrum.image
The specification explains how pixels and the color information is stored as a continuous stream of bytes.
ImageSize - Class in com.facebook.spectrum.image
Represents a rectangular area defined by its width and height.
ImageSize(int, int) - Constructor for class com.facebook.spectrum.image.ImageSize
Creates a new ImageSize
ImageSpecification - Class in com.facebook.spectrum.image
An image's specification contains all derived and extracted information besides the pixel content.
ImageSpecification(ImageSize, ImageFormat, ImagePixelSpecification) - Constructor for class com.facebook.spectrum.image.ImageSpecification
Constructor for an image specification with default orientation, no sampling and empty metadata.
ImageSpecification(ImageSize, ImageFormat, ImagePixelSpecification, ImageOrientation, ImageChromaSamplingMode, ImageMetadata) - Constructor for class com.facebook.spectrum.image.ImageSpecification
 
init(Context) - Static method in class com.facebook.spectrum.SpectrumSoLoader
Initializes the SoLoader library.
interpretMetadata - Variable in class com.facebook.spectrum.Configuration
General: Whether to read and interpret metadata such as EXIF for JPEG files.
isAvailable() - Method in class com.facebook.spectrum.Spectrum
 
isAvailable() - Method in class com.facebook.spectrum.SpectrumHybrid
Returns true if the native library is loaded and initialized properly.
isEncoded() - Method in class com.facebook.spectrum.image.EncodedImageFormat
 
isEncoded() - Method in class com.facebook.spectrum.image.ImageFormat
 
isImageFormatSupported(ImageFormat) - Method in class com.facebook.spectrum.Spectrum
This method indicates whether the given image format is supported by Spectrum using the default plugin.
isSuccessful() - Method in class com.facebook.spectrum.SpectrumResult
True iff a rule has been applied to fulfill the request

J

JPEG - Static variable in class com.facebook.spectrum.image.EncodedImageFormat
A JPEG encoded image, see: https://en.wikipedia.org/wiki/JPEG

M

make(SpectrumLogger, SpectrumPlugin[]) - Static method in class com.facebook.spectrum.Spectrum
Creates a new Spectrum with the given SpectrumLogger and the given SpectrumPlugins.
make(SpectrumLogger, Configuration, SpectrumPlugin...) - Static method in class com.facebook.spectrum.Spectrum
Creates a new Spectrum with the given SpectrumLogger, global Configuration, and the given SpectrumPlugins.
makeAbsoluteToOrigin(int, int, int, int, boolean) - Static method in class com.facebook.spectrum.requirements.CropRequirement
Crop requirement based on absolute offsets to the origin plane (left or top).
makeAbsoluteToOrigin(Rect, boolean) - Static method in class com.facebook.spectrum.requirements.CropRequirement
Crop requirement based on absolute offsets to the origin plane (left or top).
makeEmpty() - Static method in class com.facebook.spectrum.Configuration
 
makeForImageContainingGraphics() - Static method in class com.facebook.spectrum.Configuration
 
makeRelativeToOrigin(float, float, float, float, boolean) - Static method in class com.facebook.spectrum.requirements.CropRequirement
Relative offsets to crop off the image.
makeRelativeToOrigin(RectF, boolean) - Static method in class com.facebook.spectrum.requirements.CropRequirement
Relative offsets to crop off the image.
MAX_IMAGE_SIDE_DIMENSION - Static variable in class com.facebook.spectrum.image.ImageSize
Setting to 2**16 as this is the smallest common denominator for all common image libraries that we are interested in.
metadata - Variable in class com.facebook.spectrum.image.ImageSpecification
 
metadata(ImageMetadata) - Method in class com.facebook.spectrum.options.EncodeOptions.Builder
Optional metadata to consider for the operation.
metadata - Variable in class com.facebook.spectrum.options.Options.Builder
 
metadata - Variable in class com.facebook.spectrum.options.Options
Optional metadata to consider besides the ones provided by the encoded image.
metadata(ImageMetadata) - Method in class com.facebook.spectrum.options.TranscodeOptions.Builder
Optional metadata to consider.
mode - Variable in class com.facebook.spectrum.requirements.EncodeRequirement
The compression mode.
mode - Variable in class com.facebook.spectrum.requirements.ResizeRequirement
The mode to resize the image with.
mustBeExact - Variable in class com.facebook.spectrum.requirements.CropRequirement
True if the crop has to be exact.

O

onError(Object, Exception) - Method in class com.facebook.spectrum.logging.BaseSpectrumLogger
 
onError(Object, Exception) - Method in class com.facebook.spectrum.logging.SpectrumLogcatLogger
 
onError(Object, Exception) - Method in interface com.facebook.spectrum.logging.SpectrumLogger
Called for any exception that occurs during the operation.
onFinish(Object, SpectrumResult) - Method in class com.facebook.spectrum.logging.BaseSpectrumLogger
 
onFinish(Object, SpectrumResult) - Method in class com.facebook.spectrum.logging.SpectrumLogcatLogger
 
onFinish(Object, SpectrumResult) - Method in interface com.facebook.spectrum.logging.SpectrumLogger
Called when the operation finishes.
onStart(Options, Object) - Method in class com.facebook.spectrum.logging.BaseSpectrumLogger
 
onStart(Options, Object) - Method in class com.facebook.spectrum.logging.SpectrumLogcatLogger
 
onStart(Options, Object) - Method in interface com.facebook.spectrum.logging.SpectrumLogger
Called before the operation is started.
Options - Class in com.facebook.spectrum.options
The Options object encapsulates all parameters for an operation.
Options(Options.Builder) - Constructor for class com.facebook.spectrum.options.Options
 
Options.Builder<T extends Options.Builder<T>> - Class in com.facebook.spectrum.options
 
orientation - Variable in class com.facebook.spectrum.image.ImageSpecification
 
outputPixelSpecification(ImagePixelSpecification) - Method in class com.facebook.spectrum.options.DecodeOptions.Builder
If set, defines the pixel specification images should be converted to before being passed to the compressor.
outputPixelSpecification - Variable in class com.facebook.spectrum.options.Options.Builder
 
outputPixelSpecification - Variable in class com.facebook.spectrum.options.Options
If set, will dictate the pixel specification images should be converted to before being passed to the compressor.
outputPixelSpecification(ImagePixelSpecification) - Method in class com.facebook.spectrum.options.TransformOptions.Builder
If set, defines the pixel specification images should be converted to before being passed to the compressor.

P

pixelSpecification - Variable in class com.facebook.spectrum.image.ImageSpecification
 
PNG - Static variable in class com.facebook.spectrum.image.EncodedImageFormat
A PNG encoded image, see https://en.wikipedia.org/wiki/Portable_Network_Graphics
Preconditions - Class in com.facebook.spectrum.utils
Light-weight implementation for Precondition checks.
propagateChromaSamplingModeFromSource - Variable in class com.facebook.spectrum.Configuration
General: Whether to propagate sampling mode from the source image.

Q

quality - Variable in class com.facebook.spectrum.requirements.EncodeRequirement
The quality used to encode the image.
QUALITY_MAX - Static variable in class com.facebook.spectrum.requirements.EncodeRequirement
 
QUALITY_MIN - Static variable in class com.facebook.spectrum.requirements.EncodeRequirement
 
QUALITY_UNSET - Static variable in class com.facebook.spectrum.requirements.EncodeRequirement
 

R

red - Variable in class com.facebook.spectrum.image.ImageColor
 
resize(ResizeRequirement) - Method in class com.facebook.spectrum.options.Options.Builder
The resize requirement to apply.
resize(ResizeRequirement.Mode, ImageSize) - Method in class com.facebook.spectrum.options.Options.Builder
The resize requirement to apply.
resize(ResizeRequirement.Mode, int) - Method in class com.facebook.spectrum.options.Options.Builder
The resize requirement to apply.
resizeRequirement - Variable in class com.facebook.spectrum.options.Options.Builder
 
resizeRequirement - Variable in class com.facebook.spectrum.options.Transformations
The ResizeRequirement to apply.
ResizeRequirement - Class in com.facebook.spectrum.requirements
Defines how an image should be resized.
ResizeRequirement(ResizeRequirement.Mode, ImageSize) - Constructor for class com.facebook.spectrum.requirements.ResizeRequirement
Creates new resize requirement.
ResizeRequirement(ResizeRequirement.Mode, int) - Constructor for class com.facebook.spectrum.requirements.ResizeRequirement
Creates new resize requirement for a square target size.
ResizeRequirement.Mode - Enum in com.facebook.spectrum.requirements
Defines the strictness of the resize requirement in accepting values other than the specified target size.
rotate(RotateRequirement) - Method in class com.facebook.spectrum.options.Options.Builder
The rotate requirement to apply.
rotate(int, boolean, boolean, boolean) - Method in class com.facebook.spectrum.options.Options.Builder
The rotate requirement to apply.
rotate(int) - Method in class com.facebook.spectrum.options.Options.Builder
The rotates the image by the given amount of degrees.
rotateRequirement - Variable in class com.facebook.spectrum.options.Options.Builder
 
rotateRequirement - Variable in class com.facebook.spectrum.options.Transformations
The rotate requirement to apply.
RotateRequirement - Class in com.facebook.spectrum.requirements
Defines how an image should be rotated.
RotateRequirement(int) - Constructor for class com.facebook.spectrum.requirements.RotateRequirement
Creates new RotateRequirement with the given rotation in degrees.
RotateRequirement(boolean) - Constructor for class com.facebook.spectrum.requirements.RotateRequirement
Creates new RotateRequirement with the option to "force up orientation".
RotateRequirement(int, boolean, boolean, boolean) - Constructor for class com.facebook.spectrum.requirements.RotateRequirement
Creates new RotateRequirement with the given rotation in degrees, flip indications, and a "force up orientation" parameter.

S

samplingMethod - Variable in class com.facebook.spectrum.Configuration
General: The sampling mode to use when scaling the image.
setChromaSamplingModeOverride(ImageChromaSamplingMode) - Method in class com.facebook.spectrum.Configuration.Builder
General: The ImageChromaSamplingMode to use when encoding.
setDefaultBackgroundColor(ImageColor) - Method in class com.facebook.spectrum.Configuration.Builder
General: Default background color to merge transparent images onto.
setInterpretMetadata(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
General: Whether to read and interpret metadata such as EXIF for JPEG files.
setPropagateChromaSamplingModeFromSource(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
General: Whether to propagate chroma sampling mode from the source image.
setSamplingMethod(Configuration.SamplingMethod) - Method in class com.facebook.spectrum.Configuration.Builder
General: The sampling algorithm to use for the scale operation.
setUseCompatibleDcScanOpt(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
Jpeg: Whether to use compatible DC scan configuration (keeping all DC components in the first scan) when encoding JPEG images.
setUseInterlacing(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
Png: Whether to save PNG images with interlaced encoding.
setUseOptimizeScan(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
Jpeg: Whether to use scan optimization when encoding JPEG images.
setUseProgressive(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
Jpeg: Whether to save JPEG images in progressive scan encoding.
setUsePsnrQuantTable(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
Jpeg: Whether to use an alternative quantization table optimized for PSNR when encoding JPEG images.
setUseTrellis(Boolean) - Method in class com.facebook.spectrum.Configuration.Builder
Jpeg: Whether to use trellis optimization when encoding JPEG images.
setWebpImageHint(Configuration.ImageHint) - Method in class com.facebook.spectrum.Configuration.Builder
Webp: Provides an optional Configuration.ImageHint to the webp encoder
setWebpMethod(Integer) - Method in class com.facebook.spectrum.Configuration.Builder
Webp: Compression quality/speed tradeoff where 0 is the fastest and 6 is the slowest/best compression.
size - Variable in class com.facebook.spectrum.image.ImageSpecification
 
Spectrum - Class in com.facebook.spectrum
SpectrumException - Exception in com.facebook.spectrum
Thrown when the request was unable to be fulfilled by Spectrum.
SpectrumException(String) - Constructor for exception com.facebook.spectrum.SpectrumException
Creates new exception with the given message
SpectrumException(Exception) - Constructor for exception com.facebook.spectrum.SpectrumException
Creates new exception with the given cause
SpectrumException(String, Exception) - Constructor for exception com.facebook.spectrum.SpectrumException
Creates new exception with the given message and cause
SpectrumHybrid - Class in com.facebook.spectrum
Internal object that maintains the state of the native implementation and controls the JNI interaction.
SpectrumHybrid(Configuration, SpectrumPlugin[]) - Constructor for class com.facebook.spectrum.SpectrumHybrid
 
SpectrumLogcatLogger - Class in com.facebook.spectrum.logging
Simple implementation of SpectrumLogger which logs to Android's main log using Log.
SpectrumLogcatLogger() - Constructor for class com.facebook.spectrum.logging.SpectrumLogcatLogger
Creates a new LogcatLogger that informative messages logs at level Log.DEBUG and error messages at level Log.WARN.
SpectrumLogcatLogger(int) - Constructor for class com.facebook.spectrum.logging.SpectrumLogcatLogger
Creates a new LogcatLogger with the given log level for informational messages.
SpectrumLogcatLogger(int, int) - Constructor for class com.facebook.spectrum.logging.SpectrumLogcatLogger
Creates a new LogcatLogger with the given log and error level
SpectrumLogger - Interface in com.facebook.spectrum.logging
The interface to be implemented by the global logger for Spectrum events which are emitted for all requests.
SpectrumPlugin - Class in com.facebook.spectrum.plugins
Common plugin interface that allow aggregating native plugin creation methods between modules.
SpectrumPlugin() - Constructor for class com.facebook.spectrum.plugins.SpectrumPlugin
 
SpectrumResult - Class in com.facebook.spectrum
A Result encapsulates information about the operation (e.g.
SpectrumResult(String, ImageSpecification, ImageSpecification, long, long) - Constructor for class com.facebook.spectrum.SpectrumResult
 
SpectrumSoLoader - Class in com.facebook.spectrum
Helper class for initializing the SoLoader library (see https://github.com/facebook/SoLoader).
SpectrumSoLoader() - Constructor for class com.facebook.spectrum.SpectrumSoLoader
 

T

targetSize - Variable in class com.facebook.spectrum.requirements.ResizeRequirement
The target size to resize the image to.
toString() - Method in class com.facebook.spectrum.Configuration
 
toString() - Method in class com.facebook.spectrum.EncodedImageSink
 
toString() - Method in class com.facebook.spectrum.EncodedImageSource
 
toString() - Method in class com.facebook.spectrum.image.ImageColor
 
toString() - Method in class com.facebook.spectrum.image.ImageFormat
 
toString() - Method in class com.facebook.spectrum.image.ImageMetadata
 
toString() - Method in enum com.facebook.spectrum.image.ImagePixelSpecification
 
toString() - Method in class com.facebook.spectrum.image.ImageSize
 
toString() - Method in class com.facebook.spectrum.image.ImageSpecification
 
toString() - Method in class com.facebook.spectrum.options.DecodeOptions
 
toString() - Method in class com.facebook.spectrum.options.EncodeOptions
 
toString(String) - Method in class com.facebook.spectrum.options.Options
 
toString() - Method in class com.facebook.spectrum.options.Options
 
toString() - Method in class com.facebook.spectrum.options.TranscodeOptions
 
toString() - Method in class com.facebook.spectrum.options.Transformations
 
toString() - Method in class com.facebook.spectrum.options.TransformOptions
 
toString() - Method in class com.facebook.spectrum.requirements.CropRequirement
 
toString() - Method in class com.facebook.spectrum.requirements.EncodeRequirement
 
toString() - Method in class com.facebook.spectrum.requirements.ResizeRequirement
 
toString() - Method in class com.facebook.spectrum.requirements.RotateRequirement
 
toString() - Method in exception com.facebook.spectrum.SpectrumException
 
toString() - Method in class com.facebook.spectrum.SpectrumResult
 
transcode(EncodedImageSource, EncodedImageSink, TranscodeOptions, Object) - Method in class com.facebook.spectrum.Spectrum
A transcode operation reads an encoded image and creates an encoded image.
transcode(InputStream, OutputStream, TranscodeOptions) - Method in class com.facebook.spectrum.SpectrumHybrid
Wraps the native transcode method
TranscodeOptions - Class in com.facebook.spectrum.options
This Options object encapsulates all parameters for a transcode operation.
TranscodeOptions.Builder - Class in com.facebook.spectrum.options
 
transform(Bitmap, BitmapTarget, TransformOptions, Object) - Method in class com.facebook.spectrum.Spectrum
A transform operation reads a bitmap and creates a bitmap.
transform(Bitmap, BitmapTarget, TransformOptions) - Method in class com.facebook.spectrum.SpectrumHybrid
Wraps the native transform method
transformations - Variable in class com.facebook.spectrum.options.Options
Contains optional Transformations such as resize, cropping and rotation.
Transformations - Class in com.facebook.spectrum.options
Image transformations that can be applied to an operation.
TransformOptions - Class in com.facebook.spectrum.options
This Options object encapsulates all parameters for a transform operation.
TransformOptions.Builder - Class in com.facebook.spectrum.options
 

U

useCompatibleDcScanOpt - Variable in class com.facebook.spectrum.Configuration
Jpeg: Whether to use compatible DC scan configuration (keeping all DC components in the first scan) when encoding JPEG images.
useInterlacing - Variable in class com.facebook.spectrum.Configuration
Png: Whether to save PNG images with interlaced encoding.
useOptimizeScan - Variable in class com.facebook.spectrum.Configuration
Jpeg: Whether to use scan optimization when encoding JPEG images.
useProgressive - Variable in class com.facebook.spectrum.Configuration
Jpeg: Whether to save JPEG images in progressive scan encoding.
usePsnrQuantTable - Variable in class com.facebook.spectrum.Configuration
Jpeg: Whether to use an alternative quantization table optimized for PSNR when encoding JPEG images.
useTrellis - Variable in class com.facebook.spectrum.Configuration
Jpeg: Whether to use trellis optimization when encoding JPEG images.

V

value - Variable in enum com.facebook.spectrum.image.ImageChromaSamplingMode
 
value - Variable in enum com.facebook.spectrum.image.ImageOrientation
 
valueOf(String) - Static method in enum com.facebook.spectrum.Configuration.ImageHint
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.facebook.spectrum.Configuration.SamplingMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.facebook.spectrum.image.ImageChromaSamplingMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.facebook.spectrum.image.ImageOrientation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.facebook.spectrum.image.ImagePixelSpecification
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.facebook.spectrum.requirements.EncodeRequirement.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.facebook.spectrum.requirements.ResizeRequirement.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.facebook.spectrum.Configuration.ImageHint
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.facebook.spectrum.Configuration.SamplingMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.facebook.spectrum.image.ImageChromaSamplingMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.facebook.spectrum.image.ImageOrientation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.facebook.spectrum.image.ImagePixelSpecification
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.facebook.spectrum.requirements.EncodeRequirement.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.facebook.spectrum.requirements.ResizeRequirement.Mode
Returns an array containing the constants of this enum type, in the order they are declared.

W

WEBP - Static variable in class com.facebook.spectrum.image.EncodedImageFormat
A WebP encoded image, see https://en.wikipedia.org/wiki/WebP
webpImageHint - Variable in class com.facebook.spectrum.Configuration
Webp: Provides an optional Configuration.ImageHint to the webp encoder
webpMethod - Variable in class com.facebook.spectrum.Configuration
Webp: Compression quality/speed tradeoff where 0 is the fastest and 6 is the slowest/best compression.
width - Variable in class com.facebook.spectrum.image.ImageSize
The size's width.
A B C D E F G H I J M O P Q R S T U V W 
Skip navigation links