libavformat/tty.c File Reference

Tele-typewriter demuxer. More...

#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "avformat.h"
#include "sauce.h"

Go to the source code of this file.

Data Structures

struct  TtyDemuxContext

Defines

#define LINE_RATE   6000
#define GET_EFI_META(name, size)

Functions

static int efi_read (AVFormatContext *avctx, uint64_t start_pos)
 Parse EFI header.
static int read_header (AVFormatContext *avctx, AVFormatParameters *ap)
static int read_packet (AVFormatContext *avctx, AVPacket *pkt)

Variables

AVInputFormat ff_tty_demuxer


Detailed Description

Tele-typewriter demuxer.

Definition in file tty.c.


Define Documentation

#define GET_EFI_META ( name,
size   ) 

Value:

len = avio_r8(pb); \
    if (len < 1 || len > size) \
        return -1; \
    if (avio_read(pb, buf, size) == size) { \
        buf[len] = 0; \
        av_metadata_set2(&avctx->metadata, name, buf, 0); \
    }

Referenced by efi_read().

#define LINE_RATE   6000

Definition at line 32 of file tty.c.

Referenced by read_header().


Function Documentation

static int efi_read ( AVFormatContext avctx,
uint64_t  start_pos 
) [static]

Parse EFI header.

Definition at line 42 of file tty.c.

Referenced by read_header().

static int read_header ( AVFormatContext avctx,
AVFormatParameters ap 
) [static]

Definition at line 69 of file tty.c.

static int read_packet ( AVFormatContext avctx,
AVPacket pkt 
) [static]

Definition at line 104 of file tty.c.


Variable Documentation

Initial value:

 {
    .name           = "tty",
    .long_name      = NULL_IF_CONFIG_SMALL("Tele-typewriter"),
    .priv_data_size = sizeof(TtyDemuxContext),
    .read_header    = read_header,
    .read_packet    = read_packet,
    .extensions     = "ans,art,asc,diz,ice,nfo,txt,vt",
}

Definition at line 127 of file tty.c.


Generated on Mon May 2 19:50:28 2011 for FFmpeg by  doxygen 1.5.6