* ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
*
* Copyright (C) 2002 the xine project
- * Copyright (C) 2002 the ffmpeg project
+ * Copyright (C) 2002 The FFmpeg project
*
* SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
*
#include "mathops.h"
#include "svq1.h"
-#undef NDEBUG
-#include <assert.h>
-
static VLC svq1_block_type;
static VLC svq1_motion_component;
static VLC svq1_intra_multistage[6];
n4 = mean + (mean >> 31) << 16 | (mean & 0xFFFF);
static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels,
- int pitch)
+ ptrdiff_t pitch)
{
uint32_t bit_cache;
uint8_t *list[63];
}
static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels,
- int pitch)
+ ptrdiff_t pitch)
{
uint32_t bit_cache;
uint8_t *list[63];
}
static void svq1_skip_block(uint8_t *current, uint8_t *previous,
- int pitch, int x, int y)
+ ptrdiff_t pitch, int x, int y)
{
uint8_t *src;
uint8_t *dst;
static int svq1_motion_inter_block(HpelDSPContext *hdsp, GetBitContext *bitbuf,
uint8_t *current, uint8_t *previous,
- int pitch, svq1_pmv *motion, int x, int y,
+ ptrdiff_t pitch, svq1_pmv *motion, int x, int y,
int width, int height)
{
uint8_t *src;
static int svq1_motion_inter_4v_block(HpelDSPContext *hdsp, GetBitContext *bitbuf,
uint8_t *current, uint8_t *previous,
- int pitch, svq1_pmv *motion, int x, int y,
+ ptrdiff_t pitch, svq1_pmv *motion, int x, int y,
int width, int height)
{
uint8_t *src;
static int svq1_decode_delta_block(AVCodecContext *avctx, HpelDSPContext *hdsp,
GetBitContext *bitbuf,
uint8_t *current, uint8_t *previous,
- int pitch, svq1_pmv *motion, int x, int y,
+ ptrdiff_t pitch, svq1_pmv *motion, int x, int y,
int width, int height)
{
uint32_t block_type;