Go to the documentation of this file.
54 ctx->presentation_found =
ctx->pkt_flags = 0;
61 if (!
ctx->presentation_found)
63 ctx->presentation_found = 0;
64 src->flags |=
ctx->pkt_flags;
74 int ret,
size,
pos, display = 0, presentation = 0;
96 while (
i + 3 <= in->
size) {
97 uint8_t segment_type = in->
data[
i];
100 if (
i + segment_len > in->
size)
106 if (segment_len < 11)
108 ctx->presentation_found = presentation = 1;
124 if (!display &&
i != in->
size) {
165 if (!
ctx->in || !
ctx->buffer_pkt)
184 .
p.
name =
"pgs_frame_merge",
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
#define AV_LOG_WARNING
Something somehow does not look correct.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
#define AVERROR_EOF
End of file.
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
static av_cold void frame_merge_close(AVBSFContext *bsf)
void(* filter)(uint8_t *src, int stride, int qscale)
@ AV_CODEC_ID_HDMV_PGS_SUBTITLE
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
The bitstream filter state.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
static int frame_merge_output(PGSMergeContext *ctx, AVPacket *dst, AVPacket *src)
void(* flush)(AVBSFContext *ctx)
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
AVCodecID
Identify the syntax and semantics of the bitstream.
AVBitStreamFilter p
The public AVBitStreamFilter.
int(* init)(AVBSFContext *ctx)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
@ END_DISPLAY_SET_SEGMENT
int flags
A combination of AV_PKT_FLAG values.
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
Copy only "properties" fields from src to dst.
#define i(width, name, range_min, range_max)
void * priv_data
Opaque filter-specific private data.
static av_cold void frame_merge_flush(AVBSFContext *bsf)
static int frame_merge_filter(AVBSFContext *bsf, AVPacket *out)
static enum AVCodecID frame_merge_codec_ids[]
const FFBitStreamFilter ff_pgs_frame_merge_bsf
static av_cold int frame_merge_init(AVBSFContext *bsf)
This structure stores compressed data.
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16