32#define NEW_GLOBAL_PIC_INIT_QP 26
48 err = ff_cbs_make_unit_writable(
ctx->common.input, unit);
59 pps->weighted_pred_flag = 1;
105 .fragment_name =
"access unit",
106 .unit_name =
"NAL unit",
120 .p.name =
"h264_redundant_pps",
static av_cold void close(AVCodecParserContext *s)
const FFBitStreamFilter ff_h264_redundant_pps_bsf
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
av_cold void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
av_cold int ff_cbs_bsf_generic_init(AVBSFContext *bsf, const CBSBSFType *type)
Initialise generic CBS BSF setup.
#define i(width, name, range_min, range_max)
static int FUNC nal(CodedBitstreamContext *ctx, RWContext *rw, LCEVCRawNAL *current, int nal_unit_type)
int(* init)(AVBSFContext *ctx)
AVCodecID
Identify the syntax and semantics of the bitstream.
H.264 common definitions.
#define NEW_GLOBAL_PIC_INIT_QP
static int h264_redundant_pps_fixup_slice(H264RedundantPPSContext *ctx, H264RawSliceHeader *slice)
static int h264_redundant_pps_fixup_pps(H264RedundantPPSContext *ctx, CodedBitstreamUnit *unit)
static int h264_redundant_pps_init(AVBSFContext *bsf)
static const CBSBSFType h264_redundant_pps_type
static int h264_redundant_pps_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)
static enum AVCodecID h264_redundant_pps_codec_ids[]
The bitstream filter state.
void * priv_data
Opaque filter-specific private data.
This structure stores compressed data.
Coded bitstream fragment structure, combining one or more units.
CodedBitstreamUnit * units
Pointer to an array of units of length nb_units_allocated.
int nb_units
Number of units in this fragment.
H264RawPPS * pps[H264_MAX_PPS_COUNT]
RefStruct references.
Coded bitstream unit structure.
void * content
Pointer to the decomposed form of this unit.
H264RawSliceHeader header
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)
static AVFormatContext * ctx