image.h

来自「经典的MP4编解码核心库」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef _IMAGE_H_
#define _IMAGE_H_

#include "../global.h"
#include "colorspace.h"

#define EDGE_SIZE  32

void select_optcode_image(uint32_t cpu_flags);

int32_t VOP_create(VOP * image, Encoder * const pEnc);
void VOP_release(Encoder * const pEnc);

int32_t VOP_dec_create(VOP * image, Decoder * const pDec);
void VOP_dec_release(Decoder * const pEnc);

void vop_swap(VOP * image1, VOP * image2);
void vop_copy(VOP *image1, VOP * image2, uint32_t ext_width, uint32_t height);
void vop_edges_expand(VOP * image, uint32_t ext_width, uint32_t ext_height, uint32_t width, uint32_t height, uint32_t interlacing);

void vop_interpolate(const VOP * ref, 
					   VOP * refh, VOP * refv,	VOP * refhv, 
					   uint32_t ext_width, uint32_t ext_height, uint32_t rounding);

int vop_input(VOP * image, uint32_t width, int height, uint32_t ext_width,
			uint8_t * src, int csp);

int vop_output(VOP * image, uint32_t width, int height, uint32_t ext_width,
			uint8_t * dst, uint32_t dst_stride, int csp);

void de_interlacing(VOP *vop, int width, int height, int stride);

#endif /* _IMAGE_H_ */

⌨️ 快捷键说明

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