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 "decode.h"
#include "get_bits.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 81 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 172 of file cri.c.

◆ cri_decode_close()

static av_cold int cri_decode_close ( AVCodecContext avctx)
static

Definition at line 418 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,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP |
CODEC_LONG_NAME("Cintel RAW"),
}

Definition at line 429 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:43
CRIContext
Definition: cri.c:39
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
cri_decode_init
static av_cold int cri_decode_init(AVCodecContext *avctx)
Definition: cri.c:51
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
Definition: codec_internal.h:55
AV_CODEC_ID_CRI
@ AV_CODEC_ID_CRI
Definition: codec_id.h:308
cri_decode_frame
static int cri_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: cri.c:172
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:418