libavformat/file.c File Reference

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

Go to the source code of this file.

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)
static int file_open (URLContext *h, const char *filename, int flags)
static int64_t file_seek (URLContext *h, int64_t pos, int whence)
static int file_close (URLContext *h)
static int pipe_open (URLContext *h, const char *filename, int flags)

Variables

URLProtocol ff_file_protocol
URLProtocol ff_pipe_protocol

Function Documentation

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

Definition at line 54 of file file.c.

static int file_close ( URLContext h  )  [static]

Definition at line 105 of file file.c.

static int file_get_handle ( URLContext h  )  [static]

Definition at line 49 of file file.c.

static int file_open ( URLContext h,
const char *  filename,
int  flags 
) [static]

Definition at line 69 of file file.c.

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

Definition at line 37 of file file.c.

static int64_t file_seek ( URLContext h,
int64_t  pos,
int  whence 
) [static]

Definition at line 94 of file file.c.

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

Definition at line 43 of file file.c.

static int pipe_open ( URLContext h,
const char *  filename,
int  flags 
) [static]

Definition at line 126 of file file.c.


Variable Documentation

Initial value:
 {
    .name                = "file",
    .url_open            = file_open,
    .url_read            = file_read,
    .url_write           = file_write,
    .url_seek            = file_seek,
    .url_close           = file_close,
    .url_get_file_handle = file_get_handle,
    .url_check           = file_check,
}

Definition at line 111 of file file.c.

Initial value:
 {
    .name                = "pipe",
    .url_open            = pipe_open,
    .url_read            = file_read,
    .url_write           = file_write,
    .url_get_file_handle = file_get_handle,
    .url_check           = file_check,
}

Definition at line 148 of file file.c.