Go to the documentation of this file.
57 ctx->current_pic_init_qp =
pps->pic_init_qp_minus26 + 26;
58 pps->pic_init_qp_minus26 =
ctx->global_pic_init_qp - 26;
63 pps->weighted_pred_flag = 1;
99 "at %"PRId64
".\n",
pkt->
pts);
118 ctx->current_pic_init_qp =
ctx->extradata_pic_init_qp;
123 .fragment_name =
"access unit",
124 .unit_name =
"NAL unit",
132 ctx->global_pic_init_qp = 26;
142 .
name =
"h264_redundant_pps",
const AVBitStreamFilter ff_h264_redundant_pps_bsf
static av_cold int init(AVCodecContext *avctx)
int ff_cbs_bsf_generic_init(AVBSFContext *bsf, const CBSBSFType *type)
Initialise generic CBS BSF setup.
static int h264_redundant_pps_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)
static int h264_redundant_pps_fixup_slice(H264RedundantPPSContext *ctx, H264RawSliceHeader *slice)
static const CBSBSFType h264_redundant_pps_type
void * content
Pointer to the decomposed form of this unit.
#define AV_LOG_VERBOSE
Detailed information.
CodedBitstreamUnitType type
Codec-specific type of this unit.
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
The bitstream filter state.
Coded bitstream unit structure.
int ff_cbs_make_unit_writable(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
Make the content of a unit writable so that internal fields can be modified.
CodedBitstreamUnit * units
Pointer to an array of units of length nb_units_allocated.
Coded bitstream fragment structure, combining one or more units.
static int h264_redundant_pps_fixup_pps(H264RedundantPPSContext *ctx, CodedBitstreamUnit *unit)
static void flush(AVCodecContext *avctx)
static void h264_redundant_pps_flush(AVBSFContext *bsf)
AVCodecID
Identify the syntax and semantics of the bitstream.
static int FUNC() pps(CodedBitstreamContext *ctx, RWContext *rw, H264RawPPS *current)
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
H264RawSliceHeader header
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
void * priv_data
Opaque filter-specific private data.
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
static int h264_redundant_pps_init(AVBSFContext *bsf)
int extradata_pic_init_qp
static enum AVCodecID codec_ids[]
This structure stores compressed data.
static enum AVCodecID h264_redundant_pps_codec_ids[]
int nb_units
Number of units in this fragment.
void ff_cbs_delete_unit(CodedBitstreamFragment *frag, int position)
Delete a unit from a fragment and free all memory it uses.