1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
/*
* JPEGFrameComponent
*
* Copyright (c) 2005, 2006 Marco Schmidt.
* All rights reserved.
*/
package net.sourceforge.jiu.codecs.jpeg;
/**
* Data class for information on a JPEG frame component.
* @author Marco Schmidt
* @since 0.13.0
*/
public class JPEGFrameComponent
{
private int componentId;
private int horizontalSamplingFactor;
private int verticalSamplingFactor;
private int quantizationTableId;
public int getComponentId()
{
return componentId;
}
public int getHorizontalSamplingFactor()
{
return horizontalSamplingFactor;
}
public int getQuantizationTableId()
{
return quantizationTableId;
}
public int getVerticalSamplingFactor()
{
return verticalSamplingFactor;
}
public void setComponentId(int i)
{
componentId = i;
}
public void setHorizontalSamplingFactor(int i)
{
horizontalSamplingFactor = i;
}
public void setQuantizationTableId(int i)
{
quantizationTableId = i;
}
public void setVerticalSamplingFactor(int i)
{
verticalSamplingFactor = i;
}
public String toString()
{
StringBuffer sb = new StringBuffer();
sb.append("component id=");
sb.append(componentId);
sb.append(", horiz. sampling=");
sb.append(horizontalSamplingFactor);
sb.append(", vert. sampling=");
sb.append(verticalSamplingFactor);
sb.append(", quantization table=");
sb.append(quantizationTableId);
return sb.toString();
}
}
|