FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mpeg12framerate.c File Reference
#include "libavcodec/mpeg12.h"
#include "libavcodec/mpeg12data.h"

Go to the source code of this file.

Macros

#define TEST_MATCH(frame_rate, code, ext_n, ext_d)
 
#define TEST_EXACT(frn, frd)
 

Functions

int main (void)
 

Macro Definition Documentation

#define TEST_MATCH (   frame_rate,
  code,
  ext_n,
  ext_d 
)
Value:
do { \
AVRational fr = frame_rate; \
int c, n, d; \
if (c != code || n != ext_n || d != ext_d) { \
av_log(NULL, AV_LOG_ERROR, "Failed to match %d/%d: " \
"code = %d, ext_n = %d, ext_d = %d.\n", \
fr.num, fr.den, c, n, d); \
return 1; \
} \
} while (0)
#define NULL
Definition: coverity.c:32
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
return
int n
Definition: avisynth_c.h:684
int
if(ret< 0)
Definition: vf_mcdeint.c:279
void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, int *code, int *ext_n, int *ext_d, int nonstandard)
static double c[64]

Referenced by main().

#define TEST_EXACT (   frn,
  frd 
)
Value:
do { \
AVRational fr = (AVRational) { frn, frd }; \
int c, n, d; \
(AVRational) { n + 1, d + 1 })) != 0) { \
av_log(NULL, AV_LOG_ERROR, "Failed to find exact %d/%d: " \
"code = %d, ext_n = %d, ext_d = %d.\n", \
fr.num, fr.den, c, n, d); \
return 1; \
} \
} while (0)
#define NULL
Definition: coverity.c:32
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
return
int n
Definition: avisynth_c.h:684
Rational number (pair of numerator and denominator).
Definition: rational.h:58
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
Definition: rational.h:89
int
if(ret< 0)
Definition: vf_mcdeint.c:279
void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, int *code, int *ext_n, int *ext_d, int nonstandard)
static double c[64]
const AVRational ff_mpeg12_frame_rate_tab[16]
AVRational av_mul_q(AVRational b, AVRational c)
Multiply two rationals.
Definition: rational.c:80

Referenced by main().

Function Documentation

int main ( void  )

Definition at line 22 of file mpeg12framerate.c.