Go to the source code of this file.
|
static int | fifo_test_header (AVFormatContext *avf) |
|
static int | fifo_test_packet (AVFormatContext *avf, AVPacket *pkt) |
|
static int | fifo_test_trailer (AVFormatContext *avf) |
|
static void | failing_deinit (AVFormatContext *avf) |
|
static int | prepare_packet (AVPacket *pkt, const FailingMuxerPacketData *pkt_data, int64_t pts) |
|
static int | initialize_fifo_tst_muxer_chain (AVFormatContext **oc, AVPacket **pkt) |
|
static int | fifo_basic_test (AVFormatContext *oc, AVDictionary **opts, AVPacket *pkt, const FailingMuxerPacketData *pkt_data) |
|
static int | fifo_overflow_drop_test (AVFormatContext *oc, AVDictionary **opts, AVPacket *pkt, const FailingMuxerPacketData *data) |
|
static int | run_test (const TestCase *test) |
|
int | main (int argc, char *argv[]) |
|
◆ FIFO_TEST
◆ MAX_TST_PACKETS
#define MAX_TST_PACKETS 128 |
◆ SLEEPTIME_50_MS
#define SLEEPTIME_50_MS 50000 |
◆ SLEEPTIME_10_MS
#define SLEEPTIME_10_MS 10000 |
◆ OFF
◆ BUFFER_SIZE
◆ fifo_test_header()
◆ fifo_test_packet()
◆ fifo_test_trailer()
◆ failing_deinit()
◆ prepare_packet()
◆ initialize_fifo_tst_muxer_chain()
◆ fifo_basic_test()
◆ fifo_overflow_drop_test()
◆ run_test()
static int run_test |
( |
const TestCase * |
test | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ fifo_test_options
Initial value:= {
{
"write_header_ret",
"write_header() return value",
OFF(write_header_ret),
{
"write_trailer_ret",
"write_trailer() return value",
OFF(write_trailer_ret),
{
"print_deinit_summary",
"print summary when deinitializing muxer",
OFF(print_deinit_summary),
}
Definition at line 131 of file fifo_muxer.c.
◆ failing_muxer_class
Initial value:= {
.class_name = "Fifo test muxer",
}
Definition at line 141 of file fifo_muxer.c.
◆ ff_fifo_test_muxer
◆ tests
Initial value:= {
{
fifo_basic_test,
"recovery test",
"attempt_recovery=1:recovery_wait_time=0",
0, 0, 0, {
AVERROR(ETIMEDOUT), 3, 0}},
}
Definition at line 367 of file fifo_muxer.c.
Referenced by check_add_put_clamped(), check_inv_trans_adding(), check_loop_filter(), check_mspel_pixels(), checkasm_check_h264pred(), and main().
static int fifo_test_packet(AVFormatContext *avf, AVPacket *pkt)
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
static void deinit(AVFormatContext *s)
static int fifo_overflow_drop_test(AVFormatContext *oc, AVDictionary **opts, AVPacket *pkt, const FailingMuxerPacketData *data)
static int fifo_test_header(AVFormatContext *avf)
static int fifo_basic_test(AVFormatContext *oc, AVDictionary **opts, AVPacket *pkt, const FailingMuxerPacketData *pkt_data)
static void failing_deinit(AVFormatContext *avf)
static const AVOption fifo_test_options[]
static const AVClass failing_muxer_class
#define LIBAVUTIL_VERSION_INT
static int write_trailer(AVFormatContext *s1)
const char * av_default_item_name(void *ptr)
Return the context name.
#define AV_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_OFMT_FLAG_ALLOW_FLUSH
This flag indicates that the muxer stores data internally and supports flushing it.
static int fifo_test_trailer(AVFormatContext *avf)
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
static void write_header(FFV1Context *f)