Back to Fresco

NativeJpegTranscoderFactory

docs/javadoc/reference/com/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory.html

3.6.013.7 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

public class

NativeJpegTranscoderFactory

extends Object
implements ImageTranscoderFactory

| java.lang.Object | | ↳ | com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory |

Summary

Public Constructors
Public Methods
ImageTranscoder
Creates an ImageTranscoder that enables or disables resizing depending on isResizingEnabled.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.transcoder.ImageTranscoderFactory

| abstract ImageTranscoder | createImageTranscoder(ImageFormat imageFormat, boolean isResizingEnabled) Creates an ImageTranscoder that enables or disables resizing depending on isResizingEnabled. |

|

Public Constructors

public NativeJpegTranscoderFactory(int maxBitmapSize, boolean useDownSamplingRatio, boolean ensureTranscoderLibraryLoaded)

Public Methods

public ImageTranscoder createImageTranscoder(ImageFormat imageFormat, boolean isResizingEnabled)

Creates an ImageTranscoder that enables or disables resizing depending on isResizingEnabled. It can return null if the ImageFormat is not supported by this ImageTranscoder.

Note that if JPEG images are not supported, we will fallback to our native ImageTranscoder implementation.

Parameters

| imageFormat | the ImageFormat of the input images. | | isResizingEnabled | true if resizing is allowed. |

Returns
  • The ImageTranscoder or null if the image format is not supported.

+Generated by Doclava. +