FFmpeg
Classes | Macros | Typedefs | Variables
tty.c File Reference

Tele-typewriter demuxer. More...

#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "libavutil/log.h"
#include "libavutil/dict.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avformat.h"
#include "internal.h"
#include "sauce.h"

Classes

struct  TtyDemuxContext
 

Macros

#define GET_EFI_META(name, size)
 
#define OFFSET(x)   offsetof(TtyDemuxContext, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Typedefs

typedef struct TtyDemuxContext TtyDemuxContext
 

Variables

AVInputFormat ff_tty_demuxer
 

Detailed Description

Tele-typewriter demuxer.

Macro Definition Documentation

§ GET_EFI_META

#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_dict_set(&avctx->metadata, name, buf, 0); \
}
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:648

Variable Documentation

§ ff_tty_demuxer

AVInputFormat ff_tty_demuxer
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",
.priv_class = &tty_demuxer_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: tty.c:37