resize.h
来自「由bmp生成mpeg2 的I_frame 数据」· C头文件 代码 · 共 51 行
H
51 行
/*******************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?