hvirtual/quicktime/ffmpeg/libavcodec/smc.c File Reference

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

Include dependency graph for smc.c:

Go to the source code of this file.

Data Structures

struct  SmcContext

Defines

#define CPAIR   2
#define CQUAD   4
#define COCTET   8
#define COLORS_PER_TABLE   256
#define GET_BLOCK_COUNT()   (opcode & 0x10) ? (1 + s->buf[stream_ptr++]) : 1 + (opcode & 0x0F);
#define ADVANCE_BLOCK()

Functions

static void smc_decode_stream (SmcContext *s)
static int smc_decode_init (AVCodecContext *avctx)
static int smc_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int smc_decode_end (AVCodecContext *avctx)

Variables

AVCodec smc_decoder


Detailed Description

QT SMC Video Decoder by Mike Melanson (melanson@pcisys.net) For more information about the SMC format, visit: http://www.pcisys.net/~melanson/codecs/

The SMC decoder outputs PAL8 colorspace data.

Definition in file smc.c.


Define Documentation

 
#define ADVANCE_BLOCK (  ) 

Value:

{ \
    pixel_ptr += 4; \
    if (pixel_ptr >= width) \
    { \
        pixel_ptr = 0; \
        row_ptr += stride * 4; \
    } \
    total_blocks--; \
    if (total_blocks < 0) \
    { \
        av_log(s->avctx, AV_LOG_INFO, "warning: block counter just went negative (this should not happen)\n"); \
        return; \
    } \
}

Definition at line 64 of file smc.c.

#define COCTET   8

Definition at line 41 of file smc.c.

Referenced by smc_decode_stream().

#define COLORS_PER_TABLE   256

Definition at line 43 of file smc.c.

Referenced by smc_decode_stream().

#define CPAIR   2

Definition at line 39 of file smc.c.

Referenced by smc_decode_stream().

#define CQUAD   4

Definition at line 40 of file smc.c.

Referenced by smc_decode_stream().

 
#define GET_BLOCK_COUNT (  )     (opcode & 0x10) ? (1 + s->buf[stream_ptr++]) : 1 + (opcode & 0x0F);

Definition at line 61 of file smc.c.

Referenced by smc_decode_stream().


Function Documentation

static int smc_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 471 of file smc.c.

References SmcContext::frame, AVCodecContext::priv_data, AVCodecContext::release_buffer, and s.

static int smc_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

static int smc_decode_init ( AVCodecContext avctx  )  [static]

static void smc_decode_stream ( SmcContext s  )  [static]


Variable Documentation

Initial value:

Definition at line 481 of file smc.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:06:06 2008 for Cinelerra by  doxygen 1.5.5