ismindex.c File Reference
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "cmdutils.h"
#include "libavformat/avformat.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
Include dependency graph for ismindex.c:

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)
 
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)
 
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)
 
static void output_server_manifest (struct Tracks *tracks, const char *basename)
 
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, int split)
 
static void clean_tracks (struct Tracks *tracks)
 
int main (int argc, char **argv)
 

Function Documentation

static void clean_tracks ( struct Tracks tracks)
static

Definition at line 524 of file ismindex.c.

Referenced by main().

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

Definition at line 87 of file ismindex.c.

Referenced by write_fragment(), and yop_copy_previous_block().

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

Definition at line 237 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 247 of file ismindex.c.

Referenced by handle_file().

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

Definition at line 279 of file ismindex.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 536 of file ismindex.c.

Referenced by print_track_chunks().

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

Definition at line 441 of file ismindex.c.

Referenced by main().

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

Definition at line 388 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 424 of file ismindex.c.

Referenced by output_client_manifest().

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

Definition at line 202 of file ismindex.c.

Referenced by handle_file().

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

Definition at line 146 of file ismindex.c.

Referenced by read_mfra().

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

Definition at line 49 of file ismindex.c.

Referenced by main().

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

Definition at line 109 of file ismindex.c.

Referenced by write_fragments().

static int write_fragments ( struct Tracks tracks,
int  start_index,
AVIOContext in 
)
static

Definition at line 125 of file ismindex.c.

Referenced by read_mfra().