FFmpeg
|
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"
Include dependency graph for tty.c:
Go to the source code of this file.
Data Structures | |
struct | TtyDemuxContext |
Macros | |
#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. More... | |
static int | read_header (AVFormatContext *avctx) |
static int | read_packet (AVFormatContext *avctx, AVPacket *pkt) |
Variables | |
static const AVOption | options [] |
static const AVClass | tty_demuxer_class |
AVInputFormat | ff_tty_demuxer |
Detailed Description
Tele-typewriter demuxer.
Definition in file tty.c.
Macro Definition Documentation
#define DEC AV_OPT_FLAG_DECODING_PARAM |
Value:
}
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:478
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
Definition: dict.c:62
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame This method is called when a frame is wanted on an output For an it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return it should return
Definition: filter_design.txt:216
Referenced by efi_read().
#define OFFSET | ( | x | ) | offsetof(TtyDemuxContext, x) |
Function Documentation
|
static |
|
static |
|
static |
Variable Documentation
AVInputFormat ff_tty_demuxer |
Initial value:
= {
.name = "tty",
.long_name = NULL_IF_CONFIG_SMALL("Tele-typewriter"),
.priv_data_size = sizeof(TtyDemuxContext),
.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: libavutil/internal.h:123
Definition: tty.c:37
|
static |
Initial value:
= {
{ "chars_per_frame", "", offsetof(TtyDemuxContext, chars_per_frame), AV_OPT_TYPE_INT, {.i64 = 6000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM},
{ "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(width), AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL}, 0, 0, DEC },
{ NULL },
}
Definition: opt.h:222
Definition: tty.c:37
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282
|
static |
Initial value:
= {
.class_name = "TTY demuxer",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11