⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resize.h

📁 由bmp生成mpeg2 的I_frame 数据
💻 H
字号:
/*******************************************************************
                         resize interfaces
 *******************************************************************/
#ifndef RESIZE_H
#define RESIZE_H

#include "frame.h"
#include "config.h"
#include "sequence_header.h"

typedef struct {

	int height;
	int width;

	int in_step;
	int in_offset;
	
	int out_step;
	int out_offset;

	int length;
	int tap;

	int **index;
	int **weight;
	
} COMPONENT_RESIZE_PARAMETER;

typedef struct {
	COMPONENT_RESIZE_PARAMETER l; /* luminance   */
	COMPONENT_RESIZE_PARAMETER c; /* chrominance */
} RESIZE_PARAMETER;

#ifdef __cplusplus
extern "C" {
#endif

#ifndef RESIZE_C
extern FRAME *resize(FRAME *in, RESIZE_PARAMETER *prm);
extern RESIZE_PARAMETER *create_resize_parameter(SEQUENCE_HEADER *seq, M2V_CONFIG *cfg);
extern RESIZE_PARAMETER *create_force_resize_parameter(SEQUENCE_HEADER *seq, int width, int height);
extern void release_resize_parameter(RESIZE_PARAMETER *prm);
#endif

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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