enc_image.h

来自「基于Linux的ffmepg decoder」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef _IMAGE_H_
#define _IMAGE_H_

#include "portab.h"
#include "ftmcp100.h"
#include "xvid.h"

typedef struct
{
	uint8_t *y; // the physical address
	uint8_t *u; // the physical address
	uint8_t *v; // the physical address
	uint8_t *y_virt; // the virtual address
	uint8_t *u_virt; // the virtual address
	uint8_t *v_virt; // the virtual address
}
IMAGE;

int32_t enc_image_create(IMAGE * image,
					 uint32_t mbwidth,
					 uint32_t mbheight,FTMCP100_CODEC *pCodec);
void enc_image_destroy(IMAGE * image,
				   uint32_t mbwidth,FTMCP100_CODEC *pCodec);

void enc_image_adjust(IMAGE * image,
					 uint32_t mbwidth,
					 uint32_t mbheight,unsigned char *addr);

void enc_image_swap(IMAGE * image1,
				IMAGE * image2);

#endif							/* _IMAGE_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?