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),
}
#define AV_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition at line 131 of file fifo_muxer.c.
◆ failing_muxer_class
Initial value:= {
.class_name = "Fifo test muxer",
}
static const AVOption fifo_test_options[]
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
Definition at line 141 of file fifo_muxer.c.
◆ ff_fifo_test_muxer
Initial value:= {
.p.name = "fifo_test",
}
static void deinit(AVFormatContext *s)
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
static void write_header(FFV1Context *f)
static int fifo_test_trailer(AVFormatContext *avf)
static const AVClass failing_muxer_class
static int fifo_test_header(AVFormatContext *avf)
static void failing_deinit(AVFormatContext *avf)
static int fifo_test_packet(AVFormatContext *avf, AVPacket *pkt)
#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 write_trailer(AVFormatContext *s1)
Definition at line 148 of file fifo_muxer.c.
Referenced by fifo_init().
◆ tests
Initial value:= {
{
fifo_basic_test,
"recovery test",
"attempt_recovery=1:recovery_wait_time=0",
0, 0, 0, {
AVERROR(ETIMEDOUT), 3, 0}},
}
static int fifo_overflow_drop_test(AVFormatContext *oc, AVDictionary **opts, AVPacket *pkt, const FailingMuxerPacketData *data)
static int fifo_basic_test(AVFormatContext *oc, AVDictionary **opts, AVPacket *pkt, const FailingMuxerPacketData *pkt_data)
Definition at line 363 of file fifo_muxer.c.
Referenced by check_add_put_clamped(), check_cavs_qpeldsp(), check_inv_trans_adding(), check_loop_filter(), check_mspel_pixels(), checkasm_check_crc(), checkasm_check_h264pred(), checkasm_check_hpeldsp(), checkasm_check_mpegvideo_unquantize(), checkasm_check_qpeldsp(), main(), main(), main(), main(), and vp3_check_loop_filter().