mvcdec.c File Reference

Silicon Graphics Motion Video Compressor 1 & 2 decoder. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
Include dependency graph for mvcdec.c:

Go to the source code of this file.

Data Structures

struct  MvcContext
 

Macros

#define PIX16(target, true, false)
 
#define ROW16(row, a1, a0, b1, b0)
 
#define PIX32(target, true, false)
 
#define ROW32(row, a1, a0, b1, b0)
 
#define MVC2_BLOCK
 

Typedefs

typedef struct MvcContext MvcContext
 

Functions

static av_cold int mvc_decode_init (AVCodecContext *avctx)
 
static int decode_mvc1 (AVCodecContext *avctx, GetByteContext *gb, uint8_t *dst_start, int width, int height, int linesize)
 
static void set_4x4_block (uint8_t *dst, int linesize, uint32_t pixel)
 
static int decode_mvc2 (AVCodecContext *avctx, GetByteContext *gb, uint8_t *dst_start, int width, int height, int linesize, int vflip)
 
static int mvc_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int mvc_decode_end (AVCodecContext *avctx)
 

Detailed Description

Silicon Graphics Motion Video Compressor 1 & 2 decoder.

Definition in file mvcdec.c.

Macro Definition Documentation

#define MVC2_BLOCK
Value:
ROW32(0, 1, 0, 3, 2); \
ROW32(1, 1, 0, 3, 2); \
ROW32(2, 5, 4, 7, 6); \
ROW32(3, 5, 4, 7, 6);
#define ROW32(row, a1, a0, b1, b0)
Definition: mvcdec.c:125

Definition at line 132 of file mvcdec.c.

Referenced by decode_mvc2().

#define PIX16 (   target,
  true,
  false 
)
Value:
i = (mask & target) ? true : false; \
AV_WN16A(dst, (v[i] & 0x7C00) | (v[i] & 0x3E0) | (v[i] & 0x1F)); \
dst += 2;
float v
static const uint16_t mask[17]
Definition: lzw.c:37
#define AV_WN16A(p, v)
Definition: intreadwrite.h:526
synthesis window for stochastic i
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160
#define PIX32 (   target,
  true,
  false 
)
Value:
AV_WN32A(dst, (mask & target) ? v[true] : v[false]); \
dst += 4;
float v
#define AV_WN32A(p, v)
Definition: intreadwrite.h:530
static const uint16_t mask[17]
Definition: lzw.c:37
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160

Definition at line 121 of file mvcdec.c.

#define ROW16 (   row,
  a1,
  a0,
  b1,
  b0 
)
Value:
dst = dst_start + (y + row) * linesize + x * 2; \
PIX16(1 << (row * 4), a1, a0) \
PIX16(1 << (row * 4 + 1), a1, a0) \
PIX16(1 << (row * 4 + 2), b1, b0) \
PIX16(1 << (row * 4 + 3), b1, b0)
#define a0
Definition: regdef.h:46
#define a1
Definition: regdef.h:47
Discrete Time axis x
#define PIX16(target, true, false)
function y
Definition: D.m:1
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160

Referenced by decode_mvc1().

#define ROW32 (   row,
  a1,
  a0,
  b1,
  b0 
)
Value:
dst = dst_start + (y + row) * linesize + x * 4; \
PIX32(1 << (row * 4), a1, a0) \
PIX32(1 << (row * 4 + 1), a1, a0) \
PIX32(1 << (row * 4 + 2), b1, b0) \
PIX32(1 << (row * 4 + 3), b1, b0)
#define a0
Definition: regdef.h:46
#define a1
Definition: regdef.h:47
Discrete Time axis x
function y
Definition: D.m:1
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160
#define PIX32(target, true, false)
Definition: mvcdec.c:121

Definition at line 125 of file mvcdec.c.

Typedef Documentation

typedef struct MvcContext MvcContext

Function Documentation

static int decode_mvc1 ( AVCodecContext avctx,
GetByteContext gb,
uint8_t dst_start,
int  width,
int  height,
int  linesize 
)
static

Definition at line 61 of file mvcdec.c.

Referenced by mvc_decode_frame().

static int decode_mvc2 ( AVCodecContext avctx,
GetByteContext gb,
uint8_t dst_start,
int  width,
int  height,
int  linesize,
int  vflip 
)
static

Definition at line 138 of file mvcdec.c.

Referenced by mvc_decode_frame().

static av_cold int mvc_decode_end ( AVCodecContext avctx)
static

Definition at line 251 of file mvcdec.c.

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

Definition at line 225 of file mvcdec.c.

Referenced by mvc_decode_end().

static av_cold int mvc_decode_init ( AVCodecContext avctx)
static

Definition at line 37 of file mvcdec.c.

Referenced by mvc_decode_end().

static void set_4x4_block ( uint8_t dst,
int  linesize,
uint32_t  pixel 
)
static

Definition at line 113 of file mvcdec.c.

Referenced by decode_mvc2().