com.twilight.h264.decoder
Class H264Decoder

java.lang.Object
  extended by com.twilight.h264.decoder.H264Decoder

public class H264Decoder
extends Object


Field Summary
 int capabilities
          Codec capabilities.
 long[] channel_layouts
           
static int CODEC_CAP_DELAY
          Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data.
static int CODEC_CAP_DR1
           
static int CODEC_CAP_PARSE_ONLY
           
static int CODEC_CAP_TRUNCATED
           
 int id
           
 String long_name
          Descriptive name for the codec, meant to be more human readable than name.
 int max_lowres
           
 String name
          Name of the codec implementation.
 int[] pix_fmts
           
 int[] sample_fmts
           
 AVRational[] supported_framerates
           
 int[] supported_samplerates
           
 
Constructor Summary
H264Decoder()
           
 
Method Summary
 int close(MpegEncContext s)
           
 int decode(MpegEncContext s, AVFrame outdata, int[] outdata_size, AVPacket avpkt)
           
 void flush(MpegEncContext s)
          Flush buffers.
 int init(MpegEncContext s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODEC_CAP_DR1

public static final int CODEC_CAP_DR1
See Also:
Constant Field Values

CODEC_CAP_PARSE_ONLY

public static final int CODEC_CAP_PARSE_ONLY
See Also:
Constant Field Values

CODEC_CAP_TRUNCATED

public static final int CODEC_CAP_TRUNCATED
See Also:
Constant Field Values

CODEC_CAP_DELAY

public static final int CODEC_CAP_DELAY
Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data. If this is not set, the codec is guaranteed to never be fed with NULL data.

See Also:
Constant Field Values

name

public String name
Name of the codec implementation. The name is globally unique among encoders and among decoders (but an encoder and a decoder can share the same name). This is the primary way to find a codec from the user perspective.


id

public int id

capabilities

public int capabilities
Codec capabilities. see CODEC_CAP_*


supported_framerates

public AVRational[] supported_framerates

pix_fmts

public int[] pix_fmts

long_name

public String long_name
Descriptive name for the codec, meant to be more human readable than name. You should use the NULL_IF_CONFIG_SMALL() macro to define it.


supported_samplerates

public int[] supported_samplerates

sample_fmts

public int[] sample_fmts

channel_layouts

public long[] channel_layouts

max_lowres

public int max_lowres
Constructor Detail

H264Decoder

public H264Decoder()
Method Detail

init

public int init(MpegEncContext s)

close

public int close(MpegEncContext s)

decode

public int decode(MpegEncContext s,
                  AVFrame outdata,
                  int[] outdata_size,
                  AVPacket avpkt)

flush

public void flush(MpegEncContext s)
Flush buffers. Will be called when seeking



Copyright © 2013. All Rights Reserved.