Logo Search packages:      
Sourcecode: blender version File versions

roqvideo.c File Reference


Detailed Description

Id RoQ Video Decoder by Dr. Tim Ferguson For more information about the Id RoQ format, visit: http://www.csse.monash.edu.au/~timf/

Definition in file roqvideo.c.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "common.h"
#include "avcodec.h"
#include "dsputil.h"

Go to the source code of this file.

Classes

struct  roq_cell
struct  roq_qcell
struct  RoqContext

Defines

#define avg2(a, b)   uiclp[(((int)(a)+(int)(b)+1)>>1)]
#define avg4(a, b, c, d)   uiclp[(((int)(a)+(int)(b)+(int)(c)+(int)(d)+2)>>2)]
#define get_byte(in_buffer)   *(in_buffer++)
#define get_long(in_buffer)
#define get_word(in_buffer)
#define RoQ_ID_CCC   0x03
#define RoQ_ID_FCC   0x01
#define RoQ_ID_MOT   0x00
#define RoQ_ID_SLD   0x02
#define RoQ_INFO   0x1001
#define RoQ_QUAD_CODEBOOK   0x1002
#define RoQ_QUAD_VQ   0x1011
#define RoQ_SOUND_MONO   0x1020
#define RoQ_SOUND_STEREO   0x1021

Functions

static void apply_motion_4x4 (RoqContext *ri, int x, int y, unsigned char mv, signed char mean_x, signed char mean_y)
static void apply_motion_8x8 (RoqContext *ri, int x, int y, unsigned char mv, signed char mean_x, signed char mean_y)
static void apply_vector_2x2 (RoqContext *ri, int x, int y, roq_cell *cell)
static void apply_vector_4x4 (RoqContext *ri, int x, int y, roq_cell *cell)
static int roq_decode_end (AVCodecContext *avctx)
static int roq_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int roq_decode_init (AVCodecContext *avctx)
static void roqvideo_decode_frame (RoqContext *ri)

Variables

AVCodec roq_decoder
static int uiclip [1024]
static int * uiclp


Generated by  Doxygen 1.6.0   Back to index