FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 FFMIN(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

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

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

Referenced by main().

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

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

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

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

Referenced by main().

#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]))

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

Referenced by main().

#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 58 of file qt-faststart.c.

#define QT_ATOM   BE_FOURCC

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

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

#define ATOM_PREAMBLE_SIZE   8

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

Referenced by main().

#define COPY_BUFFER_SIZE   33554432

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

Referenced by main().

Function Documentation

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

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