FFmpeg
Functions | Variables
api-seek-test.c File Reference
#include "libavutil/adler32.h"
#include "libavutil/mem.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavutil/imgutils.h"

Go to the source code of this file.

Functions

static int add_crc_to_array (uint32_t crc, int64_t pts)
 
static int compare_crc_in_array (uint32_t crc, int64_t pts)
 
static int compute_crc_of_packets (AVFormatContext *fmt_ctx, int video_stream, AVCodecContext *ctx, AVPacket *pkt, AVFrame *fr, uint64_t ts_start, uint64_t ts_end, int no_seeking)
 
static long int read_seek_range (const char *string_with_number)
 
static int seek_test (const char *input_filename, const char *start, const char *end)
 
int main (int argc, char **argv)
 

Variables

int64_tpts_array
 Seek test. More...
 
uint32_t * crc_array
 
int size_of_array
 
int number_of_elements
 

Function Documentation

◆ add_crc_to_array()

static int add_crc_to_array ( uint32_t  crc,
int64_t  pts 
)
static

Definition at line 38 of file api-seek-test.c.

Referenced by compute_crc_of_packets().

◆ compare_crc_in_array()

static int compare_crc_in_array ( uint32_t  crc,
int64_t  pts 
)
static

Definition at line 57 of file api-seek-test.c.

Referenced by compute_crc_of_packets().

◆ compute_crc_of_packets()

static int compute_crc_of_packets ( AVFormatContext fmt_ctx,
int  video_stream,
AVCodecContext ctx,
AVPacket pkt,
AVFrame fr,
uint64_t  ts_start,
uint64_t  ts_end,
int  no_seeking 
)
static

Definition at line 76 of file api-seek-test.c.

Referenced by seek_test().

◆ read_seek_range()

static long int read_seek_range ( const char *  string_with_number)
static

Definition at line 168 of file api-seek-test.c.

Referenced by seek_test().

◆ seek_test()

static int seek_test ( const char *  input_filename,
const char *  start,
const char *  end 
)
static

Definition at line 186 of file api-seek-test.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 295 of file api-seek-test.c.

Variable Documentation

◆ pts_array

int64_t* pts_array

Seek test.

Definition at line 33 of file api-seek-test.c.

Referenced by add_crc_to_array(), compare_crc_in_array(), and seek_test().

◆ crc_array

uint32_t* crc_array

Definition at line 34 of file api-seek-test.c.

Referenced by add_crc_to_array(), compare_crc_in_array(), and seek_test().

◆ size_of_array

int size_of_array

Definition at line 35 of file api-seek-test.c.

Referenced by add_crc_to_array(), and seek_test().

◆ number_of_elements

int number_of_elements

Definition at line 36 of file api-seek-test.c.

Referenced by add_crc_to_array(), compare_crc_in_array(), and seek_test().