#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 |
Definition in file tty.c.
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 |
static int efi_read | ( | AVFormatContext * | avctx, | |
uint64_t | start_pos | |||
) | [static] |
static int read_header | ( | AVFormatContext * | avctx, | |
AVFormatParameters * | ap | |||
) | [static] |
static int read_packet | ( | AVFormatContext * | avctx, | |
AVPacket * | pkt | |||
) | [static] |
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", }