|
FFmpeg
|
#include "libavutil/log.h"#include "libavutil/rational.h"#include "libavcodec/bsf.h"#include "libavcodec/codec_par.h"#include "libavcodec/packet.h"Go to the source code of this file.
Data Structures | |
| struct | AVBitStreamFilterPad |
| A filter pad used for either input or output. More... | |
| struct | AVBitStreamFilterLink |
| Link properties exposed to filter code, but not external callers. More... | |
Macros | |
| #define | FFERROR_BSF_NOT_READY FFERRTAG('N','R','D','Y') |
| Special return code when activate() did not do anything. More... | |
| #define | FFERROR_SOURCE_EMPTY FFERRTAG('M','P','T','Y') |
| #define | FF_BSF_PAD_FLAG_NEEDS_WRITABLE (1 << 0) |
| The filter expects writable packets from its input link, duplicating data buffers if needed. More... | |
| #define | FF_BSF_PAD_FLAG_FREE_NAME (1 << 1) |
| The pad's name is allocated and should be freed generically. More... | |
| #define | BSFILTER_INOUTPADS(inout, array) |
| #define | BSFILTER_INPUTS(array) BSFILTER_INOUTPADS(inputs, (array)) |
| #define | BSFILTER_OUTPUTS(array) BSFILTER_INOUTPADS(outputs, (array)) |
| #define | BSF_DEFINE_CLASS_EXT(name, desc, options) |
| #define | BSF_DEFINE_CLASS(fname) BSF_DEFINE_CLASS_EXT(fname, #fname, fname##_options) |
Variables | |
| const AVBitStreamFilterPad | ff_default_bsf_pad [1] |
Special return code when activate() did not do anything.
| #define FF_BSF_PAD_FLAG_NEEDS_WRITABLE (1 << 0) |
| #define FF_BSF_PAD_FLAG_FREE_NAME (1 << 1) |
| #define BSFILTER_INOUTPADS | ( | inout, | |
| array | |||
| ) |
| #define BSFILTER_INPUTS | ( | array | ) | BSFILTER_INOUTPADS(inputs, (array)) |
| #define BSFILTER_OUTPUTS | ( | array | ) | BSFILTER_INOUTPADS(outputs, (array)) |
| #define BSF_DEFINE_CLASS | ( | fname | ) | BSF_DEFINE_CLASS_EXT(fname, #fname, fname##_options) |
| void ff_bsf_set_ready | ( | AVBitStreamFilterContext * | filter, |
| unsigned | priority | ||
| ) |
Mark a filter ready and schedule it for activation.
This is automatically done when something happens to the filter (queued packet, status change, request on output). Filters implementing the activate callback can call it directly to perform one more round of processing later. It is also useful for filters reacting to external or asynchronous events.
Definition at line 395 of file bitstreamfilter.c.
Referenced by ff_bsf_filter_packet(), ff_bsf_inlink_request_packet(), ff_bsf_link_set_in_status(), ff_bsf_request_packet(), filter_packet_to_filter(), forward_status_change(), and link_set_out_status().
| int ff_bsf_filter_packet | ( | AVBitStreamFilterLink * | link, |
| AVPacket * | pkt | ||
| ) |
Send a packet of data to the next filter.
| link | the output link over which the data is being sent |
| pkt | a reference to the buffer of data being sent. The receiving filter will free this reference when it no longer needs it or pass it on to the next filter. |
Definition at line 661 of file bitstreamfilter.c.
Referenced by av_bsf_source_add_packet(), default_filter_packet(), and lcevc_merge().
| int ff_bsf_request_packet | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 563 of file bitstreamfilter.c.
Referenced by request_packet_to_filter().
| int ff_bsf_inlink_consume_packet | ( | AVBitStreamFilterLink * | link, |
| AVPacket ** | pkt | ||
| ) |
Definition at line 839 of file bitstreamfilter.c.
Referenced by av_bsf_sink_get_packet(), consume_from_fifos(), and filter_packet_to_filter().
| void ff_bsf_inlink_request_packet | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 861 of file bitstreamfilter.c.
Referenced by av_bsf_sink_get_packet(), consume_from_fifos(), and filter_activate_default().
| int ff_bsf_inlink_acknowledge_status | ( | AVBitStreamFilterLink * | link, |
| int * | rstatus, | ||
| int64_t * | rpts | ||
| ) |
Definition at line 805 of file bitstreamfilter.c.
Referenced by av_bsf_sink_get_packet(), and consume_from_fifos().
| size_t ff_bsf_inlink_queued_packets | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 821 of file bitstreamfilter.c.
| int ff_bsf_inlink_check_available_packet | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 827 of file bitstreamfilter.c.
| void ff_bsf_inlink_set_status | ( | AVBitStreamFilterLink * | link, |
| int | status | ||
| ) |
Definition at line 870 of file bitstreamfilter.c.
Referenced by ff_packetsync_activate(), and filter_activate_default().
| void ff_bsf_link_set_in_status | ( | AVBitStreamFilterLink * | link, |
| int | status, | ||
| int64_t | pts | ||
| ) |
Definition at line 415 of file bitstreamfilter.c.
Referenced by activate(), av_bsf_source_close(), packetsync_eof(), and request_packet_to_filter().
| int ff_bsf_outlink_get_status | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 890 of file bitstreamfilter.c.
Referenced by activate(), av_bsf_source_get_status(), ff_packetsync_activate(), and filter_activate_default().
| int ff_bsf_outlink_packet_wanted | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 896 of file bitstreamfilter.c.
Referenced by consume_from_fifos().
| unsigned ff_bsf_source_get_nb_failed_requests | ( | const AVBitStreamFilterContext * | src | ) |
Get the number of failed requests.
A failed request is when the request_packet method is called while no packet is present in the buffer. The number is reset when a packet is added.
Definition at line 159 of file source.c.
Referenced by av_bsf_graph_source_needs_input().
| const AVBitStreamFilterPad ff_default_bsf_pad[1] |
Definition at line 902 of file bitstreamfilter.c.
1.8.17