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




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)


AVCodec ff_cri_decoder

Detailed Description

Cintel RAW image decoder.

Definition in file cri.c.

Macro Definition Documentation


Definition at line 28 of file cri.c.

Function Documentation

static av_cold int cri_decode_init ( AVCodecContext avctx)

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 

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 

Definition at line 167 of file cri.c.

static av_cold int cri_decode_close ( AVCodecContext avctx)

Definition at line 413 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"),
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:49
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:41
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
Codec supports frame-level multithreading.
Definition: codec.h:106
static av_cold int cri_decode_close(AVCodecContext *avctx)
Definition: cri.c:413
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:167
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 423 of file cri.c.