FFmpeg
Loading...
Searching...
No Matches
dts_gen.h File Reference
#include <stdint.h>
#include "libavutil/opt.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  FFDTSGen
 

Macros

#define FF_DTS_GEN_DELAY_AUTO   -1
 
#define FF_DTS_GEN_DELAY_SKIP   -2
 
#define FF_DTS_GEN_DELAY_MAX   16
 
#define FF_DTS_GEN_REORDER_DELAY_OPTION(offset, flags)
 

Functions

av_cold int ff_dts_gen_init (const AVCodecContext *avctx, FFDTSGen *g, int delay)
 
void ff_dts_gen_record_pts (FFDTSGen *g, int64_t pts)
 
void ff_dts_gen_fill_pkt (AVCodecContext *avctx, FFDTSGen *g, AVPacket *pkt)
 
av_cold void ff_dts_gen_reset (FFDTSGen *g)
 

Macro Definition Documentation

◆ FF_DTS_GEN_DELAY_AUTO

#define FF_DTS_GEN_DELAY_AUTO   -1

◆ FF_DTS_GEN_DELAY_SKIP

#define FF_DTS_GEN_DELAY_SKIP   -2

Definition at line 34 of file dts_gen.h.

Referenced by ff_dts_gen_fill_pkt(), and run_invalid_delays().

◆ FF_DTS_GEN_DELAY_MAX

#define FF_DTS_GEN_DELAY_MAX   16

◆ FF_DTS_GEN_REORDER_DELAY_OPTION

#define FF_DTS_GEN_REORDER_DELAY_OPTION ( offset,
flags )
Value:
{ "reorder_delay", "Reorder delay in frames used to generate dts; a value below the real reorder depth makes dts non-monotonic", \
{ "auto", "Derive the delay from the encoder configuration", \
0, AV_OPT_TYPE_CONST, { .i64 = FF_DTS_GEN_DELAY_AUTO }, 0, 0, flags, .unit = "reorder_delay" }, \
{ "skip", "Leave dts unset for codecs that support reordering", \
0, AV_OPT_TYPE_CONST, { .i64 = FF_DTS_GEN_DELAY_SKIP }, 0, 0, flags, .unit = "reorder_delay" }
#define flags(name, subs,...)
Definition cbs_h264.c:74
#define FF_DTS_GEN_DELAY_SKIP
Definition dts_gen.h:34
#define FF_DTS_GEN_DELAY_MAX
Definition dts_gen.h:35
#define FF_DTS_GEN_DELAY_AUTO
Definition dts_gen.h:32
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
Definition opt.h:298
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
unsigned offset
Definition libaomenc.c:812

Definition at line 40 of file dts_gen.h.

Function Documentation

◆ ff_dts_gen_init()

av_cold int ff_dts_gen_init ( const AVCodecContext * avctx,
FFDTSGen * g,
int delay )

◆ ff_dts_gen_record_pts()

void ff_dts_gen_record_pts ( FFDTSGen * g,
int64_t pts )

Definition at line 51 of file dts_gen.c.

Referenced by mediacodec_send(), nvenc_send_frame(), run_case(), run_reset(), and vtenc_frame().

◆ ff_dts_gen_fill_pkt()

void ff_dts_gen_fill_pkt ( AVCodecContext * avctx,
FFDTSGen * g,
AVPacket * pkt )

◆ ff_dts_gen_reset()

av_cold void ff_dts_gen_reset ( FFDTSGen * g)