FFmpeg
Data Structures | Macros | Functions | Variables
hxvs.c File Reference
#include "libavutil/intreadwrite.h"
#include "avio_internal.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  HxvsContext
 

Macros

#define HXVS   MKTAG('H', 'X', 'V', 'S')
 
#define HXVT   MKTAG('H', 'X', 'V', 'T')
 
#define HXVF   MKTAG('H', 'X', 'V', 'F')
 
#define HXAF   MKTAG('H', 'X', 'A', 'F')
 
#define HXFI   MKTAG('H', 'X', 'F', 'I')
 
#define HXFI_TABLE_SIZE   200000
 
#define HXFI_TABLE_COUNT   (200000 / 8)
 

Functions

static int hxvs_probe (const AVProbeData *p)
 
static int hxvs_create_video_stream (AVFormatContext *s, enum AVCodecID codec_id)
 
static int hxvs_create_audio_stream (AVFormatContext *s)
 
static int hxvs_build_index (AVFormatContext *s)
 
static int hxvs_read_header (AVFormatContext *s)
 
static int hxvs_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_hxvs_demuxer
 

Macro Definition Documentation

◆ HXVS

#define HXVS   MKTAG('H', 'X', 'V', 'S')

Definition at line 42 of file hxvs.c.

◆ HXVT

#define HXVT   MKTAG('H', 'X', 'V', 'T')

Definition at line 48 of file hxvs.c.

◆ HXVF

#define HXVF   MKTAG('H', 'X', 'V', 'F')

Definition at line 61 of file hxvs.c.

◆ HXAF

#define HXAF   MKTAG('H', 'X', 'A', 'F')

Definition at line 75 of file hxvs.c.

◆ HXFI

#define HXFI   MKTAG('H', 'X', 'F', 'I')

Definition at line 84 of file hxvs.c.

◆ HXFI_TABLE_SIZE

#define HXFI_TABLE_SIZE   200000

Definition at line 86 of file hxvs.c.

◆ HXFI_TABLE_COUNT

#define HXFI_TABLE_COUNT   (200000 / 8)

Definition at line 87 of file hxvs.c.

Function Documentation

◆ hxvs_probe()

static int hxvs_probe ( const AVProbeData p)
static

Definition at line 94 of file hxvs.c.

◆ hxvs_create_video_stream()

static int hxvs_create_video_stream ( AVFormatContext s,
enum AVCodecID  codec_id 
)
static

Definition at line 139 of file hxvs.c.

Referenced by hxvs_read_header().

◆ hxvs_create_audio_stream()

static int hxvs_create_audio_stream ( AVFormatContext s)
static

Definition at line 162 of file hxvs.c.

Referenced by hxvs_read_header().

◆ hxvs_build_index()

static int hxvs_build_index ( AVFormatContext s)
static

Definition at line 180 of file hxvs.c.

Referenced by hxvs_read_header().

◆ hxvs_read_header()

static int hxvs_read_header ( AVFormatContext s)
static

Definition at line 248 of file hxvs.c.

◆ hxvs_read_packet()

static int hxvs_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 288 of file hxvs.c.

Variable Documentation

◆ ff_hxvs_demuxer

const FFInputFormat ff_hxvs_demuxer
Initial value:
= {
.p.name = "hxvs",
.p.long_name = NULL_IF_CONFIG_SMALL("HXVF/HXVS IP camera format"),
.p.extensions = "264,265",
.p.flags = AVFMT_GENERIC_INDEX,
.read_probe = hxvs_probe,
.read_header = hxvs_read_header,
.read_packet = hxvs_read_packet,
.priv_data_size = sizeof(HxvsContext),
}

Definition at line 331 of file hxvs.c.

HxvsContext
Definition: hxvs.c:89
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:479
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
hxvs_read_packet
static int hxvs_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: hxvs.c:288
hxvs_probe
static int hxvs_probe(const AVProbeData *p)
Definition: hxvs.c:94
hxvs_read_header
static int hxvs_read_header(AVFormatContext *s)
Definition: hxvs.c:248