[svn] / trunk / xvidcore / src / image / image.h Repository:
ViewVC logotype

View of /trunk/xvidcore/src/image/image.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69 - (download) (annotate)
Tue Mar 26 11:16:08 2002 UTC (22 years ago) by h
File size: 1086 byte(s)
interlacing support - slow (MBDecideFieldDCT()), buggy (p-frames), incomplete (field motion prediction)
#ifndef _IMAGE_H_
#define _IMAGE_H_

#include "../portab.h"
#include "colorspace.h"

#define EDGE_SIZE  32


typedef struct
{
	uint8_t * y;
	uint8_t * u;
	uint8_t * v;
} IMAGE;

void init_image(uint32_t cpu_flags);

int32_t image_create(IMAGE * image, uint32_t edged_width, uint32_t edged_height);
void image_destroy(IMAGE * image, uint32_t edged_width, uint32_t edged_height);

void image_swap(IMAGE * image1, IMAGE * image2);
void image_copy(IMAGE *image1, IMAGE * image2, uint32_t edged_width, uint32_t height);
void image_setedges(IMAGE * image, uint32_t edged_width, uint32_t edged_height, uint32_t width, uint32_t height, uint32_t interlacing);
void image_interpolate(const IMAGE * refn, 
					   IMAGE * refh, IMAGE * refv,	IMAGE * refhv, 
					   uint32_t edged_width, uint32_t edged_height, uint32_t rounding);

int image_input(IMAGE * image, uint32_t width, int height, uint32_t edged_width,
			uint8_t * src, int csp);

int image_output(IMAGE * image, uint32_t width, int height, uint32_t edged_width,
			uint8_t * dst, uint32_t dst_stride, int csp);

#endif /* _IMAGE_H_ */

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