tools/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.

Defines

#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   1024

Functions

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


Define Documentation

#define ATOM_PREAMBLE_SIZE   8

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

Referenced by main().

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

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

#define BE_32 (  ) 

Value:

((((uint8_t*)(x))[0] << 24) | \
                  (((uint8_t*)(x))[1] << 16) | \
                  (((uint8_t*)(x))[2] << 8) | \
                   ((uint8_t*)(x))[3])

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

Referenced by main().

#define BE_64 (  ) 

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 42 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 51 of file qt-faststart.c.

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

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

Referenced by main().

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

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

Referenced by main().

#define COPY_BUFFER_SIZE   1024

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

#define QT_ATOM   BE_FOURCC

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

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().

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

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

Referenced by main().


Function Documentation

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

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


Generated on Fri Oct 26 02:39:50 2012 for FFmpeg by  doxygen 1.5.8