[svn] / branches / dev-api-3 / xvidcore / src / bitstream / mbcoding.h Repository:
ViewVC logotype

View of /branches/dev-api-3/xvidcore/src/bitstream/mbcoding.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 530 - (download) (annotate)
Mon Sep 23 20:36:02 2002 UTC (21 years, 6 months ago) by chl
File size: 1075 byte(s)
sysKin Motion Estimation and minor changes to support it.
I hope it doesn't break too much...
#ifndef _MB_CODING_H_
#define _MB_CODING_H_

#include "../portab.h"
#include "../global.h"
#include "bitstream.h"

void init_vlc_tables(void);

int check_resync_marker(Bitstream * bs, int addbits);

int get_mcbpc_intra(Bitstream * bs);
int get_mcbpc_inter(Bitstream * bs);
int get_cbpy(Bitstream * bs,
			 int intra);
int get_mv(Bitstream * bs,
		   int fcode);

int get_dc_dif(Bitstream * bs,
			   uint32_t dc_size);
int get_dc_size_lum(Bitstream * bs);
int get_dc_size_chrom(Bitstream * bs);

static int get_coeff(Bitstream * bs,
			  int *run,
			  int *last,
			  int intra,
			  int short_video_header);

void get_intra_block(Bitstream * bs,
					 int16_t * block,
					 int direction,
					 int coeff);
void get_inter_block(Bitstream * bs,
					 int16_t * block);


void MBCodingBVOP(const MACROBLOCK * mb,
				  const int16_t qcoeff[6 * 64],
				  const int32_t fcode,
				  const int32_t bcode,
				  Bitstream * bs,
				  Statistics * pStat);


static __inline void
MBSkip(Bitstream * bs)
{
	BitstreamPutBit(bs, 1);	// not coded
}

#endif							/* _MB_CODING_H_ */

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4