libavcodec/utvideo.c File Reference

Ut Video decoder. More...

#include <stdlib.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "dsputil.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  UtvideoContext
struct  HuffEntry

Enumerations

enum  { PRED_NONE = 0, PRED_LEFT, PRED_GRADIENT, PRED_MEDIAN }

Functions

static int huff_cmp (const void *a, const void *b)
static int build_huff (const uint8_t *src, VLC *vlc, int *fsym)
static int decode_plane (UtvideoContext *c, int plane_no, uint8_t *dst, int step, int stride, int width, int height, const uint8_t *src, int use_pred)
static void restore_rgb_planes (uint8_t *src, int step, int stride, int width, int height)
static void restore_median (uint8_t *src, int step, int stride, int width, int height, int slices, int rmode)
static void restore_median_il (uint8_t *src, int step, int stride, int width, int height, int slices, int rmode)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_init (AVCodecContext *avctx)
static av_cold int decode_end (AVCodecContext *avctx)

Variables

static const int rgb_order [4] = { 1, 2, 0, 3 }
AVCodec ff_utvideo_decoder


Detailed Description

Ut Video decoder.

Definition in file utvideo.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
PRED_NONE 
PRED_LEFT 
PRED_GRADIENT 
PRED_MEDIAN 

Definition at line 36 of file utvideo.c.


Function Documentation

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

Definition at line 70 of file utvideo.c.

Referenced by decode_plane().

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 558 of file utvideo.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 361 of file utvideo.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 500 of file utvideo.c.

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

Definition at line 112 of file utvideo.c.

static int huff_cmp ( const void *  a,
const void *  b 
) [static]

Definition at line 64 of file utvideo.c.

static void restore_median ( uint8_t src,
int  step,
int  stride,
int  width,
int  height,
int  slices,
int  rmode 
) [static]

Definition at line 239 of file utvideo.c.

Referenced by decode_frame().

static void restore_median_il ( uint8_t src,
int  step,
int  stride,
int  width,
int  height,
int  slices,
int  rmode 
) [static]

Definition at line 293 of file utvideo.c.

Referenced by decode_frame().

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

Definition at line 221 of file utvideo.c.

Referenced by decode_frame().


Variable Documentation

Initial value:

 {
    .name           = "utvideo",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_UTVIDEO,
    .priv_data_size = sizeof(UtvideoContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
    .long_name      = NULL_IF_CONFIG_SMALL("Ut Video"),
}

Definition at line 570 of file utvideo.c.

const int rgb_order[4] = { 1, 2, 0, 3 } [static]

Definition at line 219 of file utvideo.c.

Referenced by decode_frame().


Generated on Fri Oct 26 02:47:59 2012 for FFmpeg by  doxygen 1.5.8