#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"
Go to the source code of this file.
| Data Structures | |
| struct | TtyDemuxContext | 
| Defines | |
| #define | GET_EFI_META(name, size) | 
| #define | OFFSET(x) offsetof(TtyDemuxContext, x) | 
| #define | DEC AV_OPT_FLAG_DECODING_PARAM | 
| 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 | |
| static const AVOption | options [] | 
| static const AVClass | tty_demuxer_class | 
| 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_dict_set(&avctx->metadata, name, buf, 0); \ }
Referenced by efi_read().
| #define OFFSET | ( | x | ) | offsetof(TtyDemuxContext, x) | 
| 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",
    .priv_class     = &tty_demuxer_class,
}
Initial value:
 {
    { "chars_per_frame", "", 0x42, AV_OPT_TYPE_INT, {.dbl = 6000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM},
    { "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(video_size), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "framerate", "", OFFSET(framerate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0, DEC },
    { NULL },
}
| const AVClass tty_demuxer_class  [static] | 
Initial value:
 {
    .class_name     = "TTY demuxer",
    .item_name      = av_default_item_name,
    .option         = options,
    .version        = LIBAVUTIL_VERSION_INT,
}
 1.5.8
 1.5.8