Go to the documentation of this file.
48 ctx->current_pic_init_qp =
pps->pic_init_qp_minus26 + 26;
49 pps->pic_init_qp_minus26 =
ctx->global_pic_init_qp - 26;
54 pps->weighted_pred_flag = 1;
97 "at %"PRId64
".\n",
pkt->
pts);
137 ctx->global_pic_init_qp = 26;
154 ctx->extradata_pic_init_qp =
ctx->current_pic_init_qp;
171 ctx->current_pic_init_qp =
ctx->extradata_pic_init_qp;
188 .
name =
"h264_redundant_pps",
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
const AVBitStreamFilter ff_h264_redundant_pps_bsf
AVCodecParameters * par_in
Parameters of the input stream.
CodedBitstreamContext * output
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
static av_cold int init(AVCodecContext *avctx)
static int h264_redundant_pps_fixup_slice(H264RedundantPPSContext *ctx, H264RawSliceHeader *slice)
int ff_cbs_read_extradata(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, const AVCodecParameters *par)
Read the extradata bitstream found in codec parameters into a fragment, then split into units and dec...
void * content
Pointer to the decomposed form of this unit.
Context structure for coded bitstream operations.
void ff_cbs_close(CodedBitstreamContext **ctx_ptr)
Close a context and free all internal state.
void ff_cbs_fragment_free(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
Free the units array of a fragment in addition to what ff_cbs_fragment_reset does.
#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.
static int h264_redundant_pps_fixup_pps(H264RedundantPPSContext *ctx, H264RawPPS *pps)
int ff_cbs_write_extradata(CodedBitstreamContext *ctx, AVCodecParameters *par, CodedBitstreamFragment *frag)
Write the bitstream of a fragment to the extradata in codec parameters.
AVCodecParameters * par_out
Parameters of the output stream.
CodedBitstreamContext * input
CodedBitstreamUnit * units
Pointer to an array of units of length nb_units_allocated.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Coded bitstream fragment structure, combining one or more units.
int ff_cbs_write_packet(CodedBitstreamContext *ctx, AVPacket *pkt, CodedBitstreamFragment *frag)
Write the bitstream of a fragment to a packet.
void ff_cbs_delete_unit(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int position)
Delete a unit from a fragment and free all memory it uses.
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)
H264RawSliceHeader header
#define i(width, name, range_min, range_max)
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
CodedBitstreamFragment access_unit
void * priv_data
Opaque filter-specific private data.
int ff_cbs_init(CodedBitstreamContext **ctx_ptr, enum AVCodecID codec_id, void *log_ctx)
Create and initialise a new context for the given codec.
static void h264_redundant_pps_close(AVBSFContext *bsf)
void ff_cbs_fragment_reset(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
Free the units contained in a fragment as well as the fragment's own data buffer, but not the units a...
int ff_cbs_read_packet(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, const AVPacket *pkt)
Read the data bitstream from a packet into a fragment, then split into units and decompose.
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 ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *pkt)
int nb_units
Number of units in this fragment.