fame_rate_1param.h

来自「一个很好用的MPEG1/4的开源编码器」· C头文件 代码 · 共 74 行

H
74
字号
/*    libfame - Fast Assembly MPEG Encoder Library    Copyright (C) 2000-2001  Damien Vincent    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Library General Public    License as published by the Free Software Foundation; either    version 2 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Library General Public License for more details.    You should have received a copy of the GNU Library General Public    License along with this library; if not, write to the Free    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*/#ifndef __FAME_RATE_1PARAM_H#define __FAME_RATE_1PARAM_H#include "fame.h"#include "fame_rate.h"#include "fame_monitor.h"#define FAME_RATE_WINDOW_SIZE 5#define FAME_RATE_2PASS_POWER 0.5typedef struct _fame_rate_1param_t_ {  FAME_EXTENDS(fame_rate_t);  void (* FAME_OVERLOADED(init))(struct _fame_rate_t_ *rate,				 int mb_width,				 int mb_height,				 int bitrate,				 char *coding,				 fame_frame_statistics_t *stats_list,				 fame_global_statistics_t *global_stats,				 unsigned int flags);  void (* FAME_OVERLOADED(enter))(struct _fame_rate_t_ *rate,				  fame_yuv_t **ref,				  fame_yuv_t *current,				  unsigned char *shape,				  char coding,				  fame_frame_statistics_t *frame_stats);  void (* FAME_OVERLOADED(leave))(struct _fame_rate_t_ *rate,				  int spent);    int I_bits, P_bits;  int activity;  float global_factor_I;  float global_factor_P;  float I_coeff1;  float old_coeff1[FAME_RATE_WINDOW_SIZE];  float old_I_coeff1[FAME_RATE_WINDOW_SIZE];  int coeff_index;  int coeff_I_index;  int I_number;  int P_number;} fame_rate_1param_t;#define FAME_RATE_1PARAM(x) ((fame_rate_1param_t *) x)extern FAME_CONSTRUCTOR(fame_rate_1param_t);#endif

⌨️ 快捷键说明

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