FFmpeg
Data Structures | Macros | Functions | Variables
h264_redundant_pps.c File Reference
#include <inttypes.h>
#include "libavutil/log.h"
#include "bsf.h"
#include "bsf_internal.h"
#include "cbs.h"
#include "cbs_bsf.h"
#include "cbs_h264.h"
#include "codec_id.h"
#include "h264.h"
#include "packet.h"

Go to the source code of this file.

Data Structures

struct  H264RedundantPPSContext
 

Macros

#define NEW_GLOBAL_PIC_INIT_QP   26
 

Functions

static int h264_redundant_pps_fixup_pps (H264RedundantPPSContext *ctx, CodedBitstreamUnit *unit)
 
static int h264_redundant_pps_fixup_slice (H264RedundantPPSContext *ctx, H264RawSliceHeader *slice)
 
static int h264_redundant_pps_update_fragment (AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)
 
static int h264_redundant_pps_init (AVBSFContext *bsf)
 

Variables

static const CBSBSFType h264_redundant_pps_type
 
static enum AVCodecID h264_redundant_pps_codec_ids []
 
const FFBitStreamFilter ff_h264_redundant_pps_bsf
 

Macro Definition Documentation

◆ NEW_GLOBAL_PIC_INIT_QP

#define NEW_GLOBAL_PIC_INIT_QP   26

Definition at line 32 of file h264_redundant_pps.c.

Function Documentation

◆ h264_redundant_pps_fixup_pps()

static int h264_redundant_pps_fixup_pps ( H264RedundantPPSContext ctx,
CodedBitstreamUnit unit 
)
static

Definition at line 39 of file h264_redundant_pps.c.

Referenced by h264_redundant_pps_update_fragment().

◆ h264_redundant_pps_fixup_slice()

static int h264_redundant_pps_fixup_slice ( H264RedundantPPSContext ctx,
H264RawSliceHeader slice 
)
static

Definition at line 64 of file h264_redundant_pps.c.

Referenced by h264_redundant_pps_update_fragment().

◆ h264_redundant_pps_update_fragment()

static int h264_redundant_pps_update_fragment ( AVBSFContext bsf,
AVPacket pkt,
CodedBitstreamFragment au 
)
static

Definition at line 78 of file h264_redundant_pps.c.

◆ h264_redundant_pps_init()

static int h264_redundant_pps_init ( AVBSFContext bsf)
static

Definition at line 110 of file h264_redundant_pps.c.

Variable Documentation

◆ h264_redundant_pps_type

const CBSBSFType h264_redundant_pps_type
static
Initial value:
= {
.codec_id = AV_CODEC_ID_H264,
.fragment_name = "access unit",
.unit_name = "NAL unit",
}

Definition at line 103 of file h264_redundant_pps.c.

Referenced by h264_redundant_pps_init().

◆ h264_redundant_pps_codec_ids

enum AVCodecID h264_redundant_pps_codec_ids[]
static
Initial value:

Definition at line 115 of file h264_redundant_pps.c.

◆ ff_h264_redundant_pps_bsf

const FFBitStreamFilter ff_h264_redundant_pps_bsf
Initial value:
= {
.p.name = "h264_redundant_pps",
.priv_data_size = sizeof(H264RedundantPPSContext),
}

Definition at line 119 of file h264_redundant_pps.c.

H264RedundantPPSContext
Definition: h264_redundant_pps.c:34
filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
h264_redundant_pps_update_fragment
static int h264_redundant_pps_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)
Definition: h264_redundant_pps.c:78
AV_CODEC_ID_H264
@ AV_CODEC_ID_H264
Definition: codec_id.h:79
h264_redundant_pps_codec_ids
static enum AVCodecID h264_redundant_pps_codec_ids[]
Definition: h264_redundant_pps.c:115
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
ff_cbs_bsf_generic_close
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
Definition: cbs_bsf.c:155
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
ff_cbs_bsf_generic_filter
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
Definition: cbs_bsf.c:61
h264_redundant_pps_init
static int h264_redundant_pps_init(AVBSFContext *bsf)
Definition: h264_redundant_pps.c:110