|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.MIME.Handler.ThumbnailParams
public static final class Handler.ThumbnailParams
Some constant parameters and hints for thumbnail building. Each handler that can build thumbnails should define one of these statically and return it from getThumbnailParameters().
If canMakeThumbnails() returns true, getThumbnailParameters() must return a non-null value.
This exists to help cluttering the base class API with things relevant only to the internal mechanics of this system.
| Field Summary | |
|---|---|
int |
approxMinOverheadBytes
Approximate minimum overhead of format in bytes; non-negative. |
int |
estimatedBytesPerImagePixelInMemory
Estimated bytes-per-pixel of image in memory; positive. |
int |
initialQualityHint
Suggested initial quality value. |
int |
maxQuality
Maximum usable value of "quality" parameter to makeScaledImage(). |
int |
minQuality
Minimum usable value of "quality" parameter to makeScaledImage(); non-negative. |
int |
thumbnailBppHint
Suggested target bits-per-pixel for a thumbnail; positive. |
| Constructor Summary | |
|---|---|
Handler.ThumbnailParams(int estimatedBytesPerImagePixelInMemory,
int minQuality,
int maxQuality,
int initialQualityHint,
int thumbnailBppHint,
int approxMinOverheadBytes)
Construct an instance. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int estimatedBytesPerImagePixelInMemory
public final int minQuality
public final int maxQuality
If the same as minQuality this indicates that this is not parametrically variable.
public final int initialQualityHint
Careful choice of this will help reduce the number of redundant image builds done.
public final int thumbnailBppHint
This is a hint to generation routines.
public final int approxMinOverheadBytes
This is used to help make better estimates of target thumbnail sizes, etc, and need not be (indeed, probably cannot be) exact given that each format may have different representations.
Can be zero, though all reasonable implementations should at least default to the size of any leading "magic" number.
| Constructor Detail |
|---|
public Handler.ThumbnailParams(int estimatedBytesPerImagePixelInMemory,
int minQuality,
int maxQuality,
int initialQualityHint,
int thumbnailBppHint,
int approxMinOverheadBytes)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
DHD Multimedia Gallery V1.53.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||