FFmpeg  4.0
Macros | Functions
qt-faststart.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>

Go to the source code of this file.

Macros

#define MIN(a, b)   ((a) > (b) ? (b) : (a))
 
#define BE_16(x)   ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])
 
#define BE_32(x)
 
#define BE_64(x)
 
#define BE_FOURCC(ch0, ch1, ch2, ch3)
 
#define QT_ATOM   BE_FOURCC
 
#define FREE_ATOM   QT_ATOM('f', 'r', 'e', 'e')
 
#define JUNK_ATOM   QT_ATOM('j', 'u', 'n', 'k')
 
#define MDAT_ATOM   QT_ATOM('m', 'd', 'a', 't')
 
#define MOOV_ATOM   QT_ATOM('m', 'o', 'o', 'v')
 
#define PNOT_ATOM   QT_ATOM('p', 'n', 'o', 't')
 
#define SKIP_ATOM   QT_ATOM('s', 'k', 'i', 'p')
 
#define WIDE_ATOM   QT_ATOM('w', 'i', 'd', 'e')
 
#define PICT_ATOM   QT_ATOM('P', 'I', 'C', 'T')
 
#define FTYP_ATOM   QT_ATOM('f', 't', 'y', 'p')
 
#define UUID_ATOM   QT_ATOM('u', 'u', 'i', 'd')
 
#define CMOV_ATOM   QT_ATOM('c', 'm', 'o', 'v')
 
#define STCO_ATOM   QT_ATOM('s', 't', 'c', 'o')
 
#define CO64_ATOM   QT_ATOM('c', 'o', '6', '4')
 
#define ATOM_PREAMBLE_SIZE   8
 
#define COPY_BUFFER_SIZE   33554432
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ MIN

#define MIN (   a,
  b 
)    ((a) > (b) ? (b) : (a))

Definition at line 44 of file qt-faststart.c.

Referenced by main().

◆ BE_16

#define BE_16 (   x)    ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])

Definition at line 46 of file qt-faststart.c.

◆ BE_32

#define BE_32 (   x)
Value:
(((uint32_t)(((uint8_t*)(x))[0]) << 24) | \
(((uint8_t*)(x))[1] << 16) | \
(((uint8_t*)(x))[2] << 8) | \
((uint8_t*)(x))[3])
uint8_t

Definition at line 48 of file qt-faststart.c.

Referenced by main().

◆ BE_64

#define BE_64 (   x)
Value:
(((uint64_t)(((uint8_t*)(x))[0]) << 56) | \
((uint64_t)(((uint8_t*)(x))[1]) << 48) | \
((uint64_t)(((uint8_t*)(x))[2]) << 40) | \
((uint64_t)(((uint8_t*)(x))[3]) << 32) | \
((uint64_t)(((uint8_t*)(x))[4]) << 24) | \
((uint64_t)(((uint8_t*)(x))[5]) << 16) | \
((uint64_t)(((uint8_t*)(x))[6]) << 8) | \
((uint64_t)( (uint8_t*)(x))[7]))
uint8_t

Definition at line 53 of file qt-faststart.c.

Referenced by main().

◆ BE_FOURCC

#define BE_FOURCC (   ch0,
  ch1,
  ch2,
  ch3 
)
Value:
( (uint32_t)(unsigned char)(ch3) | \
((uint32_t)(unsigned char)(ch2) << 8) | \
((uint32_t)(unsigned char)(ch1) << 16) | \
((uint32_t)(unsigned char)(ch0) << 24) )

Definition at line 62 of file qt-faststart.c.

◆ QT_ATOM

#define QT_ATOM   BE_FOURCC

Definition at line 68 of file qt-faststart.c.

◆ FREE_ATOM

#define FREE_ATOM   QT_ATOM('f', 'r', 'e', 'e')

Definition at line 70 of file qt-faststart.c.

Referenced by main().

◆ JUNK_ATOM

#define JUNK_ATOM   QT_ATOM('j', 'u', 'n', 'k')

Definition at line 71 of file qt-faststart.c.

Referenced by main().

◆ MDAT_ATOM

#define MDAT_ATOM   QT_ATOM('m', 'd', 'a', 't')

Definition at line 72 of file qt-faststart.c.

Referenced by main().

◆ MOOV_ATOM

#define MOOV_ATOM   QT_ATOM('m', 'o', 'o', 'v')

Definition at line 73 of file qt-faststart.c.

Referenced by main().

◆ PNOT_ATOM

#define PNOT_ATOM   QT_ATOM('p', 'n', 'o', 't')

Definition at line 74 of file qt-faststart.c.

Referenced by main().

◆ SKIP_ATOM

#define SKIP_ATOM   QT_ATOM('s', 'k', 'i', 'p')

Definition at line 75 of file qt-faststart.c.

Referenced by main().

◆ WIDE_ATOM

#define WIDE_ATOM   QT_ATOM('w', 'i', 'd', 'e')

Definition at line 76 of file qt-faststart.c.

Referenced by main().

◆ PICT_ATOM

#define PICT_ATOM   QT_ATOM('P', 'I', 'C', 'T')

Definition at line 77 of file qt-faststart.c.

Referenced by main().

◆ FTYP_ATOM

#define FTYP_ATOM   QT_ATOM('f', 't', 'y', 'p')

Definition at line 78 of file qt-faststart.c.

Referenced by main().

◆ UUID_ATOM

#define UUID_ATOM   QT_ATOM('u', 'u', 'i', 'd')

Definition at line 79 of file qt-faststart.c.

Referenced by main().

◆ CMOV_ATOM

#define CMOV_ATOM   QT_ATOM('c', 'm', 'o', 'v')

Definition at line 81 of file qt-faststart.c.

Referenced by main().

◆ STCO_ATOM

#define STCO_ATOM   QT_ATOM('s', 't', 'c', 'o')

Definition at line 82 of file qt-faststart.c.

Referenced by main().

◆ CO64_ATOM

#define CO64_ATOM   QT_ATOM('c', 'o', '6', '4')

Definition at line 83 of file qt-faststart.c.

Referenced by main().

◆ ATOM_PREAMBLE_SIZE

#define ATOM_PREAMBLE_SIZE   8

Definition at line 85 of file qt-faststart.c.

Referenced by main().

◆ COPY_BUFFER_SIZE

#define COPY_BUFFER_SIZE   33554432

Definition at line 86 of file qt-faststart.c.

Referenced by main().

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 88 of file qt-faststart.c.