FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
utvideodec.c File Reference

Ut Video decoder. More...

#include <inttypes.h>
#include <stdlib.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
#include "thread.h"
#include "utvideo.h"

Go to the source code of this file.

Functions

static int build_huff10 (const uint8_t *src, VLC *vlc, int *fsym)
 
static int build_huff (const uint8_t *src, VLC *vlc, int *fsym)
 
static int decode_plane10 (UtvideoContext *c, int plane_no, uint16_t *dst, int step, ptrdiff_t stride, int width, int height, const uint8_t *src, const uint8_t *huff, int use_pred)
 
static int decode_plane (UtvideoContext *c, int plane_no, uint8_t *dst, int step, ptrdiff_t stride, int width, int height, const uint8_t *src, int use_pred)
 
static void restore_rgb_planes (uint8_t *src, int step, ptrdiff_t stride, int width, int height)
 
static void restore_rgb_planes10 (AVFrame *frame, int width, int height)
 
static void restore_median_planar (UtvideoContext *c, uint8_t *src, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_median_planar_il (UtvideoContext *c, uint8_t *src, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_median_packed (uint8_t *src, int step, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_median_packed_il (uint8_t *src, int step, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_gradient_planar (UtvideoContext *c, uint8_t *src, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_gradient_planar_il (UtvideoContext *c, uint8_t *src, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_gradient_packed (uint8_t *src, int step, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static void restore_gradient_packed_il (uint8_t *src, int step, ptrdiff_t stride, int width, int height, int slices, int rmode)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_utvideo_decoder
 

Detailed Description

Ut Video decoder.

Definition in file utvideodec.c.

Function Documentation

static int build_huff10 ( const uint8_t src,
VLC vlc,
int fsym 
)
static

Definition at line 39 of file utvideodec.c.

Referenced by decode_plane10().

static int build_huff ( const uint8_t src,
VLC vlc,
int fsym 
)
static

Definition at line 83 of file utvideodec.c.

Referenced by decode_plane().

static int decode_plane10 ( UtvideoContext c,
int  plane_no,
uint16_t *  dst,
int  step,
ptrdiff_t  stride,
int  width,
int  height,
const uint8_t src,
const uint8_t huff,
int  use_pred 
)
static

Definition at line 126 of file utvideodec.c.

Referenced by decode_frame().

static int decode_plane ( UtvideoContext c,
int  plane_no,
uint8_t dst,
int  step,
ptrdiff_t  stride,
int  width,
int  height,
const uint8_t src,
int  use_pred 
)
static

Definition at line 231 of file utvideodec.c.

Referenced by decode_frame().

static void restore_rgb_planes ( uint8_t src,
int  step,
ptrdiff_t  stride,
int  width,
int  height 
)
static

Definition at line 336 of file utvideodec.c.

Referenced by decode_frame().

static void restore_rgb_planes10 ( AVFrame frame,
int  width,
int  height 
)
static

Definition at line 354 of file utvideodec.c.

Referenced by decode_frame().

static void restore_median_planar ( UtvideoContext c,
uint8_t src,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 380 of file utvideodec.c.

Referenced by decode_frame().

static void restore_median_planar_il ( UtvideoContext c,
uint8_t src,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 428 of file utvideodec.c.

Referenced by decode_frame().

static void restore_median_packed ( uint8_t src,
int  step,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 479 of file utvideodec.c.

Referenced by decode_frame().

static void restore_median_packed_il ( uint8_t src,
int  step,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 535 of file utvideodec.c.

Referenced by decode_frame().

static void restore_gradient_planar ( UtvideoContext c,
uint8_t src,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 605 of file utvideodec.c.

Referenced by decode_frame().

static void restore_gradient_planar_il ( UtvideoContext c,
uint8_t src,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 643 of file utvideodec.c.

Referenced by decode_frame().

static void restore_gradient_packed ( uint8_t src,
int  step,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 694 of file utvideodec.c.

Referenced by decode_frame().

static void restore_gradient_packed_il ( uint8_t src,
int  step,
ptrdiff_t  stride,
int  width,
int  height,
int  slices,
int  rmode 
)
static

Definition at line 737 of file utvideodec.c.

Referenced by decode_frame().

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

Definition at line 796 of file utvideodec.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 1052 of file utvideodec.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 1154 of file utvideodec.c.

Variable Documentation

AVCodec ff_utvideo_decoder
Initial value:
= {
.name = "utvideo",
.long_name = NULL_IF_CONFIG_SMALL("Ut Video"),
.priv_data_size = sizeof(UtvideoContext),
.close = decode_end,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int decode_end(AVCodecContext *avctx)
Definition: utvideodec.c:1154
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#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:40
static av_cold int decode_init(AVCodecContext *avctx)
Definition: utvideodec.c:1052
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:1063
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: utvideodec.c:796
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:1000

Definition at line 1163 of file utvideodec.c.