FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
argo_asf.c File Reference
#include "avformat.h"
#include "internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  ArgoASFFileHeader
 
struct  ArgoASFChunkHeader
 
struct  ArgoASFDemuxContext
 

Macros

#define ASF_TAG   MKTAG('A', 'S', 'F', '\0')
 
#define ASF_FILE_HEADER_SIZE   24
 
#define ASF_CHUNK_HEADER_SIZE   20
 

Enumerations

enum  {
  ASF_CF_BITS_PER_SAMPLE = (1 << 0), ASF_CF_STEREO = (1 << 1), ASF_CF_ALWAYS1_1 = (1 << 2), ASF_CF_ALWAYS1_2 = (1 << 3),
  ASF_CF_ALWAYS1 = ASF_CF_ALWAYS1_1 | ASF_CF_ALWAYS1_2, ASF_CF_ALWAYS0 = ~(ASF_CF_BITS_PER_SAMPLE | ASF_CF_STEREO | ASF_CF_ALWAYS1)
}
 

Functions

static void argo_asf_parse_file_header (ArgoASFFileHeader *hdr, const uint8_t *buf)
 
static void argo_asf_parse_chunk_header (ArgoASFChunkHeader *hdr, const uint8_t *buf)
 
static int argo_asf_is_known_version (const ArgoASFFileHeader *hdr)
 
static int argo_asf_probe (const AVProbeData *p)
 
static int argo_asf_read_header (AVFormatContext *s)
 
static int argo_asf_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_argo_asf_demuxer
 

Macro Definition Documentation

◆ ASF_TAG

#define ASF_TAG   MKTAG('A', 'S', 'F', '\0')

Definition at line 27 of file argo_asf.c.

◆ ASF_FILE_HEADER_SIZE

#define ASF_FILE_HEADER_SIZE   24

Definition at line 28 of file argo_asf.c.

◆ ASF_CHUNK_HEADER_SIZE

#define ASF_CHUNK_HEADER_SIZE   20

Definition at line 29 of file argo_asf.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ASF_CF_BITS_PER_SAMPLE 
ASF_CF_STEREO 
ASF_CF_ALWAYS1_1 
ASF_CF_ALWAYS1_2 
ASF_CF_ALWAYS1 
ASF_CF_ALWAYS0 

Definition at line 49 of file argo_asf.c.

Function Documentation

◆ argo_asf_parse_file_header()

static void argo_asf_parse_file_header ( ArgoASFFileHeader hdr,
const uint8_t buf 
)
static

Definition at line 65 of file argo_asf.c.

Referenced by argo_asf_probe(), and argo_asf_read_header().

◆ argo_asf_parse_chunk_header()

static void argo_asf_parse_chunk_header ( ArgoASFChunkHeader hdr,
const uint8_t buf 
)
static

Definition at line 76 of file argo_asf.c.

Referenced by argo_asf_read_header().

◆ argo_asf_is_known_version()

static int argo_asf_is_known_version ( const ArgoASFFileHeader hdr)
static

Definition at line 92 of file argo_asf.c.

Referenced by argo_asf_probe(), and argo_asf_read_header().

◆ argo_asf_probe()

static int argo_asf_probe ( const AVProbeData p)
static

Definition at line 99 of file argo_asf.c.

◆ argo_asf_read_header()

static int argo_asf_read_header ( AVFormatContext s)
static

Definition at line 116 of file argo_asf.c.

◆ argo_asf_read_packet()

static int argo_asf_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 218 of file argo_asf.c.

Variable Documentation

◆ ff_argo_asf_demuxer

AVInputFormat ff_argo_asf_demuxer
Initial value:
= {
.name = "argo_asf",
.long_name = NULL_IF_CONFIG_SMALL("Argonaut Games ASF"),
.priv_data_size = sizeof(ArgoASFDemuxContext),
}

Definition at line 246 of file argo_asf.c.

argo_asf_read_header
static int argo_asf_read_header(AVFormatContext *s)
Definition: argo_asf.c:116
argo_asf_probe
static int argo_asf_probe(const AVProbeData *p)
Definition: argo_asf.c:99
ArgoASFDemuxContext
Definition: argo_asf.c:59
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:527
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
argo_asf_read_packet
static int argo_asf_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: argo_asf.c:218
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42