FFmpeg
Data Structures | Macros | Functions | Variables
hnm.c File Reference
#include <inttypes.h>
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  Hnm4DemuxContext
 

Macros

#define HNM4_TAG   MKTAG('H', 'N', 'M', '4')
 
#define HNM4_SAMPLE_RATE   22050
 
#define HNM4_FRAME_FPS   24
 
#define HNM4_CHUNK_ID_PL   19536
 
#define HNM4_CHUNK_ID_IZ   23113
 
#define HNM4_CHUNK_ID_IU   21833
 
#define HNM4_CHUNK_ID_SD   17491
 

Functions

static int hnm_probe (const AVProbeData *p)
 
static int hnm_read_header (AVFormatContext *s)
 
static int hnm_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_hnm_demuxer
 

Macro Definition Documentation

◆ HNM4_TAG

#define HNM4_TAG   MKTAG('H', 'N', 'M', '4')

Definition at line 30 of file hnm.c.

◆ HNM4_SAMPLE_RATE

#define HNM4_SAMPLE_RATE   22050

Definition at line 32 of file hnm.c.

◆ HNM4_FRAME_FPS

#define HNM4_FRAME_FPS   24

Definition at line 33 of file hnm.c.

◆ HNM4_CHUNK_ID_PL

#define HNM4_CHUNK_ID_PL   19536

Definition at line 35 of file hnm.c.

◆ HNM4_CHUNK_ID_IZ

#define HNM4_CHUNK_ID_IZ   23113

Definition at line 36 of file hnm.c.

◆ HNM4_CHUNK_ID_IU

#define HNM4_CHUNK_ID_IU   21833

Definition at line 37 of file hnm.c.

◆ HNM4_CHUNK_ID_SD

#define HNM4_CHUNK_ID_SD   17491

Definition at line 38 of file hnm.c.

Function Documentation

◆ hnm_probe()

static int hnm_probe ( const AVProbeData p)
static

Definition at line 46 of file hnm.c.

◆ hnm_read_header()

static int hnm_read_header ( AVFormatContext s)
static

Definition at line 59 of file hnm.c.

◆ hnm_read_packet()

static int hnm_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 102 of file hnm.c.

Variable Documentation

◆ ff_hnm_demuxer

const FFInputFormat ff_hnm_demuxer
Initial value:
= {
.p.name = "hnm",
.p.long_name = NULL_IF_CONFIG_SMALL("Cryo HNM v4"),
.priv_data_size = sizeof(Hnm4DemuxContext),
}

Definition at line 164 of file hnm.c.

AVFMT_NO_BYTE_SEEK
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition: avformat.h:487
AVFMT_NOBINSEARCH
#define AVFMT_NOBINSEARCH
Format does not allow to fall back on binary search via read_timestamp.
Definition: avformat.h:485
hnm_probe
static int hnm_probe(const AVProbeData *p)
Definition: hnm.c:46
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
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:94
hnm_read_header
static int hnm_read_header(AVFormatContext *s)
Definition: hnm.c:59
AVFMT_NOGENSEARCH
#define AVFMT_NOGENSEARCH
Format does not allow to fall back on generic search.
Definition: avformat.h:486
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
Hnm4DemuxContext
Definition: hnm.c:40
hnm_read_packet
static int hnm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: hnm.c:102