java.lang.Object
org.ccdtovcd.mpeg.MPEG1StillEncoder
- public class MPEG1StillEncoder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addrinctab
private static final int[] addrinctab
mbtypetab
private static final int[] mbtypetab
mpegVersion
private static final int mpegVersion
- See Also:
- Constant Field Values
PACK_START_CODE
private static final int PACK_START_CODE
- See Also:
- Constant Field Values
SYSTEM_HEADER_START_CODE
private static final int SYSTEM_HEADER_START_CODE
- See Also:
- Constant Field Values
ISO_11172_END_CODE
private static final int ISO_11172_END_CODE
- See Also:
- Constant Field Values
PACKET_START_CODE_PREFIX
private static final int[] PACKET_START_CODE_PREFIX
STILL_PICTURE_STREAM_ID
private static final int STILL_PICTURE_STREAM_ID
- See Also:
- Constant Field Values
PADDING_STREAM_ID
private static final int PADDING_STREAM_ID
- See Also:
- Constant Field Values
SEQ_END_CODE
private static final int SEQ_END_CODE
- See Also:
- Constant Field Values
SEQ_START_CODE
private static final int SEQ_START_CODE
- See Also:
- Constant Field Values
GOP_START_CODE
private static final int GOP_START_CODE
- See Also:
- Constant Field Values
PICTURE_START_CODE
private static final int PICTURE_START_CODE
- See Also:
- Constant Field Values
SLICE_MIN_START_CODE
private static final int SLICE_MIN_START_CODE
- See Also:
- Constant Field Values
SLICE_MAX_START_CODE
private static final int SLICE_MAX_START_CODE
- See Also:
- Constant Field Values
EXT_START_CODE
private static final int EXT_START_CODE
- See Also:
- Constant Field Values
USER_START_CODE
private static final int USER_START_CODE
- See Also:
- Constant Field Values
I_TYPE
public static final int I_TYPE
- See Also:
- Constant Field Values
P_TYPE
public static final int P_TYPE
- See Also:
- Constant Field Values
B_TYPE
public static final int B_TYPE
- See Also:
- Constant Field Values
dct
private DCT dct
image
private java.awt.image.BufferedImage image
isNtsc
private boolean isNtsc
hiRes
private boolean hiRes
outputStream
private java.io.OutputStream outputStream
macroBlockArray
private MacroBlock[] macroBlockArray
MPEG1StillEncoder
public MPEG1StillEncoder(int quality)
encode
public void encode(java.awt.image.BufferedImage bImage,
boolean isNtsc,
boolean hiRes,
java.io.File outputFile)
throws java.io.IOException
produceVideoStream
private void produceVideoStream(BitOutputStream bos)
throws java.io.IOException
putaddrinc
private void putaddrinc(int addrinc,
BitOutputStream out)
throws java.io.IOException
quantIntra
private void quantIntra(MacroBlock macroBlock)
main
public static void main(java.lang.String[] argv)