libavcodec/cpia.c File Reference

#include "avcodec.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  CpiaContext

Defines

#define FRAME_HEADER_SIZE   64
#define MAGIC_0   0x19
 First header byte.
#define MAGIC_1   0x68
 Second header byte.
#define SUBSAMPLE_420   0
#define SUBSAMPLE_422   1
#define YUVORDER_YUYV   0
#define YUVORDER_UYVY   1
#define NOT_COMPRESSED   0
#define COMPRESSED   1
#define NO_DECIMATION   0
#define DECIMATION_ENAB   1
#define EOL   0xfd
 End Of Line marker.
#define EOI   0xff
 End Of Image marker.

Functions

static int cpia_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int cpia_decode_init (AVCodecContext *avctx)

Variables

AVCodec ff_cpia_decoder


Define Documentation

#define COMPRESSED   1

Definition at line 37 of file cpia.c.

Referenced by cpia_decode_frame().

#define DECIMATION_ENAB   1

Definition at line 39 of file cpia.c.

Referenced by cpia_decode_frame().

#define EOI   0xff

#define EOL   0xfd

End Of Line marker.

Definition at line 40 of file cpia.c.

Referenced by cpia_decode_frame().

#define FRAME_HEADER_SIZE   64

#define MAGIC_0   0x19

First header byte.

Definition at line 30 of file cpia.c.

Referenced by cpia_decode_frame().

#define MAGIC_1   0x68

Second header byte.

Definition at line 31 of file cpia.c.

Referenced by cpia_decode_frame().

#define NO_DECIMATION   0

Definition at line 38 of file cpia.c.

Referenced by cpia_decode_frame().

#define NOT_COMPRESSED   0

Definition at line 36 of file cpia.c.

Referenced by cpia_decode_frame().

#define SUBSAMPLE_420   0

Definition at line 32 of file cpia.c.

Referenced by cpia_decode_frame().

#define SUBSAMPLE_422   1

Definition at line 33 of file cpia.c.

Referenced by cpia_decode_frame().

#define YUVORDER_UYVY   1

Definition at line 35 of file cpia.c.

Referenced by cpia_decode_frame().

#define YUVORDER_YUYV   0

Definition at line 34 of file cpia.c.

Referenced by cpia_decode_frame().


Function Documentation

static int cpia_decode_frame ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
) [static]

Definition at line 49 of file cpia.c.

static av_cold int cpia_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 192 of file cpia.c.


Variable Documentation

Initial value:

 {
    .name           = "cpia",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_CPIA,
    .priv_data_size = sizeof(CpiaContext),
    .init           = cpia_decode_init,
    .decode         = cpia_decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("CPiA video format"),
}

Definition at line 209 of file cpia.c.


Generated on Fri Oct 26 02:50:04 2012 for FFmpeg by  doxygen 1.5.8