FFmpeg
Data Structures | Macros | Enumerations | Functions
argo_asf.h File Reference
#include <stdint.h>
#include "libavutil/macros.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  ArgoASFFileHeader
 
struct  ArgoASFChunkHeader
 

Macros

#define ASF_TAG   MKTAG('A', 'S', 'F', '\0')
 
#define ASF_FILE_HEADER_SIZE   24
 
#define ASF_CHUNK_HEADER_SIZE   20
 
#define ASF_SAMPLE_COUNT   32
 
#define ASF_MIN_BUFFER_SIZE   FFMAX(ASF_FILE_HEADER_SIZE, ASF_CHUNK_HEADER_SIZE)
 
#define ASF_NAME_SIZE   8
 

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

void ff_argo_asf_parse_file_header (ArgoASFFileHeader *hdr, const uint8_t *buf)
 
int ff_argo_asf_validate_file_header (AVFormatContext *s, const ArgoASFFileHeader *hdr)
 
void ff_argo_asf_parse_chunk_header (ArgoASFChunkHeader *hdr, const uint8_t *buf)
 
int ff_argo_asf_fill_stream (AVFormatContext *s, AVStream *st, const ArgoASFFileHeader *fhdr, const ArgoASFChunkHeader *ckhdr)
 

Macro Definition Documentation

◆ ASF_TAG

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

Definition at line 31 of file argo_asf.h.

◆ ASF_FILE_HEADER_SIZE

#define ASF_FILE_HEADER_SIZE   24

Definition at line 32 of file argo_asf.h.

◆ ASF_CHUNK_HEADER_SIZE

#define ASF_CHUNK_HEADER_SIZE   20

Definition at line 33 of file argo_asf.h.

◆ ASF_SAMPLE_COUNT

#define ASF_SAMPLE_COUNT   32

Definition at line 34 of file argo_asf.h.

◆ ASF_MIN_BUFFER_SIZE

#define ASF_MIN_BUFFER_SIZE   FFMAX(ASF_FILE_HEADER_SIZE, ASF_CHUNK_HEADER_SIZE)

Definition at line 35 of file argo_asf.h.

◆ ASF_NAME_SIZE

#define ASF_NAME_SIZE   8

Definition at line 36 of file argo_asf.h.

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 56 of file argo_asf.h.

Function Documentation

◆ ff_argo_asf_parse_file_header()

void ff_argo_asf_parse_file_header ( ArgoASFFileHeader hdr,
const uint8_t *  buf 
)

Definition at line 53 of file argo_asf.c.

Referenced by argo_brp_read_header().

◆ ff_argo_asf_validate_file_header()

int ff_argo_asf_validate_file_header ( AVFormatContext s,
const ArgoASFFileHeader hdr 
)

Definition at line 64 of file argo_asf.c.

Referenced by argo_brp_read_header().

◆ ff_argo_asf_parse_chunk_header()

void ff_argo_asf_parse_chunk_header ( ArgoASFChunkHeader hdr,
const uint8_t *  buf 
)

Definition at line 75 of file argo_asf.c.

Referenced by argo_brp_read_header(), and argo_brp_read_packet().

◆ ff_argo_asf_fill_stream()

int ff_argo_asf_fill_stream ( AVFormatContext s,
AVStream st,
const ArgoASFFileHeader fhdr,
const ArgoASFChunkHeader ckhdr 
)

Definition at line 85 of file argo_asf.c.

Referenced by argo_brp_read_header().