Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ccdtovcd.mpeg
Class MPEG1StillEncoder  view MPEG1StillEncoder download MPEG1StillEncoder.java

java.lang.Object
  extended byorg.ccdtovcd.mpeg.MPEG1StillEncoder

public class MPEG1StillEncoder
extends java.lang.Object


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

Field Detail

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
Constructor Detail

MPEG1StillEncoder

public MPEG1StillEncoder(int quality)
Method Detail

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)