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 "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

const AVCodec 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 50 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 81 of file cri.c.

Referenced by cri_decode_frame().

◆ cri_decode_frame()

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

Definition at line 172 of file cri.c.

◆ cri_decode_close()

static av_cold int cri_decode_close ( AVCodecContext avctx)
static

Definition at line 416 of file cri.c.

Variable Documentation

◆ ff_cri_decoder

const 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"),
}

Definition at line 427 of file cri.c.

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: internal.h:42
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
CRIContext
Definition: cri.c:38
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
cri_decode_init
static av_cold int cri_decode_init(AVCodecContext *avctx)
Definition: cri.c:50
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:108
cri_decode_frame
static int cri_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: cri.c:172
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_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: internal.h:50
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:416