Binary text demuxer eXtended BINary text (XBIN) demuxer Artworx Data Format demuxer iCEDraw File demuxer. More...
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
#include "sauce.h"
#include "libavcodec/bintext.h"
Go to the source code of this file.
Binary text demuxer eXtended BINary text (XBIN) demuxer Artworx Data Format demuxer iCEDraw File demuxer.
Definition in file bintext.c.
len = avio_r8(pb); \ if (len < 1 || len > size) \ return -1; \ if (avio_read(pb, buf, size) == size && *buf) { \ buf[len] = 0; \ av_dict_set(&avctx->metadata, name, buf, 0); \ }
Referenced by next_tag_read().
#define LINE_RATE 6000 |
Definition at line 39 of file bintext.c.
Referenced by init_stream().
static int adf_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
static int bintext_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
static void calculate_height | ( | AVCodecContext * | avctx, | |
uint64_t | fsize | |||
) | [static] |
Given filesize and width, calculate height (assume font_height of 16).
Definition at line 50 of file bintext.c.
Referenced by adf_read_header(), bintext_read_header(), and idf_read_header().
static int idf_probe | ( | AVProbeData * | p | ) | [static] |
static int idf_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
static AVStream* init_stream | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
Definition at line 102 of file bintext.c.
Referenced by adf_read_header(), bintext_read_header(), idf_read_header(), and xbin_read_header().
static int next_tag_read | ( | AVFormatContext * | avctx, | |
uint64_t * | fsize | |||
) | [static] |
Definition at line 61 of file bintext.c.
Referenced by bintext_read_header().
static void predict_width | ( | AVCodecContext * | avctx, | |
uint64_t | fsize, | |||
int | got_width | |||
) | [static] |
attempt to guess width
Definition at line 95 of file bintext.c.
Referenced by bintext_read_header().
static int read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int xbin_probe | ( | AVProbeData * | p | ) | [static] |
static int xbin_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
{ .name = "adf", .long_name = NULL_IF_CONFIG_SMALL("Artworx Data Format"), .priv_data_size = sizeof(BinDemuxContext), .read_header = adf_read_header, .read_packet = read_packet, .extensions = "adf", }
{ .name = "bin", .long_name = NULL_IF_CONFIG_SMALL("Binary text"), .priv_data_size = sizeof(BinDemuxContext), .read_header = bintext_read_header, .read_packet = read_packet, .extensions = "bin", }
{ .name = "idf", .long_name = NULL_IF_CONFIG_SMALL("iCE Draw File"), .priv_data_size = sizeof(BinDemuxContext), .read_probe = idf_probe, .read_header = idf_read_header, .read_packet = read_packet, .extensions = "idf", }
{ .name = "xbin", .long_name = NULL_IF_CONFIG_SMALL("eXtended BINary text (XBIN)"), .priv_data_size = sizeof(BinDemuxContext), .read_probe = xbin_probe, .read_header = xbin_read_header, .read_packet = read_packet, }
const uint8_t idf_magic[] [static] |
{ 0x04, 0x31, 0x2e, 0x34, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x15, 0x00 }
Definition at line 259 of file bintext.c.
Referenced by idf_probe().
const uint8_t next_magic[] [static] |
{ 0x1A, 0x1B, '[', '0', ';', '3', '0', ';', '4', '0', 'm', 'N', 'E', 'X', 'T', 0x00 }
Definition at line 57 of file bintext.c.
Referenced by next_tag_read().