public class JPEGTranscoder extends ImageTranscoder
ImageTranscoder.ImageInfo
scaleGridBottom, scaleGridLeft, scaleGridRight, scaleGridTop, scaling
baseClassQName, byteArrayNamePostfix, CORE_PACKAGE, data, source, swcSource, UTILS_PACKAGE, workspace
Constructor and Description |
---|
JPEGTranscoder(EmbedData data,
Workspace workspace) |
Modifier and Type | Method and Description |
---|---|
boolean |
analyze(ISourceLocation location,
Collection<ICompilerProblem> problems)
Analyze the attributes
|
protected boolean |
checkAttributeValues(ISourceLocation location,
Collection<ICompilerProblem> problems)
Verify the attributes are valid for the specific transcoder
|
static byte[] |
deflate(byte[] buf) |
protected Map<String,ICharacterTag> |
doTranscode(Collection<ITag> tags,
Collection<ICompilerProblem> problems)
Transcode the embedded asset
|
boolean |
equals(Object o) |
int |
hashCode() |
protected boolean |
setAttribute(EmbedAttribute attribute)
Stores the supported attribute of the transcoder
|
getImageInfo
buildScalingGrid, buildSprite
buildABC, buildAST, buildBinaryDataTag, getBaseClassName, getBaseClassQName, getDataBytes, getDataStream, getTags
public boolean analyze(ISourceLocation location, Collection<ICompilerProblem> problems)
TranscoderBase
analyze
in class ImageTranscoder
location
- Source location from where the embed came fromproblems
- Any problems discovered in the EmbedNodeprotected boolean checkAttributeValues(ISourceLocation location, Collection<ICompilerProblem> problems)
TranscoderBase
checkAttributeValues
in class ScalableTranscoder
protected boolean setAttribute(EmbedAttribute attribute)
TranscoderBase
setAttribute
in class ImageTranscoder
protected Map<String,ICharacterTag> doTranscode(Collection<ITag> tags, Collection<ICompilerProblem> problems)
TranscoderBase
doTranscode
in class ImageTranscoder
tags
- The collection of transcoded asset tagsproblems
- The collection of compiler problems to which this method will add problems.public static byte[] deflate(byte[] buf) throws IOException
IOException
public boolean equals(Object o)
equals
in class ImageTranscoder
public int hashCode()
hashCode
in class ImageTranscoder
Copyright © 2016 The Apache Software Foundation. All rights reserved.