FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
api-seek-test.c File Reference
#include "libavutil/adler32.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 (int64_t crc, int64_t pts)
 
static int compare_crc_in_array (int64_t crc, int64_t pts)
 
static int compute_crc_of_packets (AVFormatContext *fmt_ctx, int video_stream, AVCodecContext *ctx, 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_t * pts_array
 Seek test. More...
 
int64_t * crc_array
 
int size_of_array
 
int number_of_elements
 

Function Documentation

static int add_crc_to_array ( int64_t  crc,
int64_t  pts 
)
static

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

Referenced by compute_crc_of_packets().

static int compare_crc_in_array ( int64_t  crc,
int64_t  pts 
)
static

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

Referenced by compute_crc_of_packets().

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

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

Referenced by seek_test().

static long int read_seek_range ( const char *  string_with_number)
static

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

Referenced by seek_test().

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

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

Referenced by main().

int main ( int  argc,
char **  argv 
)

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

Variable Documentation

int64_t* pts_array

Seek test.

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

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

int64_t* crc_array

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

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

int size_of_array

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

Referenced by add_crc_to_array(), and seek_test().

int number_of_elements

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

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