FFmpeg
Data Structures | Macros | Functions | Variables
cri.c File Reference
#include "libavutil/intfloat.h"
#include "libavutil/display.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.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, AVFrame *p, int *got_frame, AVPacket *avpkt)
 
static av_cold int cri_decode_close (AVCodecContext *avctx)
 

Variables

const FFCodec ff_cri_decoder
 

Detailed Description

Cintel RAW image decoder

Definition in file cri.c.

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 28 of file cri.c.

Function Documentation

◆ cri_decode_init()

static av_cold int cri_decode_init ( AVCodecContext avctx)
static

Definition at line 51 of file cri.c.

◆ unpack_10bit()

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

Definition at line 82 of file cri.c.

Referenced by cri_decode_frame().

◆ cri_decode_frame()

static int cri_decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 173 of file cri.c.

◆ cri_decode_close()

static av_cold int cri_decode_close ( AVCodecContext avctx)
static

Definition at line 415 of file cri.c.

Variable Documentation

◆ ff_cri_decoder

const FFCodec ff_cri_decoder
Initial value:
= {
.p.name = "cri",
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_CRI,
.priv_data_size = sizeof(CRIContext),
.close = cri_decode_close,
.p.long_name = NULL_IF_CONFIG_SMALL("Cintel RAW"),
}

Definition at line 426 of file cri.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:39
CRIContext
Definition: cri.c:39
init
static int init
Definition: av_tx.c:47
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:254
cri_decode_init
static av_cold int cri_decode_init(AVCodecContext *avctx)
Definition: cri.c:51
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:113
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
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:117
AV_CODEC_ID_CRI
@ AV_CODEC_ID_CRI
Definition: codec_id.h:307
FF_CODEC_CAP_INIT_THREADSAFE
#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: codec_internal.h:31
cri_decode_frame
static int cri_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: cri.c:173
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
cri_decode_close
static av_cold int cri_decode_close(AVCodecContext *avctx)
Definition: cri.c:415