Revision 18c915ee libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
843 843
#define FF_BUFFER_HINTS_PRESERVE 0x04 // User must not alter buffer content.
844 844
#define FF_BUFFER_HINTS_REUSABLE 0x08 // Codec will reuse the buffer (update).
845 845

  
846
typedef struct AVPacket {
847
    /**
848
     * Presentation timestamp in time_base units; the time at which the
849
     * decompressed packet will be presented to the user.
850
     * Can be AV_NOPTS_VALUE if it is not stored in the file.
851
     * pts MUST be larger or equal to dts as presentation cannot happen before
852
     * decompression, unless one wants to view hex dumps. Some formats misuse
853
     * the terms dts and pts/cts to mean something different. Such timestamps
854
     * must be converted to true pts/dts before they are stored in AVPacket.
855
     */
856
    int64_t pts;
857
    /**
858
     * Decompression timestamp in time_base units; the time at which the
859
     * packet is decompressed.
860
     * Can be AV_NOPTS_VALUE if it is not stored in the file.
861
     */
862
    int64_t dts;
863
    uint8_t *data;
864
    int   size;
865
    int   stream_index;
866
    int   flags;
867
    /**
868
     * Duration of this packet in time_base units, 0 if unknown.
869
     * Equals next_pts - this_pts in presentation order.
870
     */
871
    int   duration;
872
    void  (*destruct)(struct AVPacket *);
873
    void  *priv;
874
    int64_t pos;                            ///< byte position in stream, -1 if unknown
875

  
876
    /**
877
     * Time difference in stream time base units from the pts of this
878
     * packet to the point at which the output from the decoder has converged
879
     * independent from the availability of previous frames. That is, the
880
     * frames are virtually identical no matter if decoding started from
881
     * the very first frame or from this keyframe.
882
     * Is AV_NOPTS_VALUE if unknown.
883
     * This field is not the display duration of the current packet.
884
     *
885
     * The purpose of this field is to allow seeking in streams that have no
886
     * keyframes in the conventional sense. It corresponds to the
887
     * recovery point SEI in H.264 and match_time_delta in NUT. It is also
888
     * essential for some types of subtitle streams to ensure that all
889
     * subtitles are correctly displayed after seeking.
890
     */
891
    int64_t convergence_duration;
892
} AVPacket;
893
#define PKT_FLAG_KEY   0x0001
894

  
846 895
/**
847 896
 * Audio Video Frame.
848 897
 * New fields can be added to the end of FF_COMMON_FRAME with minor version
......
2530 2579
} AVPaletteControl attribute_deprecated;
2531 2580
#endif
2532 2581

  
2533
typedef struct AVPacket {
2534
    /**
2535
     * Presentation timestamp in time_base units; the time at which the
2536
     * decompressed packet will be presented to the user.
2537
     * Can be AV_NOPTS_VALUE if it is not stored in the file.
2538
     * pts MUST be larger or equal to dts as presentation cannot happen before
2539
     * decompression, unless one wants to view hex dumps. Some formats misuse
2540
     * the terms dts and pts/cts to mean something different. Such timestamps
2541
     * must be converted to true pts/dts before they are stored in AVPacket.
2542
     */
2543
    int64_t pts;
2544
    /**
2545
     * Decompression timestamp in time_base units; the time at which the
2546
     * packet is decompressed.
2547
     * Can be AV_NOPTS_VALUE if it is not stored in the file.
2548
     */
2549
    int64_t dts;
2550
    uint8_t *data;
2551
    int   size;
2552
    int   stream_index;
2553
    int   flags;
2554
    /**
2555
     * Duration of this packet in time_base units, 0 if unknown.
2556
     * Equals next_pts - this_pts in presentation order.
2557
     */
2558
    int   duration;
2559
    void  (*destruct)(struct AVPacket *);
2560
    void  *priv;
2561
    int64_t pos;                            ///< byte position in stream, -1 if unknown
2562

  
2563
    /**
2564
     * Time difference in stream time base units from the pts of this
2565
     * packet to the point at which the output from the decoder has converged
2566
     * independent from the availability of previous frames. That is, the
2567
     * frames are virtually identical no matter if decoding started from
2568
     * the very first frame or from this keyframe.
2569
     * Is AV_NOPTS_VALUE if unknown.
2570
     * This field is not the display duration of the current packet.
2571
     *
2572
     * The purpose of this field is to allow seeking in streams that have no
2573
     * keyframes in the conventional sense. It corresponds to the
2574
     * recovery point SEI in H.264 and match_time_delta in NUT. It is also
2575
     * essential for some types of subtitle streams to ensure that all
2576
     * subtitles are correctly displayed after seeking.
2577
     */
2578
    int64_t convergence_duration;
2579
} AVPacket;
2580
#define PKT_FLAG_KEY   0x0001
2581

  
2582 2582
enum AVSubtitleType {
2583 2583
    SUBTITLE_NONE,
2584 2584

  

Also available in: Unified diff