| 1 | /***************************************************************************** |
| 2 | * Copyright (C) 2013 x265 project |
| 3 | * |
| 4 | * Authors: Deepthi Nandakumar <deepthi@multicorewareinc.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA. |
| 19 | * |
| 20 | * This program is also available under a commercial proprietary license. |
| 21 | * For more information, contact us at license @ x265.com. |
| 22 | *****************************************************************************/ |
| 23 | |
| 24 | #ifndef X265_PARAM_H |
| 25 | #define X265_PARAM_H |
| 26 | |
| 27 | namespace x265 { |
| 28 | int x265_check_params(x265_param *param); |
| 29 | int x265_set_globals(x265_param *param); |
| 30 | void x265_print_params(x265_param *param); |
| 31 | void x265_param_apply_fastfirstpass(x265_param *p); |
| 32 | char* x265_param2string(x265_param *param); |
| 33 | int x265_atoi(const char *str, bool& bError); |
| 34 | int parseCpuName(const char *value, bool& bError); |
| 35 | void setParamAspectRatio(x265_param *p, int width, int height); |
| 36 | void getParamAspectRatio(x265_param *p, int& width, int& height); |
| 37 | bool parseLambdaFile(x265_param *param); |
| 38 | |
| 39 | /* this table is kept internal to avoid confusion, since log level indices start at -1 */ |
| 40 | static const char * const logLevelNames[] = { "none", "error", "warning", "info", "debug", "full", 0 }; |
| 41 | |
| 42 | #define MAXPARAMSIZE 2000 |
| 43 | } |
| 44 | |
| 45 | #endif // ifndef X265_PARAM_H |