FFmpeg  4.4.4
Data Structures | Functions | Variables
h264_redundant_pps_bsf.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "bsf.h"
#include "bsf_internal.h"
#include "cbs.h"
#include "cbs_bsf.h"
#include "cbs_h264.h"
#include "h264.h"

Go to the source code of this file.

Data Structures

struct  H264RedundantPPSContext
 

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 void h264_redundant_pps_flush (AVBSFContext *bsf)
 
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 AVBitStreamFilter ff_h264_redundant_pps_bsf
 

Function Documentation

◆ h264_redundant_pps_fixup_pps()

static int h264_redundant_pps_fixup_pps ( H264RedundantPPSContext ctx,
CodedBitstreamUnit unit 
)
static

Definition at line 41 of file h264_redundant_pps_bsf.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 68 of file h264_redundant_pps_bsf.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 79 of file h264_redundant_pps_bsf.c.

◆ h264_redundant_pps_flush()

static void h264_redundant_pps_flush ( AVBSFContext bsf)
static

Definition at line 115 of file h264_redundant_pps_bsf.c.

◆ h264_redundant_pps_init()

static int h264_redundant_pps_init ( AVBSFContext bsf)
static

Definition at line 128 of file h264_redundant_pps_bsf.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",
}
@ AV_CODEC_ID_H264
Definition: codec_id.h:76
static int h264_redundant_pps_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)

Definition at line 121 of file h264_redundant_pps_bsf.c.

◆ h264_redundant_pps_codec_ids

enum AVCodecID h264_redundant_pps_codec_ids[]
static
Initial value:
= {
}
@ AV_CODEC_ID_NONE
Definition: codec_id.h:47

Definition at line 128 of file h264_redundant_pps_bsf.c.

◆ ff_h264_redundant_pps_bsf

const AVBitStreamFilter ff_h264_redundant_pps_bsf
Initial value:
= {
.name = "h264_redundant_pps",
.priv_data_size = sizeof(H264RedundantPPSContext),
}
static enum AVCodecID codec_ids[]
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
Definition: cbs_bsf.c:63
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
Definition: cbs_bsf.c:152
static av_always_inline void filter(int16_t *output, ptrdiff_t out_stride, const int16_t *low, ptrdiff_t low_stride, const int16_t *high, ptrdiff_t high_stride, int len, int clip)
Definition: cfhddsp.c:27
static int h264_redundant_pps_init(AVBSFContext *bsf)
static void h264_redundant_pps_flush(AVBSFContext *bsf)
static enum AVCodecID h264_redundant_pps_codec_ids[]

Definition at line 141 of file h264_redundant_pps_bsf.c.