FFmpeg
Loading...
Searching...
No Matches
jvdec.c File Reference

Bitmap Brothers JV demuxer. More...

#include "libavutil/attributes.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  JVFrame
 
struct  JVDemuxContext
 

Macros

#define JV_PREAMBLE_SIZE   5
 
#define MAGIC   " Compression by John M Phillips Copyright (C) 1995 The Bitmap Brothers Ltd."
 

Functions

static int read_probe (const AVProbeData *pd)
 
static int read_close (AVFormatContext *s)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int read_seek (AVFormatContext *s, int stream_index, int64_t ts, int flags)
 

Variables

const FFInputFormat ff_jv_demuxer
 

Detailed Description

Bitmap Brothers JV demuxer.

Author
Peter Ross pross.nosp@m.@xvi.nosp@m.d.org

Definition in file jvdec.c.

Macro Definition Documentation

◆ JV_PREAMBLE_SIZE

#define JV_PREAMBLE_SIZE   5

Definition at line 37 of file jvdec.c.

Referenced by read_packet().

◆ MAGIC

#define MAGIC   " Compression by John M Phillips Copyright (C) 1995 The Bitmap Brothers Ltd."

Definition at line 56 of file jvdec.c.

Referenced by free_frame(), read_probe(), read_probe(), receiver_thread(), and sender_thread().

Function Documentation

◆ read_probe()

static int read_probe ( const AVProbeData * pd)
static

Definition at line 58 of file jvdec.c.

◆ read_close()

static int read_close ( AVFormatContext * s)
static

Definition at line 66 of file jvdec.c.

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 75 of file jvdec.c.

◆ read_packet()

static int read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 163 of file jvdec.c.

◆ read_seek()

static int read_seek ( AVFormatContext * s,
int stream_index,
int64_t ts,
int flags )
static

Definition at line 226 of file jvdec.c.

Variable Documentation

◆ ff_jv_demuxer

const FFInputFormat ff_jv_demuxer
Initial value:
= {
.p.name = "jv",
.p.long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV"),
.priv_data_size = sizeof(JVDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition demux.h:35
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 258 of file jvdec.c.