FFmpeg
Macros | Functions | Variables
sol.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "pcm.h"

Go to the source code of this file.

Macros

#define AU_UNKNOWN_SIZE   ((uint32_t)(~0))
 
#define SOL_DPCM   1
 
#define SOL_16BIT   4
 
#define SOL_STEREO   16
 
#define MAX_SIZE   4096
 

Functions

static int sol_probe (const AVProbeData *p)
 
static enum AVCodecID sol_codec_id (int magic, int type)
 
static int sol_codec_type (int magic, int type)
 
static int sol_channels (int magic, int type)
 
static int sol_read_header (AVFormatContext *s)
 
static int sol_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_sol_demuxer
 

Macro Definition Documentation

◆ AU_UNKNOWN_SIZE

#define AU_UNKNOWN_SIZE   ((uint32_t)(~0))

Definition at line 34 of file sol.c.

◆ SOL_DPCM

#define SOL_DPCM   1

Definition at line 48 of file sol.c.

◆ SOL_16BIT

#define SOL_16BIT   4

Definition at line 49 of file sol.c.

◆ SOL_STEREO

#define SOL_STEREO   16

Definition at line 50 of file sol.c.

◆ MAX_SIZE

#define MAX_SIZE   4096

Definition at line 123 of file sol.c.

Function Documentation

◆ sol_probe()

static int sol_probe ( const AVProbeData p)
static

Definition at line 36 of file sol.c.

◆ sol_codec_id()

static enum AVCodecID sol_codec_id ( int  magic,
int  type 
)
static

Definition at line 52 of file sol.c.

Referenced by sol_read_header().

◆ sol_codec_type()

static int sol_codec_type ( int  magic,
int  type 
)
static

Definition at line 66 of file sol.c.

Referenced by sol_read_header().

◆ sol_channels()

static int sol_channels ( int  magic,
int  type 
)
static

Definition at line 78 of file sol.c.

Referenced by sol_read_header().

◆ sol_read_header()

static int sol_read_header ( AVFormatContext s)
static

Definition at line 84 of file sol.c.

◆ sol_read_packet()

static int sol_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 125 of file sol.c.

Variable Documentation

◆ ff_sol_demuxer

const FFInputFormat ff_sol_demuxer
Initial value:
= {
.p.name = "sol",
.p.long_name = NULL_IF_CONFIG_SMALL("Sierra SOL"),
.read_probe = sol_probe,
.read_header = sol_read_header,
.read_packet = sol_read_packet,
.read_seek = ff_pcm_read_seek,
}

Definition at line 141 of file sol.c.

sol_probe
static int sol_probe(const AVProbeData *p)
Definition: sol.c:36
sol_read_packet
static int sol_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: sol.c:125
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:106
ff_pcm_read_seek
int ff_pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: pcm.c:73
sol_read_header
static int sol_read_header(AVFormatContext *s)
Definition: sol.c:84