com.twilight.h264.decoder
Class AVPacket

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

public class AVPacket
extends Object


Field Summary
 long convergence_duration
          Time difference in AVStream->time_base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.
 int[] data_base
           
 int data_offset
           
 long dts
          Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
 int duration
          Duration of this packet in AVStream->time_base units, 0 if unknown.
 int flags
           
 long pos
           
 long pts
          Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will be presented to the user.
 int size
           
 int stream_index
           
 
Constructor Summary
AVPacket()
           
 
Method Summary
 void av_init_packet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pts

public long pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will be presented to the user. Can be AV_NOPTS_VALUE if it is not stored in the file. pts MUST be larger or equal to dts as presentation cannot happen before decompression, unless one wants to view hex dumps. Some formats misuse the terms dts and pts/cts to mean something different. Such timestamps must be converted to true pts/dts before they are stored in AVPacket.


dts

public long dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed. Can be AV_NOPTS_VALUE if it is not stored in the file.


data_base

public int[] data_base

data_offset

public int data_offset

size

public int size

stream_index

public int stream_index

flags

public int flags

duration

public int duration
Duration of this packet in AVStream->time_base units, 0 if unknown. Equals next_pts - this_pts in presentation order.


pos

public long pos

convergence_duration

public long convergence_duration
Time difference in AVStream->time_base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames. That is, the frames are virtually identical no matter if decoding started from the very first frame or from this keyframe. Is AV_NOPTS_VALUE if unknown. This field is not the display duration of the current packet. This field has no meaning if the packet does not have AV_PKT_FLAG_KEY set. The purpose of this field is to allow seeking in streams that have no keyframes in the conventional sense. It corresponds to the recovery point SEI in H.264 and match_time_delta in NUT. It is also essential for some types of subtitle streams to ensure that all subtitles are correctly displayed after seeking.

Constructor Detail

AVPacket

public AVPacket()
Method Detail

av_init_packet

public void av_init_packet()


Copyright © 2013. All Rights Reserved.