FFmpeg
Loading...
Searching...
No Matches
Data Fields
DecodeContext Struct Reference

#include <decode_simple.h>

Data Fields

 
  This is set to AV_FRAME_FLAG_KEY for decoders of intra-only formats (those whose codec descriptor has AV_CODEC_PROP_INTRA_ONLY set) to set the flag generically.
 
  This is set to AV_PICTURE_TYPE_I for intra only video decoders and to AV_PICTURE_TYPE_NONE for other decoders.
 
 
  The caller has submitted a NULL packet on input.
 
 
  Number of incorrect PTS values so far.
 
  Number of incorrect DTS values so far.
 
  PTS of the last frame.
 
uint64_t  side_data_pref_mask
  DTS of the last frame.
 
 
 
 
 
 
int(*  process_frame )(struct DecodeContext *dc, AVFrame *frame)
 
void *  opaque
 
 
int  max_frames
 

Detailed Description

Definition at line 63 of file decode.c.

Field Documentation

◆  avci

AVCodecInternal DecodeContext::avci

Definition at line 64 of file decode.c.

◆  intra_only_flag

int DecodeContext::intra_only_flag

This is set to AV_FRAME_FLAG_KEY for decoders of intra-only formats (those whose codec descriptor has AV_CODEC_PROP_INTRA_ONLY set) to set the flag generically.

Definition at line 71 of file decode.c.

Referenced by decode_simple_internal(), ff_decode_internal_sync(), ff_decode_preinit(), and ff_decode_receive_frame_internal().

◆  initial_pict_type

enum AVPictureType DecodeContext::initial_pict_type

This is set to AV_PICTURE_TYPE_I for intra only video decoders and to AV_PICTURE_TYPE_NONE for other decoders.

It is used to set the AVFrame's pict_type before the decoder receives it.

Definition at line 78 of file decode.c.

Referenced by decode_simple_internal(), ff_decode_internal_sync(), ff_decode_preinit(), and ff_decode_receive_frame_internal().

◆  nb_draining_errors

int DecodeContext::nb_draining_errors

Definition at line 81 of file decode.c.

Referenced by ff_decode_flush_buffers().

◆  draining_started

int DecodeContext::draining_started

The caller has submitted a NULL packet on input.

Definition at line 86 of file decode.c.

Referenced by avcodec_send_packet(), ff_decode_flush_buffers(), and ff_decode_get_packet().

◆  pts_correction_num_faulty_pts

int64_t DecodeContext::pts_correction_num_faulty_pts

Definition at line 88 of file decode.c.

Referenced by ff_decode_flush_buffers(), ff_decode_preinit(), and guess_correct_pts().

◆  pts_correction_num_faulty_dts

int64_t DecodeContext::pts_correction_num_faulty_dts

Number of incorrect PTS values so far.

Definition at line 89 of file decode.c.

Referenced by ff_decode_flush_buffers(), ff_decode_preinit(), and guess_correct_pts().

◆  pts_correction_last_pts

int64_t DecodeContext::pts_correction_last_pts

Number of incorrect DTS values so far.

Definition at line 90 of file decode.c.

Referenced by ff_decode_flush_buffers(), ff_decode_preinit(), and guess_correct_pts().

◆  pts_correction_last_dts

int64_t DecodeContext::pts_correction_last_dts

PTS of the last frame.

Definition at line 91 of file decode.c.

Referenced by ff_decode_flush_buffers(), ff_decode_preinit(), and guess_correct_pts().

◆  side_data_pref_mask

uint64_t DecodeContext::side_data_pref_mask

DTS of the last frame.

Bitmask indicating for which side data types we prefer user-supplied (global or attached to packets) side data over bytestream.

Definition at line 97 of file decode.c.

Referenced by ff_decode_internal_sync(), ff_decode_preinit(), and side_data_pref().

◆  demuxer

AVFormatContext* DecodeContext::demuxer

Definition at line 34 of file decode_simple.h.

Referenced by ds_free(), ds_open(), and ds_run().

◆  stream

AVStream* DecodeContext::stream

Definition at line 35 of file decode_simple.h.

Referenced by ds_open(), and ds_run().

◆  decoder

AVCodecContext* DecodeContext::decoder

Definition at line 36 of file decode_simple.h.

Referenced by decode_read(), ds_free(), ds_open(), ds_run(), process_frame(), process_frame(), and process_frame().

◆  pkt

AVPacket* DecodeContext::pkt

Definition at line 38 of file decode_simple.h.

Referenced by ds_free(), ds_open(), and ds_run().

◆  frame

AVFrame* DecodeContext::frame

Definition at line 39 of file decode_simple.h.

Referenced by decode_read(), ds_free(), ds_open(), ff_attach_decode_data(), and ff_decode_frame_props().

◆  process_frame

int(* DecodeContext::process_frame) (struct DecodeContext *dc, AVFrame *frame)

Definition at line 41 of file decode_simple.h.

Referenced by decode_read(), ds_run(), and main().

◆  opaque

void* DecodeContext::opaque

Definition at line 42 of file decode_simple.h.

Referenced by main(), process_frame(), and process_frame().

◆  decoder_opts

AVDictionary* DecodeContext::decoder_opts

Definition at line 44 of file decode_simple.h.

Referenced by ds_free(), ds_run(), and main().

◆  max_frames

int DecodeContext::max_frames

Definition at line 45 of file decode_simple.h.

Referenced by decode_read(), and main().


The documentation for this struct was generated from the following files:

Generated on Sun Sep 6 2026 19:21:25 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /