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",
static enum AVCodecID codec_ids[]
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
void ff_cbs_delete_unit(CodedBitstreamFragment *frag, int position)
Delete a unit from a fragment and free all memory it uses.
int ff_cbs_make_unit_writable(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
Make the content of a unit writable so that internal fields can be modified.
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
int ff_cbs_bsf_generic_init(AVBSFContext *bsf, const CBSBSFType *type)
Initialise generic CBS BSF setup.
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
static int FUNC() pps(CodedBitstreamContext *ctx, RWContext *rw, H264RawPPS *current)
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)
common internal and external API header
AVCodecID
Identify the syntax and semantics of the bitstream.
#define AV_LOG_VERBOSE
Detailed information.
H.264 common definitions.
static int h264_redundant_pps_fixup_slice(H264RedundantPPSContext *ctx, H264RawSliceHeader *slice)
const AVBitStreamFilter ff_h264_redundant_pps_bsf
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 void h264_redundant_pps_flush(AVBSFContext *bsf)
static enum AVCodecID h264_redundant_pps_codec_ids[]
Memory handling functions.
The bitstream filter state.
void * priv_data
Opaque filter-specific private data.
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
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.
Coded bitstream unit structure.
void * content
Pointer to the decomposed form of this unit.
CodedBitstreamUnitType type
Codec-specific type of this unit.
H264RawSliceHeader header
int extradata_pic_init_qp