FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
cinedec.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/bmp.h"
#include "libavutil/intfloat.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  CineDemuxContext
 

Macros

#define CFA_TLGRAY   0x80000000U
 
#define CFA_TRGRAY   0x40000000U
 
#define CFA_BLGRAY   0x20000000U
 
#define CFA_BRGRAY   0x10000000U
 
#define DESCRIPTION_SIZE   4096
 

Enumerations

enum  { CC_RGB = 0, CC_LEAD = 1, CC_UNINT = 2 }
 Compression. More...
 
enum  {
  CFA_NONE = 0, CFA_VRI = 1, CFA_VRIV6 = 2, CFA_BAYER = 3,
  CFA_BAYERFLIP = 4
}
 Color Filter Array. More...
 

Functions

static int cine_read_probe (const AVProbeData *p)
 
static int set_metadata_int (AVDictionary **dict, const char *key, int value, int allow_zero)
 
static int set_metadata_float (AVDictionary **dict, const char *key, float value, int allow_zero)
 
static int cine_read_header (AVFormatContext *avctx)
 
static int cine_read_packet (AVFormatContext *avctx, AVPacket *pkt)
 
static int cine_read_seek (AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
 

Variables

const AVInputFormat ff_cine_demuxer
 

Detailed Description

Phantom Cine demuxer

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

Definition in file cinedec.c.

Macro Definition Documentation

◆ CFA_TLGRAY

#define CFA_TLGRAY   0x80000000U

Definition at line 55 of file cinedec.c.

◆ CFA_TRGRAY

#define CFA_TRGRAY   0x40000000U

Definition at line 56 of file cinedec.c.

◆ CFA_BLGRAY

#define CFA_BLGRAY   0x20000000U

Definition at line 57 of file cinedec.c.

◆ CFA_BRGRAY

#define CFA_BRGRAY   0x10000000U

Definition at line 58 of file cinedec.c.

◆ DESCRIPTION_SIZE

#define DESCRIPTION_SIZE   4096

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Compression.

Enumerator
CC_RGB 

Gray.

CC_LEAD 

LEAD (M)JPEG.

CC_UNINT 

Uninterpolated color image (CFA field indicates color ordering)

Definition at line 40 of file cinedec.c.

◆ anonymous enum

anonymous enum

Color Filter Array.

Enumerator
CFA_NONE 

GRAY.

CFA_VRI 

GBRG/RGGB.

CFA_VRIV6 

BGGR/GRBG.

CFA_BAYER 

GB/RG.

CFA_BAYERFLIP 

RG/GB.

Definition at line 47 of file cinedec.c.

Function Documentation

◆ cine_read_probe()

static int cine_read_probe ( const AVProbeData p)
static

Definition at line 60 of file cinedec.c.

◆ set_metadata_int()

static int set_metadata_int ( AVDictionary **  dict,
const char *  key,
int  value,
int  allow_zero 
)
static

Definition at line 75 of file cinedec.c.

Referenced by cine_read_header().

◆ set_metadata_float()

static int set_metadata_float ( AVDictionary **  dict,
const char *  key,
float  value,
int  allow_zero 
)
static

Definition at line 83 of file cinedec.c.

Referenced by cine_read_header().

◆ cine_read_header()

static int cine_read_header ( AVFormatContext avctx)
static

Definition at line 93 of file cinedec.c.

◆ cine_read_packet()

static int cine_read_packet ( AVFormatContext avctx,
AVPacket pkt 
)
static

Definition at line 286 of file cinedec.c.

◆ cine_read_seek()

static int cine_read_seek ( AVFormatContext avctx,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 325 of file cinedec.c.

Variable Documentation

◆ ff_cine_demuxer

const AVInputFormat ff_cine_demuxer
Initial value:
= {
.name = "cine",
.long_name = NULL_IF_CONFIG_SMALL("Phantom Cine"),
.priv_data_size = sizeof(CineDemuxContext),
}

Definition at line 339 of file cinedec.c.

cine_read_header
static int cine_read_header(AVFormatContext *avctx)
Definition: cinedec.c:93
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
cine_read_packet
static int cine_read_packet(AVFormatContext *avctx, AVPacket *pkt)
Definition: cinedec.c:286
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:545
cine_read_probe
static int cine_read_probe(const AVProbeData *p)
Definition: cinedec.c:60
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:115
CineDemuxContext
Definition: cinedec.c:34
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:29
cine_read_seek
static int cine_read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
Definition: cinedec.c:325