Tabnine Logo
PNGEncodeParam.paethPredictor
Code IndexAdd Tabnine to your IDE (free)

How to use
paethPredictor
method
in
org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam

Best Java code snippets using org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam.paethPredictor (Showing top 4 results out of 315)

origin: liuyueyi/quick-media

private static void decodePaethFilter(byte[] curr, byte[] prev,
                   int count, int bpp) {
  int raw, priorPixel, priorRow, priorRowPixel;
  for (int i = 0; i < bpp; i++) {
    raw = curr[i] & 0xff;
    priorRow = prev[i] & 0xff;
    curr[i] = (byte)(raw + priorRow);
  }
  for (int i = bpp; i < count; i++) {
    raw = curr[i] & 0xff;
    priorPixel = curr[i - bpp] & 0xff;
    priorRow = prev[i] & 0xff;
    priorRowPixel = prev[i - bpp] & 0xff;
    curr[i] = (byte)(raw + PNGEncodeParam.paethPredictor(priorPixel,
                       priorRow,
                       priorRowPixel));
  }
}
origin: org.apache.xmlgraphics/batik-codec

private static void decodePaethFilter(byte[] curr, byte[] prev,
                   int count, int bpp) {
  int raw, priorPixel, priorRow, priorRowPixel;
  for (int i = 0; i < bpp; i++) {
    raw = curr[i] & 0xff;
    priorRow = prev[i] & 0xff;
    curr[i] = (byte)(raw + priorRow);
  }
  for (int i = bpp; i < count; i++) {
    raw = curr[i] & 0xff;
    priorPixel = curr[i - bpp] & 0xff;
    priorRow = prev[i] & 0xff;
    priorRowPixel = prev[i - bpp] & 0xff;
    curr[i] = (byte)(raw + PNGEncodeParam.paethPredictor(priorPixel,
                       priorRow,
                       priorRowPixel));
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private static void decodePaethFilter(byte[] curr, byte[] prev,
                   int count, int bpp) {
  int raw, priorPixel, priorRow, priorRowPixel;
  for (int i = 0; i < bpp; i++) {
    raw = curr[i] & 0xff;
    priorRow = prev[i] & 0xff;
    curr[i] = (byte)(raw + priorRow);
  }
  for (int i = bpp; i < count; i++) {
    raw = curr[i] & 0xff;
    priorPixel = curr[i - bpp] & 0xff;
    priorRow = prev[i] & 0xff;
    priorRowPixel = prev[i - bpp] & 0xff;
    curr[i] = (byte)(raw + PNGEncodeParam.paethPredictor(priorPixel,
                       priorRow,
                       priorRowPixel));
  }
}
origin: apache/batik

private static void decodePaethFilter(byte[] curr, byte[] prev,
                   int count, int bpp) {
  int raw, priorPixel, priorRow, priorRowPixel;
  for (int i = 0; i < bpp; i++) {
    raw = curr[i] & 0xff;
    priorRow = prev[i] & 0xff;
    curr[i] = (byte)(raw + priorRow);
  }
  for (int i = bpp; i < count; i++) {
    raw = curr[i] & 0xff;
    priorPixel = curr[i - bpp] & 0xff;
    priorRow = prev[i] & 0xff;
    priorRowPixel = prev[i - bpp] & 0xff;
    curr[i] = (byte)(raw + PNGEncodeParam.paethPredictor(priorPixel,
                       priorRow,
                       priorRowPixel));
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParampaethPredictor

Javadoc

The Paeth predictor routine used in PNG encoding. This routine is included as a convenience to subclasses that override the filterRow method.

Popular methods of PNGEncodeParam

  • abs
    An abs() function for use by the Paeth predictor.
  • addPrivateChunk
    Adds a private chunk, in binary form, to the list of chunks to be stored with this image.
  • filterRow
    Performs filtering on a row of an image. This method may be overridden in order to provide a custom
  • getChromaticity
    Returns the white point and primary chromaticities in CIE (x, y) space. See the documentation for th
  • getCompressedText
    Returns the text strings to be stored in compressed form with this image as an array of Strings. If
  • getDefaultEncodeParam
    Returns an instance of PNGEncodeParam.Palette,PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate
  • getGamma
    Returns the file gamma value for the image. If the file gamma has not previously been set, or has be
  • getICCProfileData
    Returns the ICC profile data to be stored with this image. If the ICC profile has not previously bee
  • getInterlacing
    Returns true if Adam7 interlacing will be used.
  • getModificationTime
    Returns the modification time to be stored with this image. If the bit depth has not previously been
  • getNumPrivateChunks
    Returns the number of private chunks to be written to the output file.
  • getPaletteHistogram
    Returns the palette histogram to be stored with this image. If the histogram has not previously been
  • getNumPrivateChunks,
  • getPaletteHistogram,
  • getPhysicalDimension,
  • getPrivateChunkData,
  • getPrivateChunkType,
  • getSRGBIntent,
  • getSignificantBits,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now