FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
cinedec.c File Reference

Phantom Cine demuxer. More...

#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 (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

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

#define CFA_TLGRAY   0x80000000U

Definition at line 54 of file cinedec.c.

#define CFA_TRGRAY   0x40000000U

Definition at line 55 of file cinedec.c.

#define CFA_BLGRAY   0x20000000U

Definition at line 56 of file cinedec.c.

#define CFA_BRGRAY   0x10000000U

Definition at line 57 of file cinedec.c.

#define DESCRIPTION_SIZE   4096

Referenced by cine_read_header().

Enumeration Type Documentation

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 39 of file cinedec.c.

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 46 of file cinedec.c.

Function Documentation

static int cine_read_probe ( AVProbeData p)
static

Definition at line 59 of file cinedec.c.

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

Definition at line 74 of file cinedec.c.

Referenced by cine_read_header().

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

Definition at line 82 of file cinedec.c.

Referenced by cine_read_header().

static int cine_read_header ( AVFormatContext avctx)
static

Definition at line 92 of file cinedec.c.

static int cine_read_packet ( AVFormatContext avctx,
AVPacket pkt 
)
static

Definition at line 280 of file cinedec.c.

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

Definition at line 307 of file cinedec.c.

Variable Documentation

AVInputFormat ff_cine_demuxer
Initial value:
= {
.name = "cine",
.long_name = NULL_IF_CONFIG_SMALL("Phantom Cine"),
.priv_data_size = sizeof(CineDemuxContext),
}
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:153
static int cine_read_probe(AVProbeData *p)
Definition: cinedec.c:59
static int cine_read_header(AVFormatContext *avctx)
Definition: cinedec.c:92
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int cine_read_packet(AVFormatContext *avctx, AVPacket *pkt)
Definition: cinedec.c:280
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int cine_read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
Definition: cinedec.c:307

Definition at line 321 of file cinedec.c.