The sink filter is there to connect filter graphs to applications They have a single input, connected to the graph, and no output.
More...
The sink filter is there to connect filter graphs to applications They have a single input, connected to the graph, and no output.
Packets must be extracted using av_bsf_sink_get_packet().
◆ anonymous enum
| Enumerator |
|---|
| AV_BSF_SINK_FLAG_PEEK | Tell av_buffersink_get_buffer_ref() to read video/samples buffer reference, but not remove it from the buffer.
This is useful if you need only to read a video/samples buffer, without to fetch it.
|
| AV_BSF_SINK_FLAG_NO_REQUEST | Tell av_bsf_sink_get_packet() not to request a packet from its input.
If a packet is already buffered, it is read (and removed from the buffer), but if no packet is present, return AVERROR(EAGAIN).
|
Definition at line 664 of file bsf.h.
◆ av_bsf_sink_get_packet()
Get a packet with filtered data from sink and put it in packet.
- Parameters
-
| ctx | pointer to a sink filter context. |
| packet | pointer to an allocated packet that will be filled with data. The data must be freed using av_packet_unref() / av_packet_free() |
| flags | a combination of AV_BSF_SINK_FLAG_* flags |
- Return values
-
| AVERROR(EAGAIN) | output could not be produced. if AV_BSF_SINK_FLAG_NO_REQUEST was not set, av_bsf_graph_needs_input can be called to know which source needs input more urgently. |
| >= | 0 success |
| another negative error code | legitimate error |
◆ av_bsf_sink_get_time_base()
◆ av_bsf_sink_get_parameters()