FFmpeg
|
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <limits.h>
Go to the source code of this file.
Data Structures | |
struct | atom_t |
struct | update_chunk_offsets_context_t |
struct | upgrade_stco_context_t |
Macros | |
#define | MIN(a, b) ((a) > (b) ? (b) : (a)) |
#define | BE_32(x) |
#define | BE_64(x) |
#define | AV_WB32(p, val) |
#define | AV_WB64(p, val) |
#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 | TRAK_ATOM QT_ATOM('t', 'r', 'a', 'k') |
#define | MDIA_ATOM QT_ATOM('m', 'd', 'i', 'a') |
#define | MINF_ATOM QT_ATOM('m', 'i', 'n', 'f') |
#define | STBL_ATOM QT_ATOM('s', 't', 'b', 'l') |
#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 |
#define | MAX_FTYP_ATOM_SIZE 1048576 |
Typedefs | |
typedef int(* | parse_atoms_callback_t) (void *context, atom_t *atom) |
Functions | |
static int | parse_atoms (unsigned char *buf, uint64_t size, parse_atoms_callback_t callback, void *context) |
static int | update_stco_offsets (update_chunk_offsets_context_t *context, atom_t *atom) |
static int | update_co64_offsets (update_chunk_offsets_context_t *context, atom_t *atom) |
static int | update_chunk_offsets_callback (void *ctx, atom_t *atom) |
static void | set_atom_size (unsigned char *header, uint32_t header_size, uint64_t size) |
static void | upgrade_stco_atom (upgrade_stco_context_t *context, atom_t *atom) |
static int | upgrade_stco_callback (void *ctx, atom_t *atom) |
static int | update_moov_atom (unsigned char **moov_atom, uint64_t *moov_atom_size) |
int | main (int argc, char *argv[]) |
#define BE_32 | ( | x | ) |
Definition at line 47 of file qt-faststart.c.
#define BE_64 | ( | x | ) |
Definition at line 52 of file qt-faststart.c.
#define AV_WB32 | ( | p, | |
val | |||
) |
#define AV_WB64 | ( | p, | |
val | |||
) |
Definition at line 68 of file qt-faststart.c.
#define BE_FOURCC | ( | ch0, | |
ch1, | |||
ch2, | |||
ch3 | |||
) |
Definition at line 73 of file qt-faststart.c.
#define QT_ATOM BE_FOURCC |
Definition at line 79 of file qt-faststart.c.
Definition at line 81 of file qt-faststart.c.
Definition at line 82 of file qt-faststart.c.
Definition at line 83 of file qt-faststart.c.
#define MOOV_ATOM QT_ATOM('m', 'o', 'o', 'v') |
Definition at line 84 of file qt-faststart.c.
#define PNOT_ATOM QT_ATOM('p', 'n', 'o', 't') |
Definition at line 85 of file qt-faststart.c.
Definition at line 86 of file qt-faststart.c.
Definition at line 89 of file qt-faststart.c.
Definition at line 92 of file qt-faststart.c.
Definition at line 93 of file qt-faststart.c.
Definition at line 95 of file qt-faststart.c.
Definition at line 96 of file qt-faststart.c.
Definition at line 97 of file qt-faststart.c.
Definition at line 98 of file qt-faststart.c.
#define ATOM_PREAMBLE_SIZE 8 |
Definition at line 100 of file qt-faststart.c.
#define COPY_BUFFER_SIZE 33554432 |
Definition at line 101 of file qt-faststart.c.
#define MAX_FTYP_ATOM_SIZE 1048576 |
Definition at line 102 of file qt-faststart.c.
Definition at line 125 of file qt-faststart.c.
|
static |
Definition at line 127 of file qt-faststart.c.
Referenced by update_chunk_offsets_callback(), update_moov_atom(), and upgrade_stco_callback().
|
static |
Definition at line 185 of file qt-faststart.c.
Referenced by update_chunk_offsets_callback().
|
static |
Definition at line 221 of file qt-faststart.c.
Referenced by update_chunk_offsets_callback().
Definition at line 251 of file qt-faststart.c.
Referenced by update_moov_atom().
|
static |
Definition at line 286 of file qt-faststart.c.
Referenced by upgrade_stco_atom(), and upgrade_stco_callback().
|
static |
Definition at line 299 of file qt-faststart.c.
Referenced by upgrade_stco_callback().
Definition at line 328 of file qt-faststart.c.
Referenced by update_moov_atom().
|
static |
Definition at line 372 of file qt-faststart.c.
Referenced by main().
Definition at line 430 of file qt-faststart.c.