FFmpeg
Functions
timecode.c File Reference
#include <stdio.h>
#include <string.h>
#include "libavutil/macros.h"
#include "libavutil/rational.h"
#include "libavutil/timecode.h"

Go to the source code of this file.

Functions

static void test_check_frame_rate (void)
 Unit tests for libavutil/timecode.c: av_timecode_init, av_timecode_init_from_components, av_timecode_init_from_string, av_timecode_make_string, av_timecode_get_smpte_from_framenum, av_timecode_get_smpte, av_timecode_make_smpte_tc_string, av_timecode_make_smpte_tc_string2, av_timecode_make_mpeg_tc_string, av_timecode_adjust_ntsc_framenum2, av_timecode_check_frame_rate. More...
 
static void test_init (void)
 
static void test_init_from_components (void)
 
static void test_init_from_string (void)
 
static void test_make_string (void)
 
static void test_make_smpte_tc_string (void)
 
static void test_make_smpte_tc_string2 (void)
 
static void test_make_mpeg_tc_string (void)
 
static void test_adjust_ntsc (void)
 
static void test_get_smpte_roundtrip (void)
 
int main (void)
 

Function Documentation

◆ test_check_frame_rate()

static void test_check_frame_rate ( void  )
static

Unit tests for libavutil/timecode.c: av_timecode_init, av_timecode_init_from_components, av_timecode_init_from_string, av_timecode_make_string, av_timecode_get_smpte_from_framenum, av_timecode_get_smpte, av_timecode_make_smpte_tc_string, av_timecode_make_smpte_tc_string2, av_timecode_make_mpeg_tc_string, av_timecode_adjust_ntsc_framenum2, av_timecode_check_frame_rate.

Definition at line 36 of file timecode.c.

Referenced by main().

◆ test_init()

static void test_init ( void  )
static

Definition at line 50 of file timecode.c.

Referenced by main().

◆ test_init_from_components()

static void test_init_from_components ( void  )
static

Definition at line 80 of file timecode.c.

Referenced by main().

◆ test_init_from_string()

static void test_init_from_string ( void  )
static

Definition at line 104 of file timecode.c.

Referenced by main().

◆ test_make_string()

static void test_make_string ( void  )
static

Definition at line 129 of file timecode.c.

Referenced by main().

◆ test_make_smpte_tc_string()

static void test_make_smpte_tc_string ( void  )
static

Definition at line 157 of file timecode.c.

Referenced by main().

◆ test_make_smpte_tc_string2()

static void test_make_smpte_tc_string2 ( void  )
static

Definition at line 174 of file timecode.c.

Referenced by main().

◆ test_make_mpeg_tc_string()

static void test_make_mpeg_tc_string ( void  )
static

Definition at line 190 of file timecode.c.

Referenced by main().

◆ test_adjust_ntsc()

static void test_adjust_ntsc ( void  )
static

Definition at line 203 of file timecode.c.

Referenced by main().

◆ test_get_smpte_roundtrip()

static void test_get_smpte_roundtrip ( void  )
static

Definition at line 224 of file timecode.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 265 of file timecode.c.