FFmpeg
Data Structures | Macros | Functions | Variables
cri.c File Reference

Cintel RAW image decoder. More...

#include "libavutil/intfloat.h"
#include "libavutil/display.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  CRIContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static av_cold int cri_decode_init (AVCodecContext *avctx)
 
static void unpack_10bit (GetByteContext *gb, uint16_t *dst, int shift, int w, int h, ptrdiff_t stride)
 
static int cri_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int cri_decode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_cri_decoder
 

Detailed Description

Cintel RAW image decoder.

Definition in file cri.c.

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 28 of file cri.c.

Function Documentation

static av_cold int cri_decode_init ( AVCodecContext avctx)
static

Definition at line 49 of file cri.c.

static void unpack_10bit ( GetByteContext gb,
uint16_t *  dst,
int  shift,
int  w,
int  h,
ptrdiff_t  stride 
)
static

Definition at line 76 of file cri.c.

Referenced by cri_decode_frame().

static int cri_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 164 of file cri.c.

static av_cold int cri_decode_close ( AVCodecContext avctx)
static

Definition at line 403 of file cri.c.

Variable Documentation

AVCodec ff_cri_decoder
Initial value:
= {
.name = "cri",
.priv_data_size = sizeof(CRIContext),
.close = cri_decode_close,
.long_name = NULL_IF_CONFIG_SMALL("Cintel RAW"),
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:106
static av_cold int cri_decode_close(AVCodecContext *avctx)
Definition: cri.c:403
Definition: cri.c:38
static av_cold int cri_decode_init(AVCodecContext *avctx)
Definition: cri.c:49
static int cri_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: cri.c:164
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 413 of file cri.c.