|
FFmpeg
|
#include "config.h"#include <string.h>#include "libavutil/avassert.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "bsf.h"#include "bsf_internal.h"Go to the source code of this file.
Variables | |
| static const AVClass | bitstreamfilter_class |
| const AVBitStreamFilterPad | ff_default_bsf_pad [1] |
|
static |
Definition at line 30 of file bitstreamfilter.c.
|
static |
Definition at line 36 of file bitstreamfilter.c.
| int ff_bsf_alloc | ( | const AVBitStreamFilter * | filter, |
| const char * | inst_name, | ||
| AVBitStreamFilterContext ** | ctx | ||
| ) |
Allocate a new filter context and return it.
| [in] | filter | what filter to create an instance of |
| [in] | inst_name | name to give to the new filter context |
| [out] | ctx | a pointer into which the pointer to the newly-allocated context will be written |
Definition at line 54 of file bitstreamfilter.c.
Referenced by av_bsf_graph_alloc_filter().
|
static |
Definition at line 198 of file bitstreamfilter.c.
Referenced by free_link().
|
static |
Definition at line 213 of file bitstreamfilter.c.
Referenced by ff_bsf_free().
| void ff_bsf_free | ( | AVBitStreamFilterContext * | filter | ) |
Free a filter context.
This will also remove the filter from its filtergraph's list of filters.
| filter | the filter to free |
Definition at line 226 of file bitstreamfilter.c.
Referenced by av_bsf_graph_create_filter(), and av_bsf_graph_free().
|
static |
Parse filter options into a dictionary.
| logctx | context for logging |
| priv_class | a filter's private class for shorthand options or NULL |
| options | dictionary to store parsed options in |
| args | options string to parse |
Definition at line 273 of file bitstreamfilter.c.
Referenced by av_bsf_init_str().
|
static |
Definition at line 390 of file bitstreamfilter.c.
Referenced by consume_update(), ff_bsf_inlink_acknowledge_status(), and link_set_out_status().
| 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 400 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().
|
static |
Clear packet_blocked_in on all outputs.
This is necessary whenever something changes on input.
Definition at line 410 of file bitstreamfilter.c.
Referenced by ff_bsf_filter_packet(), ff_bsf_link_set_in_status(), filter_packet_to_filter(), and link_set_out_status().
| void ff_bsf_link_set_in_status | ( | AVBitStreamFilterLink * | link, |
| int | status, | ||
| int64_t | pts | ||
| ) |
Definition at line 420 of file bitstreamfilter.c.
Referenced by activate(), av_bsf_source_close(), packetsync_eof(), and request_packet_to_filter().
|
static |
Set the status field of a link from the destination filter.
The pts should probably be left unset (AV_NOPTS_VALUE).
Definition at line 439 of file bitstreamfilter.c.
Referenced by ff_bsf_inlink_set_status(), ff_bsf_request_packet(), filter_packet_to_filter(), and forward_status_change().
| int ff_bsf_config_links | ( | AVBitStreamFilterContext * | filter | ) |
Definition at line 452 of file bitstreamfilter.c.
Referenced by ff_bsf_config_links(), and graph_config_links().
| int ff_bsf_request_packet | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 568 of file bitstreamfilter.c.
Referenced by request_packet_to_filter().
|
static |
Definition at line 593 of file bitstreamfilter.c.
Referenced by request_packet_to_filter().
|
static |
Definition at line 617 of file bitstreamfilter.c.
Referenced by filter_activate_default(), and forward_status_change().
|
static |
Definition at line 637 of file bitstreamfilter.c.
Referenced by filter_packet_framed().
|
static |
Definition at line 642 of file bitstreamfilter.c.
Referenced by filter_packet_to_filter().
| 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 666 of file bitstreamfilter.c.
Referenced by av_bsf_source_add_packet(), default_filter_packet(), and lcevc_merge().
|
static |
Definition at line 687 of file bitstreamfilter.c.
Referenced by filter_activate_default().
|
static |
Definition at line 719 of file bitstreamfilter.c.
Referenced by filter_activate_default().
|
static |
Definition at line 753 of file bitstreamfilter.c.
Referenced by ff_bsf_activate().
| int ff_bsf_activate | ( | AVBitStreamFilterContext * | ctx | ) |
Definition at line 797 of file bitstreamfilter.c.
Referenced by ff_bsf_graph_run_once().
| int ff_bsf_inlink_acknowledge_status | ( | AVBitStreamFilterLink * | link, |
| int * | rstatus, | ||
| int64_t * | rpts | ||
| ) |
Definition at line 810 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 826 of file bitstreamfilter.c.
| int ff_bsf_inlink_check_available_packet | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 832 of file bitstreamfilter.c.
|
static |
Definition at line 838 of file bitstreamfilter.c.
Referenced by ff_bsf_inlink_consume_packet().
| int ff_bsf_inlink_consume_packet | ( | AVBitStreamFilterLink * | link, |
| AVPacket ** | rpkt | ||
| ) |
Definition at line 844 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 866 of file bitstreamfilter.c.
Referenced by av_bsf_sink_get_packet(), consume_from_fifos(), and filter_activate_default().
| void ff_bsf_inlink_set_status | ( | AVBitStreamFilterLink * | link, |
| int | status | ||
| ) |
Definition at line 875 of file bitstreamfilter.c.
Referenced by ff_packetsync_activate(), and filter_activate_default().
| int ff_bsf_outlink_get_status | ( | AVBitStreamFilterLink * | link | ) |
Definition at line 895 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 901 of file bitstreamfilter.c.
Referenced by consume_from_fifos().
|
static |
Definition at line 44 of file bitstreamfilter.c.
Referenced by ff_bsf_alloc().
| const AVBitStreamFilterPad ff_default_bsf_pad[1] |
Definition at line 907 of file bitstreamfilter.c.
1.8.17