FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
cinedec.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/bmp.h"
#include "libavutil/intfloat.h"
#include "avformat.h"
#include "demux.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 FFInputFormat 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 57 of file cinedec.c.

◆ CFA_TRGRAY

#define CFA_TRGRAY   0x40000000U

Definition at line 58 of file cinedec.c.

◆ CFA_BLGRAY

#define CFA_BLGRAY   0x20000000U

Definition at line 59 of file cinedec.c.

◆ CFA_BRGRAY

#define CFA_BRGRAY   0x10000000U

Definition at line 60 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 42 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 49 of file cinedec.c.

Function Documentation

◆ cine_read_probe()

static int cine_read_probe ( const AVProbeData p)
static

Definition at line 62 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 77 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 85 of file cinedec.c.

Referenced by cine_read_header().

◆ cine_read_header()

static int cine_read_header ( AVFormatContext avctx)
static

Definition at line 95 of file cinedec.c.

◆ cine_read_packet()

static int cine_read_packet ( AVFormatContext avctx,
AVPacket pkt 
)
static

Definition at line 288 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 327 of file cinedec.c.

Variable Documentation

◆ ff_cine_demuxer

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

Definition at line 341 of file cinedec.c.

cine_read_header
static int cine_read_header(AVFormatContext *avctx)
Definition: cinedec.c:95
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:42
cine_read_packet
static int cine_read_packet(AVFormatContext *avctx, AVPacket *pkt)
Definition: cinedec.c:288
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
cine_read_probe
static int cine_read_probe(const AVProbeData *p)
Definition: cinedec.c:62
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
CineDemuxContext
Definition: cinedec.c:36
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
cine_read_seek
static int cine_read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
Definition: cinedec.c:327