FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
ismindex.c File Reference
#include <stdio.h>
#include <string.h>
#include "cmdutils.h"
#include "libavformat/avformat.h"
#include "libavformat/os_support.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"

Go to the source code of this file.

Data Structures

struct  MoofOffset
 
struct  Track
 
struct  Tracks
 

Functions

static int usage (const char *argv0, int ret)
 
static int copy_tag (AVIOContext *in, AVIOContext *out, int32_t tag_name)
 
static int write_fragment (const char *filename, AVIOContext *in)
 
static int write_fragments (struct Tracks *tracks, int start_index, AVIOContext *in, const char *output_prefix)
 
static int read_tfra (struct Tracks *tracks, int start_index, AVIOContext *f)
 
static int read_mfra (struct Tracks *tracks, int start_index, const char *file, int split, const char *output_prefix)
 
static int get_private_data (struct Track *track, AVCodecContext *codec)
 
static int get_video_private_data (struct Track *track, AVCodecContext *codec)
 
static int handle_file (struct Tracks *tracks, const char *file, int split, const char *output_prefix)
 
static void output_server_manifest (struct Tracks *tracks, const char *basename, const char *output_prefix, const char *path_prefix, const char *ismc_prefix)
 
static void print_track_chunks (FILE *out, struct Tracks *tracks, int main, const char *type)
 
static void output_client_manifest (struct Tracks *tracks, const char *basename, const char *output_prefix, int split)
 
static void clean_tracks (struct Tracks *tracks)
 
int main (int argc, char **argv)
 

Function Documentation

static int usage ( const char *  argv0,
int  ret 
)
static

Definition at line 54 of file ismindex.c.

static int copy_tag ( AVIOContext in,
AVIOContext out,
int32_t  tag_name 
)
static

Definition at line 93 of file ismindex.c.

Referenced by write_fragment(), and yop_copy_previous_block().

static int write_fragment ( const char *  filename,
AVIOContext in 
)
static

Definition at line 115 of file ismindex.c.

Referenced by write_fragments().

static int write_fragments ( struct Tracks tracks,
int  start_index,
AVIOContext in,
const char *  output_prefix 
)
static

Definition at line 131 of file ismindex.c.

Referenced by read_mfra().

static int read_tfra ( struct Tracks tracks,
int  start_index,
AVIOContext f 
)
static

Definition at line 153 of file ismindex.c.

Referenced by read_mfra().

static int read_mfra ( struct Tracks tracks,
int  start_index,
const char *  file,
int  split,
const char *  output_prefix 
)
static

Definition at line 209 of file ismindex.c.

Referenced by handle_file().

static int get_private_data ( struct Track track,
AVCodecContext codec 
)
static

Definition at line 244 of file ismindex.c.

Referenced by get_video_private_data(), and handle_file().

static int get_video_private_data ( struct Track track,
AVCodecContext codec 
)
static

Definition at line 254 of file ismindex.c.

Referenced by handle_file().

static int handle_file ( struct Tracks tracks,
const char *  file,
int  split,
const char *  output_prefix 
)
static

Definition at line 286 of file ismindex.c.

Referenced by main().

static void output_server_manifest ( struct Tracks tracks,
const char *  basename,
const char *  output_prefix,
const char *  path_prefix,
const char *  ismc_prefix 
)
static

Definition at line 397 of file ismindex.c.

Referenced by main().

static void print_track_chunks ( FILE *  out,
struct Tracks tracks,
int  main,
const char *  type 
)
static

Definition at line 435 of file ismindex.c.

Referenced by output_client_manifest().

static void output_client_manifest ( struct Tracks tracks,
const char *  basename,
const char *  output_prefix,
int  split 
)
static

Definition at line 452 of file ismindex.c.

Referenced by main().

static void clean_tracks ( struct Tracks tracks)
static

Definition at line 535 of file ismindex.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 547 of file ismindex.c.