FFmpeg
Functions
lcevcdec.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/frame.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/refstruct.h"
#include "decode.h"
#include "lcevcdec.h"

Go to the source code of this file.

Functions

static LCEVC_ColorFormat map_format (int format)
 
static int alloc_base_frame (void *logctx, FFLCEVCContext *lcevc, const AVFrame *frame, LCEVC_PictureHandle *picture)
 
static int alloc_enhanced_frame (void *logctx, FFLCEVCFrame *frame_ctx, LCEVC_PictureHandle *picture)
 
static int lcevc_send_frame (void *logctx, FFLCEVCFrame *frame_ctx, const AVFrame *in)
 
static int generate_output (void *logctx, FFLCEVCFrame *frame_ctx, AVFrame *out)
 
static int lcevc_receive_frame (void *logctx, FFLCEVCFrame *frame_ctx, AVFrame *out)
 
static void event_callback (LCEVC_DecoderHandle dec, LCEVC_Event event, LCEVC_PictureHandle pic, const LCEVC_DecodeInformation *info, const uint8_t *data, uint32_t size, void *logctx)
 
static void lcevc_free (AVRefStructOpaque unused, void *obj)
 
static int lcevc_init (FFLCEVCContext *lcevc, void *logctx)
 
int ff_lcevc_process (void *logctx, AVFrame *frame)
 
int ff_lcevc_alloc (FFLCEVCContext **plcevc)
 
void ff_lcevc_unref (void *opaque)
 

Function Documentation

◆ map_format()

static LCEVC_ColorFormat map_format ( int  format)
static

Definition at line 29 of file lcevcdec.c.

Referenced by alloc_base_frame(), and alloc_enhanced_frame().

◆ alloc_base_frame()

static int alloc_base_frame ( void *  logctx,
FFLCEVCContext lcevc,
const AVFrame frame,
LCEVC_PictureHandle *  picture 
)
static

Definition at line 47 of file lcevcdec.c.

Referenced by lcevc_send_frame().

◆ alloc_enhanced_frame()

static int alloc_enhanced_frame ( void *  logctx,
FFLCEVCFrame frame_ctx,
LCEVC_PictureHandle *  picture 
)
static

Definition at line 103 of file lcevcdec.c.

Referenced by lcevc_send_frame().

◆ lcevc_send_frame()

static int lcevc_send_frame ( void *  logctx,
FFLCEVCFrame frame_ctx,
const AVFrame in 
)
static

Definition at line 130 of file lcevcdec.c.

Referenced by ff_lcevc_process().

◆ generate_output()

static int generate_output ( void *  logctx,
FFLCEVCFrame frame_ctx,
AVFrame out 
)
static

Definition at line 165 of file lcevcdec.c.

Referenced by lcevc_receive_frame().

◆ lcevc_receive_frame()

static int lcevc_receive_frame ( void *  logctx,
FFLCEVCFrame frame_ctx,
AVFrame out 
)
static

Definition at line 202 of file lcevcdec.c.

Referenced by ff_lcevc_process().

◆ event_callback()

static void event_callback ( LCEVC_DecoderHandle  dec,
LCEVC_Event  event,
LCEVC_PictureHandle  pic,
const LCEVC_DecodeInformation *  info,
const uint8_t *  data,
uint32_t  size,
void *  logctx 
)
static

Definition at line 229 of file lcevcdec.c.

Referenced by lcevc_init().

◆ lcevc_free()

static void lcevc_free ( AVRefStructOpaque  unused,
void *  obj 
)
static

Definition at line 242 of file lcevcdec.c.

Referenced by ff_lcevc_alloc().

◆ lcevc_init()

static int lcevc_init ( FFLCEVCContext lcevc,
void *  logctx 
)
static

Definition at line 250 of file lcevcdec.c.

Referenced by ff_lcevc_process().

◆ ff_lcevc_process()

int ff_lcevc_process ( void *  logctx,
AVFrame frame 
)

Definition at line 275 of file lcevcdec.c.

Referenced by attach_post_process_data().

◆ ff_lcevc_alloc()

int ff_lcevc_alloc ( FFLCEVCContext **  plcevc)

Definition at line 304 of file lcevcdec.c.

Referenced by ff_decode_preinit().

◆ ff_lcevc_unref()

void ff_lcevc_unref ( void *  opaque)

Definition at line 314 of file lcevcdec.c.

Referenced by attach_post_process_data().