libavformat/file.c File Reference

#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <stdlib.h>
#include "os_support.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  FileContext

Defines

#define S_ISFIFO(m)   0

Functions

static int file_read (URLContext *h, unsigned char *buf, int size)
static int file_write (URLContext *h, const unsigned char *buf, int size)
static int file_get_handle (URLContext *h)
static int file_check (URLContext *h, int mask)

Variables

static const AVOption file_options []
static const AVClass file_class


Define Documentation

#define S_ISFIFO (  )     0

Definition at line 42 of file file.c.


Function Documentation

static int file_check ( URLContext h,
int  mask 
) [static]

Definition at line 86 of file file.c.

static int file_get_handle ( URLContext h  )  [static]

Definition at line 80 of file file.c.

static int file_read ( URLContext h,
unsigned char *  buf,
int  size 
) [static]

Definition at line 66 of file file.c.

static int file_write ( URLContext h,
const unsigned char *  buf,
int  size 
) [static]

Definition at line 73 of file file.c.


Variable Documentation

const AVClass file_class [static]

Initial value:

 {
    .class_name = "file",
    .item_name  = av_default_item_name,
    .option     = file_options,
    .version    = LIBAVUTIL_VERSION_INT,
}

Definition at line 59 of file file.c.

const AVOption file_options[] [static]

Initial value:

 {
    { "truncate", "Truncate existing files on write", 0x42, AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, AV_OPT_FLAG_ENCODING_PARAM },
    { NULL }
}

Definition at line 54 of file file.c.


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