hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
588 values
lang
stringclasses
305 values
max_stars_repo_path
stringlengths
3
363
max_stars_repo_name
stringlengths
5
118
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringdate
2015-01-01 00:00:35
2022-03-31 23:43:49
max_stars_repo_stars_event_max_datetime
stringdate
2015-01-01 12:37:38
2022-03-31 23:59:52
max_issues_repo_path
stringlengths
3
363
max_issues_repo_name
stringlengths
5
118
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
float64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
363
max_forks_repo_name
stringlengths
5
135
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringdate
2015-01-01 00:01:02
2022-03-31 23:27:27
max_forks_repo_forks_event_max_datetime
stringdate
2015-01-03 08:55:07
2022-03-31 23:59:24
content
stringlengths
5
1.05M
avg_line_length
float64
1.13
1.04M
max_line_length
int64
1
1.05M
alphanum_fraction
float64
0
1
84c3b55c1cb5d150adad4072f4ba6ac38f95070a
7,851
c
C
php_apc.c
krakjoe/apcu-bc
144a3347e1ca6849529bd577f4889cdb028e16f3
[ "PHP-3.01" ]
35
2015-12-04T10:45:05.000Z
2020-11-09T23:24:12.000Z
php_apc.c
krakjoe/apcu-bc
144a3347e1ca6849529bd577f4889cdb028e16f3
[ "PHP-3.01" ]
31
2015-12-04T14:56:27.000Z
2021-03-15T06:28:08.000Z
php_apc.c
krakjoe/apcu-bc
144a3347e1ca6849529bd577f4889cdb028e16f3
[ "PHP-3.01" ]
18
2015-12-04T23:56:16.000Z
2022-01-14T08:23:02.000Z
/* +----------------------------------------------------------------------+ | APC | +----------------------------------------------------------------------+ | Copyright (c) 2015-2019 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: krakjoe | +----------------------------------------------------------------------+ */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "php.h" #include "zend.h" #include "zend_API.h" #include "zend_compile.h" #include "zend_hash.h" #include "zend_extensions.h" #include "zend_interfaces.h" #include "SAPI.h" #include "php_apc.h" #include "ext/standard/info.h" #include "ext/apcu/php_apc.h" #include "ext/apcu/apc_arginfo.h" #include "ext/apcu/apc_iterator.h" #ifdef HAVE_SYS_FILE_H #include <sys/file.h> #endif zend_class_entry *apc_bc_iterator_ce; zend_object_handlers apc_bc_iterator_handlers; /* {{{ arginfo */ ZEND_BEGIN_ARG_INFO_EX(arginfo_apcu_bc_cache_info, 0, 0, 0) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, limited) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_apcu_bc_clear_cache, 0, 0, 0) ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() /* }}} */ /* {{{ PHP_FUNCTION declarations */ PHP_FUNCTION(apc_cache_info); PHP_FUNCTION(apc_clear_cache); /* }}} */ /* {{{ PHP_MINFO_FUNCTION(apc) */ static PHP_MINFO_FUNCTION(apc) { php_info_print_table_start(); php_info_print_table_row(2, "APC Compatibility", PHP_APCU_BC_VERSION); php_info_print_table_end(); } /* }}} */ static int apc_bc_iterator_init(int module_number); /* {{{ PHP_RINIT_FUNCTION(apc) */ static PHP_RINIT_FUNCTION(apc) { #if defined(ZTS) && defined(COMPILE_DL_APC) ZEND_TSRMLS_CACHE_UPDATE(); #endif return SUCCESS; } /* }}} */ /* {{{ proto void apc_clear_cache(string cache) */ PHP_FUNCTION(apc_clear_cache) { zend_string *name = NULL; zval proxy; if (zend_parse_parameters(ZEND_NUM_ARGS(), "|S", &name) != SUCCESS) { return; } if (name && !strcasecmp(ZSTR_VAL(name), "user")) { ZVAL_STR(&proxy, zend_string_init(ZEND_STRL("apcu_clear_cache"), 0)); call_user_function(EG(function_table), NULL, &proxy, return_value, 0, NULL); zval_ptr_dtor(&proxy); } } /* }}} */ /* {{{ proto array apc_cache_info(string cache [, bool limited = false]) */ PHP_FUNCTION(apc_cache_info) { zend_string *name = NULL; zval param, *limited = &param, proxy; ZVAL_FALSE(&param); if (zend_parse_parameters(ZEND_NUM_ARGS(), "|Sz", &name, &limited) != SUCCESS) { return; } if (name && !strcasecmp(ZSTR_VAL(name), "user")) { ZVAL_STR(&proxy, zend_string_init(ZEND_STRL("apcu_cache_info"), 0)); call_user_function(EG(function_table), NULL, &proxy, return_value, 1, limited); zval_ptr_dtor(&proxy); } } /* }}} */ static void php_apcu_bc_inc_dec(INTERNAL_FUNCTION_PARAMETERS, zend_string *funcname) /* {{{ */ { zend_string *key; zend_long step = 1; zval proxy, params[3], *success = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lz", &key, &step, &success) == FAILURE) { return; } /* Check if key exists to keep old APC behavior */ ZVAL_STR(&proxy, zend_string_init(ZEND_STRL("apcu_exists"), 0)); ZVAL_STR(&params[0], key); call_user_function(EG(function_table), NULL, &proxy, return_value, 1, params); if (Z_TYPE_INFO_P(return_value) != IS_TRUE) { if (success) { ZVAL_DEREF(success); zval_ptr_dtor(success); ZVAL_FALSE(success); } RETURN_FALSE; } /* inc/dec the key */ ZVAL_STR(&proxy, funcname); ZVAL_STR(&params[0], key); ZVAL_LONG(&params[1], step); if (success) { ZVAL_COPY_VALUE(&params[2], success); } call_user_function(EG(function_table), NULL, &proxy, return_value, (success ? 3 : 2), params); } /* }}} */ /* {{{ proto long apc_inc(string key [, long step [, bool& success]]) */ PHP_FUNCTION(apc_inc) { php_apcu_bc_inc_dec(INTERNAL_FUNCTION_PARAM_PASSTHRU, zend_string_init(ZEND_STRL("apcu_inc"), 0)); } /* }}} */ /* {{{ proto long apc_dec(string key [, long step [, bool &success]]) */ PHP_FUNCTION(apc_dec) { php_apcu_bc_inc_dec(INTERNAL_FUNCTION_PARAM_PASSTHRU, zend_string_init(ZEND_STRL("apcu_dec"), 0)); } /* }}} */ /* {{{ apc_functions[] */ zend_function_entry apc_functions[] = { PHP_FE(apc_cache_info, arginfo_apcu_bc_cache_info) PHP_FE(apc_clear_cache, arginfo_apcu_bc_clear_cache) PHP_FALIAS(apc_store, apcu_store, arginfo_apcu_store) PHP_FALIAS(apc_fetch, apcu_fetch, arginfo_apcu_fetch) PHP_FALIAS(apc_enabled, apcu_enabled, arginfo_apcu_enabled) PHP_FALIAS(apc_delete, apcu_delete, arginfo_apcu_delete) PHP_FALIAS(apc_add, apcu_add, arginfo_apcu_store) PHP_FALIAS(apc_sma_info, apcu_sma_info, arginfo_apcu_sma_info) PHP_FE(apc_inc, arginfo_apcu_inc) PHP_FE(apc_dec, arginfo_apcu_inc) PHP_FALIAS(apc_cas, apcu_cas, arginfo_apcu_cas) PHP_FALIAS(apc_exists, apcu_exists, arginfo_apcu_exists) PHP_FE_END }; /* }}} */ /* {{{ arginfo */ ZEND_BEGIN_ARG_INFO_EX(arginfo_apc_iterator___construct, 0, 0, 1) ZEND_ARG_INFO(0, ignored) ZEND_ARG_INFO(0, search) ZEND_ARG_INFO(0, format) ZEND_ARG_INFO(0, chunk_size) ZEND_ARG_INFO(0, list) ZEND_END_ARG_INFO() /* }}} */ /* {{{ proto object APCIterator::__construct(cache, [ mixed search [, long format [, long chunk_size [, long list ]]]]) */ PHP_METHOD(apc_bc_iterator, __construct) { apc_iterator_t *iterator = apc_iterator_fetch(getThis()); zend_long format = APC_ITER_ALL; zend_long chunk_size=0; zval *search = NULL; zend_long list = APC_LIST_ACTIVE; zend_string *cache; if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|zlll", &cache, &search, &format, &chunk_size, &list) == FAILURE) { return; } if (apc_is_enabled()) { apc_iterator_obj_init(iterator, search, format, chunk_size, list); } } /* }}} */ /* {{{ apc_iterator_functions */ static zend_function_entry apc_iterator_functions[] = { PHP_ME(apc_bc_iterator, __construct, arginfo_apc_iterator___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_FE_END }; /* }}} */ /* {{{ apc_bc_iterator_init */ static int apc_bc_iterator_init(int module_number) { zend_class_entry ce; INIT_CLASS_ENTRY(ce, "APCIterator", apc_iterator_functions); apc_bc_iterator_ce = zend_register_internal_class_ex(&ce, apc_iterator_get_ce()); return SUCCESS; } /* }}} */ /* {{{ PHP_MINIT_FUNCTION(apc) */ static PHP_MINIT_FUNCTION(apc) { if (apc_iterator_get_ce()) { apc_bc_iterator_init(module_number); } return SUCCESS; } static const zend_module_dep apc_deps[] = { ZEND_MOD_REQUIRED("apcu") ZEND_MOD_END }; /* {{{ module definition structure */ zend_module_entry apc_module_entry = { STANDARD_MODULE_HEADER_EX, NULL, apc_deps, PHP_APC_EXTNAME, apc_functions, PHP_MINIT(apc), NULL, PHP_RINIT(apc), NULL, PHP_MINFO(apc), PHP_APCU_VERSION, STANDARD_MODULE_PROPERTIES }; /* }}} */ #ifdef COMPILE_DL_APC ZEND_GET_MODULE(apc) #ifdef ZTS ZEND_TSRMLS_CACHE_DEFINE(); #endif #endif /* }}} */ /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim>600: expandtab sw=4 ts=4 sts=4 fdm=marker * vim<600: expandtab sw=4 ts=4 sts=4 */
27.939502
122
0.65584
fe3edfc63ac068544ce7a266a3efe866dc46f8e7
398
h
C
PrivateFrameworks/AVConference/AVCRateControllerDelegate-Protocol.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
17
2018-11-13T04:02:58.000Z
2022-01-20T09:27:13.000Z
PrivateFrameworks/AVConference/AVCRateControllerDelegate-Protocol.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
3
2018-04-06T02:02:27.000Z
2018-10-02T01:12:10.000Z
PrivateFrameworks/AVConference/AVCRateControllerDelegate-Protocol.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
1
2018-09-28T13:54:23.000Z
2018-09-28T13:54:23.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // @class NSString; @protocol AVCRateControllerDelegate - (void)rateController:(void *)arg1 targetBitrateDidChange:(unsigned int)arg2 rateChangeCounter:(unsigned int)arg3; @optional - (int)learntBitrateForSegment:(NSString *)arg1 defaultValue:(int)arg2; @end
24.875
115
0.738693
b98ec808c6a2c52bec99609d9388fde11c7b7f20
3,212
h
C
wxFormsBuilder/form_sprite_view.h
smaslan/spellcross-map-edit
577ce6f23dff38922f7484fe2ab2f9b67ddafe05
[ "MIT" ]
null
null
null
wxFormsBuilder/form_sprite_view.h
smaslan/spellcross-map-edit
577ce6f23dff38922f7484fe2ab2f9b67ddafe05
[ "MIT" ]
null
null
null
wxFormsBuilder/form_sprite_view.h
smaslan/spellcross-map-edit
577ce6f23dff38922f7484fe2ab2f9b67ddafe05
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////////////////////// // C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #pragma once #include <wx/artprov.h> #include <wx/xrc/xmlres.h> #include <wx/string.h> #include <wx/bitmap.h> #include <wx/image.h> #include <wx/icon.h> #include <wx/menu.h> #include <wx/gdicmn.h> #include <wx/font.h> #include <wx/colour.h> #include <wx/settings.h> #include <wx/stattext.h> #include <wx/listbox.h> #include <wx/sizer.h> #include <wx/panel.h> #include <wx/statbox.h> #include <wx/slider.h> #include <wx/checkbox.h> #include <wx/statline.h> #include <wx/choice.h> #include <wx/frame.h> /////////////////////////////////////////////////////////////////////////// #define wxID_EDIT_TILE_CONTEXT_AUTO 1000 #define wxID_LBOX_SPRITES 1001 #define wxID_SLIDE_GAMMA 1002 #define wxID_CB_ZOOM 1003 #define wxID_LBOX_NEIGHBOR 1004 #define wxID_CH_SIDE 1005 #define wxID_CB_IS_GRASS 1006 #define wxID_CB_IS_DGRASS 1007 #define wxID_CB_IS_BLOOD 1008 #define wxID_CB_IS_MUD 1009 #define wxID_CB_IS_SWAMP 1010 #define wxID_CB_IS_ASH 1011 #define wxID_CB_IS_HIGH_LAND 1012 #define wxID_CB_IS_ASH_ROAD 1013 #define wxID_CB_IS_BROKE_ASH_ROAD 1014 #define wxID_CB_IS_DIRT_ROAD 1015 #define wxID_CB_IS_MUD_PATH 1016 #define wxID_CB_IS_CLIFF 1017 #define wxID_CB_IS_WATER 1018 #define wxID_CB_IS_WBRIDGE 1019 #define wxID_CB_IS_BRIDGE 1020 #define wxID_CB_IS_FORD 1021 #define wxID_CHB_Q1_CLASS 1022 #define wxID_CHB_Q2_CLASS 1023 #define wxID_CHB_Q3_CLASS 1024 #define wxID_CHB_Q4_CLASS 1025 /////////////////////////////////////////////////////////////////////////////// /// Class FormSprite /////////////////////////////////////////////////////////////////////////////// class FormSprite : public wxFrame { private: protected: wxMenuBar* mMenu; wxMenu* mnuFile; wxMenu* mnuTerr; wxMenu* mnuEdit; wxStaticText* txtSpriteList; wxListBox* lboxSprites; wxPanel* canvas; wxStaticText* txtGamma; wxSlider* slideGamma; wxCheckBox* cbZoom; wxStaticText* m_staticText2; wxListBox* lboxNeighbor; wxStaticLine* m_staticline1; wxStaticText* m_staticText3; wxChoice* chbSide; wxCheckBox* cbIsGrass; wxCheckBox* cbIsDarkGrass; wxCheckBox* cbIsBlood; wxCheckBox* cbIsMud; wxCheckBox* cbIsSwamp; wxCheckBox* cbIsAsh; wxCheckBox* cbIsHigh; wxCheckBox* cbIsRoad; wxCheckBox* cbIsBrokeAshroad; wxCheckBox* cbIsDirtRoad; wxCheckBox* cbIsMudPath; wxCheckBox* cbIsCliff; wxCheckBox* cbIsWater; wxCheckBox* cbIsWBridge; wxCheckBox* cbIsBridge; wxCheckBox* cbIsFord; wxStaticText* m_staticText5; wxChoice* chbQ1class; wxStaticText* m_staticText6; wxChoice* chbQ2class; wxStaticText* m_staticText7; wxChoice* chbQ3class; wxStaticText* m_staticText8; wxChoice* chbQ4class; public: FormSprite( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Sprite viewer"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 1001,508 ), long style = wxDEFAULT_FRAME_STYLE|wxSTAY_ON_TOP|wxTAB_TRAVERSAL ); ~FormSprite(); };
27.452991
252
0.681818
b352556f6b3164ec24b2cddc52a7fd7be59ab596
125,370
h
C
mplayer/help/help_mp-es.h
qinjidong/EasyMPlayer
76a8d052dd7a2d5f1916fdc32b07088d127ee5da
[ "Apache-2.0" ]
null
null
null
mplayer/help/help_mp-es.h
qinjidong/EasyMPlayer
76a8d052dd7a2d5f1916fdc32b07088d127ee5da
[ "Apache-2.0" ]
null
null
null
mplayer/help/help_mp-es.h
qinjidong/EasyMPlayer
76a8d052dd7a2d5f1916fdc32b07088d127ee5da
[ "Apache-2.0" ]
1
2021-04-15T18:27:37.000Z
2021-04-15T18:27:37.000Z
// Spanish translation by // // Diego Biurrun // Reynaldo H. Verdejo Pinochet // Juan A. Javierre <jjavierre at telefonica.net> // Original work done by: // // Leandro Lucarella <leandro at lucarella.com.ar>, // Jesús Climent <jesus.climent at hispalinux.es>, // Sefanja Ruijsenaars <sefanja at gmx.net>, // Andoni Zubimendi <andoni at lpsat.net> // // In sync with r34785 // FIXME: en revisión desde 11.04.2012 // ========================= MPlayer help =========================== #ifdef CONFIG_VCD #define MSGTR_HelpVCD " vcd://<numpista> Reproducir pista de (S)VCD (Super Video CD) (acceso directo al dispositivo, no montado)\n" #else #define MSGTR_HelpVCD #endif #ifdef CONFIG_DVDREAD #define MSGTR_HelpDVD " dvd://<numtítulo> Reproducir título de DVD desde el dispositivo en vez de un fichero regular.\n" #else #define MSGTR_HelpDVD #endif #define MSGTR_Help \ "Uso: mplayer [opciones] [[url|ruta/]nombre de fichero\n"\ "\n"\ "Opciones básicas: (En 'man mplayer' está la lista completa)\n"\ " -vo <drv> Elegir controlador del dispositivo de salida de vídeo ('-vo help' para obtener una lista).\n"\ " -ao <drv> Elegir controlador y dispositivo de salida de audio ('-ao help' para obtener una lista).\n"\ MSGTR_HelpVCD \ MSGTR_HelpDVD \ " -alang/-slang Elegir idioma de audio/subtítulos del DVD (código de país de dos caracteres. p. ej. 'es')\n"\ " -ss <tiempo> Saltar a una posición dada (en segundos u hh:mm:ss)\n"\ " -nosound No reproducir sonido\n"\ " -fs Reproducir a pantalla completa (o -vm, -zoom, ver página man)\n"\ " -x <x> -y <y> Establecer resolución de pantalla (para usar con -vm o -zoom)\n"\ " -sub <fichero> Indicar el fichero de subtítulos a usar (vea también -subfps, -subdelay)\n"\ " -playlist <fichero> Indicar el fichero de lista de reproducción\n"\ " -vid x -aid y Elegir streams de vídeo (x) y audio (y) a reproducir\n"\ " -fps x -srate y Cambia la tasa de refresco/muestreo de vídeo (x fps) y audio (y Hz)\n"\ " -pp <calidad> Activa filtro de postproceso (más detalles en página man)\n"\ " -framedrop Permite descartar cuadros (para máquinas lentas)\n"\ "\n"\ "Teclas básicas: ('man mplayer' da la lista completa, véase también input.conf)\n"\ " <- o -> Avanza/retrocede 10 segundos\n"\ " arriba o abajo Avanza/retrocede 1 minuto\n"\ " RePág o AvPág Avanza/retrocede 10 minutos\n"\ " < o > Avanza/retrocede en la lista de reproducción\n"\ " p o ESPACIO Pausa (pulse cualquier tecla para reanudar)\n"\ " q o ESC Detener la reproducción y salir del programa\n"\ " + o - Ajusta retraso de audio +/- 0,1 segundos\n"\ " o Cicla modo OSD: nada / búsqueda / búsqueda + tiempo\n"\ " * o / Aumenta o disminuye el volumen PCM\n"\ " z o x Ajusta retraso del subtítulo +/- 0,1 segundo\n"\ " r o t Ajusta posición del subtítulo arriba/abajo, véase también -vf expand\n"\ "\n"\ " * * * HAY MÁS DETALLES EN LA PÁGINA MAN, OPCIONES (AVANZADAS) Y TECLAS DE CONTROL * * *\n"\ "\n" static const char help_text[] = MSGTR_Help; // ========================= MPlayer messages =========================== // mplayer.c #define MSGTR_Exiting "\nSaliendo...\n" #define MSGTR_ExitingHow "\nSaliendo... (%s)\n" #define MSGTR_Exit_quit "Salida." #define MSGTR_Exit_eof "Fin de archivo." #define MSGTR_Exit_error "Error fatal." #define MSGTR_IntBySignal "\nMPlayer interrumpido por señal %d en el módulo: %s\n" #define MSGTR_NoHomeDir "No puedo encontrar el directorio HOME.\n" #define MSGTR_GetpathProblem "Problema en get_path(\"config\")\n" #define MSGTR_CreatingCfgFile "Creando archivo de configuración: %s\n" #define MSGTR_CantLoadFont "No puedo cargar tipo bitmap '%s'.\n" #define MSGTR_CantLoadSub "No puedo cargar los subtítulos '%s'.\n" #define MSGTR_DumpSelectedStreamMissing "dump: FATAL: No encuentro el stream elegido.\n" #define MSGTR_CantOpenDumpfile "No puedo abrir el archivo de volcado.\n" #define MSGTR_CoreDumped "Volcado de núcleo ;)\n" #define MSGTR_DumpBytesWrittenPercent "dump: %"PRIu64" bytes escritos (~%.1f%%)\r" #define MSGTR_DumpBytesWritten "dump: %"PRIu64" bytes escritos\r" #define MSGTR_DumpBytesWrittenTo "dump: %"PRIu64" bytes escritos en '%s'.\n" #define MSGTR_FPSnotspecified "No se indican las FPS en la cabecera (o no son válidas). Usa la opción -fps.\n" #define MSGTR_TryForceAudioFmtStr "Tratando de forzar la familia de códecs de audio %s...\n" #define MSGTR_CantFindAudioCodec "No encontré un códec para el formato de audio 0x%X.\n" #define MSGTR_TryForceVideoFmtStr "Tratando de forzar la familia de códecs de video %s...\n" #define MSGTR_CantFindVideoCodec "No encontré un códec que coincida con -vo y el formato de vídeo 0x%X elegido.\n" #define MSGTR_CannotInitVO "FATAL: No puedo iniciar el controlador de vídeo.\n" #define MSGTR_CannotInitAO "No puedo abrir/iniciar el dispositivo de audio -> no hay sonido.\n" #define MSGTR_StartPlaying "Comenzando reproducción...\n" #define MSGTR_SystemTooSlow "\n\n"\ " **************************************************************\n"\ " **** El sistema es demasiado lento para reproducir esto ****\n"\ " **************************************************************\n"\ "Posibles razones, problemas, soluciones:\n"\ "- Más común: controlador de _audio_ con errores o roto.\n"\ " - Intenta con -ao sdl o usa la emulación OSS de ALSA.\n"\ " - Prueba con diferentes valores de -autosync, 30 es un buen comienzo.\n"\ "- Salida de vídeo lenta\n"\ " - Prueba otro controlador -vo (con -vo help verás una lista) o intenta\n"\ " arrancar con la opción -framedrop\n"\ "- CPU lenta\n"\ " - No intentes reproducir DVD/DivX grandes en una CPU lenta. Intenta algo\n"\ " como -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.\n"\ "- Archivo roto\n"\ " - Prueba combinaciones de -nobps -ni -forceidx -mc 0.\n"\ "- Medios lentos (unidad NFS/SMB, DVD, VCD, etc)\n"\ " - Intenta con -cache 8192.\n"\ "- ¿Estás usando -cache para reproducir archivos AVI no entrelazados?\n"\ " - Intenta -nocache.\n"\ "En DOCS/HTML/es/video.html hay consejos de ajuste/mejora de la velocidad.\n"\ "Si nada de eso sirve de ayuda, lee DOCS/HTML/es/bugreports.html\n\n" #define MSGTR_NoGui "MPlayer se compiló SIN SOPORTE de GUI (interfaz gráfica).\n" #define MSGTR_GuiNeedsX "La interfaz gráfica de MPlayer necesita X11.\n" #define MSGTR_Playing "\nReproduciendo %s.\n" #define MSGTR_NoSound "Audio: sin sonido\n" #define MSGTR_FPSforced "FPS forzado a %5.3f (ftime: %5.3f).\n" #define MSGTR_AvailableVideoOutputDrivers "Controladores de salida de vídeo disponibles:\n" #define MSGTR_AvailableAudioOutputDrivers "Controladores de salida de audio disponibles:\n" #define MSGTR_AvailableAudioCodecs "Códecs de audio disponibles:\n" #define MSGTR_AvailableVideoCodecs "Códecs de vídeo disponibles:\n" #define MSGTR_AvailableAudioFm "Familias/controladores de códecs de audio (compilados en MPlayer) disponibles:\n" #define MSGTR_AvailableVideoFm "Familias/controladores de códecs de vídeo (compilados en MPlayer) disponibles:\n" #define MSGTR_AvailableFsType "Modos disponibles de cambio a capa de pantalla completa:\n" #define MSGTR_CannotReadVideoProperties "Vídeo: no puedo leer las propiedades.\n" #define MSGTR_NoStreamFound "No he encontrado el stream.\n" #define MSGTR_ErrorInitializingVODevice "Error al abrir/iniciar el dispositivo de salida de vídeo (-vo).\n" #define MSGTR_ForcedVideoCodec "Códec de vídeo forzado: %s\n" #define MSGTR_ForcedAudioCodec "Códec de audio forzado: %s\n" #define MSGTR_Video_NoVideo "Vídeo: no hay vídeo\n" #define MSGTR_NotInitializeVOPorVO "\nFATAL: No he podido iniciar los filtros (-vf) o la salida de vídeo (-vo).\n" #define MSGTR_Paused " ===== PAUSA =====" // no más de 23 caracteres (línea de estado en ficheros de audio) #define MSGTR_PlaylistLoadUnable "\nNo he podido cargar la lista de reproducción %s.\n" #define MSGTR_Exit_SIGILL_RTCpuSel \ "- MPlayer se ha colgado por una 'Instrucción Ilegal'.\n"\ " Puede ser debido a un defecto de código en la nueva rutina de detección de CPU...\n"\ " Por favor lee DOCS/HTML/es/bugreports.html.\n" #define MSGTR_Exit_SIGILL \ "- MPlayer se ha colgado por una 'Instrucción Ilegal'.\n"\ " Normalmente, ocurre al ejecutar el programa en una CPU diferente de\n"\ " la usada para compilarlo o para la cual se optimizó.\n"\ " Sería bueno que lo comprobases...\n" #define MSGTR_Exit_SIGSEGV_SIGFPE \ "- MPlayer se ha colgado por mal uso de CPU/FPU/RAM.\n"\ " Recompila MPlayer con la opción --enable-debug y haz un backtrace y \n"\ " desensamblado con'gdb'. En DOCS/HTML/es/bugreports_what.html#bugreports_crash\n"\ " hay más detalles.\n" #define MSGTR_Exit_SIGCRASH \ "- MPlayer se ha colgado. Esto no debería ocurrir.\n"\ " Puede ser un defecto en el código de MPlayer, en tus controladores\n"\ " _o_ en tu versión de gcc. Si crees que es culpa de MPlayer, por\n"\ " favor lee DOCS/HTML/es/bugreports.html y sigue las instrucciones que allí\n"\ " se encuentran. No podemos ayudarte a menos que nos facilites esa\n"\ " información al comunicarnos un posible defecto.\n" #define MSGTR_LoadingConfig "Cargando configuración '%s'\n" #define MSGTR_LoadingProtocolProfile "Cargando el perfil relacionado con protocolo '%s'\n" #define MSGTR_LoadingExtensionProfile "Cargando el perfil relacionado con extensión '%s'\n" #define MSGTR_AddedSubtitleFile "SUB: añadí el fichero de subtítulos (%d): %s\n" #define MSGTR_RemovedSubtitleFile "SUB: eliminé el fichero de subtítulos (%d): %s\n" #define MSGTR_RTCDeviceNotOpenable "No pude abrir %s: %s (el usuario tiene que poder leerlo)\n" #define MSGTR_LinuxRTCInitErrorIrqpSet "Error al iniciar Linux RTC en llamada a ioctl (rtc_irqp_set %lu): %s\n" #define MSGTR_IncreaseRTCMaxUserFreq "Intenta añadir \"echo %lu > /proc/sys/dev/rtc/max-user-freq\" a los scripts de inicio del sistema.\n" #define MSGTR_LinuxRTCInitErrorPieOn "Error al iniciar Linux RTC en llamada a ioctl (rtc_pie_on): %s\n" #define MSGTR_Getch2InitializedTwice "ADVERTENCIA: se ha llamado a getch2_init dos veces\n" #define MSGTR_CantOpenLibmenuFilterWithThisRootMenu "No puedo abrir el filtro de vídeo libmenu con el menú raíz %s.\n" #define MSGTR_AudioFilterChainPreinitError "Error de pre-inicio en la cadena de filtros de audio\n" #define MSGTR_LinuxRTCReadError "Error de lectura en Linux RTC: %s\n" #define MSGTR_SoftsleepUnderflow "Advertencia: underflow de softsleep\n" #define MSGTR_MasterQuit "Opción -udp-slave: saliendo porque el maestro salió\n" #define MSGTR_InvalidIP "Opción -udp-ip: dirección IP no válida\n" #define MSGTR_Forking "Bifurcando...\n" #define MSGTR_Forked "Bifurcado...\n" #define MSGTR_CouldntStartGdb "No pude iniciar gdb\n" #define MSGTR_CouldntFork "No pude bifurcar\n" #define MSGTR_FilenameTooLong "Nombre de fichero muy largo, no puedo cargar ficheros de configuración específicos de archivo o directorio\n" #define MSGTR_AudioDeviceStuck "El dispositivo de audio se ha encallado\n" #define MSGTR_AudioOutputTruncated "Salida de audio truncada al final.\n" #define MSGTR_ASSCannotAddVideoFilter "ASS: no puedo añadir filtro de vídeo\n" #define MSGTR_PtsAfterFiltersMissing "PERDIDO pts tras filtros\n" #define MSGTR_CommandLine "Línea de comando:" #define MSGTR_MenuInitFailed "Fallo al iniciar el menú.\n" // --- edit decision lists #define MSGTR_EdlOutOfMem "No puedo asignar suficiente memoria para almacenar datos EDL.\n" #define MSGTR_EdlOutOfMemFile "No puedo asignar suficiente memoria para almacenar nombres de fichero EDL [%s].\n" #define MSGTR_EdlRecordsNo "Leídas %d acciones EDL.\n" #define MSGTR_EdlQueueEmpty "No hay acciones EDL de las que ocuparse.\n" #define MSGTR_EdlCantOpenForWrite "No puedo abrir el fichero EDL [%s] para escribir.\n" #define MSGTR_EdlNOsh_video "No puedo usar EDL sin video, desactivándolo.\n" #define MSGTR_EdlNOValidLine "La linea EDL %s no es válida\n" #define MSGTR_EdlBadlyFormattedLine "La linea EDL [%d] está mal formateada, la descarto.\n" #define MSGTR_EdlBadLineOverlap "La última posición de paro fue [%f]; el próximo incicio "\ "es [%f]. Las posiciones deben estar en orden cronológico y sin solaparse. Las descarto.\n" #define MSGTR_EdlBadLineBadStop "La hora de parada debe ser posterior a la de inicio.\n" #define MSGTR_EdloutBadStop "Salto de EDL cancelado, último comienzo > parada\n" #define MSGTR_EdloutStartSkip "Salto de EDL iniciado, pulse 'i' otra vez para terminar el bloque.\n" #define MSGTR_EdloutEndSkip "Fin de salto EDL, se ha escrito la línea.\n" // mplayer.c OSD #define MSGTR_OSDenabled "activado" #define MSGTR_OSDdisabled "desactivado" #define MSGTR_OSDAudio "Audio: %s" #define MSGTR_OSDChannel "Canal: %s" #define MSGTR_OSDSubDelay "Retraso sub: %d ms" #define MSGTR_OSDSpeed "Velocidad: x %6.2f" #define MSGTR_OSDosd "OSD: %s" #define MSGTR_OSDChapter "Capítulo: (%d) %s" #define MSGTR_OSDAngle "Ángulo: %d/%d" #define MSGTR_OSDDeinterlace "Desentrelazado: %s" #define MSGTR_OSDCapturing "Capturando: %s" #define MSGTR_OSDCapturingFailure "Fallo de captura" // property values #define MSGTR_Enabled "activado" #define MSGTR_EnabledEdl "activado (EDL)" #define MSGTR_Disabled "desactivado" #define MSGTR_HardFrameDrop "hard" #define MSGTR_Unknown "desconocido" #define MSGTR_Bottom "abajo" #define MSGTR_Center "centro" #define MSGTR_Top "arriba" #define MSGTR_SubSourceFile "fichero" #define MSGTR_SubSourceVobsub "vobsub" #define MSGTR_SubSourceDemux "incrustado" // OSD bar names #define MSGTR_Volume "Volumen" #define MSGTR_Panscan "Panscan" #define MSGTR_Gamma "Gamma" #define MSGTR_Brightness "Brillo" #define MSGTR_Contrast "Contraste" #define MSGTR_Saturation "Saturación" #define MSGTR_Hue "Tono" #define MSGTR_Balance "Balance" // property state #define MSGTR_LoopStatus "Bucle: %s" #define MSGTR_MuteStatus "Silenciar: %s" #define MSGTR_AVDelayStatus "Retraso A-V: %s" #define MSGTR_OnTopStatus "Por encima: %s" #define MSGTR_RootwinStatus "Rootwin: %s" #define MSGTR_BorderStatus "Borde: %s" #define MSGTR_FramedroppingStatus "Framedropping: %s" #define MSGTR_VSyncStatus "VSync: %s" #define MSGTR_SubSelectStatus "Subtítulos: %s" #define MSGTR_SubSourceStatus "Fuente de subs: %s" #define MSGTR_SubPosStatus "Posición de subs: %s/100" #define MSGTR_SubAlignStatus "Alineación de subs: %s" #define MSGTR_SubDelayStatus "Retraso de subs: %s" #define MSGTR_SubScale "Escalado de subs: %s" #define MSGTR_SubVisibleStatus "Subtítulos: %s" #define MSGTR_SubForcedOnlyStatus "Sólo subs forzados: %s" // mencoder.c #define MSGTR_UsingPass3ControlFile "Usando fichero de control pass3: %s\n" #define MSGTR_MissingFilename "\nFichero sin nombre.\n\n" #define MSGTR_CannotOpenFile_Device "No pude abrir el fichero/dispositivo.\n" #define MSGTR_CannotOpenDemuxer "No pude abrir el demuxer.\n" #define MSGTR_NoAudioEncoderSelected "\nNo has elegido un codificador de audio (-oac). Escoge uno (busca -oac en la ayuda) o usa -nosound.\n" #define MSGTR_NoVideoEncoderSelected "\nNo has elegido un codificador de vídeo (-ovc). Escoge uno (busca -ovc en la ayuda).\n" #define MSGTR_CannotOpenOutputFile "No puedo abrir el fichero de salida '%s'.\n" #define MSGTR_EncoderOpenFailed "No puedo abrir el codificador.\n" #define MSGTR_MencoderWrongFormatAVI "\nAVISO: EL FORMATO DEL FICHERO DE SALIDA ES _AVI_. Busca -of en la ayuda.\n" #define MSGTR_MencoderWrongFormatMPG "\nAVISO: EL FORMATO DEL FICHERO DE SALIDA ES _MPEG_. Busca -of en la ayuda.\n" #define MSGTR_MissingOutputFilename "No has indicado un fichero de salida. Busca la opción-o, por favor." #define MSGTR_ForcingOutputFourcc "Forzando salida fourcc a %x [%.4s].\n" #define MSGTR_ForcingOutputAudiofmtTag "Forzando etiqueta del formato de audio de la salidaa 0x%x.\n" #define MSGTR_DuplicateFrames "\n%d cuadro(s) duplicados.\n" #define MSGTR_SkipFrame "\nSaltando cuadro\n" #define MSGTR_ResolutionDoesntMatch "\nEl nuevo fichero de vídeo tiene resolución o espacio de color distintos que el anterior.\n" #define MSGTR_FrameCopyFileMismatch "\nTodos los ficheros de vídeo deben tener fps, resolución y códec identicos para la copia -ovc.\n" #define MSGTR_AudioCopyFileMismatch "\nTodos los ficheros deben tener los mismos códecs de audio e igual formato para la copia -oac.\n" #define MSGTR_NoAudioFileMismatch "\nNo se pueden mezclar ficheros de vídeo sólo con ficheros con video y audio. Prueba -nosound.\n" #define MSGTR_NoSpeedWithFrameCopy "ADVERTENCIA: No puedo garantizar que -speed funcione bien con la copia -oac\n"\ "La codificación puede salir mal\n" #define MSGTR_ErrorWritingFile "%s: error al escribir el fichero.\n" #define MSGTR_FlushingVideoFrames "\nLimpiando cuadros de vídeo.\n" #define MSGTR_FiltersHaveNotBeenConfiguredEmptyFile "No se han configurado los filtros. ¿Fichero vacío?\n" #define MSGTR_RecommendedVideoBitrate "La tasa de bits recomendada para %s CD: %d\n" #define MSGTR_VideoStreamResult "\nStream de video: %8.3f kbit/s (%d B/s), tamaño: %"PRIu64" bytes, %5.3f segundos, %d cuadros\n" #define MSGTR_AudioStreamResult "\nStream de audio: %8.3f kbit/s (%d B/s), tamaño: %"PRIu64" bytes, %5.3f segundos\n" #define MSGTR_EdlSkipStartEndCurrent "SALTO EDL: Inicio: %.2f Final: %.2f Actual: V: %.2f A: %.2f \r" #define MSGTR_OpenedStream "éxito: formato: %d datos: 0x%X - 0x%x\n" #define MSGTR_VCodecFramecopy "Códec de vídeo: framecopy (%dx%d %dbpp fourcc=%x)\n" #define MSGTR_ACodecFramecopy "Códec de audio: framecopy (formato=%x canales=%d tasa=%d bits=%d B/s=%d muestra-%d)\n" #define MSGTR_MP3AudioSelected "Elegido audio MP3.\n" #define MSGTR_SettingAudioDelay "Ajustando retraso de audio a %5.3fs.\n" #define MSGTR_SettingVideoDelay "Ajustando retraso de vídeo a %5.3fs.\n" #define MSGTR_LimitingAudioPreload "Limitando la precarga de audio a 0.4s.\n" #define MSGTR_IncreasingAudioDensity "Aumentando la densidad de audio a 4.\n" #define MSGTR_ZeroingAudioPreloadAndMaxPtsCorrection "Forzando la precarga de audio a 0, corrección pts máx a 0.\n" #define MSGTR_LameVersion "Versión de LAME %s (%s)\n\n" #define MSGTR_InvalidBitrateForLamePreset "Error: la tasa de bits indicada está fuera del rango válido para esta preconfiguración.\n"\ "\n"\ "Cuando uses este modo debes escribir un valor entre \"8\" y \"320\".\n"\ "\n"\ "Para mayor información prueba: \"-lameopts preset=help\"\n" #define MSGTR_InvalidLamePresetOptions "Error: No indicaste un perfil válido y/u opciones con la preconfiguración.\n"\ "\n"\ "Los perfiles disponibles son:\n"\ "\n"\ " <fast> standard\n"\ " <fast> extreme\n"\ " insane\n"\ " <cbr> (Modo ABR) - Asume el modo ABR. Para usarlo,\n"\ " indica sólo la tasa de bits. Por ejemplo:\n"\ " \"preset=185\" activa esta\n"\ " preconfiguración y usa 185 como kbps promedio.\n"\ "\n"\ " Algunos ejemplos:\n"\ "\n"\ " \"-lameopts fast:preset=standard \"\n"\ " o \"-lameopts cbr:preset=192 \"\n"\ " o \"-lameopts preset=172 \"\n"\ " o \"-lameopts preset=extreme \"\n"\ "\n"\ "Para mayor información prueba: \"-lameopts preset=help\"\n" #define MSGTR_LamePresetsLongInfo "\n"\ "Las opciones de preconfiguración se han diseñado para dar la mayor calidad posible.\n"\ "\n"\ "En su mayoría han sido ensayadas y ajustadas por medio de rigurosas pruebas de\n"\ "doble escucha ciega (double blind listening) para verificarlas y lograr este objetivo.\n"\ "\n"\ "Se actualizan continuamente con los últimos desarrollos y, en consecuencia, \n"\ "deberían dar prácticamente la mejor calidad posible hoy día con LAME.\n"\ "\n"\ "Para activar estas preconfiguraciones:\n"\ "\n"\ " Para los modos VBR (generalmente los de mayor calidad):\n"\ "\n"\ " \"preset=standard\" Esta preconfiguración generalmente debería ser transparente\n"\ " para casi todo el mundo, en casi toda la música y ya tiene\n"\ " una calidad bastante buena.\n"\ "\n"\ " \"preset=extreme\" Si tienes un oido extremademente bueno y un equipo\n"\ " tan bueno como tu oído, esta preconfiguración te dará\n"\ " una calidad levemente superior al modo \"standard\"\n"\ " la mayoría de veces.\n"\ "\n"\ " Para 320kbps CBR (la mejor calidad posible desde las preconfiguraciones):\n"\ "\n"\ " \"preset=insane\" Esta preconfiguración será, casi siempre, excesiva \n"\ " para la mayoría de la gente, pero si debes tener\n"\ " absolutamente la mayor calidad posible, sin importar el\n"\ " tamaño del fichero, ésta es tu opción.\n"\ "\n"\ " Para los modos ABR (alta calidad para la tasa de bits dada pero no tanta como el modo VBR):\n"\ "\n"\ " \"preset=<kbps>\" Usando esta preconfiguración normalmente tendrás una\n"\ " buena calidad a la tasa de bits que indiques.\n"\ " Dependiendo de ésta, la preconfiguración determinará\n"\ " el ajuste óptimo para esa situación particular.\n"\ " Aunque funciona, esta configuración no es tan flexible\n"\ " como VBR y, normalmente, no alcanza el mismo nivel de calidad \n"\ " que VBR a mayores tasas de bits.\n"\ "\n"\ "Cada perfil tiene también disponibles las opciones siguentes:\n"\ "\n"\ " <fast> standard\n"\ " <fast> extreme\n"\ " insane\n"\ " <cbr> (Modo ABR) - Asume el modo ABR. Para usarlo,\n"\ " sólo indica una tasa de bits. Por ejemplo:\n"\ " \"preset=185\" activa esta preconfiguración y usa \n"\ " 185 como kbps promedio.\n"\ "\n"\ " \"fast\" - Activa el nuevo modo rápido VBR para un perfil en particular. La\n"\ " desventaja frente a la preconfiguración rápida es que, a menudo, la \n"\ " tasa de bits es ligeramente más alta que en el modo normal y la calidad\n"\ " puede llegar a ser un poco más baja también.\n"\ "Advertencia: con la versión actual las preconfiguraciones rápidas pueden provocar\n"\ " tasas de bits demasiado altas comparadas con las normales.\n"\ "\n"\ " \"cbr\" - Si usas el modo ABR (ver más arriba) con una tasa de bits significativa\n"\ " como 80, 96, 112, 128, 160, 192, 224, 256, 320,\n"\ " puedes usar la opción \"cbr\" para forzar la codificación en modo CBR\n"\ " en lugar del modo por omisión abr. ABR proporciona mayor calidad pero\n"\ " CBR podría ser útil en ciertas situaciones, por ejemplo cuando puede\n"\ " ser importante difundir un MP3 a través de internet.\n"\ "\n"\ " Por ejemplo:\n"\ "\n"\ " \"-lameopts fast:preset=standard \"\n"\ " o \"-lameopts cbr:preset=192 \"\n"\ " o \"-lameopts preset=172 \"\n"\ " o \"-lameopts preset=extreme \"\n"\ "\n"\ "\n"\ "Hay disponibles unos cuantos alias para el modo ABR:\n"\ "teléf => 16kbps/mono teléfono/lw/mw-eu/sw => 24kbps/mono\n"\ "om => 40kbps/mono voz => 56kbps/mono\n"\ "fm/radio/cinta => 112kbps hifi => 160kbps\n"\ "cd => 192kbps estudio => 256kbps" #define MSGTR_LameCantInit "No pude establecer las opciones de LAME, corrige la tasa"\ " de bits o de muestreo. Algunas tasas de bit muy bajas (<32) necesitan de una tasa"\ " muestreo más baja (ej. -srate 8000). Si todo falla, prueba con una preconfiguración." #define MSGTR_ConfigFileError "error en fichero de configuración" #define MSGTR_ErrorParsingCommandLine "error en parámetros de la línea de comando" #define MSGTR_VideoStreamRequired "El stream de vídeo es obligatorio\n" #define MSGTR_ForcingInputFPS "Las fps de entrada se interpretarán como %5.3f.\n" #define MSGTR_DemuxerDoesntSupportNosound "Este demuxer aún no admite -nosound.\n" #define MSGTR_MemAllocFailed "La asignación de memoria ha fallado.\n" #define MSGTR_NoMatchingFilter "No encontré un filtro o formato de salida coincidente\n" #define MSGTR_MP3WaveFormatSizeNot30 "sizeof(MPEGLAYER3WAVEFORMAT)==%d!=30, ¿quizás esté roto el compilador de C?\n" #define MSGTR_NoLavcAudioCodecName "LAVC Audio, falta el nombre del códec\n" #define MSGTR_LavcAudioCodecNotFound "LAVC Audio, no encuentro el codificador para el códec %s.\n" #define MSGTR_CouldntAllocateLavcContext "LAVC Audio, no puedo asignar contexto\n" #define MSGTR_CouldntOpenCodec "No puedo abrir el códec %s, br=%d.\n" #define MSGTR_CantCopyAudioFormat "El formato de audio 0x%x no es compatible con '-oac copy', por favor intenta con '-oac pcm' o usa '-fafmttag' para anularlo.\n" // cfg-mencoder.h #define MSGTR_MEncoderMP3LameHelp "\n\n"\ " vbr=<0-4> método de tasa de bits variable\n"\ " 0: cbr\n"\ " 1: mt\n"\ " 2: rh(default)\n"\ " 3: abr\n"\ " 4: mtrh\n"\ "\n"\ " abr tasa de bits media\n"\ "\n"\ " cbr tasa de bits constante\n"\ " Forzar también modo de codificación CBR en modos ABR \n"\ " preseleccionados subsecuentemente.\n"\ "\n"\ " br=<0-1024> especifica tasa de bits en kBit (solo CBR y ABR)\n"\ "\n"\ " q=<0-9> calidad (0-mejor, 9-peor) (solo para VBR)\n"\ "\n"\ " aq=<0-9> calidad del algoritmo (0-mejor/lenta, 9-peor/rápida)\n"\ "\n"\ " ratio=<1-100> razón de compresión\n"\ "\n"\ " vol=<0-10> configura ganancia de entrada de audio\n"\ "\n"\ " mode=<0-3> (por defecto: auto)\n"\ " 0: estéreo\n"\ " 1: estéreo-junto\n"\ " 2: canal dual\n"\ " 3: mono\n"\ "\n"\ " padding=<0-2>\n"\ " 0: no\n"\ " 1: todo\n"\ " 2: ajustar\n"\ "\n"\ " fast Activa codificación rápida en modos VBR preseleccionados\n"\ " subsecuentes, más baja calidad y tasas de bits más altas.\n"\ "\n"\ " preset=<value> Provee configuración con la mejor calidad posible.\n"\ " medium: codificación VBR, buena calidad\n"\ " (rango de 150-180 kbps de tasa de bits)\n"\ " standard: codificación VBR, alta calidad\n"\ " (rango de 170-210 kbps de tasa de bits)\n"\ " extreme: codificación VBR, muy alta calidad\n"\ " (rango de 200-240 kbps de tasa de bits)\n"\ " insane: codificación CBR, la mejor calidad configurable\n"\ " (320 kbps de tasa de bits)\n"\ " <8-320>: codificación ABR con tasa de bits en promedio en los kbps dados.\n\n" // codec-cfg.c #define MSGTR_DuplicateFourcc "FourCC duplicado" #define MSGTR_TooManyFourccs "demasiados FourCCs/formatos..." #define MSGTR_ParseError "error en el analísis" #define MSGTR_ParseErrorFIDNotNumber "error en el analísis (¿ID de formato no es un número?)" #define MSGTR_ParseErrorFIDAliasNotNumber "error en el analísis (¿el alias del ID de formato no es un número?)" #define MSGTR_DuplicateFID "ID de formato duplicado" #define MSGTR_TooManyOut "demasiados out..." #define MSGTR_InvalidCodecName "\n¡el nombre del codec(%s) no es valido!\n" #define MSGTR_CodecLacksFourcc "\n¡el codec(%s) no tiene FourCC/formato!\n" #define MSGTR_CodecLacksDriver "\ncodec(%s) does not have a driver!\n" #define MSGTR_CodecNeedsDLL "\n¡codec(%s) necesita una 'dll'!\n" #define MSGTR_CodecNeedsOutfmt "\n¡codec(%s) necesita un 'outfmt'!\n" #define MSGTR_CantAllocateComment "No puedo asignar memoria para el comentario. " #define MSGTR_GetTokenMaxNotLessThanMAX_NR_TOKEN "get_token(): max >= MAX_MR_TOKEN!" #define MSGTR_CantGetMemoryForLine "No puedo asignar memoria para 'line': %s\n" #define MSGTR_CantReallocCodecsp "No puedo reasignar '*codecsp': %s\n" #define MSGTR_CodecNameNotUnique "El nombre del Codec '%s' no es único." #define MSGTR_CantStrdupName "No puedo strdup -> 'name': %s\n" #define MSGTR_CantStrdupInfo "No puedo strdup -> 'info': %s\n" #define MSGTR_CantStrdupDriver "No puedo strdup -> 'driver': %s\n" #define MSGTR_CantStrdupDLL "No puedo strdup -> 'dll': %s" #define MSGTR_AudioVideoCodecTotals "%d codecs de audio & %d codecs de video\n" #define MSGTR_CodecDefinitionIncorrect "Codec no esta definido correctamente." #define MSGTR_OutdatedCodecsConf "¡El archivo codecs.conf es demasiado viejo y es incompatible con esta versión de MPlayer!" // fifo.c // parser-mecmd.c, parser-mpcmd.c #define MSGTR_NoFileGivenOnCommandLine "'--' indica que no hay más opciones, pero no se ha especificado el nombre de ningún fichero en la línea de comandos\n" #define MSGTR_TheLoopOptionMustBeAnInteger "La opción del bucle debe ser un entero: %s\n" #define MSGTR_UnknownOptionOnCommandLine "Opción desconocida en la línea de comandos: -%s\n" #define MSGTR_ErrorParsingOptionOnCommandLine "Error analizando la opción en la línea de comandos: -%s\n" #define MSGTR_InvalidPlayEntry "Entrada de reproducción inválida %s\n" #define MSGTR_NotAnMEncoderOption "-%s no es una opción de MEncoder\n" #define MSGTR_NoFileGiven "No se ha especificado ningún fichero" // m_config.c #define MSGTR_SaveSlotTooOld "Encontrada casilla demasiado vieja del lvl %d: %d !!!\n" #define MSGTR_InvalidCfgfileOption "La opción %s no puede ser usada en un archivo de configuración.\n" #define MSGTR_InvalidCmdlineOption "La opción %s no puede ser usada desde la línea de comandos.\n" #define MSGTR_InvalidSuboption "Error: opción '%s' no tiene la subopción '%s'.\n" #define MSGTR_MissingSuboptionParameter "Error: ¡subopción '%s' de '%s' tiene que tener un parámetro!\n" #define MSGTR_MissingOptionParameter "Error: ¡opción '%s' debe tener un parámetro!\n" #define MSGTR_OptionListHeader "\n Nombre Tipo Min Max Global LC Cfg\n\n" #define MSGTR_TotalOptions "\nTotal: %d opciones\n" #define MSGTR_ProfileInclusionTooDeep "ADVERTENCIA: Inclusion de perfil demaciado profunda.\n" #define MSGTR_NoProfileDefined "No se han definido perfiles.\n" #define MSGTR_AvailableProfiles "Perfiles disponibles:\n" #define MSGTR_UnknownProfile "Perfil desconocido '%s'.\n" #define MSGTR_Profile "Perfil %s: %s\n" // m_property.c #define MSGTR_PropertyListHeader "\n Nombre Tipo Min Max\n\n" #define MSGTR_TotalProperties "\nTotal: %d propiedades\n" // loader/ldt_keeper.c #define MSGTR_LOADER_DYLD_Warning "AVISO: Se está intentando usar los codecs DLL pero la variable de entorno\n DYLD_BIND_AT_LAUNCH no está establecida. Probablemente falle.\n" // ================================ GUI ================================ #define MSGTR_GUI_AboutMPlayer "Acerca de MPlayer" #define MSGTR_GUI_Add "Agregar" #define MSGTR_GUI_AspectRatio "Relación de aspecto" #define MSGTR_GUI_Audio "Audio" #define MSGTR_GUI_AudioDelay "Retraso de audio" #define MSGTR_GUI_AudioDriverConfiguration "Configuración de controlador de Audio" #define MSGTR_GUI_AudioTrack "Cargar archivo de audio externo" #define MSGTR_GUI_AudioTracks "Pista de Audio" #define MSGTR_GUI_AvailableDrivers "Controladores disponibles:" #define MSGTR_GUI_AvailableSkins "Skins" #define MSGTR_GUI_Bass "Bajo" #define MSGTR_GUI_Blur "Blur" #define MSGTR_GUI_Bottom "Inferior" #define MSGTR_GUI_Brightness "Brillo" #define MSGTR_GUI_Browse "Navegar" #define MSGTR_GUI_Cache "Cache" #define MSGTR_GUI_CacheSize "Tamaño de Cache" #define MSGTR_GUI_Cancel "Cancelar" #define MSGTR_GUI_Center "Centro" #define MSGTR_GUI_Channel1 "Canal 1" #define MSGTR_GUI_Channel2 "Canal 2" #define MSGTR_GUI_Channel3 "Canal 3" #define MSGTR_GUI_Channel4 "Canal 4" #define MSGTR_GUI_Channel5 "Canal 5" #define MSGTR_GUI_Channel6 "Canal 6" #define MSGTR_GUI_ChannelAll "Todos" #define MSGTR_GUI_ChapterN "capítulo %d" #define MSGTR_GUI_ChapterNN "Capítulo %2d" #define MSGTR_GUI_Chapters "Capítulos" #define MSGTR_GUI_Clear "Limpiar" #define MSGTR_GUI_CodecFamilyAudio "Familia de codec de audio" #define MSGTR_GUI_CodecFamilyVideo "Familia de codec de video" #define MSGTR_GUI_CodecsAndLibraries "Codecs y librerías de terceros" #define MSGTR_GUI_Coefficient "Coeficiente" #define MSGTR_GUI_Configure "Configurar" #define MSGTR_GUI_ConfigureDriver "Configurar driver" #define MSGTR_GUI_Contrast "Contraste" #define MSGTR_GUI_Contributors "Contribuyentes al código y documentación" #define MSGTR_GUI_Cp874 "Thai (CP874)" #define MSGTR_GUI_Cp936 "Chino simplificado (CP936)" #define MSGTR_GUI_Cp949 "Coreano (CP949)" #define MSGTR_GUI_Cp1250 "Eslavo/Centroeuropeo (Windows) (CP1250)" #define MSGTR_GUI_Cp1251 "Cirílico (Windows) (CP1251)" #define MSGTR_GUI_Cp1256 "Arabic Windows (CP1256)" #define MSGTR_GUI_CpBIG5 "Chino tradicional (BIG5)" #define MSGTR_GUI_CpISO8859_1 "Occidental (ISO-8859-1)" #define MSGTR_GUI_CpISO8859_2 "Eslavo/Centroeuropeo (ISO-8859-2)" #define MSGTR_GUI_CpISO8859_3 "Esperanto, Gallego, Maltés, Turco (ISO-8859-3)" #define MSGTR_GUI_CpISO8859_4 "Báltico (ISO-8859-4)" #define MSGTR_GUI_CpISO8859_5 "Cirílico (ISO-8859-5)" #define MSGTR_GUI_CpISO8859_6 "Árabe (ISO-8859-6)" #define MSGTR_GUI_CpISO8859_7 "Griego moderno (ISO-8859-7)" #define MSGTR_GUI_CpISO8859_8 "Hebreo (ISO-8859-8)" #define MSGTR_GUI_CpISO8859_9 "Turco (ISO-8859-9)" #define MSGTR_GUI_CpISO8859_13 "Báltico (ISO-8859-13)" #define MSGTR_GUI_CpISO8859_14 "Céltico (ISO-8859-14)" #define MSGTR_GUI_CpISO8859_15 "Occidental con euro (ISO-8859-15)" #define MSGTR_GUI_CpKOI8_R "Ruso (KOI8-R)" #define MSGTR_GUI_CpKOI8_U "Belaruso (KOI8-U/RU)" #define MSGTR_GUI_CpShiftJis "Japanés(SHIFT-JIS)" #define MSGTR_GUI_CpUnicode "Unicode" #define MSGTR_GUI_DefaultSetting "controlador por omisión" #define MSGTR_GUI_Delay "Retraso" #define MSGTR_GUI_Demuxers_Codecs "Codecs y demuxer" #define MSGTR_GUI_Device "Dispositivo" #define MSGTR_GUI_DeviceCDROM "Dispositivo de CD-ROM" #define MSGTR_GUI_DeviceDVD "Dispositivo de DVD" #define MSGTR_GUI_Directory "Ubicación" #define MSGTR_GUI_DirectoryTree "Árbol de directorios" #define MSGTR_GUI_DropSubtitle "Cancelar subtitulos..." #define MSGTR_GUI_DVD "DVD" #define MSGTR_GUI_EnableAssSubtitle "SSA/ASS renderizado de subtítulos" #define MSGTR_GUI_EnableAutomaticAVSync "AutoSync si/no" #define MSGTR_GUI_EnableCache "Cache si/no" #define MSGTR_GUI_EnableDirectRendering "Activar renderización directa" #define MSGTR_GUI_EnableDoubleBuffering "Activar buffering doble" #define MSGTR_GUI_EnableEqualizer "Activar equalizer" #define MSGTR_GUI_EnableExtraStereo "Activar estereo extra" #define MSGTR_GUI_EnableFrameDropping "Activar frame dropping" #define MSGTR_GUI_EnableFrameDroppingIntense "Activar frame dropping DURO (peligroso)" #define MSGTR_GUI_EnablePlaybar "Habilitar barra de reproducción" #define MSGTR_GUI_EnablePostProcessing "Activar postprocesado" #define MSGTR_GUI_EnableSoftwareMixer "Activar mezclador por software" #define MSGTR_GUI_Encoding "Codificación" #define MSGTR_GUI_Equalizer "Equalizador" #define MSGTR_GUI_EqualizerConfiguration "Configurar el equalizador" #define MSGTR_GUI_Error "Error" #define MSGTR_GUI_ErrorFatal "Error fatal" #define MSGTR_GUI_File "Reproducir archivo" #define MSGTR_GUI_Files "Archivos" #define MSGTR_GUI_Flip "Visualizar imagen al revés" #define MSGTR_GUI_Font "Fuente" #define MSGTR_GUI_FrameRate "FPS" #define MSGTR_GUI_FrontLeft "Frente izquierdo" #define MSGTR_GUI_FrontRight "Frente derecho" #define MSGTR_GUI_HideVideoWindow "Mostrar Ventana de Video cuando este inactiva" #define MSGTR_GUI_Hue "Hue" #define MSGTR_GUI_Lavc "Usar LAVC (FFmpeg)" #define MSGTR_GUI_MaximumUsageSpareCPU "Calidad automática" #define MSGTR_GUI_Miscellaneous "Misc" #define MSGTR_GUI_Mixer "Mezclador" #define MSGTR_GUI_MixerChannel "Canal del Mezclador" #define MSGTR_GUI_MSG_AddingVideoFilter "[GUI] Agregando filtro de video: %s\n" #define MSGTR_GUI_MSG_ColorDepthTooLow "Lo lamento, la profundidad de color es demasiado baja.\n" #define MSGTR_GUI_MSG_DragAndDropNothing "D&D: ¡No retorno nada!\n" #define MSGTR_GUI_MSG_DXR3NeedsLavc "No puede reproducir archivos no MPEG con su DXR3/H+ sin recodificación. Activa lavc en la configuración del DXR3/H+." #define MSGTR_GUI_MSG_LoadingSubtitle "[GUI] Carganado subtítulos: %s\n" #define MSGTR_GUI_MSG_MemoryErrorImage "Lo lamento, no hay suficiente memoria para el buffer de dibujo.\n" #define MSGTR_GUI_MSG_MemoryErrorWindow "No hay suficiente memoria para dibujar el búfer." #define MSGTR_GUI_MSG_NoFileLoaded "no se ha cargado ningún archivo" #define MSGTR_GUI_MSG_NoMediaOpened "no se abrió audio/video" #define MSGTR_GUI_MSG_NotAFile0 "Esto no parece ser un archivo...\n" #define MSGTR_GUI_MSG_NotAFile1 "Esto no parece ser un archivo: %s !\n" #define MSGTR_GUI_MSG_PlaybackNeedsRestart "Algunas opciones requieren reiniciar la reproducción." #define MSGTR_GUI_MSG_RemoteDisplay "Display remoto, desactivando XMITSHM.\n" #define MSGTR_GUI_MSG_RemovingSubtitle "[GUI] Borrando subtítulos.\n" #define MSGTR_GUI_MSG_SkinBitmapConversionError "Error de conversión de 24 bit a 32 bit (%s).\n" #define MSGTR_GUI_MSG_SkinBitmapNotFound "Archivo no encontrado (%s).\n" #define MSGTR_GUI_MSG_SkinBitmapPngReadError "Error al leer PNG (%s).\n" #define MSGTR_GUI_MSG_SkinCfgNotFound "Skin no encontrado (%s).\n" #define MSGTR_GUI_MSG_SkinCfgSelectedNotFound "Skin elegida ( %s ) no encontrada, probando 'default'...\n" #define MSGTR_GUI_MSG_SkinErrorBitmap16Bit "Mapa de bits de 16 bits o menos no soportado (%s).\n" #define MSGTR_GUI_MSG_SkinErrorMessage "[skin] error en configuración de skin en la línea %d: %s" #define MSGTR_GUI_MSG_SkinFileNotFound "[skin] no se encontró archivo ( %s ).\n" #define MSGTR_GUI_MSG_SkinFileNotReadable "[skin] file no leible ( %s ).\n" #define MSGTR_GUI_MSG_SkinFontFileNotFound "Archivo de fuentes no encontrado.\n" #define MSGTR_GUI_MSG_SkinFontImageNotFound "Archivo de imagen de fuente no encontrado.\n" #define MSGTR_GUI_MSG_SkinFontNotFound "identificador de fuente no existente (%s).\n" #define MSGTR_GUI_MSG_SkinMemoryError "No hay suficiente memoria.\n" #define MSGTR_GUI_MSG_SkinTooManyFonts "Demasiadas fuentes declaradas.\n" #define MSGTR_GUI_MSG_SkinUnknownMessage "Mensaje desconocido: %s.\n" #define MSGTR_GUI_MSG_SkinUnknownParameter "parámetro desconocido (%s)\n" #define MSGTR_GUI_MSG_TooManyWindows "Hay demasiadas ventanas abiertas.\n" #define MSGTR_GUI_MSG_UnableToSaveOption "[cfg] No se puede guardar la opción '%s'.\n" #define MSGTR_GUI_MSG_VideoOutError "No se encuentra driver -vo compatible con la interfaz gráfica." #define MSGTR_GUI_MSG_XShapeError "Lo lamento, su sistema no soporta la extensión XShape.\n" #define MSGTR_GUI_MSG_XSharedMemoryError "Error en la extensión de memoria compartida\n" #define MSGTR_GUI_MSG_XSharedMemoryUnavailable "Lo lamento, su sistema no soporta la extensión de memoria compartida X.\n" #define MSGTR_GUI_Mute "Mudo" #define MSGTR_GUI_NetworkStreaming "Streaming por red..." #define MSGTR_GUI_Next "Siguiente stream" #define MSGTR_GUI_NoChapter "sin capítulo" #define MSGTR_GUI__none_ "(ninguno)" #define MSGTR_GUI_NonInterleavedParser "Usar non-interleaved AVI parser" #define MSGTR_GUI_NormalizeSound "Normalizar sonido" #define MSGTR_GUI_Ok "OK" #define MSGTR_GUI_Open "Abrir..." #define MSGTR_GUI_Original "Original" #define MSGTR_GUI_OsdLevel "Nivel OSD" #define MSGTR_GUI_OSD_Subtitles "Subtítulos y OSD" #define MSGTR_GUI_Outline "Outline" #define MSGTR_GUI_PanAndScan "Panscan" #define MSGTR_GUI_Pause "Pausa" #define MSGTR_GUI_Play "Reproducir" #define MSGTR_GUI_Playback "Reproduciendo" #define MSGTR_GUI_Playlist "Lista de reproducción" #define MSGTR_GUI_Position "Posición" #define MSGTR_GUI_PostProcessing "Postprocesado" #define MSGTR_GUI_Preferences "Preferencias" #define MSGTR_GUI_Previous "Anterior stream" #define MSGTR_GUI_Quit "Salir" #define MSGTR_GUI_RearLeft "Fondo izquierdo" #define MSGTR_GUI_RearRight "Fondo dercho" #define MSGTR_GUI_Remove "Quitar" #define MSGTR_GUI_Saturation "Saturación" #define MSGTR_GUI_SaveWindowPositions "Guardar posición de la ventana" #define MSGTR_GUI_ScaleMovieDiagonal "Proporcional al diagonal de película" #define MSGTR_GUI_ScaleMovieHeight "Proporcional a la altura de película" #define MSGTR_GUI_ScaleMovieWidth "Proporcional a la anchura de película" #define MSGTR_GUI_ScaleNo "Sin autoescalado" #define MSGTR_GUI_SeekingInBrokenMedia "Reconstruir tabla de índices, si se necesita" #define MSGTR_GUI_SelectAudioFile "Seleccionar canal de audio externo..." #define MSGTR_GUI_SelectedFiles "Archivos seleccionados" #define MSGTR_GUI_SelectFile "Seleccionar archivo..." #define MSGTR_GUI_SelectFont "Seleccionar fuente..." #define MSGTR_GUI_SelectSubtitle "Seleccionar subtítulos..." #define MSGTR_GUI_SizeDouble "Tamaño doble" #define MSGTR_GUI_SizeFullscreen "Pantalla completa" #define MSGTR_GUI_SizeHalf "Mitad del Tamaño" #define MSGTR_GUI_SizeNormal "Tamaño normal" #define MSGTR_GUI_SizeOSD "Escalado de OSD" #define MSGTR_GUI_SizeSubtitles "Escalado de texto" #define MSGTR_GUI_SkinBrowser "Navegador de skins" #define MSGTR_GUI_Skins "Skins" #define MSGTR_GUI_Sponsored " Desarrollo de GUI patrocinado por UHU Linux" #define MSGTR_GUI_StartFullscreen "Empezar en pantalla completa" #define MSGTR_GUI_Stop "Parar" #define MSGTR_GUI_Subtitle "Subtítulo" #define MSGTR_GUI_SubtitleAddMargins "Usar márgenes" #define MSGTR_GUI_SubtitleAllowOverlap "Superposición de subtitulos" #define MSGTR_GUI_SubtitleAutomaticLoad "Desactivar carga automática de subtítulos" #define MSGTR_GUI_SubtitleConvertMpsub "Convertir el subtítulo dado al formato de subtítulos de MPlayer" #define MSGTR_GUI_SubtitleConvertSrt "Convertir el subtítulo dado al formato basado en tiempo SubViewer (SRT)" #define MSGTR_GUI_Subtitles "Subtítulos" #define MSGTR_GUI_SyncValue "Autosync" #define MSGTR_GUI_TitleNN "Título %2d" #define MSGTR_GUI_Titles "Títulos" #define MSGTR_GUI_Top "Superior" #define MSGTR_GUI_TrackN "Pista %d" #define MSGTR_GUI_Translations "Traducciones" #define MSGTR_GUI_TurnOffXScreenSaver "Detener Salvador de Pantallas de X" #define MSGTR_GUI_URL "Reproducir URL" #define MSGTR_GUI_VCD "VCD" #define MSGTR_GUI_Video "Video" #define MSGTR_GUI_VideoEncoder "Codificador de video" #define MSGTR_GUI_VideoTracks "Pista de Video" #define MSGTR_GUI_Warning "Advertencia" // ======================= video output drivers ======================== #define MSGTR_VOincompCodec "Disculpe, el dispositivo de salida de video es incompatible con este codec.\n" #define MSGTR_VO_GenericError "Este error ha ocurrido" #define MSGTR_VO_UnableToAccess "No es posible acceder" #define MSGTR_VO_ExistsButNoDirectory "ya existe, pero no es un directorio." #define MSGTR_VO_DirExistsButNotWritable "El directorio ya existe, pero no se puede escribir en él." #define MSGTR_VO_CantCreateDirectory "No es posible crear el directorio de salida." #define MSGTR_VO_CantCreateFile "No es posible crear archivo de salida." #define MSGTR_VO_DirectoryCreateSuccess "Directorio de salida creado exitosamente." #define MSGTR_VO_ValueOutOfRange "Valor fuera de rango" // aspect.c #define MSGTR_LIBVO_ASPECT_NoSuitableNewResFound "[ASPECT] Aviso: ¡No se ha encontrado ninguna resolución nueva adecuada!\n" #define MSGTR_LIBVO_ASPECT_NoNewSizeFoundThatFitsIntoRes "[ASPECT] Error: No new size found that fits into res!\n" // font_load_ft.c #define MSGTR_LIBVO_FONT_LOAD_FT_NewFaceFailed "Fallo en New_Face. Quizas el font path no es correcto.\nPor favor proporcione el archivo de fuentes de texto (~/.mplayer/subfont.ttf).\n" #define MSGTR_LIBVO_FONT_LOAD_FT_NewMemoryFaceFailed "Fallo en New_Memory_Face ..\n" #define MSGTR_LIBVO_FONT_LOAD_FT_SubFaceFailed "Fuente de subtítulo: fallo en load_sub_face.\n" #define MSGTR_LIBVO_FONT_LOAD_FT_SubFontCharsetFailed "Fuente de subtítulo: fallo en prepare_charset.\n" #define MSGTR_LIBVO_FONT_LOAD_FT_CannotPrepareSubtitleFont "Imposible preparar la fuente para subtítulos.\n" #define MSGTR_LIBVO_FONT_LOAD_FT_CannotPrepareOSDFont "Imposible preparar la fuente para el OSD.\n" #define MSGTR_LIBVO_FONT_LOAD_FT_CannotGenerateTables "Imposible generar tablas.\n" #define MSGTR_LIBVO_FONT_LOAD_FT_DoneFreeTypeFailed "Fallo en FT_Done_FreeType.\n" // sub.c #define MSGTR_VO_SUB_Seekbar "Barra de navegación" #define MSGTR_VO_SUB_Play "Play" #define MSGTR_VO_SUB_Pause "Pausa" #define MSGTR_VO_SUB_Stop "Stop" #define MSGTR_VO_SUB_Rewind "Rebobinar" #define MSGTR_VO_SUB_Forward "Avanzar" #define MSGTR_VO_SUB_Clock "Reloj" #define MSGTR_VO_SUB_Contrast "Contraste" #define MSGTR_VO_SUB_Saturation "Saturación" #define MSGTR_VO_SUB_Volume "Volumen" #define MSGTR_VO_SUB_Brightness "Brillo" #define MSGTR_VO_SUB_Hue "Hue" #define MSGTR_VO_SUB_Balance "Balance" // vo_3dfx.c #define MSGTR_LIBVO_3DFX_Only16BppSupported "[VO_3DFX] Solo 16bpp soportado!" #define MSGTR_LIBVO_3DFX_VisualIdIs "[VO_3DFX] El id visual es %lx.\n" #define MSGTR_LIBVO_3DFX_UnableToOpenDevice "[VO_3DFX] No pude abrir /dev/3dfx.\n" #define MSGTR_LIBVO_3DFX_Error "[VO_3DFX] Error: %d.\n" #define MSGTR_LIBVO_3DFX_CouldntMapMemoryArea "[VO_3DFX] No pude mapear las areas de memoria 3dfx: %p,%p,%d.\n" #define MSGTR_LIBVO_3DFX_DisplayInitialized "[VO_3DFX] Inicializado: %p.\n" #define MSGTR_LIBVO_3DFX_UnknownSubdevice "[VO_3DFX] sub-dispositivo desconocido: %s.\n" // vo_aa.c #define MSGTR_VO_AA_HelpHeader "\n\nAquí estan las subopciones del vo_aa aalib:\n" #define MSGTR_VO_AA_AdditionalOptions "Opciones adicionales provistas por vo_aa:\n" \ " help mostrar esta ayuda\n" \ " osdcolor elegir color de osd\n subcolor elegir color de subtitlos\n" \ " los parámetros de color son:\n 0 : normal\n" \ " 1 : oscuro\n 2 : bold\n 3 : boldfont\n" \ " 4 : reverso\n 5 : especial\n\n\n" // vo_dxr3.c #define MSGTR_LIBVO_DXR3_UnableToLoadNewSPUPalette "[VO_DXR3] No pude cargar la nueva paleta SPU!\n" #define MSGTR_LIBVO_DXR3_UnableToSetPlaymode "[VO_DXR3] No pude setear el playmode!\n" #define MSGTR_LIBVO_DXR3_UnableToSetSubpictureMode "[VO_DXR3] No pude setear el modo del subpicture!\n" #define MSGTR_LIBVO_DXR3_UnableToGetTVNorm "[VO_DXR3] No pude obtener la norma de TV!\n" #define MSGTR_LIBVO_DXR3_AutoSelectedTVNormByFrameRate "[VO_DXR3] Norma de TV autoeleccionada a partir del frame rate: " #define MSGTR_LIBVO_DXR3_UnableToSetTVNorm "[VO_DXR3] Imposible setear la norma de TV!\n" #define MSGTR_LIBVO_DXR3_SettingUpForNTSC "[VO_DXR3] Configurando para NTSC.\n" #define MSGTR_LIBVO_DXR3_SettingUpForPALSECAM "[VO_DXR3] Configurando para PAL/SECAM.\n" #define MSGTR_LIBVO_DXR3_SettingAspectRatioTo43 "[VO_DXR3] Seteando la relación de aspecto a 4:3.\n" #define MSGTR_LIBVO_DXR3_SettingAspectRatioTo169 "[VO_DXR3] Seteando la relación de aspecto a 16:9.\n" #define MSGTR_LIBVO_DXR3_OutOfMemory "[VO_DXR3] Ouch! me quede sin memoria!\n" #define MSGTR_LIBVO_DXR3_UnableToAllocateKeycolor "[VO_DXR3] No pude disponer el keycolor!\n" #define MSGTR_LIBVO_DXR3_UnableToAllocateExactKeycolor "[VO_DXR3] No pude disponer el keycolor exacto, voy a utilizar el mas parecido (0x%lx).\n" #define MSGTR_LIBVO_DXR3_Uninitializing "[VO_DXR3] Uninitializing.\n" #define MSGTR_LIBVO_DXR3_FailedRestoringTVNorm "[VO_DXR3] No pude restaurar la norma de TV!\n" #define MSGTR_LIBVO_DXR3_EnablingPrebuffering "[VO_DXR3] Habilitando prebuffering.\n" #define MSGTR_LIBVO_DXR3_UsingNewSyncEngine "[VO_DXR3] Utilizando el nuevo motor de syncronía.\n" #define MSGTR_LIBVO_DXR3_UsingOverlay "[VO_DXR3] Utilizando overlay.\n" #define MSGTR_LIBVO_DXR3_ErrorYouNeedToCompileMplayerWithX11 "[VO_DXR3] Error: Necesitas compilar MPlayer con las librerias x11 y sus headers para utilizar overlay.\n" #define MSGTR_LIBVO_DXR3_WillSetTVNormTo "[VO_DXR3] Voy a setear la norma de TV a: " #define MSGTR_LIBVO_DXR3_AutoAdjustToMovieFrameRatePALPAL60 "Auto-adjustando al framerate del video (PAL/PAL-60)" #define MSGTR_LIBVO_DXR3_AutoAdjustToMovieFrameRatePALNTSC "Auto-adjustando al framerate del video (PAL/NTSC)" #define MSGTR_LIBVO_DXR3_UseCurrentNorm "Utilizar norma actual." #define MSGTR_LIBVO_DXR3_UseUnknownNormSuppliedCurrentNorm "Norma sugerida: desconocida. Utilizando norma actual." #define MSGTR_LIBVO_DXR3_ErrorOpeningForWritingTrying "[VO_DXR3] Error abriendo %s para escribir, intentando /dev/em8300 en su lugar.\n" #define MSGTR_LIBVO_DXR3_ErrorOpeningForWritingTryingMV "[VO_DXR3] Error abriendo %s para escribir, intentando /dev/em8300_mv en su lugar.\n" #define MSGTR_LIBVO_DXR3_ErrorOpeningForWritingAsWell "[VO_DXR3] Nuevamente error abriendo /dev/em8300 para escribir!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_ErrorOpeningForWritingAsWellMV "[VO_DXR3] Nuevamente error abriendo /dev/em8300_mv para escribir!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_Opened "[VO_DXR3] Abierto: %s.\n" #define MSGTR_LIBVO_DXR3_ErrorOpeningForWritingTryingSP "[VO_DXR3] Error abriendo %s para escribir, intentando /dev/em8300_sp en su lugar.\n" #define MSGTR_LIBVO_DXR3_ErrorOpeningForWritingAsWellSP "[VO_DXR3] Nuevamente error abriendo /dev/em8300_sp para escribir!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_UnableToOpenDisplayDuringHackSetup "[VO_DXR3] Unable to open display during overlay hack setup!\n" #define MSGTR_LIBVO_DXR3_UnableToInitX11 "[VO_DXR3] No puede inicializar x11!\n" #define MSGTR_LIBVO_DXR3_FailedSettingOverlayAttribute "[VO_DXR3] Fallé tratando de setear el atributo overlay.\n" #define MSGTR_LIBVO_DXR3_FailedSettingOverlayScreen "[VO_DXR3] Fallé tratando de setear el overlay screen!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_FailedEnablingOverlay "[VO_DXR3] Fallé habilitando overlay!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_FailedResizingOverlayWindow "[VO_DXR3] Fallé tratando de redimiencionar la ventana overlay!\n" #define MSGTR_LIBVO_DXR3_FailedSettingOverlayBcs "[VO_DXR3] Fallé seteando el bcs overlay!\n" #define MSGTR_LIBVO_DXR3_FailedGettingOverlayYOffsetValues "[VO_DXR3] Fallé tratando de obtener los valores Y-offset del overlay!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_FailedGettingOverlayXOffsetValues "[VO_DXR3] Fallé tratando de obtener los valores X-offset del overlay!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_FailedGettingOverlayXScaleCorrection "[VO_DXR3] Fallé obteniendo la corrección X scale del overlay!\nSaliendo.\n" #define MSGTR_LIBVO_DXR3_YOffset "[VO_DXR3] Yoffset: %d.\n" #define MSGTR_LIBVO_DXR3_XOffset "[VO_DXR3] Xoffset: %d.\n" #define MSGTR_LIBVO_DXR3_XCorrection "[VO_DXR3] Xcorrection: %d.\n" #define MSGTR_LIBVO_DXR3_FailedSetSignalMix "[VO_DXR3] Fallé seteando el signal mix!\n" // vo_jpeg.c #define MSGTR_VO_JPEG_ProgressiveJPEG "JPEG progresivo habilitado." #define MSGTR_VO_JPEG_NoProgressiveJPEG "JPEG progresivo deshabilitado." #define MSGTR_VO_JPEG_BaselineJPEG "Baseline JPEG habilitado." #define MSGTR_VO_JPEG_NoBaselineJPEG "Baseline JPEG deshabilitado." // vo_mga.c #define MSGTR_LIBVO_MGA_AspectResized "[VO_MGA] aspect(): redimencionado a %dx%d.\n" #define MSGTR_LIBVO_MGA_Uninit "[VO] uninit!\n" // mga_template.c #define MSGTR_LIBVO_MGA_ErrorInConfigIoctl "[MGA] Error en mga_vid_config ioctl (versión de mga_vid.o erronea?)" #define MSGTR_LIBVO_MGA_CouldNotGetLumaValuesFromTheKernelModule "[MGA] No pude obtener los valores de luma desde el módulo del kernel!\n" #define MSGTR_LIBVO_MGA_CouldNotSetLumaValuesFromTheKernelModule "[MGA] No pude setear los valores de luma que obtuve desde el módulo del kernel!\n" #define MSGTR_LIBVO_MGA_ScreenWidthHeightUnknown "[MGA] Ancho/Alto de la pantalla desconocidos!\n" #define MSGTR_LIBVO_MGA_InvalidOutputFormat "[MGA] Formáto de salida inválido %0X\n" #define MSGTR_LIBVO_MGA_IncompatibleDriverVersion "[MGA] La versión de tu driver mga_vid no es compatible con esta versión de MPlayer!\n" #define MSGTR_LIBVO_MGA_CouldntOpen "[MGA] No pude abrir: %s\n" #define MSGTR_LIBVO_MGA_ResolutionTooHigh "[MGA] La resolución de la fuente es en por lo menos una dimensión mas grande que 1023x1023. Por favor escale en software o use -lavdopts lowres=1\n" #define MSGTR_LIBVO_MGA_mgavidVersionMismatch "[MGA] Las versiones del controlador mga_vid del kernel (%u) y MPlayer (%u) no coinciden\n" // vo_null.c #define MSGTR_LIBVO_NULL_UnknownSubdevice "[VO_NULL] Sub-dispositivo desconocido: %s.\n" // vo_png.c #define MSGTR_LIBVO_PNG_Warning1 "[VO_PNG] Advertencia: nivel de compresión seteado a 0, compresión desabilitada!\n" #define MSGTR_LIBVO_PNG_Warning2 "[VO_PNG] Info: Utiliza -vo png:z=<n> para setear el nivel de compresión desde 0 a 9.\n" #define MSGTR_LIBVO_PNG_Warning3 "[VO_PNG] Info: (0 = sin compresión, 1 = la más rápida y baja - 9 la más lenta y alta)\n" #define MSGTR_LIBVO_PNG_ErrorOpeningForWriting "\n[VO_PNG] Error abriendo '%s' para escribir!\n" #define MSGTR_LIBVO_PNG_ErrorInCreatePng "[VO_PNG] Error en create_png.\n" // vo_pnm.c #define MSGTR_VO_PNM_ASCIIMode "modo ASCII habilitado." #define MSGTR_VO_PNM_RawMode "Raw mode habilitado." #define MSGTR_VO_PNM_PPMType "Escribiré archivos PPM." #define MSGTR_VO_PNM_PGMType "Escribiré archivos PGM." #define MSGTR_VO_PNM_PGMYUVType "Escribiré archivos PGMYUV." // vo_sdl.c #define MSGTR_LIBVO_SDL_CouldntGetAnyAcceptableSDLModeForOutput "[VO_SDL] No pude obtener ni un solo modo SDL aceptable para la salida.\n" #define MSGTR_LIBVO_SDL_UnsupportedImageFormat "[VO_SDL] Formato de imagen no soportado (0x%X).\n" #define MSGTR_LIBVO_SDL_InfoPleaseUseVmOrZoom "[VO_SDL] Info - por favor utiliza -vm ó -zoom para cambiar a la mejor resolución.\n" #define MSGTR_LIBVO_SDL_FailedToSetVideoMode "[VO_SDL] Fallè tratando de setear el modo de video: %s.\n" #define MSGTR_LIBVO_SDL_CouldntCreateAYUVOverlay "[VO_SDL] No pude crear un overlay YUV: %s.\n" #define MSGTR_LIBVO_SDL_CouldntCreateARGBSurface "[VO_SDL] No pude crear una superficie RGB: %s.\n" #define MSGTR_LIBVO_SDL_UsingDepthColorspaceConversion "[VO_SDL] Utilizando conversión de depth/colorspace, va a andar un poco más lento.. (%ibpp -> %ibpp).\n" #define MSGTR_LIBVO_SDL_UnsupportedImageFormatInDrawslice "[VO_SDL] Formato no soportado de imagen en draw_slice, contacta a los desarrolladores de MPlayer!\n" #define MSGTR_LIBVO_SDL_BlitFailed "[VO_SDL] Blit falló: %s.\n" #define MSGTR_LIBVO_SDL_InitializationFailed "[VO_SDL] Fallo la inicialización de SDL: %s.\n" #define MSGTR_LIBVO_SDL_UsingDriver "[VO_SDL] Utilizando el driver: %s.\n" // vo_svga.c #define MSGTR_LIBVO_SVGA_ForcedVidmodeNotAvailable "[VO_SVGA] El vid_mode forzado %d (%s) no esta disponible.\n" #define MSGTR_LIBVO_SVGA_ForcedVidmodeTooSmall "[VO_SVGA] El vid_mode forzado %d (%s) es muy pequeño.\n" #define MSGTR_LIBVO_SVGA_Vidmode "[VO_SVGA] Vid_mode: %d, %dx%d %dbpp.\n" #define MSGTR_LIBVO_SVGA_VgasetmodeFailed "[VO_SVGA] Vga_setmode(%d) fallido.\n" #define MSGTR_LIBVO_SVGA_VideoModeIsLinearAndMemcpyCouldBeUsed "[VO_SVGA] El modo de vídeo es lineal y memcpy se puede usar para la transferencia de imágenes.\n" #define MSGTR_LIBVO_SVGA_VideoModeHasHardwareAcceleration "[VO_SVGA] El modo de video dispone de aceleración por hardware y put_image puede ser utilizada.\n" #define MSGTR_LIBVO_SVGA_IfItWorksForYouIWouldLikeToKnow "[VO_SVGA] Si le ha funcionado nos gustaría saberlo.\n[VO_SVGA] (mande un registro con `mplayer test.avi -v -v -v -v &> svga.log`). ¡Gracias!\n" #define MSGTR_LIBVO_SVGA_VideoModeHas "[VO_SVGA] El modo de video tiene %d pagina(s).\n" #define MSGTR_LIBVO_SVGA_CenteringImageStartAt "[VO_SVGA] Centrando imagen, comenzando en (%d,%d)\n" #define MSGTR_LIBVO_SVGA_UsingVidix "[VO_SVGA] Utilizando VIDIX. w=%i h=%i mw=%i mh=%i\n" // vo_tdfx_vid.c #define MSGTR_LIBVO_TDFXVID_Move "[VO_TDXVID] Move %d(%d) x %d => %d.\n" #define MSGTR_LIBVO_TDFXVID_AGPMoveFailedToClearTheScreen "[VO_TDFXVID] El AGP move falló al tratar de limpiar la pantalla.\n" #define MSGTR_LIBVO_TDFXVID_BlitFailed "[VO_TDFXVID] Fallo el Blit.\n" #define MSGTR_LIBVO_TDFXVID_NonNativeOverlayFormatNeedConversion "[VO_TDFXVID] El formato overlay no-nativo requiere conversión.\n" #define MSGTR_LIBVO_TDFXVID_UnsupportedInputFormat "[VO_TDFXVID] Formato de entrada no soportado 0x%x.\n" #define MSGTR_LIBVO_TDFXVID_OverlaySetupFailed "[VO_TDFXVID] Fallo en la configuración del overlay.\n" #define MSGTR_LIBVO_TDFXVID_OverlayOnFailed "[VO_TDFXVID] Falló el Overlay on .\n" #define MSGTR_LIBVO_TDFXVID_OverlayReady "[VO_TDFXVID] Overlay listo: %d(%d) x %d @ %d => %d(%d) x %d @ %d.\n" #define MSGTR_LIBVO_TDFXVID_TextureBlitReady "[VO_TDFXVID] Blit de textura listo: %d(%d) x %d @ %d => %d(%d) x %d @ %d.\n" #define MSGTR_LIBVO_TDFXVID_OverlayOffFailed "[VO_TDFXVID] Falló el Overlay off\n" #define MSGTR_LIBVO_TDFXVID_CantOpen "[VO_TDFXVID] No pude abrir %s: %s.\n" #define MSGTR_LIBVO_TDFXVID_CantGetCurrentCfg "[VO_TDFXVID] No pude obtener la cfg actual: %s.\n" #define MSGTR_LIBVO_TDFXVID_MemmapFailed "[VO_TDFXVID] Falló el Memmap!!!!!\n" #define MSGTR_LIBVO_TDFXVID_GetImageTodo "Get image todo.\n" #define MSGTR_LIBVO_TDFXVID_AgpMoveFailed "[VO_TDFXVID] Fallo el AGP move.\n" #define MSGTR_LIBVO_TDFXVID_SetYuvFailed "[VO_TDFXVID] Falló set yuv\n" #define MSGTR_LIBVO_TDFXVID_AgpMoveFailedOnYPlane "[VO_TDFXVID] El AGP move falló en el plano Y\n" #define MSGTR_LIBVO_TDFXVID_AgpMoveFailedOnUPlane "[VO_TDFXVID] El AGP move falló en el plano U\n" #define MSGTR_LIBVO_TDFXVID_AgpMoveFailedOnVPlane "[VO_TDFXVID] El AGP move fallo en el plano V\n" #define MSGTR_LIBVO_TDFXVID_UnknownFormat "[VO_TDFXVID] Qué es esto como formato 0x%x?\n" // vo_tdfxfb.c #define MSGTR_LIBVO_TDFXFB_CantOpen "[VO_TDFXFB] No pude abrir %s: %s.\n" #define MSGTR_LIBVO_TDFXFB_ProblemWithFbitgetFscreenInfo "[VO_TDFXFB] Problema con el ioctl FBITGET_FSCREENINFO: %s.\n" #define MSGTR_LIBVO_TDFXFB_ProblemWithFbitgetVscreenInfo "[VO_TDFXFB] Problema con el ioctl FBITGET_VSCREENINFO: %s.\n" #define MSGTR_LIBVO_TDFXFB_ThisDriverOnlySupports "[VO_TDFXFB] Este driver solo soporta las 3Dfx Banshee, Voodoo3 y Voodoo 5.\n" #define MSGTR_LIBVO_TDFXFB_OutputIsNotSupported "[VO_TDFXFB] La salida %d bpp no esta soporatda.\n" #define MSGTR_LIBVO_TDFXFB_CouldntMapMemoryAreas "[VO_TDFXFB] No pude mapear las áreas de memoria: %s.\n" #define MSGTR_LIBVO_TDFXFB_BppOutputIsNotSupported "[VO_TDFXFB] La salida %d bpp no esta soportada (esto de debería haber pasado).\n" #define MSGTR_LIBVO_TDFXFB_SomethingIsWrongWithControl "[VO_TDFXFB] Uh! algo anda mal con control().\n" #define MSGTR_LIBVO_TDFXFB_NotEnoughVideoMemoryToPlay "[VO_TDFXFB] No hay suficiente memoria de video para reproducir esta pelicula. Intenta con una resolución más baja.\n" #define MSGTR_LIBVO_TDFXFB_ScreenIs "[VO_TDFXFB] La pantalla es %dx%d a %d bpp, en %dx%d a %d bpp, la norma es %dx%d.\n" // vo_tga.c #define MSGTR_LIBVO_TGA_UnknownSubdevice "[VO_TGA] Sub-dispositivo desconocido: %s\n" // vo_vesa.c #define MSGTR_LIBVO_VESA_FatalErrorOccurred "[VO_VESA] Error fatal! no puedo continuar.\n" #define MSGTR_LIBVO_VESA_UnknownSubdevice "[VO_VESA] Sub-dispositivo desconocido: '%s'.\n" #define MSGTR_LIBVO_VESA_YouHaveTooLittleVideoMemory "[VO_VESA] Tienes muy poca memoria de video para este modo:\n[VO_VESA] Requiere: %08lX tienes: %08lX.\n" #define MSGTR_LIBVO_VESA_YouHaveToSpecifyTheCapabilitiesOfTheMonitor "[VO_VESA] Tienes que especificar las capacidades del monitor. No voy a cambiar la tasa de refresco.\n" #define MSGTR_LIBVO_VESA_UnableToFitTheMode "[VO_VESA] No pude encajar este modo en las limitaciones del monitor. No voy a cambiar la tasa de refresco.\n" #define MSGTR_LIBVO_VESA_DetectedInternalFatalError "[VO_VESA] Error fatal interno detectado: init se llamado despues de preinit.\n" #define MSGTR_LIBVO_VESA_SwitchFlipIsNotSupported "[VO_VESA] Switch -flip no esta soportado.\n" #define MSGTR_LIBVO_VESA_PossibleReasonNoVbe2BiosFound "[VO_VESA] Razón posible: No se encontró una BIOS VBE2.\n" #define MSGTR_LIBVO_VESA_FoundVesaVbeBiosVersion "[VO_VESA] Enontré una versión de BIOS VESA VBE %x.%x Revisión: %x.\n" #define MSGTR_LIBVO_VESA_VideoMemory "[VO_VESA] Memoria de video: %u Kb.\n" #define MSGTR_LIBVO_VESA_Capabilites "[VO_VESA] Capacidades VESA: %s %s %s %s %s.\n" #define MSGTR_LIBVO_VESA_BelowWillBePrintedOemInfo "[VO_VESA] !!! abajo se imprimira información OEM. !!!\n" #define MSGTR_LIBVO_VESA_YouShouldSee5OemRelatedLines "[VO_VESA] Deberias ver 5 lineas con respecto a OEM abajo; sino, has arruinado vm86.\n" #define MSGTR_LIBVO_VESA_OemInfo "[VO_VESA] Información OEM: %s.\n" #define MSGTR_LIBVO_VESA_OemRevision "[VO_VESA] OEM Revisión: %x.\n" #define MSGTR_LIBVO_VESA_OemVendor "[VO_VESA] OEM vendor: %s.\n" #define MSGTR_LIBVO_VESA_OemProductName "[VO_VESA] OEM Product Name: %s.\n" #define MSGTR_LIBVO_VESA_OemProductRev "[VO_VESA] OEM Product Rev: %s.\n" #define MSGTR_LIBVO_VESA_Hint "[VO_VESA] Consejo: Para que el TV_Out te funcione tienes que conectarla\n"\ "[VO_VESA] antes de que el pc bootee por que la BIOS VESA solo se inicializa a si misma durante el POST.\n" #define MSGTR_LIBVO_VESA_UsingVesaMode "[VO_VESA] Utilizando el modo VESA (%u) = %x [%ux%u@%u]\n" #define MSGTR_LIBVO_VESA_CantInitializeSwscaler "[VO_VESA] No pude inicializar el SwScaler.\n" #define MSGTR_LIBVO_VESA_CantUseDga "[VO_VESA] No puedo utilizar DGA. fuersa el modo bank switching. :(\n" #define MSGTR_LIBVO_VESA_UsingDga "[VO_VESA] Utilizand DGA (recursos físicos: %08lXh, %08lXh)" #define MSGTR_LIBVO_VESA_CantUseDoubleBuffering "[VO_VESA] No puedo utilizar double buffering: No hay suficiente memoria de video.\n" #define MSGTR_LIBVO_VESA_CantFindNeitherDga "[VO_VESA] No pude encontrar DGA o un cuadro de ventana relocatable.\n" #define MSGTR_LIBVO_VESA_YouveForcedDga "[VO_VESA] Tenemos DGA forzado. Saliendo.\n" #define MSGTR_LIBVO_VESA_CantFindValidWindowAddress "[VO_VESA] No pude encontrar una dirección de ventana válida.\n" #define MSGTR_LIBVO_VESA_UsingBankSwitchingMode "[VO_VESA] Utilizando modo bank switching (recursos físicos: %08lXh, %08lXh).\n" #define MSGTR_LIBVO_VESA_CantAllocateTemporaryBuffer "[VO_VESA] No pude disponer de un buffer temporal.\n" #define MSGTR_LIBVO_VESA_SorryUnsupportedMode "[VO_VESA] Sorry, formato no soportado -- trata con -x 640 -zoom.\n" #define MSGTR_LIBVO_VESA_OhYouReallyHavePictureOnTv "[VO_VESA] Oh! mira! realmente tienes una imagen en la TV!\n" #define MSGTR_LIBVO_VESA_CantInitialozeLinuxVideoOverlay "[VO_VESA] No pude inicializar el Video Overlay Linux.\n" #define MSGTR_LIBVO_VESA_UsingVideoOverlay "[VO_VESA] Utilizando overlay de video: %s.\n" #define MSGTR_LIBVO_VESA_CantInitializeVidixDriver "[VO_VESA] No pude inicializar el driver VIDIX.\n" #define MSGTR_LIBVO_VESA_UsingVidix "[VO_VESA] Utilizando VIDIX.\n" #define MSGTR_LIBVO_VESA_CantFindModeFor "[VO_VESA] No pude encontrar un modo para: %ux%u@%u.\n" #define MSGTR_LIBVO_VESA_InitializationComplete "[VO_VESA] Inicialización VESA completa.\n" // vesa_lvo.c #define MSGTR_LIBVO_VESA_ThisBranchIsNoLongerSupported "[VESA_LVO] Este branch ya no esta soportado.\n[VESA_LVO] Por favor utiliza -vo vesa:vidix en su lugar.\n" #define MSGTR_LIBVO_VESA_CouldntOpen "[VESA_LVO] No pude abrir: '%s'\n" #define MSGTR_LIBVO_VESA_InvalidOutputFormat "[VESA_LVI] Formato de salida inválido: %s(%0X)\n" #define MSGTR_LIBVO_VESA_IncompatibleDriverVersion "[VESA_LVO] La version de tu driver fb_vid no es compatible con esta versión de MPlayer!\n" // vo_x11.c // vo_xv.c #define MSGTR_LIBVO_XV_SharedMemoryNotSupported "[VO_XV] Memoria compartida no soportada\nVolviendo al Xv normal.\n" #define MSGTR_LIBVO_XV_XvNotSupportedByX11 "[VO_XV] Perdone, Xv no está soportado por esta versión/driver de X11\n[VO_XV] ******** Pruebe con -vo x11 o -vo sdl *********\n" #define MSGTR_LIBVO_XV_XvQueryAdaptorsFailed "[VO_XV] XvQueryAdaptors ha fallado.\n" #define MSGTR_LIBVO_XV_InvalidPortParameter "[VO_XV] Parámetro de puerto inválido, invalidándolo con el puerto 0.\n" #define MSGTR_LIBVO_XV_CouldNotGrabPort "[VO_XV] No se ha podido fijar el puerto %i.\n" #define MSGTR_LIBVO_XV_CouldNotFindFreePort "[VO_XV] No se ha podido encontrar ningún puerto Xvideo libre - quizás otro proceso ya lo está usando\n"\ "[VO_XV] usándolo. Cierre todas las aplicaciones de vídeo, y pruebe otra vez\n"\ "[VO_XV] Si eso no ayuda, vea 'mplayer -vo help' para otros (no-xv) drivers de salida de vídeo.\n" #define MSGTR_LIBVO_XV_NoXvideoSupport "[VO_XV] Parece que no hay soporte Xvideo para su tarjeta gráfica.\n"\ "[VO_XV] Ejecute 'xvinfo' para verificar el soporte Xv y lea\n"\ "[VO_XV] DOCS/HTML/en/video.html#xv!\n"\ "[VO_XV] Revise otros drivers de salida de video (no-xv) con 'mplayer -vo help'.\n"\ "[VO_XV] Intente -vo x11.\n" #define MSGTR_VO_XV_ImagedimTooHigh "Las dimensiones de la imagen de origen son demasiado grandes: %ux%u (el máximo es %ux%u)\n" // vo_yuv4mpeg.c #define MSGTR_VO_YUV4MPEG_InterlacedHeightDivisibleBy4 "Modo interlaceado requiere que la altura de la imagen sea divisible por 4." #define MSGTR_VO_YUV4MPEG_WidthDivisibleBy2 "El ancho de la imagen debe ser divisible por 2." #define MSGTR_VO_YUV4MPEG_OutFileOpenError "Imposible obtener memoria o descriptor de archivos para escribir \"%s\"!" #define MSGTR_VO_YUV4MPEG_OutFileWriteError "Error escribiendo imagen a la salida!" #define MSGTR_VO_YUV4MPEG_UnknownSubDev "Se desconoce el subdevice: %s" #define MSGTR_VO_YUV4MPEG_InterlacedTFFMode "Usando modo de salida interlaceado, top-field primero." #define MSGTR_VO_YUV4MPEG_InterlacedBFFMode "Usando modo de salida interlaceado, bottom-field primero." #define MSGTR_VO_YUV4MPEG_ProgressiveMode "Usando (por defecto) modo de cuadro progresivo." // vobsub_vidix.c #define MSGTR_LIBVO_SUB_VIDIX_CantStartPlayback "[VO_SUB_VIDIX] No puedo iniciar la reproducción: %s\n" #define MSGTR_LIBVO_SUB_VIDIX_CantStopPlayback "[VO_SUB_VIDIX] No puedo parar la reproducción: %s\n" #define MSGTR_LIBVO_SUB_VIDIX_InterleavedUvForYuv410pNotSupported "[VO_SUB_VIDIX] Interleaved uv para yuv410p no soportado.\n" #define MSGTR_LIBVO_SUB_VIDIX_DummyVidixdrawsliceWasCalled "[VO_SUB_VIDIX] Dummy vidix_draw_slice() fue llamada.\n" #define MSGTR_LIBVO_SUB_VIDIX_UnsupportedFourccForThisVidixDriver "[VO_SUB_VIDIX] fourcc no soportado para este driver vidix: %x (%s).\n" #define MSGTR_LIBVO_SUB_VIDIX_VideoServerHasUnsupportedResolution "[VO_SUB_VIDIX] El servidor de video server tiene una resolución no soportada (%dx%d), soportadas: %dx%d-%dx%d.\n" #define MSGTR_LIBVO_SUB_VIDIX_VideoServerHasUnsupportedColorDepth "[VO_SUB_VIDIX] Video server has unsupported color depth by vidix (%d).\n" #define MSGTR_LIBVO_SUB_VIDIX_DriverCantUpscaleImage "[VO_SUB_VIDIX] El driver Vidix no puede ampliar la imagen (%d%d -> %d%d).\n" #define MSGTR_LIBVO_SUB_VIDIX_DriverCantDownscaleImage "[VO_SUB_VIDIX] El driver Vidix no puede reducir la imagen (%d%d -> %d%d).\n" #define MSGTR_LIBVO_SUB_VIDIX_CantConfigurePlayback "[VO_SUB_VIDIX] No pude configurar la reproducción: %s.\n" #define MSGTR_LIBVO_SUB_VIDIX_CouldntFindWorkingVidixDriver "[VO_SUB_VIDIX] No pude encontrar un driver VIDIX que funcione.\n" #define MSGTR_LIBVO_SUB_VIDIX_CouldntGetCapability "[VO_SUB_VIDIX] No pude obtener la capacidad: %s.\n" // x11_common.c #define MSGTR_EwmhFullscreenStateFailed "\nX11: ¡No se pudo enviar evento de pantalla completa EWMH!\n" #define MSGTR_SelectedVideoMode "XF86VM: Modo de video seleccionado %dx%d para tamaño de imagen %dx%d.\n" #define MSGTR_InsertingAfVolume "[Mixer] No se ecnontró mezclador de volumen por hardware, insertando filtro de volumen.\n" #define MSGTR_NoVolume "[Mixer] No hay un control de volumen disponible.\n" #define MSGTR_NoBalance "[Mixer] No hay un control de balance disponible.\n" // Controladores vo viejos que han sido reemplazados #define MSGTR_VO_PGM_HasBeenReplaced "El controlador de salida pgm ha sido reemplazado por -vo pnm:pgmyuv.\n" #define MSGTR_VO_MD5_HasBeenReplaced "El controlador de salida md5 ha sido reemplazado por -vo md5sum.\n" // ======================= audio output drivers ======================== // audio_out.c #define MSGTR_AO_ALSA9_1x_Removed "audio_out: los módulos alsa9 y alsa1x fueron eliminados, usa -ao alsa.\n" #define MSGTR_AO_NoSuchDriver "No existe ese controlador de audio '%.*s'\n" #define MSGTR_AO_FailedInit "Fallo al inicializar controlador de audio '%s'\n" // ao_oss.c #define MSGTR_AO_OSS_CantOpenMixer "[AO OSS] audio_setup: Imposible abrir dispositivo mezclador %s: %s\n" #define MSGTR_AO_OSS_ChanNotFound "[AO OSS] audio_setup: El mezclador de la tarjeta de audio no tiene el canal '%s' usando valor por omisión.\n" #define MSGTR_AO_OSS_CantOpenDev "[AO OSS] audio_setup: Imposible abrir dispositivo de audio %s: %s\n" #define MSGTR_AO_OSS_CantMakeFd "[AO OSS] audio_setup: Imposible crear descriptor de archivo, bloqueando: %s\n" #define MSGTR_AO_OSS_CantSet "[AO OSS] No puedo configurar el dispositivo de audio %s para salida %s, tratando %s...\n" #define MSGTR_AO_OSS_CantSetChans "[AO OSS] audio_setup: Imposible configurar dispositivo de audio a %d channels.\n" #define MSGTR_AO_OSS_CantUseGetospace "[AO OSS] audio_setup: El controlador no soporta SNDCTL_DSP_GETOSPACE :-(\n" #define MSGTR_AO_OSS_CantUseSelect "[AO OSS]\n *** Su controlador de audio no soporta select() ***\n Recompile MPlayer con #undef HAVE_AUDIO_SELECT en config.h !\n\n" #define MSGTR_AO_OSS_CantReopen "[AO OSS]\n Error fatal: *** Imposible RE-ABRIR / RESETEAR DISPOSITIVO DE AUDIO *** %s\n" #define MSGTR_AO_OSS_UnknownUnsupportedFormat "[AO OSS] Formato OSS Desconocido/No-soportado: %x.\n" // ao_arts.c #define MSGTR_AO_ARTS_CantInit "[AO ARTS] %s\n" #define MSGTR_AO_ARTS_ServerConnect "[AO ARTS] Conectado al servidor de sonido.\n" #define MSGTR_AO_ARTS_CantOpenStream "[AO ARTS] Imposible abrir stream.\n" #define MSGTR_AO_ARTS_StreamOpen "[AO ARTS] Stream Abierto.\n" #define MSGTR_AO_ARTS_BufferSize "[AO ARTS] Tamaño del buffer: %d\n" // ao_dxr2.c #define MSGTR_AO_DXR2_SetVolFailed "[AO DXR2] Fallo Seteando volumen en %d.\n" #define MSGTR_AO_DXR2_UnsupSamplerate "[AO DXR2] dxr2: %d Hz no soportado, trate \"-aop list=resample\"\n" // ao_esd.c #define MSGTR_AO_ESD_CantOpenSound "[AO ESD] Fallo en esd_open_sound: %s\n" #define MSGTR_AO_ESD_LatencyInfo "[AO ESD] latencia: [servidor: %0.2fs, red: %0.2fs] (ajuste %0.2fs)\n" #define MSGTR_AO_ESD_CantOpenPBStream "[AO ESD] Fallo abriendo playback stream esd: %s\n" // ao_mpegpes.c #define MSGTR_AO_MPEGPES_CantSetMixer "[AO MPEGPES] Fallo configurando mezclador de audio DVB:%s\n" #define MSGTR_AO_MPEGPES_UnsupSamplerate "[AO MPEGPES] %d Hz no soportado, trate de resamplear...\n" // ao_pcm.c #define MSGTR_AO_PCM_FileInfo "[AO PCM] Archivo: %s (%s)\nPCM: Samplerate: %iHz Canales: %s Formato %s\n" #define MSGTR_AO_PCM_HintInfo "[AO PCM] Info: El volcado más rápido se logra con -vc null -vo null\nPCM: Info: Para escribir archivos de onda (WAVE) use -ao pcm:waveheader (valor por omisión).\n" #define MSGTR_AO_PCM_CantOpenOutputFile "[AO PCM] Imposible abrir %s para escribir!\n" // ao_sdl.c #define MSGTR_AO_SDL_INFO "[AO SDL] Samplerate: %iHz Canales: %s Formato %s\n" #define MSGTR_AO_SDL_DriverInfo "[AO SDL] usando controlador de audio: %s .\n" #define MSGTR_AO_SDL_UnsupportedAudioFmt "[AO SDL] Formato de audio no soportado: 0x%x.\n" #define MSGTR_AO_SDL_CantInit "[AO SDL] Error inicializando audio SDL: %s\n" #define MSGTR_AO_SDL_CantOpenAudio "[AO SDL] Imposible abrir audio: %s\n" // ao_sgi.c #define MSGTR_AO_SGI_INFO "[AO SGI] control.\n" #define MSGTR_AO_SGI_InitInfo "[AO SGI] init: Samplerate: %iHz Canales: %s Formato %s\n" #define MSGTR_AO_SGI_InvalidDevice "[AO SGI] play: dispositivo inválido.\n" #define MSGTR_AO_SGI_CantSetParms_Samplerate "[AO SGI] init: fallo en setparams: %s\nImposble configurar samplerate deseado.\n" #define MSGTR_AO_SGI_CantSetAlRate "[AO SGI] init: AL_RATE No fue aceptado en el recurso dado.\n" #define MSGTR_AO_SGI_CantGetParms "[AO SGI] init: fallo en getparams: %s\n" #define MSGTR_AO_SGI_SampleRateInfo "[AO SGI] init: samplerate es ahora %f (el deseado es %f)\n" #define MSGTR_AO_SGI_InitConfigError "[AO SGI] init: %s\n" #define MSGTR_AO_SGI_InitOpenAudioFailed "[AO SGI] init: Imposible abrir canal de audio: %s\n" #define MSGTR_AO_SGI_Uninit "[AO SGI] uninit: ...\n" #define MSGTR_AO_SGI_Reset "[AO SGI] reseteando: ...\n" #define MSGTR_AO_SGI_PauseInfo "[AO SGI] audio_pausa: ...\n" #define MSGTR_AO_SGI_ResumeInfo "[AO SGI] audio_continuar: ...\n" // ao_sun.c #define MSGTR_AO_SUN_RtscSetinfoFailed "[AO SUN] rtsc: Fallo en SETINFO.\n" #define MSGTR_AO_SUN_RtscWriteFailed "[AO SUN] rtsc: Fallo escribiendo." #define MSGTR_AO_SUN_CantOpenAudioDev "[AO SUN] Imposible abrir dispositivo de audio %s, %s -> nosound.\n" #define MSGTR_AO_SUN_UnsupSampleRate "[AO SUN] audio_setup: Su tarjeta no soporta el canal %d, %s, %d Hz samplerate.\n" // ao_alsa.c #define MSGTR_AO_ALSA_InvalidMixerIndexDefaultingToZero "[AO_ALSA] Índice del mezclador inválido. Usando 0.\n" #define MSGTR_AO_ALSA_MixerOpenError "[AO_ALSA] Mezclador, error abriendo: %s\n" #define MSGTR_AO_ALSA_MixerAttachError "[AO_ALSA] Mezclador, adjunto %s error: %s\n" #define MSGTR_AO_ALSA_MixerRegisterError "[AO_ALSA] Mezclador, error de registro: %s\n" #define MSGTR_AO_ALSA_MixerLoadError "[AO_ALSA] Mezclador, error de carga: %s\n" #define MSGTR_AO_ALSA_UnableToFindSimpleControl "[AO_ALSA] Incapaz de encontrar un control simple '%s',%i.\n" #define MSGTR_AO_ALSA_ErrorSettingLeftChannel "[AO_ALSA] Error estableciendo el canal izquierdo, %s\n" #define MSGTR_AO_ALSA_ErrorSettingRightChannel "[AO_ALSA] Error estableciendo el canal derecho, %s\n" #define MSGTR_AO_ALSA_CommandlineHelp "\n[AO_ALSA] -ao alsa ayuda línea de comandos:\n"\ "[AO_ALSA] Ejemplo: mplayer -ao alsa:dispositivo=hw=0.3\n"\ "[AO_ALSA] Establece como primera tarjeta el cuarto dispositivo de hardware.\n\n"\ "[AO_ALSA] Opciones:\n"\ "[AO_ALSA] noblock\n"\ "[AO_ALSA] Abre el dispositivo en modo sin bloqueo.\n"\ "[AO_ALSA] device=<nombre-dispositivo>\n"\ "[AO_ALSA] Establece el dispositivo (cambiar , por . y : por =)\n" #define MSGTR_AO_ALSA_ChannelsNotSupported "[AO_ALSA] %d canales no están soportados.\n" #define MSGTR_AO_ALSA_OpenInNonblockModeFailed "[AO_ALSA] La apertura en modo sin bloqueo ha fallado, intentando abrir en modo bloqueo.\n" #define MSGTR_AO_ALSA_PlaybackOpenError "[AO_ALSA] Error de apertura en la reproducción: %s\n" #define MSGTR_AO_ALSA_ErrorSetBlockMode "[AL_ALSA] Error estableciendo el modo bloqueo %s.\n" #define MSGTR_AO_ALSA_UnableToGetInitialParameters "[AO_ALSA] Incapaz de obtener los parámetros iniciales: %s\n" #define MSGTR_AO_ALSA_UnableToSetAccessType "[AO_ALSA] Incapaz de establecer el tipo de acceso: %s\n" #define MSGTR_AO_ALSA_FormatNotSupportedByHardware "[AO_ALSA] Formato %s no soportado por el hardware, intentando la opción por defecto.\n" #define MSGTR_AO_ALSA_UnableToSetFormat "[AO_ALSA] Incapaz de establecer el formato: %s\n" #define MSGTR_AO_ALSA_UnableToSetChannels "[AO_ALSA] Incapaz de establecer los canales: %s\n" #define MSGTR_AO_ALSA_UnableToDisableResampling "[AO_ALSA] Incapaz de deshabilitar el resampling: %s\n" #define MSGTR_AO_ALSA_UnableToSetSamplerate2 "[AO_ALSA] Incapaz de establecer el samplerate-2: %s\n" #define MSGTR_AO_ALSA_UnableToSetBufferTimeNear "[AO_ALSA] Incapaz de establecer el tiempo del buffer: %s\n" #define MSGTR_AO_ALSA_UnableToGetPeriodSize "[AO ALSA] Incapaz de obtener el tamaño del período: %s\n" #define MSGTR_AO_ALSA_UnableToSetPeriods "[AO_ALSA] Incapaz de establecer períodos: %s\n" #define MSGTR_AO_ALSA_UnableToSetHwParameters "[AO_ALSA] Incapaz de establecer parámatros de hw: %s\n" #define MSGTR_AO_ALSA_UnableToGetBufferSize "[AO_ALSA] Incapaz de obtener el tamaño del buffer: %s\n" #define MSGTR_AO_ALSA_UnableToGetSwParameters "[AO_ALSA] Incapaz de obtener parámatros de sw: %s\n" #define MSGTR_AO_ALSA_UnableToGetBoundary "[AO_ALSA] Incapaz de obtener el límite: %s\n" #define MSGTR_AO_ALSA_UnableToSetStartThreshold "[AO_ALSA] Incapaz de establecer el umbral de comienzo: %s\n" #define MSGTR_AO_ALSA_UnableToSetStopThreshold "[AO_ALSA] Incapaz de establecer el umbral de parada: %s\n" #define MSGTR_AO_ALSA_UnableToSetSilenceSize "[AO_ALSA] Incapaz de establecer el tamaño del silencio: %s\n" #define MSGTR_AO_ALSA_PcmCloseError "[AO_ALSA] pcm error de clausura: %s\n" #define MSGTR_AO_ALSA_NoHandlerDefined "[AO_ALSA] ¡Ningún manejador definido!\n" #define MSGTR_AO_ALSA_PcmPrepareError "[AO_ALSA] pcm error de preparación: %s\n" #define MSGTR_AO_ALSA_PcmPauseError "[AO_ALSA] pcm error de pausa: %s\n" #define MSGTR_AO_ALSA_PcmDropError "[AO_ALSA] pcm error de pérdida: %s\n" #define MSGTR_AO_ALSA_PcmResumeError "[AO_ALSA] pcm error volviendo al estado normal: %s\n" #define MSGTR_AO_ALSA_DeviceConfigurationError "[AO_ALSA] Error de configuración del dispositivo." #define MSGTR_AO_ALSA_PcmInSuspendModeTryingResume "[AO_ALSA] Pcm en modo suspendido, intentando volver al estado normal.\n" #define MSGTR_AO_ALSA_WriteError "[AO_ALSA] Error de escritura: %s\n" #define MSGTR_AO_ALSA_TryingToResetSoundcard "[AO_ALSA] Intentando resetear la tarjeta de sonido.\n" #define MSGTR_AO_ALSA_CannotGetPcmStatus "[AO_ALSA] No se puede obtener el estado pcm: %s\n" // ao_plugin.c // ======================= audio filters ================================ // af_scaletempo.c #define MSGTR_AF_ValueOutOfRange MSGTR_VO_ValueOutOfRange // af_ladspa.c #define MSGTR_AF_LADSPA_AvailableLabels "Etiquetas disponibles en" #define MSGTR_AF_LADSPA_WarnNoInputs "ADVERTENCIA! Este plugin LADSPA no tiene entradas de audio.\n La señal de entrada de audio se perderá." #define MSGTR_AF_LADSPA_ErrNoOutputs "Este plugín LADSPA no tiene salidas de audio." #define MSGTR_AF_LADSPA_ErrInOutDiff "El número de entradas y de salidas de audio de este plugin LADSPA son distintas." #define MSGTR_AF_LADSPA_ErrFailedToLoad "Fallo la carga." #define MSGTR_AF_LADSPA_ErrNoDescriptor "No se pudo encontrar la función ladspa_descriptor() en el archivo de biblioteca especificado." #define MSGTR_AF_LADSPA_ErrLabelNotFound "No se puede encontrar la etiqueta en la biblioteca del plugin." #define MSGTR_AF_LADSPA_ErrNoSuboptions "No se especificaron subopciones" #define MSGTR_AF_LADSPA_ErrNoLibFile "No se especificó archivo de biblioteca" #define MSGTR_AF_LADSPA_ErrNoLabel "No se especificó etiqueta del filtro" #define MSGTR_AF_LADSPA_ErrNotEnoughControls "No se especificaron suficientes controles en la línea de comando" #define MSGTR_AF_LADSPA_ErrControlBelow "%s: Control de entrada #%d esta abajo del límite inferior que es %0.4f.\n" #define MSGTR_AF_LADSPA_ErrControlAbove "%s: Control de entrada #%d esta por encima del límite superior que es %0.4f.\n" // format.c #define MSGTR_AF_FORMAT_UnknownFormat "formato desconocido " // ========================== INPUT ========================================= // joystick.c #define MSGTR_INPUT_JOYSTICK_CantOpen "Imposible abrir joystick %s : %s\n" #define MSGTR_INPUT_JOYSTICK_ErrReading "Error leyendo dispositivo joystick : %s\n" #define MSGTR_INPUT_JOYSTICK_LoosingBytes "Joystick : perdimos %d bytes de datos\n" #define MSGTR_INPUT_JOYSTICK_WarnLostSync "Joystick : Advertencia, init event, perdimos sync con el driver\n" #define MSGTR_INPUT_JOYSTICK_WarnUnknownEvent "Joystick : Advertencia, tipo de evento desconocido %d\n" // appleir.c #define MSGTR_INPUT_APPLE_IR_CantOpen "Imposible abrir dispositivo Apple IR: %s\n" // input.c #define MSGTR_INPUT_INPUT_ErrCantRegister2ManyCmdFds "Demaciados fds de comandos, imposible registrar fd %d.\n" #define MSGTR_INPUT_INPUT_ErrCantRegister2ManyKeyFds "Demaciados fds de teclas, imposible registrar fd %d.\n" #define MSGTR_INPUT_INPUT_ErrArgMustBeInt "Comando %s: argumento %d no es un entero.\n" #define MSGTR_INPUT_INPUT_ErrArgMustBeFloat "Comando %s: argumento %d no es punto flotante.\n" #define MSGTR_INPUT_INPUT_ErrUnterminatedArg "Commando %s: argumento %d no está terminado.\n" #define MSGTR_INPUT_INPUT_ErrUnknownArg "Argumento desconocido %d\n" #define MSGTR_INPUT_INPUT_Err2FewArgs "Comando %s requiere a lo menos %d argumentos, solo encontramos %d hasta ahora.\n" #define MSGTR_INPUT_INPUT_ErrReadingCmdFd "Error leyendo fd de comandos %d: %s\n" #define MSGTR_INPUT_INPUT_ErrCmdBufferFullDroppingContent "Buffer de comandos de fd %d lleno: botando contenido\n" #define MSGTR_INPUT_INPUT_ErrInvalidCommandForKey "Comando inválido asignado a la tecla %s" #define MSGTR_INPUT_INPUT_ErrSelect "Error en Select: %s\n" #define MSGTR_INPUT_INPUT_ErrOnKeyInFd "Error en fd %d de entrada de teclas\n" #define MSGTR_INPUT_INPUT_ErrDeadKeyOnFd "Ingreso de tecla muerta en fd %d\n" #define MSGTR_INPUT_INPUT_Err2ManyKeyDowns "Demaciados eventos de keydown al mismo tiempo\n" #define MSGTR_INPUT_INPUT_ErrOnCmdFd "Error en fd de comandos %d\n" #define MSGTR_INPUT_INPUT_ErrReadingInputConfig "Error leyendo archivo de configuración de input %s: %s\n" #define MSGTR_INPUT_INPUT_ErrUnknownKey "Tecla desconocida '%s'\n" #define MSGTR_INPUT_INPUT_ErrBuffer2SmallForKeyName "El buffer es demaciado pequeño para este nombre de tecla: %s\n" #define MSGTR_INPUT_INPUT_ErrNoCmdForKey "No se econtró un comando para la tecla %s" #define MSGTR_INPUT_INPUT_ErrBuffer2SmallForCmd "Buffer demaciado pequeño para el comando %s\n" #define MSGTR_INPUT_INPUT_ErrCantInitJoystick "No se puede inicializar la entrada del joystick\n" #define MSGTR_INPUT_INPUT_ErrCantOpenFile "No se puede abrir %s: %s\n" #define MSGTR_INPUT_INPUT_ErrCantInitAppleRemote "No se puede inicializar la entrada del Apple Remote.\n" // lirc.c #define MSGTR_LIRCopenfailed "Fallo al abrir el soporte para LIRC.\n" #define MSGTR_LIRCcfgerr "Fallo al leer archivo de configuración de LIRC %s.\n" // ========================== LIBMPDEMUX =================================== // muxer.c, muxer_*.c #define MSGTR_TooManyStreams "¡Demasiados streams!" #define MSGTR_RawMuxerOnlyOneStream "El muxer rawaudio soporta sólo un stream de audio!\n" #define MSGTR_IgnoringVideoStream "Ignorando stream de video!\n" #define MSGTR_UnknownStreamType "Advertencia! tipo de stream desconocido: %d\n" #define MSGTR_WarningLenIsntDivisible "¡Advertencia! ¡La longitud no es divisible por el tamaño del muestreo!\n" #define MSGTR_MuxbufMallocErr "No se puede asignar memoria para el frame buffer del Muxer!\n" #define MSGTR_MuxbufReallocErr "No se puede reasignar memoria para el frame buffer de del Muxer!\n" #define MSGTR_WritingHeader "Escribiendo la cabecera...\n" #define MSGTR_WritingTrailer "Escribiendo el índice...\n" // demuxer.c, demux_*.c #define MSGTR_AudioStreamRedefined "Advertencia! Cabecera de stream de audio %d redefinida!\n" #define MSGTR_VideoStreamRedefined "Advertencia! Cabecera de stream de video %d redefinida!\n" #define MSGTR_TooManyAudioInBuffer "\nDEMUXER: Demasiados (%d en %d bytes) paquetes de audio en el buffer!\n" #define MSGTR_TooManyVideoInBuffer "\nDEMUXER: Demasiados (%d en %d bytes) paquetes de video en el buffer!\n" #define MSGTR_MaybeNI "¿Estás reproduciendo un stream o archivo 'non-interleaved' o falló el codec?\n " \ "Para archivos .AVI, intente forzar el modo 'non-interleaved' con la opción -ni.\n" #define MSGTR_WorkAroundBlockAlignHeaderBug "AVI: Rodeo CBR-MP3 nBlockAlign" #define MSGTR_SwitchToNi "\nDetectado .AVI mal interleaveado - cambiando al modo -ni!\n" #define MSGTR_InvalidAudioStreamNosound "AVI: flujo de audio inválido ID: %d - ignorado (sin sonido)\n" #define MSGTR_InvalidAudioStreamUsingDefault "AVI: flujo de audio inválido ID: %d - ignorado (usando default)\n" #define MSGTR_ON2AviFormat "Formato ON2 AVI" #define MSGTR_Detected_XXX_FileFormat "Detectado formato de archivo %s.\n" #define MSGTR_FormatNotRecognized "Este formato no está soportado o reconocido. Si este archivo es un AVI, ASF o MPEG, por favor contacte con el autor.\n" #define MSGTR_SettingProcessPriority "Estableciendo la prioridad del proceso: %s\n" #define MSGTR_FilefmtFourccSizeFpsFtime "[V] filefmt:%d fourcc:0x%X tamaño:%dx%d fps:%5.3f ftime:=%6.4f\n" #define MSGTR_CannotInitializeMuxer "No se puede inicializar el muxer." #define MSGTR_MissingVideoStream "¡No se encontró stream de video!\n" #define MSGTR_MissingAudioStream "No se encontró el stream de audio, no se reproducirá sonido.\n" #define MSGTR_MissingVideoStreamBug "¡¿Stream de video perdido!? Contacta con el autor, podría ser un fallo.\n" #define MSGTR_DoesntContainSelectedStream "demux: El archivo no contiene el stream de audio o video seleccionado.\n" #define MSGTR_NI_Forced "Forzado" #define MSGTR_NI_Detected "Detectado" #define MSGTR_NI_Message "%s formato de AVI 'NON-INTERLEAVED'.\n" #define MSGTR_UsingNINI "Usando formato de AVI arruinado 'NON-INTERLEAVED'.\n" #define MSGTR_CouldntDetFNo "No se puede determinar el número de cuadros (para una búsqueda absoluta).\n" #define MSGTR_CantSeekRawAVI "No se puede avanzar o retroceder en un stream crudo .AVI (se requiere índice, prueba con -idx).\n" #define MSGTR_CantSeekFile "No se puede avanzar o retroceder en este archivo.\n" #define MSGTR_MOVcomprhdr "MOV: ¡Soporte de Cabecera comprimida requiere ZLIB!.\n" #define MSGTR_MOVvariableFourCC "MOV: Advertencia. ¡Variable FOURCC detectada!\n" #define MSGTR_MOVtooManyTrk "MOV: Advertencia. ¡Demasiadas pistas!" #define MSGTR_ErrorOpeningOGGDemuxer "No se puede abrir el demuxer ogg.\n" #define MSGTR_CannotOpenAudioStream "No se puede abrir stream de audio: %s\n" #define MSGTR_CannotOpenSubtitlesStream "No se puede abrir stream de subtítulos: %s\n" #define MSGTR_OpeningAudioDemuxerFailed "No se pudo abrir el demuxer de audio: %s\n" #define MSGTR_OpeningSubtitlesDemuxerFailed "No se pudo abrir demuxer de subtítulos: %s\n" #define MSGTR_TVInputNotSeekable "No se puede buscar en la entrada de TV.\n" #define MSGTR_DemuxerInfoChanged "Demuxer la información %s ha cambiado a %s\n" #define MSGTR_ClipInfo "Información de clip: \n" #define MSGTR_LeaveTelecineMode "\ndemux_mpg: contenido NTSC de 30000/1001cps detectado, cambiando cuadros por segundo.\n" #define MSGTR_EnterTelecineMode "\ndemux_mpg: contenido NTSC progresivo de 24000/1001cps detectado, cambiando cuadros por segundo.\n" #define MSGTR_CacheFill "\rLlenando cache: %5.2f%% (%"PRId64" bytes) " #define MSGTR_NoBindFound "No se econtró una asignación para la tecla '%s'\n" #define MSGTR_FailedToOpen "No se pudo abrir %s\n" #define MSGTR_VideoID "[%s] Stream de video encontrado, -vid %d\n" #define MSGTR_AudioID "[%s] Stream de audio encontrado, -aid %d\n" #define MSGTR_SubtitleID "[%s] Stream de subtítulos encontrado, -sid %d\n" // asfheader.c #define MSGTR_MPDEMUX_ASFHDR_HeaderSizeOver1MB "FATAL: más de 1 MB de tamaño del header (%d)!\nPor favor contacte a los autores de MPlayer y suba/envie este archivo.\n" #define MSGTR_MPDEMUX_ASFHDR_HeaderMallocFailed "Imposible obtener %d bytes para la cabecera\n" #define MSGTR_MPDEMUX_ASFHDR_EOFWhileReadingHeader "EOF Mientras leia la cabecera ASF, archivo dañado o incompleto?\n" #define MSGTR_MPDEMUX_ASFHDR_DVRWantsLibavformat "DVR quizas solo funcione con libavformat, intente con -demuxer 35 si tiene problemas\n" #define MSGTR_MPDEMUX_ASFHDR_NoDataChunkAfterHeader "No hay un chunk de datos despues de la cabecera!\n" #define MSGTR_MPDEMUX_ASFHDR_AudioVideoHeaderNotFound "ASF: No encuentro cabeceras de audio o video, archivo dañado?\n" #define MSGTR_MPDEMUX_ASFHDR_InvalidLengthInASFHeader "Largo inválido en la cabecera ASF!\n" #define MSGTR_MPDEMUX_ASFHDR_DRMLicenseURL "URL de la licencia DRM: %s\n" #define MSGTR_MPDEMUX_ASFHDR_DRMProtected "Este archivo tiene DRM encription, MPlayer no lo va a reproducir!\n" // aviheader.c #define MSGTR_MPDEMUX_AVIHDR_EmptyList "** Lista vacia?!\n" #define MSGTR_MPDEMUX_AVIHDR_WarnNotExtendedAVIHdr "Advertencia: esta no es una cabecera AVI extendida..\n" #define MSGTR_MPDEMUX_AVIHDR_BuildingODMLidx "AVI: ODML: Construyendo el índice odml (%d superindexchunks).\n" #define MSGTR_MPDEMUX_AVIHDR_BrokenODMLfile "AVI: ODML: Archivo arruinado (incompleto?) detectado. Utilizaré el índice tradicional.\n" #define MSGTR_MPDEMUX_AVIHDR_CantReadIdxFile "No pude leer el archivo de índice %s: %s\n" #define MSGTR_MPDEMUX_AVIHDR_NotValidMPidxFile "%s No es un archivo de índice MPlayer válido.\n" #define MSGTR_MPDEMUX_AVIHDR_FailedMallocForIdxFile "Imposible disponer de memoria suficiente para los datos de índice de %s\n" #define MSGTR_MPDEMUX_AVIHDR_PrematureEOF "El archivo de índice termina prematuramente %s\n" #define MSGTR_MPDEMUX_AVIHDR_IdxFileLoaded "El archivo de índice: %s fue cargado.\n" #define MSGTR_MPDEMUX_AVIHDR_GeneratingIdx "Generando Indice: %3lu %s \r" #define MSGTR_MPDEMUX_AVIHDR_IdxGeneratedForHowManyChunks "AVI: tabla de índices generada para %d chunks!\n" #define MSGTR_MPDEMUX_AVIHDR_Failed2WriteIdxFile "Imposible escribir el archivo de índice %s: %s\n" #define MSGTR_MPDEMUX_AVIHDR_IdxFileSaved "Archivo de índice guardado: %s\n" // demux_audio.c #define MSGTR_MPDEMUX_AUDIO_UnknownFormat "Audio demuxer: Formato desconocido %d.\n" // demux_demuxers.c #define MSGTR_MPDEMUX_DEMUXERS_FillBufferError "fill_buffer error: demuxer erroneo: no vd, ad o sd.\n" // demux_mkv.c #define MSGTR_MPDEMUX_MKV_ZlibInitializationFailed "[mkv] zlib la inicialización ha fallado.\n" #define MSGTR_MPDEMUX_MKV_ZlibDecompressionFailed "[mkv] zlib la descompresión ha fallado.\n" #define MSGTR_MPDEMUX_MKV_LzoDecompressionFailed "[mkv] lzo la descompresión ha fallado.\n" #define MSGTR_MPDEMUX_MKV_TrackEncrypted "[mkv] La pista número %u ha sido encriptada y la desencriptación no ha sido\n[mkv] todavía implementada. Omitiendo la pista.\n" #define MSGTR_MPDEMUX_MKV_UnknownContentEncoding "[mkv] Tipo de codificación desconocida para la pista %u. Omitiendo la pista.\n" #define MSGTR_MPDEMUX_MKV_UnknownCompression "[mkv] La pista %u ha sido comprimida con un algoritmo de compresión\n[mkv] desconocido o no soportado algoritmo (%u). Omitiendo la pista.\n" #define MSGTR_MPDEMUX_MKV_ZlibCompressionUnsupported "[mkv] La pista %u ha sido comprimida con zlib pero mplayer no ha sido\n[mkv] compilado con soporte para compresión con zlib. Omitiendo la pista.\n" #define MSGTR_MPDEMUX_MKV_TrackIDName "[mkv] Pista ID %u: %s (%s) \"%s\", %s\n" #define MSGTR_MPDEMUX_MKV_TrackID "[mkv] Pista ID %u: %s (%s), %s\n" #define MSGTR_MPDEMUX_MKV_UnknownCodecID "[mkv] CodecID (%s) desconocido/no soportado/erróneo/faltante Codec privado\n[mkv] datos (pista %u).\n" #define MSGTR_MPDEMUX_MKV_FlacTrackDoesNotContainValidHeaders "[mkv] La pista FLAC no contiene cabeceras válidas.\n" #define MSGTR_MPDEMUX_MKV_UnknownAudioCodec "[mkv] Codec de audio ID '%s' desconocido/no soportado para la pista %u\n[mkv] o erróneo/falta Codec privado.\n" #define MSGTR_MPDEMUX_MKV_SubtitleTypeNotSupported "[mkv] El tipo de subtítulos '%s' no está soportado.\n" #define MSGTR_MPDEMUX_MKV_WillPlayVideoTrack "[mkv] Reproducirá la pista de vídeo %u.\n" #define MSGTR_MPDEMUX_MKV_NoVideoTrackFound "[mkv] Ninguna pista de vídeo encontrada/deseada.\n" #define MSGTR_MPDEMUX_MKV_NoAudioTrackFound "[mkv] Ninguna pista de sonido encontrada/deseada.\n" #define MSGTR_MPDEMUX_MKV_NoBlockDurationForSubtitleTrackFound "[mkv] Aviso: No se ha encontrado la duración del bloque para los subtítulos de la pista.\n" // demux_nuv.c // demux_xmms.c #define MSGTR_MPDEMUX_XMMS_FoundPlugin "Plugin encontrado: %s (%s).\n" #define MSGTR_MPDEMUX_XMMS_ClosingPlugin "Cerrando plugin: %s.\n" #define MSGTR_MPDEMUX_XMMS_WaitForStart "Esperando a que el plugin XMMS comience la reprodución de '%s'...\n" // open.c, stream.c: #define MSGTR_CdDevNotfound "Dispositivo de CD-ROM '%s' no encontrado.\n" #define MSGTR_ErrTrackSelect "Error seleccionando la pista de VCD!" #define MSGTR_ReadSTDIN "Leyendo desde la entrada estándar (stdin)...\n" #define MSGTR_FileNotFound "Archivo no encontrado: '%s'\n" #define MSGTR_SMBInitError "No se puede inicializar la librería libsmbclient: %d\n" #define MSGTR_SMBFileNotFound "No se puede abrir desde la RED: '%s'\n" #define MSGTR_CantOpenDVD "No se puede abrir el dispositivo de DVD: %s (%s)\n" // stream_dvd.c #define MSGTR_DVDspeedCantOpen "No se ha podido abrir el dispositivo de DVD para escritura, cambiar la velocidad del DVD requiere acceso de escritura\n" #define MSGTR_DVDrestoreSpeed "Restableciendo la velocidad del DVD" #define MSGTR_DVDlimitSpeed "Limitando la velocidad del DVD a %dKB/s... " #define MSGTR_DVDlimitFail "La limitación de la velocidad del DVD ha fallado.\n" #define MSGTR_DVDlimitOk "Se ha limitado la velocidad del DVD con éxito.\n" #define MSGTR_NoDVDSupport "MPlayer fue compilado sin soporte para DVD, saliendo.\n" #define MSGTR_DVDnumTitles "Hay %d títulos en este DVD.\n" #define MSGTR_DVDinvalidTitle "Número de título de DVD inválido: %d\n" #define MSGTR_DVDinvalidChapterRange "Especificación inválida de rango de capítulos %s\n" #define MSGTR_DVDnumAngles "Hay %d ángulos en este título de DVD.\n" #define MSGTR_DVDinvalidAngle "Número de ángulo de DVD inválido: %d\n" #define MSGTR_DVDnoIFO "No se pudo abrir archivo IFO para el título de DVD %d.\n" #define MSGTR_DVDnoVMG "No se pudo abrir la información VMG!\n" #define MSGTR_DVDnoVOBs "No se pudo abrir VOBS del título (VTS_%02d_1.VOB).\n" #define MSGTR_DVDnoMatchingAudio "DVD, no se encontró un idioma coincidente!\n" #define MSGTR_DVDaudioChannel "DVD, canal de audio seleccionado: %d idioma: %c%c\n" #define MSGTR_DVDaudioStreamInfo "stream de audio: %d formato: %s (%s) idioma: %s aid: %d.\n" #define MSGTR_DVDnumAudioChannels "Número de canales de audio en el disco: %d.\n" #define MSGTR_DVDnoMatchingSubtitle "DVD, no se encontró un idioma de subtitulo coincidente!\n" #define MSGTR_DVDsubtitleChannel "DVD, canal de subtitulos seleccionado: %d idioma: %c%c\n" #define MSGTR_DVDsubtitleLanguage "subtítulo ( sid ): %d idioma: %s\n" #define MSGTR_DVDnumSubtitles "Número de subtítulos en el disco: %d\n" // dec_video.c & dec_audio.c #define MSGTR_CantOpenCodec "No se pudo abrir codec.\n" #define MSGTR_CantCloseCodec "No se pudo cerrar codec.\n" #define MSGTR_MissingDLLcodec "ERROR: No se pudo abrir el codec DirectShow requerido: %s\n" #define MSGTR_ACMiniterror "No se puede cargar/inicializar codecs de audio Win32/ACM (falta archivo DLL?)\n" #define MSGTR_MissingLAVCcodec "No se encuentra codec '%s' en libavcodec...\n" #define MSGTR_MpegNoSequHdr "MPEG: FATAL: EOF mientras buscaba la cabecera de secuencia.\n" #define MSGTR_CannotReadMpegSequHdr "FATAL: No se puede leer cabecera de secuencia.\n" #define MSGTR_CannotReadMpegSequHdrEx "FATAL: No se puede leer la extensión de la cabecera de secuencia.\n" #define MSGTR_BadMpegSequHdr "MPEG: Mala cabecera de secuencia.\n" #define MSGTR_BadMpegSequHdrEx "MPEG: Mala extensión de la cabecera de secuencia.\n" #define MSGTR_ShMemAllocFail "No se puede alocar memoria compartida.\n" #define MSGTR_CantAllocAudioBuf "No se puede alocar buffer de la salida de audio.\n" #define MSGTR_UnknownAudio "Formato de audio desconocido/faltante, no se reproducirá sonido.\n" #define MSGTR_UsingExternalPP "[PP] Usando filtro de postprocesado externo, max q = %d.\n" #define MSGTR_UsingCodecPP "[PP] Usando postprocesado del codec, max q = %d.\n" #define MSGTR_VideoCodecFamilyNotAvailableStr "Familia de codec de video solicitada [%s] (vfm=%s) no está disponible (actívalo al compilar).\n" #define MSGTR_AudioCodecFamilyNotAvailableStr "Familia de codec de audio solicitada [%s] (afm=%s) no está disponible (actívalo al compilar).\n" #define MSGTR_OpeningVideoDecoder "Abriendo decodificador de video: [%s] %s.\n" #define MSGTR_SelectedVideoCodec "Video codec seleccionado: [%s] vfm: %s (%s)\n" #define MSGTR_OpeningAudioDecoder "Abriendo decodificador de audio: [%s] %s.\n" #define MSGTR_SelectedAudioCodec "Audio codec seleccionado: [%s] afm: %s (%s)\n" #define MSGTR_VDecoderInitFailed "Inicialización del VDecoder ha fallado.\n" #define MSGTR_ADecoderInitFailed "Inicialización del ADecoder ha fallado.\n" #define MSGTR_ADecoderPreinitFailed "Preinicialización del ADecoder ha fallado.\n" // vf.c #define MSGTR_CouldNotFindVideoFilter "No se pudo encontrar el filtro de video '%s'.\n" #define MSGTR_CouldNotOpenVideoFilter "No se pudo abrir el filtro de video '%s'.\n" #define MSGTR_OpeningVideoFilter "Abriendo filtro de video: " #define MSGTR_CannotFindColorspace "No se pudo encontrar espacio de color concordante, ni siquiera insertando 'scale' :(.\n" // vd.c #define MSGTR_CouldNotFindColorspace "No se pudo encontrar colorspace concordante - reintentando escalado -vf...\n" #define MSGTR_MovieAspectIsSet "Aspecto es %.2f:1 - prescalando a aspecto correcto.\n" #define MSGTR_MovieAspectUndefined "Aspecto de película no es definido - no se ha aplicado prescalado.\n" // vd_dshow.c, vd_dmo.c #define MSGTR_DownloadCodecPackage "Necesita actualizar/instalar el paquete binario con codecs.\n Dirijase a http://www.mplayerhq.hu/dload.html\n" // url.c #define MSGTR_MPDEMUX_URL_StringAlreadyEscaped "Al parecer el string ya ha sido escapado en url_scape %c%c%c\n" // ai_alsa.c #define MSGTR_MPDEMUX_AIALSA_CannotSetSamplerate "No puedo setear el samplerate.\n" #define MSGTR_MPDEMUX_AIALSA_CannotSetBufferTime "No puedo setear el tiempo del buffer.\n" #define MSGTR_MPDEMUX_AIALSA_CannotSetPeriodTime "No puedo setear el tiempo del periodo.\n" // ai_alsa.c #define MSGTR_MPDEMUX_AIALSA_PcmBrokenConfig "Configuración erronea para este PCM: no hay configuraciones disponibles.\n" #define MSGTR_MPDEMUX_AIALSA_UnavailableAccessType "Tipo de acceso no disponible.\n" #define MSGTR_MPDEMUX_AIALSA_UnavailableSampleFmt "Formato de muestreo no disponible.\n" #define MSGTR_MPDEMUX_AIALSA_UnavailableChanCount "Conteo de canales no disponible, usando el valor por omisión: %d\n" #define MSGTR_MPDEMUX_AIALSA_CannotInstallHWParams "Imposible instalar los parametros de hardware: %s" #define MSGTR_MPDEMUX_AIALSA_PeriodEqualsBufferSize "Imposible usar un periodo igual al tamaño del buffer (%u == %lu).\n" #define MSGTR_MPDEMUX_AIALSA_CannotInstallSWParams "Imposible instalar los parametros de software:\n" #define MSGTR_MPDEMUX_AIALSA_ErrorOpeningAudio "Error tratando de abrir el sonido: %s\n" #define MSGTR_MPDEMUX_AIALSA_AlsaXRUN "ALSA xrun!!! (por lo menos %.3f ms de largo)\n" #define MSGTR_MPDEMUX_AIALSA_AlsaXRUNPrepareError "ALSA xrun: error de preparación: %s" #define MSGTR_MPDEMUX_AIALSA_AlsaReadWriteError "ALSA Error de lectura/escritura" // ai_oss.c #define MSGTR_MPDEMUX_AIOSS_Unable2SetChanCount "Imposible setear el conteo de canales: %d\n" #define MSGTR_MPDEMUX_AIOSS_Unable2SetStereo "Imposible setear stereo: %d\n" #define MSGTR_MPDEMUX_AIOSS_Unable2Open "Imposible abrir '%s': %s\n" #define MSGTR_MPDEMUX_AIOSS_UnsupportedFmt "Formato no soportado\n" #define MSGTR_MPDEMUX_AIOSS_Unable2SetAudioFmt "Imposible setear formato de audio." #define MSGTR_MPDEMUX_AIOSS_Unable2SetSamplerate "Imposible setear el samplerate: %d\n" #define MSGTR_MPDEMUX_AIOSS_Unable2SetTrigger "Imposible setear el trigger: %d\n" #define MSGTR_MPDEMUX_AIOSS_Unable2GetBlockSize "No pude obtener el tamaño del bloque!\n" #define MSGTR_MPDEMUX_AIOSS_AudioBlockSizeZero "El tamaño del bloque de audio es cero, utilizando %d!\n" #define MSGTR_MPDEMUX_AIOSS_AudioBlockSize2Low "Tamaño del bloque de audio muy bajo, utilizando %d!\n" // asf_mmst_streaming.c #define MSGTR_MPDEMUX_MMST_WriteError "Error de escritura\n" #define MSGTR_MPDEMUX_MMST_EOFAlert "\nAlerta! EOF\n" #define MSGTR_MPDEMUX_MMST_PreHeaderReadFailed "Falló la lectura pre-header\n" #define MSGTR_MPDEMUX_MMST_InvalidHeaderSize "Tamaño de cabecera inválido, me rindo!\n" #define MSGTR_MPDEMUX_MMST_HeaderDataReadFailed "Falló la lectura de los datos de la cabecera\n" #define MSGTR_MPDEMUX_MMST_packet_lenReadFailed "Falló la lectura del packet_len\n" #define MSGTR_MPDEMUX_MMST_InvalidRTSPPacketSize "Tamaño inválido de paquete RTSP, me rindo!\n" #define MSGTR_MPDEMUX_MMST_CmdDataReadFailed "Fallo el comando 'leer datos'.\n" #define MSGTR_MPDEMUX_MMST_HeaderObject "Objeto de cabecera.\n" #define MSGTR_MPDEMUX_MMST_DataObject "Objeto de datos.\n" #define MSGTR_MPDEMUX_MMST_FileObjectPacketLen "Objeto de archivo, largo del paquete = %d (%d)\n" #define MSGTR_MPDEMUX_MMST_StreamObjectStreamID "Objeto de stream, id: %d\n" #define MSGTR_MPDEMUX_MMST_2ManyStreamID "Demaciados id, ignorando stream" #define MSGTR_MPDEMUX_MMST_UnknownObject "Objeto desconocido\n" #define MSGTR_MPDEMUX_MMST_MediaDataReadFailed "Falló la lectura de los datos desde el medio\n" #define MSGTR_MPDEMUX_MMST_MissingSignature "Firma no encontrada.\n" #define MSGTR_MPDEMUX_MMST_PatentedTechnologyJoke "Todo listo, gracias por bajar un archivo de medios que contiene tecnología patentada y propietaria ;)\n" #define MSGTR_MPDEMUX_MMST_UnknownCmd "Comando desconocido %02x\n" #define MSGTR_MPDEMUX_MMST_GetMediaPacketErr "Error en get_media_packet: %s\n" #define MSGTR_MPDEMUX_MMST_Connected "Conectado.\n" // asf_streaming.c #define MSGTR_MPDEMUX_ASF_StreamChunkSize2Small "Ahhhh, el tamaño del stream_chunck es muy pequeño: %d\n" #define MSGTR_MPDEMUX_ASF_SizeConfirmMismatch "size_confirm erroneo!: %d %d\n" #define MSGTR_MPDEMUX_ASF_WarnDropHeader "Advertencia : botar la cabecera ????\n" #define MSGTR_MPDEMUX_ASF_ErrorParsingChunkHeader "Error mientras se parseaba la cabecera del chunk.\n" #define MSGTR_MPDEMUX_ASF_NoHeaderAtFirstChunk "No me llego la cabecera como primer chunk !!!!\n" #define MSGTR_MPDEMUX_ASF_BufferMallocFailed "Error imposible obtener un buffer de %d bytes\n" #define MSGTR_MPDEMUX_ASF_ErrReadingNetworkStream "Error leyendo el network stream\n" #define MSGTR_MPDEMUX_ASF_ErrChunk2Small "Error, el chunk es muy pequeño\n" #define MSGTR_MPDEMUX_ASF_Bandwidth2SmallCannotPlay "Imposible mostrarte este archivo con tu bandwidth!\n" #define MSGTR_MPDEMUX_ASF_Bandwidth2SmallDeselectedAudio "Bandwidth muy pequeño, deselecionando este stream de audio.\n" #define MSGTR_MPDEMUX_ASF_Bandwidth2SmallDeselectedVideo "Bandwidth muy pequeño, deselecionando este stream de video.\n" #define MSGTR_MPDEMUX_ASF_InvalidLenInHeader "Largo inválido den cabecera ASF!\n" #define MSGTR_MPDEMUX_ASF_ErrChunkBiggerThanPacket "Error chunk_size > packet_size.\n" #define MSGTR_MPDEMUX_ASF_ASFRedirector "=====> Redireccionador ASF\n" #define MSGTR_MPDEMUX_ASF_InvalidProxyURL "URL del proxy inválida.\n" #define MSGTR_MPDEMUX_ASF_UnknownASFStreamType "Tipo de ASF stream desconocido.\n" #define MSGTR_MPDEMUX_ASF_Failed2ParseHTTPResponse "No pude procesar la respuesta HTTP\n" #define MSGTR_MPDEMUX_ASF_ServerReturn "El servidor retornó %d:%s\n" #define MSGTR_MPDEMUX_ASF_ASFHTTPParseWarnCuttedPragma "ASF HTTP PARSE WARNING : Pragma %s cortado desde %zu bytes a %zu\n" #define MSGTR_MPDEMUX_ASF_SocketWriteError "Error escribiendo en el socket : %s\n" #define MSGTR_MPDEMUX_ASF_HeaderParseFailed "Imposible procesar la cabecera.\n" #define MSGTR_MPDEMUX_ASF_NoStreamFound "No encontre ningún stream.\n" #define MSGTR_MPDEMUX_ASF_UnknownASFStreamingType "Desconozco este tipo de streaming ASF\n" #define MSGTR_MPDEMUX_ASF_InfoStreamASFURL "STREAM_ASF, URL: %s\n" #define MSGTR_MPDEMUX_ASF_StreamingFailed "Fallo, saliendo..\n" // audio_in.c #define MSGTR_MPDEMUX_AUDIOIN_ErrReadingAudio "\nError leyendo el audio: %s\n" #define MSGTR_MPDEMUX_AUDIOIN_XRUNSomeFramesMayBeLeftOut "Recuperandome de un cross-run, puede que hayamos perdido algunos frames!\n" #define MSGTR_MPDEMUX_AUDIOIN_ErrFatalCannotRecover "Error fatal, imposible reponerme!\n" #define MSGTR_MPDEMUX_AUDIOIN_NotEnoughSamples "\nNo hay suficientes samples de audio!\n" // cache2.c // cdda.c #define MSGTR_MPDEMUX_CDDA_CantOpenCDDADevice "No puede abrir el dispositivo CDA.\n" #define MSGTR_MPDEMUX_CDDA_CantOpenDisc "No pude abrir el disco.\n" #define MSGTR_MPDEMUX_CDDA_AudioCDFoundWithNTracks "Encontre un disco de audio con %d pistas.\n" // cddb.c #define MSGTR_MPDEMUX_CDDB_FailedToReadTOC "Fallé al tratar de leer el TOC.\n" #define MSGTR_MPDEMUX_CDDB_FailedToOpenDevice "Falle al tratar de abrir el dispositivo %s\n" #define MSGTR_MPDEMUX_CDDB_NotAValidURL "No es un URL válido\n" #define MSGTR_MPDEMUX_CDDB_FailedToSendHTTPRequest "Fallé al tratar de enviar la solicitud HTTP.\n" #define MSGTR_MPDEMUX_CDDB_FailedToReadHTTPResponse "Fallé al tratar de leer la respuesta HTTP.\n" #define MSGTR_MPDEMUX_CDDB_HTTPErrorNOTFOUND "No encontrado.\n" #define MSGTR_MPDEMUX_CDDB_HTTPErrorUnknown "Código de error desconocido.\n" #define MSGTR_MPDEMUX_CDDB_NoCacheFound "No encontre cache.\n" #define MSGTR_MPDEMUX_CDDB_NotAllXMCDFileHasBeenRead "No todo el archivo xmcd ha sido leido.\n" #define MSGTR_MPDEMUX_CDDB_FailedToCreateDirectory "No pude crear el directorio %s.\n" #define MSGTR_MPDEMUX_CDDB_NotAllXMCDFileHasBeenWritten "No todo el archivo xmcd ha sido escrito.\n" #define MSGTR_MPDEMUX_CDDB_InvalidXMCDDatabaseReturned "Archivo de base de datos xmcd inválido retornado.\n" #define MSGTR_MPDEMUX_CDDB_UnexpectedFIXME "FIXME Inesperado.\n" #define MSGTR_MPDEMUX_CDDB_UnhandledCode "Unhandled code.\n" #define MSGTR_MPDEMUX_CDDB_UnableToFindEOL "No encontré el EOL\n" #define MSGTR_MPDEMUX_CDDB_ParseOKFoundAlbumTitle "Procesado OK, encontrado: %s\n" #define MSGTR_MPDEMUX_CDDB_AlbumNotFound "No encontré el album.\n" #define MSGTR_MPDEMUX_CDDB_ServerReturnsCommandSyntaxErr "El servidor retornó: Error en la sintaxis del comando.\n" #define MSGTR_MPDEMUX_CDDB_FailedToGetProtocolLevel "Fallé tratando de obtener el nivel del protocolo.\n" #define MSGTR_MPDEMUX_CDDB_NoCDInDrive "No hay un CD en la unidad.\n" // cue_read.c #define MSGTR_MPDEMUX_CUEREAD_UnexpectedCuefileLine "[bincue] Línea cuefile inesperada: %s\n" #define MSGTR_MPDEMUX_CUEREAD_BinFilenameTested "[bincue] Nombre de archivo bin testeado: %s\n" #define MSGTR_MPDEMUX_CUEREAD_CannotFindBinFile "[bincue] No enccuentro el archivo bin - me rindo.\n" #define MSGTR_MPDEMUX_CUEREAD_UsingBinFile "[bincue] Utilizando el archivo bin %s\n" #define MSGTR_MPDEMUX_CUEREAD_UnknownModeForBinfile "[bincue] Modo desconocido para el archivo bin, esto no debería pasar. Abortando.\n" #define MSGTR_MPDEMUX_CUEREAD_CannotOpenCueFile "[bincue] No puedo abrir %s\n" #define MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile "[bincue] Error leyendo desde %s\n" #define MSGTR_MPDEMUX_CUEREAD_ErrGettingBinFileSize "[bincue] Error obteniendo el tamaño del archivo bin.\n" #define MSGTR_MPDEMUX_CUEREAD_InfoTrackFormat "pista %02d: formato=%d %02d:%02d:%02d\n" #define MSGTR_MPDEMUX_CUEREAD_UnexpectedBinFileEOF "[bincue] Final inesperado en el archivo bin.\n" #define MSGTR_MPDEMUX_CUEREAD_CannotReadNBytesOfPayload "[bincue] No pude leer %d bytes de payload.\n" #define MSGTR_MPDEMUX_CUEREAD_CueStreamInfo_FilenameTrackTracksavail "CUE stream_open, archivo=%s, pista=%d, pistas disponibles: %d -> %d\n" // network.c #define MSGTR_MPDEMUX_NW_UnknownAF "Familia de direcciones desconocida %d\n" #define MSGTR_MPDEMUX_NW_ResolvingHostForAF "Resoliendo %s para %s...\n" #define MSGTR_MPDEMUX_NW_CantResolv "No pude resolver el nombre para %s: %s\n" #define MSGTR_MPDEMUX_NW_ConnectingToServer "Connectando con el servidor %s[%s]: %d...\n" #define MSGTR_MPDEMUX_NW_CantConnect2Server "No pude conectarme con el servidor con %s\n" #define MSGTR_MPDEMUX_NW_SelectFailed "Select fallido.\n" #define MSGTR_MPDEMUX_NW_ConnTimeout "La conección expiró.\n" #define MSGTR_MPDEMUX_NW_GetSockOptFailed "getsockopt fallido: %s\n" #define MSGTR_MPDEMUX_NW_ConnectError "Error de conección: %s\n" #define MSGTR_MPDEMUX_NW_InvalidProxySettingTryingWithout "Configuración del proxy inválida... probando sin proxy.\n" #define MSGTR_MPDEMUX_NW_CantResolvTryingWithoutProxy "No pude resolver el nombre del host para AF_INET. probando sin proxy.\n" #define MSGTR_MPDEMUX_NW_ErrSendingHTTPRequest "Error enviando la solicitud HTTP: no alcancé a enviarla completamente.\n" #define MSGTR_MPDEMUX_NW_ReadFailed "Falló la lectura.\n" #define MSGTR_MPDEMUX_NW_Read0CouldBeEOF "http_read_response leí 0 (ej. EOF)\n" #define MSGTR_MPDEMUX_NW_AuthFailed "Fallo la autentificación, por favor usa las opciones -user y -passwd con tus respectivos nombre de usuario y contraseña\n"\ "para una lista de URLs o construye unu URL con la siguiente forma:\n"\ "http://usuario:contraseña@servidor/archivo\n" #define MSGTR_MPDEMUX_NW_AuthRequiredFor "Se requiere autentificación para %s\n" #define MSGTR_MPDEMUX_NW_AuthRequired "Se requiere autentificación.\n" #define MSGTR_MPDEMUX_NW_NoPasswdProvidedTryingBlank "No especificaste una contraseña, voy a utilizar una contraseña en blanco.\n" #define MSGTR_MPDEMUX_NW_ErrServerReturned "El servidor retornó %d: %s\n" #define MSGTR_MPDEMUX_NW_CacheSizeSetTo "Se seteo el tamaño del caché a %d KBytes.\n" // ========================== LIBMENU =================================== // common #define MSGTR_LIBMENU_NoEntryFoundInTheMenuDefinition "[MENU] Noencontre una entrada e n la definición del menú.\n" // libmenu/menu.c #define MSGTR_LIBMENU_SyntaxErrorAtLine "[MENU] Error de sintáxis en la línea: %d\n" #define MSGTR_LIBMENU_MenuDefinitionsNeedANameAttrib "[MENU] Las definiciones de menú necesitan un nombre de atributo (linea %d)\n" #define MSGTR_LIBMENU_BadAttrib "[MENU] Atributo erroneo %s=%s en el menú '%s' en la línea %d\n" #define MSGTR_LIBMENU_UnknownMenuType "[MENU] Tipo de menú desconocido '%s' en la línea %d\n" #define MSGTR_LIBMENU_CantOpenConfigFile "[MENU] No puedo abrir el archivo de configuración del menú: %s\n" #define MSGTR_LIBMENU_ConfigFileIsTooBig "[MENU] El archivo de configuración es muy grande (> %d KB).\n" #define MSGTR_LIBMENU_ConfigFileIsEmpty "[MENU] El archivo de configuración esta vacío\n" #define MSGTR_LIBMENU_MenuNotFound "[MENU] No encontré el menú %s\n" #define MSGTR_LIBMENU_MenuInitFailed "[MENU] Fallo en la inicialización del menú '%s'.\n" #define MSGTR_LIBMENU_UnsupportedOutformat "[MENU] Formato de salida no soportado!!!!\n" // libmenu/menu_cmdlist.c #define MSGTR_LIBMENU_ListMenuEntryDefinitionsNeedAName "[MENU] Las definiciones de Lista del menu necesitan un nombre (line %d).\n" #define MSGTR_LIBMENU_ListMenuNeedsAnArgument "[MENU] El menú de lista necesita un argumento.\n" // libmenu/menu_console.c #define MSGTR_LIBMENU_WaitPidError "[MENU] Error Waitpid: %s.\n" #define MSGTR_LIBMENU_SelectError "[MENU] Error en Select.\n" #define MSGTR_LIBMENU_ReadErrorOnChildFD "[MENU] Error de lectura en el descriptor de archivo hijo: %s.\n" #define MSGTR_LIBMENU_ConsoleRun "[MENU] Consola corriendo: %s ...\n" #define MSGTR_LIBMENU_AChildIsAlreadyRunning "[MENU] Ya hay un hijo/child corriendo.\n" #define MSGTR_LIBMENU_ForkFailed "[MENU] Falló el Fork!!!\n" #define MSGTR_LIBMENU_WriteError "[MENU] Error de escritura.\n" // libmenu/menu_filesel.c #define MSGTR_LIBMENU_OpendirError "[MENU] Error en Opendir: %s.\n" #define MSGTR_LIBMENU_ReallocError "[MENU] Error en Realloc: %s.\n" #define MSGTR_LIBMENU_MallocError "[MENU] Error tratando de disponer de memoria: %s.\n" #define MSGTR_LIBMENU_ReaddirError "[MENU] Error en Readdir: %s.\n" #define MSGTR_LIBMENU_CantOpenDirectory "[MENU] No pude abrir el directorio %s\n" // libmenu/menu_param.c #define MSGTR_LIBMENU_SubmenuDefinitionNeedAMenuAttribut "[MENU] Submenu definition needs a 'menu' attribute.\n" #define MSGTR_LIBMENU_InvalidProperty "[MENU] '%s', Propiedad inválida en entrada de menu de preferencias. (linea %d).\n" #define MSGTR_LIBMENU_PrefMenuEntryDefinitionsNeed "[MENU] Las definiciones de las entradas de 'Preferencia' en el menu necesitan un atributo 'property' válido (linea %d).\n" #define MSGTR_LIBMENU_PrefMenuNeedsAnArgument "[MENU] El menu 'Pref' necesita un argumento.\n" // libmenu/menu_pt.c #define MSGTR_LIBMENU_CantfindTheTargetItem "[MENU] Imposible encontrar el item objetivo ????\n" #define MSGTR_LIBMENU_FailedToBuildCommand "[MENU] Fallé tratando de construir el comando: %s.\n" // libmenu/menu_txt.c #define MSGTR_LIBMENU_MenuTxtNeedATxtFileName "[MENU] El menu 'Text' necesita un nombre de archivo txt (param file).\n" #define MSGTR_LIBMENU_MenuTxtCantOpen "[MENU] No pude abrir: %s.\n" #define MSGTR_LIBMENU_WarningTooLongLineSplitting "[MENU] Advertencia, Línea muy larga, cortandola...\n" #define MSGTR_LIBMENU_ParsedLines "[MENU] %d líneas procesadas.\n" // libmenu/vf_menu.c #define MSGTR_LIBMENU_UnknownMenuCommand "[MENU] Comando desconocido: '%s'.\n" #define MSGTR_LIBMENU_FailedToOpenMenu "[MENU] No pude abrir el menú: '%s'.\n" // ========================== LIBMPCODECS =================================== // ad_dvdpcm.c: #define MSGTR_SamplesWanted "Se necesitan muestras de este formato para mejorar el soporte. Por favor contacte a los desarrolladores.\n" // libmpcodecs/ad_libdv.c #define MSGTR_MPCODECS_AudioFramesizeDiffers "[AD_LIBDV] Advertencia! El framezise de audio difiere! leidos=%d hdr=%d.\n" // libmpcodecs/vd_dmo.c vd_dshow.c vd_vfw.c #define MSGTR_MPCODECS_CouldntAllocateImageForCinepakCodec "[VD_DMO] No pude disponer imagen para el códec cinepak.\n" // libmpcodecs/vd_ffmpeg.c #define MSGTR_MPCODECS_ArithmeticMeanOfQP "[VD_FFMPEG] Significado aritmético de QP: %2.4f, significado armónico de QP: %2.4f\n" #define MSGTR_MPCODECS_DRIFailure "[VD_FFMPEG] Falla DRI.\n" #define MSGTR_MPCODECS_CouldntAllocateImageForCodec "[VD_FFMPEG] No pude disponer imagen para el códec.\n" #define MSGTR_MPCODECS_XVMCAcceleratedMPEG2 "[VD_FFMPEG] MPEG-2 acelerado con XVMC.\n" #define MSGTR_MPCODECS_TryingPixfmt "[VD_FFMPEG] Intentando pixfmt=%d.\n" #define MSGTR_MPCODECS_McGetBufferShouldWorkOnlyWithXVMC "[VD_FFMPEG] El mc_get_buffer funcionará solo con aceleración XVMC!!" #define MSGTR_MPCODECS_OnlyBuffersAllocatedByVoXvmcAllowed "[VD_FFMPEG] Solo buffers dispuestos por vo_xvmc estan permitidos.\n" // libmpcodecs/ve_lavc.c #define MSGTR_MPCODECS_HighQualityEncodingSelected "[VE_LAVC] Encoding de alta calidad seleccionado (no real-time)!\n" #define MSGTR_MPCODECS_UsingConstantQscale "[VE_LAVC] Utilizando qscale = %f constante (VBR).\n" // libmpcodecs/ve_raw.c #define MSGTR_MPCODECS_OutputWithFourccNotSupported "[VE_RAW] La salida en bruto (raw) con fourcc [%x] no está soportada!\n" #define MSGTR_MPCODECS_NoVfwCodecSpecified "[VE_RAW] No se especificó el codec VfW requerido!!\n" // libmpcodecs/vf_crop.c #define MSGTR_MPCODECS_CropBadPositionWidthHeight "[CROP] posición/ancho/alto inválido(s) - el área a cortar esta fuera del original!\n" // libmpcodecs/vf_cropdetect.c #define MSGTR_MPCODECS_CropArea "[CROP] Area de corte: X: %d..%d Y: %d..%d (-vf crop=%d:%d:%d:%d).\n" // libmpcodecs/vf_format.c, vf_palette.c, vf_noformat.c #define MSGTR_MPCODECS_UnknownFormatName "[VF_FORMAT] Nombre de formato desconocido: '%s'.\n" // libmpcodecs/vf_framestep.c vf_noformat.c vf_palette.c vf_tile.c #define MSGTR_MPCODECS_ErrorParsingArgument "[VF_FRAMESTEP] Error procesando argumento.\n" // libmpcodecs/ve_vfw.c #define MSGTR_MPCODECS_CompressorType "Tipo de compresor: %.4lx\n" #define MSGTR_MPCODECS_CompressorSubtype "Subtipo de compresor: %.4lx\n" #define MSGTR_MPCODECS_CompressorFlags "Compressor flags: %lu, versión %lu, versión ICM: %lu\n" #define MSGTR_MPCODECS_Flags "Flags:" #define MSGTR_MPCODECS_Quality " Calidad" // libmpcodecs/vf_expand.c #define MSGTR_MPCODECS_FullDRNotPossible "DR completo imposible, tratando con SLICES en su lugar!\n" #define MSGTR_MPCODECS_FunWhydowegetNULL "Por qué obtenemos NULL??\n" // libmpcodecs/vf_test.c, vf_yuy2.c, vf_yvu9.c #define MSGTR_MPCODECS_WarnNextFilterDoesntSupport "%s No soportado por el próximo filtro/vo :(\n" // ================================== LIBMPVO ==================================== // stream/stream_radio.c #define MSGTR_RADIO_ChannelNamesDetected "[radio] Nombre de canales de radio detectados.\n" #define MSGTR_RADIO_WrongFreqForChannel "[radio] Frecuencia erronea para canal %s\n" #define MSGTR_RADIO_WrongChannelNumberFloat "[radio] Número de canal erroneo: %.2f\n" #define MSGTR_RADIO_WrongChannelNumberInt "[radio] Número de canal erroneo: %d\n" #define MSGTR_RADIO_WrongChannelName "[radio] Nombre de canal erroneo: %s\n" #define MSGTR_RADIO_FreqParameterDetected "[radio] Parametro de frequencia de radio detectado.\n" #define MSGTR_RADIO_GetTunerFailed "[radio] Advertencia: ioctl get tuner failed: %s. Setting frac to %d.\n" #define MSGTR_RADIO_NotRadioDevice "[radio] %s no es un dispositivo de radio!\n" #define MSGTR_RADIO_SetFreqFailed "[radio] ioctl set frequency 0x%x (%.2f) fallido: %s\n" #define MSGTR_RADIO_GetFreqFailed "[radio] ioctl get frequency fallido: %s\n" #define MSGTR_RADIO_SetMuteFailed "[radio] ioctl set mute fallido: %s\n" #define MSGTR_RADIO_QueryControlFailed "[radio] ioctl query control fallido: %s\n" #define MSGTR_RADIO_GetVolumeFailed "[radio] ioctl get volume fallido: %s\n" #define MSGTR_RADIO_SetVolumeFailed "[radio] ioctl set volume fallido: %s\n" #define MSGTR_RADIO_AllocateBufferFailed "[radio] Imposible reservar buffer de audio (bloque=%d,buf=%d): %s\n" #define MSGTR_RADIO_CurrentFreq "[radio] Frecuencia actual: %.2f\n" #define MSGTR_RADIO_SelectedChannel "[radio] Canal seleccionado: %d - %s (freq: %.2f)\n" #define MSGTR_RADIO_ChangeChannelNoChannelList "[radio] No puedo cambiar canal, no se ha entregado una lista de canales.\n" #define MSGTR_RADIO_UnableOpenDevice "[radio] Imposible abrir '%s': %s\n" #define MSGTR_RADIO_WrongFreq "[radio] Frecuencia erronea: %.2f\n" #define MSGTR_RADIO_UsingFreq "[radio] Utilizando frecuencia: %.2f.\n" #define MSGTR_RADIO_AudioInInitFailed "[radio] audio_in_init fallido.\n" #define MSGTR_RADIO_AudioInSetupFailed "[radio] audio_in_setup llamada fallida: %s\n" #define MSGTR_RADIO_ClearBufferFailed "[radio] Fallo al limpiar el buffer: %s\n" #define MSGTR_RADIO_StreamEnableCacheFailed "[radio] Llamada fallida a stream_enable_cache: %s\n" #define MSGTR_RADIO_DriverUnknownStr "[radio] Nombre de driver desconocido: %s\n" #define MSGTR_RADIO_DriverV4L2 "[radio] Utilizando interfaz de radio V4Lv2.\n" #define MSGTR_RADIO_DriverV4L "[radio] Utilizando interfaz de radio V4Lv1.\n" #define MSGTR_RADIO_DriverBSDBT848 "[radio] Usando la interfaz de radio *BSD BT848.\n" //tv.c #define MSGTR_TV_BogusNormParameter "tv.c: norm_from_string(%s): Parametro de normal inválido al configurar %s.\n" #define MSGTR_TV_NoVideoInputPresent "Error: Entrada de video no encontrada!\n" #define MSGTR_TV_UnknownImageFormat ""\ "==================================================================\n"\ " ADVERTENCIA: HA SELECCIONADO UN FORMATO DE SALIDA DE IMAGEN NO \n"\ " CONOCIDO Y/O NO PROBADO (0x%x) \n"\ " Esto podría causarle problemas de reproducción o que el programa\n"\ " se cayera! Los Bug reports serán ignorados! Intentelo nuevamente\n"\ " con YV12 (el colorspace por omisión) y leer la documentación. \n"\ "==================================================================\n" #define MSGTR_TV_CannotSetNorm "Error: No puedo configurar la norma!\n" #define MSGTR_TV_MJP_WidthHeight " MJP: ancho %d alto %d\n" #define MSGTR_TV_UnableToSetWidth "Imposible configurar ancho requerido: %d\n" #define MSGTR_TV_UnableToSetHeight "Imposible configurar alto requerido: %d\n" #define MSGTR_TV_NoTuner "No hay un sintonizador en la entrada seleccionada!\n" #define MSGTR_TV_UnableFindChanlist "Imposible encontrar lista de canales seleccionada! (%s)\n" #define MSGTR_TV_ChannelFreqParamConflict "No puede configurar simultaneamente frecuencia y canal!\n" #define MSGTR_TV_ChannelNamesDetected "Nombres de canales de TV detectados.\n" #define MSGTR_TV_NoFreqForChannel "Imposible encontrar frecuencia para el canal %s (%s)\n" #define MSGTR_TV_SelectedChannel3 "Canal seleccionado: %s - %s (freq: %.3f)\n" #define MSGTR_TV_SelectedChannel2 "Canal seleccionado: %s (freq: %.3f)\n" #define MSGTR_TV_UnsupportedAudioType "Tipo de audio '%s (%x)' no soportado!\n" #define MSGTR_TV_AvailableDrivers "Drivers disponibles:\n" #define MSGTR_TV_DriverInfo "Driver seleccionado: %s\n nombre: %s\n autor: %s\n comentario: %s\n" #define MSGTR_TV_NoSuchDriver "Ese driver no existe: %s\n" #define MSGTR_TV_DriverAutoDetectionFailed "Falló la utodetección del driver de TV.\n" #define MSGTR_TV_UnknownColorOption "Se especificó una opción de color desconodida (%d)!\n" #define MSGTR_TV_NoTeletext "Sin teletexto" #define MSGTR_TV_Bt848IoctlFailed "tvi_bsdbt848: llamada a %s ioctl fallida. Error: %s\n" #define MSGTR_TV_Bt848InvalidAudioRate "tvi_bsdbt848: Audio rate inválido. Error: %s\n" #define MSGTR_TV_Bt848ErrorOpeningBktrDev "tvi_bsdbt848: Imposible abrir dispositivo bktr. Error: %s\n" #define MSGTR_TV_Bt848ErrorOpeningTunerDev "tvi_bsdbt848: Imposible abrir dispositivo sintonizador. Error: %s\n" #define MSGTR_TV_Bt848ErrorOpeningDspDev "tvi_bsdbt848: Imposible abrir dispositivo dsp. Error: %s\n" #define MSGTR_TV_Bt848ErrorConfiguringDsp "tvi_bsdbt848: Falló la configuración del dsp. Error: %s\n" #define MSGTR_TV_Bt848ErrorReadingAudio "tvi_bsdbt848: Error leyendo datos de audio. Error: %s\n" #define MSGTR_TV_Bt848MmapFailed "tvi_bsdbt848: mmap fallido. Error: %s\n" #define MSGTR_TV_Bt848FrameBufAllocFailed "tvi_bsdbt848: Fallo al reservar frame buffer (allocation failed). Error: %s\n" #define MSGTR_TV_Bt848ErrorSettingWidth "tvi_bsdbt848: Error configurando el ancho del picture. Error: %s\n" #define MSGTR_TV_Bt848UnableToStopCapture "tvi_bsdbt848: Imposible detener la captura. Error: %s\n" #define MSGTR_TV_TTSupportedLanguages "Idiomas de teletexto soportados:\n" #define MSGTR_TV_TTSelectedLanguage "Se seleccionó el idioma de teletexto por omisión: %s\n" #define MSGTR_TV_ScannerNotAvailableWithoutTuner "No se puede utilizar el scanner de canales sin un sintonizador\n" //tvi_dshow.c #define MSGTR_TVI_DS_UnableConnectInputVideoDecoder "Imposible conectar la entrada seleccionada con el decodificador de video. Error:0x%x\n" #define MSGTR_TVI_DS_UnableConnectInputAudioDecoder "Imposible conectar la entrada seleccionada con el decodificador de audio. Error:0x%x\n" #define MSGTR_TVI_DS_UnableSelectVideoFormat "tvi_dshow: Imposible seleccioar formato de video. Error:0x%x\n" #define MSGTR_TVI_DS_UnableSelectAudioFormat "tvi_dshow: Imposible seleccionar formato de audio. Error:0x%x\n" #define MSGTR_TVI_DS_UnableGetMediaControlInterface "tvi_dshow: Imposible obtener interfaz IMediaControl. Error:0x%x\n" #define MSGTR_TVI_DS_UnableStartGraph "tvi_dshow: Imposible comenzar graph! Error:0x%x\n" #define MSGTR_TVI_DS_DeviceNotFound "tvi_dshow: No se encontró el dispositivo #%d\n" #define MSGTR_TVI_DS_UnableGetDeviceName "tvi_dshow: Imposible obtener nombre para dispositivo #%d\n" #define MSGTR_TVI_DS_UsingDevice "tvi_dshow: Utilizando dispositivo #%d: %s\n" #define MSGTR_TVI_DS_DirectGetFreqFailed "tvi_dshow: Imposible obtener la frecuencia directamente. Se utilizará la tabla de canales incluída con el OS.\n" //following phrase will be printed near the selected audio/video input #define MSGTR_TVI_DS_UnableExtractFreqTable "tvi_dshow: Imposible cargar tabla de frecuencias desde kstvtune.ax\n" #define MSGTR_TVI_DS_WrongDeviceParam "tvi_dshow: Parametro de dispositivo inválido: %s\n" #define MSGTR_TVI_DS_WrongDeviceIndex "tvi_dshow: Indice de dispositivo inválido: %d\n" #define MSGTR_TVI_DS_WrongADeviceParam "tvi_dshow: Parametro de adevice inválido: %s\n" #define MSGTR_TVI_DS_WrongADeviceIndex "tvi_dshow: Indice de adevice inválido: %d\n" #define MSGTR_TVI_DS_SamplerateNotsupported "tvi_dshow: El dispositivo no soporta el Samplerate %d. Probando con el primero disponible.\n" #define MSGTR_TVI_DS_VideoAdjustigNotSupported "tvi_dshow: El dispositivo no soporta el ajuste de brillo/hue/saturación/contraste\n" #define MSGTR_TVI_DS_ChangingWidthHeightNotSupported "tvi_dshow: El dispositivo no soporta cambios de ancho/largo.\n" #define MSGTR_TVI_DS_SelectingInputNotSupported "tvi_dshow: El dispositivo no soporta la selección de la fuente de captura\n" #define MSGTR_TVI_DS_ErrorParsingAudioFormatStruct "tvi_dshow: Imposible procesar la estructura del formato de audio.\n" #define MSGTR_TVI_DS_ErrorParsingVideoFormatStruct "tvi_dshow: Imposible procesar la estructura del formato de video.\n" #define MSGTR_TVI_DS_UnableSetAudioMode "tvi_dshow: Imposible seleccionar modo de audio %d. Error:0x%x\n" #define MSGTR_TVI_DS_UnsupportedMediaType "tvi_dshow: A %s se le ha pasado un tipo de medios no soportado.\n" #define MSGTR_TVI_DS_UnableFindNearestChannel "tvi_dshow: Imposible encontrar el canal más cercano en la tabla de frecuencias del sistema\n" #define MSGTR_TVI_DS_UnableToSetChannel "tvi_dshow: Imposible cambiar al canal más cercano en la tabla de frecuencias del sistema. Error:0x%x\n" #define MSGTR_TVI_DS_UnableTerminateVPPin "tvi_dshow: Imposible terminar pin VideoPort con cualquiera de los filtros en el graph. Error:0x%x\n" #define MSGTR_TVI_DS_UnableBuildVideoSubGraph "tvi_dshow: Imposible construir cadena de video del graph de captura. Error:0x%x\n" #define MSGTR_TVI_DS_UnableBuildAudioSubGraph "tvi_dshow: Imposible construir cadena de audio del graph de captura. Error:0x%x\n" #define MSGTR_TVI_DS_UnableBuildVBISubGraph "tvi_dshow: Imposible construir cadena VBI del graph de captura. Error:0x%x\n" #define MSGTR_TVI_DS_GraphInitFailure "tvi_dshow: Falló la inicialización del graph Directshow.\n" #define MSGTR_TVI_DS_NoVideoCaptureDevice "tvi_dshow: No se pudo encontrar un dispositivo de captura de video\n" #define MSGTR_TVI_DS_NoAudioCaptureDevice "tvi_dshow: No se pudo encontrar un dispositivo de captura de audio\n" #define MSGTR_TVI_DS_GetActualMediatypeFailed "tvi_dshow: Imposible obtener el tipo de medios actual (Error:0x%x). Se asumirá que es igual al requerido.\n" // ================================== LIBASS ==================================== // ass_bitmap.c // ass.c #define MSGTR_LIBASS_FopenFailed "[ass] ass_read_file(%s): fopen ha fallado\n" #define MSGTR_LIBASS_RefusingToLoadSubtitlesLargerThan100M "[ass] ass_read_file(%s): No se pueden cargar ficheros de subtítulos mayores de 100M\n" // ass_cache.c // ass_fontconfig.c // ass_render.c // ass_font.c
67.877639
201
0.780673
46188d06fe666739197c99e40dd16e2e2337ee78
714
h
C
XamoomSDK/Classes/Storage/Resources/XMMCDStyle.h
xamoom/xamoom-ios-sdk
e78f35b27d6b961345e6adb758cf46931a1f486c
[ "MIT" ]
4
2015-11-18T10:49:22.000Z
2018-07-11T16:33:03.000Z
XamoomSDK/Classes/Storage/Resources/XMMCDStyle.h
xamoom/xamoom-ios-sdk
e78f35b27d6b961345e6adb758cf46931a1f486c
[ "MIT" ]
2
2020-01-16T12:10:03.000Z
2020-01-16T12:31:43.000Z
XamoomSDK/Classes/Storage/Resources/XMMCDStyle.h
xamoom/xamoom-ios-sdk
e78f35b27d6b961345e6adb758cf46931a1f486c
[ "MIT" ]
3
2016-04-09T09:24:23.000Z
2017-09-07T14:19:48.000Z
// // Copyright (c) 2017 xamoom GmbH <apps@xamoom.com> // // Licensed under the MIT License (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at the root of this project. #import <CoreData/CoreData.h> #import "XMMCDResource.h" #import "XMMStyle.h" @interface XMMCDStyle : NSManagedObject <XMMCDResource> @property (nonatomic, copy) NSString* backgroundColor; @property (nonatomic, copy) NSString* highlightFontColor; @property (nonatomic, copy) NSString* foregroundFontColor; @property (nonatomic, copy) NSString* chromeHeaderColor; @property (nonatomic, copy) NSString* customMarker; @property (nonatomic, copy) NSString* icon; @end
31.043478
68
0.760504
ccbf3ff2e98404a16c0c15a87e08bd060d04e9df
776
h
C
PrivateFrameworks/PassKitCore/PKPeerPaymentPurchaseData.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
17
2018-11-13T04:02:58.000Z
2022-01-20T09:27:13.000Z
PrivateFrameworks/PassKitCore/PKPeerPaymentPurchaseData.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
3
2018-04-06T02:02:27.000Z
2018-10-02T01:12:10.000Z
PrivateFrameworks/PassKitCore/PKPeerPaymentPurchaseData.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
1
2018-09-28T13:54:23.000Z
2018-09-28T13:54:23.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <PassKitCore/PKServiceProviderPurchaseData.h> @interface PKPeerPaymentPurchaseData : PKServiceProviderPurchaseData { BOOL _requiresInteraction; unsigned long long _status; } + (BOOL)supportsSecureCoding; @property(nonatomic) BOOL requiresInteraction; // @synthesize requiresInteraction=_requiresInteraction; @property(nonatomic) unsigned long long status; // @synthesize status=_status; - (id)description; - (BOOL)isEqualToPKPeerPaymentPurchaseData:(id)arg1; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (id)initWithDictionary:(id)arg1; @end
27.714286
103
0.755155
6223e910274526909054b0cb3fbb67320b5fcd6f
71
h
C
tests/pending/unit-test/inlines/inline_f.h
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
tests/pending/unit-test/inlines/inline_f.h
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
tests/pending/unit-test/inlines/inline_f.h
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
#ifndef __INLINE_F_H__ #define __INLINE_F_H__ long f(int j); #endif
8.875
22
0.760563
00d814baecaf784c8e24f0c4de7159d7b3928b2d
393
h
C
HyperbationViewer/XRViewer/Utils/Utils.h
CyberMing/Hyperbation
c6c067ac58b8fdfb20fba26b7b003c4a8866e9f0
[ "MIT" ]
1
2021-03-09T20:46:40.000Z
2021-03-09T20:46:40.000Z
HyperbationViewer/XRViewer/Utils/Utils.h
CyberMing/Hyperbation
c6c067ac58b8fdfb20fba26b7b003c4a8866e9f0
[ "MIT" ]
null
null
null
HyperbationViewer/XRViewer/Utils/Utils.h
CyberMing/Hyperbation
c6c067ac58b8fdfb20fba26b7b003c4a8866e9f0
[ "MIT" ]
null
null
null
// // Created by Roberto Garrido on 19/12/17. // Copyright (c) 2017 Mozilla. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface Utils: NSObject /** Gets the interface orientation taking the device orientation as input @return the UIInterfaceOrientation of the app */ + (UIInterfaceOrientation)getInterfaceOrientationFromDeviceOrientation; @end
23.117647
71
0.770992
924fe03d8cc03bb6f92e18b9f456563b886e4459
28,042
h
C
include/mstdlib/formats/m_json.h
Monetra/mstdlib
aecbaa0c14a3a618923331250427e175db7ebef9
[ "BSD-2-Clause" ]
22
2017-09-28T16:12:10.000Z
2022-03-11T03:21:11.000Z
include/mstdlib/formats/m_json.h
Monetra/mstdlib
aecbaa0c14a3a618923331250427e175db7ebef9
[ "BSD-2-Clause" ]
13
2018-03-06T16:24:12.000Z
2020-03-02T13:25:19.000Z
include/mstdlib/formats/m_json.h
Monetra/mstdlib
aecbaa0c14a3a618923331250427e175db7ebef9
[ "BSD-2-Clause" ]
5
2018-03-06T15:54:42.000Z
2020-03-10T16:02:06.000Z
/* The MIT License (MIT) * * Copyright (c) 2015 Monetra Technologies, LLC. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #ifndef __M_JSON_H__ #define __M_JSON_H__ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ #include <mstdlib/base/m_defs.h> #include <mstdlib/base/m_types.h> #include <mstdlib/base/m_list_str.h> #include <mstdlib/base/m_fs.h> /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ __BEGIN_DECLS /*! \addtogroup m_json JSON * \ingroup m_formats * * Mostly EMCA-404 compliant JSON manipulation. * * Number handling while writing: * - Integrals are limited a range of -(2^53)+1 to (2^53)-1 for Java Script * compatibility. Larger numbers will be encoded as a string. * - Decimals are limited to 15 places for Java Script compatibility. Larger * precision decimals will be encoded as strings. * - Number to string compatibility conversion can be disabled with the * M_JSON_WRITER_NUMBER_NOCOMPAT flag. * * Additional Features: * - Comments (C/C++) * * Also supports most of Stefan Gössner's JSONPath for searching. * Not supported are features considered redundant or potential * security risks (script expressions). * * Example: * * \code{.c} * M_json_node_t *j; * M_json_node_t **n; * size_t num_matches; * size_t i; * const char *s = "{ \"a\" :\n[1, \"abc\",2 ]\n}"; * char *out; * * j = M_json_read(s, M_str_len(s), M_JSON_READER_NONE, NULL, NULL, NULL, NULL); * if (j == NULL) { * M_printf("Could not parse json\n"); * return M_FALSE; * } * * M_json_object_insert_string(j, "b", "string"); * * n = M_json_jsonpath(j, "$.a[1::3]", &num_matches); * for (i=0; i<num_matches; i++) { * if (M_json_node_type(n[i]) == M_JSON_TYPE_STRING) { * M_printf("%s\n", M_json_get_string(n); * } * } * M_free(n); * * out = M_json_write(j, M_JSON_WRITER_PRETTYPRINT_SPACE, NULL); * M_printf(out=\n%s\n", out); * M_free(out); * * M_json_node_destroy(j); * \endcode * * @{ */ struct M_json_node; typedef struct M_json_node M_json_node_t; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Types of JSON nodes. */ typedef enum { M_JSON_TYPE_UNKNOWN = 0, /*!< An invalid node type. */ M_JSON_TYPE_OBJECT, /*!< Object (hashtable). */ M_JSON_TYPE_ARRAY, /*!< Array (list). */ M_JSON_TYPE_STRING, /*!< String. */ M_JSON_TYPE_INTEGER, /*!< Number. */ M_JSON_TYPE_DECIMAL, /*!< Floating point number. */ M_JSON_TYPE_BOOL, /*!< Boolean. */ M_JSON_TYPE_NULL /*!< JSON null type. */ } M_json_type_t; /*! Flags to control the behavior of the JSON reader. */ typedef enum { M_JSON_READER_NONE = 0, /*!< Normal operation. Treat decimal truncation as error and ignore comments. */ M_JSON_READER_ALLOW_DECIMAL_TRUNCATION = 1 << 0, /*!< Allow decimal truncation. A decimal read and truncated will not be treated as an error. */ M_JSON_READER_DISALLOW_COMMENTS = 1 << 1, /*!< Treat comments as an error. */ M_JSON_READER_OBJECT_UNIQUE_KEYS = 1 << 2, /*!< Return a parse error when an object has repeating keys. By default the later key in the object will be the one used and earlier keys ignored. This requires all keys in the object to be unique. */ M_JSON_READER_DONT_DECODE_UNICODE = 1 << 3, /*!< By default unicode escapes will be decoded into their utf-8 byte sequence. Use this with care because "\u" will be put in the string. Writing will produce "\\u" because the writer will not understand this is a non-decoded unicode escape. */ M_JSON_READER_REPLACE_BAD_CHARS = 1 << 4 /*!< Replace bad characters (invalid utf-8 sequences with "?"). */ } M_json_reader_flags_t; /*! Flags to control the behavior of the JSON writer. */ typedef enum { M_JSON_WRITER_NONE = 0, /*!< No indent. All data on a single line. */ M_JSON_WRITER_PRETTYPRINT_SPACE = 1 << 0, /*!< 2 space indent. */ M_JSON_WRITER_PRETTYPRINT_TAB = 1 << 1, /*!< Tab indent. */ M_JSON_WRITER_PRETTYPRINT_WINLINEEND = 1 << 2, /*!< Windows line ending "\r\n" instead of Unix line ending "\n". Requires space or tab pretty printing. */ M_JSON_WRITER_DONT_ENCODE_UNICODE = 1 << 3, /*!< By default utf-8 characters will be enocded into unicode escapes. */ M_JSON_WRITER_REPLACE_BAD_CHARS = 1 << 4, /*!< Replace bad characters (invalid utf-8 sequences with "?"). */ M_JSON_WRITER_NUMBER_NOCOMPAT = 1 << 5 /*!< Write numbers as they are instead of limiting to Java Script minimum and maximum sizes. */ } M_json_writer_flags_t; /*! Error codes. */ typedef enum { M_JSON_ERROR_SUCCESS = 0, /*!< success */ M_JSON_ERROR_GENERIC, /*!< generic error */ M_JSON_ERROR_MISUSE, /*!< API missuse */ M_JSON_ERROR_INVALID_START, /*!< expected Object or Array to start */ M_JSON_ERROR_EXPECTED_END, /*!< expected end but more data found */ M_JSON_ERROR_MISSING_COMMENT_CLOSE, /*!< close comment not found */ M_JSON_ERROR_UNEXPECTED_COMMENT_START, /*!< unexpected / */ M_JSON_ERROR_INVALID_PAIR_START, /*!< expected string as first half of pair */ M_JSON_ERROR_DUPLICATE_KEY, /*!< duplicate key */ M_JSON_ERROR_MISSING_PAIR_SEPARATOR, /*!< expected ':' separator in pair */ M_JSON_ERROR_OBJECT_UNEXPECTED_CHAR, /*!< unexpected character in object */ M_JSON_ERROR_EXPECTED_VALUE, /*!< expected value after ',' */ M_JSON_ERROR_UNCLOSED_OBJECT, /*!< expected '}' to close object */ M_JSON_ERROR_ARRAY_UNEXPECTED_CHAR, /*!< unexpected character in array */ M_JSON_ERROR_UNCLOSED_ARRAY, /*!< expected ']' to close array */ M_JSON_ERROR_UNEXPECTED_NEWLINE, /*!< unexpected newline */ M_JSON_ERROR_UNEXPECTED_CONTROL_CHAR, /*!< unexpected control character */ M_JSON_ERROR_INVALID_UNICODE_ESACPE, /*!< invalid unicode escape */ M_JSON_ERROR_UNEXPECTED_ESCAPE, /*!< unexpected escape */ M_JSON_ERROR_UNCLOSED_STRING, /*!< unclosed string */ M_JSON_ERROR_INVALID_BOOL, /*!< invalid bool value */ M_JSON_ERROR_INVALID_NULL, /*!< invalid null value */ M_JSON_ERROR_INVALID_NUMBER, /*!< invalid number value */ M_JSON_ERROR_UNEXPECTED_TERMINATION, /*!< unexpected termination of string data. \0 in data. */ M_JSON_ERROR_INVALID_IDENTIFIER, /*!< invalid identifier */ M_JSON_ERROR_UNEXPECTED_END /*!< unexpected end of data */ } M_json_error_t; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Create a JSON node. * * \param[in] type The type of the node to create. * * \return A JSON node on success. NULL on failure (an invalid type was requested). * * \see M_json_node_destroy */ M_API M_json_node_t *M_json_node_create(M_json_type_t type) M_MALLOC; /*! Destory a JSON node. * * Destroying a node will destroy every node under it and remove it from it's parent node if it is a child. * * \param[in] node The node to destroy. */ M_API void M_json_node_destroy(M_json_node_t *node) M_FREE(1); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Parse a string into a JSON object. * * \param[in] data The data to parse. * \param[in] data_len The length of the data to parse. * \param[in] flags M_json_reader_flags_t flags to control the behavior of the reader. * \param[out] processed_len Length of data processed. Useful if you could have multiple JSON documents * in a stream. Optional pass NULL if not needed. * \param[out] error On error this will be populated with an error reason. Optional, pass NULL if not needed. * \param[out] error_line The line the error occurred. Optional, pass NULL if not needed. * \param[out] error_pos The column the error occurred if error_line is not NULL, otherwise the position * in the stream the error occurred. Optional, pass NULL if not needed. * * \return The root JSON node of the parsed data, or NULL on error. */ M_API M_json_node_t *M_json_read(const char *data, size_t data_len, M_uint32 flags, size_t *processed_len, M_json_error_t *error, size_t *error_line, size_t *error_pos) M_MALLOC; /*! Parse a file into a JSON object. * * \param[in] path The file to read. * \param[in] flags M_json_reader_flags_t flags to control the behavior of the reader. * \param[in] max_read The maximum number of bytes to read from the file. If the data in the file is * larger than max_read an error will most likely result. Optional pass 0 to read all data. * \param[out] error On error this will be populated with an error reason. Optional, pass NULL if not needed. * \param[out] error_line The line the error occurred. Optional, pass NULL if not needed. * \param[out] error_pos The column the error occurred if error_line is not NULL, otherwise the position * in the stream the error occurred. Optional, pass NULL if not needed. * \return The root JSON node of the parsed data, or NULL on error. */ M_API M_json_node_t *M_json_read_file(const char *path, M_uint32 flags, size_t max_read, M_json_error_t *error, size_t *error_line, size_t *error_pos) M_MALLOC; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Write JSON to a string. * * This writes nodes to a string. The string may not be directly usable by M_json_read. * E.g. If you are only writing a string node. * * \param[in] node The node to write. This will write the node and any nodes under it. * \param[in] flags M_json_writer_flags_t flags to control writing. * \param[out] len The length of the string that was returned. Optional, pass NULL if not needed. * * \return A string with data or NULL on error. */ M_API char *M_json_write(const M_json_node_t *node, M_uint32 flags, size_t *len) M_WARN_UNUSED_RESULT M_MALLOC; /*! Write JSON to a file. * * This writes nodes to a string. The string may not be directly usable by M_json_read_file (for example) * if you are only writing a string node (for example). * * \param[in] node The node to write. This will write the node and any nodes under it. * \param[in] path The filename and path to write the data to. * \param[in] flags M_json_writer_flags_t flags to control writing. * * \return Result. */ M_API M_fs_error_t M_json_write_file(const M_json_node_t *node, const char *path, M_uint32 flags); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Convert a JSON error code to a string. * * \param[in] err error code * \return name of error code (not a description, just the enum name, like M_JSON_ERROR_SUCCESS) */ M_API const char *M_json_errcode_to_str(M_json_error_t err); /*! Get the type of node. * * \param[in] node The node. * * \return The type. */ M_API M_json_type_t M_json_node_type(const M_json_node_t *node); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Using JSONPath expressions, scan for matches. * * Note: that full JSONPath support does not yet exist. * * Search expressions must start with $. They can use . to refer to the first element * or .. to search for the first matching element. * * Supports: * - Patterns containing ".", "*", "..". * - Array offsets using [*]/[]/[,]/[start:end:step]. * - Positive offsets [0], [0,2]. * - Negative offsets [-1] (last item). [-2] (second to last item). * - Positive and negative steps. [0:4:2]. [4:0:-1]. * - When counting up start is inclusive and end is exclusive. [0:3] is equivalent to [0,1,2]. * - When counting down start is exclusive and end is inclusive. [3:0:-1] is equivalent to [2,1,0]. * * Does not Support: * - Braket notation ['x']. * - Filter/script expressions. [?(exp)]/[(exp)]. * * \param[in] node The node. * \param[in] search search expression * \param[out] num_matches Number of matches found * * \return array of M_json_node_t pointers on success (must free array, but not internal pointers), NULL on failure * * \see M_free */ M_API M_json_node_t **M_json_jsonpath(const M_json_node_t *node, const char *search, size_t *num_matches) M_MALLOC; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Get the parent node of a given node. * * \param[in] node The node. * * \return The parent node or NULL if there is no parent. */ M_API M_json_node_t *M_json_get_parent(const M_json_node_t *node); /*! Take the node from the parent but does not destroy it. * * This allows a node to be moved between different parents. * * \param[in,out] node The node. */ M_API void M_json_take_from_parent(M_json_node_t *node); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Get the value of an object node for a given key. * * The object still owns the returned node. You can use M_json_take_from_parent to remove the ownership. * At which point you will need to either insert it into another object/array or destroy it. * * \param[in] node The node. * \param[in] key The key. * * \return The node under key. Otherwise NULL if the key does not exist. */ M_API M_json_node_t *M_json_object_value(const M_json_node_t *node, const char *key); /*! Get the string value of an object node for a given key. * * \param[in] node The node. * \param[in] key The key. * * \return The string value under the key. NULL if not a string or key does not exist. */ M_API const char *M_json_object_value_string(const M_json_node_t *node, const char *key); /*! Get the integer value of an object node for a given key. * * If the node is not an M_JSON_TYPE_INTEGER auto conversion will be attempted. * * \param[in] node The node. * \param[in] key The key. * * \return The value. 0 on error. The only way to know if there was an error * or the return is the value is to check the type. */ M_API M_int64 M_json_object_value_int(const M_json_node_t *node, const char *key); /*! Get the decimal value of an object node for a given key. * * \param[in] node The node. * \param[in] key The key. * * \return The string value under the key. NULL if not a decimal or key does not exist. */ M_API const M_decimal_t *M_json_object_value_decimal(const M_json_node_t *node, const char *key); /*! Get the bool value of an object node for a given key. * * If the node is not a M_JSON_TYPE_BOOL auto conversion will be attempted. * * \param[in] node The node. * \param[in] key The key. * * \return The value. M_FALSE on error. The only way to know if there was an error * or the return is the value is to check the type. */ M_API M_bool M_json_object_value_bool(const M_json_node_t *node, const char *key); /*! Get a list of all keys for the object. * * \param[in] node The node. * * \return A list of keys. */ M_API M_list_str_t *M_json_object_keys(const M_json_node_t *node); /*! Get the number of child nodes in this object. * * This corresponds to the number of gets. * * \param[in] node The node. * * \return Count of objects. */ M_API size_t M_json_object_num_children(const M_json_node_t *node); /*! Insert a node into the object. * * The object node will take ownership of the value node. * * \param[in,out] node The node. * \param[in] key The key. If the key already exists the existing node will be destroyed and replaced with the * new value node. * \param[in] value The node to add to the object. * * \return M_TRUE on success otherwise M_FALSE. */ M_API M_bool M_json_object_insert(M_json_node_t *node, const char *key, M_json_node_t *value); /*! Insert a string into the object. * * \param[in,out] node The node. * \param[in] key The key. If the key already exists the existing node will be destroyed and replaced with the * new value node. * \param[in] value The string to add to the object. * * \return M_TRUE on success otherwise M_FALSE. */ M_API M_bool M_json_object_insert_string(M_json_node_t *node, const char *key, const char *value); /*! Insert an integer into the object. * * \param[in,out] node The node. * \param[in] key The key. If the key already exists the existing node will be destroyed and replaced with the * new value node. * \param[in] value The integer to add to the object. * * \return M_TRUE on success otherwise M_FALSE. */ M_API M_bool M_json_object_insert_int(M_json_node_t *node, const char *key, M_int64 value); /*! Insert an decimal into the object. * * \param[in,out] node The node. * \param[in] key The key. If the key already exists the existing node will be destroyed and replaced with the * new value node. * \param[in] value The decimal to add to the object. * * \return M_TRUE on success otherwise M_FALSE. */ M_API M_bool M_json_object_insert_decimal(M_json_node_t *node, const char *key, const M_decimal_t *value); /*! Insert an bool into the object. * * \param[in,out] node The node. * \param[in] key The key. If the key already exists the existing node will be destroyed and replaced with the * new value node. * \param[in] value The bool to add to the object. * * \return M_TRUE on success otherwise M_FALSE. */ M_API M_bool M_json_object_insert_bool(M_json_node_t *node, const char *key, M_bool value); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Get the number of items in an array node. * * \param[in] node The node. * * \return The number of items in the array. */ M_API size_t M_json_array_len(const M_json_node_t *node); /*! Get the item in the array at a given index. * * The array still owns the returned node. You can use M_json_take_from_parent to remove the ownership. * At which point you will need to either insert it into another object/array or destroy it. * * \param[in] node The node. * \param[in] idx The index. * * \return The node at the given index or NULL if the index is invalid. */ M_API M_json_node_t *M_json_array_at(const M_json_node_t *node, size_t idx); /*! Get the string value of given index in an array. * * \param[in] node The node. * \param[in] idx The index. * * \return The string value at the location. NULL if not a string or key does not exist. */ M_API const char *M_json_array_at_string(const M_json_node_t *node, size_t idx); /*! Get the integer value of given index in an array. * * If the node is not an M_JSON_TYPE_INTEGER auto conversion will be attempted. * * \param[in] node The node. * \param[in] idx The index. * * \return The value. 0 on error. The only way to know if there was an error * or the return is the value is to check the type. */ M_API M_int64 M_json_array_at_int(const M_json_node_t *node, size_t idx); /*! Get the decimal value of given index in an array. * * \param[in] node The node. * \param[in] idx The index. * * \return The string value under the key. NULL if not a decimal or index does not exist. */ M_API const M_decimal_t *M_json_array_at_decimal(const M_json_node_t *node, size_t idx); /*! Get the string value of given index in an array. * * If the node is not a M_JSON_TYPE_BOOL auto conversion will be attempted. * * \param[in] node The node. * \param[in] idx The index. * * \return The value. M_FALSE on error. The only way to know if there was an error * or the return is the value is to check the type. */ M_API M_bool M_json_array_at_bool(const M_json_node_t *node, size_t idx); /*! Append a node into an array node. * * \param[in,out] node The node. * \param[in] value The value node to append. * * \return M_TRUE if the value was appended otherwise M_FALSE. */ M_API M_bool M_json_array_insert(M_json_node_t *node, M_json_node_t *value); /*! Append a string into an array node. * * \param[in,out] node The node. * \param[in] value The value to append. * * \return M_TRUE if the value was appended otherwise M_FALSE. */ M_API M_bool M_json_array_insert_string(M_json_node_t *node, const char *value); /*! Append a integer into an array node. * * \param[in,out] node The node. * \param[in] value The value to append. * * \return M_TRUE if the value was appended otherwise M_FALSE. */ M_API M_bool M_json_array_insert_int(M_json_node_t *node, M_int64 value); /*! Append a decimal into an array node. * * \param[in,out] node The node. * \param[in] value The value to append. * * \return M_TRUE if the value was appended otherwise M_FALSE. */ M_API M_bool M_json_array_insert_decimal(M_json_node_t *node, const M_decimal_t *value); /*! Append a bool into an array node. * * \param[in,out] node The node. * \param[in] value The value to append. * * \return M_TRUE if the value was appended otherwise M_FALSE. */ M_API M_bool M_json_array_insert_bool(M_json_node_t *node, M_bool value); /*! Insert a node into an array node at a given index. * * \param[in,out] node The node. * \param[in] value The value node to append. * \param[in] idx The index to insert at. * * \return M_TRUE if the value was inserted otherwise M_FALSE. */ M_API M_bool M_json_array_insert_at(M_json_node_t *node, M_json_node_t *value, size_t idx); /*! Insert a string into an array node at a given index. * * \param[in,out] node The node. * \param[in] value The value to append. * \param[in] idx The index to insert at. * * \return M_TRUE if the value was inserted otherwise M_FALSE. */ M_API M_bool M_json_array_insert_at_string(M_json_node_t *node, const char *value, size_t idx); /*! Insert a integer into an array node at a given index. * * \param[in,out] node The node. * \param[in] value The value to append. * \param[in] idx The index to insert at. * * \return M_TRUE if the value was inserted otherwise M_FALSE. */ M_API M_bool M_json_array_insert_at_int(M_json_node_t *node, M_int64 value, size_t idx); /*! Insert a decimal into an array node at a given index. * * \param[in,out] node The node. * \param[in] value The value to append. * \param[in] idx The index to insert at. * * \return M_TRUE if the value was inserted otherwise M_FALSE. */ M_API M_bool M_json_array_insert_at_decimal(M_json_node_t *node, const M_decimal_t *value, size_t idx); /*! Insert a bool into an array node at a given index. * * \param[in,out] node The node. * \param[in] value The value to append. * \param[in] idx The index to insert at. * * \return M_TRUE if the value was inserted otherwise M_FALSE. */ M_API M_bool M_json_array_insert_at_bool(M_json_node_t *node, M_bool value, size_t idx); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Get the value from a string node. * * \param[in] node The node. * * \return The value. */ M_API const char *M_json_get_string(const M_json_node_t *node); /*! Make the node a string node and set the value. * * \param[in,out] node The node. * \param[in] value The value to set. * * \return M_TRUE if the node updated. */ M_API M_bool M_json_set_string(M_json_node_t *node, const char *value); /*! Get the value from an integer node. * * If the node is not an M_JSON_TYPE_INTEGER auto conversion will be attempted. * * \param[in] node The node. * * \return The value. 0 on error. The only way to know if there was an error * or the return is the value is to check the type. */ M_API M_int64 M_json_get_int(const M_json_node_t *node); /*! Make the node a integer node and set the value. * * \param[in,out] node The node. * \param[in] value The value. * * \return M_TRUE if the node updated. */ M_API M_bool M_json_set_int(M_json_node_t *node, M_int64 value); /*! Get the value from a decimal node. * * \param[in] node The node. * * \return The value. */ M_API const M_decimal_t *M_json_get_decimal(const M_json_node_t *node); /*! Make the node a decimal node and set the value. * * \param[in,out] node The node. * \param[in] value The value. * * \return M_TRUE if the node updated. */ M_API M_bool M_json_set_decimal(M_json_node_t *node, const M_decimal_t *value); /*! Get the value from a bool node. * * If the node is not a M_JSON_TYPE_BOOL auto conversion will be attempted. * * \param[in] node The node. * * \return The value. M_FALSE on error. The only way to know if there was an error * or the return is the value is to check the type. * * \see M_json_node_type */ M_API M_bool M_json_get_bool(const M_json_node_t *node); /*! Make the node a bool node and set the value. * * \param[in,out] node The node. * \param[in] value The value. * * \return M_TRUE if the node updated. */ M_API M_bool M_json_set_bool(M_json_node_t *node, M_bool value); /*! Make the node a null node. * * \param[in] node The node. * * \return M_TRUE if the node updated. */ M_API M_bool M_json_set_null(M_json_node_t *node); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! Get the node value as a string. * * This will only work on value type nodes (string, integer, decimal, book, null). * Other node types (object, array) will fail. * * \param[in] node The node. * \param[out] buf An allocated buffer to write the value as a string to. The result will be null terminated * on success. * \param[in] buf_len The length of the buffer. * * \return M_TRUE on success. Otherwise M_FALSE. */ M_API M_bool M_json_get_value(const M_json_node_t *node, char *buf, size_t buf_len); /*! Get the node value as a string. * * This will only work on value type nodes (string, integer, decimal, book, null). * Other node types (object, array) will fail. * * \param[in] node The node. * * \return The value or NULL on error. */ M_API char *M_json_get_value_dup(const M_json_node_t *node); /*! @} */ __END_DECLS #endif /* __M_JSON_H__ */
35.859335
178
0.647422
13fbe58b1d8bf789f452eee32e2a595dd923bd53
7,204
c
C
jni/bitop.c
yasushi-saito/AndroidShogi
850274d0904a1926c35edebb03dd2a5a3c5441bf
[ "Apache-2.0" ]
3
2017-06-08T13:32:43.000Z
2019-05-05T17:59:05.000Z
jni/bitop.c
yasushi-saito/AndroidShogi
850274d0904a1926c35edebb03dd2a5a3c5441bf
[ "Apache-2.0" ]
1
2021-07-06T16:20:30.000Z
2021-07-06T16:20:30.000Z
jni/bitop.c
yasushi-saito/AndroidShogi
850274d0904a1926c35edebb03dd2a5a3c5441bf
[ "Apache-2.0" ]
null
null
null
#include "shogi.h" int popu_count012( unsigned int u0, unsigned int u1, unsigned int u2 ) { int counter = 0; while ( u0 ) { counter++; u0 &= u0 - 1U; } while ( u1 ) { counter++; u1 &= u1 - 1U; } while ( u2 ) { counter++; u2 &= u2 - 1U; } return counter; } #if defined(_MSC_VER) int first_one012( unsigned int u0, unsigned int u1, unsigned int u2 ) { unsigned long index; if ( _BitScanReverse( &index, u0 ) ) { return 26 - index; } if ( _BitScanReverse( &index, u1 ) ) { return 53 - index; } _BitScanReverse( &index, u2 ); return 80 - index; } int last_one210( unsigned int u2, unsigned int u1, unsigned int u0 ) { unsigned long index; if ( _BitScanForward( &index, u2 ) ) { return 80 - index; } if ( _BitScanForward( &index, u1 ) ) { return 53 - index; } _BitScanForward( &index, u0 ); return 26 - index; } int first_one01( unsigned int u0, unsigned int u1 ) { unsigned long index; if ( _BitScanReverse( &index, u0 ) ) { return 26 - index; } _BitScanReverse( &index, u1 ); return 53 - index; } int first_one12( unsigned int u1, unsigned int u2 ) { unsigned long index; if ( _BitScanReverse( &index, u1 ) ) { return 53 - index; } _BitScanReverse( &index, u2 ); return 80 - index; } int last_one01( unsigned int u0, unsigned int u1 ) { unsigned long index; if ( _BitScanForward( &index, u1 ) ) { return 53 - index; } _BitScanForward( &index, u0 ); return 26 - index; } int last_one12( unsigned int u1, unsigned u2 ) { unsigned long index; if ( _BitScanForward( &index, u2 ) ) { return 80 - index; } _BitScanForward( &index, u1 ); return 53 - index; } int first_one1( unsigned int u1 ) { unsigned long index; _BitScanReverse( &index, u1 ); return 53 - index; } int first_one2( unsigned int u2 ) { unsigned long index; _BitScanReverse( &index, u2 ); return 80 - index; } int last_one0( unsigned int u0 ) { unsigned long index; _BitScanForward( &index, u0 ); return 26 - index; } int last_one1( unsigned int u1 ) { unsigned long index; _BitScanForward( &index, u1 ); return 53 - index; } #elif defined(__GNUC__) && ( defined(__i386__) || defined(__x86_64__) ) int first_one012( unsigned int u0, unsigned int u1, unsigned int u2 ) { if ( u0 ) { return __builtin_clz( u0 ) - 5; } if ( u1 ) { return __builtin_clz( u1 ) + 22; } return __builtin_clz( u2 ) + 49; } int last_one210( unsigned int u2, unsigned int u1, unsigned int u0 ) { if ( u2 ) { return 80 - __builtin_ctz( u2 ); } if ( u1 ) { return 53 - __builtin_ctz( u1 ); } return 26 - __builtin_ctz( u0 ); } int first_one01( unsigned int u0, unsigned int u1 ) { if ( u0 ) { return __builtin_clz( u0 ) - 5; } return __builtin_clz( u1 ) + 22; } int first_one12( unsigned int u1, unsigned int u2 ) { if ( u1 ) { return __builtin_clz( u1 ) + 22; } return __builtin_clz( u2 ) + 49; } int last_one01( unsigned int u0, unsigned int u1 ) { if ( u1 ) { return 53 - __builtin_ctz( u1 ); } return 26 - __builtin_ctz( u0 ); } int last_one12( unsigned int u1, unsigned int u2 ) { if ( u2 ) { return 80 - __builtin_ctz( u2 ); } return 53 - __builtin_ctz( u1 ); } int first_one1( unsigned int u1 ) { return __builtin_clz( u1 ) + 22; } int first_one2( unsigned int u2 ) { return __builtin_clz( u2 ) + 49; } int last_one0( unsigned int u0 ) { return 26 - __builtin_ctz( u0 ); } int last_one1( unsigned int u1 ) { return 53 - __builtin_ctz( u1 ); } #else int first_one012( unsigned int u0, unsigned int u1, unsigned int u2 ) { if ( u0 & 0x7fc0000 ) { return aifirst_one[u0>>18] + 0; } if ( u0 & 0x7fffe00 ) { return aifirst_one[u0>> 9] + 9; } if ( u0 & 0x7ffffff ) { return aifirst_one[u0 ] + 18; } if ( u1 & 0x7fc0000 ) { return aifirst_one[u1>>18] + 27; } if ( u1 & 0x7fffe00 ) { return aifirst_one[u1>> 9] + 36; } if ( u1 & 0x7ffffff ) { return aifirst_one[u1 ] + 45; } if ( u2 & 0x7fc0000 ) { return aifirst_one[u2>>18] + 54; } if ( u2 & 0x7fffe00 ) { return aifirst_one[u2>> 9] + 63; } return aifirst_one[u2] + 72; } int last_one210( unsigned int u2, unsigned int u1, unsigned int u0 ) { unsigned int j; j = u2 & 0x00001ff; if ( j ) { return ailast_one[j ] + 72; } j = u2 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 63; } if ( u2 & 0x7ffffff ) { return ailast_one[u2>>18] + 54; } j = u1 & 0x00001ff; if ( j ) { return ailast_one[j ] + 45; } j = u1 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 36; } if ( u1 & 0x7ffffff ) { return ailast_one[u1>>18] + 27; } j = u0 & 0x00001ff; if ( j ) { return ailast_one[j ] + 18; } j = u0 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 9; } return ailast_one[u0>>18]; } int first_one01( unsigned int u0, unsigned int u1 ) { if ( u0 & 0x7fc0000 ) { return aifirst_one[u0>>18] + 0; } if ( u0 & 0x7fffe00 ) { return aifirst_one[u0>> 9] + 9; } if ( u0 & 0x7ffffff ) { return aifirst_one[u0 ] + 18; } if ( u1 & 0x7fc0000 ) { return aifirst_one[u1>>18] + 27; } if ( u1 & 0x7fffe00 ) { return aifirst_one[u1>> 9] + 36; } return aifirst_one[ u1 ] + 45; } int first_one12( unsigned int u1, unsigned int u2 ) { if ( u1 & 0x7fc0000 ) { return aifirst_one[u1>>18] + 27; } if ( u1 & 0x7fffe00 ) { return aifirst_one[u1>> 9] + 36; } if ( u1 & 0x7ffffff ) { return aifirst_one[u1 ] + 45; } if ( u2 & 0x7fc0000 ) { return aifirst_one[u2>>18] + 54; } if ( u2 & 0x7fffe00 ) { return aifirst_one[u2>> 9] + 63; } return aifirst_one[ u2 ] + 72; } int last_one01( unsigned int u0, unsigned int u1 ) { unsigned int j; j = u1 & 0x00001ff; if ( j ) { return ailast_one[j ] + 45; } j = u1 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 36; } if ( u1 & 0x7ffffff ) { return ailast_one[u1>>18] + 27; } j = u0 & 0x00001ff; if ( j ) { return ailast_one[j ] + 18; } j = u0 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 9; } return ailast_one[u0>>18]; } int last_one12( unsigned int u1, unsigned int u2 ) { unsigned int j; j = u2 & 0x00001ff; if ( j ) { return ailast_one[j ] + 72; } j = u2 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 63; } if ( u2 & 0x7ffffff ) { return ailast_one[u2>>18] + 54; } j = u1 & 0x00001ff; if ( j ) { return ailast_one[j ] + 45; } j = u1 & 0x003ffff; if ( j ) { return ailast_one[j>> 9] + 36; } return ailast_one[u1>>18] + 27; } int first_one1( unsigned int u1 ) { if ( u1 & 0x7fc0000U ) { return aifirst_one[u1>>18] + 27; } if ( u1 & 0x7fffe00U ) { return aifirst_one[u1>> 9] + 36; } return aifirst_one[u1] + 45; } int first_one2( unsigned int u2 ) { if ( u2 & 0x7fc0000U ) { return aifirst_one[u2>>18] + 54; } if ( u2 & 0x7fffe00U ) { return aifirst_one[u2>> 9] + 63; } return aifirst_one[u2] + 72; } int last_one0( unsigned int i ) { unsigned int j; j = i & 0x00001ffU; if ( j ) { return ailast_one[j ] + 18; } j = i & 0x003ffffU; if ( j ) { return ailast_one[j>> 9] + 9; } return ailast_one[i>>18]; } int last_one1( unsigned int u1 ) { unsigned int j; j = u1 & 0x00001ffU; if ( j ) { return ailast_one[j ] + 45; } j = u1 & 0x003ffffU; if ( j ) { return ailast_one[j>> 9] + 36; } return ailast_one[u1>>18] + 27; } #endif
23.619672
71
0.609245
7a4268a1deff1f84af779b16f76d8eaeed51e6be
3,635
h
C
include/DriveSingularity/Control/Control.h
737363395/DriveSingularity
51a7ce61c2263b662f669cd8bc01faa88ad4b771
[ "Apache-2.0" ]
null
null
null
include/DriveSingularity/Control/Control.h
737363395/DriveSingularity
51a7ce61c2263b662f669cd8bc01faa88ad4b771
[ "Apache-2.0" ]
null
null
null
include/DriveSingularity/Control/Control.h
737363395/DriveSingularity
51a7ce61c2263b662f669cd8bc01faa88ad4b771
[ "Apache-2.0" ]
null
null
null
// // Created by ming on 7/30/19. // #ifndef DRIVE_SINGULARITY_TMP_CONTROL_H #define DRIVE_SINGULARITY_TMP_CONTROL_H #include "DriveSingularity/Utils/Events.h" #include "DriveSingularity/Vehicle/Vehicle.h" #include <iostream> #include <utility> #include <unordered_set> namespace ds { namespace control { enum VehicleType { Agent = 0, Social }; /* controlling parameters */ constexpr double MaxVelocity = 200; constexpr double MaxAcceleration = 35; constexpr double MaxComfortableAcceleration = 15; constexpr double MinComfortableAcceleration = -30; constexpr double Delta = 4; constexpr double DistanceWanted = 30; constexpr double TimeWanted = 1.5; constexpr double MaxSteeringAngle = Pi / 3; constexpr double TauAccel = 0.6; constexpr double TauDS = 0.2; constexpr double KpAccel = 1 / TauAccel; constexpr double KpHeading = 1 / TauDS; constexpr double KpLateral = 0.5; constexpr double LaneChangeDelay = 5; constexpr double LaneChangeMaxBrakingImposed = 10; constexpr double Politeness = 0.5; constexpr double LaneChangeMinAccelGain = 5; constexpr double CollisionReward = -1; constexpr double HighVelocityReward = 0.4; constexpr double LaneChangeReward = 0; static VehicleId VEHICLE_ID_MANAGER = 0; class VehicleController : public VehicleEntity, public std::enable_shared_from_this<VehicleController> { public: VehicleController(std::shared_ptr<roadmap::RoadMap> rmap, std::shared_ptr<roadmap::Graph> rgraph, double halfLength, double halfWidth, double x, double y, double rotation, double velocity, double targetVelocity, roadmap::LaneId laneId, roadmap::LaneId targetLaneId) : VehicleEntity(halfLength, halfWidth, x, y, rotation, velocity, targetVelocity, laneId, targetLaneId), roadMap(std::move(rmap)), roadGraph(std::move(rgraph)) { id = VEHICLE_ID_MANAGER++; } ~VehicleController() override = default; VehicleId getId() const { return id; } double getTimer() const { return timer; } double &getTimer() { return timer; } void setTimer(double v) { timer = v; } void controlSteering(); void followRoad(); virtual double calculateReward() const { return 0; } void setOutMap(bool val) { outMap = val; } void setCrash(bool val) { crashed = val; } bool isCrashed() const { return crashed; } bool isOutMap() const { return outMap; } bool isTerminate() const { return outMap || crashed; } VehicleType getVehicleType() const { return vehicleType; } void setVehicleType(VehicleType type) { vehicleType = type; } public: // !!! you must implement them !!! virtual void pickLane() = 0; virtual void controlAccelerate() = 0; virtual void step(double dt) = 0; virtual double calculateAcc(const std::shared_ptr<VehicleController>&, bool) = 0; virtual double getDesiredGap(const std::shared_ptr<VehicleController>&) = 0; public: // API // TODO(ming): support multiple events. void setEventListening(EventFlag::Type event) { eventListening.emplace(event); } // EventFlag::Type getEventListening() const { return eventListening; } std::unordered_set<EventFlag::Type> getEventListening() const { return eventListening; } private: VehicleId id; double timer = 0; bool crashed = false; bool outMap = false; VehicleType vehicleType; // EventFlag::Type eventListening = EventFlag::None; std::unordered_set<EventFlag::Type> eventListening; protected: std::shared_ptr<roadmap::RoadMap> roadMap; std::shared_ptr<roadmap::Graph> roadGraph; }; } // namespace control } // namespace ds #endif // DRIVE_SINGULARITY_TMP_CONTROL_H
31.068376
90
0.725172
9347f05d19216cf4eee727667897229c75dafb97
1,569
c
C
Controller_Software/Tut2- PWM Interrupts and Sine Wave Generation/source/Sine_Ref_Init.c
equinoxorg/Micro-Hydro-ELC
242d1e07ae4defe1c675bc45748f24709c9eba0d
[ "CC-BY-3.0" ]
2
2017-04-05T13:08:33.000Z
2018-02-06T22:35:38.000Z
Controller_Software/Tut2- PWM Interrupts and Sine Wave Generation/source/Sine_Ref_Init.c
equinoxorg/Micro-Hydro-ELC
242d1e07ae4defe1c675bc45748f24709c9eba0d
[ "CC-BY-3.0" ]
null
null
null
Controller_Software/Tut2- PWM Interrupts and Sine Wave Generation/source/Sine_Ref_Init.c
equinoxorg/Micro-Hydro-ELC
242d1e07ae4defe1c675bc45748f24709c9eba0d
[ "CC-BY-3.0" ]
5
2015-11-14T21:53:00.000Z
2021-01-12T01:02:28.000Z
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ //<< FILE: SineRefInit.c DATE: 06/2012 >>\\ //<< DEVICE: TI Piccolo F28069 >>\\ //<< AUTHOR: Ali Hadi Al-Hakim Imperial College London >>\\ //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ //<< Inverter Sine Wave Reference Initialisation >>\\ //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ //###########################################################################// // INCLUDE FILES // //###########################################################################// // #include "hFunctionProto.h" //###########################################################################// // INITIALISE SINE WAVE PROPERTIES // //###########################################################################// void SineRefInit(void) { sinGen.offset = ; sinGen.gain = ; sinGen.step_max = ; sinGen.freq = ; sinGen.phase = ; } /* OFFSET : Described by 16 bit signed integer GAIN : Described by 16 bit signed integer STEP_MAX: STEP_MAX = (MaxFreq*2^32)/Fsamp Frequency resolution is equal = (*2^32)/ = to MaxFreq/STEP_MAX = FREQ : FREQ = (RequiredFreq/MaxFreq)*2^31 = (/)*2^31 = PHASE : PHASE = (RequiredPhase)/180 in Q31 = (/) in Q31 = */ //###########################################################################// // END OF FILE // //###########################################################################//
33.382979
79
0.311026
4f4c63c54683cc7c6056d90837f28f85383293af
2,936
c
C
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libblkid/src/superblocks/hpfs.c
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libblkid/src/superblocks/hpfs.c
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libblkid/src/superblocks/hpfs.c
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2008 Karel Zak <kzak@redhat.com> * * Inspired by libvolume_id by * Kay Sievers <kay.sievers@vrfy.org> * * This file may be redistributed under the terms of the * GNU Lesser General Public License. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "superblocks.h" struct hpfs_boot_block { uint8_t jmp[3]; uint8_t oem_id[8]; uint8_t bytes_per_sector[2]; uint8_t sectors_per_cluster; uint8_t n_reserved_sectors[2]; uint8_t n_fats; uint8_t n_rootdir_entries[2]; uint8_t n_sectors_s[2]; uint8_t media_byte; uint16_t sectors_per_fat; uint16_t sectors_per_track; uint16_t heads_per_cyl; uint32_t n_hidden_sectors; uint32_t n_sectors_l; uint8_t drive_number; uint8_t mbz; uint8_t sig_28h; uint8_t vol_serno[4]; uint8_t vol_label[11]; uint8_t sig_hpfs[8]; uint8_t pad[448]; uint8_t magic[2]; } __attribute__((packed)); struct hpfs_super_block { uint8_t magic[4]; uint8_t magic1[4]; uint8_t version; } __attribute__((packed)); struct hpfs_spare_super { uint8_t magic[4]; uint8_t magic1[4]; } __attribute__((packed)); #define HPFS_SB_OFFSET 0x2000 #define HPFS_SBSPARE_OFFSET 0x2200 static int probe_hpfs(blkid_probe pr, const struct blkid_idmag* mag) { struct hpfs_super_block* hs; struct hpfs_spare_super* hss; struct hpfs_boot_block* hbb; uint8_t version; /* super block */ hs = blkid_probe_get_sb(pr, mag, struct hpfs_super_block); if (!hs) return errno ? -errno : 1; version = hs->version; /* spare super block */ hss = (struct hpfs_spare_super*)blkid_probe_get_buffer( pr, HPFS_SBSPARE_OFFSET, sizeof(struct hpfs_spare_super)); if (!hss) return errno ? -errno : 1; if (memcmp(hss->magic, "\x49\x18\x91\xf9", 4) != 0) return 1; /* boot block (with UUID and LABEL) */ hbb = (struct hpfs_boot_block*)blkid_probe_get_buffer( pr, 0, sizeof(struct hpfs_boot_block)); if (!hbb) return errno ? -errno : 1; if (memcmp(hbb->magic, "\x55\xaa", 2) == 0 && memcmp(hbb->sig_hpfs, "HPFS", 4) == 0 && hbb->sig_28h == 0x28) { blkid_probe_set_label(pr, hbb->vol_label, sizeof(hbb->vol_label)); blkid_probe_sprintf_uuid(pr, hbb->vol_serno, sizeof(hbb->vol_serno), "%02X%02X-%02X%02X", hbb->vol_serno[3], hbb->vol_serno[2], hbb->vol_serno[1], hbb->vol_serno[0]); } blkid_probe_sprintf_version(pr, "%u", version); return 0; } const struct blkid_idinfo hpfs_idinfo = { .name = "hpfs", .usage = BLKID_USAGE_FILESYSTEM, .probefunc = probe_hpfs, .magics = {{.magic = "\x49\xe8\x95\xf9", .len = 4, .kboff = (HPFS_SB_OFFSET >> 10)}, {NULL}}};
27.185185
76
0.630109
d1db3a04f614eb887c27566f510a58435507f140
4,756
c
C
firmware/slave/src/uavcan_impl.c
mprymek/PeaLC
6b0b3d44fb36204508ad870402b64ba37a8eab76
[ "BSD-3-Clause" ]
15
2019-10-27T17:31:58.000Z
2022-02-27T22:01:58.000Z
firmware/slave/src/uavcan_impl.c
mprymek/PeaLC
6b0b3d44fb36204508ad870402b64ba37a8eab76
[ "BSD-3-Clause" ]
1
2021-03-08T14:01:36.000Z
2021-03-08T16:49:26.000Z
firmware/slave/src/uavcan_impl.c
mprymek/PeaLC
6b0b3d44fb36204508ad870402b64ba37a8eab76
[ "BSD-3-Clause" ]
6
2021-02-12T22:04:44.000Z
2021-10-24T00:16:05.000Z
#include <Arduino.h> #include "uavcan_node.h" #include "uavcan_automation.h" #include "automation/SetValues.h" #include "automation/GetValues.h" #include "app_config.h" #include "hal.h" #include "io.h" #include "uavcan_impl.h" int uavcan2_init() { // init CAN HW int res; if ((res = can2_init())) { return res; } // init UAVCAN uavcan_init(); uavcan_node_status.health = UAVCAN_PROTOCOL_NODESTATUS_HEALTH_OK; uavcan_node_status.mode = UAVCAN_PROTOCOL_NODESTATUS_MODE_INITIALIZATION; //uavcan_node_info.hardware_version.major = HW_VERSION_MAJOR; //uavcan_node_info.hardware_version.minor = HW_VERSION_MINOR; uavcan_get_unique_id(uavcan_node_info.hardware_version.unique_id); //uavcan_node_info.hardware_version.certificate_of_authenticity.data = ; //uavcan_node_info.hardware_version.certificate_of_authenticity.len = 0; uavcan_node_info.software_version.major = APP_VERSION_MAJOR; uavcan_node_info.software_version.minor = APP_VERSION_MINOR; //uavcan_node_info.software_version.image_crc = ; //uavcan_node_info.software_version.optional_field_flags = ; //uavcan_node_info.software_version.vcs_commit = GIT_HASH; uavcan_node_info.name.data = (uint8_t *)APP_NAME; uavcan_node_info.name.len = strlen(APP_NAME); return 0; } bool uavcan_user_should_accept_transfer(const CanardInstance *ins, uint64_t *out_data_type_signature, uint16_t data_type_id, CanardTransferType transfer_type, uint8_t source_node_id) { if (uavcan_automation_should_accept_transfer( ins, out_data_type_signature, data_type_id, transfer_type, source_node_id)) { return true; } return false; } void uavcan_user_on_transfer_received(CanardInstance *ins, CanardRxTransfer *transfer) { if (uavcan_automation_on_transfer_received(ins, transfer)) { return; } PRINTS("Unexpected transfer\n"); } void print_frame(const char *direction, const CanardCANFrame *frame) { uint32_t id = frame->id & (~(CANARD_CAN_FRAME_EFF | CANARD_CAN_FRAME_ERR | CANARD_CAN_FRAME_RTR)); PRINTS(direction); PRINTS(" "); PRINTX(id); for (int i = 0; i < frame->data_len; i++) { PRINTS(" "); PRINTX(frame->data[i]); } PRINTS("\n"); } uint8_t automation_set_dos(uint8_t source_node_id, uint8_t start_index, const bool *values, uint8_t len) { for (int i = 0; i < len; i++) { if (io_set_do(start_index + i, values[i]) != IO_OK) { return 1; } } #if LOGLEVEL >= LOGLEVEL_DEBUG PRINTS("DO"); PRINTU(start_index); PRINTS("-"); PRINTU(start_index + len); PRINTS(" :="); for (int i = 0; i < len; i++) { PRINTS(" "); PRINTU(values[i]); } PRINTS("\n"); #endif return 0; } uint8_t automation_set_aos(uint8_t source_node_id, uint8_t start_index, const uint16_t *values, uint8_t len) { for (int i = 0; i < len; i++) { if (io_set_ao(start_index + i, values[i]) != IO_OK) { return 1; } } #if LOGLEVEL >= LOGLEVEL_DEBUG PRINTS("AO"); PRINTU(start_index); PRINTS("-"); PRINTU(start_index + len); PRINTS(" :="); for (int i = 0; i < len; i++) { PRINTS(" "); PRINTU(values[i]); } PRINTS("\n"); #endif return 0; } uint8_t automation_get_dis(uint8_t source_node_id, uint8_t start_index, bool *values, uint8_t len) { for (int i = 0; i < len; i++) { switch (io_get_di(start_index + i, &values[i])) { case IO_OK: break; case IO_DOES_NOT_EXIST: return AUTOMATION_GETVALUES_RESPONSE_BAD_ARGUMENT; default: return AUTOMATION_GETVALUES_RESPONSE_HW_ERROR; } } // TODO: debug print return AUTOMATION_GETVALUES_RESPONSE_OK; } uint8_t automation_get_ais(uint8_t source_node_id, uint8_t start_index, uint16_t *values, uint8_t len) { for (int i = 0; i < len; i++) { switch (io_get_ai(start_index + i, &values[i])) { case IO_OK: break; case IO_DOES_NOT_EXIST: return AUTOMATION_GETVALUES_RESPONSE_BAD_ARGUMENT; default: return AUTOMATION_GETVALUES_RESPONSE_HW_ERROR; } } // TODO: debug print return AUTOMATION_GETVALUES_RESPONSE_OK; } // not used void uavcan_on_node_status(uint8_t source_node_id, uavcan_protocol_NodeStatus *node_status) { } void automation_on_get_dis_response(uint8_t source_node_id, uint8_t start_index, bool *values, uint8_t len) { } void automation_on_get_ais_response(uint8_t source_node_id, uint8_t start_index, uint16_t *values, uint8_t len) { } void automation_on_tell_dis(uint8_t source_node_id, uint8_t index, bool *values, uint8_t len) { } void automation_on_tell_ais(uint8_t source_node_id, uint8_t index, uint16_t *values, uint8_t len) { } // ---------------------------------------------- UAVCAN callbacks ------------- uint64_t uavcan_uptime_usec() { return hal_uptime_usec(); } uint32_t uavcan_uptime_sec() { return hal_uptime_msec() / 1000; }
23.2
80
0.71762
d1e0e901361d7ffbd583705b9c11281cc218bdb1
13,471
h
C
vendor/devkitpro/wut/include/nn/swkbd/swkbd_cpp.h
Jan200101/zig-wii
900f48ac9f4857bcfe6e82461fa7903cd8ef1de3
[ "MIT" ]
29
2021-02-11T05:34:12.000Z
2022-01-19T16:35:27.000Z
vendor/devkitpro/wut/include/nn/swkbd/swkbd_cpp.h
Jan200101/zig-wii
900f48ac9f4857bcfe6e82461fa7903cd8ef1de3
[ "MIT" ]
2
2021-08-15T12:39:21.000Z
2022-01-19T03:10:31.000Z
vendor/devkitpro/wut/include/nn/swkbd/swkbd_cpp.h
Jan200101/zig-wii
900f48ac9f4857bcfe6e82461fa7903cd8ef1de3
[ "MIT" ]
3
2021-08-15T11:21:04.000Z
2022-03-13T23:15:54.000Z
#pragma once #include <wut.h> #include <coreinit/filesystem.h> #include <nn/result.h> #include <padscore/kpad.h> #include <vpad/input.h> #include <string.h> /** * \defgroup nn_swkbd_swkbd Software Keyboard * \ingroup nn_swkbd * See \link nn::swkbd \endlink. * * @{ */ #ifdef __cplusplus namespace nn { /** * Graphical software keyboard, supporting several languages and configurations. * Applications should first call \link Create \endlink to initialise the * library, followed by \link AppearInputForm \endlink to show a text area and * virtual keyboard. Input should be forwarded to the keyboard via * \link Calc \endlink, along with calls to \link CalcSubThreadFont \endlink and * \link CalcSubThreadPredict \endlink. Finally, the keyboard can be rendered * with \link DrawTV \endlink and \link DrawDRC \endlink. The user's interaction * with the keyboard can be tracked with \link GetInputFormString \endlink, * \link IsDecideOkButton \endlink and \link IsDecideCancelButton \endlink; and * once satisfied the application can dismiss the keyboard with * \link DisappearInputForm \endlink. Don't forget \link Destroy \endlink! */ namespace swkbd { enum class ControllerType { Unknown0 = 0, }; enum class LanguageType { Japanese = 0, English = 1, }; enum class RegionType { Japan = 0, USA = 1, Europe = 2, }; enum class State { //! The input form / keyboard is completely hidden. Hidden = 0, //! The input form / keyboard is drawing the fade in animation. FadeIn = 1, //! The input form / keyboard is done drawing the fade in animation and completely visible. Visible = 2, //! The input form / keyboard is drawing the fade out animation. FadeOut = 3, }; //! Configuration options for the virtual keyboard. struct ConfigArg { ConfigArg() { memset(this, 0, sizeof(*this)); languageType = LanguageType::English; unk_0x04 = 4; unk_0x0C = 0x7FFFF; unk_0x10 = 19; unk_0x14 = -1; unk_0x9C = 1; unk_0xA4 = -1; } //! The language to use for input LanguageType languageType; uint32_t unk_0x04; uint32_t unk_0x08; uint32_t unk_0x0C; uint32_t unk_0x10; int32_t unk_0x14; WUT_UNKNOWN_BYTES(0x9C - 0x18); uint32_t unk_0x9C; WUT_UNKNOWN_BYTES(4); int32_t unk_0xA4; }; WUT_CHECK_OFFSET(ConfigArg, 0x00, languageType); WUT_CHECK_OFFSET(ConfigArg, 0x04, unk_0x04); WUT_CHECK_OFFSET(ConfigArg, 0x08, unk_0x08); WUT_CHECK_OFFSET(ConfigArg, 0x0C, unk_0x0C); WUT_CHECK_OFFSET(ConfigArg, 0x10, unk_0x10); WUT_CHECK_OFFSET(ConfigArg, 0x14, unk_0x14); WUT_CHECK_OFFSET(ConfigArg, 0x9C, unk_0x9C); WUT_CHECK_OFFSET(ConfigArg, 0xA4, unk_0xA4); WUT_CHECK_SIZE(ConfigArg, 0xA8); struct ReceiverArg { uint32_t unk_0x00 = 0; uint32_t unk_0x04 = 0; uint32_t unk_0x08 = 0; int32_t unk_0x0C = -1; uint32_t unk_0x10 = 0; int32_t unk_0x14 = -1; }; WUT_CHECK_OFFSET(ReceiverArg, 0x00, unk_0x00); WUT_CHECK_OFFSET(ReceiverArg, 0x04, unk_0x04); WUT_CHECK_OFFSET(ReceiverArg, 0x08, unk_0x08); WUT_CHECK_OFFSET(ReceiverArg, 0x0C, unk_0x0C); WUT_CHECK_OFFSET(ReceiverArg, 0x10, unk_0x10); WUT_CHECK_OFFSET(ReceiverArg, 0x14, unk_0x14); WUT_CHECK_SIZE(ReceiverArg, 0x18); //! Arguments for the swkbd keyboard struct KeyboardArg { //! Configuration for the keyboard itself ConfigArg configArg; ReceiverArg receiverArg; }; WUT_CHECK_SIZE(KeyboardArg, 0xC0); //! Arguments for swkbd the input form (text area). struct InputFormArg { uint32_t unk_0x00 = 1; int32_t unk_0x04 = -1; uint32_t unk_0x08 = 0; uint32_t unk_0x0C = 0; //! The maximum number of characters that can be entered, -1 for unlimited. int32_t maxTextLength = -1; uint32_t unk_0x14 = 0; uint32_t unk_0x18 = 0; bool unk_0x1C = false; bool unk_0x1D = false; bool unk_0x1E = false; WUT_PADDING_BYTES(1); }; WUT_CHECK_OFFSET(InputFormArg, 0x00, unk_0x00); WUT_CHECK_OFFSET(InputFormArg, 0x04, unk_0x04); WUT_CHECK_OFFSET(InputFormArg, 0x08, unk_0x08); WUT_CHECK_OFFSET(InputFormArg, 0x0C, unk_0x0C); WUT_CHECK_OFFSET(InputFormArg, 0x10, maxTextLength); WUT_CHECK_OFFSET(InputFormArg, 0x14, unk_0x14); WUT_CHECK_OFFSET(InputFormArg, 0x18, unk_0x18); WUT_CHECK_OFFSET(InputFormArg, 0x1C, unk_0x1C); WUT_CHECK_OFFSET(InputFormArg, 0x1D, unk_0x1D); WUT_CHECK_OFFSET(InputFormArg, 0x1E, unk_0x1E); WUT_CHECK_SIZE(InputFormArg, 0x20); //! Arguments for the swkbd input form and keyboard. struct AppearArg { //! Arguments for the virtual keyboard KeyboardArg keyboardArg; //! Arguments for the input form (text area) InputFormArg inputFormArg; }; WUT_CHECK_SIZE(AppearArg, 0xE0); //!The arguments used to initialise swkbd and pass in its required resources. struct CreateArg { //! A pointer to a work memory buffer; see \link GetWorkMemorySize \endlink. void *workMemory = nullptr; //! The swkbd region to use. RegionType regionType = RegionType::Europe; uint32_t unk_0x08 = 0; //! An FSClient for swkbd to use while loading resources. FSClient *fsClient = nullptr; }; WUT_CHECK_OFFSET(CreateArg, 0x00, workMemory); WUT_CHECK_OFFSET(CreateArg, 0x04, regionType); WUT_CHECK_OFFSET(CreateArg, 0x08, unk_0x08); WUT_CHECK_OFFSET(CreateArg, 0x0C, fsClient); WUT_CHECK_SIZE(CreateArg, 0x10); //! Input and controller information for swkbd. struct ControllerInfo { //! DRC input information, see \link VPADRead \endlink. VPADStatus *vpad = nullptr; //! Wiimote and extension controller inputs, see \link KPADRead \endlink. KPADStatus *kpad[4] = { nullptr, nullptr, nullptr, nullptr }; }; WUT_CHECK_OFFSET(ControllerInfo, 0x00, vpad); WUT_CHECK_OFFSET(ControllerInfo, 0x04, kpad); WUT_CHECK_SIZE(ControllerInfo, 0x14); struct DrawStringInfo { DrawStringInfo() { memset(this, 0, sizeof(*this)); } WUT_UNKNOWN_BYTES(0x1C); }; WUT_CHECK_SIZE(DrawStringInfo, 0x1C); struct KeyboardCondition { uint32_t unk_0x00 = 0; uint32_t unk_0x04 = 0; }; WUT_CHECK_OFFSET(KeyboardCondition, 0x00, unk_0x00); WUT_CHECK_OFFSET(KeyboardCondition, 0x04, unk_0x04); WUT_CHECK_SIZE(KeyboardCondition, 0x8); struct IEventReceiver; struct IControllerEventObj; struct ISoundObj; /** * Show an input form (keyboard with text area) with the given configuration. * * \param args * An \link nn::swkbd::AppearArg AppearArg \endlink struct with the desired * configuration for the keyboard and input form. * * \return * \c true on success, or \c false on error. * * \sa * - \link DisappearInputForm \endlink * - \link GetInputFormString \endlink * - \link IsDecideOkButton \endlink * - \link IsDecideCancelButton \endlink */ bool AppearInputForm(const AppearArg& args); /** * Show a keyboard with the given configuration. * * \param args * An \link nn::swkbd::KeyboardArg KeyboardArg \endlink struct with the desired * configuration for the keyboard. * * \return * \c true on success, or \c false on error. * * \sa * - \link DisappearKeyboard \endlink * - \link IsDecideOkButton \endlink * - \link IsDecideCancelButton \endlink */ bool AppearKeyboard(const KeyboardArg& args); /** * Calculate font data. Call in response to * \link IsNeedCalcSubThreadFont \endlink. * * \sa * - \link CalcSubThreadPredict \endlink * - \link Calc \endlink */ void CalcSubThreadFont(); /** * Calculate word prediction data. Call in response to * \link IsNeedCalcSubThreadPredict \endlink. * * \sa * - \link CalcSubThreadFont \endlink * - \link Calc \endlink */ void CalcSubThreadPredict(); /** * Respond to user inputs and calculate the state of input buffers and graphics. * * \param controllerInfo * A \link nn::swkbd::ControllerInfo ControllerInfo \endlink structure * containing fresh data from the controllers (see \link VPADRead \endlink * and \link KPADRead \endlink). Each controller can also be \c nullptr if data * is not available. * * \sa * - \link CalcSubThreadFont \endlink * - \link CalcSubThreadPredict \endlink */ void Calc(const ControllerInfo &controllerInfo); void ConfirmUnfixAll(); /** * Initialise the swkbd library and create the keyboard and input form. * * \param args * A \link nn::swkbd::CreateArg CreateArg \endlink structure containing the * desired keyboard region, a pointer to work memory, and an * \link FSClient \endlink. See \link nn::swkbd::CreateArg CreateArg\endlink. * * \return * \c true on success, \c false otherwise. * * \sa * - \link Destroy \endlink * - \link GetWorkMemorySize \endlink */ bool Create(const CreateArg &args); /** * Clean up and shut down the swkbd library. * * \note * Resources passed into \link Create \endlink (work memory, filesystem client) * must be manually freed by the application <em>after</em> calling this * function. * * \sa * - \link Create \endlink */ void Destroy(); /** * Hide a previously shown input form. * * \return * \c true on success, \c false otherwise. * * \sa * - \link AppearInputForm \endlink * - \link GetInputFormString \endlink */ bool DisappearInputForm(); /** * Hide a previously shown keyboard. * * \return * \c true on success, \c false otherwise. * * \sa * - \link AppearKeyboard \endlink */ bool DisappearKeyboard(); /** * Draw the keyboard to the DRC. Must be called inside a valid GX2 rendering * context, after rendering all other DRC graphics (to appear under the * keyboard) */ void DrawDRC(); /** * Draw the keyboard to the TV. Must be called inside a valid GX2 rendering * context, after rendering all other TV graphics (to appear under the * keyboard) */ void DrawTV(); void GetDrawStringInfo(DrawStringInfo *drawStringInfo); /** * Get the string the user typed into the input form. * * \returns * The user's text, as a null-terminated UTF-16 string. * * \sa * - \link SetInputFormString \endlink */ const char16_t * GetInputFormString(); void GetKeyboardCondition(KeyboardCondition *keyboardCondition); /** * Get the current state of the input form. * * \returns * The current \link nn::swkbd::State State \endlink of the input form. */ State GetStateInputForm(); State GetStateKeyboard(); /** * Get the required size for swkbd's work memory buffer. The application must * allocate a buffer of this size and pass it into \link Create \endlink. * * \param unk * Unknown. A value of 0 seems to work. * * \return * The required size of the work buffer, in bytes. * * \sa * - \link Create \endlink */ uint32_t GetWorkMemorySize(uint32_t unk); void InactivateSelectCursor(); bool InitLearnDic(void *dictionary); bool IsCoveredWithSubWindow(); /** * Gets the current status of the Cancel button on the keyboard. * * \param outIsSelected * Pointer to a boolean to write the button status to, or \c nullptr if the * return value is enough. * * \return * \c true if the Cancel button has been pressed, or \c false otherwise. * * \sa * - \link IsDecideOkButton \endlink */ bool IsDecideCancelButton(bool *outIsSelected); /** * Gets the current status of the OK button on the keyboard. * * \param outIsSelected * Pointer to a boolean to write the button status to, or \c nullptr if the * return value is enough. * * \return * \c true if the OK button has been pressed, or \c false otherwise. * * \sa * - \link IsDecideCancelButton \endlink */ bool IsDecideOkButton(bool *outIsSelected); bool IsKeyboardTarget(IEventReceiver *eventReceiver); /** * Determines whether the font data needs calculating. If it does, a call to * \link CalcSubThreadFont \endlink is required. * * \return * \c true if the font data needs calculating, \c false otherwise. * * \sa * - \link IsNeedCalcSubThreadPredict \endlink */ bool IsNeedCalcSubThreadFont(); /** * Determines whether the prediction data needs calculating. If it does, a call * to \link CalcSubThreadPredict \endlink is required. * * \return * \c true if the prediction data needs calculating, \c false otherwise. * * \sa * - \link IsNeedCalcSubThreadFont \endlink */ bool IsNeedCalcSubThreadPredict(); /** * Determines whether the selection cursor is active. * * \return * \c true if the selection cursor is active, \c false otherwise. */ bool IsSelectCursorActive(); /** * Mutes or unmutes the sounds generated by the keyboard. * * \param muted * \c true to disable all sounds, or \c false to enable them. */ void MuteAllSound(bool muted); void SetControllerRemo(ControllerType type); /** * Set the character at which the cursor is positioned. * * \param pos * The position at which to move the cursor, with 0 corresponding to the start * of the string (before the first character). * * <!-- * TODO: check factual accuracy? * Does one need to account for multiword UTF-16 characters? * --> */ void SetCursorPos(int pos); /** * Enables and disables the OK button on the keyboard. When disabled, the button * cannot be pressed. * * \param enable * \c true to enable the button, or \c false to disable it. */ void SetEnableOkButton(bool enable); /** * Sets the text in the input form. * * \param str * The UTF-16 string to set the input form to. * * \sa * - \link GetInputFormString \endlink */ void SetInputFormString(const char16_t *str); void SetReceiver(const ReceiverArg &receiver); void SetSelectFrom(int); void SetUserControllerEventObj(IControllerEventObj *controllerEventObj); void SetUserSoundObj(ISoundObj *soundObj); } // namespace swkbd } // namespace nn #endif // ifdef __cplusplus /** @} */
23.842478
94
0.721105
7fcc65d30b7e7b7e6983abc5bc41012ee5c3665d
10,451
h
C
YYKit/Base/YYKitMacro.h
vilvilking/YYKit
1e967563212b451b6422c64c250bd657070a60ed
[ "MIT" ]
null
null
null
YYKit/Base/YYKitMacro.h
vilvilking/YYKit
1e967563212b451b6422c64c250bd657070a60ed
[ "MIT" ]
null
null
null
YYKit/Base/YYKitMacro.h
vilvilking/YYKit
1e967563212b451b6422c64c250bd657070a60ed
[ "MIT" ]
null
null
null
// // YYKitMacro.h // YYKit <https://github.com/ibireme/YYKit> // // Created by ibireme on 13/3/29. // Copyright (c) 2015 ibireme. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import <UIKit/UIKit.h> #import <sys/time.h> #import <pthread.h> #ifndef YYKitMacro_h #define YYKitMacro_h #ifdef __cplusplus #define YY_EXTERN_C_BEGIN extern "C" { #define YY_EXTERN_C_END } #else #define YY_EXTERN_C_BEGIN #define YY_EXTERN_C_END #endif YY_EXTERN_C_BEGIN #ifndef YY_CLAMP // return the clamped value #define YY_CLAMP(_x_, _low_, _high_) (((_x_) > (_high_)) ? (_high_) : (((_x_) < (_low_)) ? (_low_) : (_x_))) #endif #ifndef YY_SWAP // swap two value #define YY_SWAP(_a_, _b_) do { __typeof__(_a_) _tmp_ = (_a_); (_a_) = (_b_); (_b_) = _tmp_; } while (0) #endif #define YYAssertNil(condition, description, ...) NSAssert(!(condition), (description), ##__VA_ARGS__) #define YYCAssertNil(condition, description, ...) NSCAssert(!(condition), (description), ##__VA_ARGS__) #define YYAssertNotNil(condition, description, ...) NSAssert((condition), (description), ##__VA_ARGS__) #define YYCAssertNotNil(condition, description, ...) NSCAssert((condition), (description), ##__VA_ARGS__) #define YYAssertMainThread() NSAssert([NSThread isMainThread], @"This method must be called on the main thread") #define YYCAssertMainThread() NSCAssert([NSThread isMainThread], @"This method must be called on the main thread") /** Add this macro before each category implementation, so we don't have to use -all_load or -force_load to load object files from static libraries that only contain categories and no classes. More info: http://developer.apple.com/library/mac/#qa/qa2006/qa1490.html . ******************************************************************************* Example: YYSYNTH_DUMMY_CLASS(NSString_YYAdd) */ #ifndef YYSYNTH_DUMMY_CLASS #define YYSYNTH_DUMMY_CLASS(_name_) \ @interface YYSYNTH_DUMMY_CLASS_ ## _name_ : NSObject @end \ @implementation YYSYNTH_DUMMY_CLASS_ ## _name_ @end #endif /** Synthsize a dynamic object property in @implementation scope. It allows us to add custom properties to existing classes in categories. @param association ASSIGN / RETAIN / COPY / RETAIN_NONATOMIC / COPY_NONATOMIC @warning #import <objc/runtime.h> ******************************************************************************* Example: @interface NSObject (MyAdd) @property (nonatomic, retain) UIColor *myColor; @end #import <objc/runtime.h> @implementation NSObject (MyAdd) YYSYNTH_DYNAMIC_PROPERTY_OBJECT(myColor, setMyColor, RETAIN, UIColor *) @end */ #ifndef YYSYNTH_DYNAMIC_PROPERTY_OBJECT #define YYSYNTH_DYNAMIC_PROPERTY_OBJECT(_getter_, _setter_, _association_, _type_) \ - (void)_setter_ : (_type_)object { \ [self willChangeValueForKey:@#_getter_]; \ objc_setAssociatedObject(self, _cmd, object, OBJC_ASSOCIATION_ ## _association_); \ [self didChangeValueForKey:@#_getter_]; \ } \ - (_type_)_getter_ { \ return objc_getAssociatedObject(self, @selector(_setter_:)); \ } #endif /** Synthsize a dynamic c type property in @implementation scope. It allows us to add custom properties to existing classes in categories. @warning #import <objc/runtime.h> ******************************************************************************* Example: @interface NSObject (MyAdd) @property (nonatomic, retain) CGPoint myPoint; @end #import <objc/runtime.h> @implementation NSObject (MyAdd) YYSYNTH_DYNAMIC_PROPERTY_CTYPE(myPoint, setMyPoint, CGPoint) @end */ #ifndef YYSYNTH_DYNAMIC_PROPERTY_CTYPE #define YYSYNTH_DYNAMIC_PROPERTY_CTYPE(_getter_, _setter_, _type_) \ - (void)_setter_ : (_type_)object { \ [self willChangeValueForKey:@#_getter_]; \ NSValue *value = [NSValue value:&object withObjCType:@encode(_type_)]; \ objc_setAssociatedObject(self, _cmd, value, OBJC_ASSOCIATION_RETAIN); \ [self didChangeValueForKey:@#_getter_]; \ } \ - (_type_)_getter_ { \ _type_ cValue = { 0 }; \ NSValue *value = objc_getAssociatedObject(self, @selector(_setter_:)); \ [value getValue:&cValue]; \ return cValue; \ } #endif /** Synthsize a weak or strong reference. Example: @weakify(self) [self doSomething^{ @strongify(self) if (!self) return; ... }]; */ #ifndef weakify #if DEBUG #if __has_feature(objc_arc) #define weakify(object) autoreleasepool{} __weak __typeof__(object) weak##_##object = object; #else #define weakify(object) autoreleasepool{} __block __typeof__(object) block##_##object = object; #endif #else #if __has_feature(objc_arc) #define weakify(object) try{} @finally{} {} __weak __typeof__(object) weak##_##object = object; #else #define weakify(object) try{} @finally{} {} __block __typeof__(object) block##_##object = object; #endif #endif #endif #ifndef strongify #if DEBUG #if __has_feature(objc_arc) #define strongify(object) autoreleasepool{} __typeof__(object) object = weak##_##object; #else #define strongify(object) autoreleasepool{} __typeof__(object) object = block##_##object; #endif #else #if __has_feature(objc_arc) #define strongify(object) try{} @finally{} __typeof__(object) object = weak##_##object; #else #define strongify(object) try{} @finally{} __typeof__(object) object = block##_##object; #endif #endif #endif /** Convert CFRange to NSRange @param range CFRange @return NSRange */ static inline NSRange YYNSRangeFromCFRange(CFRange range) { return NSMakeRange(range.location, range.length); } /** Convert NSRange to CFRange @param range NSRange @return CFRange */ static inline CFRange YYCFRangeFromNSRange(NSRange range) { return CFRangeMake(range.location, range.length); } /** Same as CFAutorelease(), compatible for iOS6 @param arg CFObject @return same as input */ static inline CFTypeRef YYCFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) { if (((long)CFAutorelease + 1) != 1) { return CFAutorelease(arg); } else { id __autoreleasing obj = CFBridgingRelease(arg); return (__bridge CFTypeRef)obj; } } /** Profile time cost. @param block code to benchmark @param complete code time cost (millisecond) Usage: YYBenchmark(^{ // code }, ^(double ms) { NSLog("time cost: %.2f ms",ms); }); */ static inline void YYBenchmark(void (^block)(void), void (^complete)(double ms)) { // <QuartzCore/QuartzCore.h> version /* extern double CACurrentMediaTime (void); double begin, end, ms; begin = CACurrentMediaTime(); block(); end = CACurrentMediaTime(); ms = (end - begin) * 1000.0; complete(ms); */ // <sys/time.h> version struct timeval t0, t1; gettimeofday(&t0, NULL); block(); gettimeofday(&t1, NULL); double ms = (double)(t1.tv_sec - t0.tv_sec) * 1e3 + (double)(t1.tv_usec - t0.tv_usec) * 1e-3; complete(ms); } static inline NSDate *_YYCompileTime(const char *data, const char *time) { NSString *timeStr = [NSString stringWithFormat:@"%s %s",data,time]; NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"MMM dd yyyy HH:mm:ss"]; [formatter setLocale:locale]; return [formatter dateFromString:timeStr]; } /** Get compile timestamp. @return A new date object set to the compile date and time. */ #ifndef YYCompileTime // use macro to avoid compile warning when use pch file #define YYCompileTime() _YYCompileTime(__DATE__, __TIME__) #endif /** Returns a dispatch_time delay from now. */ static inline dispatch_time_t dispatch_time_delay(NSTimeInterval second) { return dispatch_time(DISPATCH_TIME_NOW, (int64_t)(second * NSEC_PER_SEC)); } /** Returns a dispatch_wall_time delay from now. */ static inline dispatch_time_t dispatch_walltime_delay(NSTimeInterval second) { return dispatch_walltime(DISPATCH_TIME_NOW, (int64_t)(second * NSEC_PER_SEC)); } /** Returns a dispatch_wall_time from NSDate. */ static inline dispatch_time_t dispatch_walltime_date(NSDate *date) { NSTimeInterval interval; double second, subsecond; struct timespec time; dispatch_time_t milestone; interval = [date timeIntervalSince1970]; subsecond = modf(interval, &second);// 分解函数 : 分解x,以得到x的整数和小数部分 ,返回值为小数部分 time.tv_sec = second; time.tv_nsec = subsecond * NSEC_PER_SEC; milestone = dispatch_walltime(&time, 0); return milestone; } /** Whether in main queue/thread. */ static inline bool dispatch_is_main_queue() { return pthread_main_np() != 0; } /** Submits a block for asynchronous execution on a main queue and returns immediately. */ static inline void dispatch_async_on_main_queue(void (^block)()) { if (pthread_main_np()) { block(); } else { dispatch_async(dispatch_get_main_queue(), block); } } /** Submits a block for execution on a main queue and waits until the block completes. */ static inline void dispatch_sync_on_main_queue(void (^block)()) { if (pthread_main_np()) { block(); } else { dispatch_sync(dispatch_get_main_queue(), block); } } /** Initialize a pthread mutex. // 创建互斥锁 */ //PTHREAD_MUTEX_RECURSIVE //如果一个线程对这种类型的互斥锁重复上锁,不会引起死锁,一个线程对这类互斥锁的多次重复上锁必须由这个线程来重复相同数量的解锁,这样才能解开这个互斥锁,别的线程才能得到这个互斥锁。如果试图解锁一个由别的线程锁定的互斥锁将会返回一个错误代码。如果一个线程试图解锁已经被解锁的互斥锁也将会返回一个错误代码。这种类型的互斥锁只能是进程私有的 static inline void pthread_mutex_init_recursive(pthread_mutex_t *mutex, bool recursive) { #define YYMUTEX_ASSERT_ON_ERROR(x_) do { \ __unused volatile int res = (x_); \ assert(res == 0); \ } while (0) assert(mutex != NULL); if (!recursive) { YYMUTEX_ASSERT_ON_ERROR(pthread_mutex_init(mutex, NULL)); } else { pthread_mutexattr_t attr; YYMUTEX_ASSERT_ON_ERROR(pthread_mutexattr_init (&attr)); YYMUTEX_ASSERT_ON_ERROR(pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE)); YYMUTEX_ASSERT_ON_ERROR(pthread_mutex_init (mutex, &attr)); YYMUTEX_ASSERT_ON_ERROR(pthread_mutexattr_destroy (&attr)); } #undef YYMUTEX_ASSERT_ON_ERROR } YY_EXTERN_C_END #endif
30.828909
167
0.685676
36cd9039b236d37213eb320a401728c7c5a25dac
30,189
h
C
preprocessing/maskfusion-master-2/GUI/Tools/GUI.h
Wayne-Mai/DynSLAM
7b62e13d2a33ff58ca888a346433a4891a228a20
[ "BSD-3-Clause" ]
null
null
null
preprocessing/maskfusion-master-2/GUI/Tools/GUI.h
Wayne-Mai/DynSLAM
7b62e13d2a33ff58ca888a346433a4891a228a20
[ "BSD-3-Clause" ]
null
null
null
preprocessing/maskfusion-master-2/GUI/Tools/GUI.h
Wayne-Mai/DynSLAM
7b62e13d2a33ff58ca888a346433a4891a228a20
[ "BSD-3-Clause" ]
null
null
null
/* * This file is part of ElasticFusion. * * Copyright (C) 2015 Imperial College London * * The use of the code within this file and all code within files that * make up the software that is ElasticFusion is permitted for * non-commercial purposes only. The full terms and conditions that * apply to the code within this file are detailed within the LICENSE.txt * file and at <http://www.imperial.ac.uk/dyson-robotics-lab/downloads/elastic-fusion/elastic-fusion-license/> * unless explicitly stated. By downloading this file you agree to * comply with these terms. * * If you wish to use any of this code for commercial purposes then * please email researchcontracts.engineering@imperial.ac.uk. * */ #ifndef GUI_H_ #define GUI_H_ #include <pangolin/pangolin.h> #include <pangolin/gl/gl.h> #include <pangolin/gl/gldraw.h> #include <map> #include <GPUTexture.h> #include <Utils/Intrinsics.h> #include <Shaders/Shaders.h> #include "Model/Buffers.h" #include <vector> #include <string> #ifdef WITH_FREETYPE_GL_CPP #define WITH_EIGEN #include "freetype-gl-cpp/freetype-gl-cpp.h" #endif #define GL_GPU_MEM_INFO_CURRENT_AVAILABLE_MEM_NVX 0x9049 struct ModelInfo { // Constructor ModelInfo(int id, float conf) { this->id = id; std::string idString = std::to_string(id); confThreshold = new pangolin::Var<float>("oi.Model " + idString + " (conf-t)", conf, 0, 15); } // No copy constructor ModelInfo(const ModelInfo& m) = delete; // Move constructor (take ownership) ModelInfo(ModelInfo&& m) : id(m.id), confThreshold(m.confThreshold) { m.id = -1; m.confThreshold = nullptr; } virtual ~ModelInfo() { // This requires a patched Pangolin version and is now disabled by defaut. // Warning: Only call this destructor when terminating the application! // pangolin::RemoveVariable("oi.Model " + std::to_string(id) + " (conf-t)"); delete confThreshold; } int id; pangolin::Var<float>* confThreshold; }; class GUI { public: GUI(bool liveCap, bool showcaseMode) : window_width(1280 + widthPanel), window_height(980), showcaseMode(showcaseMode), s_cam(pangolin::OpenGlRenderState(pangolin::ProjectionMatrix(window_width, window_height, 420, 420, window_width / 2.0f, window_height / 2.0f, 0.1, 1000), pangolin::ModelViewLookAt(0, 0, -1, 0, 0, 1, pangolin::AxisNegY))), handler(s_cam) { pangolin::Params windowParams; windowParams.Set("SAMPLE_BUFFERS", 0); windowParams.Set("SAMPLES", 0); pangolin::CreateWindowAndBind("Main", window_width, window_height, windowParams); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glPixelStorei(GL_PACK_ALIGNMENT, 1); // Internally render at 3840x2160 renderBuffer = new pangolin::GlRenderBuffer(1920, 1080); colorTexture = new GPUTexture(renderBuffer->width, renderBuffer->height, GL_RGBA32F, GL_RGBA, GL_FLOAT, true); colorFrameBuffer = new pangolin::GlFramebuffer; colorFrameBuffer->AttachColour(*colorTexture->texture); colorFrameBuffer->AttachDepth(*renderBuffer); colorProgram = std::shared_ptr<Shader>( loadProgramFromFile("draw_global_surface.vert", "draw_global_surface_phong.frag", "draw_global_surface.geom")); fxaaProgram = std::shared_ptr<Shader>(loadProgramFromFile("empty.vert", "fxaa.frag", "quad.geom")); pangolin::SetFullscreen(showcaseMode); glEnable(GL_DEPTH_TEST); glDepthMask(GL_TRUE); glDepthFunc(GL_LESS); pangolin::Display("cam").SetBounds(0, 1.0f, 0, 1.0f, -float(window_width) / window_height).SetHandler(&handler); pangolin::Display("ICP1").SetAspect(texture_aspect_ratio); pangolin::Display("ICP2").SetAspect(texture_aspect_ratio); pangolin::Display("ICP3").SetAspect(texture_aspect_ratio); pangolin::Display("ICP4").SetAspect(texture_aspect_ratio); //pangolin::Display("Model").SetAspect(width / height); std::vector<std::string> labels; labels.push_back(std::string("residual")); labels.push_back(std::string("threshold")); resLog.SetLabels(labels); resPlot = new pangolin::Plotter(&resLog, 0, 300, 0, 0.0005, 30, 0.5); resPlot->Track("$i"); std::vector<std::string> labels2; labels2.push_back(std::string("inliers")); labels2.push_back(std::string("threshold")); inLog.SetLabels(labels2); inPlot = new pangolin::Plotter(&inLog, 0, 300, 0, 40000, 30, 0.5); inPlot->Track("$i"); // Main-Side-Panel pangolin::CreatePanel("ui").SetBounds(0.0, 1.0, 0.0, pangolin::Attach::Pix(widthPanel)); // Objects-Panel pangolin::CreatePanel("oi").SetBounds(2 * heightTextures, 1.0, pangolin::Attach::Pix(widthPanel), pangolin::Attach::Pix(widthPanel * 2)); // 1. row of textures pangolin::Display("multi-textures1") .SetBounds(heightTextures, 2 * heightTextures, pangolin::Attach::Pix(180), 1 - widthPlots) .SetLayout(pangolin::LayoutEqualHorizontal) .AddDisplay(pangolin::Display("P1")) .AddDisplay(pangolin::Display("P2")) .AddDisplay(pangolin::Display("P3")) .AddDisplay(pangolin::Display("P4")); // 2. row of textures pangolin::Display("multi-textures2") .SetBounds(0.0, heightTextures, pangolin::Attach::Pix(180), 1 - widthPlots) .SetLayout(pangolin::LayoutEqualHorizontal) .AddDisplay(pangolin::Display("ICP1")) .AddDisplay(pangolin::Display("ICP2")) .AddDisplay(pangolin::Display("ICP3")) .AddDisplay(pangolin::Display("ICP4")); // plots pangolin::Display("multi-plots") .SetBounds(0.0, 2 * heightTextures, 1 - widthPlots, 1.0) .SetLayout(pangolin::LayoutEqualHorizontal) .AddDisplay(*resPlot) // plots .AddDisplay(*inPlot); if(showcaseMode){ pangolin::Display("ui").Show(false); pangolin::Display("oi").Show(false); pangolin::Display("multi-textures1").Show(false); pangolin::Display("multi-textures2").Show(false); pangolin::Display("multi-plots").Show(false); } addMultiModelParameters(); pause = new pangolin::Var<bool>("ui.Pause", false, true); step = new pangolin::Var<bool>("ui.Step", false, false); skip = new pangolin::Var<bool>("ui.Skip", false, false); saveCloud = new pangolin::Var<bool>("ui.Save cloud", false, false); savePoses = new pangolin::Var<bool>("ui.Save poses", false, false); // saveDepth = new pangolin::Var<bool>("ui.Save depth", false, false); saveView = new pangolin::Var<bool>("ui.Save view", false, false); reset = new pangolin::Var<bool>("ui.Reset", false, false); flipColors = new pangolin::Var<bool>("ui.Flip RGB", false, true); if (liveCap) { autoSettings = new pangolin::Var<bool>("ui.Auto Settings", true, true); } else { autoSettings = 0; } pyramid = new pangolin::Var<bool>("ui.Pyramid", true, true); so3 = new pangolin::Var<bool>("ui.SO(3)", true, true); frameToFrameRGB = new pangolin::Var<bool>("ui.Frame to frame RGB", false, true); fastOdom = new pangolin::Var<bool>("ui.Fast Odometry", false, true); rgbOnly = new pangolin::Var<bool>("ui.RGB only tracking", false, true); // confidenceThreshold = new pangolin::Var<float>("ui.Confidence threshold", 10.0, 0.0, 24.0); depthCutoff = new pangolin::Var<float>("ui.Depth cutoff", 4.0, 0.0, 20.0); icpWeight = new pangolin::Var<float>("ui.ICP weight", 20.0, 0.0, 100.0); outlierCoefficient = new pangolin::Var<float>("ui.Outlier Rejection", 0.1, 0, 5); followPose = new pangolin::Var<bool>("ui.Follow pose", true, true); drawRawCloud = new pangolin::Var<bool>("ui.Draw raw", false, true); drawFilteredCloud = new pangolin::Var<bool>("ui.Draw filtered", false, true); drawGlobalModel = new pangolin::Var<bool>("ui.Draw global model", true, true); drawObjectModels = new pangolin::Var<bool>("ui.Draw object models", true, true); drawUnstable = new pangolin::Var<bool>("ui.Draw unstable points", false, true); drawPoints = new pangolin::Var<bool>("ui.Draw points", false, true); drawColors = new pangolin::Var<bool>("ui.Draw colors", true, true); drawLabelColors = new pangolin::Var<bool>("ui.Draw label-color", false, true); drawPoseLog = new pangolin::Var<bool>("ui.Draw pose log", false, true); drawFxaa = new pangolin::Var<bool>("ui.Draw FXAA", false, true); drawWindow = new pangolin::Var<bool>("ui.Draw time window", false, true); drawNormals = new pangolin::Var<bool>("ui.Draw normals", false, true); drawTimes = new pangolin::Var<bool>("ui.Draw times", false, true); drawDefGraph = new pangolin::Var<bool>("ui.Draw deformation graph", false, true); drawFerns = new pangolin::Var<bool>("ui.Draw ferns", false, true); drawDeforms = new pangolin::Var<bool>("ui.Draw deformations", true, true); drawBoundingBoxes = new pangolin::Var<bool>("ui.Draw bounding-boxes", true, true); gpuMem = new pangolin::Var<int>("ui.GPU memory free", 0); totalPoints = new pangolin::Var<std::string>("ui.Total points", "0"); totalNodes = new pangolin::Var<std::string>("ui.Total nodes", "0"); totalFerns = new pangolin::Var<std::string>("ui.Total ferns", "0"); totalDefs = new pangolin::Var<std::string>("ui.Total deforms", "0"); totalFernDefs = new pangolin::Var<std::string>("ui.Total fern deforms", "0"); trackInliers = new pangolin::Var<std::string>("ui.Inliers", "0"); trackRes = new pangolin::Var<std::string>("ui.Residual", "0"); logProgress = new pangolin::Var<std::string>("ui.Log", "0"); if (showcaseMode) { pangolin::RegisterKeyPressCallback(' ', pangolin::SetVarFunctor<bool>("ui.Reset", true)); } pangolin::RegisterKeyPressCallback('p', [&]() { pause->Ref().Set(!pause->Get()); }); pangolin::RegisterKeyPressCallback('c', [&]() { drawColors->Ref().Set(!drawColors->Get()); }); pangolin::RegisterKeyPressCallback('l', [&]() { drawLabelColors->Ref().Set(!drawLabelColors->Get()); }); pangolin::RegisterKeyPressCallback('n', [&]() { drawNormals->Ref().Set(!drawNormals->Get()); }); pangolin::RegisterKeyPressCallback('m', [&]() { enableMultiModel->Ref().Set(!enableMultiModel->Get()); }); pangolin::RegisterKeyPressCallback('x', [&]() { drawFxaa->Ref().Set(!drawFxaa->Get()); }); pangolin::RegisterKeyPressCallback('f', [&]() { followPose->Ref().Set(!followPose->Get()); }); pangolin::RegisterKeyPressCallback('q', [&]() { savePoses->Ref().Set(true); }); pangolin::RegisterKeyPressCallback('w', [&]() { saveCloud->Ref().Set(true); }); pangolin::RegisterKeyPressCallback('e', [&]() { saveView->Ref().Set(true); }); pangolin::RegisterKeyPressCallback('g', [&]() { drawGlobalModel->Ref().Set(!drawGlobalModel->Get()); }); pangolin::RegisterKeyPressCallback('o', [&]() { drawObjectModels->Ref().Set(!drawObjectModels->Get()); }); pangolin::RegisterKeyPressCallback('b', [&]() { drawBoundingBoxes->Ref().Set(!drawBoundingBoxes->Get()); }); #ifdef WITH_FREETYPE_GL_CPP textRenderer.init(); #endif } virtual ~GUI() { delete pause; delete reset; delete inPlot; delete resPlot; if (autoSettings) { delete autoSettings; } delete step; delete skip; delete saveCloud; delete savePoses; delete saveView; // delete saveDepth; delete trackInliers; delete trackRes; delete totalNodes; delete drawWindow; delete so3; delete totalFerns; delete totalDefs; delete depthCutoff; delete logProgress; delete drawTimes; delete drawFxaa; delete fastOdom; delete icpWeight; delete outlierCoefficient; delete pyramid; delete rgbOnly; delete totalFernDefs; delete drawFerns; delete followPose; delete drawDeforms; delete drawBoundingBoxes; delete drawRawCloud; delete totalPoints; delete frameToFrameRGB; delete flipColors; delete drawFilteredCloud; delete drawNormals; delete drawColors; delete drawLabelColors; delete drawPoseLog; delete drawGlobalModel; delete drawObjectModels; delete drawUnstable; delete drawPoints; delete drawDefGraph; delete gpuMem; delete renderBuffer; delete colorFrameBuffer; delete colorTexture; deleteCRFParameter(); deleteBifoldParameters(); deleteMultiModelParameters(); } void addTextureColumn(std::vector<std::pair<std::string, std::shared_ptr<GPUTexture>>>& textures){ if (showcaseMode) return; auto& view = pangolin::Display("multi-textures0") .SetBounds(2 * heightTextures, 1, pangolin::Attach::Pix(widthPanel * 2), pangolin::Attach::Pix(widthPanel * 2 + widthTextureColumn)) .SetLayout(pangolin::LayoutEqualVertical); for (auto& name_texture : textures) { if(name_texture.second->draw) { // Add special case for debugging, if first letter == '!' show fullscreen if (name_texture.first.size() > 0 && name_texture.first[0] == '!') { std::cout << "Notice, got debug texture (starting with '!')" << std::endl; pangolin::Display(name_texture.first) .SetAspect(texture_aspect_ratio) .SetBounds(2 * heightTextures, 1, pangolin::Attach::Pix(widthPanel * 2 + widthTextureColumn), pangolin::Attach::ReversePix(1)); } else { view.AddDisplay(pangolin::Display(name_texture.first).SetAspect(texture_aspect_ratio)); } } } } void addMultiModelParameters(){ enableMultiModel = new pangolin::Var<bool>("oi.Enable multiple models", true, true); enableSmartDelete = new pangolin::Var<bool>("oi.Delete deactivated", true, true); enableTrackAll = new pangolin::Var<bool>("oi.Track all models", false, true); minRelSizeNew = new pangolin::Var<float>("oi.Min-size new", 0.015, 0, 0.5); maxRelSizeNew = new pangolin::Var<float>("oi.Max-size new", 0.4, 0.3, 1); modelSpawnOffset = new pangolin::Var<unsigned>("oi.Model spawn offset", 22, 0, 100); modelDeactivateCnt = new pangolin::Var<unsigned>("oi.Deactivate model count", 10, 0, 100); } void deleteMultiModelParameters(){ delete enableMultiModel; delete enableSmartDelete; delete enableTrackAll; delete modelSpawnOffset; delete modelDeactivateCnt; delete minRelSizeNew; delete maxRelSizeNew; } void addBifoldParameters(){ bifoldBilateralSigmaDepth = new pangolin::Var<float>("oi.Filter sig-depth", 0.10, 0.001, 0.25); bifoldBilateralSigmaColor = new pangolin::Var<float>("oi.Filter sig-color", 40, 1, 80); bifoldBilateralSigmaLocation = new pangolin::Var<float>("oi.Filter sig-location", 5, 0.01, 10); bifoldBilateralRadius = new pangolin::Var<int>("oi.Filter Radius", 8, 1, 30); bifoldEdgeThreshold = new pangolin::Var<float>("oi.Threshold", 0.3, 0, 0.4); bifoldWeightDistance = new pangolin::Var<float>("oi.Weight Distance", 150, 0, 500); bifoldWeightConvexity = new pangolin::Var<float>("oi.Weight Convexity", 2.8, 0, 12); bifoldMorphEdgeIterations = new pangolin::Var<int>("oi.Morph Edge Iterations", 0, 0, 10); bifoldMorphEdgeRadius = new pangolin::Var<int>("oi.Morph Edge Radius", 1, 1, 5); bifoldMorphMaskIterations = new pangolin::Var<int>("oi.Morph Mask Iterations", 0, 0, 10); bifoldMorphMaskRadius = new pangolin::Var<int>("oi.Morph Mask Radius", 2, 1, 5); bifoldNonstaticThreshold = new pangolin::Var<float>("oi.Nonstatic Thresh", 0.5, 0, 1); } void addCRFParameter(){ crfIterations = new pangolin::Var<unsigned>("oi.CRF iterations", 10, 0, 100); pairwiseRGBSTD = new pangolin::Var<float>("oi.CRF RGB std", 10, 0.05, 90); pairwiseDepthSTD = new pangolin::Var<float>("oi.CRF depth std", 0.9, 0.05, 5.0); pairwisePosSTD = new pangolin::Var<float>("oi.CRF pos std", 1.8, 0.05, 10.0); pairwiseAppearanceWeight = new pangolin::Var<float>("oi.CRF appearance weight", 7, 0.0, 50.0); pairwiseSmoothnessWeight = new pangolin::Var<float>("oi.CRF smoothness weight", 2, 0.0, 50.0); unaryErrorWeight = new pangolin::Var<float>("oi.Error weight", 75.0, 0.0, 400.0); unaryErrorK = new pangolin::Var<float>("oi.K-Error", 0.0375, 0.0001, 0.1); thresholdNew = new pangolin::Var<float>("oi.Thres New", 5.5, 0.0, 80.0); } void deleteBifoldParameters(){ if(bifoldBilateralSigmaDepth) delete bifoldBilateralSigmaDepth; if(bifoldBilateralSigmaColor) delete bifoldBilateralSigmaColor; if(bifoldBilateralSigmaLocation) delete bifoldBilateralSigmaLocation; if(bifoldBilateralRadius) delete bifoldBilateralRadius; if(bifoldEdgeThreshold) delete bifoldEdgeThreshold; if(bifoldWeightConvexity) delete bifoldWeightConvexity; if(bifoldWeightDistance) delete bifoldWeightDistance; if(bifoldMorphEdgeIterations) delete bifoldMorphEdgeIterations; if(bifoldMorphEdgeRadius) delete bifoldMorphEdgeRadius; if(bifoldMorphMaskIterations) delete bifoldMorphMaskIterations; if(bifoldMorphMaskRadius) delete bifoldMorphMaskRadius; if(bifoldNonstaticThreshold) delete bifoldNonstaticThreshold; } void deleteCRFParameter(){ if(pairwiseAppearanceWeight) delete pairwiseAppearanceWeight; if(pairwiseSmoothnessWeight) delete pairwiseSmoothnessWeight; if(pairwiseDepthSTD) delete pairwiseDepthSTD; if(pairwisePosSTD) delete pairwisePosSTD; if(pairwiseRGBSTD) delete pairwiseRGBSTD; if(thresholdNew) delete thresholdNew; if(unaryErrorK) delete unaryErrorK; if(unaryErrorWeight) delete unaryErrorWeight; if(crfIterations) delete crfIterations; } // Layout parameters const int widthPanel = 205; const float widthPlots = 0.35; const int widthTextureColumn = 350; const float heightTextures = 0.15; bool showcaseMode; int window_width; int window_height; // const float texture_width = 960; // const float texture_height = 540; const float texture_aspect_ratio = 960.0 / 540.0; void preCall() { //glClearColor(0.05 * !showcaseMode, 0.05 * !showcaseMode, 0.3 * !showcaseMode, 0.0f); glClearColor(1,1,1,1); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); window_width = pangolin::DisplayBase().v.w; window_height = pangolin::DisplayBase().v.h; pangolin::Display("cam").Activate(s_cam); } inline void drawFrustum(const Eigen::Matrix4f& pose) { // if(showcaseMode) return; Eigen::Matrix3f K = Eigen::Matrix3f::Identity(); K(0, 0) = Intrinsics::getInstance().fx(); K(1, 1) = Intrinsics::getInstance().fy(); K(0, 2) = Intrinsics::getInstance().cx(); K(1, 2) = Intrinsics::getInstance().cy(); Eigen::Matrix3f Kinv = K.inverse(); pangolin::glDrawFrustum(Kinv, Resolution::getInstance().width(), Resolution::getInstance().height(), pose, 0.1f); } void displayImg(const std::string& id, GPUTexture* img) { if (showcaseMode) return; glDisable(GL_DEPTH_TEST); pangolin::Display(id).Activate(); img->texture->RenderToViewport(true); glEnable(GL_DEPTH_TEST); } void addModel(int id, float confThres) { modelInfos.emplace_back(id, confThres); } void displayEmpty(const std::string& id) { if (showcaseMode) return; glDisable(GL_DEPTH_TEST); pangolin::Display(id).Activate(); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); // GLfloat sq_vert[] = { -1,-1, 1,-1, 1, 1, -1, 1 }; // glVertexPointer(2, GL_FLOAT, 0, sq_vert); // glEnableClientState(GL_VERTEX_ARRAY); // GLfloat sq_tex[] = { 0,0, 1,0, 1,1, 0,1 }; // glTexCoordPointer(2, GL_FLOAT, 0, sq_tex); // glEnableClientState(GL_TEXTURE_COORD_ARRAY); // glEnable(GL_TEXTURE_2D); // Bind(); glLineWidth(1); glBegin(GL_LINES); glColor3f(1, 0, 0); glVertex3f(-1, -1, -1); glVertex3f(1, 1, 1); glEnd(); // img->texture->RenderToViewport(true); glEnable(GL_DEPTH_TEST); } void saveColorImage(const std::string& path) { pangolin::SaveWindowOnRender(path); } void postCall() { GLint cur_avail_mem_kb = 0; glGetIntegerv(GL_GPU_MEM_INFO_CURRENT_AVAILABLE_MEM_NVX, &cur_avail_mem_kb); int memFree = cur_avail_mem_kb / 1024; gpuMem->operator=(memFree); pangolin::FinishFrame(); glFinish(); } void drawFXAA(const Eigen::Matrix4f& matViewProjection, const Eigen::Matrix4f& pose, pangolin::OpenGlMatrix mv, std::list<std::shared_ptr<Model>>& models, const int time, const int timeDelta, const bool invertNormals) { // First pass computes positions, colors and normals per pixel colorFrameBuffer->Bind(); glPushAttrib(GL_VIEWPORT_BIT); glViewport(0, 0, renderBuffer->width, renderBuffer->height); glClearColor(0.05 * !showcaseMode, 0.05 * !showcaseMode, 0.3 * !showcaseMode, 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); colorProgram->Bind(); for (auto& modelPointer : models) { Eigen::Matrix4f mvp = matViewProjection; if (modelPointer->getID() != 0) mvp = mvp * pose * modelPointer->getPose().inverse(); colorProgram->setUniform(Uniform("MVP", mvp)); colorProgram->setUniform(Uniform("threshold", modelPointer->getConfidenceThreshold())); colorProgram->setUniform(Uniform("time", time)); colorProgram->setUniform(Uniform("timeDelta", timeDelta)); colorProgram->setUniform(Uniform("signMult", invertNormals ? 1.0f : -1.0f)); colorProgram->setUniform(Uniform("colorType", (drawNormals->Get() ? 1 : drawColors->Get() ? 2 : drawTimes->Get() ? 3 : 0))); colorProgram->setUniform(Uniform("unstable", drawUnstable->Get())); colorProgram->setUniform(Uniform("drawWindow", drawWindow->Get())); Eigen::Matrix4f pose = Eigen::Matrix4f::Identity(); // This is for the point shader colorProgram->setUniform(Uniform("pose", pose)); Eigen::Matrix4f modelView = mv; Eigen::Vector3f lightpos = modelView.topRightCorner(3, 1); colorProgram->setUniform(Uniform("lightpos", lightpos)); glBindBuffer(GL_ARRAY_BUFFER, modelPointer->getModelBuffer().dataBuffer); glEnableVertexAttribArray(0); glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, Vertex::SIZE, 0); glEnableVertexAttribArray(1); glVertexAttribPointer(1, 4, GL_FLOAT, GL_FALSE, Vertex::SIZE, reinterpret_cast<GLvoid*>(sizeof(Eigen::Vector4f) * 1)); glEnableVertexAttribArray(2); glVertexAttribPointer(2, 4, GL_FLOAT, GL_FALSE, Vertex::SIZE, reinterpret_cast<GLvoid*>(sizeof(Eigen::Vector4f) * 2)); glDrawTransformFeedback(GL_POINTS, modelPointer->getModelBuffer().stateObject); glDisableVertexAttribArray(0); glDisableVertexAttribArray(1); glDisableVertexAttribArray(2); glBindBuffer(GL_ARRAY_BUFFER, 0); } colorFrameBuffer->Unbind(); colorProgram->Unbind(); glPopAttrib(); fxaaProgram->Bind(); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, colorTexture->texture->tid); Eigen::Vector2f resolution(renderBuffer->width, renderBuffer->height); fxaaProgram->setUniform(Uniform("tex", 0)); fxaaProgram->setUniform(Uniform("resolution", resolution)); glDrawArrays(GL_POINTS, 0, 1); fxaaProgram->Unbind(); glBindFramebuffer(GL_READ_FRAMEBUFFER, colorFrameBuffer->fbid); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); glBlitFramebuffer(0, 0, renderBuffer->width, renderBuffer->height, 0, 0, window_width, window_height, GL_DEPTH_BUFFER_BIT, GL_NEAREST); glBindTexture(GL_TEXTURE_2D, 0); glFinish(); } void drawFXAAOLD(pangolin::OpenGlMatrix mvp, pangolin::OpenGlMatrix mv, const OutputBuffer& model, const float threshold, const int time, const int timeDelta, const bool invertNormals) { // First pass computes positions, colors and normals per pixel colorFrameBuffer->Bind(); glPushAttrib(GL_VIEWPORT_BIT); glViewport(0, 0, renderBuffer->width, renderBuffer->height); glClearColor(0.05 * !showcaseMode, 0.05 * !showcaseMode, 0.3 * !showcaseMode, 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); colorProgram->Bind(); colorProgram->setUniform(Uniform("MVP", mvp)); colorProgram->setUniform(Uniform("threshold", threshold)); colorProgram->setUniform(Uniform("time", time)); colorProgram->setUniform(Uniform("timeDelta", timeDelta)); colorProgram->setUniform(Uniform("signMult", invertNormals ? 1.0f : -1.0f)); colorProgram->setUniform(Uniform("colorType", (drawNormals->Get() ? 1 : drawColors->Get() ? 2 : drawTimes->Get() ? 3 : 0))); colorProgram->setUniform(Uniform("unstable", drawUnstable->Get())); colorProgram->setUniform(Uniform("drawWindow", drawWindow->Get())); Eigen::Matrix4f pose = Eigen::Matrix4f::Identity(); // This is for the point shader colorProgram->setUniform(Uniform("pose", pose)); Eigen::Matrix4f modelView = mv; Eigen::Vector3f lightpos = modelView.topRightCorner(3, 1); colorProgram->setUniform(Uniform("lightpos", lightpos)); glBindBuffer(GL_ARRAY_BUFFER, model.dataBuffer); glEnableVertexAttribArray(0); glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, Vertex::SIZE, 0); glEnableVertexAttribArray(1); glVertexAttribPointer(1, 4, GL_FLOAT, GL_FALSE, Vertex::SIZE, reinterpret_cast<GLvoid*>(sizeof(Eigen::Vector4f) * 1)); glEnableVertexAttribArray(2); glVertexAttribPointer(2, 4, GL_FLOAT, GL_FALSE, Vertex::SIZE, reinterpret_cast<GLvoid*>(sizeof(Eigen::Vector4f) * 2)); glDrawTransformFeedback(GL_POINTS, model.stateObject); glDisableVertexAttribArray(0); glDisableVertexAttribArray(1); glDisableVertexAttribArray(2); glBindBuffer(GL_ARRAY_BUFFER, 0); colorFrameBuffer->Unbind(); colorProgram->Unbind(); glPopAttrib(); fxaaProgram->Bind(); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, colorTexture->texture->tid); Eigen::Vector2f resolution(renderBuffer->width, renderBuffer->height); fxaaProgram->setUniform(Uniform("tex", 0)); fxaaProgram->setUniform(Uniform("resolution", resolution)); glDrawArrays(GL_POINTS, 0, 1); fxaaProgram->Unbind(); glBindFramebuffer(GL_READ_FRAMEBUFFER, colorFrameBuffer->fbid); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); glBlitFramebuffer(0, 0, renderBuffer->width, renderBuffer->height, 0, 0, window_width, window_height, GL_DEPTH_BUFFER_BIT, GL_NEAREST); glBindTexture(GL_TEXTURE_2D, 0); glFinish(); } #ifdef WITH_FREETYPE_GL_CPP void addLabelTexts(const std::vector<std::string>& labels, const std::vector<ftgl::vec4>& colors){ assert(labels.size() == colors.size() || colors.size() == 1); for (unsigned i = 0; i < labels.size(); ++i) { ftgl::Markup markup = textRenderer.createMarkup("DejaVu Sans", 32, colors[colors.size() == 1 ? 0 : i]); ftgl::FreetypeGlText label = textRenderer.createText(labels[i], markup); label.setScalingFactor(0.0011); textLabels.push_back({std::move(label), std::move(markup)}); } } #endif pangolin::Handler3D handler; pangolin::Var<bool> *pause, *step, *skip, *savePoses, *saveView, *saveCloud, //* saveDepth, *reset, *flipColors, *rgbOnly, *enableMultiModel, *enableSmartDelete, *enableTrackAll, *pyramid, *so3, *frameToFrameRGB, *fastOdom, *followPose, *drawRawCloud, *drawFilteredCloud, *drawNormals, *autoSettings, *drawDefGraph, *drawColors, *drawPoseLog, *drawLabelColors, *drawFxaa, *drawGlobalModel, *drawObjectModels, *drawUnstable, *drawPoints, *drawTimes, *drawFerns, *drawDeforms, *drawWindow, *drawBoundingBoxes; pangolin::Var<int>* gpuMem; pangolin::Var<std::string> *totalPoints, *totalNodes, *totalFerns, *totalDefs, *totalFernDefs, *trackInliers, *trackRes, *logProgress; pangolin::Var<float> *depthCutoff, *icpWeight, *outlierCoefficient; // Model related pangolin::Var<int>* numModels; std::vector<ModelInfo> modelInfos; pangolin::Var<unsigned> *modelSpawnOffset, *modelDeactivateCnt; // Segmentation pangolin::Var<float> *minRelSizeNew, *maxRelSizeNew; // CRF pangolin::Var<float> *pairwiseRGBSTD = nullptr; pangolin::Var<float> *pairwiseDepthSTD = nullptr; pangolin::Var<float> *pairwisePosSTD = nullptr; pangolin::Var<float> *pairwiseAppearanceWeight = nullptr; pangolin::Var<float> *pairwiseSmoothnessWeight = nullptr; pangolin::Var<float> *thresholdNew = nullptr; pangolin::Var<float> *unaryErrorWeight = nullptr; pangolin::Var<float> *unaryErrorK = nullptr; pangolin::Var<unsigned> *crfIterations = nullptr; // Bifold pangolin::Var<float> *bifoldBilateralSigmaDepth = nullptr; pangolin::Var<float> *bifoldBilateralSigmaColor = nullptr; pangolin::Var<float> *bifoldBilateralSigmaLocation = nullptr; pangolin::Var<int> *bifoldBilateralRadius = nullptr; pangolin::Var<float> *bifoldEdgeThreshold = nullptr; pangolin::Var<float> *bifoldWeightDistance = nullptr; pangolin::Var<float> *bifoldWeightConvexity = nullptr; pangolin::Var<float> *bifoldNonstaticThreshold = nullptr; pangolin::Var<int> *bifoldMorphEdgeIterations = nullptr; pangolin::Var<int> *bifoldMorphEdgeRadius = nullptr; pangolin::Var<int> *bifoldMorphMaskIterations = nullptr; pangolin::Var<int> *bifoldMorphMaskRadius = nullptr; pangolin::DataLog resLog, inLog; pangolin::Plotter *resPlot, *inPlot; pangolin::OpenGlRenderState s_cam; pangolin::GlRenderBuffer* renderBuffer; pangolin::GlFramebuffer* colorFrameBuffer; GPUTexture* colorTexture; std::shared_ptr<Shader> colorProgram; std::shared_ptr<Shader> fxaaProgram; #ifdef WITH_FREETYPE_GL_CPP ftgl::FreetypeGl textRenderer; std::vector<std::pair<ftgl::FreetypeGlText, ftgl::Markup>> textLabels; #endif }; #endif /* GUI_H_ */
39.566186
158
0.681473
2cb01f9572c3183002f8084d93416d535713c97f
1,249
h
C
IL2CPP/Il2CppOutputProject/IL2CPP/external/mono/mono/utils/mono-coop-semaphore.h
dngoins/AutographTheWorld-MR
24e567c8030b73a6942e25b36b7370667c649b90
[ "MIT" ]
172
2018-10-31T13:47:10.000Z
2022-02-21T12:08:20.000Z
IL2CPP/Il2CppOutputProject/IL2CPP/external/mono/mono/utils/mono-coop-semaphore.h
dngoins/AutographTheWorld-MR
24e567c8030b73a6942e25b36b7370667c649b90
[ "MIT" ]
51
2018-11-01T12:46:25.000Z
2021-12-14T15:16:15.000Z
IL2CPP/Il2CppOutputProject/IL2CPP/external/mono/mono/utils/mono-coop-semaphore.h
dngoins/AutographTheWorld-MR
24e567c8030b73a6942e25b36b7370667c649b90
[ "MIT" ]
72
2018-10-31T13:50:02.000Z
2022-03-14T09:10:35.000Z
/** * \file */ #ifndef __MONO_COOP_SEMAPHORE_H__ #define __MONO_COOP_SEMAPHORE_H__ #include <config.h> #include <glib.h> #include "mono-os-semaphore.h" #include "mono-threads-api.h" G_BEGIN_DECLS /* We put the OS sync primitives in struct, so the compiler will warn us if * we use mono_os_(mutex|cond|sem)_... on MonoCoop(Mutex|Cond|Sem) structures */ typedef struct _MonoCoopSem MonoCoopSem; struct _MonoCoopSem { MonoSemType s; }; static inline void mono_coop_sem_init (MonoCoopSem *sem, int value) { mono_os_sem_init (&sem->s, value); } static inline void mono_coop_sem_destroy (MonoCoopSem *sem) { mono_os_sem_destroy (&sem->s); } static inline gint mono_coop_sem_wait (MonoCoopSem *sem, MonoSemFlags flags) { gint res; MONO_ENTER_GC_SAFE; res = mono_os_sem_wait (&sem->s, flags); MONO_EXIT_GC_SAFE; return res; } static inline MonoSemTimedwaitRet mono_coop_sem_timedwait (MonoCoopSem *sem, guint timeout_ms, MonoSemFlags flags) { MonoSemTimedwaitRet res; MONO_ENTER_GC_SAFE; res = mono_os_sem_timedwait (&sem->s, timeout_ms, flags); MONO_EXIT_GC_SAFE; return res; } static inline void mono_coop_sem_post (MonoCoopSem *sem) { mono_os_sem_post (&sem->s); } G_END_DECLS #endif /* __MONO_COOP_SEMAPHORE_H__ */
17.109589
80
0.759007
d213a17d7a3e02af5cc92102447174e28775697a
456
c
C
tests/gcc-torture/breakdown/fail/stack-overflow/961017-2.c
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
12
2020-09-03T09:57:26.000Z
2022-01-28T04:28:00.000Z
tests/gcc-torture/breakdown/fail/stack-overflow/961017-2.c
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
182
2021-02-26T23:07:40.000Z
2022-02-10T12:33:45.000Z
tests/gcc-torture/breakdown/fail/stack-overflow/961017-2.c
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
4
2020-09-02T11:54:39.000Z
2022-03-16T23:23:11.000Z
#include "cerberus.h" int main (void) { int i = 0; if (sizeof (unsigned long int) == 4) { unsigned long int z = 0; do { z -= 0x00004000; i++; if (i > 0x00040000) abort (); } while (z > 0); exit (0); } else if (sizeof (unsigned int) == 4) { unsigned int z = 0; do { z -= 0x00004000; i++; if (i > 0x00040000) abort (); } while (z > 0); exit (0); } else exit (0); }
13.028571
38
0.453947
3259e76aefeb7fadebcf3de9f9993d1bf061c14b
324
c
C
actions/test/test.c
Saneyan/robaction
dab7f2ed0ee5af8e6625f27a7424f2332dbb9bd6
[ "MIT" ]
null
null
null
actions/test/test.c
Saneyan/robaction
dab7f2ed0ee5af8e6625f27a7424f2332dbb9bd6
[ "MIT" ]
null
null
null
actions/test/test.c
Saneyan/robaction
dab7f2ed0ee5af8e6625f27a7424f2332dbb9bd6
[ "MIT" ]
null
null
null
#include <ypspur.h> int main(void) { Spur_init(); Spur_set_vel(0.3); Spur_set_accel(1.0); Spur_set_angvel(1.5); Spur_set_angaccel(2.0); Spur_set_pos_GL(0, 0, 0); Spur_line_GL(0, 0, 0); sleep(1); Spur_spin_GL(3.14/2); sleep(1); Spur_line_GL(1.0, 0, 3.14/2); sleep(1); Spur_stop(); return 0; }
14.086957
31
0.623457
191e12004fb11e25556d4f3983968012b97013d5
1,030
c
C
c lang/christmas_tree_v1.c
AbelR007/Christmas-Tree
718af97078d625d597f90f5d14b075c3b7b3ec6c
[ "MIT" ]
1
2021-12-29T14:56:41.000Z
2021-12-29T14:56:41.000Z
c lang/christmas_tree_v1.c
AbelR007/Christmas-Tree
718af97078d625d597f90f5d14b075c3b7b3ec6c
[ "MIT" ]
null
null
null
c lang/christmas_tree_v1.c
AbelR007/Christmas-Tree
718af97078d625d597f90f5d14b075c3b7b3ec6c
[ "MIT" ]
null
null
null
// CHRISTMAS TREE Variation 1 | Code in C language // ---------------------------------------------------------------- // Using Boxes increasing exponentially #include<stdio.h> // Main Function void main() { printf("\n --- Merry Christmas --- \n\n"); // Random Text at the beginning for (int b = 1; b <= 5; b++) // Box loop { for (int c = 1; c <= b; c++) // Columns loop { for (int space = 15; space >= b; space--) // Space\Indentation loop { printf(" "); // How far do you want to indent? } for (int r = 1; r <= b; r++) // Rows loop { printf("*"); // Symbol to make the Christmas tree } for (int r2 = 1; r2 <= b; r2++) // Inverted Second Row of Christmas tree { printf("*"); } printf("\n"); // Arranging the columns } printf("\n"); // Arranging the boxes } } /* CODE by Abel Roy | AbelR007 */
30.294118
89
0.427184
d286bcf367f9d5960b30425838cc6b16e7ab4b68
18,951
h
C
include/ebpf_api.h
Mu-L/ebpf-for-windows
18456999b7e8ef04357299e13c29eadf3cb9043a
[ "MIT" ]
null
null
null
include/ebpf_api.h
Mu-L/ebpf-for-windows
18456999b7e8ef04357299e13c29eadf3cb9043a
[ "MIT" ]
null
null
null
include/ebpf_api.h
Mu-L/ebpf-for-windows
18456999b7e8ef04357299e13c29eadf3cb9043a
[ "MIT" ]
null
null
null
/* * Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT */ #pragma once #include <stdbool.h> #include <stdint.h> #include "ebpf_execution_type.h" #include "ebpf_result.h" #include "ebpf_core_structs.h" #include "ebpf_result.h" #include "ebpf_windows.h" #ifdef __cplusplus extern "C" { #endif __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_UNSPECIFIED = {0}; /** @brief Attach type for handling incoming packets as early as possible. * * Program type: \ref EBPF_PROGRAM_TYPE_XDP */ __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_XDP = { 0x85e0d8ef, 0x579e, 0x4931, {0xb0, 0x72, 0x8e, 0xe2, 0x26, 0xbb, 0x2e, 0x9d}}; /** @brief Attach type for handling socket bind() requests. * * Program type: \ref EBPF_PROGRAM_TYPE_BIND */ __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_BIND = { 0xb9707e04, 0x8127, 0x4c72, {0x83, 0x3e, 0x05, 0xb1, 0xfb, 0x43, 0x94, 0x96}}; __declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_TEST = { 0xf788ef4b, 0x207d, 0x4dc3, {0x85, 0xcf, 0x0f, 0x2e, 0xa1, 0x07, 0x21, 0x3c}}; __declspec(selectany) ebpf_attach_type_t EBPF_PROGRAM_TYPE_UNSPECIFIED = {0}; /** @brief Program type for handling incoming packets as early as possible. * * eBPF program prototype: \ref xdp_hook_t * * Attach type(s): \ref EBPF_ATTACH_TYPE_XDP * * Helpers available: see ebpf_helpers.h */ __declspec(selectany) ebpf_program_type_t EBPF_PROGRAM_TYPE_XDP = { 0xf1832a85, 0x85d5, 0x45b0, {0x98, 0xa0, 0x70, 0x69, 0xd6, 0x30, 0x13, 0xb0}}; /** @brief Program type for handling socket bind() requests. * * eBPF program prototype: \ref bind_hook_t * * Attach type(s): \ref EBPF_ATTACH_TYPE_BIND * * Helpers available: see ebpf_helpers.h */ __declspec(selectany) ebpf_program_type_t EBPF_PROGRAM_TYPE_BIND = { 0x608c517c, 0x6c52, 0x4a26, {0xb6, 0x77, 0xbb, 0x1c, 0x34, 0x42, 0x5a, 0xdf}}; __declspec(selectany) ebpf_program_type_t EBPF_PROGRAM_TYPE_TEST = { 0xf788ef4a, 0x207d, 0x4dc3, {0x85, 0xcf, 0x0f, 0x2e, 0xa1, 0x07, 0x21, 0x3c}}; typedef int32_t fd_t; const fd_t ebpf_fd_invalid = -1; typedef void* ebpf_handle_t; const ebpf_handle_t ebpf_handle_invalid = (ebpf_handle_t)-1; typedef struct _tlv_type_length_value tlv_type_length_value_t; struct _ebpf_object; struct _ebpf_program; struct _ebpf_map; /** * @brief Initialize the eBPF user mode library. */ uint32_t ebpf_api_initiate(); /** * @brief Terminate the eBPF user mode library. */ void ebpf_api_terminate(); /** * @brief Load an eBFP program into the kernel execution context. * @param[in] file An ELF file containing one or more eBPF programs. * @param[in] section_name Name of the section in the ELF file to load. * @param[in] execution_type How this program should be run in the execution * context. * @param[out] handle Handle to eBPF program. * @param[in,out] count_of_map_handles On input, contains the maximum number of map_handles to return. * On output, contains the actual number of map_handles returned. * @param[out] map_handles Array of map handles to be filled in. * @param[out] error_message Error message describing what failed. */ ebpf_result_t ebpf_api_load_program( const char* file, const char* section_name, ebpf_execution_type_t execution_type, ebpf_handle_t* handle, uint32_t* count_of_map_handles, ebpf_handle_t* map_handles, const char** error_message); /** * @brief Create an eBPF map with input parameters. * @param[in] type Map type. * @param[in] key_size Key size. * @param[in] value_size Value size. * @param[in] max_entries Maximum number of entries in the map. * @param[in] map_flags Map flags. * @param[out] handle Pointer to map handle. * * @retval EBPF_SUCCESS Map created successfully. * @retval EBPF_ERROR_NOT_SUPPORTED Unsupported map type. * @retval EBPF_INVALID_ARGUMENT One or more parameters are incorrect. */ ebpf_result_t ebpf_api_create_map( ebpf_map_type_t type, uint32_t key_size, uint32_t value_size, uint32_t max_entries, uint32_t map_flags, _Out_ ebpf_handle_t* handle); /** * @brief Find an element in an eBPF map. * @param[in] handle Handle to eBPF map. * @param[in] key_size Size of the key buffer. * @param[in] key Pointer to buffer containing key. * @param[in] value_size Size of the value buffer. * @param[out] value Pointer to buffer that contains value on success. */ uint32_t ebpf_api_map_find_element( ebpf_handle_t handle, uint32_t key_size, const uint8_t* key, uint32_t value_size, uint8_t* value); /** * @brief Update an element in an eBPF map. * @param[in] handle Handle to eBPF map. * @param[in] key_size Size of the key buffer. * @param[in] key Pointer to buffer containing key. * @param[in] value_size Size of the value buffer. * @param[out] value Pointer to buffer containing value. */ uint32_t ebpf_api_map_update_element( ebpf_handle_t handle, uint32_t key_size, const uint8_t* key, uint32_t value_size, const uint8_t* value); /** * @brief Delete an element in an eBPF map. * @param[in] handle Handle to eBPF map. * @param[in] key_size Size of the key buffer. * @param[in] key Pointer to buffer containing key. */ uint32_t ebpf_api_map_delete_element(ebpf_handle_t handle, uint32_t key_size, const uint8_t* key); /** * @brief Return the next key in an eBPF map. * @param[in] handle Handle to eBPF map. * @param[in] key_size Size of the key buffer. * @param[in] previous_key Pointer to buffer containing previous key or NULL to restart enumeration. * @param[out] next_key Pointer to buffer that contains next * key on success. * @retval ERROR_NO_MORE_ITEMS previous_key was the last key. */ uint32_t ebpf_api_get_next_map_key(ebpf_handle_t handle, uint32_t key_size, const uint8_t* previous_key, uint8_t* next_key); /** * @brief Get the next eBPF map. * @param[in] previous_handle Handle to previous eBPF map or * ebpf_handle_invalid to start enumeration. * @param[out] next_handle The next eBPF map or ebpf_handle_invalid if this * is the last map. */ uint32_t ebpf_api_get_next_map(ebpf_handle_t previous_handle, ebpf_handle_t* next_handle); /** * @brief Get the next eBPF program. * @param[in] previous_handle Handle to previous eBPF program or * ebpf_handle_invalid to start enumeration. * @param[out] next_handle The next eBPF program or ebpf_handle_invalid if this * is the last map. */ uint32_t ebpf_api_get_next_program(ebpf_handle_t previous_handle, ebpf_handle_t* next_handle); /** * @brief Query properties of an eBPF map. * @param[in] handle Handle to an eBPF map. * @param[out] size Size of the eBPF map definition. * @param[out] type Type of the eBPF map. * @param[out] key_size Size of keys in the eBPF map. * @param[out] value_size Size of values in the eBPF map. * @param[out] max_entries Maximum number of entries in the map. */ ebpf_result_t ebpf_api_map_query_definition( ebpf_handle_t handle, uint32_t* size, uint32_t* type, uint32_t* key_size, uint32_t* value_size, uint32_t* max_entries); /** * @brief Query info about an eBPF program. * @param[in] handle Handle to an eBPF program. * @param[out] execution_type On success, contains the execution type. * @param[out] file_name On success, contains the file name. * @param[out] section_name On success, contains the section name. */ uint32_t ebpf_api_program_query_info( ebpf_handle_t handle, ebpf_execution_type_t* execution_type, const char** file_name, const char** section_name); /** * @brief Get list of programs and stats in an ELF eBPF file. * @param[in] file Name of ELF file containing eBPF program. * @param[in] section Optionally, the name of the section to query. * @param[in] verbose Obtain additional info about the programs. * @param[out] data On success points to a list of eBPF programs. * @param[out] error_message On failure points to a text description of * the error. * * The list of eBPF programs from this function is TLV formatted as follows:\n * * sections ::= SEQUENCE {\n * section SEQUENCE of section\n * }\n * \n * section ::= SEQUENCE {\n * name STRING\n * platform_specific_data INTEGER\n * count_of_maps INTEGER\n * byte_code BLOB\n * statistic SEQUENCE of statistic\n * }\n * \n * statistic ::= SEQUENCE {\n * name STRING\n * value INTEGER\n * }\n */ uint32_t ebpf_api_elf_enumerate_sections( const char* file, const char* section, bool verbose, const tlv_type_length_value_t** data, const char** error_message); /** * @brief Convert an eBPF program to human readable byte code. * @param[in] file Name of ELF file containing eBPF program. * @param[in] section The name of the section to query. * @param[out] disassembly On success points text version of the program. * @param[out] error_message On failure points to a text description of * the error. */ uint32_t ebpf_api_elf_disassemble_section( const char* file, const char* section, const char** disassembly, const char** error_message); typedef struct { int total_unreachable; int total_warnings; int max_instruction_count; } ebpf_api_verifier_stats_t; /** * @brief Convert an eBPF program to human readable byte code. * @param[in] file Name of ELF file containing eBPF program. * @param[in] section The name of the section to query. * @param[in] verbose Obtain additional info about the programs. * @param[out] report Points to a text section describing why the program * failed verification. * @param[out] error_message On failure points to a text description of * the error. * @param[out] stats If non-NULL, returns verification statistics. */ uint32_t ebpf_api_elf_verify_section( const char* file, const char* section, bool verbose, const char** report, const char** error_message, ebpf_api_verifier_stats_t* stats); /** * @brief Free a TLV returned from \ref ebpf_api_elf_enumerate_sections * @param[in] data Memory to free. */ void ebpf_api_elf_free(const tlv_type_length_value_t* data); /** * @brief Free memory for a string returned from an eBPF API. * @param[in] string Memory to free. */ void ebpf_free_string(_In_opt_ _Post_invalid_ const char* string); /** * @brief Associate a name with an object handle. * @param[in] handle Handle to object. * @param[in] name Name to associate with handle. * @param[in] name_length Length in bytes of the name. */ uint32_t ebpf_api_pin_object(ebpf_handle_t handle, const uint8_t* name, uint32_t name_length); /** * @brief Dissociate a name with an object handle. * @param[in] name Name to dissociate. * @param[in] name_length Length in bytes of the name. */ uint32_t ebpf_api_unpin_object(const uint8_t* name, uint32_t name_length); /** * @brief Find a map given its associated name. * @param[in] name Name to find. * @param[in] name_length Length in bytes of name to find. * @param[out] handle Pointer to memory that contains the map handle on success. */ uint32_t ebpf_api_get_pinned_map(const uint8_t* name, uint32_t name_length, ebpf_handle_t* handle); /** * @brief Bind a program to an attach point and return a handle representing * the link. * * @param[in] program_handle Handle to program to attach. * @param[in] attach_type Attach point to attach program to. * @param[out] link_handle Pointer to memory that contains the link handle * on success. * @retval ERROR_SUCCESS The operations succeeded. * @retval ERROR_INVALID_PARAMETER One or more parameters are incorrect. */ uint32_t ebpf_api_link_program(ebpf_handle_t program_handle, ebpf_attach_type_t attach_type, ebpf_handle_t* link_handle); /** * @brief Close an eBPF handle. * * @param[in] handle Handle to close. * @retval ERROR_SUCCESS Handle was closed. * @retval ERROR_INVALID_HANDLE Handle is not valid. */ uint32_t ebpf_api_close_handle(ebpf_handle_t handle); /** * @brief Returns an array of \ref ebpf_map_info_t for all pinned maps. * * @param[out] map_count Number of pinned maps. * @param[out] map_info Array of ebpf_map_info_t for pinned maps. * * @retval EBPF_SUCCESS The API suceeded. * @retval EBPF_NO_MEMORY Out of memory. * @retval EBPF_INVALID_ARGUMENT One or more parameters are wrong. */ ebpf_result_t ebpf_api_get_pinned_map_info( _Out_ uint16_t* map_count, _Outptr_result_buffer_maybenull_(*map_count) ebpf_map_info_t** map_info); /** * @brief Helper Function to free array of \ref ebpf_map_info_t allocated by * \ref ebpf_api_get_pinned_map_info function. * * @param[in] map_count Length of array to be freed. * @param[in] map_info Map to be freed. */ void ebpf_api_map_info_free( uint16_t map_count, _In_opt_count_(map_count) _Post_ptr_invalid_ const ebpf_map_info_t* map_info); /** * @brief Load eBPF programs from an ELF file based on default load * attributes. This API does the following: * 1. Read the ELF file. * 2. Create maps. * 3. Load all programs. * 4. Return fd to the first program. * * If the caller supplies a program type and/or attach type, that * supplied value takes precedence over the derived program/attach type. * * @param[in] file_name ELF file name with full path. * @param[in] program_type Optionally, the program type to use when loading * the eBPF program. If program type is not supplied, it is derived from * the section prefix in the ELF file. * @param[in] attach_type Optionally, the attach type to use for the loaded * eBPF program. If attach type is not supplied, it is derived from the * section prefix in the ELF file. * @param[in] execution_type The execution type to use for this program. If * EBPF_EXECUTION_ANY is specified, execution type will be decided by a * system-wide policy. * @param[out] object Returns pointer to ebpf_object object. The caller is expected to call ebpf_object_close() at the end. * @param[out] program_fd Returns a file descriptor for the first program. * The caller should not call _close() on the fd, but should instead use * ebpf_object_close() to close this (and other) file descriptors. * @param[out] log_buffer Returns a pointer to a null-terminated log buffer. * The caller is responsible for freeing the returned log_buffer pointer * by calling ebpf_api_free_string(). * * @retval EBPF_SUCCESS The programs are loaded and maps are created successfully. * @retval EBPF_INVALID_ARGUMENT One or more parameters are incorrect. * @retval EBPF_NO_MEMORY Out of memory. * @retval EBPF_ELF_PARSING_FAILED Failure in parsing ELF file. * @retval EBPF_FAILED Some other error occured. */ ebpf_result_t ebpf_program_load( _In_z_ const char* file_name, _In_opt_ const ebpf_program_type_t* program_type, _In_opt_ const ebpf_attach_type_t* attach_type, _In_ ebpf_execution_type_t execution_type, _Outptr_ struct _ebpf_object** object, _Out_ fd_t* program_fd, _Outptr_result_maybenull_z_ const char** log_buffer); /** * @brief Get next program in ebpf_object object. * * @param[in] previous Pointer to previous eBPF program, or NULL to get the first one. * @param[in] object Pointer to eBPF object. * @return Pointer to the next program, or NULL if none. */ _Ret_maybenull_ struct _ebpf_program* ebpf_program_next(_In_opt_ const struct _ebpf_program* previous, _In_ const struct _ebpf_object* object); /** * @brief Get previous program in ebpf_object object. * * @param[in] next Pointer to next eBPF program, or NULL to get the last one. * @param[in] object Pointer to eBPF object. * @return Pointer to the previous program, or NULL if none. */ _Ret_maybenull_ struct _ebpf_program* ebpf_program_previous(_In_opt_ const struct _ebpf_program* next, _In_ const struct _ebpf_object* object); /** * @brief Get next map in ebpf_object object. * * @param[in] previous Pointer to previous eBPF map, or NULL to get the first one. * @param[in] object Pointer to eBPF object. * @return Pointer to the next map, or NULL if none. */ _Ret_maybenull_ struct _ebpf_map* ebpf_map_next(_In_opt_ const struct _ebpf_map* previous, _In_ const struct _ebpf_object* object); /** * @brief Get previous map in ebpf_object object. * * @param[in] next Pointer to next eBPF map, or NULL to get the last one. * @param[in] object Pointer to eBPF object. * @return Pointer to the previous map, or NULL if none. */ _Ret_maybenull_ struct _ebpf_map* ebpf_map_previous(_In_opt_ const struct _ebpf_map* next, _In_ const struct _ebpf_object* object); /** * @brief Fetch fd for a program object. * * @param[in] program Pointer to eBPF program. * @return fd for the program on success, ebpf_fd_invalid on failure. */ fd_t ebpf_program_get_fd(_In_ const struct _ebpf_program* program); /** * @brief Fetch fd for a map object. * * @param[in] map Pointer to eBPF map. * @return fd for the map on success, ebpf_fd_invalid on failure. */ fd_t ebpf_map_get_fd(_In_ const struct _ebpf_map* map); /** * @brief Clean up ebpf_object. Also delete all the sub objects * (maps, programs) and close the related file descriptors. * * @param[in] object Pointer to ebpf_object. */ void ebpf_object_close(_In_ _Post_invalid_ struct _ebpf_object* object); #ifdef __cplusplus } #endif
37.305118
120
0.67379
309262d72d2636f8a20432ab6b3670028ccab096
1,341
h
C
src/dawn/native/vulkan/ExternalHandle.h
encounter/dawn-cmake
64a23ce0ede5f232cc209b69d64164ede6810b65
[ "Apache-2.0" ]
null
null
null
src/dawn/native/vulkan/ExternalHandle.h
encounter/dawn-cmake
64a23ce0ede5f232cc209b69d64164ede6810b65
[ "Apache-2.0" ]
null
null
null
src/dawn/native/vulkan/ExternalHandle.h
encounter/dawn-cmake
64a23ce0ede5f232cc209b69d64164ede6810b65
[ "Apache-2.0" ]
null
null
null
// Copyright 2022 The Dawn Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef SRC_DAWN_NATIVE_VULKAN_EXTERNALHANDLE_H_ #define SRC_DAWN_NATIVE_VULKAN_EXTERNALHANDLE_H_ #include "dawn/common/vulkan_platform.h" namespace dawn::native::vulkan { #if DAWN_PLATFORM_LINUX // File descriptor using ExternalMemoryHandle = int; // File descriptor using ExternalSemaphoreHandle = int; #elif DAWN_PLATFORM_FUCHSIA // Really a Zircon vmo handle. using ExternalMemoryHandle = zx_handle_t; // Really a Zircon event handle. using ExternalSemaphoreHandle = zx_handle_t; #else // Generic types so that the Null service can compile, not used for real handles using ExternalMemoryHandle = void*; using ExternalSemaphoreHandle = void*; #endif } // namespace dawn::native::vulkan #endif // SRC_DAWN_NATIVE_VULKAN_EXTERNALHANDLE_H_
32.707317
80
0.782998
30c7a09f9f4d84b86e6f3fb22a05cbe3e0498d10
2,176
h
C
applications/physbam/physbam-lib/Public_Library/PhysBAM_Rendering/PhysBAM_OpenGL/OpenGL_Components/OPENGL_COMPONENT_TRIANGULATED_SURFACE.h
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
applications/physbam/physbam-lib/Public_Library/PhysBAM_Rendering/PhysBAM_OpenGL/OpenGL_Components/OPENGL_COMPONENT_TRIANGULATED_SURFACE.h
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
applications/physbam/physbam-lib/Public_Library/PhysBAM_Rendering/PhysBAM_OpenGL/OpenGL_Components/OPENGL_COMPONENT_TRIANGULATED_SURFACE.h
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
//##################################################################### // Copyright 2004, Eran Guendelman. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### // Class OPENGL_COMPONENT_TRIANGULATED_SURFACE //##################################################################### #ifndef __OPENGL_COMPONENT_TRIANGULATED_SURFACE__ #define __OPENGL_COMPONENT_TRIANGULATED_SURFACE__ #include <PhysBAM_Geometry/Topology_Based_Geometry/TRIANGULATED_SURFACE.h> #include <PhysBAM_Rendering/PhysBAM_OpenGL/OpenGL/OPENGL_TRIANGULATED_SURFACE.h> #include <PhysBAM_Rendering/PhysBAM_OpenGL/OpenGL_Components/OPENGL_COMPONENT.h> namespace PhysBAM { template<class T,class RW=T> class OPENGL_COMPONENT_TRIANGULATED_SURFACE : public OPENGL_COMPONENT { public: OPENGL_COMPONENT_TRIANGULATED_SURFACE(const std::string &filename, bool use_display_list = true); ~OPENGL_COMPONENT_TRIANGULATED_SURFACE(); bool Valid_Frame(int frame_input) const PHYSBAM_OVERRIDE; void Set_Frame(int frame_input) PHYSBAM_OVERRIDE; void Set_Draw(bool draw_input = true) PHYSBAM_OVERRIDE; void Display(const int in_color=1) const PHYSBAM_OVERRIDE; bool Use_Bounding_Box() const PHYSBAM_OVERRIDE { return draw && valid; } virtual RANGE<VECTOR<float,3> > Bounding_Box() const PHYSBAM_OVERRIDE; virtual OPENGL_SELECTION *Get_Selection(GLuint *buffer, int buffer_size) { return opengl_triangulated_surface.Get_Selection(buffer,buffer_size); } virtual void Highlight_Selection(OPENGL_SELECTION *selection) PHYSBAM_OVERRIDE { opengl_triangulated_surface.Highlight_Selection(selection); } virtual void Clear_Highlight() PHYSBAM_OVERRIDE { opengl_triangulated_surface.Clear_Highlight(); } private: void Reinitialize(); // Needs to be called after some state changes public: TRIANGULATED_SURFACE<T>& triangulated_surface; OPENGL_TRIANGULATED_SURFACE<T> opengl_triangulated_surface; private: std::string filename; int frame_loaded; bool valid; bool use_display_list; }; } #endif
41.056604
150
0.727941
aa47581f661feb227a31baae73cd11d3527d03d0
76,841
h
C
model_server/cmd/include/cmd_menu_names.h
kit-transue/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
2
2015-11-24T03:31:12.000Z
2015-11-24T16:01:57.000Z
model_server/cmd/include/cmd_menu_names.h
radtek/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
null
null
null
model_server/cmd/include/cmd_menu_names.h
radtek/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
1
2019-05-19T02:26:08.000Z
2019-05-19T02:26:08.000Z
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted provided that the following conditions are * * met: * * * * 1. Redistributions of source code must retain the above copyright * * notice, this list of conditions and the following disclaimer. * * * * 2. Redistributions in binary form must reproduce the above copyright * * notice, this list of conditions and the following disclaimer in the * * documentation and/or other materials provided with the distribution. * * * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *************************************************************************/ // cmd_menu_names.h //--------------------------------------- // synopsis: // A table of visible menu names and corresponding internal names. // // description: // ... //------------------------------------------ // // Restrictions: // ... //------------------------------------------ // include files // Table to match visible menu and button names to internal UI names // // The internal_name not exactly the name of the widget of the UI but // in case of arrays of widgets with same names contains the index of // widget. // The table reflects the hierarchichal nature of the UI when the same // button (like menubar) may appear under different parents. class MenuNames { public: char displayed_name[CMD_MAX_NAME_LEN]; char internal_name[CMD_MAX_NAME_LEN]; int level; int flag; // if = 0, a child of "browser" // = -1, a child of "aset" // = 1, top level int par_order; // = 1, parent level should be // equal exactly (level -1) // = 0, parent level just < level }; static MenuNames CMD_MENU_TABLE [] = { {"BrowserShell", "*browser",0,1, 0}, // Dialogs - listed alphabetacally {"Associations", "*Association Editor",1,-1,1}, {"Hard", "*button_frame*hard",2,0,1}, {"sash", "*sash",2,0,1}, {"Soft", "*button_frame*soft",2,0,1}, {"Category ", "*category_list",2,0,1}, {"Category Editor", "*category",2,0,0}, {"Create", "*create",2,0,1}, {"Rename", "*rename",2,0,1}, {"Delete", "*delete",2,0,1}, {"Change", "*change",2,0,1}, {"Revert", "*revert",2,0,1}, {"Description", "*form.texteditSW",2,0,0}, {"Description Editor", "*textedit",3,0,0}, {"Vertical Scrollbar", "*vbar",3,0,0}, {"Rename Instance", "*rename_instance",2,0,0}, {"Delete Instance", "*delete_instance",2,0,0}, {"Remove Instance", "*remove_instance",2,0,0}, {"Types", "*form(1).list",2,0,0}, {"List", "*type_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Associations", "*form(2).list(1)",2,0,0}, {"List", "*instance_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Files", "*form(2).list(2)",2,0,0}, {"List", "*file_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Objects", "*form(2).list(3)",2,0,0}, {"List", "*object_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Configurator", "*Configurator_popup",1,-1,1}, {"SetUp", "*form",2,0,0}, {"Path", "*frame_form.form(1).string_editor",3,0,0}, {"Stat", "*frame_form.form(2).string_editor",3,0,0}, {"Lock", "*frame_form.form(3).string_editor",3,0,0}, {"Unlock", "*frame_form.form(4).string_editor",3,0,0}, {"Commit", "*frame_form.form(5).string_editor",3,0,0}, {"Maker", "*frame_form.form(6).string_editor",3,0,0}, {"Make", "*frame_form.form(7).string_editor",3,0,0}, {"Import", "*frame_form.form(8).string_editor",3,0,0}, {"Export", "*frame_form.form(9).string_editor",3,0,0}, {"Diff", "*frame_form.form(10).string_editor",3,0,0}, // Allow to skip "Set Up" which is not that visibly clear parent {"OK", "*ok",3,0,0}, {"Store", "*store",3,0,0}, {"Reset", "*reset",3,0,0}, {"Cancel", "*cancel",3,0,0}, {"Create Association", "*create_association_popup",1,-1,0}, {"Types", "*form.list(1)",2,0,0}, {"List", "*type_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Files", "*form.list(2)",2,0,0}, {"List", "*file_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Objects", "*form.list(3)",2,0,0}, {"List", "*object_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Name Editor", "*name",2,0,0}, {"Comment Editor", "*comment",2,0,0}, {"OK", "*ok",2,0,1}, {"Lock", "*lock",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Define Class", "*Define_Class_popup",1,-1,0}, {"Header File Directory", "*header_dir",2,0,1}, {"Source File Directory", "*source_dir",2,0,1}, {"Class Name", "*class_name",2,0,1}, {"Class Name Aliases", "*class_name",2,0,1}, {"Description", "*description",2,0,1}, {"Responsibilities", "*responsibility",2,0,1}, {"Search Noun-List", "*alias_search",2,0,1}, {"OK", "*Define_Class*ok",2,0,1}, {"Apply", "*Define_Class*apply",2,0,1}, {"Cancel", "*Define_Class*cancel",2,0,1}, {"Help", "*Define_Class*help",2,0,1}, {"Define Relation", "*Define_Relation_popup",1,-1,0}, // src/targ names are different from visible !! {"Relation Name", "*dr_relation_name",2,0,1}, {"Inverse Relation", "*dr_inverse_relation",2,0,1}, {"One to One", "*dr_one_to_one",2,0,1}, {"One to Many", "*dr_one_to_many",2,0,1}, {"Many to One", "*dr_many_to_one",2,0,1}, {"Many to Many", "*dr_many_to_many",2,0,1}, {"Required", "*dr_required",2,0,1}, {"Source Member", "*dr_src_member",2,0,1}, {"Source Header", "*dr_src_header",2,0,1}, {"Source Definition", "*dr_src_definition",2,0,1}, {"Target Member", "*dr_trg_member",2,0,1}, {"Target Header", "*dr_trg_header",2,0,1}, {"Target Definition", "*dr_trg_definition",2,0,1}, {"OK", "*ok",2,0,1}, {"Apply", "*apply",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Define Struct", "*Define_Struct_popup",1,-1,0}, {"Header File Directory", "*header_dir",2,0,1}, {"Struct Name", "*struct_name",2,0,1}, {"Description", "*description",2,0,1}, {"Responsibilities", "*responsibility",2,0,1}, {"OK", "*ok",2,0,1}, {"Apply", "*apply",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Error", "*Error_popup",1,-1,0}, {"OK", "*OK",2,0,1}, {"Help", "*Help",2,0,1}, {"Parser Error", "*select_from_rtl_popup",1,-1,0}, // ... more {"Show", "*remove_project.apply",2,0,1}, {"Done", "*remove_project.cancel",2,0,1}, {"Help", "*remove_project.help",2,0,1}, {"Filter List", "*list_utils_popup",1,0,0}, {"Show entries matching regexp", "\0",2,0,0}, {"Hide entries matching regexp", "\0",2,0,0}, {"Format list entries by field and width", "\0",2,0,0}, {"Object Name", "\0",3,0,0}, {"Predefined Filters", "\0",2,0,0}, {"Configure", "\0",3,0,0}, {"Generic", "\0",3,0,0}, {"Sort By", "\0",2,0,0}, {"Formatted String", "\0",3,0,0}, {"Ascending", "\0",3,0,0}, {"OK", "*ok",2,0,0}, {"Apply", "*apply",2,0,0}, {"Cancel", "*cancel",2,0,0}, {"Create File", "*file_language_popup",1,0,0}, {"External Files", "*file_area_unix",2,0,0}, {"In Project", "*file_area_project",2,0,0}, {"C Source Code", "*file_lang_c",2,0,0}, {"C++ Source Code", "*file_lang_cplusplus",2,0,0}, {"Structured Text", "*file_lang_ste",2,0,0}, {"Makefile", "*file_lang_makefile",2,0,0}, {"Raw Text", "*file_lang_raw",2,0,0}, {"Enter complete path name", "*form.answer",2,0,0}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Create Directory", "*file_language_popup",1,0,0}, {"Enter directory name", "*form.answer",2,0,0}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Load Layout", "*prompt_popup",1,0,1}, {"Load layout from the", "*answer",2,0,1}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"New Project", "*prompt_popup",1,0,0}, {"Enter name for new project", "*form.answer",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"OK", "*ok",2,0,1}, {"Help", "*help",2,0,1}, {"New Scrapbook", "*prompt_popup",1,0,0}, {"Enter a name for the scrapbook", "*form.answer",2,0,1}, {"Cancel", "*prompt*cancel",2,0,1}, {"OK", "*prompt*ok",2,0,1}, {"Help", "*prompt*help",2,0,1}, {"New Subsystem", "*prompt_popup",1,0,0}, {"Enter a name for the subsystem", "*form.answer",2,0,1}, {"Cancel", "*prompt*cancel",2,0,1}, {"OK", "*prompt*ok",2,0,1}, {"Help", "*prompt*help",2,0,1}, {"Open Project", "*open_project_popup",1,0,0}, {"List", "*list_dialog_list",2,0,0}, {"Horizontal Scrollbar", "*listhScrollBar",2,0,0}, {"Vertical Scrollbar", "*listvScrollBar",2,0,0}, {"OK", "*open_project.ok",2,0,1}, {"Cancel", "*open_project.cancel",2,0,1}, {"Help", "*open_project.help",2,0,1}, {"Preferences", "*preferences_popup",1,-1,1}, {"Installation Directory", "*frame(1).frame_form.form(1).string_editor",2,0,0}, {"Shadow Directory", "*frame(1).frame_form.form(2).string_editor",2,0,0}, {"Default Window Layout", "*frame(1).frame_form.form(3).string_editor",2,0,0}, {"Makefile directory", "*frame(1).frame_form.form(4).string_editor",2,0,0}, {"GDB Debugger", "*frame(1).frame_form.form(5).string_editor",2,0,0}, {"C Language", "*frame(2).dummy",2,0,0}, {"#define (-D Flags)", "*frame(2).frame_form.form(1).string_editor",3,0,0}, {"#include (-l Flags)", "*frame(2).frame_form.form(2).string_editor",3,0,0}, {"File Suffix", "*frame(2).frame_form.form(4).string_editor",3,0,0}, {"Other Flags", "*frame(2).frame_form.form(4).string_editor",3,0,0}, {"Output Style", "*frame(2).frame_form.form(5).dummy",3,0,0}, {"ANSII", "*one",4,0,0}, {"K&R", "*two",4,0,0}, {"C++ Language", "*frame(3).dummy",2,0,0}, {"#define (-D Flags)", "*frame(3).frame_form.form(1).string_editor",3,0,0}, {"#include (-l Flags)", "*frame(3).frame_form.form(2).string_editor",3,0,0}, {"File Suffix", "*frame(3).frame_form.form(3).string_editor",3,0,0}, {"Other Flags", "*frame(3).frame_form.form(4).string_editor",3,0,0}, {"Structured Text", "*frame(4).dummy",2,0,0}, {"Full Suffix", "*frame(4).frame_form.form(1).string_editor",3,0,0}, {"Cross-Reference Exclude Directories", "*frame(5).frame_form.exclude_dirs_listSW.exclude_dir_list",2,0,0}, {"OK", "*ok",2,0,1}, {"Store", "*store",2,0,1}, {"Reset", "*reset",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Put Message", "*DataEntry_popup",1,-1,0}, {"Enter message regarding your modification", "*form*data_text",2,0,0}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Query", "*Query",1,-1,1}, {"New", "*new", 2, 0,1}, {"Load", "*load",2,0,1}, {"Save", "*save",2,0,1}, {"Language", "*language",2,0,1}, {"Case Insensitive", "*case_insensitive",2,0,1}, {"sash", "*sash",2,0,1}, {"Clear Domain", "*clear_domain",2,0,1}, {"Move Results", "*move_results",2,0,1}, {"Clear Results", "*clear_results",2,0,1}, {"Query", "*text_form",2,0,1}, {"Query Editor", "*query_language_editor",3,0,0}, {"Vertical Scrollbar", "*vbar",3,0,0}, {"Domain", "*domain_form",2,0,1}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,1}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,1}, {"List", "*domain",3,0,1}, {"Filter List", "*list_status",3,0,1}, {"Results", "*result_form",2,0,1}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,1}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,1}, {"List", "*results",3,0,1}, {"Filter List", "*list_status",3,0,1}, {"Execute", "*execute",2,0,1}, {"Done", "*done",2,0,1}, {"Help", "*help",2,0,1}, {"Question Popup", "*Question_popup",1,-1,0}, {"OK", "*Question*OK",2,0,1}, {"Cancel", "*Question*Cancel",2,0,1}, {"Help", "*Question*Help",2,0,1}, {"Remove Project", "*remove_project_popup",1,0,0}, {"List", "*list_dialog_list",2,0,1}, {"Cancel", "*remove_project.cancel",2,0,1}, {"OK", "*remove_project.ok",2,0,1}, {"Help", "*remove_project.help",2,0,1}, {"Save Files", "*save_files_popup",1,0,0}, {"Select From Modified Entities","*list(1)",2,0,0}, {"List", "*modified_list",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"These Entities Will Be Saved","*list(2)",2,0,0}, {"List", "*save_list",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Save", "*apply",2,0,0}, {"Quit", "*apply",2,0,1}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Save Layout", "*prompt_popup",1,0,1}, {"Save layout from the", "*answer",2,0,1}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Scanned Projects", "*scanned_projects_popup",1,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",2,0,0}, {"List", "*rtl",2,0,0}, {"Filter List", "*list_status",2,0,0}, {"Remove", "*ok",2,0,1}, {"Done", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, // utility->extract subsystem {"Set Weights", "*set-weights_popup",1,0,0}, {"Function call", "*Function call",2,0,0}, {"Data reference", "*Data reference",2,0,0}, {"Instance of", "*Instance of",2,0,0}, {"Argument type", "*Argument type",2,0,0}, {"Return type", "*Return Type",2,0,0}, {"Contains", "*Contains",2,0,0}, {"Friend of", "*Friend of",2,0,0}, {"Subclass of", "*Subclass of",2,0,0}, {"Member of", "*Member of",2,0,0}, {"Threshold", "*Threshold",2,0,0}, {"Ignore", "*ignore",2,0,0}, {"Leave alone", "*leave-alone",2,0,0}, {"Include", "*include",2,0,0}, {"Apply", "*go",2,0,1}, {"Undo", "*undo",2,0,1}, {"Close", "*done",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"System Messages", "*System_Messages_popup",1,-1,0}, {"Main Options", "*main_options",2,0,0}, {"Create Log Files", "*create_log_files",3,0,0}, {"Quick Help", "*quick_help",3,0,0}, {"Message Filters", "*filter_options",2,0,0}, {"Error", "*show_errors",3,0,1}, {"Warning", "*show_warnings",3,0,1}, {"Informative", "*show_informative",3,0,1}, {"Diagnostic", "*show_diagnostics",3,0,1}, {"Job Categories", "*job_options",2,0,0}, {"Importing Files", "*show_import_files",3,0,0}, {"Compilation", "*show_compilation",3,0,0}, {"Propagation", "*show_propagation",3,0,0}, {"OK", "*ok",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Apply", "*apply",2,0,1}, {"Help", "*help",2,0,1}, // Menus {"Browser", "*browser",1,0,1}, {"About Paraset", "*browser_menu.browser_about_paraset",2,0,1}, {"New Browser", "*browser_menu.browser_new_browser_window",2,0,1}, {"Close", "*browser_menu.browser_close_window",2,0,1}, {"Load Layout", "*browser_menu.browser_load_layout",2,0,1}, {"Save Layout", "*browser_menu.browser_save_layout",2,0,1}, {"Preferences", "*browser_menu.browser_preferences",2,0,1}, {"Configurator", "*browser_menu.browser_configurator",2,0,1}, {"Messages", "*browser_menu.browser_messages",2,0,1}, {"Quit ParaSET", "*browser_menu.browser_quit",2,0,1}, {"File", "*file",1,0,1}, {"Save All Files", "*file_menu.file_save_all_files",2,0,1}, {"New File", "*file_menu.file_new_file",2,0,1}, {"New Directory", "*file_menu.file_new_directory",2,0,1}, {"Delete", "*file_menu.file_delete",2,0,1}, {"Load", "*file_menu.file_preload",2,0,1}, {"Unload", "*file_menu.file_unload",2,0,1}, {"Language", "*file_menu.file_language",2,0,1}, {"Update Directories", "*file_menu.file_update_directories",2,0,1}, {"Manage", "*project",1,0,1}, {"Get", "*project_menu.project_get",2,0,1}, {"Put", "*project_menu.project_put",2,0,1}, {"Lock", "*project_menu.project_lock",2,0,1}, {"Unlock", "*project_menu.project_unlock",2,0,1}, {"Make", "*project_menu.project_make",2,0,1}, {"Update Makefile", "*project_menu.project_update_make",2,0,1}, {"New Project", "*project_menu.project_new_project",2,0,1}, {"Scanned Projects", "*project_menu.project_scanned_projects",2,0,1}, {"Home Project", "*project_menu.project_home_project",2,0,1}, {"View", "*view",1,0,1}, {"New Viewer", "*view_new_viewer",2,0,1}, {"Text", "*view_text",2,0,1}, {"Outline", "*view_outline",2,0,1}, {"Tree", "*view_call_tree",2,0,1}, {"Inheritance", "*view_inheritance",2,0,1}, {"Relations", "*view_relationships",2,0,1}, {"Structures", "*view_structures",2,0,1}, {"Subsystems", "*view_subsystems",2,0,1}, {"Utility", "*utility",1,0,1}, {"Query", "*utility_menu.utility_query",2,0,1}, {"Association Editor", "*utility_menu.utility_association_editor",2,0,1}, {"Error Browser", "*utility_menu.utility_error_browser",2,0,1}, {"Extract Subsystems", "*utility_menu.utility_extract_subsystems",2,0,1}, {"Find Dormant Code", "*utility_menu.utility_find_dormant_code",2,0,1}, {"New Struct", "*utility_menu.utility_new_struct",2,0,1}, {"New Class", "*utility_menu.utility_new_class",2,0,1}, {"New Relation", "*utility_menu.utility_new_relation",2,0,1}, {"New Subsystem", "*utility_menu.utility_new_subsystem",2,0,1}, {"Journal", "*journal",1,0,1}, {"New Journal", "*journal_menu.journal_new_journal",2,0,1}, {"Insert Command", "*journal_menu.journal_insert_command",2,0,1}, {"Save Journal", "*journal_menu.journal_save_journal",2,0,1}, {"Save Journal As", "*journal_menu.journal_save_journal_as",2,0,1}, {"Execute", "*journal_menu.journal_execute_journal",2,0,1}, {"Debug", "*debug",1,0,1}, {"Break", "*debug_break",2,0,1}, {"Print Node", "*debug_print_selected_node",2,0,1}, {"Follow", "*debug_follow",2,0,1}, {"0", "*debug_follow_0",3,0,0}, {"1", "*debug_follow_1",3,0,0}, {"2", "*debug_follow_2",3,0,0}, {"3", "*debug_follow_3",3,0,0}, {"3", "*debug_follow_4",3,0,0}, {"5", "*debug_follow_5",3,0,0}, {"6", "*debug_follow_6",3,0,0}, {"7", "*debug_follow_7",3,0,0}, {"8", "*debug_follow_8",3,0,0}, {"9", "*debug_follow_9",3,0,0}, {"Print Tree", "*debug_print_selected_tree",2,0,1}, {"Start Metering", "*debug_start_metering",2,0,1}, {"Stop Metering", "*debug_stop_metering",2,0,1}, {"Suspend Metering", "*debug_suspend_metering",2,0,1}, {"Resume Metering", "*debug_resume_metering",2,0,1}, {"Edit Help Index", "*debug_edit_help_index",2,0,1}, {"Reset Help Index", "*debug_reset_help_index",2,0,1}, {"Enable Quickhelp", "*debug_enable_quickhelp",2,0,1}, {"Toggle Help Pathnames", "*debug_toggle_help_pathnames",2,0,1}, {"Clear All Selections", "*debug_clear_all_selections",2,0,1}, {"Help", "*help",1,0,1}, {"Topics", "*help_topics",2,0,1}, {"On Files", "*help_on_files",2,0,1}, {"On Projects", "*help_on_projects",2,0,1}, {"Index", "*help_index",2,0,1}, {"Directory List", "*file_browser*file_browser",1,0,0}, {"Horizontal Scrollbar", "*list*ListhScrollBar",2,0,0}, {"Vertical Scrollbar", "*list*ListvScrollBar",2,0,0}, {"List", "*list*directory",2,0,0}, {"Filter List", "*list*list_status",2,0,0}, {"Directory Editor", "*file_browser*gt_string_ed",1,0,0}, {"Filter Files", "*file_browser*file_browser*list_status",1,0,0}, {"Project Editor", "*project_browser*gt_string_ed",1,0,0}, // project browser --------------------------------------------------------------------- {"Browse", "*project_controls*browse",1,0,0}, {"Scan", "*project_controls*scan",1,0,0}, {"Up", "*project_buttons*up",1,0,0}, {"Reset", "*project_buttons*reset",1,0,0}, {"New Group", "*project_buttons*new_group",1,0,0}, {"Project List", "*project_browser*project_browser",1,0,0}, {"Vertical Scrollbar", "*hierarchy_mode*list*ListvScrollBar",2,0,0}, {"Horizontal Scrollbar", "*hierarchy_mode*list*ListhScrollBar",2,0,0}, {"List", "*hierarchy_mode*list*proj_list",2,0,0}, {"Filter List", "*hierarchy_mode*list*list_status",2,0,0}, {"Group", "*xref_query*list(1)",1,0,0}, {"Vertical Scrollbar", "*group_listSW*ListvScrollBar",2,0,1}, {"Horizontal Scrollbar", "*group_listSW*ListhScrollBar",2,0,1}, {"List", "*group_list",2,0,1}, {"Filter List", "*list_status",2,0,1}, {"Domain", "*xref_query*list(2)",1,0,0}, {"Vertical Scrollbar", "*domain_listSW*ListvScrollBar",2,0,1}, {"Horizontal Scrollbar", "*domain_listSW*ListhScrollBar",2,0,1}, {"List", "*domain_list",2,0,1}, {"Filter List", "*list_status",2,0,1}, {"Show", "*xref_query*list(3)",1,0,0}, {"Vertical Scrollbar", "*show_listSW*ListvScrollBar",2,0,1}, {"Horizontal Scrollbar", "*show_listSW*ListhScrollBar",2,0,1}, {"List", "*show_list",2,0,1}, {"Filter List", "*list_status",2,0,1}, {"Result", "*xref_query*list(4)",1,0,0}, {"Vertical Scrollbar", "*result_listSW*ListvScrollBar",2,0,1}, {"Horizontal Scrollbar", "*result_listSW*ListhScrollBar",2,0,1}, {"List", "*result_list",2,0,1}, {"Filter List", "*list_status",2,0,1}, /*------------------------- Viewer Shell ----------------------------- */ {"ViewerShell", "*ViewerShell",0,1,0}, // Dialogs : {"Assign Category", "*Single_Select_List_Name0",1, -1,0}, {"Category", "*name_text",2,0,0}, {"Select Category From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,1}, {"apply", "*apply",2,0,1}, {"cancel", "*cancel",2,0,1}, {"Assign Style", "*Single_Select_List_Name0",1, -1,0}, {"Style", "*name_text",2,0,0}, {"Select Style From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,1}, {"apply", "*apply",2,0,1}, {"cancel", "*cancel",2,0,1}, {"Change Arguments", "*Change_Propagator_popup",1, -1,1}, {"Objects To Operate", "*objForm",2,0,0}, {"Operation", "*Operation_cascadeBtn",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"List", "*operandList",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Declaration", "*object_data_field",3,0,0}, {"Objects To Update", "*propForm",2,0,0}, {"Propagate", "*Propagate_cascadeBtn",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"List", "*propList",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Value", "*propagation_data_field",3,0,0}, {"OK", "*ok",2,0,1}, {"Apply", "*apply",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Create Association", "*create_association_popup",1,-1,0}, {"Types", "*form.list(1)",2,0,0}, {"List", "*type_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Files", "*form.list(2)",2,0,0}, {"List", "*file_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Objects", "*form.list(3)",2,0,0}, {"List", "*object_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Name Editor", "*name",2,0,0}, {"Comment Editor", "*comment",2,0,0}, {"OK", "*ok",2,0,1}, {"Lock", "*lock",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Create Category", "*RTL_name_based_upon",1, -1,0}, {"Category", "*name_text",2,0,0}, {"Select style for the category", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Create Style", "*RTL_name_based_upon",1, -1,0}, {"Style", "*name_text",2,0,0}, {"Based Upon Style", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,1}, {"apply", "*apply",2,0,1}, {"cancel", "*cancel",2,0,1}, {"Debugger Executable", "*FileSelector",1, 0,1}, {"Filter", "*fsb_filter_text",2,0,1}, {"Directories", "*fsb_dir_listSW",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"List", "*fsb_dir_list",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Files", "*sb_listSW",2,0,1}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,1}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,1}, {"List", "*sb_list",3,0,1}, {"Filter List", "*list_status",3,0,1}, {"Command Line Arguments", "*file_arguments",2,0,0}, {"OK", "*OK",2,0,1}, {"Filter", "*Apply",2,0,1}, {"Cancel", "*Cancel",2,0,1}, {"Help", "*Help",2,0,1}, {"Delete", "*Change_Propagator_popup",1, -1,1}, {"Objects To Operate", "*objForm",2,0,0}, {"Operation", "*Operation_cascadeBtn",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"List", "*operandList",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Objects To Update", "*propForm",2,0,0}, {"Propagate", "*Propagate_cascadeBtn",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"List", "*propList",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"OK", "*ok",2,0,1}, {"Apply", "*apply",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Deassign Category", "*Single_Select_List_Name0",1, -1,0}, {"Category", "*name_text",2,0,0}, {"Select Category From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,1}, {"apply", "*apply",2,0,1}, {"cancel", "*cancel",2,0,1}, {"Deassign Style", "*Single_Select_List_Name0",1, -1,0}, {"Style", "*name_text",2,0,0}, {"Select Style From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Hide Category", "*RTL_multiple_select",1, -1,0}, {"Select category to turn off", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"appply", "*appply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Impact Analyzer", "*impact_analysis_popup",1, -1,0}, {"Files", "*form.list(1)",2,0,0}, {"List", "*file_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"To be changed", "*form.list(2)",2,0,0}, {"List", "*hard_object_rtl",3,0,0}, {"Horizontal Scrollbar", "*ListhScrollBar",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"Filter List", "*list_status",3,0,0}, {"Replace with", "*string_editor",2,0,0}, {"Ok", "*ok",2,0,0}, {"Local", "*local",2,0,0}, {"Load", "*load",2,0,0}, {"Lock", "*lock",2,0,0}, {"Show", "*show",2,0,0}, {"Cancel", "*cancel",2,0,0}, {"Modify Category", "*STE_style_to_cat",1, 0,0}, {"categories", "*form1",2,0,0}, {"Category Editor", "*cat_text",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*catList",3,0,0}, {"styles", "*form1",2,0,0}, {"Style Editor", "*style_text",3,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*styleList",3,0,0}, {"ok", "*ok",2,0,0}, {"appply", "*appply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Print View in Postscript", "*PROJ_View_Pref_popup",1,0,0}, {"File", "*file_toggle",2,0,1}, {"File Editor", "*filename",2,0,1}, {"Printer", "*printer_toggle",2,0,1}, {"Printer Editor", "*printername",2,0,1}, {"Compute Pages", "*compute_pages",2,0,1}, {"Fit to page", "*fit_to_page",2,0,1}, {"Landscape", "*ls_toggle",2,0,1}, {"Scale", "\0",2,0,1}, {"Rows", "*rows",2,0,1}, {"Columns", "*columns",2,0,1}, {"Letter", "*popup_std_paper_size_menu",2,0,1}, {"Custom", "*user_defined",3,0,1}, {"Letter", "*letter",3,0,1}, {"Legal", "*legal",3,0,1}, {"Ledger", "*ledger",3,0,1}, {"Inches", "*popup_units_menu",2,0,1}, {"Centimeters", "*Centimeters",3,0,1}, {"Inches", "*Inches",3,0,1}, {"Pixels", "*ps_pixels",3,0,1}, {"OK", "*ok",2,0,1}, {"Apply", "*appply",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, {"Question Popup", "*Question_popup",1,-1,0}, {"OK", "*Question*OK",2,0,0}, {"Cancel", "*Question*Cancel",2,0,0}, {"Help", "*Question*Help",2,0,1}, {"Remove Category", "*Single_Select_List_Name0",1, -1,0}, {"Category", "*name_text",2,0,0}, {"Select Category From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Remove Style", "*Single_Select_List_Name0",1, -1,0}, {"Style", "*name_text",2,0,0}, {"Select Style From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Search", "*quick_search_popup",1, -1,1}, {"Search Pattern", "*search_text",2,0,1}, {"Case Insentive", "*insensitive",2,0,1}, {"Find Any", "*toggle_reset",2,0,1}, {"Variable", "*vdecl",2,0,1}, {"Function", "*fdecl",2,0,1}, {"Parameter", "*pdecl",2,0,1}, {"Class/Struct", "*cdecl",2,0,1}, {"Enumeration", "*edecl",2,0,1}, {"Comment", "*comment",2,0,1}, {"Hard Association", "*hassoc",2,0,1}, {"Soft Association", "*sassoc",2,0,1}, {"First", "*next",2,0,1}, {"Last", "*prev",2,0,1}, {"Done ", "*done",2,0,1}, {"Help", "*help",2,0,1}, {"Select Category", "*RTL_multiple_select",1, -1,0}, {"Select Category to Highlight", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"appply", "*appply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Set Active Category", "*Single_Select_List_Name0",1, -1,0}, {"Category", "*name_text",2,0,0}, {"Select Category From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Show Category", "*RTL_multiple_select",1, -1,0}, {"Select category to turn on", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"appply", "*appply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Show Call Tree", "*Single_Select_List_Name0",1, -1,0}, {"Function", "*name_text",2,0,0}, {"Select Function From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"Unset Active Category", "*Single_Select_List_Name0",1, -1,0}, {"Category", "*name_text",2,0,0}, {"Select Category From", "*scrolledWindow1",2,0,0}, {"Vertical Scrollbar", "*ListvScrollBar",3,0,0}, {"List", "*scrolledList1",3,0,0}, {"ok", "*ok",2,0,0}, {"apply", "*apply",2,0,0}, {"cancel", "*cancel",2,0,0}, {"View Preferences", "*PROJ_View_Pref_popup",1, -1,1}, {"Magnification factor", "*scale_scrollbar",2,0,0}, {"OK", "*ok",2,0,1}, {"Apply", "*apply",2,0,1}, {"Cancel", "*cancel",2,0,1}, {"Help", "*help",2,0,1}, // Menus {"File", "*file",1,0,0}, {"Open Selected", "*file_menu.file_open",2,0,1}, {"Open ERD", "*file_menu.file_open_erd",2,0,1}, {"Open Data Chart", "*file_menu.file_open_dc",2,0,1}, {"Open Call Tree", "*file_menu.file_open_calltree",2,0,1}, {"Save", "*file_menu.file_save",2,0,1}, {"Save As", "*file_menu.file_save_as",2,0,1}, {"Save Window Setup", "*file_menu.file_save_btn_bar",2,0,1}, {"Close Current View", "*file_menu.file_close_view",2,0,1}, {"Print Current View", "*file_menu.file_print",2,0,1}, {"Close Window", "*file_menu.file_close_window",2,0,1}, {"Edit", "*edit",1,0,1}, {"Undo", "*edit_menu.edit_undo",2,0,1}, {"Cut", "*edit_menu.edit_cut",2,0,1}, {"Copy", "*edit_menu.edit_copy",2,0,1}, {"Paste", "*edit_menu.edit_paste",2,0,1}, {"Delete", "*edit_menu.edit_delete",2,0,1}, {"Reference", "*edit_menu.edit_refer",2,0,1}, {"Search", "*edit_menu.edit_search",2,0,1}, {"Replace", "*edit_menu.edit_replace",2,0,1}, {"Rename", "*edit_menu.edit_rename",2,0,1}, {"Change Arguments", "*edit_menu.edit_change_args",2,0,1}, {"Formatted", "*edit_menu.edit_formatted",2,0,1}, {"Unformatted", "*edit_menu.edit_unformatted",2,0,1}, {"Clear Selection", "*edit_menu.edit_clear_selection",2,0,1}, {"View", "*view",1,0,1}, {"Collapse", "*view_menu.view_collapse",2,0,1}, {"Expand", "*view_menu.view_expand",2,0,1}, {"Collapse To", "*view_menu.view_collapse_level",2,0,1}, {"1st Level", "*view_collapse_level_b1",3,0,0}, {"2nd Level", "*view_collapse_level_b2",3,0,0}, {"3rd Level", "*view_collapse_level_b3",3,0,0}, {"4th Level", "*view_collapse_level_b4",3,0,0}, {"5th Level", "*view_collapse_level_b5",3,0,0}, {"Expand To", "*view_menu.view_expand_level",2,0,1}, {"1st Level", "*view_expand_level_b1",3,0,0}, {"2nd Level", "*view_expand_level_b2",3,0,0}, {"3rd Level", "*view_expand_level_b3",3,0,0}, {"4th Level", "*view_expand_level_b4",3,0,0}, {"5th Level", "*view_expand_level_b5",3,0,0}, {"Zoom In", "*view_menu.view_magnify",2,0,1}, {"Zoom Out", "*view_menu.view_shrink",2,0,1}, {"Zoom To Fit", "*view_menu.view_zoomtofit",2,0,1}, {"Reset Zoom", "*view_menu.view_reset",2,0,1}, {"Split Viewer", "*view_menu.view_split",2,0,1}, {"Remove Viewer", "*view_menu.view_remove",2,0,1}, {"Show Mode Buttons", "*view_menu.view_mode_buttons",2,0,1}, {"Show Custom Buttons", "*view_menu.view_button_bar",2,0,1}, {"Decorate Source", "*view_menu.view_decorate_source",2,0,1}, {"View Preferences", "*view_menu.view_pref",2,0,1}, {"Annotation", "*annotation",1,0,1}, {"Note", "*annotation_menu.annotation_note",2,0,1}, {"Insert", "*annotation_note_menu.annotation_note_insert",3,0,0}, {"Edit", "*annotation_note_menu.annotation_note_edit",3,0,0}, {"Delete", "*annotation_note_menu.annotation_note_delete",3,0,0}, {"Delete All Nodes", "*annotation_menu.annotation_del_notes",2,0,1}, {"Next Mark", "*annotation_menu.annotation_next",2,0,1}, {"Previous Mark", "*annotation_menu.annotation_previous",2,0,1}, {"Traverse Marks", "*annotation_menu.annotation_traverse",2,0,1}, {"Search Hits", "*annotation_traverse_search_hits",3,0,0}, {"Items To Change", "*annotation_traverse_changes",3,0,0}, {"Execution Points", "*annotation_traverse_exec",3,0,0}, {"Breakpoints", "*annotation_traverse_brkpt",3,0,0}, {"Compiler Errors", "*annotation_traverse_errors",3,0,0}, {"Show Keywords", "*annotation_menu.annotation_show_keywords",2,0,1}, {"Edit Keywords", "*annotation_menu.annotation_edit_keywords",2,0,1}, {"Create Keywords", "*annotation_menu.annotation_create_keyword",2,0,1}, {"Create Indexed Words", "*annotation_menu.annotation_create_indexhit",2,0,1}, {"Link", "*link",1,0,1}, {"Hotlink", "*link_menu.link_hotlink",2,0,1}, {"Next Section", "*link_menu.link_next_section",2,0,1}, {"Previous Section", "*link_menu.link_previous_section",2,0,1}, {"Start Hotlink", "*link_menu.link_start_hotlink",2,0,1}, {"Start Section Link", "*link_menu.link_start_section_link",2,0,1}, {"Close Link", "*link_menu.link_close_link",2,0,1}, {"Remove Hyper Links", "*link_menu.link_remove_links",2,0,1}, {"Soft Associate", "*link_menu.link_soft_associate",2,0,1}, {"Hard Associate", "*link_menu.link_hard_associate",2,0,1}, {"Create Association", "*link_menu.link_user_associate",2,0,1}, {"Remove Hard Association", "*link_menu.link_remove_association",2,0,1}, {"Association Editor", "*link_menu.link_association_editor",2,0,1}, {"Debugger", "*debug",1,0,1}, {"Run with Arguments", "*debug_menu.debug_arguments",2,0,1}, {"Set Program", "*debug_menu.debug_executable",2,0,1}, {"Attach To Process", "*debug_menu.debug_attach",2,0,1}, {"Interpreted Functions", "*debug_menu.debug_interpret_functions",2,0,1}, {"Interpreted Files", "*debug_menu.debug_interpret_files",2,0,1}, {"Trace Interpreted Code", "*debug_trace_menu",2,0,1}, {"0", "*debug_trace_menu.debug_trace_0",3,0,0}, {"2", "*debug_trace_menu.debug_trace_2",3,0,0}, {"4", "*debug_trace_menu.debug_trace_4",3,0,0}, {"6", "*debug_trace_menu.debug_trace_6",3,0,0}, {"8", "*debug_trace_menu.debug_trace_8",3,0,0}, {"10", "*debug_trace_menu.debug_trace_10",3,0,0}, {"12", "*debug_trace_menu.debug_trace_12",3,0,0}, {"14", "*debug_trace_menu.debug_trace_14",3,0,0}, {"16", "*debug_trace_menu.debug_trace_16",3,0,0}, {"18", "*debug_trace_menu.debug_trace_18",3,0,0}, {"20", "*debug_trace_menu.debug_trace_20",3,0,0}, {"Breakpoints", "*debug_breakpoint_menu",2,0,1}, {"At Selection", "*debug_brkpt_at_selection",3,0,0}, {"In Function", "*debug_brkpt_in_function",3,0,0}, {"Show", "*debug_breakpoint_menu.debug_show_brkpts",3,0,0}, {"Remove All", "*debug_breakpoint_menu.debug_remove_brkpts",3,0,0}, {"Remove Selected", "*debug_breakpoint_menu.debug_remove_brkpt",3,0,0}, {"Enable Selected", "*debug_breakpoint_menu.debug_enable_brkpt",3,0,0}, {"Disable Selected", "*debug_breakpoint_menu.debug_disable_brkpt",3,0,0}, {"Watch Variables", "*debug_menu.debug_show_watchvars",2,0,0}, {"Kill Process", "*debug_menu.debug_kill",2,0,0}, {"Quit Debugger", "*debug_menu.debug_toggle",2,0,0}, {"Start Debugger", "*debug_menu.debug_toggle",2,0,0}, {"Help", "*help",1,0,1}, {"Topics", "*help_menu.help_general",2,0,1}, {"On Viewers", "*help_menu.help_on_viewershell",2,0,1}, {"Index", "*help_menu.help_index",2,0,1}, {"Category", "*Category",1,0,1}, {"Create", "*popup_Category_menu.Category_menu.Create",2,0,1}, {"Assign", "*popup_Category_menu.Category_menu.Assign",2,0,1}, {"De-assign", "*popup_Category_menu.Category_menu.De-assign",2,0,1}, {"Modify", "*popup_Category_menu.Category_menu.Modify",2,0,1}, {"Select", "*popup_Category_menu.Category_menu.Select",2,0,1}, {"Show", "*popup_Category_menu.Category_menu.Show",2,0,1}, {"Hide", "*popup_Category_menu.Category_menu.Hide",2,0,1}, {"Remove", "*popup_Category_menu.Category_menu.Remove",2,0,1}, {"Set Active", "*popup_Category_menu.Category_menu.Set Active",2,0,1}, {"Unset Active", "*popup_Category_menu.Category_menu.Unset Active",2,0,1}, {"Style", "*Style",1,0,1}, {"Create", "*Style_menu.Create",2,0,1}, {"Assign", "*Style_menu.Assign",2,0,1}, {"De-assign", "*Style_menu.De-assign",2,0,1}, {"Modify", "*Style_menu.Modify",2,0,1}, {"Remove", "*Style_menu.Remove",2,0,1}, {"Indentation", "*Style_menu.Indentation",2,0,1}, {"Indented", "*popup_submenu0.submenu0.Indented",3,0,0}, {"Exdented", "*popup_submenu0.submenu0.Exdented",3,0,0}, {"K & R Style", "*popup_submenu0.submenu0.K & R Style",3,0,0}, {"Insert", "*Insert",1,0,1}, {"Variable", "*Insert_menu.Variable",2,0,1}, {"Case", "*Insert_menu.Case",2,0,1}, {"Loop", "*Insert_menu.Loop",2,0,1}, {"If", "*Insert_menu.If",2,0,1}, {"Statement", "*Insert_menu.Statement",2,0,1}, {"Aliases", "*Aliases",1,0,1}, {"Highlighted", "*Aliases_menu.Highlighted",2,0,1}, {"All Nouns", "*Aliases_menu.All Nouns",2,0,1}, {"Created Class", "*Aliases_menu.Create Class",2,0,1}, {"General", "*General",1,0,1}, {"Highlight", "*General_menu.Highlight",2,0,1}, {"Character", "*popup_submenu0.submenu1.Character",3,0,1}, {"Word", "*popup_submenu0.submenu1.Word",3,0,1}, {"Title<->Paragraph", "*General_menu.Title<->Paragraph",2,0,1}, {"Show Marks", "*General_menu.Show Marks",2,0,1}, {"Display", "*Display",1,0,1}, {"Related Entities", "*Display_menu.Related Entities",2,0,0}, {"Members", "*Display_menu.Members",2,0,0}, {"Sort Members", "*Display_menu.Sort Members",2,0,0}, {"Expert Mode", "*Display_menu.Expert Mode",2,0,0}, {"Attributes", "*Display_menu(2).Attributes",2,0,0}, {"Operations", "*Display_menu(2).Operations",2,0,0}, {"Built-in Relations", "*Display_menu(2).Built-in Relations...",2,0,0}, {"Relations", "*Display_menu(2).Relations...",2,0,0}, {"Members", "*Display_menu(2).Members...",2,0,0}, {"Add Classes", "*Display_menu(2).Add Classes",2,0,0}, {"Add new class", "*Display_menu(2).Add new class",2,0,0}, {"Remove Class", "*Display_menu(2).Remove Class",2,0,0}, {"Select Related", "*Display_menu(3).Select Related...",2,0,0}, {"Select Contents", "*Display_menu(3).Select Contents...",2,0,0}, {"Sort Contents", "*Display_menu(3).Sort Contents...",2,0,0}, {"Select Related", "*Display_menu(4).Select Related...",2,0,0}, {"Select Contents", "*Display_menu(4).Select Contents...",2,0,0}, {"Sort Contents", "*Display_menu(4).Sort Contents...",2,0,0}, {"Attributes", "*Display_menu(5).Attributes",2,0,0}, {"Operations", "*Display_menu(5).Operations",2,0,0}, {"Built-in Relations", "*Display_menu(5).Built-in Relations...",2,0,0}, {"Relations", "*Display_menu(5).Relations...",2,0,0}, {"Members", "*Display_menu(5).Members...",2,0,0}, {"Add Structs", "*Display_menu(5).Add Structs",2,0,0}, {"Add New Struct", "*Display_menu(5).Add New Struct",2,0,0}, {"Remove Struct", "*Display_menu(5).Remove Struct",2,0,0}, {"Modify", "*Modify",1,0,1}, {"Change Attributes", "*Modify_menu.Change Attributes",2,0,1}, {"Add Member", "*Modify_menu.Add Member",2,0,1}, {"Add Superclass", "*Modify_menu.Add Superclass",2,0,1}, {"Add Subclass", "*Modify_menu.Add Subclass",2,0,1}, {"Add Relation", "*Modify_menu.Add Relation",2,0,1}, {"viewer", "*viewWindow.viewer",1,0,1}, {"Reparse", "*reparse_button",2,0,1}, {"Horizontal Scrollbar", "*HorizScrollBar",2,0,1}, {"Vertical Scrollbar", "*VertScrollBar",2,0,1}, {"View Options", "*viewOptionsPane",2,0,1}, {"view", "*viewArea",2,0,1}, {"Sash", "*viewWindow*sash",1,0,1}, // buttons ( customized ) {"Add", "*custom_buttons_controls.customize_mode",1,0,1}, {"Remove", "*custom_buttons_controls.remove_mode",1,0,1}, {"Normal", "*custom_buttons_controls.normal_mode",1,0,1}, {"Run", "*buttons_form*debug_run",1,0,1}, {"Step", "*buttons_form*debug_step",1,0,1}, {"Next", "*buttons_form*debug_next",1,0,1}, {"Continue", "*buttons_form*debug_continue",1,0,1}, {"Jump", "*buttons_form*debug_jump",1,0,1}, {"Finish", "*buttons_form*debug_finish",1,0,1}, {"Up", "*buttons_form*debug_up",1,0,1}, {"Down", "*buttons_form*debug_down",1,0,1}, {"Where", "*buttons_form*debug_where",1,0,1}, {"Halt", "*buttons_form*debug_halt",1,0,1}, {"Stop at", "*buttons_form*debug_stop_at",1,0,1}, {"Print", "*buttons_form*debug_print",1,0,1}, {"Search", "*buttons_form*hyper_search",1,0,1}, {"Back", "*buttons_form*hyper_back",1,0,1}, {"History", "*buttons_form*hyper_history",1,0,1}, {"Previous", "*buttons_form*hyper_previous",1,0,1}, {"Next", "*buttons_form*hyper_next",1,0,1}, {"Edit", "*modeButtonSlot.base_mode",1,0,1}, {"1:1", "*modeButtonSlot.relmode_1_1",1,0,1}, {"1:n", "*modeButtonSlot.relmode_1_many",1,0,1}, {"n:1", "*modeButtonSlot.relmode_many_1",1,0,1}, {"n:n", "*modeButtonSlot.relmode_many_many",1,0,1}, {"Thumb", "*panner_frame.Panner.thumb",1,0,1}, {"Status", "*status_line",1,0,1}, {"$END", "dummy",0,0} }; /* START-LOG------------------------------------------- $Log: cmd_menu_names.h $ Revision 1.2 1994/07/08 17:53:43EDT builder * Revision 1.40 1994/06/28 15:08:23 andrea * Bug track: 7456 * fixed some typos * * Revision 1.39 1993/03/24 00:55:57 sergey * Reflected recent UI changes. Added more dialogs. * * Revision 1.38 1993/02/02 20:25:52 sergey * Added more parent level flags. * * Revision 1.37 1993/01/29 22:08:13 sergey * Added more parent level control; some spelling corrections. * * Revision 1.36 1993/01/26 22:55:13 sergey * Added parent levels to more dialogs. * * Revision 1.35 1993/01/26 16:42:52 sergey * Modifed "Query" dialog according new UI, added "Print View..", changed "viewer" level. * * Revision 1.34 1993/01/25 15:43:09 sergey * Added a button to Define Relation; corrected Scan path in Browser. * * Revision 1.33 1993/01/22 01:29:28 sergey * Added 4 dialogs. * * Revision 1.32 1993/01/21 22:34:07 sergey * Corrected more dialogs; added a member data par_order to MenuNames class to deal * with the use of same names in different menus and dialogs. * * Revision 1.31 1993/01/21 00:41:10 sergey * More dialogs added and newest UI changes merged. * * Revision 1.30 1993/01/19 19:57:46 sergey * Added "Query", "Select Category", and "Extract Subsystem" dialogs; minor corrections. * * Revision 1.29 1993/01/18 23:02:18 sergey * Added "error" dialog. * * Revision 1.28 1993/01/18 22:02:14 sergey * Modified according to the UI changes; added "Put Message" and "Create Directory" dialogs. * * Revision 1.27 1993/01/16 00:21:04 sergey * Added more stuff; spelling correction. * * Revision 1.26 1993/01/15 16:21:37 oak * Reversed Category and Category Editor. * * Revision 1.25 1993/01/15 15:06:26 oak * Added new dialogs. * * Revision 1.24 1993/01/14 20:34:48 sergey * More stuff added; some errors corrected. * * Revision 1.23 1993/01/14 19:13:56 oak * Added some paths. * * Revision 1.22 1993/01/12 22:47:40 sergey * Made "project" and "Directory" lists look simillar. * * Revision 1.21 1993/01/12 19:27:03 sergey * More additions. * * Revision 1.20 1993/01/12 17:10:23 sergey * Spelling corrections; minor changes. * * Revision 1.19 1993/01/12 14:51:32 sergey * Spelling correction. * * Revision 1.18 1993/01/11 21:35:46 sergey * More dialogs added and some corrections made. * * Revision 1.17 1993/01/11 17:09:50 sergey * More modification to reflect new UI. * * Revision 1.16 1993/01/10 17:07:05 sergey * Added "messages" and more stuff; slightly rearranged. * * Revision 1.15 1993/01/07 22:32:21 oak * Fixed a small error with NULL. * * Revision 1.14 1993/01/07 22:11:00 oak * Changed buttons in browsershell to match * new interface. * * Revision 1.13 1993/01/07 21:49:26 sergey * Redone according to the new UI. * * Revision 1.12 1993/01/07 20:13:04 oak * Moved dialogs and made small changes to paths * as needed. * * Revision 1.11 1993/01/07 00:48:04 oak * Moved all dialogs out of the menu paths. * * Revision 1.10 1993/01/05 21:14:57 sergey * Added -1 flag data to distinguish dialog direct childs of aset. * * Revision 1.9 1993/01/04 21:10:24 sergey * Added level and flag fields to MenuName class and modified the init table accordingly. * * Revision 1.8 1992/12/29 22:42:34 sergey * Added more menu names and made minor corrections. * * Revision 1.7 1992/12/23 15:41:16 sergey * Added more stuff to the table and * everywhere. * * Revision 1.6 1992/12/22 22:34:25 sergey * Added more dialogs. * * Revision 1.5 1992/12/21 16:03:27 oak * Added some of the new ViewerShell widget paths. * * Revision 1.4 1992/12/18 23:39:58 sergey * More data added to the look up table. * * Revision 1.3 1992/12/18 19:30:26 sergey * *** empty log message *** * * Revision 1.2 1992/12/04 22:02:33 sergey * Added more menu/buttons names. * * Revision 1.1 1992/12/03 19:18:38 sergey * Initial revision * END-LOG--------------------------------------------- */
56.129291
131
0.39151
1092c5c22a164ee80ea6fa88d9a564a940ee523e
37,403
h
C
test/traces/a64/sim-pmul-16b-trace-a64.h
RSB4760/apq8016_external_vixl
dc661669ef2e2fd18c4e21333d6a12112b520436
[ "BSD-3-Clause" ]
94
2015-01-02T15:10:48.000Z
2022-02-13T02:33:09.000Z
test/traces/a64/sim-pmul-16b-trace-a64.h
RSB4760/apq8016_external_vixl
dc661669ef2e2fd18c4e21333d6a12112b520436
[ "BSD-3-Clause" ]
1
2016-01-12T12:10:06.000Z
2016-01-14T11:53:04.000Z
test/traces/a64/sim-pmul-16b-trace-a64.h
RSB4760/apq8016_external_vixl
dc661669ef2e2fd18c4e21333d6a12112b520436
[ "BSD-3-Clause" ]
25
2015-08-23T18:54:37.000Z
2022-01-14T01:40:59.000Z
// Copyright 2015, ARM Limited // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // * Neither the name of ARM Limited nor the names of its contributors may be // used to endorse or promote products derived from this software without // specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // --------------------------------------------------------------------- // This file is auto generated using tools/generate_simulator_traces.py. // // PLEASE DO NOT EDIT. // --------------------------------------------------------------------- #ifndef VIXL_SIM_PMUL_16B_TRACE_A64_H_ #define VIXL_SIM_PMUL_16B_TRACE_A64_H_ const uint8_t kExpected_NEON_pmul_16B[] = { 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x50, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x20, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x40, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xdc, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x58, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x50, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x56, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x54, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xa8, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0xab, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0xaa, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x55, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x00, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x00, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x00, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0x00, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x00, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0xfd, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xfe, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0xff, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x00, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x01, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0xf0, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0xfa, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0xfc, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0xfe, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0x00, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0x02, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0x04, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x00, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x00, 0xff, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x00, 0xfe, 0xfe, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0xfd, 0xfc, 0xf8, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0x00, 0xf8, 0xfa, 0xf0, 0x11, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0x00, 0xcc, 0xf0, 0xe8, 0x22, 0x33, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0x00, 0xaa, 0x98, 0xc0, 0x77, 0x66, 0x2b, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0x00, 0x83, 0x54, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x00, 0x82, 0x06, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x50, 0x14, 0x98, 0xd1, 0x54, 0xd5, 0x00, 0x81, 0x04, 0x18, 0x1e, 0x3c, 0x58, 0xd6, 0xaa, 0x80, 0x60, 0x88, 0x99, 0x56, 0x2a, 0x00, 0x80, 0x02, 0x10, 0xd5, 0x22, 0xdc, 0x50, 0x2b, 0x00, 0x7f, 0xc0, 0x77, 0x66, 0x2b, 0x00, 0x7f, 0x00, 0x08, 0xe6, 0x7f, 0x32, 0x88, 0xa8, 0x80, 0xfe, 0x7e, 0xe8, 0x22, 0x33, 0x00, 0x7e, 0xfe, 0x00, 0xb3, 0x2a, 0x07, 0xcc, 0x44, 0x00, 0x7d, 0xfc, 0x81, 0xf0, 0x11, 0x00, 0x7d, 0xfc, 0xf8, 0x80, 0xd5, 0x7a, 0x82, 0x66, 0x00, 0xf8, 0x7a, 0x02, 0x66, 0xf8, 0x00, 0x55, 0xfa, 0xf0, 0x91, 0x80, 0xfd, 0xfc, 0x01, 0x00, 0xcc, 0xf0, 0x87, 0xcc, 0x44, 0x00, 0x33, 0xaa, 0xe8, 0xa2, 0xb3, 0x80, 0x7e, 0x7e, 0x80, 0xaa, 0x98, 0x08, 0x32, 0x88, 0xa8, 0x08, 0x66, 0xa8, 0xf7, 0xe6, 0xab, 0x00, 0xff, 0x00, 0x03, 0x54, 0x54, 0x30, 0xdc, 0x50, 0xab, 0x10, 0x98, 0x0f, 0x19, 0xd6, 0x2a, 0x80, 0x80, 0x82, 0x86, 0xfe, 0x78, 0x20, 0x58, 0x56, 0xaa, 0x40, 0x05, 0x11, 0x51, 0x54, 0x55, 0x00, 0x01, 0x04, 0x05, 0x44, 0x50, 0x40, 0x51, 0x54, 0x55, }; const unsigned kExpectedCount_NEON_pmul_16B = 361; #endif // VIXL_SIM_PMUL_16B_TRACE_A64_H_
92.811414
97
0.656632
1095e8bc0b82968dd01230f5a37a1a53cbb47eac
1,387
h
C
logger/log_base.h
igorkorsukov/haw_logger
b2ffe44aa6eada2aab53400775ead406a6114971
[ "MIT" ]
1
2021-08-07T05:33:32.000Z
2021-08-07T05:33:32.000Z
logger/log_base.h
igorkorsukov/haw_logger
b2ffe44aa6eada2aab53400775ead406a6114971
[ "MIT" ]
null
null
null
logger/log_base.h
igorkorsukov/haw_logger
b2ffe44aa6eada2aab53400775ead406a6114971
[ "MIT" ]
null
null
null
#ifndef HAW_LOG_H #define HAW_LOG_H #include "helpful.h" #include "logger.h" #ifndef FUNC_INFO #if defined(_MSC_VER) #define FUNC_INFO __FUNCSIG__ #else #define FUNC_INFO __PRETTY_FUNCTION__ #endif #endif //! Format #define CLASSNAME(sig) haw::logger::Helpful::className(sig) #define FUNCNAME(sig) haw::logger::Helpful::methodName(sig) //! Log #ifndef LOG_TAG #define LOG_TAG CLASSNAME(FUNC_INFO) #endif #define IF_LOGLEVEL(level) if (haw::logger::Logger::instance()->isLevel(level)) #define LOG_STREAM(type, tag) haw::logger::LogInput(type, tag).stream() #define LOG(type, tag) LOG_STREAM(type, tag) << FUNCNAME(FUNC_INFO) << ": " #define LOGE() IF_LOGLEVEL(haw::logger::Normal) LOG(haw::logger::ERROR, LOG_TAG) #define LOGW() IF_LOGLEVEL(haw::logger::Normal) LOG(haw::logger::WARN, LOG_TAG) #define LOGI() IF_LOGLEVEL(haw::logger::Normal) LOG(haw::logger::INFO, LOG_TAG) #define LOGD() IF_LOGLEVEL(haw::logger::Debug) LOG(haw::logger::DEBUG, LOG_TAG) //! Helps #define DEPRECATED LOGD() << "This function deprecated!!"; #define DEPRECATED_USE(use) LOGD() << "This function deprecated!! Use:" << use; #define NOT_IMPLEMENTED LOGW() << "Not implemented!!"; #define NOT_IMPL_RETURN NOT_IMPLEMENTED return #define NOT_SUPPORTED LOGW() << "Not supported!!"; #define NOT_SUPPORTED_USE(use) LOGW() << "Not supported!! Use:" << use; #endif // HAW_LOG_H
31.522727
85
0.716655
3432eb13fee057599ca9e3ad3076f621d9a5fda1
171
h
C
ZZRSAEncryptorDemo/ZZRSAEncryptorDemo/ViewController.h
lishuzhi1121/ZZRSAEncryptor
08c5aad53b295af921a3f70035e5bdb8acfb446d
[ "MIT" ]
null
null
null
ZZRSAEncryptorDemo/ZZRSAEncryptorDemo/ViewController.h
lishuzhi1121/ZZRSAEncryptor
08c5aad53b295af921a3f70035e5bdb8acfb446d
[ "MIT" ]
null
null
null
ZZRSAEncryptorDemo/ZZRSAEncryptorDemo/ViewController.h
lishuzhi1121/ZZRSAEncryptor
08c5aad53b295af921a3f70035e5bdb8acfb446d
[ "MIT" ]
null
null
null
// // ViewController.h // ZZRSAEncryptorDemo // // Created by SandsLee on 2021/11/17. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
11.4
44
0.695906
c86148bf7d628650370700dfd7435a5236e35d6d
9,305
h
C
bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h
Tigerots/rt-thread
c95987e75772ebc6a6fdd0c19d12001aef810cb2
[ "Apache-2.0" ]
25
2020-07-06T23:11:13.000Z
2022-02-11T03:23:34.000Z
bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h
Tigerots/rt-thread
c95987e75772ebc6a6fdd0c19d12001aef810cb2
[ "Apache-2.0" ]
2
2019-09-23T01:59:04.000Z
2019-12-06T01:24:37.000Z
bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h
Tigerots/rt-thread
c95987e75772ebc6a6fdd0c19d12001aef810cb2
[ "Apache-2.0" ]
15
2020-07-09T03:06:13.000Z
2022-02-24T03:10:29.000Z
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-01-05 zylx first version * 2019-01-08 SummerGift clean up the code * 2019-12-01 armink add DMAMUX support */ #ifndef __DMA_CONFIG_H__ #define __DMA_CONFIG_H__ #include <rtthread.h> #ifdef __cplusplus extern "C" { #endif /* DMA1 channel1 */ /* DMA1 channel2 */ #if defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE) #define SPI1_DMA_RX_IRQHandler DMA1_Channel2_IRQHandler #define SPI1_RX_DMA_RCC RCC_AHB1ENR_DMA1EN #define SPI1_RX_DMA_INSTANCE DMA1_Channel2 #if defined(DMAMUX1) /* for L4+ */ #define SPI1_RX_DMA_REQUEST DMA_REQUEST_SPI1_RX #else /* for L4 */ #define SPI1_RX_DMA_REQUEST DMA_REQUEST_1 #endif /* DMAMUX1 */ #define SPI1_RX_DMA_IRQ DMA1_Channel2_IRQn #endif /* DMA1 channel3 */ #if defined(BSP_SPI1_TX_USING_DMA) && !defined(SPI1_TX_DMA_INSTANCE) #define SPI1_DMA_TX_IRQHandler DMA1_Channel3_IRQHandler #define SPI1_TX_DMA_RCC RCC_AHB1ENR_DMA1EN #define SPI1_TX_DMA_INSTANCE DMA1_Channel3 #if defined(DMAMUX1) /* for L4+ */ #define SPI1_TX_DMA_REQUEST DMA_REQUEST_SPI1_TX #else /* for L4 */ #define SPI1_TX_DMA_REQUEST DMA_REQUEST_1 #endif /* DMAMUX1 */ #define SPI1_TX_DMA_IRQ DMA1_Channel3_IRQn #elif defined(BSP_UART3_RX_USING_DMA) && !defined(UART3_RX_DMA_INSTANCE) #define UART3_DMA_RX_IRQHandler DMA1_Channel3_IRQHandler #define UART3_RX_DMA_RCC RCC_AHB1ENR_DMA1EN #define UART3_RX_DMA_INSTANCE DMA1_Channel3 #if defined(DMAMUX1) /* for L4+ */ #define UART3_RX_DMA_REQUEST DMA_REQUEST_USART3_RX #else /* for L4 */ #define UART3_RX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART3_RX_DMA_IRQ DMA1_Channel3_IRQn #endif /* DMA1 channel4 */ #if defined(BSP_UART1_TX_USING_DMA) && !defined(UART1_TX_DMA_INSTANCE) #define UART1_DMA_TX_IRQHandler DMA1_Channel4_IRQHandler #define UART1_TX_DMA_RCC RCC_AHB1ENR_DMA1EN #define UART1_TX_DMA_INSTANCE DMA1_Channel4 #if defined(DMAMUX1) /* for L4+ */ #define UART1_TX_DMA_REQUEST DMA_REQUEST_USART1_TX #else /* for L4 */ #define UART1_TX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART1_TX_DMA_IRQ DMA1_Channel4_IRQn #elif defined(BSP_SPI2_RX_USING_DMA) && !defined(SPI2_RX_DMA_INSTANCE) #define SPI2_DMA_RX_IRQHandler DMA1_Channel4_IRQHandler #define SPI2_RX_DMA_RCC RCC_AHB1ENR_DMA1EN #define SPI2_RX_DMA_INSTANCE DMA1_Channel4 #if defined(DMAMUX1) /* for L4+ */ #define SPI2_RX_DMA_REQUEST DMA_REQUEST_SPI2_RX #else /* for L4 */ #define SPI2_RX_DMA_REQUEST DMA_REQUEST_1 #endif /* DMAMUX1 */ #define SPI2_RX_DMA_IRQ DMA1_Channel4_IRQn #endif /* DMA1 channel5 */ #if defined(BSP_UART1_RX_USING_DMA) && !defined(UART1_RX_DMA_INSTANCE) #define UART1_DMA_RX_IRQHandler DMA1_Channel5_IRQHandler #define UART1_RX_DMA_RCC RCC_AHB1ENR_DMA1EN #define UART1_RX_DMA_INSTANCE DMA1_Channel5 #if defined(DMAMUX1) /* for L4+ */ #define UART1_RX_DMA_REQUEST DMA_REQUEST_USART1_RX #else /* for L4 */ #define UART1_RX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART1_RX_DMA_IRQ DMA1_Channel5_IRQn #elif defined(BSP_QSPI_USING_DMA) && !defined(QSPI_DMA_INSTANCE) #define QSPI_DMA_IRQHandler DMA1_Channel5_IRQHandler #define QSPI_DMA_RCC RCC_AHB1ENR_DMA1EN #define QSPI_DMA_INSTANCE DMA1_Channel5 #if defined(DMAMUX1) /* for L4+ */ #define QSPI_DMA_REQUEST DMA_REQUEST_OCTOSPI1 #else /* for L4 */ #define QSPI_DMA_REQUEST DMA_REQUEST_5 #endif /* DMAMUX1 */ #define QSPI_DMA_IRQ DMA1_Channel5_IRQn #elif defined(BSP_SPI2_TX_USING_DMA) && !defined(SPI2_TX_DMA_INSTANCE) #define SPI2_DMA_TX_IRQHandler DMA1_Channel5_IRQHandler #define SPI2_TX_DMA_RCC RCC_AHB1ENR_DMA1EN #define SPI2_TX_DMA_INSTANCE DMA1_Channel5 #if defined(DMAMUX1) /* for L4+ */ #define SPI2_TX_DMA_REQUEST DMA_REQUEST_SPI2_TX #else /* for L4 */ #define SPI2_TX_DMA_REQUEST DMA_REQUEST_1 #endif /* DMAMUX1 */ #define SPI2_TX_DMA_IRQ DMA1_Channel5_IRQn #endif /* DMA1 channel6 */ #if defined(BSP_UART2_RX_USING_DMA) && !defined(UART2_RX_DMA_INSTANCE) #define UART2_DMA_RX_IRQHandler DMA1_Channel6_IRQHandler #define UART2_RX_DMA_RCC RCC_AHB1ENR_DMA1EN #define UART2_RX_DMA_INSTANCE DMA1_Channel6 #if defined(DMAMUX1) /* for L4+ */ #define UART2_RX_DMA_REQUEST DMA_REQUEST_USART2_RX #else /* for L4 */ #define UART2_RX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART2_RX_DMA_IRQ DMA1_Channel6_IRQn #endif /* DMA1 channel7 */ /* DMA2 channel1 */ #if defined(BSP_UART5_TX_USING_DMA) && !defined(UART5_TX_DMA_INSTANCE) #define UART5_DMA_TX_IRQHandler DMA2_Channel1_IRQHandler #define UART5_TX_DMA_RCC RCC_AHB1ENR_DMA2EN #define UART5_TX_DMA_INSTANCE DMA2_Channel1 #if defined(DMAMUX1) /* for L4+ */ #define UART5_TX_DMA_REQUEST DMA_REQUEST_UART5_TX #else /* for L4 */ #define UART5_TX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART5_TX_DMA_IRQ DMA2_Channel1_IRQn #endif /* DMA2 channel2 */ #if defined(BSP_UART5_RX_USING_DMA) && !defined(UART5_RX_DMA_INSTANCE) #define UART5_DMA_RX_IRQHandler DMA2_Channel2_IRQHandler #define UART5_RX_DMA_RCC RCC_AHB1ENR_DMA2EN #define UART5_RX_DMA_INSTANCE DMA2_Channel2 #if defined(DMAMUX1) /* for L4+ */ #define UART5_RX_DMA_REQUEST DMA_REQUEST_UART5_RX #else /* for L4 */ #define UART5_RX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART5_RX_DMA_IRQ DMA2_Channel2_IRQn #endif /* DMA2 channel3 */ #if defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE) #define SPI1_DMA_RX_IRQHandler DMA2_Channel3_IRQHandler #define SPI1_RX_DMA_RCC RCC_AHB1ENR_DMA2EN #define SPI1_RX_DMA_INSTANCE DMA2_Channel3 #if defined(DMAMUX1) /* for L4+ */ #define SPI1_RX_DMA_REQUEST DMA_REQUEST_SPI1_RX #else /* for L4 */ #define SPI1_RX_DMA_REQUEST DMA_REQUEST_4 #endif /* DMAMUX1 */ #define SPI1_RX_DMA_IRQ DMA2_Channel3_IRQn #endif /* DMA2 channel4 */ #if defined(BSP_SPI1_TX_USING_DMA) && !defined(SPI1_TX_DMA_INSTANCE) #define SPI1_DMA_TX_IRQHandler DMA2_Channel4_IRQHandler #define SPI1_TX_DMA_RCC RCC_AHB1ENR_DMA2EN #define SPI1_TX_DMA_INSTANCE DMA2_Channel4 #if defined(DMAMUX1) /* for L4+ */ #define SPI1_TX_DMA_REQUEST DMA_REQUEST_SPI1_TX #else /* for L4 */ #define SPI1_TX_DMA_REQUEST DMA_REQUEST_4 #endif /* DMAMUX1 */ #define SPI1_TX_DMA_IRQ DMA2_Channel4_IRQn #endif /* DMA2 channel5 */ /* DMA2 channel6 */ #if defined(BSP_UART1_TX_USING_DMA) && !defined(UART1_TX_DMA_INSTANCE) #define UART1_DMA_TX_IRQHandler DMA2_Channel6_IRQHandler #define UART1_TX_DMA_RCC RCC_AHB1ENR_DMA2EN #define UART1_TX_DMA_INSTANCE DMA2_Channel6 #if defined(DMAMUX1) /* for L4+ */ #define UART1_TX_DMA_REQUEST DMA_REQUEST_USART1_TX #else /* for L4 */ #define UART1_TX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART1_TX_DMA_IRQ DMA2_Channel6_IRQn #endif /* DMA2 channel7 */ #if defined(BSP_UART1_RX_USING_DMA) && !defined(UART1_RX_DMA_INSTANCE) #define UART1_DMA_RX_IRQHandler DMA2_Channel7_IRQHandler #define UART1_RX_DMA_RCC RCC_AHB1ENR_DMA2EN #define UART1_RX_DMA_INSTANCE DMA2_Channel7 #if defined(DMAMUX1) /* for L4+ */ #define UART1_RX_DMA_REQUEST DMA_REQUEST_USART1_RX #else /* for L4 */ #define UART1_RX_DMA_REQUEST DMA_REQUEST_2 #endif /* DMAMUX1 */ #define UART1_RX_DMA_IRQ DMA2_Channel7_IRQn #elif defined(BSP_QSPI_USING_DMA) && !defined(QSPI_DMA_INSTANCE) #define QSPI_DMA_IRQHandler DMA2_Channel7_IRQHandler #define QSPI_DMA_RCC RCC_AHB1ENR_DMA2EN #define QSPI_DMA_INSTANCE DMA2_Channel7 #if defined(DMAMUX1) /* for L4+ */ #define QSPI_DMA_REQUEST DMA_REQUEST_OCTOSPI1 #else /* for L4 */ #define QSPI_DMA_REQUEST DMA_REQUEST_3 #endif /* DMAMUX1 */ #define QSPI_DMA_IRQ DMA2_Channel7_IRQn #elif defined(BSP_LPUART1_RX_USING_DMA) && !defined(LPUART1_RX_DMA_INSTANCE) #define LPUART1_DMA_RX_IRQHandler DMA2_Channel7_IRQHandler #define LPUART1_RX_DMA_RCC RCC_AHB1ENR_DMA2EN #define LPUART1_RX_DMA_INSTANCE DMA2_Channel7 #if defined(DMAMUX1) /* for L4+ */ #define LPUART1_RX_DMA_REQUEST DMA_REQUEST_LPUART1_RX #else /* for L4 */ #define LPUART1_RX_DMA_REQUEST DMA_REQUEST_4 #endif /* DMAMUX1 */ #define LPUART1_RX_DMA_IRQ DMA2_Channel7_IRQn #endif #ifdef __cplusplus } #endif #endif /* __DMA_CONFIG_H__ */
39.427966
76
0.70446
bd1f95d6bf6e0c5a8af11cf9ed244acb378d97c9
1,308
h
C
src/Drawing/Graph.h
tonyguo1987/FCND-Estimation-CPP
c539cd37515cf72eeec81ecf8bc7fb74e171dbff
[ "MIT" ]
18
2018-09-05T20:00:34.000Z
2021-08-19T06:05:49.000Z
src/Drawing/Graph.h
wuyou33/FCND-Term1-P4-3D-Estimation
571bf70119f2c1ec8583d345c0fcb4d592192106
[ "MIT" ]
4
2020-03-28T15:43:03.000Z
2020-04-03T15:19:53.000Z
src/Drawing/Graph.h
wuyou33/FCND-Term1-P4-3D-Estimation
571bf70119f2c1ec8583d345c0fcb4d592192106
[ "MIT" ]
22
2018-05-23T16:31:18.000Z
2021-09-22T04:12:09.000Z
#pragma once #include <vector> #include <map> using namespace std; #include "../Utility/FixedQueue.h" class QuadDynamics; class DataSource; class BaseAnalyzer; #define MAX_POINTS 10000 class Graph { public: Graph(const char* name); void Reset(); void Clear(); void Update(double time, std::vector<shared_ptr<DataSource> >& sources); void Draw(); void AddItem(string path); void AddItem(string path, vector<string> options); void AddSeries(string path, bool autoColor = true, V3F color = V3F(), vector<string> options=vector<string>()); void AddAbsThreshold(string path); void AddWindowThreshold(string path); void SetYAxis(string argsString); void AddSigmaThreshold(string path); bool IsSeriesPlotted(string path); void RemoveAllElements(); void SetTitle(string title) { _title = title; } void BeginLogToFile(); struct Series { Series(); V3F _color; string _yName, _legend; string _objName, _fieldName; FixedQueue<float> x; FixedQueue<float> y; bool noLegend, bold, negate; void Clear() { x.reset(); y.reset(); } }; vector<shared_ptr<BaseAnalyzer> > _analyzers; void DrawSeries(Series& s); vector<Series> _series; string _name; FILE* _logFile; float _graphYLow, _graphYHigh; string _title; };
20.4375
113
0.695719
bd62b2f0d3a27df3d36c51f31aae6fea0edaf6ac
1,788
h
C
util/Client.h
erikleitch/cpputil
6dbd4bdbaaa60d911d166b68fdad6af6afd04963
[ "MIT" ]
null
null
null
util/Client.h
erikleitch/cpputil
6dbd4bdbaaa60d911d166b68fdad6af6afd04963
[ "MIT" ]
null
null
null
util/Client.h
erikleitch/cpputil
6dbd4bdbaaa60d911d166b68fdad6af6afd04963
[ "MIT" ]
null
null
null
#ifndef GCP_UTIL_CLIENT_H #define GCP_UTIL_CLIENT_H /** * @file Client.h * * Tagged: Wed 01-Feb-06 10:43:27 * * @author Erik Leitch */ #include "gcp/util/FdSet.h" #include "gcp/util/NetDat.h" #include "gcp/util/NetHandler.h" #include "gcp/util/Runnable.h" #include "gcp/util/TcpClient.h" #include "gcp/util/TimeVal.h" namespace gcp { namespace util { class Client : public Runnable { public: /** * Constructor. */ Client(bool spawn, std::string host, unsigned connectPort, unsigned readBufSize=0, unsigned sendBufSize=0); /** * Destructor. */ virtual ~Client(); /** * Block in select */ void run(); void setReadBufSize(unsigned size); void setSendBufSize(unsigned size); protected: // Method called when data have been completely read from the server virtual void readServerData(NetHandler& handler) {}; // Send data to the server void sendServerData(NetDat& dat); TimeVal timeOut_; struct timeval* timeOutPtr_; protected: bool stop_; // The connection manager TcpClient tcp_; NetHandler handler_; FdSet fdSet_; void initMembers(std::string host, unsigned port, unsigned readBufSize, unsigned sendBufSize); // A run method to be called from pthread_start() static RUN_FN(runFn); static NET_READ_HANDLER(readHandler); static NET_SEND_HANDLER(sendHandler); static NET_ERROR_HANDLER(errHandler); void connect(); void disconnect(); virtual void reportError() {}; }; // End class Client } // End namespace util } // End namespace gcp #endif // End #ifndef GCP_UTIL_CLIENT_H
19.866667
74
0.621924
03935b2bec10ba5c258a155bdfcebf5712f04855
1,880
h
C
third_party/LLVM/lib/Target/SystemZ/SystemZRegisterInfo.h
fugu-helper/android_external_swiftshader
f74bf2ec77013b9241dc708f7f8615426c136ce6
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/LLVM/lib/Target/SystemZ/SystemZRegisterInfo.h
ddrmax/swiftshader-ex
2d975b5090e778857143c09c21aa24255f41e598
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/LLVM/lib/Target/SystemZ/SystemZRegisterInfo.h
ddrmax/swiftshader-ex
2d975b5090e778857143c09c21aa24255f41e598
[ "Apache-2.0" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
//===-- SystemZRegisterInfo.h - SystemZ Register Information ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file contains the SystemZ implementation of the TargetRegisterInfo class. // //===----------------------------------------------------------------------===// #ifndef SystemZREGISTERINFO_H #define SystemZREGISTERINFO_H #include "llvm/Target/TargetRegisterInfo.h" #define GET_REGINFO_HEADER #include "SystemZGenRegisterInfo.inc" namespace llvm { class SystemZSubtarget; class SystemZInstrInfo; class Type; struct SystemZRegisterInfo : public SystemZGenRegisterInfo { SystemZTargetMachine &TM; const SystemZInstrInfo &TII; SystemZRegisterInfo(SystemZTargetMachine &tm, const SystemZInstrInfo &tii); /// Code Generation virtual methods... const unsigned *getCalleeSavedRegs(const MachineFunction *MF = 0) const; BitVector getReservedRegs(const MachineFunction &MF) const; const TargetRegisterClass* getMatchingSuperRegClass(const TargetRegisterClass *A, const TargetRegisterClass *B, unsigned Idx) const; void eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const; void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, RegScavenger *RS = NULL) const; // Debug information queries. unsigned getFrameRegister(const MachineFunction &MF) const; // Exception handling queries. unsigned getEHExceptionRegister() const; unsigned getEHHandlerRegister() const; }; } // end namespace llvm #endif
30.819672
81
0.653191
ea99448a063daca4cbde4c45971d4d76abd4daf6
4,452
c
C
lib/asn1c/nr_rrc/RedirectedCarrierInfo-EUTRA.c
xu753x/free5GRAN
4483ef9db317f6e80692a4440a61943e67c82fbd
[ "Apache-2.0" ]
43
2021-01-04T06:58:36.000Z
2022-03-30T19:43:19.000Z
lib/asn1c/nr_rrc/RedirectedCarrierInfo-EUTRA.c
GuillaumeC1A/free5GRAN
f6624f22a301bfc354acfc46ec8b13457adf57f1
[ "Apache-2.0" ]
12
2021-01-15T10:48:42.000Z
2022-03-29T16:20:05.000Z
lib/asn1c/nr_rrc/RedirectedCarrierInfo-EUTRA.c
GuillaumeC1A/free5GRAN
f6624f22a301bfc354acfc46ec8b13457adf57f1
[ "Apache-2.0" ]
19
2021-01-08T12:09:06.000Z
2021-12-26T13:41:17.000Z
/* * Copyright 2020-2021 Telecom Paris Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * `asn1c -gen-PER -fcompound-names -findirect-choice -no-gen-example` */ #include "RedirectedCarrierInfo-EUTRA.h" /* * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ static asn_oer_constraints_t asn_OER_type_cnType_constr_3 CC_NOTUSED = { { 0, 0 }, -1}; static asn_per_constraints_t asn_PER_type_cnType_constr_3 CC_NOTUSED = { { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; static const asn_INTEGER_enum_map_t asn_MAP_cnType_value2enum_3[] = { { 0, 3, "epc" }, { 1, 6, "fiveGC" } }; static const unsigned int asn_MAP_cnType_enum2value_3[] = { 0, /* epc(0) */ 1 /* fiveGC(1) */ }; static const asn_INTEGER_specifics_t asn_SPC_cnType_specs_3 = { asn_MAP_cnType_value2enum_3, /* "tag" => N; sorted by tag */ asn_MAP_cnType_enum2value_3, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 0, /* Enumeration is not extensible */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; static const ber_tlv_tag_t asn_DEF_cnType_tags_3[] = { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_cnType_3 = { "cnType", "cnType", &asn_OP_NativeEnumerated, asn_DEF_cnType_tags_3, sizeof(asn_DEF_cnType_tags_3) /sizeof(asn_DEF_cnType_tags_3[0]) - 1, /* 1 */ asn_DEF_cnType_tags_3, /* Same as above */ sizeof(asn_DEF_cnType_tags_3) /sizeof(asn_DEF_cnType_tags_3[0]), /* 2 */ { &asn_OER_type_cnType_constr_3, &asn_PER_type_cnType_constr_3, NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ &asn_SPC_cnType_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_RedirectedCarrierInfo_EUTRA_1[] = { { ATF_NOFLAGS, 0, offsetof(struct RedirectedCarrierInfo_EUTRA, eutraFrequency), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ARFCN_ValueEUTRA, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "eutraFrequency" }, { ATF_POINTER, 1, offsetof(struct RedirectedCarrierInfo_EUTRA, cnType), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_cnType_3, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "cnType" }, }; static const int asn_MAP_RedirectedCarrierInfo_EUTRA_oms_1[] = { 1 }; static const ber_tlv_tag_t asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_RedirectedCarrierInfo_EUTRA_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eutraFrequency */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cnType */ }; asn_SEQUENCE_specifics_t asn_SPC_RedirectedCarrierInfo_EUTRA_specs_1 = { sizeof(struct RedirectedCarrierInfo_EUTRA), offsetof(struct RedirectedCarrierInfo_EUTRA, _asn_ctx), asn_MAP_RedirectedCarrierInfo_EUTRA_tag2el_1, 2, /* Count of tags in the map */ asn_MAP_RedirectedCarrierInfo_EUTRA_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_RedirectedCarrierInfo_EUTRA = { "RedirectedCarrierInfo-EUTRA", "RedirectedCarrierInfo-EUTRA", &asn_OP_SEQUENCE, asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1, sizeof(asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1) /sizeof(asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1[0]), /* 1 */ asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1, /* Same as above */ sizeof(asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1) /sizeof(asn_DEF_RedirectedCarrierInfo_EUTRA_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, asn_MBR_RedirectedCarrierInfo_EUTRA_1, 2, /* Elements count */ &asn_SPC_RedirectedCarrierInfo_EUTRA_specs_1 /* Additional specs */ };
36.195122
95
0.731132
eafc216202742b3d177a99332489b0a2ed7150f9
2,179
h
C
System/Library/Frameworks/AVFoundation.framework/AVAudioSessionMediaPlayerOnly.h
lechium/iPhoneOS_12.1.1_Headers
aac688b174273dfcbade13bab104461f463db772
[ "MIT" ]
12
2019-06-02T02:42:41.000Z
2021-04-13T07:22:20.000Z
System/Library/Frameworks/AVFoundation.framework/AVAudioSessionMediaPlayerOnly.h
lechium/iPhoneOS_12.1.1_Headers
aac688b174273dfcbade13bab104461f463db772
[ "MIT" ]
null
null
null
System/Library/Frameworks/AVFoundation.framework/AVAudioSessionMediaPlayerOnly.h
lechium/iPhoneOS_12.1.1_Headers
aac688b174273dfcbade13bab104461f463db772
[ "MIT" ]
3
2019-06-11T02:46:10.000Z
2019-12-21T14:58:16.000Z
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:43:22 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/AVFoundation.framework/AVFoundation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ @class AVAudioSessionMediaPlayerOnlyInternal, NSString; @interface AVAudioSessionMediaPlayerOnly : NSObject { AVAudioSessionMediaPlayerOnlyInternal* _audioSession; } @property (assign) id<AVAudioSessionDelegateMediaPlayerOnly> delegate; @property (readonly) NSString * category; @property (readonly) NSString * mode; @property (readonly) double preferredHardwareSampleRate; @property (readonly) double preferredIOBufferDuration; @property (readonly) BOOL inputIsAvailable; @property (readonly) double currentHardwareSampleRate; @property (readonly) long long currentHardwareInputNumberOfChannels; @property (readonly) long long currentHardwareOutputNumberOfChannels; @property (readonly) BOOL canEnterPIPMode; +(void)initialize; -(id)_weakReference; -(void)_attachToPlayer:(id)arg1 ; -(void)_addFPListeners; -(void)_removeFPListeners; -(BOOL)setActive:(BOOL)arg1 withFlags:(long long)arg2 error:(id*)arg3 ; -(BOOL)setUsingLongFormAudio:(BOOL)arg1 error:(id*)arg2 ; -(BOOL)setPreferredHardwareSampleRate:(double)arg1 error:(id*)arg2 ; -(BOOL)setPreferredIOBufferDuration:(double)arg1 error:(id*)arg2 ; -(double)preferredHardwareSampleRate; -(double)preferredIOBufferDuration; -(double)currentHardwareSampleRate; -(long long)currentHardwareInputNumberOfChannels; -(long long)currentHardwareOutputNumberOfChannels; -(BOOL)canEnterPIPMode; -(void)setApplicationAudioSession:(BOOL)arg1 ; -(BOOL)isApplicationAudioSession; -(BOOL)setCategory:(id)arg1 error:(id*)arg2 ; -(BOOL)setActivationContext:(id)arg1 error:(id*)arg2 ; -(BOOL)setActive:(BOOL)arg1 error:(id*)arg2 ; -(BOOL)setMode:(id)arg1 error:(id*)arg2 ; -(BOOL)inputIsAvailable; -(id)init; -(void)dealloc; -(void)setDelegate:(id<AVAudioSessionDelegateMediaPlayerOnly>)arg1 ; -(id<AVAudioSessionDelegateMediaPlayerOnly>)delegate; -(NSString *)mode; -(NSString *)category; @end
37.568966
81
0.796237
6c4415d399a98a80a98a7d7457dcbe48a060312d
445
h
C
WSB_Node.X/WSB.h
illini-motorsports/illini-motorsports
d3a89bf8de630343433a486cf4e013b8fcc178d2
[ "MIT" ]
11
2017-09-05T00:34:29.000Z
2021-06-16T20:24:39.000Z
WSB_Node.X/WSB.h
illini-motorsports/illini-motorsports
d3a89bf8de630343433a486cf4e013b8fcc178d2
[ "MIT" ]
4
2017-03-06T08:02:16.000Z
2018-09-10T12:29:40.000Z
WSB_Node.X/WSB.h
mass/illini-motorsports
d3a89bf8de630343433a486cf4e013b8fcc178d2
[ "MIT" ]
6
2015-09-22T00:39:31.000Z
2016-06-13T18:57:25.000Z
/** * WSB Header * * Processor: PIC32MZ2048EFM100 * Compiler: Microchip XC32 * Author: Ben Cross * Created: 2019-2020 */ #ifndef WSB_H #define WSB_H #include "../FSAE.X/CAN.h" #include "../FSAE.X/FSAE_ad7490.h" #include "../FSAE.X/FSAE_adc.h" #include "../FSAE.X/FSAE_can.h" #include "../FSAE.X/FSAE_config.h" #include "../FSAE.X/FSAE_max31855.h" #include "../FSAE.X/FSAE_spi.h" #include <sys/types.h> #endif /* WSB_H */
19.347826
36
0.642697
6c7a979310c29af8dba5f8d606296ea1d989c23b
1,488
h
C
src/data/datasets/datasetisoline.h
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
5
2016-03-17T07:02:11.000Z
2021-12-12T14:43:58.000Z
src/data/datasets/datasetisoline.h
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
null
null
null
src/data/datasets/datasetisoline.h
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
3
2015-10-29T15:21:01.000Z
2020-11-25T09:41:21.000Z
/* * datasetisoline.h * * Created on: 08.05.2014 * Author: Ralph */ #ifndef DATASETISOLINE_H_ #define DATASETISOLINE_H_ #include "dataset.h" class DatasetScalar; class DatasetIsoline : public Dataset { Q_OBJECT public: DatasetIsoline( DatasetScalar* ds, float isoValue = 0.0 ); virtual ~DatasetIsoline(); virtual void draw( QMatrix4x4 pMatrix, QMatrix4x4 mvMatrix, int width, int height, int renderMode, QString target ); std::vector<float>* getData(); QString getSaveFilter(); QString getDefaultSuffix(); private: std::vector<float> m_scalarField; bool m_dirty; GLuint vbo0; GLuint vbo1; GLuint vbo2; GLuint vbo3; int m_vertCountAxial; int m_vertCountCoronal; int m_vertCountSagittal; int m_stripeVertCountAxial; int m_stripeVertCountCoronal; int m_stripeVertCountSagittal; QColor m_color; float m_x; float m_y; float m_z; void initGeometry(); std::vector<float>extractAnatomyAxial( float z ); std::vector<float>extractAnatomySagittal( float x ); std::vector<float>extractAnatomyCoronal( float y ); int getId( int x, int y, int z ); private slots: void isoValueChanged(); void globalChanged(); void addGlyph( std::vector<float> &verts, std::vector<float> &colors, float x1, float y1, float z1, float x2, float y2, float z2 ); }; #endif /* DATASETISOLINE_H_ */
20.957746
136
0.655242
1e5e7c35f96c6def8643b8e71240bad22967b808
1,167
h
C
ResizableLib/ResizableState.h
tansoft/tan.h
3380b71b1ed4bf21d2da6fc5bbfc7ea6c4a127d1
[ "Apache-2.0" ]
1
2020-05-18T00:57:57.000Z
2020-05-18T00:57:57.000Z
oddgravitysdk/controls/TreePropSheetEx/ResizableState.h
mschulze46/PlaylistCreator
d1fb60c096eecb816f469754cada3e5c8901157b
[ "MIT" ]
1
2018-05-02T13:43:31.000Z
2018-05-02T13:43:31.000Z
oddgravitysdk/controls/TreePropSheetEx/ResizableState.h
mschulze46/PlaylistCreator
d1fb60c096eecb816f469754cada3e5c8901157b
[ "MIT" ]
3
2018-05-02T13:38:43.000Z
2021-05-19T10:48:49.000Z
// ResizableState.h: interface for the CResizableState class. // ///////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2000-2002 by Paolo Messina // (http://www.geocities.com/ppescher - ppescher@yahoo.com) // // The contents of this file are subject to the Artistic License (the "License"). // You may not use this file except in compliance with the License. // You may obtain a copy of the License at: // http://www.opensource.org/licenses/artistic-license.html // // If you find this code useful, credits would be nice! // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_RESIZABLESTATE_H__INCLUDED_) #define AFX_RESIZABLESTATE_H__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CResizableState { protected: // non-zero if successful BOOL LoadWindowRect(LPCTSTR pszSection, BOOL bRectOnly); BOOL SaveWindowRect(LPCTSTR pszSection, BOOL bRectOnly); virtual CWnd* GetResizableWnd() = 0; public: CResizableState(); virtual ~CResizableState(); }; #endif // !defined(AFX_RESIZABLESTATE_H__INCLUDED_)
29.923077
82
0.627249
5378ade1c2dc9b398998593db40d804b81073b4f
7,468
h
C
tools/encoder/src/FBXUtil.h
elix22/GPlayEngine
5b73da393ddfc30905dcaca678a62d642b7d8912
[ "Apache-2.0" ]
175
2018-06-26T04:40:00.000Z
2022-03-31T11:15:57.000Z
tools/encoder/src/FBXUtil.h
elix22/GPlayEngine
5b73da393ddfc30905dcaca678a62d642b7d8912
[ "Apache-2.0" ]
11
2018-07-07T14:58:21.000Z
2020-09-09T11:44:25.000Z
tools/encoder/src/FBXUtil.h
elix22/GPlayEngine
5b73da393ddfc30905dcaca678a62d642b7d8912
[ "Apache-2.0" ]
42
2018-07-23T10:05:27.000Z
2021-12-05T22:26:25.000Z
#ifndef ENCODER_FBXUTIL_H_ #define ENCODER_FBXUTIL_H_ #define FBXSDK_NEW_API #include <iostream> #include <list> #include <vector> #include <ctime> #ifdef WIN32 #pragma warning( disable : 4100 ) #pragma warning( disable : 4512 ) #endif #include <fbxsdk.h> #include "Base.h" #include "Vertex.h" #include "Animation.h" #include "AnimationChannel.h" #include "EncoderArguments.h" namespace gplayencoder { /** * Returns the aspect ratio from the given camera. * * @param fbxCamera The FBX camera to get the aspect ratio from. * * @return The aspect ratio from the camera. */ float getAspectRatio(FbxCamera* fbxCamera); /** * Returns the field of view Y from the given camera. * * @param fbxCamera The camera to get the fiew of view from. * * @return The field of view Y. */ float getFieldOfView(FbxCamera* fbxCamera); /** * Loads the texture coordinates from given mesh's polygon part into the vertex. * * @param fbxMesh The mesh to get the polygon from. * @param uvs The UV list to load tex coords from. * @param uvSetIndex The UV set index of the uvs. * @param polyIndex The index of the polygon in the mesh. * @param posInPoly The position of the vertex in the polygon. * @param meshVertexIndex The index of the vertex in the mesh. * @param vertex The vertex to copy the texture coordinates to. */ void loadTextureCoords(FbxMesh* fbxMesh, const FbxGeometryElementUV* uvs, int uvSetIndex, int polyIndex, int posInPoly, int meshVertexIndex, Vertex* vertex); /** * Loads the normal from the mesh and adds it to the given vertex. * * @param fbxMesh The mesh to get the polygon from. * @param vertexIndex The vertex index in the mesh. * @param controlPointIndex The control point index. * @param vertex The vertex to copy to. */ void loadNormal(FbxMesh* fbxMesh, int vertexIndex, int controlPointIndex, Vertex* vertex); /** * Loads the tangent from the mesh and adds it to the given vertex. * * @param fbxMesh The mesh to load from. * @param vertexIndex The index of the vertex within fbxMesh. * @param controlPointIndex The control point index. * @param vertex The vertex to copy to. */ void loadTangent(FbxMesh* fbxMesh, int vertexIndex, int controlPointIndex, Vertex* vertex); /** * Loads the binormal from the mesh and adds it to the given vertex. * * @param fbxMesh The mesh to load from. * @param vertexIndex The index of the vertex within fbxMesh. * @param controlPointIndex The control point index. * @param vertex The vertex to copy to. */ void loadBinormal(FbxMesh* fbxMesh, int vertexIndex, int controlPointIndex, Vertex* vertex); /** * Loads the vertex diffuse color from the mesh and adds it to the given vertex. * * @param fbxMesh The mesh to load from. * @param vertexIndex The index of the vertex within fbxMesh. * @param controlPointIndex The control point index. * @param vertex The vertex to copy to. */ void loadVertexColor(FbxMesh* fbxMesh, int vertexIndex, int controlPointIndex, Vertex* vertex); /** * Loads the blend weight and blend indices data into the vertex. * * @param vertexWeights List of vertex weights. The x member contains the blendIndices. The y member contains the blendWeights. * @param vertex The vertex to copy the blend data to. */ void loadBlendData(const std::vector<Vector2>& vertexWeights, Vertex* vertex); /** * Loads the blend weights and blend indices from the given mesh. * * Each element of weights is a list of Vector2s where "x" is the blend index and "y" is the blend weight. * * @param fbxMesh The mesh to load from. * @param weights List of blend weights and blend indices for each vertex. * * @return True if this mesh has a mesh skin, false otherwise. */ bool loadBlendWeights(FbxMesh* fbxMesh, std::vector<std::vector<Vector2> >& weights); /** * Copies from an FBX matrix to a float[16] array. */ void copyMatrix(const FbxMatrix& fbxMatrix, float* matrix); /** * Copies from an FBX matrix to a gameplay matrix. */ void copyMatrix(const FbxMatrix& fbxMatrix, Matrix& matrix); /** * Finds the min and max start time and stop time of the given animation curve. * * startTime is updated if the animation curve contains a start time that is less than startTime. * stopTime is updated if the animation curve contains a stop time that is greater than stopTime. * frameRate is updated if the animation curve contains a frame rate that is greater than frameRate. * * @param animCurve The animation curve to read from. * @param startTime The min start time. (in/out) * @param stopTime The max stop time. (in/out) * @param frameRate The frame rate. (in/out) */ void findMinMaxTime(FbxAnimCurve* animCurve, float* startTime, float* stopTime, float* frameRate); /** * Appends key frame data to the given node for the specified animation target attribute. * * @param fbxNode The node to get the matrix transform from. * @param channel The aniamtion channel to write values into. * @param time The time of the keyframe. * @param scale The evaluated scale for the keyframe. * @param rotation The evalulated rotation for the keyframe. * @param translation The evalulated translation for the keyframe. */ void appendKeyFrame(FbxNode* fbxNode, AnimationChannel* channel, float time, const Vector3& scale, const Quaternion& rotation, const Vector3& translation); /** * Decomposes the given node's matrix transform at the given time and copies to scale, rotation and translation. * * @param fbxNode The node to get the matrix transform from. * @param time The time to get the matrix transform from. * @param scale The scale to copy to. * @param rotation The rotation to copy to. * @param translation The translation to copy to. */ void decompose(FbxNode* fbxNode, float time, Vector3* scale, Quaternion* rotation, Vector3* translation); /** * Creates an animation channel that targets the given node and target attribute using the given key times and key values. * * @param fbxNode The node to target. * @param targetAttrib The attribute type to target. * @param keyTimes The key times for the animation channel. * @param keyValues The key values for the animation channel. * * @return The newly created animation channel. */ AnimationChannel* createAnimationChannel(FbxNode* fbxNode, unsigned int targetAttrib, const std::vector<float>& keyTimes, const std::vector<float>& keyValues); void addScaleChannel(Animation* animation, FbxNode* fbxNode, float startTime, float stopTime); void addTranslateChannel(Animation* animation, FbxNode* fbxNode, float startTime, float stopTime); /** * Determines if it is possible to automatically group animations for mesh skins. * * @param fbxScene The FBX scene to search. * * @return True if there is at least one mesh skin that has animations that can be grouped. */ bool isGroupAnimationPossible(FbxScene* fbxScene); bool isGroupAnimationPossible(FbxNode* fbxNode); bool isGroupAnimationPossible(FbxMesh* fbxMesh); bool isBlack(FbxDouble3& fbxDouble); /** * Recursively generates the tangents and binormals for all nodes that were specified in the command line arguments. */ void generateTangentsAndBinormals(FbxNode* fbxNode, const EncoderArguments& arguments); FbxAnimCurve* getCurve(FbxPropertyT<FbxDouble3>& prop, FbxAnimLayer* animLayer, const char* pChannel); std::string toString(const FbxDouble3& fbxDouble); std::string toString(const FbxDouble3& fbxDouble, double d); std::string toString(double value); } #endif
35.903846
159
0.74933
29cc1f1481362ce0ae954e84af47cf77aaee7dd3
522
h
C
ios/Pods/Headers/Public/@mauron85_react-native-background-geolocation/MAURDistanceFilterLocationProvider.h
mqtik/Fenix-Native
6a07ba34c459dd6045c050534b324c4b99719e04
[ "MIT" ]
null
null
null
ios/Pods/Headers/Public/@mauron85_react-native-background-geolocation/MAURDistanceFilterLocationProvider.h
mqtik/Fenix-Native
6a07ba34c459dd6045c050534b324c4b99719e04
[ "MIT" ]
null
null
null
ios/Pods/Headers/Public/@mauron85_react-native-background-geolocation/MAURDistanceFilterLocationProvider.h
mqtik/Fenix-Native
6a07ba34c459dd6045c050534b324c4b99719e04
[ "MIT" ]
null
null
null
// // MAURDistanceFilterLocationProvider.h // BackgroundGeolocation // // Created by Marian Hello on 14/09/2016. // Copyright © 2016 mauron85. All rights reserved. // #ifndef MAURDistanceFilterLocationProvider_h #define MAURDistanceFilterLocationProvider_h #import <CoreLocation/CoreLocation.h> #import "MAURAbstractLocationProvider.h" #import "MAURConfig.h" @interface MAURDistanceFilterLocationProvider : MAURAbstractLocationProvider<MAURLocationProvider> @end #endif /* MAURDistanceFilterLocationProvider_h */
24.857143
98
0.816092
f4ca999c1762618cc3822c334bed0547c7958b1e
1,178
c
C
Learn/Examples/ActivityBot/Follow with Ping.c
m-wrona/robot
8c21eb9770f077e37abd697e05d90dc51537c692
[ "MIT" ]
8
2018-03-12T04:52:28.000Z
2021-05-19T19:37:01.000Z
C_Code/SimpleIDE/Learn/Examples/Robots/ActivityBot/Follow with Ping.c
ROBO-BEV/BARISTO
0e87d79966efc111cc38c1a1cf22e2d8ee18c350
[ "CC-BY-3.0", "MIT" ]
5
2016-09-28T00:20:18.000Z
2016-11-15T13:55:52.000Z
C_Code/SimpleIDE/Learn/Examples/Robots/ActivityBot/Follow with Ping.c
ROBO-BEV/BARISTO
0e87d79966efc111cc38c1a1cf22e2d8ee18c350
[ "CC-BY-3.0", "MIT" ]
1
2018-01-30T09:43:36.000Z
2018-01-30T09:43:36.000Z
/* Follow with Ping.c Maintain a constant distance between ActivityBot and object. http://learn.parallax.com/activitybot/follow-objects-ultrasound */ #include "simpletools.h" // Include simpletools header #include "abdrive.h" // Include abdrive header #include "ping.h" // Include ping header int distance, setPoint, errorVal, kp, speed; // Navigation variables int main() // main function { setPoint = 32; // Desired cm distance kp = -10; // Proportional control drive_setRampStep(6); // 7 ticks/sec / 20 ms while(1) // main loop { distance = ping_cm(8); // Measure distance errorVal = setPoint - distance; // Calculate error speed = kp * errorVal; // Calculate correction speed if(speed > 128) speed = 128; // Limit top speed if(speed < -128) speed = -128; drive_rampStep(speed, speed); // Use result for following } }
33.657143
75
0.506791
6f2025e636696f7db467ddb9967a21d973500d96
1,638
h
C
include/3rdparty/msgpack/rpc/session_pool.h
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
31
2015-03-03T19:13:42.000Z
2020-09-03T08:11:56.000Z
include/3rdparty/msgpack/rpc/session_pool.h
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
1
2016-12-24T00:12:11.000Z
2016-12-24T00:12:11.000Z
include/3rdparty/msgpack/rpc/session_pool.h
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
8
2015-09-06T01:55:21.000Z
2021-12-20T02:16:13.000Z
// // msgpack::rpc::session_pool - MessagePack-RPC for C++ // // Copyright (C) 2009-2010 FURUHASHI Sadayuki // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #ifndef MSGPACK_RPC_SESSION_POOL_H__ #define MSGPACK_RPC_SESSION_POOL_H__ #include "session.h" #include "loop_util.h" #include "address.h" #include "transport.h" #include "impl_fwd.h" #include "types.h" #include "../mp/utilize.h" #include <string> namespace msgpack { namespace rpc { class session_pool : public loop_util<session_pool> { public: session_pool(loop lo = loop()); session_pool(const builder& b, loop lo = loop()); ~session_pool(); session get_session(const address& addr, unsigned int tm = 20); session get_session(const std::string& host, uint16_t port, unsigned int tm = 20) { return get_session(ip_address(host, port), tm); } const loop& get_loop() const; loop get_loop(); protected: session_pool(shared_session_pool pimpl); shared_session_pool m_pimpl; MP_UTILIZE; private: session_pool(const session_pool&); }; } // namespace rpc } // namespace msgpack #endif /* msgpack/rpc/session_pool.h */
25.2
82
0.723443
6fc1a4ee0ef4ec17fe25b879518db6180d3c303d
3,492
h
C
Source/HydraPlugin/Public/HydraControllerComponent.h
getnamo/hydra-ue4
480cf216613158e9903b8f0ca708600e3751565a
[ "MIT" ]
71
2015-01-03T14:26:12.000Z
2022-01-16T12:40:11.000Z
Source/HydraPlugin/Public/HydraControllerComponent.h
getnamo/hydra-ue4
480cf216613158e9903b8f0ca708600e3751565a
[ "MIT" ]
8
2015-11-20T21:33:37.000Z
2016-12-22T16:09:24.000Z
Source/HydraPlugin/Public/HydraControllerComponent.h
getnamo/hydra-ue4
480cf216613158e9903b8f0ca708600e3751565a
[ "MIT" ]
32
2015-01-20T04:44:57.000Z
2021-12-14T06:29:57.000Z
#pragma once #include "Components/ActorComponent.h" #include "HydraControllerData.h" #include "HydraControllerComponent.generated.h" //These macros cannot be multi-line or it will not compile DECLARE_DYNAMIC_MULTICAST_DELEGATE(FHydraPluggedInSignature); DECLARE_DYNAMIC_MULTICAST_DELEGATE(FHydraUnPluggedSignature); DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FHydraDockedSignature, const FHydraControllerData&, Controller); DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FHydraUnDockedSignature, const FHydraControllerData&, Controller); DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FHydraButtonPressedSignature, const FHydraControllerData&, Controller, EHydraControllerButton, button); DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FHydraButtonReleasedSignature, const FHydraControllerData&, Controller, EHydraControllerButton, button); DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FHydraJoystickMovedSignature, const FHydraControllerData&, Controller, FVector2D, movement); DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FHydraControllerMovedSignature, const FHydraControllerData&, Controller, FVector, Position, FRotator, Orientation); /** Optional Hydra specific component which receives hydra specific events and can query specific data. */ UCLASS(ClassGroup="Input Controller", meta=(BlueprintSpawnableComponent)) class HYDRAPLUGIN_API UHydraControllerComponent : public UActorComponent { GENERATED_UCLASS_BODY() public: //Assignable Events, used for fine-grained control //Buttons are relegated to input mapping, non-button features are available here UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraPluggedInSignature OnPluggedIn; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraUnPluggedSignature OnUnplugged; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraDockedSignature ControllerDocked; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraUnDockedSignature ControllerUndocked; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraButtonPressedSignature ButtonPressed; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraButtonReleasedSignature ButtonReleased; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraJoystickMovedSignature JoystickMoved; UPROPERTY(BlueprintAssignable, Category = "Hydra Events") FHydraControllerMovedSignature ControllerMoved; //Callable Blueprint functions - Need to be defined for direct access /** Check if the hydra is available/plugged in.*/ UFUNCTION(BlueprintCallable, Category = HydraFunctions) bool IsAvailable(); //** Get the latest available data given in a single frame. Valid Hand is Left or Right */ UFUNCTION(BlueprintCallable, Category = HydraFunctions) bool GetLatestFrameForHand(FHydraControllerData& OutControllerData, EHydraControllerHand hand = HYDRA_HAND_LEFT); // Set a manual offset, use this for manual calibration UFUNCTION(BlueprintCallable, Category = HydraFunctions) void SetBaseOffset(FVector Offset); // Use in-built calibration. Expects either a T-Pose. If offset is provided it will add the given offset to the final calibration. // For T-pose the function defaults to 40cm height. At 0,0,0 this will simply calibrate the zero position UFUNCTION(BlueprintCallable, Category = HydraFunctions) void Calibrate(FVector OffsetFromShoulderMidPoint = FVector(0,0,40)); protected: virtual void InitializeComponent() override; virtual void UninitializeComponent() override; };
45.350649
162
0.835911
6fef17b1654b4fdf91f58c06ab33d2f4fd842303
502
h
C
ios/versioned/sdk44/ExpoModulesCore/Protocols/ABI44_0_0EXModuleRegistryConsumer.h
zakharchenkoAndrii/expo
f6b009d204b9124d43df59b75eb6affc2f0ba5bd
[ "Apache-2.0", "MIT" ]
1
2022-01-18T23:59:15.000Z
2022-01-18T23:59:15.000Z
ios/versioned/sdk44/ExpoModulesCore/Protocols/ABI44_0_0EXModuleRegistryConsumer.h
zakharchenkoAndrii/expo
f6b009d204b9124d43df59b75eb6affc2f0ba5bd
[ "Apache-2.0", "MIT" ]
6
2020-08-06T12:31:23.000Z
2021-02-05T12:47:10.000Z
ios/versioned/sdk44/ExpoModulesCore/Protocols/ABI44_0_0EXModuleRegistryConsumer.h
zakharchenkoAndrii/expo
f6b009d204b9124d43df59b75eb6affc2f0ba5bd
[ "Apache-2.0", "MIT" ]
1
2022-02-26T00:51:21.000Z
2022-02-26T00:51:21.000Z
// Copyright © 2018 650 Industries. All rights reserved. #import <Foundation/Foundation.h> #import <ABI44_0_0ExpoModulesCore/ABI44_0_0EXModuleRegistry.h> // Implement this protocol in any module registered // in ABI44_0_0EXModuleRegistry to receive an instance of the module registry // when it's initialized (ready to provide references to other modules). @protocol ABI44_0_0EXModuleRegistryConsumer <NSObject> - (void)setModuleRegistry:(nonnull ABI44_0_0EXModuleRegistry *)moduleRegistry; @end
31.375
78
0.812749
a5e7e100784ed3291bc670d7c038223592b1c56a
1,958
h
C
protocols/FxParameterCreationAPI.h
shaojiankui/iOS10-Runtime-Headers
6b0d842bed0c52c2a7c1464087b3081af7e10c43
[ "MIT" ]
36
2016-04-20T04:19:04.000Z
2018-10-08T04:12:25.000Z
protocols/FxParameterCreationAPI.h
shaojiankui/iOS10-Runtime-Headers
6b0d842bed0c52c2a7c1464087b3081af7e10c43
[ "MIT" ]
null
null
null
protocols/FxParameterCreationAPI.h
shaojiankui/iOS10-Runtime-Headers
6b0d842bed0c52c2a7c1464087b3081af7e10c43
[ "MIT" ]
10
2016-06-16T02:40:44.000Z
2019-01-15T03:31:45.000Z
/* Generated by RuntimeBrowser. */ @protocol FxParameterCreationAPI @required - (bool)addAngleSliderWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultValue:(double)arg3 parameterMin:(double)arg4 parameterMax:(double)arg5 parmFlags:(unsigned int)arg6; - (bool)addColorParameterWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultRed:(double)arg3 defaultGreen:(double)arg4 defaultBlue:(double)arg5 defaultAlpha:(double)arg6 parmFlags:(unsigned int)arg7; - (bool)addColorParameterWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultRed:(double)arg3 defaultGreen:(double)arg4 defaultBlue:(double)arg5 parmFlags:(unsigned int)arg6; - (bool)addCustomParameterWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultValue:(id <NSCoding>)arg3 parmFlags:(unsigned int)arg4; - (bool)addFloatSliderWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultValue:(double)arg3 parameterMin:(double)arg4 parameterMax:(double)arg5 sliderMin:(double)arg6 sliderMax:(double)arg7 delta:(double)arg8 parmFlags:(unsigned int)arg9; - (bool)addImageReferenceWithName:(NSString *)arg1 parmId:(unsigned int)arg2 parmFlags:(unsigned int)arg3; - (bool)addIntSliderWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultValue:(int)arg3 parameterMin:(int)arg4 parameterMax:(int)arg5 sliderMin:(int)arg6 sliderMax:(int)arg7 delta:(int)arg8 parmFlags:(unsigned int)arg9; - (bool)addPointParameterWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultX:(double)arg3 defaultY:(double)arg4 parmFlags:(unsigned int)arg5; - (bool)addPopupMenuWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultValue:(unsigned int)arg3 menuEntries:(NSArray *)arg4 parmFlags:(unsigned int)arg5; - (bool)addToggleButtonWithName:(NSString *)arg1 parmId:(unsigned int)arg2 defaultValue:(bool)arg3 parmFlags:(unsigned int)arg4; - (bool)endParameterSubGroup; - (bool)startParameterSubGroup:(NSString *)arg1 parmId:(unsigned int)arg2 parmFlags:(unsigned int)arg3; @end
89
246
0.807457
a013214ec77f055d68578020e31d539dd16e89dc
2,741
h
C
cpp/CPP/FLIP.h
inversepixel/flip
60b81da20d19641197892cc7195cb70647eb7205
[ "MIT", "BSD-3-Clause" ]
241
2021-04-26T14:55:12.000Z
2022-03-31T12:42:08.000Z
cpp/CPP/FLIP.h
inversepixel/flip
60b81da20d19641197892cc7195cb70647eb7205
[ "MIT", "BSD-3-Clause" ]
5
2021-06-04T04:04:42.000Z
2022-01-27T10:45:56.000Z
cpp/CPP/FLIP.h
inversepixel/flip
60b81da20d19641197892cc7195cb70647eb7205
[ "MIT", "BSD-3-Clause" ]
20
2021-05-05T07:32:10.000Z
2022-02-28T22:34:02.000Z
/* * Copyright (c) 2020-2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * SPDX-FileCopyrightText: Copyright (c) 2020-2021 NVIDIA CORPORATION & AFFILIATES * SPDX-License-Identifier: BSD-3-Clause */ // Visualizing and Communicating Errors in Rendered Images // Ray Tracing Gems II, 2021, // by Pontus Andersson, Jim Nilsson, and Tomas Akenine-Moller. // Pointer to the chapter: https://research.nvidia.com/publication/2021-08_Visualizing-and-Communicating. // Visualizing Errors in Rendered High Dynamic Range Images // Eurographics 2021, // by Pontus Andersson, Jim Nilsson, Peter Shirley, and Tomas Akenine-Moller. // Pointer to the paper: https://research.nvidia.com/publication/2021-05_HDR-FLIP. // FLIP: A Difference Evaluator for Alternating Images // High Performance Graphics 2020, // by Pontus Andersson, Jim Nilsson, Tomas Akenine-Moller, // Magnus Oskarsson, Kalle Astrom, and Mark D. Fairchild. // Pointer to the paper: https://research.nvidia.com/publication/2020-07_FLIP. // Code by Pontus Andersson, Jim Nilsson, and Tomas Akenine-Moller. #pragma once #include "color.h" #include "image.h" #include "commandline.h" #include "filename.h" #include "pooling.h" #include "mapMagma.h" #include "mapViridis.h"
45.683333
105
0.770887
996612a9179bbc0a13788f0777abd88886d8a147
1,403
h
C
ArduinoSoftware/EMSSystem.h
nbso13/openEMSstim
e01006e0544acaa8540857c7f236dbe6746d2c2a
[ "MIT" ]
null
null
null
ArduinoSoftware/EMSSystem.h
nbso13/openEMSstim
e01006e0544acaa8540857c7f236dbe6746d2c2a
[ "MIT" ]
null
null
null
ArduinoSoftware/EMSSystem.h
nbso13/openEMSstim
e01006e0544acaa8540857c7f236dbe6746d2c2a
[ "MIT" ]
null
null
null
/** * ArduinoSoftware_Arduino_IDE * * Copyright 2016 by Tim Duente <tim.duente@hci.uni-hannover.de> * Copyright 2016 by Max Pfeiffer <max.pfeiffer@hci.uni-hannover.de> * * Licensed under "The MIT License (MIT) - military use of this product is forbidden - V 0.2". * Some rights reserved. See LICENSE. * * @license "The MIT License (MIT) - military use of this product is forbidden - V 0.2" * <https://bitbucket.org/MaxPfeiffer/letyourbodymove/wiki/Home/License> */ /* * EMSSystem.h * * Created on: 26.05.2014 * Author: Tim Duente */ #ifndef EMSSYSTEM_H_ #define EMSSYSTEM_H_ #include "EMSChannel.h" #include "Debug.h" #define ACTION 'G' #define CHANNEL 'C' #define INTENSITY 'I' #define TIME 'T' #define OPTION 'O' class EMSSystem { public: EMSSystem(uint8_t channels); virtual ~EMSSystem(); virtual void addChannelToSystem(EMSChannel *emsChannel); virtual void doCommand(String *command); void shutDown(); virtual uint8_t check(); static void start(); protected: virtual void doActionCommand(String *command); virtual void setOption(String *option); virtual bool getChannelAndValue(String *option, int *channel, int *value); virtual int getNextNumberOfString(String *command, uint8_t startIndex); private: EMSChannel **emsChannels; uint8_t maximum_channel_count; uint8_t current_channel_count; bool isInRange(int channel); }; #endif /* EMSSYSTEM_H_ */
24.189655
95
0.734854
3fd96b8bc1d8e17ec4a924440ef4942376f69bc1
2,557
h
C
Library/src/HTXML.h
bldcm/Libwww
ba230049bbf6246f9c055ddf9c1526fe98ae9a4f
[ "W3C-19980720" ]
1
2021-06-12T16:01:59.000Z
2021-06-12T16:01:59.000Z
Library/src/HTXML.h
bldcm/Libwww
ba230049bbf6246f9c055ddf9c1526fe98ae9a4f
[ "W3C-19980720" ]
null
null
null
Library/src/HTXML.h
bldcm/Libwww
ba230049bbf6246f9c055ddf9c1526fe98ae9a4f
[ "W3C-19980720" ]
3
2018-06-09T18:52:08.000Z
2020-09-25T14:19:59.000Z
/* W3C Sample Code Library libwww Expat XML Parser Wrapper ! Expat XML Parser Wrapper ! */ /* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */ /* This module is implemented by HTXML.c, and is a part of the W3C Sample Code Library. We use James Clark's expat XML parser which is very neat indeed. As the code doesn't come as a separate library, I included it in the libwww CVS code base where I compile is as two libraries: libxmltok.a and libxmlparse.a. See the external modules that libwww works with for details. Thanks so much to John Punin for writing this code! */ #ifndef HTXML_H #define HTXML_H #include "HTFormat.h" #include "HTStream.h" #ifdef HT_STRUCT_XML_STREAM #include "HTStruct.h" #include "SGML.h" #endif /* HT_STRUCT_XML_STREAM */ #include <xmlparse.h> /* . Libwww Stream Converter . This stream is a libwww converter which calls and creates a expat stream instance. In order to tell the application that a new stream instance has been created. */ extern HTConverter HTXML_new; /* . Callback Handler Announcing a new Expat Stream object . When a libwww to expat XML stream converter instance is created, the stream checks to see if there are any callbacks registered which should be notified about the new stream instance. If that is the case then this callback is called and a pointer to the XML parser passed along. The output stream is the target that was originally set for the request object before the request was issued. */ typedef void HTXMLCallback_new ( HTStream * me, HTRequest * request, HTFormat target_format, HTStream * target_stream, XML_Parser xmlparser, void * context); /* ( Register Creation notification Callback ) @@@Should be handled via XML names spaces@@@ */ extern BOOL HTXMLCallback_registerNew (HTXMLCallback_new *, void * context); /* . XML Expat Stream to Libwww Structured Stream . This is a stream that converts from the expat stream to a libwww structured stream. Again, the application can */ #ifdef HT_STRUCT_XML_STREAM extern BOOL HTXMLStructured_setHandlers( HTStream * me, XML_StartElementHandler start, XML_EndElementHandler end, XML_CharacterDataHandler char_data, XML_DefaultHandler def_handler); extern BOOL HTXMLStructured_setUserData (HTStream * me, void * user_data); extern HTStream * HTXMLStructured_new (const SGML_dtd * dtd, HTStructured * starget); #endif /* */ #endif /* @(#) $Id: HTXML.html,v 2.6 2001/08/30 11:36:41 kahan Exp $ */
21.669492
78
0.74736
3fe80c50e8502aa97299ab105054861d6dfbfa9d
10,149
h
C
src/choice.h
DouglasRMiles/QuProlog
798d86f87fb4372b8918ef582ef2f0fc0181af2d
[ "Apache-2.0" ]
5
2019-11-20T02:05:31.000Z
2022-01-06T18:59:16.000Z
src/choice.h
logicmoo/QuProlog
798d86f87fb4372b8918ef582ef2f0fc0181af2d
[ "Apache-2.0" ]
null
null
null
src/choice.h
logicmoo/QuProlog
798d86f87fb4372b8918ef582ef2f0fc0181af2d
[ "Apache-2.0" ]
2
2022-01-08T13:52:24.000Z
2022-03-07T17:41:37.000Z
// choice.h - Definition of a choice point. // // ##Copyright## // // Copyright 2000-2016 Peter Robinson (pjr@itee.uq.edu.au) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.00 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // ##Copyright## // // $Id: choice.h,v 1.10 2006/01/31 23:17:49 qp Exp $ #ifndef CHOICE_H #define CHOICE_H #include <iostream> #include "area_offsets.h" #include "code.h" #include "defs.h" #include "magic.h" #include "prolog_value.h" #include "qem_options.h" #include "record_stack.h" #include "thread_status.h" class Thread; // // Record the state of a heap and the trails when a choice point is created. // class HeapAndTrailsChoice { private: heapobject* heapTop; TrailLoc bindingTrailTop; TrailLoc otherTrailTop; public: // // Save the tops of the heap and the trails. // void save(heapobject* hloc, const TrailLoc btloc, const TrailLoc otloc) { heapTop = hloc; bindingTrailTop = btloc; otherTrailTop = otloc; } // // Restore the tops of the heap and the trails. // void restore(heapobject*& hloc, TrailLoc& btloc, TrailLoc& otloc) const { hloc = heapTop; btloc = bindingTrailTop; otloc = otherTrailTop; } heapobject* getSavedTop(void) { return(heapTop); } heapobject* getSavedTopAddr(void) { return(reinterpret_cast<heapobject*>(&heapTop)); } }; class Choice { public: ThreadStatus status; CodeLoc nextClause; CodeLoc continuationInstr; HeapAndTrailsChoice heapAndTrailsState; EnvLoc currentEnvironment; EnvLoc envStackTop; ChoiceLoc previousChoicePoint; ChoiceLoc cutPoint; word32 metaCounter; word32 objectCounter; word32 NumArgs; int timestamp; #ifdef WIN32 Object* X[1]; #else Object* X[1] __attribute__ ((aligned)); #endif public: // // Copy the current state of the thread into a choice point. // // inline void assign(Thread& th, // const word32 NumXRegs, // const EnvLoc TopEnv) // { // word32 i; // status = th.getStatus(); // continuationInstr = th.ContinuationInstr(); // th.saveHeapAndTrails(heapAndTrailsState); // envStackTop = TopEnv; // currentEnvironment = th.CurrentEnvironment(); // previousChoicePoint = th.CurrentChoicePoint(); // cutPoint = th.CutPoint(); // metaCounter = th.MetaCounter(); // objectCounter = th.ObjectCounter(); // NumArgs = NumXRegs; // for (i = 0; i < NumArgs; i++) // { // X[i] = th.XRegs()[i]; // } // } // // Restore the heap and name table back to the previous state // recorded in a choice point. // void restoreHeapNameTable(Thread& th) const; // // Restore the thread back to the previous state recorded in a // choice point. // void restore(Thread& th) const; // // Get the location of the next clause. // CodeLoc& getNextClause(void) { return(nextClause); } CodeLoc inspectNextClause(void) const { return nextClause; } // // Retrieve the old heap state. // HeapAndTrailsChoice& getHeapAndTrailsState(void) { return(heapAndTrailsState); } // // Check whether the specified environment is protected or // not. That is, check whether a choice point is created after // the environment. If it does, the environment is needed // after backtracking. // bool isEnvProtected(const EnvLoc env) const { return(env < envStackTop); } // // Fetch the current environment at the time when the choice // point was created. // EnvLoc currentEnv(void) const { return(currentEnvironment); } // // Get the location of previous choice point. // ChoiceLoc getPreviousChoice(void) const { return(previousChoicePoint); } // // Get the location of choice point where to cut back to. // ChoiceLoc getCutPoint(void) const { return(cutPoint); } // // Get the number of X registers being saved. // word32 getNumArgs(void) const { return(NumArgs); } // // Get an X register // Object* getXreg(word32 i) const { assert((i >= 0) && (i < NumArgs)); return(X[i]); } // // Get the address of an X register // heapobject* getXregAddr(word32 i) { assert((i >= 0) && (i < NumArgs)); return(reinterpret_cast<heapobject*>(X) + i); } // // Get the Top of the environment stack stored in the // choice point. // EnvLoc getEnvTop(void) const { return(envStackTop); } int getTimestamp() const { return timestamp; } void setTimestamp(int t) { timestamp = t; } // // Compare two choice points for ``equality''. This // is rough and ready and quite possibly unreliable. // bool operator==(const Choice& c) const { return(nextClause == c.nextClause && currentEnvironment == c.currentEnvironment && previousChoicePoint == c.previousChoicePoint && cutPoint == c.cutPoint && NumArgs == c.NumArgs); } bool operator!=(const Choice& c) const { return ! (*this == c); } }; class ChoiceStack : public RecordStack { friend class Trace; private: const Choice *inspectChoice(const ChoiceLoc index) const { return (const Choice *)(inspectAddr(index)); } // // Return the name of the area. // virtual const char *getAreaName(void) const { return("choice point stack"); } public: explicit ChoiceStack(word32 size) : RecordStack(size, size / 10) { fetchChoice(0)->envStackTop = 0; } // // Work out the size of a choice point. // word32 size(const word32 NumArgs) const { return(sizeof(Choice) + (NumArgs - 1) * sizeof(Object*)); } // // Fetch a choice point. // Choice *fetchChoice(const ChoiceLoc index) { return((Choice *)(fetchAddr(index))); } // // return the env stack top in the given choice point // EnvLoc getEnvTop(const ChoiceLoc loc) { return(fetchChoice(loc)->getEnvTop()); } // // Return the location of the first choice point in the stack. // ChoiceLoc firstChoice(void) const { return(0); } ChoiceLoc pushCP(word32 size) { return pushRecord(size); } // // Push a new choice point onto the stack. The current state of the // thread is saved in the choice point and the location of the // alternative is recorded. The pointer to the newly created choice // point is then returned. // If ChoiceLoc or StackLoc changes representation, then a bug may // occur if this is not changed. // // ChoiceLoc push(Thread& th, // const CodeLoc alternative, // const word32 NumXRegs); // // Pop the current choice point and return a pointer to previous // choice point. // ChoiceLoc pop(const ChoiceLoc loc) { ChoiceLoc previous; previous = fetchChoice(loc)->getPreviousChoice(); popRecord(); return(previous); } // // Upon failure, set the registers up for the execution of the next // alternative from a given choice point. // void getNextAlternative(Thread& th, const ChoiceLoc index); // // Backtrack to previous state specified by the choice point in 'loc'. // Restore the state to the CPU, reset all top of stack pointers, and // reclaim the space from the stacks. // void backtrackTo(Thread& th, const ChoiceLoc loc) { fetchChoice(loc)->restore(th); } // // Backtrack to the beginning of the choice stack. Only unwind the // heap and the name table. // void failToBeginning(Thread& th) { fetchChoice(firstChoice())->restoreHeapNameTable(th); } // // Bring the top of the stack down to the cut point. // void cut(const ChoiceLoc loc) { resetTopOfStack(loc, size(fetchChoice(loc)->getNumArgs())); } // // Retreive the field nextClause from a choice point. // CodeLoc& nextClause(const ChoiceLoc index) { return(fetchChoice(index)->getNextClause()); } // // Get the previous choice point up in the search path from a choice // point. // ChoiceLoc previousChoicePoint(const ChoiceLoc index) { return(fetchChoice(index)->getPreviousChoice()); } // // Retrieve the old heap state. // HeapAndTrailsChoice& getHeapAndTrailsState(const ChoiceLoc index) { return(fetchChoice(index)->getHeapAndTrailsState()); } // // Check the whether the specified environment is protected or not. // That is, check whether a choice point is created after the // environment. If it does, the environment is needed after // backtracking. // bool isEnvProtected(const ChoiceLoc index, const EnvLoc env) { return(fetchChoice(index)->isEnvProtected(env)); } // // Fetch the current environment at the time when the choice point was // created. // EnvLoc currentEnv(const ChoiceLoc index) { return(fetchChoice(index)->currentEnv()); } // // Save the area. // void save(ostream& strm) const { saveStack(strm, CHOICE_MAGIC_NUMBER); } // // Gets the cut point from the specified frame. // ChoiceLoc cutPoint(const ChoiceLoc index) { return(fetchChoice(index)->getCutPoint()); } // // Get the number of args // word32 getNumArgs(const ChoiceLoc index) { return(fetchChoice(index)->getNumArgs()); } // // Get an x register // Object* getXreg(const ChoiceLoc index, word32 i) { return(fetchChoice(index)->getXreg(i)); } // // Get an x register address // heapobject* getXregAddr(const ChoiceLoc index, word32 i) { return(fetchChoice(index)->getXregAddr(i)); } // // Restore the area. // void load(istream& strm) { loadStack(strm); } // // Debugging display // ostream& Display(ostream& strm, ChoiceLoc index, const size_t = 0) const; }; #endif // CHOICE_H
24.279904
76
0.658883
3f26c6c466e56b12fca0e32796085e4ac623d6e8
702
h
C
alvr/client/android/app/include/OVR_Packet.h
pyvelkov/ALVR
5ee91849b6275ca0522c86067872639af6b5c997
[ "BSD-3-Clause" ]
16
2019-09-11T10:40:19.000Z
2021-02-06T23:20:56.000Z
alvr/client/android/app/include/OVR_Packet.h
pyvelkov/ALVR
5ee91849b6275ca0522c86067872639af6b5c997
[ "BSD-3-Clause" ]
54
2021-01-14T07:16:55.000Z
2022-03-22T22:10:14.000Z
alvr/client/android/app/include/OVR_Packet.h
pyvelkov/ALVR
5ee91849b6275ca0522c86067872639af6b5c997
[ "BSD-3-Clause" ]
21
2019-08-28T19:40:25.000Z
2020-10-18T04:41:02.000Z
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! #ifndef OVR_PACKET_H #define OVR_PACKET_H #include "OVR_Platform_Defs.h" #include "OVR_SendPolicy.h" #include "OVR_Types.h" #include <stddef.h> typedef struct ovrPacket *ovrPacketHandle; OVRP_PUBLIC_FUNCTION(void) ovr_Packet_Free(const ovrPacketHandle obj); OVRP_PUBLIC_FUNCTION(const void *) ovr_Packet_GetBytes(const ovrPacketHandle obj); OVRP_PUBLIC_FUNCTION(ovrSendPolicy) ovr_Packet_GetSendPolicy(const ovrPacketHandle obj); OVRP_PUBLIC_FUNCTION(ovrID) ovr_Packet_GetSenderID(const ovrPacketHandle obj); OVRP_PUBLIC_FUNCTION(size_t) ovr_Packet_GetSize(const ovrPacketHandle obj); #endif
35.1
88
0.809117
590fe3931feadc448e3d7f67611efc4fd19793a4
596
h
C
Engine/src/Material.h
ProjectElon/Schwifty
b5d6dea791a44ce3bfc2d7a05903ec243e7a1ac2
[ "MIT" ]
2
2019-08-22T22:01:52.000Z
2019-10-05T22:37:26.000Z
Engine/src/Material.h
ProjectElon/Schwifty
b5d6dea791a44ce3bfc2d7a05903ec243e7a1ac2
[ "MIT" ]
null
null
null
Engine/src/Material.h
ProjectElon/Schwifty
b5d6dea791a44ce3bfc2d7a05903ec243e7a1ac2
[ "MIT" ]
null
null
null
#pragma once #include "Texture.h" #include "Shader.h" enum MaterialType : unsigned char { Diffuse, Specular, Normal, Count }; class Material { private: Texture* m_Textures[MaterialType::Count]; Shader* m_Shader; public: Material(); ~Material(); void Apply(); inline void SetTexture(const MaterialType& type, Texture* texture) { m_Textures[type] = texture; } inline void SetShader(Shader* shader) { m_Shader = shader;} inline const Texture* GetTexture(const MaterialType& type) const { return m_Textures[type]; } inline const Shader* GetShader() const { return m_Shader; } };
19.225806
100
0.724832
d9ec1b9d142448931f579ccfc0a49d3d428eed75
754
h
C
KidsTC/KidsTC/Business/Global/Map/MapLocateAnnotationTipView.h
zhpigh/KidsTC_Objective-C
ef095ae4d7fd7c3a69565ba5f0eb44f9e93e40b6
[ "MIT" ]
null
null
null
KidsTC/KidsTC/Business/Global/Map/MapLocateAnnotationTipView.h
zhpigh/KidsTC_Objective-C
ef095ae4d7fd7c3a69565ba5f0eb44f9e93e40b6
[ "MIT" ]
null
null
null
KidsTC/KidsTC/Business/Global/Map/MapLocateAnnotationTipView.h
zhpigh/KidsTC_Objective-C
ef095ae4d7fd7c3a69565ba5f0eb44f9e93e40b6
[ "MIT" ]
1
2018-09-18T07:26:36.000Z
2018-09-18T07:26:36.000Z
// // MapLocateAnnotationTipView.h // KidsTC // // Created by 詹平 on 16/7/24. // Copyright © 2016年 詹平. All rights reserved. // #import <UIKit/UIKit.h> typedef enum : NSUInteger { MapLocateAnnotationTipViewActionTypeCancle, MapLocateAnnotationTipViewActionTypeSure, } MapLocateAnnotationTipViewActionType; @class MapLocateAnnotationTipView; @protocol MapLocateAnnotationTipViewDelegate <NSObject> - (void)MapLocateAnnotationTipView:(MapLocateAnnotationTipView *)view actionType:(MapLocateAnnotationTipViewActionType)type; @end @protocol BMKAnnotation; @interface MapLocateAnnotationTipView : UIView @property (nonatomic, assign) id<BMKAnnotation> annotation; @property (nonatomic, weak) id<MapLocateAnnotationTipViewDelegate> deletate; @end
30.16
124
0.811671
ce77bef767305e771125e1377755e01a7861455e
2,159
h
C
header6.6.1/FunctionNewXml.h
CrackerCat/iWeChat
7b3dbc48090e2d60cb72417563c554777eded15f
[ "MIT" ]
1,694
2018-05-04T12:34:53.000Z
2022-03-23T10:33:46.000Z
header6.6.1/FunctionNewXml.h
CrackerCat/iWeChat
7b3dbc48090e2d60cb72417563c554777eded15f
[ "MIT" ]
6
2018-09-22T16:32:43.000Z
2020-04-20T02:10:19.000Z
header6.6.1/FunctionNewXml.h
CrackerCat/iWeChat
7b3dbc48090e2d60cb72417563c554777eded15f
[ "MIT" ]
236
2018-05-05T11:00:28.000Z
2022-03-09T03:57:28.000Z
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <objc/NSObject.h> #import "PBCoding-Protocol.h" @class NSString; @interface FunctionNewXml : NSObject <PBCoding> { unsigned int cmdid; unsigned int opType; unsigned int retryCount; unsigned int retryInterval; unsigned int reportid; unsigned int successkey; unsigned int failKey; unsigned int finalFailKey; unsigned int nextRetryTime; unsigned int createTime; unsigned long long version; NSString *functionMsgId; NSString *cgiName; NSString *cgiPath; NSString *customBuff; } + (void)initialize; @property(nonatomic) unsigned int createTime; // @synthesize createTime; @property(retain, nonatomic) NSString *customBuff; // @synthesize customBuff; @property(retain, nonatomic) NSString *cgiPath; // @synthesize cgiPath; @property(retain, nonatomic) NSString *cgiName; // @synthesize cgiName; @property(retain, nonatomic) NSString *functionMsgId; // @synthesize functionMsgId; @property(nonatomic) unsigned long long version; // @synthesize version; @property(nonatomic) unsigned int nextRetryTime; // @synthesize nextRetryTime; @property(nonatomic) unsigned int finalFailKey; // @synthesize finalFailKey; @property(nonatomic) unsigned int failKey; // @synthesize failKey; @property(nonatomic) unsigned int successkey; // @synthesize successkey; @property(nonatomic) unsigned int reportid; // @synthesize reportid; @property(nonatomic) unsigned int retryInterval; // @synthesize retryInterval; @property(nonatomic) unsigned int retryCount; // @synthesize retryCount; @property(nonatomic) unsigned int opType; // @synthesize opType; @property(nonatomic) unsigned int cmdid; // @synthesize cmdid; - (void).cxx_destruct; - (const map_490096f0 *)getValueTagIndexMap; - (id)getValueTypeTable; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
35.983333
90
0.754979
c0541276ba781bea6d5cf0e77e2aaaba5b64221e
117,874
h
C
imports/include/ivi.h
amstewart/grpc-device
7afa3b171576a988d47f512f5b50556364c729f2
[ "MIT" ]
24
2021-03-25T18:37:59.000Z
2022-03-03T16:33:56.000Z
imports/include/ivi.h
amstewart/grpc-device
7afa3b171576a988d47f512f5b50556364c729f2
[ "MIT" ]
129
2021-04-03T15:16:04.000Z
2022-03-25T21:48:18.000Z
imports/include/ivi.h
amstewart/grpc-device
7afa3b171576a988d47f512f5b50556364c729f2
[ "MIT" ]
24
2021-03-31T12:36:14.000Z
2022-02-25T03:01:25.000Z
/*============================================================================*/ /* I V I */ /*----------------------------------------------------------------------------*/ /* Copyright (c) 1998-2020 National Instruments. All Rights Reserved. */ /*----------------------------------------------------------------------------*/ /* */ /* Title: ivi.h */ /* Purpose: Declarations for the Interchangeable Virtual Instruments */ /* (IVI) Library. */ /* */ /*============================================================================*/ /* This is intentionally placed outside of the include guard so that customers * can include driver headers in any order, even if some drivers do not want to * include VISA headers and others do. */ #ifndef IVI_DO_NOT_INCLUDE_VISA_HEADERS #include "visa.h" #endif #ifndef IVI_HEADER #define IVI_HEADER #include "IviVisaType.h" #ifdef _CVI_ #pragma EnableLibraryRuntimeChecking #endif #ifdef __cplusplus extern "C" { #endif /* Define IVI development environment */ #ifdef _VI_INT64_UINT64_DEFINED #define _IVI_64BIT_ATTR_DEFINED_ #endif #ifndef IviDll #define IviDll #endif /*****************************************************************************/ /* Useful constants ======== */ /*****************************************************************************/ #define IVI_ENGINE_MAJOR_VERSION 20 #define IVI_ENGINE_MINOR_VERSION 0 #define IVI_VIREAL64_MAX 1.79769313486231570814527423732e+308 /* Maximum possible ViReal64 value */ #define IVI_VIREAL64_MAX_NEG (-IVI_VIREAL64_MAX) /* Maximum possible negative ViReal64 value */ /* Defined values for powerline frequency */ #define IVI_VAL_50_HERTZ 50.0 #define IVI_VAL_60_HERTZ 60.0 #define IVI_VAL_400_HERTZ 400.0 /* Defined values for I/O Session Type */ #define IVI_VAL_VISA_SESSION_TYPE "VISA" #define IVI_VAL_NI4882_SESSION_TYPE "NI-488.2" #define IVI_VAL_NIVXI_SESSION_TYPE "NI-VXI" #define IVI_VAL_NIDAQ_SESSION_TYPE "NI-DAQ" #define IVI_VAL_NISERIAL_SESSION_TYPE "NI-Serial" #define IVI_MAX_MESSAGE_LEN 255 #define IVI_MAX_MESSAGE_BUF_SIZE (IVI_MAX_MESSAGE_LEN + 1) #define IVI_VAL_NO_WAIT 0 #define IVI_VAL_WAIT_FOREVER IVI_VIREAL64_MAX /* Duplicated from visa.h to ensure that visa.h is not a required header file */ #ifndef VI_TMO_INFINITE #define VI_TMO_INFINITE (0xFFFFFFFFUL) #endif #ifndef VI_TMO_IMMEDIATE #define VI_TMO_IMMEDIATE (0L) #endif #define IVI_VAL_MAX_TIME_INFINITE VI_TMO_INFINITE #define IVI_VAL_MAX_TIME_IMMEDIATE VI_TMO_IMMEDIATE #define IVI_MAX_PATHNAME_LEN 260 /* includes nul byte */ #define IVI_MAX_DRIVENAME_LEN 3 /* includes nul byte */ #define IVI_MAX_DIRNAME_LEN 256 /* includes nul byte */ #define IVI_MAX_FILENAME_LEN 256 /* includes nul byte */ /* Duplicated from visa.h to ensure that visa.h is not a required header file */ #define VI_ERROR_ALLOC (_VI_ERROR+0x3FFF003CL) /*****************************************************************************/ #define IVI_VAL_TYPE_NORMAL 0 #define IVI_VAL_TYPE_NAN 1 #define IVI_VAL_TYPE_PINF 2 #define IVI_VAL_TYPE_NINF 3 #define IVI_VAL_NAN (*Ivi_GetPtrToSpecialViReal64Value(IVI_VAL_TYPE_NAN)) #define IVI_VAL_PINF (*Ivi_GetPtrToSpecialViReal64Value(IVI_VAL_TYPE_PINF)) #define IVI_VAL_NINF (*Ivi_GetPtrToSpecialViReal64Value(IVI_VAL_TYPE_NINF)) /*****************************************************************************/ /* Interchange Warning Codes: The Ivi_GetNextInterchangeWarning function */ /* returns these values to identify the type of interchangeability warning. */ /*****************************************************************************/ #define IVI_VAL_NOT_IN_USER_SPECIFIED_STATE 1 #define IVI_VAL_READ_ONLY_ATTR_SET_BY_USER 2 #define IVI_VAL_ATTR_SET_TO_INSTR_SPECIFIC_VALUE 3 #define IVI_VAL_FAILURE_APPLYING_UNUSED_EXTENSION_VALUE 4 #define IVI_VAL_CLASS_DEFINED_INTERCHANGE_WARNING 5 /*****************************************************************************/ #ifndef _VI_CONST_STRING_DEFINED typedef const ViChar * ViConstString; #define _VI_CONST_STRING_DEFINED #endif /*****************************************************************************/ /*= Typedefs and related constants for the range tables ======== */ /*****************************************************************************/ /* Defined values for the type of IviRangeTable */ #define IVI_VAL_DISCRETE 0 /* Discrete set - discreteOrMinValue, and cmdString (or cmdValue) fields used */ #define IVI_VAL_RANGED 1 /* Ranged value - discreteOrMinValue, maxValue, and cmdString (or cmdValue) fields used */ #define IVI_VAL_COERCED 2 /* Coerced value - discreteOrMinValue, maxValue, coercedValue, and cmdString (or cmdValue) fields used */ typedef struct /* IviRangeTable contains an array of IviRangeTableEntry structures */ { ViReal64 discreteOrMinValue; ViReal64 maxValue; ViReal64 coercedValue; ViString cmdString; /* optional */ ViInt32 cmdValue; /* optional */ } IviRangeTableEntry; #ifdef _IVI_64BIT_ATTR_DEFINED_ typedef struct /* IviRangeTable contains an array of IviRangeTableEntry structures */ { ViInt64 discreteOrMinValue; ViInt64 maxValue; ViInt64 coercedValue; ViString cmdString; /* optional */ ViInt32 cmdValue; /* optional */ } IviRangeTableEntryViInt64; #endif typedef struct { ViInt32 type; ViBoolean hasMin; ViBoolean hasMax; /* The hasMin and hasMax fields are used by the */ /* Ivi_GetAttrMinMaxViInt32 and Ivi_GetAttrMinMaxViReal64 functions */ /* to determine whether they can calculate the minimum and maximum */ /* values that the instrument implements for an attribute. */ /* They are NOT used to indicate the inclusion or exclusion of the */ /* boundary value in the range */ ViString customInfo; void* rangeValues; /* the end of rangeValues[] is marked by the entry */ /* IVI_RANGE_TABLE_LAST_ENTRY */ /* */ } IviRangeTable; typedef IviRangeTable* IviRangeTablePtr; typedef void* IviConfigStoreHandle; #define IVI_RANGE_TABLE_END_STRING ((ViString)(-1)) /* The value for the command string of the last entry in an IviRangeTable */ #define IVI_RANGE_TABLE_LAST_ENTRY VI_NULL, VI_NULL, VI_NULL, IVI_RANGE_TABLE_END_STRING, VI_NULL /* Marks the last entry in an IviRangeTable */ /*****************************************************************************/ /*= Typedefs for string-value tables. ========= */ /*****************************************************************************/ typedef struct { ViInt32 value; ViString string; } IviStringValueEntry; typedef IviStringValueEntry IviStringValueTable[]; /*****************************************************************************/ /*= Typedef and related constants for the IVI attribute flags. ========= */ /*= The flags determine how the attributes operate. ========= */ /*****************************************************************************/ typedef ViInt32 IviAttrFlags; #define IVI_VAL_NOT_SUPPORTED (1L << 0) /* attribute automatically returns IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED when Set/Get/Checked/Invalidated */ #define IVI_VAL_NOT_READABLE (1L << 1) /* attribute cannot be Got */ #define IVI_VAL_NOT_WRITABLE (1L << 2) /* attribute cannot be Set */ #define IVI_VAL_NOT_USER_READABLE (1L << 3) /* attribute cannot be Got by end-user */ #define IVI_VAL_NOT_USER_WRITABLE (1L << 4) /* attribute cannot be Set by end-user */ #define IVI_VAL_NEVER_CACHE (1L << 5) /* always write/read to set/get attribute, i.e., never use a cached value, regardless of the state of IVI_ATTR_CACHE */ #define IVI_VAL_ALWAYS_CACHE (1L << 6) /* specifies to always cache the value, regardless of the state of IVI_ATTR_CACHE */ #define IVI_VAL_NO_DEFERRED_UPDATE (1L << 7) /* always write the attribute immediately when it is set */ #define IVI_VAL_DONT_RETURN_DEFERRED_VALUE (1L << 8) /* don't return a set value that hasn't been updated to the instrument, return the instrument's current value */ #define IVI_VAL_FLUSH_ON_WRITE (1L << 9) /* send IVI_MSG_FLUSH to the BufferIOCallback (which by default calls viFlush) after the write callback */ #define IVI_VAL_MULTI_CHANNEL (1L << 10) /* specified when the attribute is added. If set, the attribute has a separate value for each channel */ #define IVI_VAL_COERCEABLE_ONLY_BY_INSTR (1L << 11) /* specifies that the instrument coerces the attribue value in a way that the driver cannot anticipate in software. Do NOT use this flag UNLESS ABSOLUTELY NECESSARY !!! */ #define IVI_VAL_WAIT_FOR_OPC_BEFORE_READS (1L << 12) /* specifies to wait for operation complete before reads */ #define IVI_VAL_WAIT_FOR_OPC_AFTER_WRITES (1L << 13) /* specifies to wait for operation complete after writes */ #define IVI_VAL_USE_CALLBACKS_FOR_SIMULATION (1L << 14) /* specifies to call the read and write callbacks even in simulation mode */ #define IVI_VAL_DONT_CHECK_STATUS (1L << 15) /* specifies to not call the checkStatus callback even when IVI_ATTR_QUERY_INSTR_STATUS is VI_TRUE */ #define IVI_VAL_HIDDEN (IVI_VAL_NOT_USER_READABLE | IVI_VAL_NOT_USER_WRITABLE) /*****************************************************************************/ /*= Constants for optionFlags argument to Set/Check/GetAttribute functions ==*/ /*****************************************************************************/ #define IVI_VAL_DIRECT_USER_CALL (1<<0) /* applies to Set/Check/Get; if 1, then: the IVI_VAL_NOT_USER_READABLE/WRITEABLE flags can apply, */ /* and the engine automatically checks status on a Set if IVI_ATTR_QUERY_INSTR_STATUS is TRUE and the attribute's IVI_VAL_DONT_CHECK_STATUS flag is 0 */ #define IVI_VAL_SET_CACHE_ONLY (1<<1) /* applies to Set only; if 1, then only the cached value is set and no instrument I/O is performed; */ /* use this when you set multiple instrument attributes with one I/O command; if you call Set calls with this flag, the update is never deferred */ #define IVI_VAL_DONT_MARK_AS_SET_BY_USER (1<<2) /* applies to Set only; if 0 (which is the typical case), then Ivi_AttributeWasSetByUser will return TRUE; important for interchangeability checking */ /*****************************************************************************/ /*= Constants for channels. ========= */ /*****************************************************************************/ #define IVI_VAL_ALL_CHANNELS "IVI_ALL_CHANNELS" /* special channel string */ #define IVI_VAL_ALL_INSTANCES IVI_VAL_ALL_CHANNELS /*****************************************************************************/ /*= Typedef for adding an attribute invalidation ========= */ /*****************************************************************************/ typedef struct { ViAttr attribute; ViBoolean allChannels; /* if nonzero, invalidate on all channels; */ /* otherwise, invalidate only on the channel */ /* which caused the invalidation to occur */ } IviInvalEntry; /*****************************************************************************/ /*= Typedef for getting list of logical names. ========= */ /*****************************************************************************/ typedef struct { ViString logicalName; ViBoolean fromFile; /* VI_TRUE if logical name was in configuration file; VI_FALSE if was from Ivi_DefineLogicalName */ } IviLogicalNameEntry; /*****************************************************************************/ /*= Typedef and related constants for data types. ======== */ /*****************************************************************************/ typedef ViInt32 IviValueType; #define IVI_VAL_INT32 1L #define IVI_VAL_INT64 2L #define IVI_VAL_REAL64 4L #define IVI_VAL_STRING 5L #define IVI_VAL_ADDR 10L #define IVI_VAL_SESSION 11L #define IVI_VAL_BOOLEAN 13L #define IVI_VAL_UNKNOWN_TYPE 14L /*****************************************************************************/ /*= Typedef and related constants for the callback types. ========= */ /*****************************************************************************/ typedef ViInt32 IviCallbackType; /* type used to identify which callback to set or get*/ #define IVI_VAL_READ_CALLBACK 1 #define IVI_VAL_WRITE_CALLBACK 2 #define IVI_VAL_COMPARE_CALLBACK 3 #define IVI_VAL_CHECK_CALLBACK 4 #define IVI_VAL_COERCE_CALLBACK 5 #define IVI_VAL_RANGE_TABLE_CALLBACK 6 /*****************************************************************************/ /*= Constants for the Ivi_ReadToFile function. ========= */ /*****************************************************************************/ /* fileAction */ #define IVI_VAL_TRUNCATE 1 #define IVI_VAL_APPEND 2 /*****************************************************************************/ /*= Constants for the Ivi_PerformClassInterchangeCheck function. === */ /*****************************************************************************/ /* IVI Class API */ #define IVI_VAL_CLASS_API_DCPWR 1 #define IVI_VAL_CLASS_API_DMM 2 #define IVI_VAL_CLASS_API_FGEN 3 #define IVI_VAL_CLASS_API_SCOPE 4 #define IVI_VAL_CLASS_API_SWTCH 5 /*****************************************************************************/ /*= Error constants ========= */ /*****************************************************************************/ #define IVI_STATUS_CODE_BASE 0x3FFA0000L #define IVI_WARN_BASE (IVI_STATUS_CODE_BASE) #define IVI_CROSS_CLASS_WARN_BASE (IVI_WARN_BASE + 0x1000) #define IVI_CLASS_WARN_BASE (IVI_WARN_BASE + 0x2000) #define IVI_SPECIFIC_WARN_BASE (IVI_WARN_BASE + 0x4000) #define IVI_MAX_SPECIFIC_WARN_CODE (IVI_WARN_BASE + 0x7FFF) #define IVI_NI_WARN_BASE (IVI_WARN_BASE + 0x6000) #define IVI_ERROR_BASE (_VI_ERROR + IVI_STATUS_CODE_BASE) #define IVI_CROSS_CLASS_ERROR_BASE (IVI_ERROR_BASE + 0x1000) #define IVI_CLASS_ERROR_BASE (IVI_ERROR_BASE + 0x2000) #define IVI_SPECIFIC_ERROR_BASE (IVI_ERROR_BASE + 0x4000) #define IVI_MAX_SPECIFIC_ERROR_CODE (IVI_ERROR_BASE + 0x7FFF) #define IVI_NI_ERROR_BASE (IVI_ERROR_BASE + 0x6000) #define IVI_SHARED_COMPONENT_ERROR_BASE (IVI_ERROR_BASE + 0x1000) /* IVI Foundation defined warnings */ #define IVI_WARN_NSUP_ID_QUERY (IVI_WARN_BASE + 0x65) #define IVI_WARN_NSUP_RESET (IVI_WARN_BASE + 0x66) #define IVI_WARN_NSUP_SELF_TEST (IVI_WARN_BASE + 0x67) #define IVI_WARN_NSUP_ERROR_QUERY (IVI_WARN_BASE + 0x68) #define IVI_WARN_NSUP_REV_QUERY (IVI_WARN_BASE + 0x69) /* IVI Foundation defined errors */ #define IVI_ERROR_CANNOT_RECOVER (IVI_ERROR_BASE + 0x00) #define IVI_ERROR_INSTRUMENT_STATUS (IVI_ERROR_BASE + 0x01) #define IVI_ERROR_CANNOT_OPEN_FILE (IVI_ERROR_BASE + 0x02) #define IVI_ERROR_READING_FILE (IVI_ERROR_BASE + 0x03) #define IVI_ERROR_WRITING_FILE (IVI_ERROR_BASE + 0x04) #define IVI_ERROR_INVALID_PATHNAME (IVI_ERROR_BASE + 0x0B) #define IVI_ERROR_INVALID_ATTRIBUTE (IVI_ERROR_BASE + 0x0C) #define IVI_ERROR_IVI_ATTR_NOT_WRITABLE (IVI_ERROR_BASE + 0x0D) #define IVI_ERROR_IVI_ATTR_NOT_READABLE (IVI_ERROR_BASE + 0x0E) #define IVI_ERROR_INVALID_VALUE (IVI_ERROR_BASE + 0x10) #define IVI_ERROR_FUNCTION_NOT_SUPPORTED (IVI_ERROR_BASE + 0x11) #define IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED (IVI_ERROR_BASE + 0x12) #define IVI_ERROR_VALUE_NOT_SUPPORTED (IVI_ERROR_BASE + 0x13) #define IVI_ERROR_TYPES_DO_NOT_MATCH (IVI_ERROR_BASE + 0x15) #define IVI_ERROR_NOT_INITIALIZED (IVI_ERROR_BASE + 0x1D) #define IVI_ERROR_UNKNOWN_CHANNEL_NAME (IVI_ERROR_BASE + 0x20) #define IVI_ERROR_TOO_MANY_OPEN_FILES (IVI_ERROR_BASE + 0x23) #define IVI_ERROR_CHANNEL_NAME_REQUIRED (IVI_ERROR_BASE + 0x44) #define IVI_ERROR_CHANNEL_NAME_NOT_ALLOWED (IVI_ERROR_BASE + 0x45) #define IVI_ERROR_MISSING_OPTION_NAME (IVI_ERROR_BASE + 0x49) #define IVI_ERROR_MISSING_OPTION_VALUE (IVI_ERROR_BASE + 0x4A) #define IVI_ERROR_BAD_OPTION_NAME (IVI_ERROR_BASE + 0x4B) #define IVI_ERROR_BAD_OPTION_VALUE (IVI_ERROR_BASE + 0x4C) #define IVI_ERROR_OUT_OF_MEMORY (IVI_ERROR_BASE + 0x56) #define IVI_ERROR_OPERATION_PENDING (IVI_ERROR_BASE + 0x57) #define IVI_ERROR_NULL_POINTER (IVI_ERROR_BASE + 0x58) #define IVI_ERROR_UNEXPECTED_RESPONSE (IVI_ERROR_BASE + 0x59) #define IVI_ERROR_FILE_NOT_FOUND (IVI_ERROR_BASE + 0x5B) #define IVI_ERROR_INVALID_FILE_FORMAT (IVI_ERROR_BASE + 0x5C) #define IVI_ERROR_STATUS_NOT_AVAILABLE (IVI_ERROR_BASE + 0x5D) #define IVI_ERROR_ID_QUERY_FAILED (IVI_ERROR_BASE + 0x5E) #define IVI_ERROR_RESET_FAILED (IVI_ERROR_BASE + 0x5F) #define IVI_ERROR_RESOURCE_UNKNOWN (IVI_ERROR_BASE + 0x60) #define IVI_ERROR_CANNOT_CHANGE_SIMULATION_STATE (IVI_ERROR_BASE + 0x62) #define IVI_ERROR_INVALID_NUMBER_OF_LEVELS_IN_SELECTOR (IVI_ERROR_BASE + 0x63) #define IVI_ERROR_INVALID_RANGE_IN_SELECTOR (IVI_ERROR_BASE + 0x64) #define IVI_ERROR_UNKOWN_NAME_IN_SELECTOR (IVI_ERROR_BASE + 0x65) #define IVI_ERROR_BADLY_FORMED_SELECTOR (IVI_ERROR_BASE + 0x66) #define IVI_ERROR_UNKNOWN_PHYSICAL_IDENTIFIER (IVI_ERROR_BASE + 0x67) /* IVI Foundation reserved (grandfathered) errors */ #define IVI_ERROR_DRIVER_MODULE_NOT_FOUND (IVI_ERROR_BASE + 0x05) #define IVI_ERROR_CANNOT_OPEN_DRIVER_MODULE (IVI_ERROR_BASE + 0x06) #define IVI_ERROR_INVALID_DRIVER_MODULE (IVI_ERROR_BASE + 0x07) #define IVI_ERROR_UNDEFINED_REFERENCES (IVI_ERROR_BASE + 0x08) #define IVI_ERROR_FUNCTION_NOT_FOUND (IVI_ERROR_BASE + 0x09) #define IVI_ERROR_LOADING_DRIVER_MODULE (IVI_ERROR_BASE + 0x0A) #define IVI_ERROR_INVALID_PARAMETER (IVI_ERROR_BASE + 0x0F) #define IVI_ERROR_INVALID_TYPE (IVI_ERROR_BASE + 0x14) #define IVI_ERROR_MULTIPLE_DEFERRED_SETTING (IVI_ERROR_BASE + 0x16) #define IVI_ERROR_ITEM_ALREADY_EXISTS (IVI_ERROR_BASE + 0x17) #define IVI_ERROR_INVALID_CONFIGURATION (IVI_ERROR_BASE + 0x18) #define IVI_ERROR_VALUE_NOT_AVAILABLE (IVI_ERROR_BASE + 0x19) #define IVI_ERROR_ATTRIBUTE_VALUE_NOT_KNOWN (IVI_ERROR_BASE + 0x1A) #define IVI_ERROR_NO_RANGE_TABLE (IVI_ERROR_BASE + 0x1B) #define IVI_ERROR_INVALID_RANGE_TABLE (IVI_ERROR_BASE + 0x1C) #define IVI_ERROR_NON_INTERCHANGEABLE_BEHAVIOR (IVI_ERROR_BASE + 0x1E) #define IVI_ERROR_NO_CHANNEL_TABLE (IVI_ERROR_BASE + 0x1F) #define IVI_ERROR_SYS_RSRC_ALLOC (IVI_ERROR_BASE + 0x21) #define IVI_ERROR_ACCESS_DENIED (IVI_ERROR_BASE + 0x22) #define IVI_ERROR_UNABLE_TO_CREATE_TEMP_FILE (IVI_ERROR_BASE + 0x24) #define IVI_ERROR_NO_UNUSED_TEMP_FILENAMES (IVI_ERROR_BASE + 0x25) #define IVI_ERROR_DISK_FULL (IVI_ERROR_BASE + 0x26) #define IVI_ERROR_CONFIG_FILE_NOT_FOUND (IVI_ERROR_BASE + 0x27) #define IVI_ERROR_CANNOT_OPEN_CONFIG_FILE (IVI_ERROR_BASE + 0x28) #define IVI_ERROR_ERROR_READING_CONFIG_FILE (IVI_ERROR_BASE + 0x29) #define IVI_ERROR_BAD_INTEGER_IN_CONFIG_FILE (IVI_ERROR_BASE + 0x2A) #define IVI_ERROR_BAD_DOUBLE_IN_CONFIG_FILE (IVI_ERROR_BASE + 0x2B) #define IVI_ERROR_BAD_BOOLEAN_IN_CONFIG_FILE (IVI_ERROR_BASE + 0x2C) #define IVI_ERROR_CONFIG_ENTRY_NOT_FOUND (IVI_ERROR_BASE + 0x2D) #define IVI_ERROR_DRIVER_DLL_INIT_FAILED (IVI_ERROR_BASE + 0x2E) #define IVI_ERROR_DRIVER_UNRESOLVED_SYMBOL (IVI_ERROR_BASE + 0x2F) #define IVI_ERROR_CANNOT_FIND_CVI_RTE (IVI_ERROR_BASE + 0x30) #define IVI_ERROR_CANNOT_OPEN_CVI_RTE (IVI_ERROR_BASE + 0x31) #define IVI_ERROR_CVI_RTE_INVALID_FORMAT (IVI_ERROR_BASE + 0x32) #define IVI_ERROR_CVI_RTE_MISSING_FUNCTION (IVI_ERROR_BASE + 0x33) #define IVI_ERROR_CVI_RTE_INIT_FAILED (IVI_ERROR_BASE + 0x34) #define IVI_ERROR_CVI_RTE_UNRESOLVED_SYMBOL (IVI_ERROR_BASE + 0x35) #define IVI_ERROR_LOADING_CVI_RTE (IVI_ERROR_BASE + 0x36) #define IVI_ERROR_CANNOT_OPEN_DLL_FOR_EXPORTS (IVI_ERROR_BASE + 0x37) #define IVI_ERROR_DLL_CORRUPTED (IVI_ERROR_BASE + 0x38) #define IVI_ERROR_NO_DLL_EXPORT_TABLE (IVI_ERROR_BASE + 0x39) #define IVI_ERROR_UNKNOWN_DEFAULT_SETUP_ATTR (IVI_ERROR_BASE + 0x3A) #define IVI_ERROR_INVALID_DEFAULT_SETUP_VAL (IVI_ERROR_BASE + 0x3B) #define IVI_ERROR_UNKNOWN_MEMORY_PTR (IVI_ERROR_BASE + 0x3C) #define IVI_ERROR_EMPTY_CHANNEL_LIST (IVI_ERROR_BASE + 0x3D) #define IVI_ERROR_DUPLICATE_CHANNEL_STRING (IVI_ERROR_BASE + 0x3E) #define IVI_ERROR_DUPLICATE_VIRT_CHAN_NAME (IVI_ERROR_BASE + 0x3F) #define IVI_ERROR_MISSING_VIRT_CHAN_NAME (IVI_ERROR_BASE + 0x40) #define IVI_ERROR_BAD_VIRT_CHAN_NAME (IVI_ERROR_BASE + 0x41) #define IVI_ERROR_UNASSIGNED_VIRT_CHAN_NAME (IVI_ERROR_BASE + 0x42) #define IVI_ERROR_BAD_VIRT_CHAN_ASSIGNMENT (IVI_ERROR_BASE + 0x43) #define IVI_ERROR_ATTR_NOT_VALID_FOR_CHANNEL (IVI_ERROR_BASE + 0x46) #define IVI_ERROR_ATTR_MUST_BE_CHANNEL_BASED (IVI_ERROR_BASE + 0x47) #define IVI_ERROR_CHANNEL_ALREADY_EXCLUDED (IVI_ERROR_BASE + 0x48) #define IVI_ERROR_NOT_CREATED_BY_CLASS (IVI_ERROR_BASE + 0x4D) #define IVI_ERROR_IVI_INI_IS_RESERVED (IVI_ERROR_BASE + 0x4E) #define IVI_ERROR_DUP_RUNTIME_CONFIG_ENTRY (IVI_ERROR_BASE + 0x4F) #define IVI_ERROR_INDEX_IS_ONE_BASED (IVI_ERROR_BASE + 0x50) #define IVI_ERROR_INDEX_IS_TOO_HIGH (IVI_ERROR_BASE + 0x51) #define IVI_ERROR_ATTR_NOT_CACHEABLE (IVI_ERROR_BASE + 0x52) #define IVI_ERROR_ADDR_ATTRS_MUST_BE_HIDDEN (IVI_ERROR_BASE + 0x53) #define IVI_ERROR_BAD_CHANNEL_NAME (IVI_ERROR_BASE + 0x54) #define IVI_ERROR_BAD_PREFIX_IN_CONFIG_FILE (IVI_ERROR_BASE + 0x55) /* NI-Specific errors */ #define IVI_ERROR_CANNOT_MODIFY_REPEATED_CAPABILITY_TABLE (IVI_NI_ERROR_BASE + 0) #define IVI_ERROR_CANNOT_RESTRICT_ATTRIBUTE_TWICE (IVI_NI_ERROR_BASE + 1) #define IVI_ERROR_REPEATED_CAPABILITY_ALREADY_EXISTS (IVI_NI_ERROR_BASE + 2) #define IVI_ERROR_REPEATED_CAPABILITY_NOT_DEFINED (IVI_NI_ERROR_BASE + 3) #define IVI_ERROR_INVALID_REPEATED_CAPABILITY_NAME (IVI_NI_ERROR_BASE + 4) #define IVI_ERROR_CONFIG_SERVER_NOT_PRESENT (IVI_NI_ERROR_BASE + 0xD) /* NI-Specific renamed errors. */ #define IVI_ERROR_REPEATED_CAPABILITY_NAME_REQUIRED IVI_ERROR_CHANNEL_NAME_REQUIRED #define IVI_ERROR_UNKNOWN_REPEATED_CAPABILITY_NAME IVI_ERROR_UNKNOWN_CHANNEL_NAME #define IVI_ERROR_EMPTY_REPEATED_CAPABILITY_LIST IVI_ERROR_EMPTY_CHANNEL_LIST #define IVI_ERROR_DUPLICATE_REPEATED_CAPABILITY_IDENTIFIER IVI_ERROR_DUPLICATE_CHANNEL_STRING #define IVI_ERROR_REPEATED_CAPABILITY_NAME_NOT_ALLOWED IVI_ERROR_CHANNEL_NAME_NOT_ALLOWED #define IVI_ERROR_ATTR_NOT_VALID_FOR_REPEATED_CAPABILITY IVI_ERROR_ATTR_NOT_VALID_FOR_CHANNEL #define IVI_ERROR_ATTR_MUST_BE_REPEATED_CAPABILITY_BASED IVI_ERROR_ATTR_MUST_BE_CHANNEL_BASED #define IVI_ERROR_BAD_REPEATED_CAPABILITY_NAME IVI_ERROR_BAD_CHANNEL_NAME /* renamed errors. Do not use these identifiers in your drivers and applications. */ #define IVI_ERROR_CANNOT_LOAD_IVI_ENGINE (IVI_ERROR_BASE + 0x00) #define IVI_ERROR_INSTR_SPECIFIC (IVI_ERROR_BASE + 0x01) #define IVI_ERROR_TOO_MANY_FILES_OPEN (IVI_ERROR_BASE + 0x23) /* obsolete errors. Do not use these identifiers in your drivers and applications. */ #define IVI_ERROR_ALREADY_INITIALIZED (IVI_ERROR_BASE + 0x61) /*****************************************************************************/ /*= Macros for checking for errors. ======== */ /*= The checkErr and viCheckErr macros discard warnings. ======== */ /*= The checkWarn and viCheckWarn macros preserve warnings. ======== */ /*****************************************************************************/ #ifndef _IVI_USE_LEGACY_ERROR_MACROS_ /* Redefined error macros in IVI Engine 2.4.0 (ICP 2.3) */ #ifndef checkAlloc #define checkAlloc(fCall) if ((fCall) == 0) \ {error = VI_ERROR_ALLOC; goto Error;} else error = error #endif #ifndef checkErr #define checkErr(fCall) if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? error : VI_SUCCESS))) \ {goto Error;} else error = error #endif #ifndef checkWarn #define checkWarn(fCall) if ((void)1,1) {ViStatus _code_; if (_code_ = (fCall), _code_ < 0) \ {error = _code_;goto Error;} \ else error = (error==0)?_code_:error;} else error = error #endif #ifndef viCheckAlloc #define viCheckAlloc(fCall) if ((fCall) == 0) \ {error = VI_ERROR_ALLOC; Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, VI_NULL); goto Error;} else error = error #endif #ifndef viCheckErr #define viCheckErr(fCall) if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? error : VI_SUCCESS))) \ {Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, VI_NULL); goto Error;} else error = error #endif #ifndef viCheckErrElab #define viCheckErrElab(fCall, elab) \ if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? error : VI_SUCCESS))) \ {Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, elab); goto Error;} else error = error #endif #ifndef viCheckParm #define viCheckParm(fCall, parameterPosition, parameterName) \ if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? (error) : VI_SUCCESS))) \ {Ivi_SetErrorInfo(vi, VI_FALSE, error, Ivi_ParamPositionError(parameterPosition), parameterName); goto Error;} else error = error #endif #ifndef viCheckWarn #define viCheckWarn(fCall) if ((void)1,1) {ViStatus _code_; if (_code_ = (fCall), _code_?Ivi_SetErrorInfo(vi, VI_FALSE, _code_, 0, VI_NULL) : 0, _code_ < 0) \ {error = _code_;goto Error;} \ else error = (error==0)?_code_:error;} else error = error #endif #else /* _IVI_USE_LEGACY_ERROR_MACROS_ */ /* Legacy error macros defined in IVI Engine 2.3.0 (ICP 2.2) and earlier */ #ifndef checkAlloc #define checkAlloc(fCall) if ((fCall) == 0) \ {error = VI_ERROR_ALLOC; goto Error;} else #endif #ifndef checkErr #define checkErr(fCall) if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? error : VI_SUCCESS))) \ {goto Error;} else #endif #ifndef checkWarn #define checkWarn(fCall) if (error = (fCall), error < 0) \ {goto Error;} else #endif #ifndef viCheckAlloc #define viCheckAlloc(fCall) if ((fCall) == 0) \ {error = VI_ERROR_ALLOC; Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, VI_NULL); goto Error;} else #endif #ifndef viCheckErr #define viCheckErr(fCall) if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? error : VI_SUCCESS))) \ {Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, VI_NULL); goto Error;} else #endif #ifndef viCheckErrElab #define viCheckErrElab(fCall, elab) \ if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? error : VI_SUCCESS))) \ {Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, elab); goto Error;} else #endif #ifndef viCheckParm #define viCheckParm(fCall, parameterPosition, parameterName) \ if (VI_SUCCESS != (error = (fCall), (error = (error < 0) ? (error) : VI_SUCCESS))) \ {Ivi_SetErrorInfo(vi, VI_FALSE, error, Ivi_ParamPositionError(parameterPosition), parameterName); goto Error;} else #endif #ifndef viCheckWarn #define viCheckWarn(fCall) if (error = (fCall), (error ? Ivi_SetErrorInfo(vi, VI_FALSE, error, 0, VI_NULL) : 0), error < 0) \ {goto Error;} else #endif #endif /* _IVI_USE_LEGACY_ERROR_MACROS_ */ /*****************************************************************************/ /*= Function pointer typedefs for standard instrument driver functions. ==== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_InitFuncPtr) ( ViRsrc resourceName, ViBoolean IDQuery, ViBoolean resetDevice, ViSession *vi); typedef ViStatus (_VI_FUNC *Ivi_InitWithOptionsFuncPtr)(ViRsrc resourceName, ViBoolean IDQuery, ViBoolean resetDevice, ViString optionString, ViSession *vi); typedef ViStatus (_VI_FUNC *Ivi_CloseFuncPtr) ( ViSession vi); typedef ViStatus (_VI_FUNC *Ivi_ResetFuncPtr) ( ViSession vi); typedef ViStatus (_VI_FUNC *Ivi_SelfTestFuncPtr) ( ViSession vi, ViInt16 * selfTestResult, ViChar selfTestMessage[]); typedef ViStatus (_VI_FUNC *Ivi_ErrorQueryFuncPtr) ( ViSession vi, ViInt32 *errorCode, ViChar errorMessage[]); typedef ViStatus (_VI_FUNC *Ivi_ErrorMessageFuncPtr)( ViSession vi, ViStatus statusCode, ViChar message[]); typedef ViStatus (_VI_FUNC *Ivi_RevisionQueryFuncPtr)( ViSession vi, ViChar driverRev[], ViChar instrRev[]); /*****************************************************************************/ /*= Function pointer typedefs for IVI Required instrument driver functions.= */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_GetAttributeViInt32FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 *value); #ifdef _IVI_64BIT_ATTR_DEFINED_ typedef ViStatus (_VI_FUNC *Ivi_GetAttributeViInt64FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 *value); #endif typedef ViStatus (_VI_FUNC *Ivi_GetAttributeViReal64FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 *value); typedef ViStatus (_VI_FUNC *Ivi_GetAttributeViStringFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 bufSize, ViChar value[]); typedef ViStatus (_VI_FUNC *Ivi_GetAttributeViBooleanFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean *value); typedef ViStatus (_VI_FUNC *Ivi_GetAttributeViSessionFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViSession *value); typedef ViStatus (_VI_FUNC *Ivi_SetAttributeViInt32FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value); #ifdef _IVI_64BIT_ATTR_DEFINED_ typedef ViStatus (_VI_FUNC *Ivi_SetAttributeViInt64FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 value); #endif typedef ViStatus (_VI_FUNC *Ivi_SetAttributeViReal64FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value); typedef ViStatus (_VI_FUNC *Ivi_SetAttributeViStringFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViConstString value); typedef ViStatus (_VI_FUNC *Ivi_SetAttributeViBooleanFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean value); typedef ViStatus (_VI_FUNC *Ivi_SetAttributeViSessionFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViSession value); typedef ViStatus (_VI_FUNC *Ivi_CheckAttributeViInt32FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value); #ifdef _IVI_64BIT_ATTR_DEFINED_ typedef ViStatus (_VI_FUNC *Ivi_CheckAttributeViInt64FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 value); #endif typedef ViStatus (_VI_FUNC *Ivi_CheckAttributeViReal64FuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value); typedef ViStatus (_VI_FUNC *Ivi_CheckAttributeViStringFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViConstString value); typedef ViStatus (_VI_FUNC *Ivi_CheckAttributeViBooleanFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean value); typedef ViStatus (_VI_FUNC *Ivi_CheckAttributeViSessionFuncPtr) (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViSession value); typedef ViStatus (_VI_FUNC *Ivi_GetErrorInfoFuncPtr) (ViSession vi, ViStatus *primaryError, ViStatus *secondaryError, ViChar errorElaboration[IVI_MAX_MESSAGE_BUF_SIZE]); typedef ViStatus (_VI_FUNC *Ivi_ClearErrorInfoFuncPtr) (ViSession vi); typedef ViStatus (_VI_FUNC *Ivi_LockSessionFuncPtr) (ViSession vi, ViBoolean *callerHasLock); typedef ViStatus (_VI_FUNC *Ivi_UnlockSessionFuncPtr) (ViSession vi, ViBoolean *callerHasLock); typedef ViStatus (_VI_FUNC *Ivi_GetNextCoercionRecordFuncPtr) (ViSession vi, ViInt32 bufferSize, ViChar recordBuf[]); typedef ViStatus (_VI_FUNC *Ivi_GetNextInterchangeWarningPtr) (ViSession vi, ViInt32 bufferSize, ViChar buffer[]); typedef ViStatus (_VI_FUNC *Ivi_ResetInterchangeCheckPtr) (ViSession vi); /*****************************************************************************/ /*= Typedef for function pointer passed to Ivi_BuildChannelTable ======== */ /*= when you want to allow virtual channel names in the IVI ======== */ /*= configuration file to reference channel strings not passed ======== */ /*= into Ivi_BuildChannelTable. ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_ValidateChannelStringFunc)(ViSession vi, ViConstString channelString, ViBoolean *isValid, ViStatus *secondaryError); /* You should return an error code only if you are unable to determine whether the channel string is valid or not. If the channel string is not a valid one, you should set *isValid to VI_FALSE but return VI_SUCCESS. If you set *isValid to VI_FALSE, IVI sets the primary error to IVI_ERROR_BAD_VIRT_CHAN_ASSIGNMENT and formats the error elaboration to include both the virtual channel name and the channel string. You can optionally set *secondaryError to specify what is wrong with the channel string. */ /*****************************************************************************/ /*= Typedef for function pointer passed to ReadAttrViStringCallback ======== */ /*= and CoerceAttrViStringCallback. The callback uses this ======== */ /*= function pointer to set the string value. ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_SetValInStringCallbackFunc)(ViSession vi, ViAttr attributeId, ViConstString value); /*****************************************************************************/ /*= Function pointer typedefs for ViInt32 attribute callbacks ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *ReadAttrViInt32_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViInt32 *value); typedef ViStatus (_VI_FUNC *WriteAttrViInt32_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViInt32 value); typedef ViStatus (_VI_FUNC *CheckAttrViInt32_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value); typedef ViStatus (_VI_FUNC *CompareAttrViInt32_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 coercedNewValue, ViInt32 cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViInt32_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value, ViInt32 *coercedValue); /*****************************************************************************/ /*= Function pointer typedefs for ViInt64 attribute callbacks ======== */ /*****************************************************************************/ #ifdef _IVI_64BIT_ATTR_DEFINED_ typedef ViStatus (_VI_FUNC *ReadAttrViInt64_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViInt64 *value); typedef ViStatus (_VI_FUNC *WriteAttrViInt64_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViInt64 value); typedef ViStatus (_VI_FUNC *CheckAttrViInt64_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 value); typedef ViStatus (_VI_FUNC *CompareAttrViInt64_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 coercedNewValue, ViInt64 cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViInt64_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 value, ViInt64 *coercedValue); #endif /*****************************************************************************/ /*= Function pointer typedefs for ViReal64 attribute callbacks ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *ReadAttrViReal64_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViReal64 *value); typedef ViStatus (_VI_FUNC *WriteAttrViReal64_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViReal64 value); typedef ViStatus (_VI_FUNC *CheckAttrViReal64_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value); typedef ViStatus (_VI_FUNC *CompareAttrViReal64_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 coercedNewValue, ViReal64 cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViReal64_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value, ViReal64 *coercedValue); /*****************************************************************************/ /*= Function pointer typedefs for ViString attribute callbacks ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *ReadAttrViString_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, const ViConstString cacheValue); typedef ViStatus (_VI_FUNC *WriteAttrViString_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViConstString value); typedef ViStatus (_VI_FUNC *CheckAttrViString_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViConstString value); typedef ViStatus (_VI_FUNC *CompareAttrViString_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViConstString coercedNewValue, ViConstString cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViString_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, const ViConstString value); /*****************************************************************************/ /*= Function pointer typedefs for ViBoolean attribute callbacks ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *ReadAttrViBoolean_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViBoolean *value); typedef ViStatus (_VI_FUNC *WriteAttrViBoolean_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViBoolean value); typedef ViStatus (_VI_FUNC *CheckAttrViBoolean_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean value); typedef ViStatus (_VI_FUNC *CompareAttrViBoolean_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean coercedNewValue, ViBoolean cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViBoolean_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean value, ViBoolean *coercedValue); /*****************************************************************************/ /*= Function pointer typedefs for ViSession attribute callbacks ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *ReadAttrViSession_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViSession *value); typedef ViStatus (_VI_FUNC *WriteAttrViSession_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViSession value); typedef ViStatus (_VI_FUNC *CheckAttrViSession_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViSession value); typedef ViStatus (_VI_FUNC *CompareAttrViSession_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViSession coercedNewValue, ViSession cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViSession_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViSession value, ViSession *coercedValue); /*****************************************************************************/ /*= Function pointer typedefs for ViAddr attribute callbacks ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *ReadAttrViAddr_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViAddr *value); typedef ViStatus (_VI_FUNC *WriteAttrViAddr_CallbackPtr)(ViSession vi, ViSession io, ViConstString repCapName, ViAttr attributeId, ViAddr value); typedef ViStatus (_VI_FUNC *CheckAttrViAddr_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViAddr value); typedef ViStatus (_VI_FUNC *CompareAttrViAddr_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViAddr coercedNewValue, ViAddr cacheValue, ViInt32 *result); typedef ViStatus (_VI_FUNC *CoerceAttrViAddr_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViAddr value, ViAddr *coercedValue); /*****************************************************************************/ /*= Function pointer typedef for the callback that retrieves ======== */ /*= the range table. Applies only to ViInt32, ViReal64, ======== */ /*= ViInt64, and ViBoolean attributes. ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *RangeTable_CallbackPtr)(ViSession vi, ViConstString repCapName, ViAttr attributeId, IviRangeTablePtr *rangeTablePtr); /*****************************************************************************/ /* Function pointer typedef for the Operation Complete (OPC) ======== */ /* callback. The OPC callback is called after writing an ======== */ /* attribute value to the instrument (if the ======== */ /* IVI_VAL_WAIT_FOR_OPC_AFTER_WRITES flag is set for the attribute) ======== */ /* and before reading an attribute value from the instrument (if ======== */ /* the IVI_VAL_WAIT_FOR_OPC_BEFORE_READS flag is set for the ======== */ /* attribute). You can install an OPC callback by setting the ======== */ /* IVI_ATTR_OPC_CALLBACK attribute for the instrument. ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_OPCCallbackPtr)(ViSession vi, ViSession io); /*****************************************************************************/ /* Function pointer typedef for the Check Status callback. ======== */ /* This Check Status callback is called after interaction with ======== */ /* the instrument if the IVI_ATTR_QUERY_INSTR_STATUS is set to ======== */ /* VI_TRUE. The callback queries the instrument to determine if ======== */ /* the instrument encountered an error. You can install a Check ======== */ /* Status callback by using the IVI_ATTR_CHECK_STATUS_CALLBACK ======== */ /* attribute for the instrument. ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_CheckStatusCallbackPtr)(ViSession vi, ViSession io); /*****************************************************************************/ /* Function pointer typedef for the Interchange Check callback. ======== */ /*****************************************************************************/ typedef ViStatus (_VI_FUNC *Ivi_InterchangeCheckCallbackPtr)(ViSession vi, ViInt32 funcEnum, ViConstString repCapName, ViAttr attributeId); /*****************************************************************************/ /*= Base values for attribute constants. ======== */ /*= A private attribute is one that is defined for use within ======== */ /*= that module and is not exported via an include file. ======== */ /*****************************************************************************/ #define IVI_ATTR_BASE 1000000 #define IVI_ENGINE_PRIVATE_ATTR_BASE (IVI_ATTR_BASE + 00000) /* base for private attributes of the IVI engine */ #define IVI_ENGINE_PUBLIC_ATTR_BASE (IVI_ATTR_BASE + 50000) /* base for public attributes of the IVI engine */ #define IVI_SPECIFIC_PUBLIC_ATTR_BASE (IVI_ATTR_BASE + 150000) /* base for public attributes of specific drivers */ #define IVI_SPECIFIC_PRIVATE_ATTR_BASE (IVI_ATTR_BASE + 200000) /* base for private attributes of specific drivers */ /* This value was changed from IVI_ATTR_BASE + 100000 in the version of this file released in August 2013 (ICP 4.6). */ /* A private attribute, by its very definition, should not be passed to another module; it should stay private to the compiled module. */ #define IVI_CLASS_PUBLIC_ATTR_BASE (IVI_ATTR_BASE + 250000) /* base for public attributes of class drivers */ #define IVI_CLASS_PRIVATE_ATTR_BASE (IVI_ATTR_BASE + 300000) /* base for private attributes of class drivers */ /* This value was changed from IVI_ATTR_BASE + 200000 in the version of this file released in August 2013 (ICP 4.6). */ /* A private attribute, by its very definition, should not be passed to another module; it should stay private to the compiled module. */ /*****************************************************************************/ /*= Public IVI engine attributes ======== */ /*= The data type of each attribute is listed, followed by the ======== */ /*= default value or a remark. ======== */ /*= Note: "hidden" means not readable or writable by the end-user. ======== */ /*****************************************************************************/ #define IVI_ATTR_NONE /* no attribute */ 0xFFFFFFFF #define IVI_ATTR_RANGE_CHECK /* ViBoolean, VI_TRUE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 2) #define IVI_ATTR_QUERY_INSTRUMENT_STATUS /* ViBoolean, VI_FALSE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 3) /* If VI_TRUE, the specific driver is allowed to query the instrument error status after each operation */ #define IVI_ATTR_CACHE /* ViBoolean, VI_TRUE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 4) #define IVI_ATTR_SIMULATE /* ViBoolean, VI_FALSE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 5) #define IVI_ATTR_RECORD_COERCIONS /* ViBoolean, VI_FALSE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 6) #define IVI_ATTR_DRIVER_SETUP /* ViString, "" */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 7) #define IVI_ATTR_INTERCHANGE_CHECK /* ViBoolean, VI_TRUE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 21) #define IVI_ATTR_SPY /* ViBoolean, VI_FALSE */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 22) #define IVI_ATTR_USE_SPECIFIC_SIMULATION /* ViBoolean */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 23) /* simulate values in specific rather than class driver; default is VI_TRUE if session opened through class driver, VI_FALSE otherwise */ #define IVI_ATTR_PRIMARY_ERROR /* ViInt32 */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 101) #define IVI_ATTR_SECONDARY_ERROR /* VIInt32 */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 102) #define IVI_ATTR_ERROR_ELABORATION /* ViString */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 103) #define IVI_ATTR_CHANNEL_COUNT /* ViInt32, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 203) /* set by the specific-driver; default: 1 */ #define IVI_ATTR_CLASS_DRIVER_PREFIX /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 301) /* instrument prefix for the class driver; empty string if not using class driver */ #define IVI_ATTR_SPECIFIC_DRIVER_PREFIX /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 302) /* instrument prefix for the specific driver */ #define IVI_ATTR_SPECIFIC_DRIVER_LOCATOR/* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 303) /* the pathnname of the specific driver code module; from the configuration file */ #define IVI_ATTR_IO_RESOURCE_DESCRIPTOR /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 304) /* the string that describes how to find the physical instrument; from the configuration file */ #define IVI_ATTR_LOGICAL_NAME /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 305) /* for class drivers, the logical name used in the Init call to identify the specific instrument */ #define IVI_ATTR_VISA_RM_SESSION /* ViSession,hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 321) #define IVI_ATTR_SYSTEM_IO_SESSION /* ViSession,not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 322) #define IVI_ATTR_IO_SESSION_TYPE /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 324) #define IVI_ATTR_SYSTEM_IO_TIMEOUT /* ViInt32 */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 325) #define IVI_ATTR_SUPPORTED_INSTRUMENT_MODELS /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 327) #define IVI_ATTR_GROUP_CAPABILITIES /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 401) #define IVI_ATTR_FUNCTION_CAPABILITIES /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 402) #define IVI_ATTR_ENGINE_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 501) #define IVI_ATTR_ENGINE_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 502) #define IVI_ATTR_SPECIFIC_DRIVER_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 503) #define IVI_ATTR_SPECIFIC_DRIVER_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 504) #define IVI_ATTR_CLASS_DRIVER_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 505) #define IVI_ATTR_CLASS_DRIVER_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 506) #define IVI_ATTR_INSTRUMENT_FIRMWARE_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 510) #define IVI_ATTR_INSTRUMENT_MANUFACTURER /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 511) #define IVI_ATTR_INSTRUMENT_MODEL /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 512) #define IVI_ATTR_SPECIFIC_DRIVER_VENDOR /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 513) #define IVI_ATTR_SPECIFIC_DRIVER_DESCRIPTION/* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 514) #define IVI_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 515) #define IVI_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 516) #define IVI_ATTR_CLASS_DRIVER_VENDOR /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 517) #define IVI_ATTR_CLASS_DRIVER_DESCRIPTION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 518) #define IVI_ATTR_CLASS_DRIVER_CLASS_SPEC_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 519) #define IVI_ATTR_CLASS_DRIVER_CLASS_SPEC_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 520) #define IVI_ATTR_SPECIFIC_DRIVER_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 551) #define IVI_ATTR_CLASS_DRIVER_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 552) #define IVI_ATTR_ENGINE_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 553) #define IVI_ATTR_OPC_CALLBACK /* ViAddr, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 602) /* see Ivi_OPCCallbackPtr typedef */ #define IVI_ATTR_CHECK_STATUS_CALLBACK /* ViAddr, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 603) /* see Ivi_CheckStatusCallbackPtr typedef */ #define IVI_ATTR_USER_INTERCHANGE_CHECK_CALLBACK /* ViAddr, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 801) /* see Ivi_InterchangeCheckCallbackPtr typedef */ /*****************************************************************************/ /*= Public IVI Engine Functions ======== */ /*= These functions have a function panel */ /*****************************************************************************/ /*****************************************************************************/ /*= Specific Drivers ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_SpecificDriverNew(ViConstString specificPrefix, ViConstString optionsString, ViSession *vi); ViStatus IviDll _VI_FUNC Ivi_ApplyDefaultSetup (ViSession vi); ViStatus IviDll _VI_FUNC Ivi_GetSpecificDriverStatusDesc (ViSession vi, ViStatus statusCode, ViChar messageBuf[IVI_MAX_MESSAGE_BUF_SIZE], IviStringValueTable additionalTableToSearch); /*= Status Checking Control ======== */ ViBoolean IviDll _VI_FUNC Ivi_NeedToCheckStatus(ViSession vi); ViStatus IviDll _VI_FUNC Ivi_SetNeedToCheckStatus(ViSession vi, ViBoolean needToCheckStatus); /*= Instrument Specific Error Queue ========= */ ViStatus IviDll _VI_FUNC Ivi_QueueInstrSpecificError(ViSession vi, ViInt32 instrumentError, ViConstString message); ViStatus IviDll _VI_FUNC Ivi_DequeueInstrSpecificError(ViSession vi, ViInt32 *instrumentError, ViChar message[IVI_MAX_MESSAGE_BUF_SIZE]); ViStatus IviDll _VI_FUNC Ivi_ClearInstrSpecificErrorQueue (ViSession vi); ViStatus IviDll _VI_FUNC Ivi_InstrSpecificErrorQueueSize(ViSession vi, ViInt32 *numErrors); /*= Direct Instrument I/O ========= */ ViStatus IviDll _VI_FUNC Ivi_WriteInstrData (ViSession vi, ViConstString writeBuffer); ViStatus IviDll _VI_FUNC Ivi_ReadInstrData (ViSession vi, ViInt32 numBytes, ViChar rdBuf[], ViInt32 *bytesRead); ViStatus IviDll _VI_FUNC Ivi_ReadToFile (ViSession vi, ViConstString filename, ViInt32 maxBytesToRead, ViInt32 fileAction, ViInt32 *totalBytesWritten); ViStatus IviDll _VI_FUNC Ivi_WriteFromFile (ViSession vi, ViConstString filename, ViInt32 maxBytesToWrite, ViInt32 byteOffset, ViInt32 *totalBytesWritten); ViStatus IviDll _VI_FUNC Ivi_viWrite (ViSession vi, ViByte buffer[], ViInt64 count, ViInt64 *returnCount); ViStatus IviDll _VI_FUNC Ivi_viRead (ViSession vi, ViInt64 bufferSize, ViByte buffer[], ViInt64 *returnCount); /*= IVI Class Compliant Driver Helpers == */ ViStatus IviDll _VI_FUNC Ivi_PerformClassInterchangeCheck (ViSession vi, ViInt32 classAPI, ViConstString funcName); /*****************************************************************************/ /*= Class Drivers ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_ClassDriverNew(ViConstString logicalOrVInstrName, ViConstString classPrefix, ViString functionList[], ViSession *vi); ViStatus IviDll _VI_FUNC Ivi_ClassFunctionCapabilities (ViSession vi, IviStringValueTable functionTable, ViChar capabilityString[], ViBoolean *allFound); ViStatus IviDll _VI_FUNC Ivi_GetClassDriverStatusDesc(ViSession vi, ViStatus statusCode, ViChar messageBuf[IVI_MAX_MESSAGE_BUF_SIZE], IviStringValueTable additionalTableToSearch); /*= Specific Driver Session ======== */ ViSession IviDll _VI_FUNC Ivi_SpecificDriverSession(ViSession vi); ViStatus IviDll _VI_FUNC Ivi_SetSpecificDriverSession(ViSession vi, ViSession specificDriver); /*= Simulation Driver Management ======== */ ViStatus IviDll _VI_FUNC Ivi_LoadSimulationDriver(ViSession vi, ViConstString defaultSwModule, ViString functionList[]); ViStatus IviDll _VI_FUNC Ivi_GetSimulationSession (ViSession vi, ViSession* simVi); ViStatus IviDll _VI_FUNC Ivi_CloseSimulationSession (ViSession vi); /*= Dynamic Load and Dispatch ======== */ ViStatus IviDll _VI_FUNC Ivi_GetFunctionPtr(ViSession vi, ViInt32 functionId, ViAddr *functionPtr); ViStatus IviDll _VI_FUNC Ivi_GetFunctionPtrByName(ViSession vi, ViConstString name, ViBoolean addPrefix, ViAddr *functionPtr); ViStatus IviDll _VI_FUNC Ivi_GetSimulationDriverFunctionPtr(ViSession vi, ViConstString functionName, ViAddr* functionPtr); /*****************************************************************************/ /*= Simulation Drivers ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_SimulationDriverNew(ViConstString logicalName, ViSession *vi); ViStatus IviDll _VI_FUNC Ivi_ApplySimulationDriverDefaultSetup (ViSession vi, ViConstString name); /*****************************************************************************/ /*= Sessions ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_ValidateSession (ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_SessionIsAvailable (ViSession vi); ViStatus IviDll _VI_FUNC Ivi_Dispose(ViSession vi); /*= Locking ======== */ ViStatus IviDll _VI_FUNC Ivi_LockSession(ViSession vi, ViBoolean *callerHasLock); ViStatus IviDll _VI_FUNC Ivi_UnlockSession(ViSession vi, ViBoolean *callerHasLock); /*****************************************************************************/ /*= Channels ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_BuildChannelTable(ViSession vi, ViConstString defaultChannelList, ViBoolean allowUnknownChannelStrings, Ivi_ValidateChannelStringFunc chanStrValidationFunc); ViStatus IviDll _VI_FUNC Ivi_AddToChannelTable(ViSession vi, ViConstString channelStringsToAdd); ViStatus IviDll _VI_FUNC Ivi_RestrictAttrToChannels(ViSession vi, ViAttr attributeId, ViConstString channelNameList); ViStatus IviDll _VI_FUNC Ivi_ValidateAttrForChannel(ViSession vi, ViConstString channelName, ViAttr attributeId); ViStatus IviDll _VI_FUNC Ivi_CoerceChannelName(ViSession vi, ViConstString channelName, ViConstString *channelString); ViStatus IviDll _VI_FUNC Ivi_GetChannelIndex (ViSession vi, ViConstString channelName, ViInt32 *index); /* 1-based index */ ViStatus IviDll _VI_FUNC Ivi_GetNthChannelString(ViSession vi, ViInt32 index, ViConstString *channelString); /* 1-based index */ ViStatus IviDll _VI_FUNC Ivi_GetUserChannelName(ViSession vi, ViConstString channelString, ViConstString *userChannelName); /*****************************************************************************/ /*= Repeated Capabilities ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_BuildRepCapTable(ViSession vi, ViConstString repCapName, ViConstString names); ViStatus IviDll _VI_FUNC Ivi_AddToRepCapTable(ViSession vi, ViConstString repCapName, ViConstString namesToAdd); ViStatus IviDll _VI_FUNC Ivi_RestrictAttrToInstances(ViSession vi, ViAttr attributeId, ViConstString instances); ViStatus IviDll _VI_FUNC Ivi_ValidateAttrForRepCapName(ViSession vi, ViConstString repCapName, ViAttr attributeId); ViStatus IviDll _VI_FUNC Ivi_CoerceRepCapName(ViSession vi, ViConstString repCapName, ViConstString name, ViConstString *actualNameRef); ViStatus IviDll _VI_FUNC Ivi_GetRepCapIndex (ViSession vi, ViConstString repCapName, ViConstString name, ViInt32 *indexRef); ViStatus IviDll _VI_FUNC Ivi_GetNthRepCapName(ViSession vi, ViConstString repCapName, ViInt32 index, ViConstString *nameRef); ViStatus IviDll _VI_FUNC Ivi_GetAttributeRepCapName(ViSession vi, ViAttr attributeId, ViConstString *repCapName); /*****************************************************************************/ /*= Attributes ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_ValidateAttribute(ViSession vi, ViAttr attrId, IviValueType expectedType); ViBoolean IviDll _VI_FUNC Ivi_AttributeIsAvailable(ViSession vi, ViAttr attrId); ViStatus IviDll _VI_FUNC Ivi_ResetAttribute(ViSession vi, ViConstString repCapName, ViAttr attributeId); ViStatus IviDll _VI_FUNC Ivi_DeleteAttribute(ViSession vi, ViAttr attributeId); /*= Creation ======== */ ViStatus IviDll _VI_FUNC Ivi_AddAttributeViInt32(ViSession vi, ViAttr id, ViConstString attrName, ViInt32 defaultValue, IviAttrFlags attributeFlags, ReadAttrViInt32_CallbackPtr readCallback, WriteAttrViInt32_CallbackPtr writeCallback, IviRangeTablePtr rangeTable); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_AddAttributeViInt64(ViSession vi, ViAttr id, ViConstString attrName, ViInt64 defaultValue, IviAttrFlags attributeFlags, ReadAttrViInt64_CallbackPtr readCallback, WriteAttrViInt64_CallbackPtr writeCallback, IviRangeTablePtr rangeTable); #endif ViStatus IviDll _VI_FUNC Ivi_AddAttributeViReal64(ViSession vi, ViAttr id, ViConstString attrName, ViReal64 defaultValue, IviAttrFlags attributeFlags, ReadAttrViReal64_CallbackPtr readCallback, WriteAttrViReal64_CallbackPtr writeCallback, IviRangeTablePtr rangeTable, ViInt32 comparePrecision); ViStatus IviDll _VI_FUNC Ivi_AddAttributeViString(ViSession vi, ViAttr id, ViConstString attrName, ViConstString defaultValue, IviAttrFlags attributeFlags, ReadAttrViString_CallbackPtr readCallback, WriteAttrViString_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddAttributeViBoolean( ViSession vi, ViAttr id, ViConstString attrName, ViBoolean defaultValue, IviAttrFlags attributeFlags, ReadAttrViBoolean_CallbackPtr readCallback, WriteAttrViBoolean_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddAttributeViSession( ViSession vi, ViAttr id, ViConstString attrName, ViSession defaultValue, IviAttrFlags attributeFlags, ReadAttrViSession_CallbackPtr readCallback, WriteAttrViSession_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddAttributeViAddr( ViSession vi, ViAttr id, ViConstString attrName, ViAddr defaultValue, IviAttrFlags attributeFlags, ReadAttrViAddr_CallbackPtr readCallback, WriteAttrViAddr_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViInt32(ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViInt32 defaultValue, IviAttrFlags attributeFlags, ReadAttrViInt32_CallbackPtr readCallback, WriteAttrViInt32_CallbackPtr writeCallback, IviRangeTablePtr rangeTable); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViInt64( ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViInt64 defaultValue, IviAttrFlags attributeFlags, ReadAttrViInt64_CallbackPtr readCallback, WriteAttrViInt64_CallbackPtr writeCallback, IviRangeTablePtr rangeTable); #endif ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViReal64( ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViReal64 defaultValue, IviAttrFlags attributeFlags, ReadAttrViReal64_CallbackPtr readCallback, WriteAttrViReal64_CallbackPtr writeCallback, IviRangeTablePtr rangeTable, ViInt32 comparePrecision); ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViString( ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViConstString defaultValue, IviAttrFlags attributeFlags, ReadAttrViString_CallbackPtr readCallback, WriteAttrViString_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViBoolean( ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViBoolean defaultValue, IviAttrFlags attributeFlags, ReadAttrViBoolean_CallbackPtr readCallback, WriteAttrViBoolean_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViSession( ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViSession defaultValue, IviAttrFlags attributeFlags, ReadAttrViSession_CallbackPtr readCallback, WriteAttrViSession_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_AddRepeatedAttributeViAddr(ViSession vi, ViConstString repCapName, ViAttr id, ViConstString attrName, ViAddr defaultValue, IviAttrFlags attributeFlags, ReadAttrViAddr_CallbackPtr readCallback, WriteAttrViAddr_CallbackPtr writeCallback); /*= Set/Get/Check Attribute ======== */ /*= Typesafe Set Attribute functions for use in drivers ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttributeViInt32(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt32 value); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetAttributeViInt64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt64 value); #endif ViStatus IviDll _VI_FUNC Ivi_SetAttributeViReal64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViReal64 value); ViStatus IviDll _VI_FUNC Ivi_SetAttributeViString(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViConstString value); ViStatus IviDll _VI_FUNC Ivi_SetAttributeViBoolean(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViBoolean value); ViStatus IviDll _VI_FUNC Ivi_SetAttributeViSession(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViSession value); ViStatus IviDll _VI_FUNC Ivi_SetAttributeViAddr(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViAddr value); /*= Typesafe Check Attribute functions for use in drivers ======== */ ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViInt32(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt32 value); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViInt64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt64 value); #endif ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViReal64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViReal64 value); ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViString(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViConstString value); ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViBoolean(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViBoolean value); ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViSession(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViSession value); ViStatus IviDll _VI_FUNC Ivi_CheckAttributeViAddr(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViAddr value); /*= Typesafe Get Attribute functions for use in drivers ======== */ ViStatus IviDll _VI_FUNC Ivi_GetAttributeViInt32(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt32 *value); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_GetAttributeViInt64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt64 *value); #endif ViStatus IviDll _VI_FUNC Ivi_GetAttributeViReal64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViReal64 *value); ViStatus IviDll _VI_FUNC Ivi_GetAttributeViString(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViInt32 bufSize, ViChar value[]); ViStatus IviDll _VI_FUNC Ivi_GetAttributeViBoolean(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViBoolean *value); ViStatus IviDll _VI_FUNC Ivi_GetAttributeViSession(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViSession *value); ViStatus IviDll _VI_FUNC Ivi_GetAttributeViAddr(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 optionFlags, ViAddr *value); /*= State Caching/Invalidations ======== */ ViStatus IviDll _VI_FUNC Ivi_InvalidateAttribute(ViSession vi, ViConstString repCapName, ViAttr attributeId); ViStatus IviDll _VI_FUNC Ivi_InvalidateAllAttributes(ViSession vi); ViStatus IviDll _VI_FUNC Ivi_AddAttributeInvalidation(ViSession vi, ViAttr attributeId, ViAttr attributeToInval, ViBoolean allChannels); ViStatus IviDll _VI_FUNC Ivi_DeleteAttributeInvalidation(ViSession vi, ViAttr attributeId, ViAttr attributeToDelete); ViStatus IviDll _VI_FUNC Ivi_GetInvalidationList(ViSession vi, ViAttr attributeId, IviInvalEntry **invalList, ViInt32 *numInvalEntries); void IviDll _VI_FUNC Ivi_DisposeInvalidationList(IviInvalEntry *invalList); ViStatus IviDll _VI_FUNC Ivi_AttributeIsCached(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean *instrStateIsCurrentlyCached); /*= Coercion ======== */ ViStatus IviDll _VI_FUNC Ivi_GetCoercedValViInt32(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value, ViInt32 *coercedValue); ViStatus IviDll _VI_FUNC Ivi_GetCoercedValViReal64(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value, ViReal64 *coercedValue); ViStatus IviDll _VI_FUNC Ivi_GetNextCoercionInfo(ViSession vi, ViAttr *attributeId, ViConstString *attributeName, ViConstString *channelString, IviValueType *attrType, ViReal64 *desiredValue, ViReal64 *coercedValue); ViStatus IviDll _VI_FUNC Ivi_GetNextCoercionString (ViSession vi, ViInt32 bufSize, ViChar coercion[]); /*= Callbacks ======== */ /*= One function is needed because it is typesafe for all attribute types */ ViStatus IviDll _VI_FUNC Ivi_SetAttrRangeTableCallback (ViSession vi, ViAttr attributeId, RangeTable_CallbackPtr rangeTableCallback); /*= Default callbacks ========= */ /*= Prototypes for functions supplied as default callbacks. ========= */ /*= These default callbacks are installed when an attribute is ========= */ /*= added by the class or specific driver using one of the ========= */ /*= AddAttribute functions. ========= */ /*= For ViInt32 and ViReal64, the Default Check callback is ========= */ /*= installed when the attribute is added with a range table. ========= */ /*= If the range table is of type IVI_VAL_COERCED, ========= */ /*= the Default Coerce callback is also installed. ========= */ /*= For ViReal64, the Default Compare callback is always installed.========= */ /*= For ViBoolean, the Default Coerce callback is always installed.========= */ /*= Do not call these functions directly unless you have already ========= */ /*= Ivi_LockSession(). ========= */ ViStatus IviDll _VI_FUNC Ivi_DefaultCheckCallbackViInt32 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value); ViStatus IviDll _VI_FUNC Ivi_DefaultCoerceCallbackViInt32 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt32 value, ViInt32 *coercedValue); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_DefaultCheckCallbackViInt64 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 value); ViStatus IviDll _VI_FUNC Ivi_DefaultCoerceCallbackViInt64 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViInt64 value, ViInt64 *coercedValue); #endif ViStatus IviDll _VI_FUNC Ivi_DefaultCheckCallbackViReal64 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value); ViStatus IviDll _VI_FUNC Ivi_DefaultCoerceCallbackViReal64 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 value, ViReal64 *coercedValue); ViStatus IviDll _VI_FUNC Ivi_DefaultCompareCallbackViReal64 (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViReal64 a, ViReal64 b, ViInt32 *result); ViStatus IviDll _VI_FUNC Ivi_DefaultCoerceCallbackViBoolean (ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean value, ViBoolean *coercedValue); /*= Set Attribute Read Callback functions ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViInt32 (ViSession vi, ViAttr attributeId, ReadAttrViInt32_CallbackPtr readCallback); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViInt64 (ViSession vi, ViAttr attributeId, ReadAttrViInt64_CallbackPtr readCallback); #endif ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViReal64 (ViSession vi, ViAttr attributeId, ReadAttrViReal64_CallbackPtr readCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViString (ViSession vi, ViAttr attributeId, ReadAttrViString_CallbackPtr readCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViBoolean (ViSession vi, ViAttr attributeId, ReadAttrViBoolean_CallbackPtr readCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViSession (ViSession vi, ViAttr attributeId, ReadAttrViSession_CallbackPtr readCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrReadCallbackViAddr (ViSession vi, ViAttr attributeId, ReadAttrViAddr_CallbackPtr readCallback); /*= Set Attribute Write Callback functions ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViInt32 (ViSession vi, ViAttr attributeId, WriteAttrViInt32_CallbackPtr writeCallback); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViInt64 (ViSession vi, ViAttr attributeId, WriteAttrViInt64_CallbackPtr writeCallback); #endif ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViReal64 (ViSession vi, ViAttr attributeId, WriteAttrViReal64_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViString (ViSession vi, ViAttr attributeId, WriteAttrViString_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViBoolean (ViSession vi, ViAttr attributeId, WriteAttrViBoolean_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViSession (ViSession vi, ViAttr attributeId, WriteAttrViSession_CallbackPtr writeCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrWriteCallbackViAddr (ViSession vi, ViAttr attributeId, WriteAttrViAddr_CallbackPtr writeCallback); /*= Set Attribute Check Callback functions ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViInt32 (ViSession vi, ViAttr attributeId, CheckAttrViInt32_CallbackPtr checkCallback); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViInt64 (ViSession vi, ViAttr attributeId, CheckAttrViInt64_CallbackPtr checkCallback); #endif ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViReal64 (ViSession vi, ViAttr attributeId, CheckAttrViReal64_CallbackPtr checkCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViString (ViSession vi, ViAttr attributeId, CheckAttrViString_CallbackPtr checkCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViBoolean (ViSession vi, ViAttr attributeId, CheckAttrViBoolean_CallbackPtr checkCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViSession (ViSession vi, ViAttr attributeId, CheckAttrViSession_CallbackPtr checkCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCheckCallbackViAddr (ViSession vi, ViAttr attributeId, CheckAttrViAddr_CallbackPtr checkCallback); /*= Set Attribute Coerce Callback functions ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViInt32 (ViSession vi, ViAttr attributeId, CoerceAttrViInt32_CallbackPtr coerceCallback); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViInt64 (ViSession vi, ViAttr attributeId, CoerceAttrViInt64_CallbackPtr coerceCallback); #endif ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViReal64 (ViSession vi, ViAttr attributeId, CoerceAttrViReal64_CallbackPtr coerceCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViString (ViSession vi, ViAttr attributeId, CoerceAttrViString_CallbackPtr coerceCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViBoolean (ViSession vi, ViAttr attributeId, CoerceAttrViBoolean_CallbackPtr coerceCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViAddr (ViSession vi, ViAttr attributeId, CoerceAttrViAddr_CallbackPtr coerceCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCoerceCallbackViSession (ViSession vi, ViAttr attributeId, CoerceAttrViSession_CallbackPtr coerceCallback); /*= Set Attribute Compare Callback functions ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViInt32 (ViSession vi, ViAttr attributeId, CompareAttrViInt32_CallbackPtr compareCallback); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViInt64 (ViSession vi, ViAttr attributeId, CompareAttrViInt64_CallbackPtr compareCallback); #endif ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViReal64 (ViSession vi, ViAttr attributeId, CompareAttrViReal64_CallbackPtr compareCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViString (ViSession vi, ViAttr attributeId, CompareAttrViString_CallbackPtr compareCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViBoolean (ViSession vi, ViAttr attributeId, CompareAttrViBoolean_CallbackPtr compareCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViSession (ViSession vi, ViAttr attributeId, CompareAttrViSession_CallbackPtr compareCallback); ViStatus IviDll _VI_FUNC Ivi_SetAttrCompareCallbackViAddr (ViSession vi, ViAttr attributeId, CompareAttrViAddr_CallbackPtr compareCallback); /*= Inherent Attribute Accessors ======== */ ViSession IviDll _VI_FUNC Ivi_IOSession (ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_RangeChecking (ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_QueryInstrStatus(ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_Simulating(ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_UseSpecificSimulation(ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_Spying(ViSession vi); ViBoolean IviDll _VI_FUNC Ivi_InterchangeCheck(ViSession vi); /*= Comparison Precision ======== */ ViStatus IviDll _VI_FUNC Ivi_SetAttrComparePrecision (ViSession vi, ViAttr attributeId, ViInt32 comparePrecision); ViStatus IviDll _VI_FUNC Ivi_GetAttrComparePrecision (ViSession vi, ViAttr attributeId, ViInt32 *comparePrecision); /*= Information ======== */ ViStatus IviDll _VI_FUNC Ivi_GetNumAttributes(ViSession vi, ViInt32 *numAttributes); ViStatus IviDll _VI_FUNC Ivi_GetNthAttribute(ViSession vi, ViInt32 index, ViAttr *attribute); ViStatus IviDll _VI_FUNC Ivi_GetAttributeFlags(ViSession vi, ViAttr attributeId, IviAttrFlags *flags); ViStatus IviDll _VI_FUNC Ivi_SetAttributeFlags(ViSession iviSession, ViAttr attributeId, IviAttrFlags flags); ViStatus IviDll _VI_FUNC Ivi_GetAttributeType(ViSession vi, ViAttr attributeId, IviValueType *type); ViStatus IviDll _VI_FUNC Ivi_GetAttributeName(ViSession vi, ViAttr attributeId, ViChar nameBuf[], ViInt32 bufSize); ViStatus IviDll _VI_FUNC Ivi_GetAttrMinMaxViInt32(ViSession vi, ViConstString repCapName, ViAttr attr, ViInt32 *min, ViInt32 *max, ViBoolean *hasMin, ViBoolean *hasMax); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_GetAttrMinMaxViInt64(ViSession vi, ViConstString repCapName, ViAttr attr, ViInt64 *min, ViInt64 *max, ViBoolean *hasMin, ViBoolean *hasMax); #endif ViStatus IviDll _VI_FUNC Ivi_GetAttrMinMaxViReal64(ViSession vi, ViConstString repCapName, ViAttr attr, ViReal64 *min, ViReal64 *max, ViBoolean *hasMin, ViBoolean *hasMax); ViBoolean IviDll _VI_FUNC Ivi_AttributeWasSetByUser (ViSession vi, ViConstString repCapName, ViAttr attributeId); ViBoolean IviDll _VI_FUNC Ivi_AttributeEverSetByUser (ViSession vi, ViConstString repCapName, ViAttr attributeId); /*****************************************************************************/ /*= Error Information ========= */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_SetErrorInfo(ViSession vi, ViBoolean overWrite, ViStatus primaryError, ViStatus secondaryError, ViConstString errorElaboration); ViStatus IviDll _VI_FUNC Ivi_GetErrorInfo(ViSession vi, ViStatus *primaryError, ViStatus *secondaryError, ViChar errorElaboration[IVI_MAX_MESSAGE_BUF_SIZE]); ViStatus IviDll _VI_FUNC Ivi_ClearErrorInfo(ViSession vi); ViStatus IviDll _VI_FUNC Ivi_GetErrorMessage(ViStatus statusCode, ViChar messageBuf[IVI_MAX_MESSAGE_BUF_SIZE]); /*****************************************************************************/ /*= Range Tables ======== */ /*****************************************************************************/ /* GetAttrRangeTable gets the range table that the engine uses for the */ /* attribute. If there is a RangeTableCallback, GetAttrRangeTable */ /* callback invokes it. Otherwise, it returns the stored range table */ /* pointer. */ ViStatus IviDll _VI_FUNC Ivi_GetAttrRangeTable (ViSession vi, ViConstString repCapName, ViAttr attributeId, IviRangeTablePtr *rangeTable); ViStatus IviDll _VI_FUNC Ivi_ValidateRangeTable (IviRangeTablePtr rangeTable); /*= Range Table Entries ======== */ ViStatus IviDll _VI_FUNC Ivi_GetRangeTableNumEntries (IviRangeTablePtr table, ViInt32 *numEntries); ViStatus IviDll _VI_FUNC Ivi_GetViInt32EntryFromValue (ViInt32 value, IviRangeTablePtr table, ViInt32 *discreteOrMin, ViInt32 *max, ViInt32 *coercedValue, ViInt32 *tableIndex, ViString *cmdString, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViInt32EntryFromString (ViConstString cmdString, IviRangeTablePtr table, ViInt32 *discreteOrMin, ViInt32 *max, ViInt32 *coercedValue, ViInt32 *tableIndex, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViInt32EntryFromIndex (ViInt32 tableIndex, IviRangeTablePtr table, ViInt32 *discreteOrMin, ViInt32 *max, ViInt32 *coercedValue, ViString *cmdString, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViInt32EntryFromCmdValue (ViInt32 cmdValue, IviRangeTablePtr table, ViInt32 *discreteOrMin, ViInt32 *max, ViInt32 *coercedValue, ViInt32 *tableIndex, ViString *cmdString); ViStatus IviDll _VI_FUNC Ivi_GetViInt32EntryFromCoercedVal (ViInt32 coercedValue, IviRangeTablePtr table, ViInt32 *discreteOrMin, ViInt32 *max, ViInt32 *tableIndex, ViString *cmdString, ViInt32 *cmdValue); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_GetViInt64EntryFromValue (ViInt64 value, IviRangeTablePtr table, ViInt64 *discreteOrMin, ViInt64 *max, ViInt64 *coercedValue, ViInt32 *tableIndex, ViString *cmdString, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViInt64EntryFromString (ViConstString cmdString, IviRangeTablePtr table, ViInt64 *discreteOrMin, ViInt64 *max, ViInt64 *coercedValue, ViInt32 *tableIndex, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViInt64EntryFromIndex (ViInt32 tableIndex, IviRangeTablePtr table, ViInt64 *discreteOrMin, ViInt64 *max, ViInt64 *coercedValue, ViString *cmdString, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViInt64EntryFromCmdValue (ViInt32 cmdValue, IviRangeTablePtr table, ViInt64 *discreteOrMin, ViInt64 *max, ViInt64 *coercedValue, ViInt32 *tableIndex, ViString *cmdString); ViStatus IviDll _VI_FUNC Ivi_GetViInt64EntryFromCoercedVal (ViInt64 coercedValue, IviRangeTablePtr table, ViInt64 *discreteOrMin, ViInt64 *max, ViInt32 *tableIndex, ViString *cmdString, ViInt32 *cmdValue); #endif ViStatus IviDll _VI_FUNC Ivi_GetViReal64EntryFromValue (ViReal64 value, IviRangeTablePtr table, ViReal64 *discreteOrMin, ViReal64 *max, ViReal64 *coercedValue, ViInt32 *tableIndex, ViString *cmdString, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViReal64EntryFromString (ViConstString cmdString, IviRangeTablePtr table, ViReal64 *discreteOrMin, ViReal64 *max, ViReal64 *coercedValue, ViInt32 *tableIndex, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViReal64EntryFromIndex (ViInt32 tableIndex, IviRangeTablePtr table, ViReal64 *discreteOrMin, ViReal64 *max, ViReal64 *coercedValue, ViString *cmdString, ViInt32 *cmdValue); ViStatus IviDll _VI_FUNC Ivi_GetViReal64EntryFromCmdValue (ViInt32 cmdVal, IviRangeTablePtr table, ViReal64 *discreteOrMin, ViReal64 *max, ViReal64 *coercedValue, ViInt32 *tableIndex, ViString *cmdString); ViStatus IviDll _VI_FUNC Ivi_GetViReal64EntryFromCoercedVal (ViReal64 coercedValue, IviRangeTablePtr table, ViReal64 *discreteOrMin, ViReal64 *max, ViInt32 *tableIndex, ViString *cmdString, ViInt32 *cmdValue); /*= Range Table Pointer ======== */ ViStatus IviDll _VI_FUNC Ivi_GetStoredRangeTablePtr (ViSession vi, ViAttr attributeId, IviRangeTablePtr *rangeTable); /* bypasses callback */ ViStatus IviDll _VI_FUNC Ivi_SetStoredRangeTablePtr (ViSession vi, ViAttr attributeId, IviRangeTablePtr rangeTable); /*= Dynamic Range Tables ======== */ ViStatus IviDll _VI_FUNC Ivi_RangeTableNew (ViSession vi, ViInt32 numRangeValueEntries, ViInt32 type, ViBoolean hasMin, ViBoolean hasMax, IviRangeTablePtr *rangeTable); ViStatus IviDll _VI_FUNC Ivi_RangeTableFree (ViSession vi, IviRangeTablePtr rangeTable, ViBoolean freeCmdStrings); ViStatus IviDll _VI_FUNC Ivi_SetRangeTableEntry (IviRangeTablePtr rangeTable, ViInt32 tableIndex, ViReal64 discreteOrMin, ViReal64 max, ViReal64 coercedValue, ViConstString cmdString, ViInt32 cmdValue); #ifdef _IVI_64BIT_ATTR_DEFINED_ ViStatus IviDll _VI_FUNC Ivi_SetRangeTableEntryViInt64 (IviRangeTablePtr rangeTable, ViInt32 tableIndex, ViInt64 discreteOrMin, ViInt64 max, ViInt64 coercedValue, ViConstString cmdString, ViInt32 cmdValue); #endif ViStatus IviDll _VI_FUNC Ivi_SetRangeTableEnd (IviRangeTablePtr rangeTable, ViInt32 endIndex); /*****************************************************************************/ /*= Configuration Store ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_GetConfigStoreHandle(IviConfigStoreHandle* handle); ViStatus IviDll _VI_FUNC Ivi_AttachToConfigStoreHandle (IviConfigStoreHandle handle, ViBoolean discardExistingHandle); ViStatus IviDll _VI_FUNC Ivi_GetInfoFromResourceName(ViRsrc resourceName, ViString optionString, ViChar newResourceName[IVI_MAX_MESSAGE_BUF_SIZE], ViChar newOptionString[IVI_MAX_MESSAGE_BUF_SIZE], ViBoolean *isLogicalName); /*= Logical Names ======== */ ViStatus IviDll _VI_FUNC Ivi_GetLogicalNamesList(IviLogicalNameEntry **logicalNamesList, ViInt32 *numLogicalNames); ViStatus IviDll _VI_FUNC Ivi_GetNthLogicalName(IviLogicalNameEntry *logicalNamesList, ViInt32 index, ViChar nameBuf[], ViInt32 bufSize, ViBoolean *fromFile); void IviDll _VI_FUNC Ivi_DisposeLogicalNamesList(IviLogicalNameEntry *logicalNamesList); /*****************************************************************************/ /*= Interchangeability Warnings ======== */ /*****************************************************************************/ ViStatus IviDll _VI_FUNC Ivi_GetNextInterchangeCheckString (ViSession vi, ViInt32 bufSize, ViChar interchangeWarning[]); ViStatus IviDll _VI_FUNC Ivi_ClearInterchangeWarnings (ViSession vi); ViStatus IviDll _VI_FUNC Ivi_ResetInterchangeCheck (ViSession vi); ViStatus IviDll _VI_FUNC Ivi_LogInterchangeWarning (ViSession vi, ViInt32 warningType, ViInt32 funcEnum, ViConstString repCapName, ViAttr attributeId, ViConstString elab); /*****************************************************************************/ /*= Helper Functions ======== */ /*****************************************************************************/ /*= Memory Allocation ======== */ /*= Functions for allocating memory dynamically ======== */ /*= and associating it with a session. ======== */ /*= If you do not explicitly free all of the memory, ======== */ /*= Ivi_Dispose frees it. ======== */ ViStatus IviDll _VI_FUNC Ivi_Alloc (ViSession vi, ViInt32 memBlockSize, ViAddr *memBlockPtr); ViStatus IviDll _VI_FUNC Ivi_Free (ViSession vi, ViAddr memBlockPtr); ViStatus IviDll _VI_FUNC Ivi_FreeAll (ViSession vi); /*= String Callbacks ======== */ ViStatus IviDll _VI_FUNC Ivi_SetValInStringCallback (ViSession vi, ViAttr attributeId, ViConstString value); /*= String/Value Tables ======== */ ViStatus IviDll _VI_FUNC Ivi_GetStringFromTable(IviStringValueTable table, ViInt32 value, ViString *string); ViStatus IviDll _VI_FUNC Ivi_GetValueFromTable(IviStringValueTable table, ViConstString string, ViInt32 *value); /*= Value Manipulation ======== */ ViStatus IviDll _VI_FUNC Ivi_CheckNumericRange (ViReal64 value, ViReal64 min, ViReal64 max, ViStatus errorCode); ViStatus IviDll _VI_FUNC Ivi_CheckBooleanRange (ViBoolean value, ViStatus errorCode); ViStatus IviDll _VI_FUNC Ivi_CoerceBoolean (ViBoolean *value); ViStatus IviDll _VI_FUNC Ivi_CompareWithPrecision (ViInt32 comparePrecision, ViReal64 a, ViReal64 b, ViInt32 *result); ViStatus IviDll _VI_FUNC Ivi_GetViReal64Type (ViReal64 number, ViInt32 *typeOfDouble); ViReal64* IviDll _VI_FUNC Ivi_GetPtrToSpecialViReal64Value (ViInt32 typeOfDouble); /*****************************************************************************/ /*= Functions that do not have a function panel ========= */ /*= These are internal, unsafe, functions ========= */ /*****************************************************************************/ /*= Locking ======== */ ViStatus IviDll _VI_FUNC Ivi_LockSession_Class(ViSession vi, ViBoolean *callerHasLock); ViStatus IviDll _VI_FUNC Ivi_UnlockSession_Class(ViSession vi, ViBoolean *callerHasLock); /*= Non-typesafe, generic Set/Get Attribute Callback functions ========= */ ViStatus IviDll _VI_FUNC Ivi_SetAttrCallback (ViSession vi, ViAttr attributeId, IviValueType attrType, IviCallbackType callbackType, ViAddr callback); ViStatus IviDll _VI_FUNC Ivi_GetAttrCallback (ViSession vi, ViAttr attributeId, IviValueType attrType, IviCallbackType callbackType, ViAddr *callback); /*= Localized error messages ========= */ /* Constants for languages. */ #define IVI_VAL_LANG_ENGLISH 1L #define IVI_VAL_LANG_FRENCH 2L #define IVI_VAL_LANG_GERMAN 3L #define IVI_VAL_LANG_JAPANESE 4L #define IVI_VAL_LANG_KOREAN 5L #define IVI_VAL_LANG_CHINESE_SIMPLIFIED 6L ViStatus IviDll _VI_FUNC Ivi_GetErrorMessageLocalized(ViStatus statusCode, ViUInt32 locale, ViInt32 bufSize, ViChar messageBuf[]); /*= NI-Spy support functions ========= */ ViStatus IviDll _VI_FUNC Ivi_GetSpyingFromLogicalName (ViConstString logicalName, ViBoolean *isSpying); /*= Logging interchange check warnings ========= */ ViStatus IviDll _VI_FUNC Ivi_LogInterchangeWarning2 (ViSession vi, ViInt32 warningType, ViConstString funcName, ViConstString repCapName, ViAttr attributeId, ViConstString elab); /*= Parameter position ========= */ ViStatus IviDll _VI_FUNC Ivi_ParamPositionError(ViInt32 parameterPosition); /* returns one of VI_ERROR_PARAMETER1, VI_ERROR_PARAMETER2, ..., VI_ERROR_PARAMETER8, IVI_ERROR_INVALID_PARAMETER */ /*****************************************************************************/ /*= Obsolete Functions and Defintions ========= */ /*****************************************************************************/ /* Function pointers */ typedef ViStatus (_VI_FUNC *Ivi_IviInitFuncPtr) ( ViRsrc resourceName, ViBoolean IDQuery, ViBoolean resetDevice, ViSession vi); typedef ViStatus (_VI_FUNC *Ivi_IviCloseFuncPtr) ( ViSession vi); /* Deferred I/O Updates */ #define IVI_ATTR_DEFER_UPDATE /* ViBoolean, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 51) #define IVI_ATTR_RETURN_DEFERRED_VALUES /* ViBoolean, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 52) /* if VI_TRUE, then when get an attribute value while a deferred update is pending, return the coerced deferred value */ #define IVI_ATTR_BUFFERED_IO_CALLBACK /* ViAddr, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 601) /* see Ivi_BufferedIOCallbackPtr typedef */ #define IVI_ATTR_SUPPORTS_WR_BUF_OPER_MODE /* ViBoolean, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 704) /* indicates whether instrument supports VISA buffered writes (VISA's VI_ATTR_WR_BUF_OPER_MODE) */ #define IVI_ATTR_UPDATING_VALUES /* ViBoolean, hidden */ (IVI_ENGINE_PUBLIC_ATTR_BASE + 708) /* is VI_TRUE while in Ivi_Update() */ /*****************************************************************************/ /*= Typedefs and contants for the Buffered I/O callback. ========= */ /*= The Buffered I/O callback is called when the I/O buffer needs ========= */ /*= to be flushed and before/after processing deferred updates. ========= */ /*= Different message parameters are passed to the callback to ========= */ /*= indicate the context in which it was called. ========= */ /*= A Default Buffered I/O callback is installed automatically. ========= */ /*= The default callback assumes VISA buffered I/O. ========= */ /*= If a specific instrument does not used VISA message-based ========= */ /*= I/O, use the IVI_ATTR_BUFFERED_IO_CALLBACK attribute to ========= */ /*= to set the callback function pointer to VI_NULL. ========= */ /*****************************************************************************/ typedef ViInt32 IviMessage; typedef ViStatus (_VI_FUNC *Ivi_BufferedIOCallbackPtr)(ViSession vi, IviMessage message); #define IVI_MSG_START_UPDATE 1 /* sent by Ivi_Update before processing deferred updates; Ivi_DefaultBufferedIOCallback responds by disabling VISA flush-on-write option; */ /* note: if the buffered I/O callback returns an error, the update is aborted */ #define IVI_MSG_END_UPDATE 2 /* sent by Ivi_Update after processing deferred updates; Ivi_DefaultBufferedIOCallback responds by restoring the original state of the VISA I/O session */ #define IVI_MSG_SUSPEND 3 /* sent by Ivi_Update before invoking opc callback, check status callback, and read callbacks */ /* note: nested suspend/resume pairs can occur */ #define IVI_MSG_RESUME 4 /* sent by Ivi_Update after invoking opc callback, check status callback, and read callbacks */ #define IVI_MSG_FLUSH 5 /* sent by Ivi_Update after invoking the write callback for an attribute that is marked with the IVI_VAL_FLUSH_ON_WRITE flag */ /* These functions are not supported on Linux and MacOSX */ #if !defined (_IVI_linux_) && !defined(_IVI_MacOSX_) /* prototype for the default buffered I/O callback */ ViStatus IviDll _VI_FUNC Ivi_DefaultBufferedIOCallback(ViSession vi, IviMessage message); ViStatus IviDll _VI_FUNC Ivi_AttributeUpdateIsPending(ViSession vi, ViConstString repCapName, ViAttr attributeId, ViBoolean *updatePending); ViStatus IviDll _VI_FUNC Ivi_Update(ViSession vi); /* Define a buffered write call in IVI that will be used until it is implemented in VISA. Driver developers should not call the Ivi_BufWrite function directly and use the VISA named function (viBufWrite) instead. This function is obsolete and should not be used. Use viBufWrite instead */ #if (VI_SPEC_VERSION < 0x00200000L) #define viBufWrite Ivi_BufWrite #endif ViStatus IviDll _VI_FUNC Ivi_BufWrite (ViSession vi, ViBuf buf, ViUInt32 count, ViUInt32 *rc); #endif /*= Interchangeability Checking ======== */ /*****************************************************************************/ /* Interchange Check Methods: The class drivers pass the following values */ /* to the Ivi_SetInterchangeCheckMethod function to identify the type of the*/ /* interchange checking that the IVI Engine performs when the class driver */ /* calls the Ivi_PerformInterchangeCheck function. */ /*****************************************************************************/ #define IVI_VAL_CHECK_IN_USER_SPECIFIED_STATE 1 #define IVI_VAL_CHECK_READ_ONLY_ATTR_NEVER_SET 2 #define IVI_VAL_CHECK_CALL_CLASS_CALLBACK 3 #define IVI_VAL_CHECK_EXEMPT 4 ViStatus IviDll _VI_FUNC Ivi_InterchangeCheckAttribute (ViSession vi, ViConstString repCapName, ViAttr attrId, ViInt32 method, ViInt32 funcEnum); ViStatus IviDll _VI_FUNC Ivi_PerformInterchangeCheck (ViSession vi, IviStringValueTable attributes, ViInt32 funcEnum); ViStatus IviDll _VI_FUNC Ivi_SetInterchangeCheckMethod (ViSession vi, ViConstString repCapName, ViAttr attrId, ViInt32 method); void IviDll _VI_FUNC IviDCPwr_InterchangeCheck (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviDmm_InterchangeCheck (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviFgen_InterchangeCheck (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviScope_InterchangeCheck (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviSwtch_InterchangeCheck (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviDmm_DisableUnusedExtensions (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviFgen_DisableUnusedExtensions (ViSession vi, ViConstString funcName); void IviDll _VI_FUNC IviScope_DisableUnusedExtensions (ViSession vi, ViConstString funcName); /*****************************************************************************/ /*= Shortcut macros for class and specific instrument drivers ======== */ /*****************************************************************************/ #define Ivi_Decimalize(x) (((x>>8)*100)+(((x >> 4) & 0xF)*10)+(x & 0xF)) #define Ivi_ConvertVISAVer(x) ((((x>>20)*100)+(((x >> 8) & 0xFFF)*10)+(x & 0xFF))/100.0) #if defined (_CVI_) #define IVI_COMPILER_NAME "CVI" #define IVI_COMPILER_VER_NUM ((_CVI_)/100.0) #elif defined(__WATCOMC__) #define IVI_COMPILER_NAME "Watcom" #define IVI_COMPILER_VER_NUM ((__WATCOMC__)/100.0) #elif defined(_MSC_VER) #define IVI_COMPILER_NAME "MSVC" #define IVI_COMPILER_VER_NUM (14.0) #elif defined(__BORLANDC__) #define IVI_COMPILER_NAME "Borland" #define IVI_COMPILER_VER_NUM ((Ivi_Decimalize(__BORLANDC__))/100.0) #elif defined(__SC__) #define IVI_COMPILER_NAME "Symantec" #define IVI_COMPILER_VER_NUM ((Ivi_Decimalize(__SC__))/100.0) #elif defined(__SUNPRO_C) #define IVI_COMPILER_NAME "Sun C" #define IVI_COMPILER_VER_NUM ((Ivi_Decimalize(__SUNPRO_C))/100.0) #else #define IVI_COMPILER_NAME "Unknown" #define IVI_COMPILER_VER_NUM 1.0 #endif /* This section lists all attributes and values that became obsolete. Do not use */ /* those attributes and values in your drivers and applications. */ /* IVI_ATTR_CLASS_PREFIX is obsolete. Use IVI_ATTR_CLASS_DRIVER_PREFIX instead */ #define IVI_ATTR_CLASS_PREFIX /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 301) /* instrument prefix for the class driver; empty string if not using class driver */ /* IVI_ATTR_SPECIFIC_PREFIX is obsolete. Use IVI_ATTR_SPECIFIC_DRIVER_PREFIX instead */ #define IVI_ATTR_SPECIFIC_PREFIX /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 302) /* instrument prefix for the specific driver */ /* IVI_ATTR_MODULE_PATHNAME is obsolete. Use IVI_ATTR_SPECIFIC_DRIVER_LOCATOR instead */ #define IVI_ATTR_MODULE_PATHNAME /* ViString, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 303) /* the pathnname of the specific driver code module; from the configuration file */ /* IVI_ATTR_DRIVER_MAJOR_VERSION is obsolete. Use IVI_ATTR_SPECIFIC_DRIVER_MAJOR_VERSION instead */ #define IVI_ATTR_DRIVER_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 503) /* IVI_ATTR_DRIVER_MINOR_VERSION is obsolete. Use IVI_ATTR_SPECIFIC_DRIVER_MINOR_VERSION instead */ #define IVI_ATTR_DRIVER_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 504) /* IVI_ATTR_CLASS_MAJOR_VERSION is obsolete. Use IVI_ATTR_CLASS_DRIVER_MAJOR_VERSION instead */ #define IVI_ATTR_CLASS_MAJOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 505) /* IVI_ATTR_CLASS_MINOR_VERSION is obsolete. Use IVI_ATTR_CLASS_DRIVER_MINOR_VERSION instead */ #define IVI_ATTR_CLASS_MINOR_VERSION /* ViInt32, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 506) /* IVI_ATTR_DRIVER_REVISION is obsolete. Use IVI_ATTR_SPECIFIC_DRIVER_REVISION instead */ #define IVI_ATTR_DRIVER_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 551) /* IVI_ATTR_CLASS_REVISION is obsolete. Use IVI_ATTR_CLASS_DRIVER_REVISION instead */ #define IVI_ATTR_CLASS_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 552) /* IVI_ATTR_FIRMWARE_REVISION is obsolete. Use IVI_ATTR_INSTRUMENT_FIRMWARE_REVISION instead */ #define IVI_ATTR_FIRMWARE_REVISION /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 510) /* IVI_ATTR_SUPPORTED_CLASSES is obsolete. */ #define IVI_ATTR_SUPPORTED_CLASSES /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 323) /* IVI_ATTR_NUM_CHANNELS is obsolete. Use IVI_ATTR_CHANNEL_COUNT instead */ #define IVI_ATTR_NUM_CHANNELS /* ViInt32, not writable*/ (IVI_ENGINE_PUBLIC_ATTR_BASE + 203) /* set by the specific-driver; default: 1 */ /* IVI_ATTR_QUERY_INSTR_STATUS is obsolete. Use IVI_ATTR_QUERY_INSTRUMENT_STATUS instead */ #define IVI_ATTR_QUERY_INSTR_STATUS IVI_ATTR_QUERY_INSTRUMENT_STATUS /* IVI_ATTR_RESOURCE_DESCRIPTOR is obsolete. Use IVI_ATTR_IO_RESOURCE_DESCRIPTOR instead */ #define IVI_ATTR_RESOURCE_DESCRIPTOR IVI_ATTR_IO_RESOURCE_DESCRIPTOR /* IVI_ATTR_IO_SESSION is obsolete. Use IVI_ATTR_SYSTEM_IO_SESSION instead */ #define IVI_ATTR_IO_SESSION IVI_ATTR_SYSTEM_IO_SESSION #define IVI_ATTR_ATTRIBUTE_CAPABILITIES /* ViString, not user-writable*/(IVI_ENGINE_PUBLIC_ATTR_BASE + 403) #ifdef __cplusplus } #endif #endif /* IVI_HEADER */
75.560256
246
0.616777
33b8564a6bc093ff2374ed6f7f84cb1ee856d3a6
1,912
h
C
moos-ivp/ivp/src/lib_behaviors-marine/BHV_HeadingBias.h
EasternEdgeRobotics/2018
24df2fe56fa6d172ba3c34c1a97f249dbd796787
[ "MIT" ]
null
null
null
moos-ivp/ivp/src/lib_behaviors-marine/BHV_HeadingBias.h
EasternEdgeRobotics/2018
24df2fe56fa6d172ba3c34c1a97f249dbd796787
[ "MIT" ]
null
null
null
moos-ivp/ivp/src/lib_behaviors-marine/BHV_HeadingBias.h
EasternEdgeRobotics/2018
24df2fe56fa6d172ba3c34c1a97f249dbd796787
[ "MIT" ]
null
null
null
/*****************************************************************/ /* NAME: Michael Benjamin, Henrik Schmidt, and John Leonard */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: BHV_HeadingBias.h */ /* DATE: Mar 26th 2009 */ /* */ /* This file is part of MOOS-IvP */ /* */ /* MOOS-IvP is free software: you can redistribute it and/or */ /* modify it under the terms of the GNU General Public License */ /* as published by the Free Software Foundation, either version */ /* 3 of the License, or (at your option) any later version. */ /* */ /* MOOS-IvP 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 General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public */ /* License along with MOOS-IvP. If not, see */ /* <http://www.gnu.org/licenses/>. */ /*****************************************************************/ #ifndef BHV_HEADING_BIAS_HEADER #define BHV_HEADING_BIAS_HEADER #include "IvPBehavior.h" class BHV_HeadingBias : public IvPBehavior { public: BHV_HeadingBias(IvPDomain); ~BHV_HeadingBias() {} IvPFunction* onRunState(); bool setParam(std::string, std::string); protected: bool updateInfoIn(); protected: bool m_bias_right; double m_os_heading; }; #endif
29.875
67
0.47228
4bb488c6339eb8e36f544d49d775eb873555d5dc
545
c
C
tetris/src/game/make_tetrimino_fall.c
Bluberia/Tetris
9573b8f6d9f96d5fe01ec63991fcb3b346481d96
[ "Apache-2.0" ]
null
null
null
tetris/src/game/make_tetrimino_fall.c
Bluberia/Tetris
9573b8f6d9f96d5fe01ec63991fcb3b346481d96
[ "Apache-2.0" ]
null
null
null
tetris/src/game/make_tetrimino_fall.c
Bluberia/Tetris
9573b8f6d9f96d5fe01ec63991fcb3b346481d96
[ "Apache-2.0" ]
null
null
null
/* ** EPITECH PROJECT, 2017 ** tetris ** File description: ** make tetriminos fall */ #include <unistd.h> #include "proto.h" void fallin_tetrimino(game_t *info) { static int saved = 0; time_t actual = time(NULL); int time = (actual - info->data.time); int i = 0; if (time != saved) { for (int row = info->map[0] - 1; row > 0; row--) for (int y = 0; info->calc[row][y] != -1; y++) info->calc[row][y] = info->calc[row - 1][y]; for (; i < info->map[1]; i++) info->calc[0][i] = 0; info->calc[0][i] = -1; saved = time; } }
19.464286
50
0.561468
4be5f9ed695e78ab0b86ba6a76e98e518f69d3b7
708
c
C
layouts/community/ortho_4x12/jarred/keymap.c
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
layouts/community/ortho_4x12/jarred/keymap.c
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
layouts/community/ortho_4x12/jarred/keymap.c
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
#include QMK_KEYBOARD_H #include "jarred.h" #define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__) const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [_QW] = LAYOUT_ortho_4x12_wrapper(QWERTY_4x12), [_GAME] = LAYOUT_ortho_4x12_wrapper(GAME_4x12), [_LW] = LAYOUT_ortho_4x12_wrapper(LOWER_4x12), [_NV] = LAYOUT_ortho_4x12_wrapper(NAV_4x12), [_NP] = LAYOUT_ortho_4x12_wrapper(NUMPAD_4x12), [_MS] = LAYOUT_ortho_4x12_wrapper(MOUSE_4x12) }; #ifdef RGB_MATRIX_ENABLE void rgb_matrix_indicators_user(void) { #ifdef KEYBOARD_planck_light // Disable light in middle of 2U position of Planck Light rgb_matrix_set_color(42, 0, 0, 0); #endif } #endif
30.782609
69
0.754237
358ca15dc54209b57efe2a14e6b1c2fee8d31154
6,356
h
C
firmware/bitmapSend/bitmap1.h
AlexGyver/morzePrikols
00ac9e84d8da9e3c43cc2c035e4cd39f3fea5461
[ "MIT" ]
9
2020-01-18T10:59:38.000Z
2022-03-21T07:54:46.000Z
firmware/btTest/bitmap1.h
AlexGyver/morzePrikols
00ac9e84d8da9e3c43cc2c035e4cd39f3fea5461
[ "MIT" ]
null
null
null
firmware/btTest/bitmap1.h
AlexGyver/morzePrikols
00ac9e84d8da9e3c43cc2c035e4cd39f3fea5461
[ "MIT" ]
7
2020-01-18T10:59:44.000Z
2021-02-13T03:53:27.000Z
const uint16_t frame1[] PROGMEM = { 0x0000, 0x0000, 0x0000, 0x0000, 0x8000, 0xF800, 0xF800, 0xF800, 0xF800, 0xF820, 0x8000, 0x8000, 0x8000, 0x1040, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x9220, 0xF06C, 0xF827, 0xF860, 0xFB40, 0xFB40, 0xF827, 0xFB40, 0xF820, 0xF820, 0xAB40, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1040, 0xABA0, 0xAB40, 0xBC20, 0xFF20, 0xFF20, 0x8B80, 0xF6ED, 0xAC80, 0xAC80, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1040, 0xAB40, 0xF6ED, 0xABA0, 0xF6ED, 0xFF40, 0xFF40, 0x93A0, 0xF6ED, 0xFF40, 0xFF40, 0xC520, 0x0000, 0x0000, 0x0000, 0x0000, 0x1040, 0xAB40, 0xF6ED, 0xBC20, 0xBC40, 0xFF40, 0xFF40, 0xF6ED, 0xAC80, 0xF70C, 0xFF20, 0xFF40, 0x93A0, 0x0000, 0x0000, 0x0000, 0x0000, 0x8000, 0xBC20, 0xF70C, 0xFF20, 0xFF40, 0xFF40, 0xAC80, 0x8B60, 0x93A0, 0x93A0, 0xAC80, 0x1040, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1040, 0xFF20, 0xFF20, 0xFF20, 0xFF20, 0xFF20, 0xFF20, 0xF70C, 0x93A0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x9220, 0xF800, 0xFA80, 0xF800, 0x5B9E, 0xF800, 0xF860, 0x8B60, 0x8B60, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xAB00, 0xF800, 0xF800, 0xF801, 0xF800, 0x329F, 0x5B9E, 0xF800, 0xF06C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xAB00, 0xF800, 0xF800, 0xF827, 0x725D, 0x331F, 0xEF6F, 0x627E, 0x627E, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xAB40, 0xF827, 0xF801, 0xF801, 0xF16C, 0x535E, 0x433F, 0x0ABF, 0x429F, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1040, 0x725D, 0xF06C, 0xF940, 0xFEE0, 0xF70C, 0x331F, 0x02BF, 0x627E, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1040, 0x7A5D, 0xF16C, 0xFF20, 0xF70C, 0x331F, 0x329F, 0x0820, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x725D, 0x6A7E, 0x6BDE, 0x6BDE, 0x531E, 0x627E, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x9220, 0x9A60, 0x9A40, 0x8A00, 0x8A00, 0x8A00, 0x1040, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x9200, 0x9A60, 0x9A60, 0x9A60, 0x8A00, 0x8A00, 0x8A00, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 }; const uint16_t frame2[] PROGMEM = { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0800, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0020, 0xF816, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0002, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF816, 0xF815, 0xF816, 0xF836, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xF835, 0xFFFF, 0xFFFF, 0xF816, 0xF816, 0xF816, 0xFFFF, 0xFFFF, 0xF816, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xF816, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xFFFF, 0xFFFF, 0x04BD, 0x04BD, 0xF816, 0xFFFF, 0xFFFF, 0x04BD, 0x04BD, 0x0000, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xF836, 0xFFFF, 0xFFFF, 0x04BD, 0x0CBD, 0xF816, 0xFFFF, 0xFFFF, 0x04BD, 0x04BD, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xF816, 0xF816, 0xFFFF, 0xFFFF, 0xF816, 0xF816, 0xF816, 0xFFFF, 0xFFFF, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0x0000, 0xF816, 0xF816, 0xF816, 0x0000, 0x0000, 0xF816, 0xF816, 0x0000, 0xF816, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0xF816, 0x0000, 0x0000, 0xF816, 0x0000, 0x0000, 0x0000, 0xF816, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 }; const uint16_t frame3[] PROGMEM = { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFD15, 0xFD36, 0xFD36, 0xFD36, 0xDBF1, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFD56, 0xFD36, 0xFBD1, 0xFBB0, 0xFBB0, 0xFBB0, 0xFBB1, 0xFBF1, 0xF390, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFD36, 0xFD15, 0xFFB2, 0xFC31, 0xFBD1, 0xFBD1, 0xF34F, 0xF570, 0xFEF1, 0xFBD1, 0xEB0E, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFD36, 0xFF92, 0xFF2D, 0xFF0E, 0xFC90, 0xF34F, 0xF5F0, 0xFF50, 0xFF2D, 0xFEAE, 0xE2EE, 0x0000, 0x0000, 0x0000, 0x0000, 0xF4D4, 0xFF72, 0xFF2E, 0xFF0D, 0xFF0C, 0xFECE, 0xFEAD, 0xFEED, 0xFF0D, 0xFF0D, 0xFEED, 0xF60B, 0xDAAC, 0x0000, 0x0000, 0x0000, 0xFD36, 0xFFB1, 0xFF0D, 0x9BC9, 0x9BE9, 0xF6AD, 0xFF2D, 0xD5AC, 0x9BE9, 0xBCCB, 0xFF0D, 0xF66B, 0xE2EE, 0x0000, 0x0000, 0x0000, 0xFD36, 0xFFB1, 0xFF0D, 0xCD8C, 0xD5AB, 0xFECC, 0xFF2D, 0xE64C, 0xD5AB, 0xDDEC, 0xFF0D, 0xF66B, 0xE2EE, 0x0000, 0x0000, 0x0000, 0xFD36, 0xFE71, 0xFF4F, 0xFF2D, 0xFF2D, 0xFF2D, 0xFF2D, 0xFF2D, 0xFF2D, 0xFF0D, 0xFEAB, 0xED4C, 0xE2EE, 0x0000, 0x0000, 0x0000, 0xE473, 0xFBB1, 0xFFB2, 0xFF2D, 0xFF0D, 0xFF0D, 0xFF0D, 0xFF0D, 0xFF0D, 0xFEED, 0xF62B, 0xE2EE, 0xCA8C, 0x0000, 0x0000, 0x0000, 0x0000, 0xFBF1, 0xFFB2, 0xFF2D, 0xF68C, 0xEE8C, 0xEE8C, 0xEE8C, 0xF6AD, 0xFEEC, 0xF62B, 0xDACD, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFBD1, 0xFF92, 0xFF2E, 0x72C8, 0x5A07, 0x5A07, 0x5A07, 0xB4CA, 0xFEED, 0xF64D, 0xDAED, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFBF1, 0xFFB1, 0xFF2E, 0xFF2D, 0xFF2D, 0xFF2D, 0xFF0D, 0xF62D, 0xD2CD, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF390, 0xFBB0, 0xFBB0, 0xFBB0, 0xCACD, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 };
111.508772
129
0.737256
54a0e282d63de95c3589983117600e0bce370e1b
10,737
c
C
subversion/libsvn_fs_base/bdb/txn-table.c
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
7
2018-01-18T06:13:21.000Z
2020-07-09T03:46:16.000Z
subversion/libsvn_fs_base/bdb/txn-table.c
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
21
2016-08-11T09:43:43.000Z
2017-01-29T12:52:56.000Z
subversion/libsvn_fs_base/bdb/txn-table.c
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
6
2015-10-24T06:23:10.000Z
2022-03-07T11:25:05.000Z
/* txn-table.c : operations on the `transactions' table * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== */ #include <string.h> #include <assert.h> #include "bdb_compat.h" #include "svn_pools.h" #include "private/svn_skel.h" #include "dbt.h" #include "../err.h" #include "../fs.h" #include "../key-gen.h" #include "../util/fs_skels.h" #include "../trail.h" #include "../../libsvn_fs/fs-loader.h" #include "bdb-err.h" #include "txn-table.h" #include "svn_private_config.h" static svn_boolean_t is_committed(transaction_t *txn) { return (txn->kind == transaction_kind_committed); } int svn_fs_bdb__open_transactions_table(DB **transactions_p, DB_ENV *env, svn_boolean_t create) { const u_int32_t open_flags = (create ? (DB_CREATE | DB_EXCL) : 0); DB *txns; BDB_ERR(svn_fs_bdb__check_version()); BDB_ERR(db_create(&txns, env, 0)); BDB_ERR((txns->open)(SVN_BDB_OPEN_PARAMS(txns, NULL), "transactions", 0, DB_BTREE, open_flags, 0666)); /* Create the `next-key' table entry. */ if (create) { DBT key, value; BDB_ERR(txns->put(txns, 0, svn_fs_base__str_to_dbt(&key, NEXT_KEY_KEY), svn_fs_base__str_to_dbt(&value, "0"), 0)); } *transactions_p = txns; return 0; } svn_error_t * svn_fs_bdb__put_txn(svn_fs_t *fs, const transaction_t *txn, const char *txn_name, trail_t *trail, apr_pool_t *pool) { base_fs_data_t *bfd = fs->fsap_data; svn_skel_t *txn_skel; DBT key, value; /* Convert native type to skel. */ SVN_ERR(svn_fs_base__unparse_transaction_skel(&txn_skel, txn, pool)); /* Only in the context of this function do we know that the DB call will not attempt to modify txn_name, so the cast belongs here. */ svn_fs_base__str_to_dbt(&key, txn_name); svn_fs_base__skel_to_dbt(&value, txn_skel, pool); svn_fs_base__trail_debug(trail, "transactions", "put"); return BDB_WRAP(fs, N_("storing transaction record"), bfd->transactions->put(bfd->transactions, trail->db_txn, &key, &value, 0)); } /* Allocate a Subversion transaction ID in FS, as part of TRAIL. Set *ID_P to the new transaction ID, allocated in POOL. */ static svn_error_t * allocate_txn_id(const char **id_p, svn_fs_t *fs, trail_t *trail, apr_pool_t *pool) { base_fs_data_t *bfd = fs->fsap_data; DBT query, result; apr_size_t len; char next_key[MAX_KEY_SIZE]; int db_err; svn_fs_base__str_to_dbt(&query, NEXT_KEY_KEY); /* Get the current value associated with the `next-key' key in the table. */ svn_fs_base__trail_debug(trail, "transactions", "get"); SVN_ERR(BDB_WRAP(fs, N_("allocating new transaction ID (getting 'next-key')"), bfd->transactions->get(bfd->transactions, trail->db_txn, &query, svn_fs_base__result_dbt(&result), 0))); svn_fs_base__track_dbt(&result, pool); /* Set our return value. */ *id_p = apr_pstrmemdup(pool, result.data, result.size); /* Bump to future key. */ len = result.size; svn_fs_base__next_key(result.data, &len, next_key); svn_fs_base__str_to_dbt(&query, NEXT_KEY_KEY); svn_fs_base__str_to_dbt(&result, next_key); svn_fs_base__trail_debug(trail, "transactions", "put"); db_err = bfd->transactions->put(bfd->transactions, trail->db_txn, &query, &result, 0); return BDB_WRAP(fs, N_("bumping next transaction key"), db_err); } svn_error_t * svn_fs_bdb__create_txn(const char **txn_name_p, svn_fs_t *fs, const svn_fs_id_t *root_id, trail_t *trail, apr_pool_t *pool) { const char *txn_name; transaction_t txn; SVN_ERR(allocate_txn_id(&txn_name, fs, trail, pool)); txn.kind = transaction_kind_normal; txn.root_id = root_id; txn.base_id = root_id; txn.proplist = NULL; txn.copies = NULL; txn.revision = SVN_INVALID_REVNUM; SVN_ERR(svn_fs_bdb__put_txn(fs, &txn, txn_name, trail, pool)); *txn_name_p = txn_name; return SVN_NO_ERROR; } svn_error_t * svn_fs_bdb__delete_txn(svn_fs_t *fs, const char *txn_name, trail_t *trail, apr_pool_t *pool) { base_fs_data_t *bfd = fs->fsap_data; DBT key; transaction_t *txn; /* Make sure TXN is dead. */ SVN_ERR(svn_fs_bdb__get_txn(&txn, fs, txn_name, trail, pool)); if (is_committed(txn)) return svn_fs_base__err_txn_not_mutable(fs, txn_name); /* Delete the transaction from the `transactions' table. */ svn_fs_base__str_to_dbt(&key, txn_name); svn_fs_base__trail_debug(trail, "transactions", "del"); return BDB_WRAP(fs, N_("deleting entry from 'transactions' table"), bfd->transactions->del(bfd->transactions, trail->db_txn, &key, 0)); } svn_error_t * svn_fs_bdb__get_txn(transaction_t **txn_p, svn_fs_t *fs, const char *txn_name, trail_t *trail, apr_pool_t *pool) { base_fs_data_t *bfd = fs->fsap_data; DBT key, value; int db_err; svn_skel_t *skel; transaction_t *transaction; /* Only in the context of this function do we know that the DB call will not attempt to modify txn_name, so the cast belongs here. */ svn_fs_base__trail_debug(trail, "transactions", "get"); db_err = bfd->transactions->get(bfd->transactions, trail->db_txn, svn_fs_base__str_to_dbt(&key, txn_name), svn_fs_base__result_dbt(&value), 0); svn_fs_base__track_dbt(&value, pool); if (db_err == DB_NOTFOUND) return svn_fs_base__err_no_such_txn(fs, txn_name); SVN_ERR(BDB_WRAP(fs, N_("reading transaction"), db_err)); /* Parse TRANSACTION skel */ skel = svn_skel__parse(value.data, value.size, pool); if (! skel) return svn_fs_base__err_corrupt_txn(fs, txn_name); /* Convert skel to native type. */ SVN_ERR(svn_fs_base__parse_transaction_skel(&transaction, skel, pool)); *txn_p = transaction; return SVN_NO_ERROR; } svn_error_t * svn_fs_bdb__get_txn_list(apr_array_header_t **names_p, svn_fs_t *fs, trail_t *trail, apr_pool_t *pool) { base_fs_data_t *bfd = fs->fsap_data; apr_size_t const next_key_key_len = strlen(NEXT_KEY_KEY); apr_pool_t *subpool = svn_pool_create(pool); apr_array_header_t *names; DBC *cursor; DBT key, value; int db_err, db_c_err; /* Allocate the initial names array */ names = apr_array_make(pool, 4, sizeof(const char *)); /* Create a database cursor to list the transaction names. */ svn_fs_base__trail_debug(trail, "transactions", "cursor"); SVN_ERR(BDB_WRAP(fs, N_("reading transaction list (opening cursor)"), bfd->transactions->cursor(bfd->transactions, trail->db_txn, &cursor, 0))); /* Build a null-terminated array of keys in the transactions table. */ for (db_err = svn_bdb_dbc_get(cursor, svn_fs_base__result_dbt(&key), svn_fs_base__result_dbt(&value), DB_FIRST); db_err == 0; db_err = svn_bdb_dbc_get(cursor, svn_fs_base__result_dbt(&key), svn_fs_base__result_dbt(&value), DB_NEXT)) { transaction_t *txn; svn_skel_t *txn_skel; svn_error_t *err; /* Clear the per-iteration subpool */ svn_pool_clear(subpool); /* Track the memory alloc'd for fetching the key and value here so that when the containing pool is cleared, this memory is freed. */ svn_fs_base__track_dbt(&key, subpool); svn_fs_base__track_dbt(&value, subpool); /* Ignore the "next-key" key. */ if (key.size == next_key_key_len && 0 == memcmp(key.data, NEXT_KEY_KEY, next_key_key_len)) continue; /* Parse TRANSACTION skel */ txn_skel = svn_skel__parse(value.data, value.size, subpool); if (! txn_skel) { svn_bdb_dbc_close(cursor); return svn_fs_base__err_corrupt_txn (fs, apr_pstrmemdup(pool, key.data, key.size)); } /* Convert skel to native type. */ if ((err = svn_fs_base__parse_transaction_skel(&txn, txn_skel, subpool))) { svn_bdb_dbc_close(cursor); return svn_error_trace(err); } /* If this is an immutable "committed" transaction, ignore it. */ if (is_committed(txn)) continue; /* Add the transaction name to the NAMES array, duping it into POOL. */ APR_ARRAY_PUSH(names, const char *) = apr_pstrmemdup(pool, key.data, key.size); } /* Check for errors, but close the cursor first. */ db_c_err = svn_bdb_dbc_close(cursor); if (db_err != DB_NOTFOUND) { SVN_ERR(BDB_WRAP(fs, N_("reading transaction list (listing keys)"), db_err)); } SVN_ERR(BDB_WRAP(fs, N_("reading transaction list (closing cursor)"), db_c_err)); /* Destroy the per-iteration subpool */ svn_pool_destroy(subpool); *names_p = names; return SVN_NO_ERROR; }
32.935583
80
0.604172
54b47ef41f3a3f9ed6d706b53ff51ab806d17f78
324
h
C
Pods/Headers/Public/AXProject/CircleView.h
GG-beyond/AX
a8ade5b5b80e17f47300693cad0b885be27303a9
[ "MIT" ]
null
null
null
Pods/Headers/Public/AXProject/CircleView.h
GG-beyond/AX
a8ade5b5b80e17f47300693cad0b885be27303a9
[ "MIT" ]
null
null
null
Pods/Headers/Public/AXProject/CircleView.h
GG-beyond/AX
a8ade5b5b80e17f47300693cad0b885be27303a9
[ "MIT" ]
null
null
null
// // CircleView.h // AnXin // // Created by anxindeli on 15/10/8. // Copyright (c) 2015年 anxindeli. All rights reserved. // #import <UIKit/UIKit.h> @interface CircleView : UIView @property (nonatomic, assign) CGFloat value;//变化的值 @property (nonatomic, strong) UILabel *progressLabel; - (void)creatCircleViews; @end
19.058824
55
0.70679
729fd4712d166662db790e1a86a9dd60b005b875
3,311
h
C
editor/context/ThumbmailCache.h
ValtoGameEngines/Yave-Engine
aa8850c1e46ba2017db799eca43cee835db3d3b8
[ "MIT" ]
2
2020-07-20T19:05:26.000Z
2021-01-09T14:42:22.000Z
editor/context/ThumbmailCache.h
ValtoGameEngines/Yave-Engine
aa8850c1e46ba2017db799eca43cee835db3d3b8
[ "MIT" ]
null
null
null
editor/context/ThumbmailCache.h
ValtoGameEngines/Yave-Engine
aa8850c1e46ba2017db799eca43cee835db3d3b8
[ "MIT" ]
1
2020-06-29T08:05:53.000Z
2020-06-29T08:05:53.000Z
/******************************* Copyright (c) 2016-2020 Grégoire Angerand Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **********************************/ #ifndef EDITOR_UTILS_THUMBMAILCACHE_H #define EDITOR_UTILS_THUMBMAILCACHE_H #include <editor/editor.h> #include <y/core/Functor.h> #include <y/core/HashMap.h> #include <y/concurrent/StaticThreadPool.h> #include <yave/assets/AssetPtr.h> #include <yave/graphics/images/ImageView.h> #include <yave/ecs/EntityWorld.h> #include <yave/scene/SceneView.h> #include <yave/framegraph/FrameGraphResourcePool.h> #include <future> namespace editor { class ThumbmailCache : NonMovable, public ContextLinked { struct ThumbmailData { ThumbmailData(DevicePtr dptr, usize size, AssetId asset); StorageTexture image; TextureView view; const AssetId id; core::Vector<std::pair<core::String, core::String>> properties; }; struct SceneData : NonMovable { SceneData(ContextPtr ctx, const AssetPtr<StaticMesh>& mesh, const AssetPtr<Material>& mat); ecs::EntityWorld world; SceneView view; }; using RenderFunc = core::Function<std::unique_ptr<ThumbmailData>(CmdBufferRecorder&)>; struct LoadingRequest { GenericAssetPtr asset; RenderFunc func; }; public: using ThumbmailView = std::reference_wrapper<const TextureView>; struct Thumbmail { TextureView* image = nullptr; core::Span<std::pair<core::String, core::String>> properties; }; ThumbmailCache(ContextPtr ctx, usize size = 256); math::Vec2ui thumbmail_size() const; Thumbmail get_thumbmail(AssetId asset); void clear(); private: void request_thumbmail(AssetId id); void submit_and_set(CmdBufferRecorder& recorder, std::unique_ptr<ThumbmailData> thumb); std::unique_ptr<ThumbmailData> render_thumbmail(CmdBufferRecorder& recorder, const AssetPtr<Texture>& tex) const; std::unique_ptr<ThumbmailData> render_thumbmail(CmdBufferRecorder& recorder, AssetId id, const AssetPtr<StaticMesh>& mesh, const AssetPtr<Material>& mat) const; usize _size; std::shared_ptr<FrameGraphResourcePool> _resource_pool; core::ExternalHashMap<AssetId, std::unique_ptr<ThumbmailData>> _thumbmails; std::mutex _lock; concurrent::WorkerThread _render_thread = concurrent::WorkerThread("Thumbmail rendering thread"); }; } #endif // EDITOR_UTILS_THUMBMAILCACHE_H
31.836538
162
0.759891
607b0046b1fbac04fb8ee484541fc98a9f3146f5
95
h
C
MM_EMJGameProject/Source/MM_EMJGameProject/MM_EMJGameProject.h
MicosMacosGames/EpicMegaJam_MicosMacos
1db45728a88c7af25ce2e6d0de23bf54c1f05bc6
[ "MIT" ]
1
2020-12-11T21:06:19.000Z
2020-12-11T21:06:19.000Z
MM_EMJGameProject/Source/MM_EMJGameProject/MM_EMJGameProject.h
MicosMacosGames/EpicMegaJam_MicosMacos
1db45728a88c7af25ce2e6d0de23bf54c1f05bc6
[ "MIT" ]
null
null
null
MM_EMJGameProject/Source/MM_EMJGameProject/MM_EMJGameProject.h
MicosMacosGames/EpicMegaJam_MicosMacos
1db45728a88c7af25ce2e6d0de23bf54c1f05bc6
[ "MIT" ]
null
null
null
// Copyright described in the Repository LICENSE file #pragma once #include "CoreMinimal.h"
13.571429
53
0.768421
e66db107f88829e83ed0e5887caa9633149db044
5,039
h
C
include/allegro_flare/useful3d.h
allegroflare/allegro_flare
21d6fe2a5a5323102285598c8a8c75b393ce0322
[ "MIT" ]
11
2019-10-18T03:14:36.000Z
2022-02-28T17:07:43.000Z
include/allegro_flare/useful3d.h
allegroflare/allegro_flare
21d6fe2a5a5323102285598c8a8c75b393ce0322
[ "MIT" ]
30
2019-10-17T01:23:47.000Z
2021-03-04T16:38:39.000Z
include/allegro_flare/useful3d.h
allegroflare/allegro_flare
21d6fe2a5a5323102285598c8a8c75b393ce0322
[ "MIT" ]
4
2020-02-25T18:17:31.000Z
2021-04-17T05:06:52.000Z
#ifndef __AF_USEFUL_3D_HEADER #define __AF_USEFUL_3D_HEADER #include <AllegroFlare/Useful.hpp> #include <AllegroFlare/Color.hpp> #include <math.h> // for fabs namespace allegro_flare { /* static vec3d cross_product(vec3d A, vec3d B) { vec3d vector; vector.x = A.y*B.z - B.y*A.z; vector.y = B.x*A.z - A.x*B.z; vector.z = A.x*B.y - A.y*B.x; return vector; } static float dot_product(vec3d A, vec3d B) { return A * B; } */ // http://www.scratchapixel.com/lessons/3d-basic-lessons/lesson-7-intersecting-simple-shapes/ray-plane-and-ray-disk-intersection/ // I believe... // l0 is the origin of the ray // l is the ray direction // p0 is a point on the plane // n is the plane normal // THIS HAS NOT BEEN USED, YET: static bool intersectPlane(const AllegroFlare::vec3d &n, const AllegroFlare::vec3d &p0, const AllegroFlare::vec3d& l0, const AllegroFlare::vec3d &l, float &d) { // assuming vectors are all normalized float denom = dot_product(n, l); if (denom > 1e-6) { AllegroFlare::vec3d p0l0 = p0 - l0; d = dot_product(p0l0, n) / denom; return (d >= 0); } return false; } class Ray // TODO: rename this to Ray3D and make an alternative Ray2D { public: AllegroFlare::vec3d orig; AllegroFlare::vec3d dir; Ray(AllegroFlare::vec3d orig, AllegroFlare::vec3d dir) : orig(orig) , dir(dir) {} }; class IsectData { public: float t; float u; float v; IsectData() : t(0) , u(0) , v(0) {} }; class Triangle { public: AllegroFlare::vec3d v0, v1, v2; Triangle(AllegroFlare::vec3d v0, AllegroFlare::vec3d v1, AllegroFlare::vec3d v2) : v0(v0) , v1(v1) , v2(v2) {} bool intersect(const Ray &r, IsectData &isectData) const { //http://www.scratchapixel.com/lessons/3d-basic-lessons/lesson-9-ray-triangle-intersection/m-ller-trumbore-algorithm/ //#ifdef MOLLER_TRUMBORE AllegroFlare::vec3d edge1 = v1 - v0; AllegroFlare::vec3d edge2 = v2 - v0; AllegroFlare::vec3d pvec = cross_product(r.dir, edge2); float det = dot_product(edge1, pvec); if (det == 0) return false; float invDet = 1 / det; AllegroFlare::vec3d tvec = r.orig - v0; isectData.u = dot_product(tvec, pvec) * invDet; if (isectData.u < 0 || isectData.u > 1) return false; AllegroFlare::vec3d qvec = cross_product(tvec, edge1); isectData.v = dot_product(r.dir, qvec) * invDet; if (isectData.v < 0 || isectData.u + isectData.v > 1) return false; isectData.t = dot_product(edge2, qvec) * invDet; //#else // ... //#endif return true; } ALLEGRO_VERTEX _create_vtx(AllegroFlare::vec3d vec, ALLEGRO_COLOR col) { return AllegroFlare::build_vertex(vec.x, vec.y, vec.z, col, 0, 0); } void draw(ALLEGRO_COLOR col = AllegroFlare::color::orange) { ALLEGRO_VERTEX vtx[3]; vtx[0] = _create_vtx(v0, col); vtx[1] = _create_vtx(v1, col); vtx[2] = _create_vtx(v2, col); al_draw_prim(vtx, NULL, NULL, 0, 3, ALLEGRO_PRIM_TRIANGLE_FAN); } }; static void draw_3d_line(AllegroFlare::vec3d start, AllegroFlare::vec3d end, ALLEGRO_COLOR col=AllegroFlare::color::red) { ALLEGRO_VERTEX vtx[2]; vtx[0] = AllegroFlare::build_vertex(start.x, start.y, start.z, col, 0, 0); vtx[1] = AllegroFlare::build_vertex(end.x, end.y, end.z, col, 0, 0); al_draw_prim(&vtx[0], NULL, NULL, 0, 2, ALLEGRO_PRIM_LINE_LIST); } static ALLEGRO_VERTEX create_vtx(AllegroFlare::vec3d vec, ALLEGRO_COLOR col) { return AllegroFlare::build_vertex(vec.x, vec.y, vec.z, col, 0, 0); } static AllegroFlare::vec3d centroid(AllegroFlare::vec3d v1, AllegroFlare::vec3d v2, AllegroFlare::vec3d v3) { return (v1 + v2 + v3) / 3; } static AllegroFlare::vec3d tovec3d(ALLEGRO_VERTEX v1) { return AllegroFlare::vec3d(v1.x, v1.y, v1.z); } static AllegroFlare::vec3d centroid(AllegroFlare::vec3d v1, AllegroFlare::vec3d v2, AllegroFlare::vec3d v3, AllegroFlare::vec3d v4) { return (v1 + v2 + v3 + v4) / 4; } static void draw_3d_triangle(AllegroFlare::vec3d v1, AllegroFlare::vec3d v2, AllegroFlare::vec3d v3, ALLEGRO_COLOR col) { ALLEGRO_VERTEX vtx[3]; vtx[0] = create_vtx(v1, col); vtx[1] = create_vtx(v2, col); vtx[2] = create_vtx(v3, col); al_draw_prim(vtx, NULL, NULL, 0, 3, ALLEGRO_PRIM_TRIANGLE_FAN); } static bool basically_equal(const AllegroFlare::vec3d &first, const AllegroFlare::vec3d &other, float threshold) { return fabs(first.x - other.x) < threshold && fabs(first.y - other.y) < threshold && fabs(first.z - other.z) < threshold; } } #endif
24.580488
161
0.604287
fd1477ec73cb5708e54c2149c0704ed80164953d
42,233
h
C
inetcore/outlookexpress/inc/msoert.h
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetcore/outlookexpress/inc/msoert.h
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetcore/outlookexpress/inc/msoert.h
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// -------------------------------------------------------------------------------- // Msoert.h // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Debug Crap // -------------------------------------------------------------------------------- #include "msoedbg.h" // -------------------------------------------------------------------------------- // GUIDS // -------------------------------------------------------------------------------- #if !defined(__MSOERT_H) || defined(INITGUID) // {220D5CC1-853A-11d0-84BC-00C04FD43F8F} #ifdef ENABLE_RULES DEFINE_GUID(PST_IDENT_TYPE_GUID, 0x220d5cc3, 0x853a, 0x11d0, 0x84, 0xbc, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #elif defined(N_TEST) DEFINE_GUID(PST_IDENT_TYPE_GUID, 0x220d5cc2, 0x853a, 0x11d0, 0x84, 0xbc, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #else DEFINE_GUID(PST_IDENT_TYPE_GUID, 0x220d5cc1, 0x853a, 0x11d0, 0x84, 0xbc, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #endif // {417E2D75-84BD-11d0-84BB-00C04FD43F8F} #ifdef ENABLE_RULES DEFINE_GUID(PST_IMNACCT_SUBTYPE_GUID, 0x417e2d77, 0x84bd, 0x11d0, 0x84, 0xbb, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #elif defined(N_TEST) DEFINE_GUID(PST_IMNACCT_SUBTYPE_GUID, 0x417e2d76, 0x84bd, 0x11d0, 0x84, 0xbb, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #else DEFINE_GUID(PST_IMNACCT_SUBTYPE_GUID, 0x417e2d75, 0x84bd, 0x11d0, 0x84, 0xbb, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #endif // {6ADF2E20-8803-11d0-84BF-00C04FD43F8F} DEFINE_GUID(PST_CERTS_SUBTYPE_GUID, 0x6adf2e20, 0x8803, 0x11d0, 0x84, 0xbf, 0x0, 0xc0, 0x4f, 0xd4, 0x3f, 0x8f); #endif // !defined(__MSOERT_H) || defined(INITGUID) // -------------------------------------------------------------------------------- // Include the rest of the stuff // -------------------------------------------------------------------------------- #ifndef __MSOERT_H #define __MSOERT_H // -------------------------------------------------------------------------------- // Define API decoration for direct importing of DLL references. // -------------------------------------------------------------------------------- // OESTDAPI - Things exported from msoert2.dll (no debug exports) #if !defined(_MSOERT_) #define OESTDAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE #else // _MSOERT_ #define OESTDAPI_(type) STDAPI_(type) #endif // !_MSOERT_ #define DLLEXPORT __declspec(dllexport) #ifndef NOFLAGS #define NOFLAGS 0 #endif // -------------------------------------------------------------------------------- // IN OUT OPTIONS Definitions // -------------------------------------------------------------------------------- #ifndef OUT #define OUT #endif #ifndef IN #define IN #endif #ifndef IN_OUT #define IN_OUT #endif #ifndef IN_OPT #define IN_OPT #endif #ifndef OUT_OPT #define OUT_OPT #endif #ifndef IN_OUT_OPT #define IN_OUT_OPT #endif //WIn64 macros #ifdef _WIN64 #if defined (_AMD64_) || defined (_IA64_) #define ALIGNTYPE LARGE_INTEGER #else #define ALIGNTYPE DWORD #endif #define ALIGN ((ULONG) (sizeof(ALIGNTYPE) - 1)) #define LcbAlignLcb(lcb) (((lcb) + ALIGN) & ~ALIGN) #define PbAlignPb(pb) ((LPBYTE) ((((DWORD) (pb)) + ALIGN) & ~ALIGN)) #define MYALIGN ((POINTER_64_INT) (sizeof(ALIGNTYPE) - 1)) #define MyPbAlignPb(pb) ((LPBYTE) ((((POINTER_64_INT) (pb)) + MYALIGN) & ~MYALIGN)) #else //!WIN64 #define LcbAlignLcb(lcb) (lcb) #define PbAlignPb(pb) (pb) #define MyPbAlignPb(pb) (pb) #endif // -------------------------------------------------------------------------------- // CRLF Definitions // -------------------------------------------------------------------------------- #define wchCR L'\r' #define wchLF L'\n' #define chCR '\r' #define chLF '\n' #define szCRLF "\r\n" // -------------------------------------------------------------------------------- // Versioning Magic // -------------------------------------------------------------------------------- typedef enum tagOEDLLVERSION { OEDLL_VERSION_5=1 } OEDLLVERSION; #define OEDLL_VERSION_CURRENT OEDLL_VERSION_5 #define STR_GETDLLMAJORVERSION "GetDllMajorVersion" typedef OEDLLVERSION (APIENTRY *PFNGETDLLMAJORVERSION)(void); // -------------------------------------------------------------------------------- // RGB_AUTOCOLOR // -------------------------------------------------------------------------------- #define RGB_AUTOCOLOR ((COLORREF)-1) // -------------------------------------------------------------------------------- // NEXTID // -------------------------------------------------------------------------------- #define NEXTID(pidl) ((LPITEMIDLIST)(((BYTE *)(pidl))+(pidl)->mkid.cb)) #define PAD4(x) (((x)+3)&~3) // -------------------------------------------------------------------------------- // INLINE // -------------------------------------------------------------------------------- #ifdef INLINE #error define overlap #else // speed up debug build by turning off inline functions #ifdef DEBUG #define INLINE #else #define INLINE inline #endif #endif // -------------------------------------------------------------------------------- // IS_EXTENDED // -------------------------------------------------------------------------------- #define IS_EXTENDED(ch) \ ((ch > 126 || ch < 32) && ch != '\t' && ch != '\n' && ch != '\r') // -------------------------------------------------------------------------------- // Flag Utility Functions // -------------------------------------------------------------------------------- #define FLAGSET(_dw, _f) do {_dw |= (_f);} while (0) #define FLAGTOGGLE(_dw, _f) do {_dw ^= (_f);} while (0) #define FLAGCLEAR(_dw, _f) do {_dw &= ~(_f);} while (0) #define ISFLAGSET(_dw, _f) (BOOL)(((_dw) & (_f)) == (_f)) #define ISFLAGCLEAR(_dw, _f) (BOOL)(((_dw) & (_f)) != (_f)) // -------------------------------------------------------------------------------- // Used for building an IDataObject format enumerator // -------------------------------------------------------------------------------- #define SETDefFormatEtc(fe, cf, med) {\ (fe).cfFormat = ((CLIPFORMAT) (cf)); \ (fe).dwAspect = DVASPECT_CONTENT; \ (fe).ptd = NULL; \ (fe).tymed = med; \ (fe).lindex = -1; \ } // -------------------------------------------------------------------------------- // Some defines to create bit fields easier // -------------------------------------------------------------------------------- #define FLAG01 0x00000001 #define FLAG02 0x00000002 #define FLAG03 0x00000004 #define FLAG04 0x00000008 #define FLAG05 0x00000010 #define FLAG06 0x00000020 #define FLAG07 0x00000040 #define FLAG08 0x00000080 #define FLAG09 0x00000100 #define FLAG10 0x00000200 #define FLAG11 0x00000400 #define FLAG12 0x00000800 #define FLAG13 0x00001000 #define FLAG14 0x00002000 #define FLAG15 0x00004000 #define FLAG16 0x00008000 #define FLAG17 0x00010000 #define FLAG18 0x00020000 #define FLAG19 0x00040000 #define FLAG20 0x00080000 #define FLAG21 0x00100000 #define FLAG22 0x00200000 #define FLAG23 0x00400000 #define FLAG24 0x00800000 #define FLAG25 0x01000000 #define FLAG26 0x02000000 #define FLAG27 0x04000000 #define FLAG28 0x08000000 #define FLAG29 0x10000000 #define FLAG30 0x20000000 #define FLAG31 0x40000000 #define FLAG32 0x80000000 // -------------------------------------------------------------------------------- // Support Inclusion into a C file // -------------------------------------------------------------------------------- #ifdef __cplusplus extern "C" { #endif // -------------------------------------------------------------------------------- // Common String Lengths // -------------------------------------------------------------------------------- #define cchMaxDate 64 #define cchMaxTime 22 // -------------------------------------------------------------------------------- // ARRAYSIZE - Don't use this on extern'ed global data structures, it won't work // -------------------------------------------------------------------------------- #ifndef ARRAYSIZE #define ARRAYSIZE(_rg) (sizeof((_rg))/sizeof((_rg)[0])) #endif // ARRAYSIZE // -------------------------------------------------------------------------------- // HANDLE_COMMAND - Used in a WindowProc to simplify handling of WM_COMMAND messages // -------------------------------------------------------------------------------- #define HANDLE_COMMAND(hwnd, id, hwndCtl, codeNotify, fn) \ case (id): { (fn)((HWND)(hwnd), (HWND)(hwndCtl), (UINT)(codeNotify)); break; } // -------------------------------------------------------------------------------- // Standard Boolean Constants // -------------------------------------------------------------------------------- #define fFalse ((BOOL) 0) #define fTrue ((BOOL) 1) // -------------------------------------------------------------------------------- // Storage class macros // -------------------------------------------------------------------------------- #ifdef _X86_ #define BEGIN_CODESPACE_DATA data_seg(".rdata") #define BEGIN_NAME_CODESPACE_DATA(a) data_seg(".rdata$"#a, ".rdata") #define BEGIN_FUNCTION_CODESPACE_DATA data_seg(".rdata") #define END_CODESPACE_DATA data_seg() #define BEGIN_NAME_DATA(a) data_seg(".data$"#a, ".data") #define END_NAME_DATA data_seg() #else #define BEGIN_FUNCTION_CODESPACE_DATA #define BEGIN_NAME_CODESPACE_DATA(a) #define BEGIN_CODESPACE_DATA #define END_CODESPACE_DATA #define BEGIN_NAME_DATA(a) #define END_NAME_DATA #endif // -------------------------------------------------------------------------------- // Macro that causes the compiler to ignore a local variable or // parameter without generating a warning. // -------------------------------------------------------------------------------- #ifndef Unreferenced #define Unreferenced(a) ((void)a) #endif // -------------------------------------------------------------------------------- // SAFECAST - Insures that a cast is valid, otherwise it won't compile // -------------------------------------------------------------------------------- #define SAFECAST(_src, _type) (((_type)(_src)==(_src)?0:0), (_type)(_src)) // -------------------------------------------------------------------------------- // Computes the size of a member in a structure // -------------------------------------------------------------------------------- #define sizeofMember(s,m) sizeof(((s *)0)->m) #if 0 // -------------------------------------------------------------------------------- // Computes the byte offset to the parent class from a nested class // -------------------------------------------------------------------------------- #define _OEOffset(class, itf) ((UINT)&(((class *)0)->itf)) // -------------------------------------------------------------------------------- // Computes the parent interface of a nested class // -------------------------------------------------------------------------------- /------------------Merge Conflict------------------\ #define IToClass(class, itf, pitf) ((class *)(((LPSTR)pitf)-_OEOffset(class, itf))) #endif // -------------------------------------------------------------------------------- // SafeReleaseCnt - SafeRelease and set ulCount to the after release ref count // -------------------------------------------------------------------------------- #define SafeReleaseCnt(_object, _refcount) \ if (_object) { \ (_refcount) = (_object)->Release (); \ (_object) = NULL; \ } else // -------------------------------------------------------------------------------- // SafeRelease - Releases an object and sets the object to NULL // -------------------------------------------------------------------------------- #define SafeRelease(_object) \ if (_object) { \ (_object)->Release(); \ (_object) = NULL; \ } else // -------------------------------------------------------------------------------- // SafeFreeLibrary - Checks if _hinst is non null and then calls FreeLibrary // -------------------------------------------------------------------------------- #define SafeFreeLibrary(_hinst) \ if (_hinst) { \ FreeLibrary(_hinst); \ _hinst = NULL; \ } else // -------------------------------------------------------------------------------- // SafeCloseHandle // -------------------------------------------------------------------------------- #define SafeCloseHandle(_handle) \ if (_handle) { \ CloseHandle(_handle); \ _handle = NULL; \ } else // -------------------------------------------------------------------------------- // SafeUnmapViewOfFile // -------------------------------------------------------------------------------- #define SafeUnmapViewOfFile(_pView) \ if (_pView) { \ UnmapViewOfFile((LPVOID)_pView); \ _pView = NULL; \ } else // -------------------------------------------------------------------------------- // SafePidlFree // -------------------------------------------------------------------------------- #define SafePidlFree(_pidl) \ if (_pidl) { \ PidlFree(_pidl); \ _pidl = NULL; \ } else // -------------------------------------------------------------------------------- // SafeInternetCloseHandle // -------------------------------------------------------------------------------- #define SafeInternetCloseHandle(_handle) \ if (_handle) { \ InternetCloseHandle(_handle); \ _handle = NULL; \ } else // -------------------------------------------------------------------------------- // SafeDelete - safely deletes a non-referenced counted object // -------------------------------------------------------------------------------- #define SafeDelete(_obj) \ if (_obj) { \ delete _obj; \ _obj = NULL; \ } else // -------------------------------------------------------------------------------- // ReleaseObj - Releases an Object if it is not NULL // -------------------------------------------------------------------------------- #ifndef ReleaseObj #ifdef __cplusplus #define ReleaseObj(_object) (_object) ? (_object)->Release() : 0 #else #define ReleaseObj(_object) (_object) ? (_object)->lpVtbl->Release(_object) : 0 #endif // __cplusplus #endif // -------------------------------------------------------------------------------- // SafeSysFreeString - Frees a bstr if not NULL // -------------------------------------------------------------------------------- #define SafeSysFreeString(_x) \ if (_x) { \ SysFreeString(_x);\ _x = NULL; \ } else // ------------------------------------------------------------------------- // ReplaceInterface - Replaces a member interface with a new interface // ------------------------------------------------------------------------- #define ReplaceInterface(_pUnk, _pUnkNew) \ { \ if (_pUnk) \ (_pUnk)->Release(); \ if ((_pUnk) = (_pUnkNew)) \ (_pUnk)->AddRef(); \ } #ifdef __cplusplus } #endif // -------------------------------------------------------------------------------- // SetWndThisPtrOnCreate // -------------------------------------------------------------------------------- #define SetWndThisPtrOnCreate(hwnd, lpcs) \ SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)(((LPCREATESTRUCT)lpcs)->lpCreateParams)) // -------------------------------------------------------------------------------- // SetWndThisPtr // -------------------------------------------------------------------------------- #define SetWndThisPtr(hwnd, THIS) \ SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)THIS) // -------------------------------------------------------------------------------- // GetWndThisPtr // -------------------------------------------------------------------------------- #define GetWndThisPtr(hwnd) \ GetWindowLongPtr(hwnd, GWLP_USERDATA) // -------------------------------------------------------------------------------- // ListView Helper Macros // -------------------------------------------------------------------------------- #define ListView_GetSelFocused(_hwndlist) ListView_GetNextItem(_hwndlist, -1, LVNI_SELECTED|LVIS_FOCUSED) #define ListView_GetFirstSel(_hwndlist) ListView_GetNextItem(_hwndlist, -1, LVNI_SELECTED) #define ListView_GetFocusedItem(_hwndlist) ListView_GetNextItem(_hwndlist, -1, LVNI_FOCUSED) #define ListView_SelectItem(_hwndlist, _i) ListView_SetItemState(_hwndlist, _i, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED) #define ListView_UnSelectItem(_hwndlist, _i) ListView_SetItemState(_hwndlist, _i, 0, LVIS_SELECTED) #define ListView_FocusItem(_hwndlist, _i) ListView_SetItemState(_hwndlist, _i, LVIS_FOCUSED, LVIS_FOCUSED) #if (_WIN32_IE >= 0x0400) #define ListView_UnSelectAll(_hwndlist) { \ ListView_SetItemState(_hwndlist, -1, 0, LVIS_SELECTED|LVIS_FOCUSED); \ ListView_SetSelectionMark(_hwndlist, -1); \ } #else #define ListView_UnSelectAll(_hwndlist) ListView_SetItemState(_hwndlist, -1, 0, LVIS_SELECTED|LVIS_FOCUSED); #endif #define ListView_SelectAll(_hwndlist) ListView_SetItemState(_hwndlist, -1, LVIS_SELECTED, LVIS_SELECTED) // -------------------------------------------------------------------------------- // MAX Move Memory Definitions // -------------------------------------------------------------------------------- #ifdef RtlMoveMemory #undef RtlMoveMemory #ifdef __cplusplus extern "C" { #endif __declspec(dllimport) void RtlMoveMemory(void *, const void *, unsigned long); #ifdef __cplusplus } #endif #endif #ifndef MSOERT_NO_MEMUTIL // -------------------------------------------------------------------------------- // Memory Utility Functions // -------------------------------------------------------------------------------- extern IMalloc *g_pMalloc; // -------------------------------------------------------------------------------- // SafeMemFree // -------------------------------------------------------------------------------- #ifndef SafeMemFree #ifdef __cplusplus #define SafeMemFree(_pv) \ if (_pv) { \ g_pMalloc->Free(_pv); \ _pv = NULL; \ } else #else #define SafeMemFree(_pv) \ if (_pv) { \ g_pMalloc->lpVtbl->Free(g_pMalloc, _pv); \ _pv = NULL; \ } else #endif // __cplusplus #endif // SafeMemFree // -------------------------------------------------------------------------------- // MemFree // -------------------------------------------------------------------------------- #define MemFree(_pv) g_pMalloc->Free(_pv) #define ReleaseMem(_pv) MemFree(_pv) #define AthFreeString(_psz) g_pMalloc->Free((LPVOID)_psz) // -------------------------------------------------------------------------------- // Memory Allocation Functions // -------------------------------------------------------------------------------- LPVOID ZeroAllocate(DWORD cbSize); BOOL MemAlloc(LPVOID* ppv, ULONG cb); BOOL MemRealloc(LPVOID *ppv, ULONG cbNew); HRESULT HrAlloc(LPVOID *ppv, ULONG cb); HRESULT HrRealloc(LPVOID *ppv, ULONG cbNew); #endif // !MSOERT_NO_MEMUTIL // -------------------------------------------------------------------------------- // Debug Utility Functions // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_DEBUG #endif // !MSOERT_NO_DEBUG // -------------------------------------------------------------------------------- // String Utility Functions // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_STRUTIL #define CCHMAX_STRINGRES 512 // Used with HrFindInetTimeZone typedef struct tagINETTIMEZONE { LPSTR lpszZoneCode; INT cHourOffset; INT cMinuteOffset; } INETTIMEZONE, *LPINETTIMEZONE; // Used with CchFileTimeToDateTimeSz #define DTM_LONGDATE 0x00000001 #define DTM_NOSECONDS 0x00000002 #define DTM_NOTIME 0x00000004 #define DTM_NODATE 0x00000008 #define DTM_DOWSHORTDATE 0x00000010 #define DTM_FORCEWESTERN 0x00000020 #define DTM_NOTIMEZONEOFFSET 0x00000040 #define TOUPPERA(_ch) (CHAR)LOWORD(CharUpperA((LPSTR)(DWORD_PTR)MAKELONG(_ch, 0))) #define TOLOWERA(_ch) (CHAR)LOWORD(CharLowerA((LPSTR)(DWORD_PTR)MAKELONG(_ch, 0))) OESTDAPI_(LPWSTR) PszDupW(LPCWSTR pcwszSource); OESTDAPI_(LPSTR) PszDupA(LPCSTR pcszSource); OESTDAPI_(LPSTR) PszDupLenA(LPCSTR pcszSource, int nLen); OESTDAPI_(BOOL) FIsEmptyA(LPCSTR pcszString); OESTDAPI_(BOOL) FIsEmptyW(LPCWSTR pcwszString); OESTDAPI_(LPWSTR) PszToUnicode(UINT cp, LPCSTR pcszSource); OESTDAPI_(ULONG) UlStripWhitespace(LPTSTR lpsz, BOOL fLeading, BOOL fTrailing, ULONG *pcb); OESTDAPI_(ULONG) UlStripWhitespaceW(LPWSTR lpwsz, BOOL fLeading, BOOL fTrailing, ULONG *pcb); OESTDAPI_(LPSTR) PszSkipWhiteA(LPSTR psz); OESTDAPI_(LPWSTR) PszSkipWhiteW(LPWSTR psz); OESTDAPI_(LPSTR) PszScanToWhiteA(LPSTR psz); OESTDAPI_(LPSTR) PszScanToCharA(LPSTR psz, CHAR ch); OESTDAPI_(VOID) StripCRLF(LPSTR lpsz, ULONG *pcb); OESTDAPI_(LPSTR) PszAllocA(INT nLen); OESTDAPI_(LPWSTR) PszAllocW(INT nLen); OESTDAPI_(BOOL) FIsSpaceA(LPSTR psz); OESTDAPI_(BOOL) FIsSpaceW(LPWSTR psz); OESTDAPI_(LPSTR) PszToANSI(UINT cp, LPCWSTR pcwszSource); OESTDAPI_(UINT) StrToUintW(LPCWSTR lpSrc); OESTDAPI_(UINT) StrToUintA(LPCSTR lpSrc); OESTDAPI_(INT) IsDigit(LPSTR psz); OESTDAPI_(CHAR) ChConvertFromHex(CHAR ch); OESTDAPI_(LPSTR) PszFromANSIStreamA(LPSTREAM pstm); OESTDAPI_(HRESULT) HrIndexOfMonth(LPCSTR pszMonth, ULONG *pulIndex); OESTDAPI_(HRESULT) HrIndexOfWeek(LPCSTR pszDay, ULONG *pulIndex); OESTDAPI_(HRESULT) HrFindInetTimeZone(LPCSTR pszTimeZone, LPINETTIMEZONE pTimeZone); OESTDAPI_(LPCSTR) PszDayFromIndex(ULONG ulIndex); OESTDAPI_(LPCSTR) PszMonthFromIndex(ULONG ulIndex); OESTDAPI_(LPSTR) PszEscapeMenuStringA(LPCSTR pszSource, LPSTR pszQuoted, int cch); OESTDAPI_(INT) IsPrint(LPSTR psz); OESTDAPI_(INT) IsUpper(LPSTR psz); OESTDAPI_(INT) IsAlphaNum(LPSTR psz); OESTDAPI_(LPSTR) strtrim(char *s); OESTDAPI_(LPWSTR) strtrimW(WCHAR *s); OESTDAPI_(INT) CchFileTimeToDateTimeSz(FILETIME * pft, CHAR * szDateTime, int cch, DWORD dwFlags); OESTDAPI_(LPCSTR) StrChrExA(UINT codepage, LPCSTR pszString, CHAR ch); OESTDAPI_(BOOL) FIsValidFileNameCharW(WCHAR wch); OESTDAPI_(BOOL) FIsValidFileNameCharA(UINT codepage, CHAR ch); OESTDAPI_(ULONG) CleanupFileNameInPlaceA(UINT codepage, LPSTR psz); OESTDAPI_(ULONG) CleanupFileNameInPlaceW(LPWSTR pwsz); OESTDAPI_(INT) ReplaceChars(LPCSTR pszString, CHAR chFind, CHAR chReplace); OESTDAPI_(INT) ReplaceCharsW(LPCWSTR pszString, WCHAR chFind, WCHAR chReplace); OESTDAPI_(LPCSTR) _MSG(LPSTR pszFormat, ...); OESTDAPI_(BOOL) IsValidFileIfFileUrl(LPSTR pszUrl); OESTDAPI_(BOOL) IsValidFileIfFileUrlW(LPWSTR pwszUrl); OESTDAPI_(BOOL) fGetBrowserUrlEncoding(LPDWORD pdwFlags); typedef int (*PFGETTIMEFORMATW)(LCID Locale, DWORD dwFlags, CONST SYSTEMTIME * lpTime, LPCWSTR pwzFormat, LPWSTR pwzTimeStr, int cchTime); typedef int (*PFGETDATEFORMATW)(LCID Locale, DWORD dwFlags, CONST SYSTEMTIME * lpDate, LPCWSTR pwzFormat, LPWSTR pwzDateStr, int cchDate); typedef int (*PFGETLOCALEINFOW)(LCID Locale, LCTYPE LCType, LPWSTR lpsz, int cchData); OESTDAPI_(BOOL) CchFileTimeToDateTimeW(FILETIME *pft, WCHAR * wsDateTime, int cch, DWORD dwFlags, PFGETDATEFORMATW pfGetDateFormatW, PFGETTIMEFORMATW pfGetTimeFormatW, PFGETLOCALEINFOW pfGetLocaleInfo); // -------------------------------------------------------------------------------- // Unicode/ANSI Function Mapping // -------------------------------------------------------------------------------- #ifdef UNICODE #define FIsEmpty FIsEmptyW #define PszDup PszDupW #define PszAlloc PszAllocW #define FIsSpace FIsSpaceW #define StrToUint StrToUintW #else #define FIsEmpty FIsEmptyA #define PszDup PszDupA #define PszAlloc PszAllocA #define FIsSpace FIsSpaceA #define StrToUint StrToUintA #endif #define IsSpace FIsSpaceA #endif // !MSOERT_NO_STRUTIL // -------------------------------------------------------------------------------- // IStream Utility Functions // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_STMUTIL OESTDAPI_(HRESULT) HrIsStreamUnicode(LPSTREAM pstm, BOOL *pfLittleEndian); OESTDAPI_(HRESULT) HrCopyStreamToByte(LPSTREAM lpstmIn, LPBYTE pbDest, ULONG *pcb); OESTDAPI_(HRESULT) HrByteToStream(LPSTREAM *lppstm, LPBYTE lpb, ULONG cb); OESTDAPI_(HRESULT) HrGetStreamSize(LPSTREAM pstm, ULONG *pcb); OESTDAPI_(HRESULT) HrRewindStream(LPSTREAM pstm); OESTDAPI_(HRESULT) HrCopyStream(LPSTREAM pstmIn, LPSTREAM pstmOut, ULONG *pcb); OESTDAPI_(HRESULT) HrCopyLockBytesToStream(ILockBytes *pLockBytes, IStream *pStream, ULONG *pcbCopied); OESTDAPI_(HRESULT) HrSafeGetStreamSize(LPSTREAM pstm, ULONG *pcb); OESTDAPI_(HRESULT) HrGetStreamPos(LPSTREAM pstm, ULONG *piPos); OESTDAPI_(HRESULT) HrStreamSeekSet(LPSTREAM pstm, ULONG iPos); OESTDAPI_(HRESULT) HrCopyStreamCBEndOnCRLF(LPSTREAM lpstmIn, LPSTREAM lpstmOut, ULONG cb, ULONG *pcbActual); OESTDAPI_(HRESULT) CreateTempFileStream(LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) HrStreamToByte(LPSTREAM lpstm, LPBYTE *lppb, ULONG *pcb); OESTDAPI_(HRESULT) HrCopyStreamCB(LPSTREAM lpstmIn, LPSTREAM lpstmOut, ULARGE_INTEGER uliCopy, ULARGE_INTEGER *puliRead, ULARGE_INTEGER *puliWritten); OESTDAPI_(HRESULT) HrStreamSeekCur(LPSTREAM pstm, LONG iPos); OESTDAPI_(HRESULT) HrStreamSeekEnd(LPSTREAM pstm); OESTDAPI_(HRESULT) HrStreamSeekBegin(LPSTREAM pstm); OESTDAPI_(BOOL) StreamSubStringMatch(LPSTREAM pstm, TCHAR *sz); OESTDAPI_(HRESULT) OpenFileStream(LPSTR pszFile, DWORD dwCreationDistribution, DWORD dwAccess, LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) OpenFileStreamWithFlags(LPSTR pszFile, DWORD dwCreationDistribution, DWORD dwAccess, DWORD dwFlagsAndAttributes, LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) OpenFileStreamShare(LPSTR pszFile, DWORD dwCreationDistribution, DWORD dwAccess, DWORD dwShare, LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) WriteStreamToFile(LPSTREAM pstm, LPSTR lpszFile, DWORD dwCreationDistribution, DWORD dwAccess); OESTDAPI_(HRESULT) OpenFileStreamW(LPWSTR pszFile, DWORD dwCreationDistribution, DWORD dwAccess, LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) OpenFileStreamWithFlagsW(LPWSTR pszFile, DWORD dwCreationDistribution, DWORD dwAccess, DWORD dwFlagsAndAttributes, LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) OpenFileStreamShareW(LPWSTR pszFile, DWORD dwCreationDistribution, DWORD dwAccess, DWORD dwShare, LPSTREAM *ppstmFile); OESTDAPI_(HRESULT) WriteStreamToFileW(LPSTREAM pstm, LPWSTR lpszFile, DWORD dwCreationDistribution, DWORD dwAccess); #endif // !MSOERT_NO_STRUTIL // -------------------------------------------------------------------------------- // Protected Storage // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_PROTSTOR #include "pstore.h" #ifdef ENABLE_RULES #define PST_IDENT_TYPE_STRING L"Identification with rules" #elif defined(N_TEST) #define PST_IDENT_TYPE_STRING L"Identification test" #else #define PST_IDENT_TYPE_STRING L"Identification" #endif #define PST_IMNACCT_SUBTYPE_STRING L"INETCOMM Server Passwords" #define PST_CERTS_SUBTYPE_STRING L"Certificate Trust" // -------------------------------------------------------------------------------- // Protected Storage Functions // -------------------------------------------------------------------------------- OESTDAPI_(HRESULT) PSTSetNewData( IN IPStore *const pISecProv, IN const GUID *const guidType, IN const GUID *const guidSubt, IN LPCWSTR wszAccountName, IN const BLOB *const pclear, OUT BLOB *const phandle); OESTDAPI_(HRESULT) PSTGetData( IN IPStore *const pISecProv, IN const GUID *const guidType, IN const GUID *const guidSubt, IN LPCWSTR wszLookupName, OUT BLOB *const pclear); OESTDAPI_(HRESULT) PSTCreateTypeSubType_NoUI( IN IPStore *const pISecProv, IN const GUID *const guidType, IN LPCWSTR szType, IN const GUID *const guidSubt, IN LPCWSTR szSubt); OESTDAPI_(LPWSTR) WszGenerateNameFromBlob(IN BLOB blob); OESTDAPI_(void) PSTFreeHandle(IN LPBYTE pb); #endif // !MSOERT_NO_PROTSTOR // -------------------------------------------------------------------------------- // CAPI Utility - A few helper functions for the crypt32 utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_CAPIUTIL #ifndef __WINCRYPT_H__ #define _CRYPT32_ #include <wincrypt.h> #endif typedef enum tagCERTSTATE CERTSTATE; // From mimeole.h OESTDAPI_(LPSTR) SzGetCertificateEmailAddress(const PCCERT_CONTEXT pCert); OESTDAPI_(HRESULT) HrDecodeObject(const BYTE *pbEncoded, DWORD cbEncoded, LPCSTR item, DWORD dwFlags, DWORD *pcbOut, LPVOID *ppvOut); OESTDAPI_(LPVOID) PVDecodeObject(const BYTE *pbEncoded, DWORD cbEncoded, LPCSTR item, DWORD *pcbOut); OESTDAPI_(LPVOID) PVGetCertificateParam(PCCERT_CONTEXT pCert, DWORD dwParam, DWORD *cbOut); OESTDAPI_(HRESULT) HrGetCertificateParam(PCCERT_CONTEXT pCert, DWORD dwParam, LPVOID * pvOut, DWORD *cbOut); OESTDAPI_(BOOL) FMissingCert(const CERTSTATE cs); OESTDAPI_(LPVOID) PVGetMsgParam(HCRYPTMSG hCryptMsg, DWORD dwParam, DWORD dwIndex, DWORD *pcbData); OESTDAPI_(HRESULT) HrGetMsgParam(HCRYPTMSG hCryptMsg, DWORD dwParam, DWORD dwIndex, LPVOID * ppv, DWORD * pcbData); LPVOID WINAPI CryptAllocFunc(size_t cbSize); VOID WINAPI CryptFreeFunc(LPVOID pv); HRESULT HrGetCertKeyUsage(PCCERT_CONTEXT pccert, DWORD * pdwUsage); HRESULT HrVerifyCertEnhKeyUsage(PCCERT_CONTEXT pccert, LPCSTR pszOidUsage); #endif // !MSOERT_NO_CAPIUTIL // -------------------------------------------------------------------------------- // CAPI Utility - A few helper functions for the crypt32 utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_RASUTIL OESTDAPI_(HRESULT) HrCreatePhonebookEntry(HWND hwnd, DWORD *pdwRASResult); OESTDAPI_(HRESULT) HrEditPhonebookEntry(HWND hwnd, LPTSTR pszEntryName, DWORD *pdwRASResult); OESTDAPI_(HRESULT) HrFillRasCombo(HWND hwndComboBox, BOOL fUpdateOnly, DWORD *pdwRASResult); #endif // !MSOERT_NO_RASUTIL // -------------------------------------------------------------------------------- // Win32 Registry Utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_REGUTIL OESTDAPI_(VOID) CopyRegistry(HKEY hSourceKey, HKEY hDestinationKey); #endif // !MSOERT_NO_REGUTIL // -------------------------------------------------------------------------------- // t-wstrings // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_WSTRINGS OESTDAPI_(BOOL) UnlocStrEqNW(LPCWSTR pwsz1, LPCWSTR pwsz2, DWORD cch); #endif // !MSOERT_NO_WSTRINGS // -------------------------------------------------------------------------------- // CStringParser // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_STRPARSE #ifdef __cplusplus #include "strparse.h" #endif // !__cplusplus #endif // !MSOERT_NO_STRPARSE // -------------------------------------------------------------------------------- // DataObject Utility // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_ENUMFMT #ifdef __cplusplus typedef struct tagDATAOBJINFO { FORMATETC fe; LPVOID pData; DWORD cbData; } DATAOBJINFO, *PDATAOBJINFO; OESTDAPI_(HRESULT) CreateEnumFormatEtc(LPUNKNOWN pUnkRef, ULONG celt, PDATAOBJINFO rgInfo, LPFORMATETC rgfe, IEnumFORMATETC ** lppstmHFile); #endif // !__cplusplus #endif // !MSOERT_NO_ENUMFMT // -------------------------------------------------------------------------------- // CPrivateUnknown Utility // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_PRIVUNK #ifdef __cplusplus #include "privunk.h" #endif // !__cplusplus #endif // !MSOERT_NO_PRIVUNK // -------------------------------------------------------------------------------- // CByteStream Object // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_BYTESTM #ifdef __cplusplus #include "bytestm.h" #endif // !__cplusplus #endif // !MSOERT_NO_BYTESTM // -------------------------------------------------------------------------------- // CLogFile Object // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_CLOGFILE #ifdef __cplusplus #include "..\\msoert\\clogfile.h" #endif // !__cplusplus #endif // !MSOERT_NO_CLOGFILE // -------------------------------------------------------------------------------- // CDataObject Object // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_DATAOBJ #ifdef __cplusplus #include "..\\msoert\\dataobj.h" #endif // !__cplusplus #endif // !MSOERT_NO_DATAOBJ // -------------------------------------------------------------------------------- // CUnknownList and CVoidPtrList Objects // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_LISTOBJS #ifdef __cplusplus #include "..\\msoert\\listintr.h" #endif // !__cplusplus #endif // !MSOERT_NO_LISTOBJS // -------------------------------------------------------------------------------- // MSHTML utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_MSHTMLUTILS #ifdef __cplusplus #include "..\\msoert\\mshtutil.h" #endif // !__cplusplus #endif // !MSOERT_NO_MSHTMLUTILS // -------------------------------------------------------------------------------- // BSTR utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_BSTUTILS #ifdef __cplusplus #include "..\\msoert\\bstr.h" #endif // !__cplusplus #endif // !MSOERT_NO_BSTRUTILS // -------------------------------------------------------------------------------- // HFILESTM utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_HFILESTM #ifdef __cplusplus OESTDAPI_(HRESULT) CreateStreamOnHFile (LPTSTR lpszFile, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDistribution, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile, LPSTREAM *lppstmHFile); OESTDAPI_(HRESULT) CreateStreamOnHFileW(LPWSTR lpwszFile, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDistribution, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile, LPSTREAM *lppstmHFile); #endif // !__cplusplus #endif // !MSOERT_NO_HFILESTM // -------------------------------------------------------------------------------- // Outlook Express Runtime Utilities // -------------------------------------------------------------------------------- #ifndef MSOERT_NO_OERTUTIL typedef struct tagTEMPFILEINFO *LPTEMPFILEINFO; typedef struct tagTEMPFILEINFO { LPTEMPFILEINFO pNext; LPSTR pszFilePath; HANDLE hProcess; } TEMPFILEINFO; #ifndef HIMAGELIST struct _IMAGELIST; typedef struct _IMAGELIST NEAR* HIMAGELIST; #endif OESTDAPI_(HIMAGELIST) LoadMappedToolbarBitmap(HINSTANCE hInst, int idBitmap, int cx); OESTDAPI_(VOID) UpdateRebarBandColors(HWND hwnd); OESTDAPI_(HRESULT) IsPlatformWinNT(void); OESTDAPI_(HRESULT) GenerateUniqueFileName(LPCSTR pszDirectory, LPCSTR pszFileName, LPCSTR pszExtension, LPSTR pszFilePath, ULONG cchMaxPath); OESTDAPI_(HRESULT) CreateTempFile(LPCSTR pszSuggest, LPCSTR pszExtension, LPSTR *ppszFilePath, HANDLE *phFile); OESTDAPI_(HRESULT) WriteStreamToFileHandle(IStream *pStream, HANDLE hFile, ULONG *pcbTotal); OESTDAPI_(HRESULT) AppendTempFileList(LPTEMPFILEINFO *ppHead, LPSTR pszFilePath, HANDLE hProcess); OESTDAPI_(VOID) DeleteTempFileOnShutdown(LPTEMPFILEINFO pTempFile); OESTDAPI_(VOID) DeleteTempFileOnShutdownEx(LPSTR pszFilePath, HANDLE hProcess); OESTDAPI_(VOID) CleanupGlobalTempFiles(void); OESTDAPI_(HRESULT) DeleteTempFile(LPTEMPFILEINFO pTempFile); OESTDAPI_(VOID) FreeTempFileList(LPTEMPFILEINFO pTempFileHead); #define SafeFreeTempFileList(_p) \ { \ if (_p) \ { \ FreeTempFileList(_p); \ _p=NULL; \ } \ } OESTDAPI_(BOOL) FBuildTempPath(LPTSTR lpszOrigFile, LPTSTR lpszPath, ULONG cbMaxPath, BOOL fLink); OESTDAPI_(BOOL) FBuildTempPathW(LPWSTR lpszOrigFile, LPWSTR lpszPath, ULONG cchMaxPath, BOOL fLink); OESTDAPI_(HRESULT) ShellUtil_GetSpecialFolderPath(DWORD dwSpecialFolder, LPSTR rgchPath); OESTDAPI_(BOOL) FIsHTMLFile(LPSTR pszFile); OESTDAPI_(BOOL) FIsHTMLFileW(LPWSTR pwszFile); typedef int (*PFLOADSTRINGW)(HINSTANCE,UINT,LPWSTR,int); typedef int (*PFMESSAGEBOXW)(HWND,LPCWSTR,LPCWSTR,UINT); OESTDAPI_(int) MessageBoxInst(HINSTANCE hInst, HWND hwndOwner, LPTSTR pszTitle, LPTSTR psz1, LPTSTR psz2, UINT fuStyle); OESTDAPI_(int) MessageBoxInstW(HINSTANCE hInst, HWND hwndOwner, LPWSTR pwszTitle, LPWSTR pwsz1, LPWSTR pwsz2, UINT fuStyle, PFLOADSTRINGW pfLoadStringW, PFMESSAGEBOXW pfMessageBoxW); // window utils OESTDAPI_(void) IDrawText(HDC hdc, LPCTSTR pszText, RECT FAR* prc, BOOL fEllipses, int cyChar); OESTDAPI_(HRESULT) RicheditStreamIn(HWND hwndRE, LPSTREAM pstm, ULONG uSelFlags); OESTDAPI_(HRESULT) RicheditStreamOut(HWND hwndRE, LPSTREAM pstm, ULONG uSelFlags); OESTDAPI_(VOID) CenterDialog(HWND hwndDlg); OESTDAPI_(VOID) SetIntlFont(HWND hwnd); OESTDAPI_(BOOL) GetExePath(LPCTSTR szExe, TCHAR *szPath, DWORD cch, BOOL fDirOnly); OESTDAPI_(BOOL) BrowseForFolder(HINSTANCE hInst, HWND hwnd, TCHAR *pszDir, int cch, int idsText, BOOL fFileSysOnly); OESTDAPI_(BOOL) BrowseForFolderW(HINSTANCE hInst, HWND hwnd, WCHAR *pwszDir, int cch, int idsText, BOOL fFileSysOnly); OESTDAPI_(HRESULT) DoHotMailWizard(HWND hwndOwner, LPSTR pszUrl, LPSTR pszFriendly, RECT *prc, IUnknown *pUnkHost); OESTDAPI_(LONG_PTR) SetWindowLongPtrAthW(HWND hWnd, int nIndex, LONG_PTR dwNewLong); HRESULT GetHtmlCharset(IStream *pStmHtml, LPSTR *ppszCharset); #endif // MSOERT_NO_OERTUTIL typedef HANDLE HTHREAD; typedef HANDLE HEVENT; typedef HANDLE HPROCESS; typedef HANDLE HANDLE_16; typedef WPARAM WPARAM_16; #define EXTERN_C_16 #define WINAPI_16 #define CALLBACK_16 #define EXPORT_16 #define LOADDS_16 #define HUGEP_16 #define WaitForSingleObject_16 WaitForSingleObject #define GlobalAlloc_16 GlobalAlloc #define GlobalFree_16 GlobalFree #define CreateFileMapping_16 CreateFileMapping #define MapViewOfFile_16 MapViewOfFile #define UnmapViewOfFile_16 UnmapViewOfFile #define CloseHandle_FM16 CloseHandle #define CloseHandle_F16 CloseHandle #define INVALID_HANDLE_VALUE_16 INVALID_HANDLE_VALUE #define SetDlgThisPtr(hwnd, THIS) SetWndThisPtr(hwnd, THIS) #define GetDlgThisPtr(hwnd) GetWndThisPtr(hwnd) // Some one liners can be wrapped in IF_WIN16 or IF_WIN32 so that the // code is more readable. #define IF_WIN16(x) #define IF_NOT_WIN16(x) x #define IF_WIN32(x) x #endif // __MSOERT_H
42.832657
157
0.503374
b0bc0e11463b6481bc7893a17696e2558755a017
3,298
h
C
cpp/Platform.Memory/ResizableDirectMemoryBase.h
linksplatform/Memory
f761ebcccde9e7c5654a602cbc09967227556441
[ "MIT" ]
2
2021-05-13T12:23:34.000Z
2022-03-18T08:21:56.000Z
cpp/Platform.Memory/ResizableDirectMemoryBase.h
linksplatform/Memory
f761ebcccde9e7c5654a602cbc09967227556441
[ "MIT" ]
29
2019-07-20T18:29:44.000Z
2022-03-01T10:12:40.000Z
cpp/Platform.Memory/ResizableDirectMemoryBase.h
linksplatform/Memory
f761ebcccde9e7c5654a602cbc09967227556441
[ "MIT" ]
3
2019-07-27T16:13:12.000Z
2021-08-03T17:24:59.000Z
namespace Platform::Memory { class ResizableDirectMemoryBase : public DisposableBase, public IResizableDirectMemory { public: inline static const std::int64_t MinimumCapacity = Environment.SystemPageSize; private: IntPtr _pointer = 0; private: std::int64_t _reservedCapacity = 0; private: std::int64_t _usedCapacity = 0; public: std::int64_t Size { get { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); return UsedCapacity; } } public: IntPtr Pointer { get { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); return _pointer; } protected: set { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); _pointer = value; } } public: std::int64_t ReservedCapacity { get { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); return _reservedCapacity; } set { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); if (value != _reservedCapacity) { Platform::Ranges::EnsureExtensions::ArgumentInRange(Platform::Exceptions::Ensure::Always, value, Range<std::int64_t>(_usedCapacity, std::numeric_limits<std::int64_t>::max())); OnReservedCapacityChanged(_reservedCapacity, value); _reservedCapacity = value; } } } public: std::int64_t UsedCapacity { get { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); return _usedCapacity; } set { Platform::Disposables::EnsureExtensions::NotDisposed(Platform::Exceptions::Ensure::Always, this); if (value != _usedCapacity) { Platform::Ranges::EnsureExtensions::ArgumentInRange(Platform::Exceptions::Ensure::Always, value, Range<std::int64_t>(0, _reservedCapacity)); _usedCapacity = value; } } } protected: override bool AllowMultipleDisposeCalls { get => true; } protected: virtual void OnReservedCapacityChanged(std::int64_t oldReservedCapacity, std::int64_t newReservedCapacity) = 0; protected: virtual void DisposePointer(IntPtr pointer, std::int64_t usedCapacity) = 0; protected: void Dispose(bool manual, bool wasDisposed) override { if (!wasDisposed) { auto pointer = Interlocked.Exchange(ref _pointer, IntPtr.0); if (pointer != IntPtr.0) { this->DisposePointer(pointer, _usedCapacity); } } } }; }
35.462366
195
0.550334
61e7b732c999e9c20d7b9047c273c21eae86d4ab
87
c
C
test/instr/regression/T/p-61.c
KaneTW/T2
10f137385078750799e28bbb441d2cdca00cb40e
[ "Apache-2.0" ]
71
2015-01-02T16:17:00.000Z
2022-03-28T04:52:46.000Z
test/instr/regression/T/p-61.c
KaneTW/T2
10f137385078750799e28bbb441d2cdca00cb40e
[ "Apache-2.0" ]
6
2015-08-10T18:19:34.000Z
2018-02-12T16:34:27.000Z
test/instr/regression/T/p-61.c
KaneTW/T2
10f137385078750799e28bbb441d2cdca00cb40e
[ "Apache-2.0" ]
17
2015-04-22T10:22:43.000Z
2020-06-16T13:44:25.000Z
main() { int i; int x; for (i=1000; x < 10 && i > 100; i--) { ; } }
10.875
41
0.321839
61eaa55ae3fd32117a91e3c11d91cd5316418c8c
1,382
c
C
src/cli/iocmd.c
lwcowan/ledger
cda3a1dd7ace940067bf0f3d961c2d9e500cfb57
[ "MIT" ]
null
null
null
src/cli/iocmd.c
lwcowan/ledger
cda3a1dd7ace940067bf0f3d961c2d9e500cfb57
[ "MIT" ]
null
null
null
src/cli/iocmd.c
lwcowan/ledger
cda3a1dd7ace940067bf0f3d961c2d9e500cfb57
[ "MIT" ]
1
2020-10-28T14:56:59.000Z
2020-10-28T14:56:59.000Z
#include "iocmd.h" #include "../base/book.h" #include "../io/book.h" #include "line.h" #include <stdio.h> int ledger_cli_read(struct ledger_cli_line *tracking, int argc, char **argv){ int result = 1; struct ledger_book *new_book; if (argc < 2){ fputs("read: Read a book from a file.\n" "usage: read (filename)\n",stderr); return 2; } new_book = ledger_book_new(); if (new_book == NULL){ fputs("Error encountered when allocating new book.\n",stderr); return 1; } else do { if (!ledger_io_book_read(argv[1], new_book)){ break; } result = 0; } while (0); if (result != 0){ ledger_book_free(new_book); fputs("Loading of book encountered errors.\n",stderr); } else { ledger_book_free(tracking->book); tracking->book = new_book; tracking->object_path = ledger_act_path_root(); fputs("Load done.\n",stderr); } return 0; } int ledger_cli_write(struct ledger_cli_line *tracking, int argc, char **argv){ int result = 1; if (argc < 2){ fputs("write: Write a book to a file.\n" "usage: write (filename)\n",stderr); return 2; } do { if (!ledger_io_book_write(argv[1], tracking->book)){ break; } result = 0; } while (0); if (result != 0){ fputs("Saving of book encountered errors.\n",stderr); } else { fputs("Save done.\n",stderr); } return 0; }
23.423729
78
0.618669
f88cb13d1ac4dcca375a5083bfb592903c98ef54
225
h
C
HeepaySDKDemo/Controllers/HYH5PayViewController.h
zhangyuchao/HeepaySDKDemo
89df1a2a6460707dc406cd783c0f396ab73ef906
[ "MIT" ]
null
null
null
HeepaySDKDemo/Controllers/HYH5PayViewController.h
zhangyuchao/HeepaySDKDemo
89df1a2a6460707dc406cd783c0f396ab73ef906
[ "MIT" ]
null
null
null
HeepaySDKDemo/Controllers/HYH5PayViewController.h
zhangyuchao/HeepaySDKDemo
89df1a2a6460707dc406cd783c0f396ab73ef906
[ "MIT" ]
null
null
null
// // HYH5PayViewController.h // HeepaySDKDemo // // Created by huiyuan on 2017/4/25. // Copyright © 2017年 汇元网. All rights reserved. // #import <UIKit/UIKit.h> @interface HYH5PayViewController : UIViewController @end
16.071429
51
0.711111
f8ab41ab9f1ccb91efff4b6d19b40f12ac352090
2,488
h
C
Source/Gui/Controls/MyImage.h
zenden2k/image-uploader
6cf2b3385039f0a000afa86f0ce80706aeb98226
[ "Apache-2.0" ]
107
2015-03-13T08:58:26.000Z
2022-03-14T02:56:36.000Z
Source/Gui/Controls/MyImage.h
zenden2k/image-uploader
6cf2b3385039f0a000afa86f0ce80706aeb98226
[ "Apache-2.0" ]
285
2015-03-12T23:08:54.000Z
2022-02-20T15:22:31.000Z
Source/Gui/Controls/MyImage.h
zenden2k/image-uploader
6cf2b3385039f0a000afa86f0ce80706aeb98226
[ "Apache-2.0" ]
40
2015-03-14T13:37:08.000Z
2021-08-15T05:58:10.000Z
/* Image Uploader - free application for uploading images/files to the Internet Copyright 2007-2018 Sergey Svistunov (zenden2k@gmail.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef MYIMAGE_H #define MYIMAGE_H #pragma once #include "atlheaders.h" #include "3rdpart/GdiplusH.h" // CMyImage class CMyImage : public CWindowImpl<CMyImage> { public: CMyImage(); ~CMyImage(); DECLARE_WND_CLASS(_T("CMyImage")) BEGIN_MSG_MAP(CMyImage) MESSAGE_HANDLER(WM_PAINT, OnPaint) MESSAGE_HANDLER(WM_DESTROY, OnDestroy) MESSAGE_HANDLER( WM_ERASEBKGND, OnEraseBkg) MESSAGE_HANDLER( WM_KEYDOWN, OnKeyDown) MSG_WM_LBUTTONDOWN(OnLButtonDown) MSG_WM_RBUTTONDOWN(OnLButtonDown) MSG_WM_MBUTTONUP(OnLButtonDown) END_MSG_MAP() LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); LRESULT OnEraseBkg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); LRESULT OnKeyDown(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); Gdiplus::Bitmap *bm_; bool IsImage; bool HideParent; // ���������� ��� ������������ ���� ��������� // Handler prototypes: // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled); bool LoadImage(LPCTSTR FileName,Gdiplus::Image *img=NULL, int ResourceID=0,bool Bitmap=false, COLORREF transp=0); LRESULT OnLButtonDown(UINT Flags, CPoint Pt); int ImageWidth, ImageHeight; HBITMAP BackBufferBm; HDC BackBufferDc; int BackBufferWidth, BackBufferHeight; }; #endif // MYIMAGE_H
37.134328
118
0.674035
fbb33fd92e9502da8913a735de1e6ba988ea6db9
563
h
C
src/DataStructure/PrefixTree.h
S1xe/Way-to-Algorithm
e666edfb000b3eaef8cc1413f71b035ec4141718
[ "MIT" ]
101
2015-11-19T02:40:01.000Z
2017-12-01T13:43:06.000Z
src/DataStructure/PrefixTree.h
S1xe/Way-to-Algorithm
e666edfb000b3eaef8cc1413f71b035ec4141718
[ "MIT" ]
3
2019-05-31T14:27:56.000Z
2021-07-28T04:24:55.000Z
src/DataStructure/PrefixTree.h
S1xe/Way-to-Algorithm
e666edfb000b3eaef8cc1413f71b035ec4141718
[ "MIT" ]
72
2016-01-28T15:20:01.000Z
2017-12-01T13:43:07.000Z
#pragma once #ifndef MAX #define MAX 128 #endif #ifndef CHILD_MAX #define CHILD_MAX 26 #endif #include <cassert> #include <cstring> struct PtNode { char letter; const char *word; PtNode *child[CHILD_MAX]; }; // create prefix tree PtNode *PrefixTreeNew(); // free prefix tree void PrefixTreeFree(PtNode *t); // insert word to prefix tree void PrefixTreeInsert(PtNode *t, const char *word); // find word from prefix tree int PrefixTreeFind(PtNode *t, const char *word); // erase word from prefix tree void PrefixTreeErase(PtNode *t, const char *word);
17.59375
51
0.73357
1f23968b3edd9d65da1cf546cc31ea4f7f06ed1b
2,231
c
C
xsens/xstypes/xsversion.c
yystju/lidar
0dde4111a9853d85473e1807100ccbc533d77dc5
[ "Apache-2.0" ]
null
null
null
xsens/xstypes/xsversion.c
yystju/lidar
0dde4111a9853d85473e1807100ccbc533d77dc5
[ "Apache-2.0" ]
null
null
null
xsens/xstypes/xsversion.c
yystju/lidar
0dde4111a9853d85473e1807100ccbc533d77dc5
[ "Apache-2.0" ]
null
null
null
/* WARNING: COPYRIGHT (C) 2015 XSENS TECHNOLOGIES OR SUBSIDIARIES WORLDWIDE. ALL RIGHTS RESERVED. THIS FILE AND THE SOURCE CODE IT CONTAINS (AND/OR THE BINARY CODE FILES FOUND IN THE SAME FOLDER THAT CONTAINS THIS FILE) AND ALL RELATED SOFTWARE (COLLECTIVELY, "CODE") ARE SUBJECT TO A RESTRICTED LICENSE AGREEMENT ("AGREEMENT") BETWEEN XSENS AS LICENSOR AND THE AUTHORIZED LICENSEE UNDER THE AGREEMENT. THE CODE MUST BE USED SOLELY WITH XSENS PRODUCTS INCORPORATED INTO LICENSEE PRODUCTS IN ACCORDANCE WITH THE AGREEMENT. ANY USE, MODIFICATION, COPYING OR DISTRIBUTION OF THE CODE IS STRICTLY PROHIBITED UNLESS EXPRESSLY AUTHORIZED BY THE AGREEMENT. IF YOU ARE NOT AN AUTHORIZED USER OF THE CODE IN ACCORDANCE WITH THE AGREEMENT, YOU MUST STOP USING OR VIEWING THE CODE NOW, REMOVE ANY COPIES OF THE CODE FROM YOUR COMPUTER AND NOTIFY XSENS IMMEDIATELY BY EMAIL TO INFO@XSENS.COM. ANY COPIES OR DERIVATIVES OF THE CODE (IN WHOLE OR IN PART) IN SOURCE CODE FORM THAT ARE PERMITTED BY THE AGREEMENT MUST RETAIN THE ABOVE COPYRIGHT NOTICE AND THIS PARAGRAPH IN ITS ENTIRETY, AS REQUIRED BY THE AGREEMENT. */ #include "xsversion.h" #include "xsstring.h" #include <stdio.h> /*! \class XsVersion \brief A class to store version information */ /*! \addtogroup cinterface C Interface @{ */ /*! \relates XsVersion \brief Test if this is a null-version. */ int XsVersion_empty(const XsVersion* thisPtr) { return thisPtr->m_major == 0 && thisPtr->m_minor == 0 && thisPtr->m_revision == 0; } /*! \relates XsVersion \brief Get a string with the version expressed in a readable format. */ void XsVersion_toString(const XsVersion* thisPtr, XsString* version) { char buffer[256]; size_t chars; if (XsVersion_empty(thisPtr)) return; if (thisPtr->m_build != 0) chars = sprintf(buffer, "%d.%d.%d rev %d", thisPtr->m_major, thisPtr->m_minor, thisPtr->m_revision, thisPtr->m_build); else chars = sprintf(buffer, "%d.%d.%d", thisPtr->m_major, thisPtr->m_minor, thisPtr->m_revision); XsString_assign(version, chars, buffer); if (thisPtr->m_extra.m_size != 0) { const char space = ' '; XsArray_insert(version, version->m_size-1, 1, &space); //lint !e64 XsString_append(version, &thisPtr->m_extra); } } /*! @} */
39.839286
120
0.746302
1c481e92569d8d671b65ecc5fc190d73dc10d4c8
1,214
c
C
src/chip8_screen.c
ThomVanL/tvl-chip-8-emu
e6f5fa8776a6abd938de82b7ad4384aa1149b783
[ "Zlib" ]
null
null
null
src/chip8_screen.c
ThomVanL/tvl-chip-8-emu
e6f5fa8776a6abd938de82b7ad4384aa1149b783
[ "Zlib" ]
null
null
null
src/chip8_screen.c
ThomVanL/tvl-chip-8-emu
e6f5fa8776a6abd938de82b7ad4384aa1149b783
[ "Zlib" ]
null
null
null
#include "CHIP8_screen.h" static void CHIP8_IsPixelInScreenBounds(int x, int y) { assert(x >= 0 && x < CHIP8_SCREEN_WIDTH && y >= 0 && y < CHIP8_HEIGHT); } bool CHIP8_IsPixelSetScreen(struct CHIP8_Screen *CHIP8_screen, int x, int y) { CHIP8_IsPixelInScreenBounds(x, y); return CHIP8_screen->pixels[x][y]; } bool CHIP8_DrawSpriteToScreen(struct CHIP8_Screen *CHIP8_screen, int x, int y, const uint8_t *sprite, int num) { CHIP8_IsPixelInScreenBounds(x, y); bool pixel_collision = false; for (int lY = 0; lY < num; lY++) { uint8_t c = sprite[lY]; for (int lX = 0; lX < 8; lX++) { if ((c & (0x80 >> lX)) == 0) //0x80 == 0b10000000 { continue; } if (CHIP8_screen->pixels[(lX + x) % CHIP8_SCREEN_WIDTH][(lY + y) % CHIP8_HEIGHT]) // Wrap out of bounds { pixel_collision = true; } CHIP8_screen->pixels[(lX + x) % CHIP8_SCREEN_WIDTH][(lY + y) % CHIP8_HEIGHT] ^= true; //XOR } } return pixel_collision; } void CHIP8_ClearScreen(struct CHIP8_Screen *CHIP8_screen){ memset(CHIP8_screen->pixels, 0, sizeof(CHIP8_screen->pixels)); }
28.232558
115
0.592257
e36b3938eabd73f280bbfd1756cda3fef3b57cbf
424
h
C
dos/digger/record.h
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
34
2016-10-29T19:50:34.000Z
2022-02-12T21:27:43.000Z
dos/digger/record.h
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
null
null
null
dos/digger/record.h
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
19
2017-06-19T23:04:00.000Z
2021-11-13T15:00:41.000Z
void openplay(char *name); void recstart(void); void recname(char *name); void playgetdir(Sint4 *dir,bool *fire); void recinit(void); void recputrand(Uint5 randv); Uint5 playgetrand(void); void recputinit(char *init); void recputeol(void); void recputeog(void); void playskipeol(void); void recputdir(Sint4 dir,bool fire); void recsavedrf(void); extern bool playing,savedrf,gotname,gotgame,drfvalid,kludge; 
26.5
61
0.75
2dbf4ee2367ccf73fa4351c3efa243a542c1de12
10,425
c
C
main/tasks/aws_iot_update.c
caterpillai/aws-iot-hho
5e1805b716d408aab06701391983c74d3f17f8a1
[ "Apache-2.0" ]
null
null
null
main/tasks/aws_iot_update.c
caterpillai/aws-iot-hho
5e1805b716d408aab06701391983c74d3f17f8a1
[ "Apache-2.0" ]
null
null
null
main/tasks/aws_iot_update.c
caterpillai/aws-iot-hho
5e1805b716d408aab06701391983c74d3f17f8a1
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <unistd.h> #include <limits.h> #include <string.h> #include <math.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_log.h" #include "aws_iot_config.h" #include "aws_iot_log.h" #include "aws_iot_version.h" #include "aws_iot_mqtt_client_interface.h" #include "aws_iot_shadow_interface.h" #include "core2forAWS.h" #include "read_hho_measures.h" #include "aws_iot_update.h" #include "wifi.h" #include "ui.h" #define MAX_LENGTH_OF_JSON_BUFFER 400 #define MAX_LENGTH_OF_NOTIFICATIONS 200 #define CLIENT_ID_LEN (ATCA_SERIAL_NUM_SIZE * 2) static const char *TAG = "aws_iot_update_task"; /* CA Root certificate */ extern const uint8_t aws_root_ca_pem_start[] asm("_binary_aws_root_ca_pem_start"); /* Default MQTT HOST URL (from aws_iot_config.h) */ char HostAddress[255] = AWS_IOT_MQTT_HOST; /* Default MQTT port (from aws_iot_config.h) */ uint32_t mqttPort = AWS_IOT_MQTT_PORT; static hho_measures_t _hhoMeasures; static char notificationBuffer[MAX_LENGTH_OF_NOTIFICATIONS] = "No current notifications"; static uint8_t notificationsCount = 0; static bool _shadowUpdateInProgress; // JSON Document Buffer and related fields to be initialized. char JsonDocumentBuffer[MAX_LENGTH_OF_JSON_BUFFER]; size_t sizeOfJsonDocumentBuffer = sizeof(JsonDocumentBuffer) / sizeof(JsonDocumentBuffer[0]); jsonStruct_t temperatureHandler; jsonStruct_t soundHandler; jsonStruct_t lightHandler; jsonStruct_t tvocHandler; jsonStruct_t eCO2Handler; jsonStruct_t recommendationsHandler; jsonStruct_t recommendationCountHandler; void notification_message_callback(const char *pJsonString, uint32_t jsonStringDataLen, jsonStruct_t *pContext) { IOT_UNUSED(pJsonString); IOT_UNUSED(jsonStringDataLen); char * recommendations = (char *)(pContext->pData); ESP_LOGI(TAG, "Updating recommendations with: %s", recommendations); UI_Recommendations_Textarea_Update(recommendations); } void notification_count_callback(const char *pJsonString, uint32_t jsonStringDataLen, jsonStruct_t *pContext) { IOT_UNUSED(pJsonString); IOT_UNUSED(jsonStringDataLen); uint8_t newCount = *(uint8_t *) (pContext->pData); ESP_LOGI(TAG, "Update recommendations count to %d", newCount); UI_Recommendations_Count_Update(newCount); } void initialize_JSON_buffer_fields() { // Initialize temperature field temperatureHandler.cb = NULL; temperatureHandler.pKey = "temperature"; temperatureHandler.pData = &(_hhoMeasures.temperature); temperatureHandler.type = SHADOW_JSON_FLOAT; temperatureHandler.dataLength = sizeof(float); // Initialize sound field soundHandler.cb = NULL; soundHandler.pKey = "noiseLevel"; soundHandler.pData = &(_hhoMeasures.noiseLevel); soundHandler.type = SHADOW_JSON_INT8; soundHandler.dataLength = sizeof(uint8_t); // Initialize the light field lightHandler.cb = NULL; lightHandler.pKey = "lightIntensity"; lightHandler.pData = &(_hhoMeasures.lightIntensity); lightHandler.type = SHADOW_JSON_INT32; lightHandler.dataLength = sizeof(uint32_t); // Initialize the tvoc field tvocHandler.cb = NULL; tvocHandler.pKey = "tvoc"; tvocHandler.pData = &(_hhoMeasures.tvoc); tvocHandler.type = SHADOW_JSON_INT8; tvocHandler.dataLength = sizeof(uint8_t); // Initialize the eCO2 field eCO2Handler.cb = NULL; eCO2Handler.pKey = "eCO2"; eCO2Handler.pData = &(_hhoMeasures.eC02); eCO2Handler.type = SHADOW_JSON_INT8; eCO2Handler.dataLength = sizeof(uint8_t); // Initializes the notifications field recommendationsHandler.cb = notification_message_callback; recommendationsHandler.pKey = "notifications"; recommendationsHandler.pData = &notificationBuffer; recommendationsHandler.type = SHADOW_JSON_STRING; recommendationsHandler.dataLength = MAX_LENGTH_OF_NOTIFICATIONS; // Initialize the notifications count field recommendationCountHandler.cb = notification_count_callback; recommendationCountHandler.pKey = "notificationCount"; recommendationCountHandler.pData = &notificationsCount; recommendationCountHandler.type = SHADOW_JSON_INT8; recommendationCountHandler.dataLength = sizeof(uint8_t); } void mqtt_disconnect_callback_handler(AWS_IoT_Client *clientPtr, void *data) { ESP_LOGW(TAG, "Disconnected from AWS IoT Core"); UI_Status_Textarea_Add("Disconnected from AWS IoT Core...", NULL, 0); if (clientPtr == NULL) { return; } if (aws_iot_is_autoreconnect_enabled(clientPtr)) { ESP_LOGI(TAG, "Attempting automatic reconnect."); } else { ESP_LOGW(TAG, "Manually attempting a reconnection."); IoT_Error_t rc = aws_iot_mqtt_attempt_reconnect(clientPtr); if (rc == NETWORK_RECONNECTED) { ESP_LOGI(TAG, "Manual reconnect was successful."); } else { ESP_LOGW(TAG, "Manual reconnect failed with code: %d", rc); } } } void shadow_update_status_callback(const char *namePtr, ShadowActions_t action, Shadow_Ack_Status_t status, const char *responseJSONDocumentPtr, void *contextDataPtr) { IOT_UNUSED(namePtr); IOT_UNUSED(action); IOT_UNUSED(contextDataPtr); _shadowUpdateInProgress = false; if (status == SHADOW_ACK_TIMEOUT) { ESP_LOGE(TAG, "Shadow update timeout."); } else if (status == SHADOW_ACK_REJECTED) { ESP_LOGE(TAG, "Shadow update rejected."); } else if (status == SHADOW_ACK_ACCEPTED) { ESP_LOGI(TAG, "Shadow update accepted with response: %s", responseJSONDocumentPtr); } } void update_task(void *param) { AWS_IoT_Client iotCoreClient; // Initialize the MQTT client ShadowInitParameters_t sp = ShadowInitParametersDefault; sp.pHost = HostAddress; sp.port = mqttPort; sp.enableAutoReconnect = false; sp.disconnectHandler = mqtt_disconnect_callback_handler; sp.pRootCA = (const char *)aws_root_ca_pem_start; sp.pClientCRT = "#"; sp.pClientKey = "#0"; // Retrieve the device serial number from the secure element char *clientId = malloc(CLIENT_ID_LEN + 1); ATCA_STATUS status = Atecc608_GetSerialString(clientId); if (status!= ATCA_SUCCESS) { ESP_LOGE(TAG, "Failed to retrieve device serial with atca status: %i", status); abort(); } UI_Status_Textarea_Add("\nDevice client Id:\n>> %s <<\n", clientId, CLIENT_ID_LEN); xEventGroupWaitBits( wifi_event_group, CONNECTED_BIT, false, true, portMAX_DELAY); ESP_LOGI(TAG, "Initializing shadow device connection."); IoT_Error_t rc = aws_iot_shadow_init(&iotCoreClient, &sp); if (rc != SUCCESS) { ESP_LOGE(TAG, "Shadow init method returned error: %d", rc); abort(); } ShadowConnectParameters_t scp = ShadowConnectParametersDefault; scp.pMyThingName = clientId; scp.pMqttClientId = clientId; scp.mqttClientIdLen = CLIENT_ID_LEN; rc = aws_iot_shadow_connect(&iotCoreClient, &scp); if (rc != SUCCESS) { ESP_LOGE(TAG, "Shadow connect method returned error: %d", rc); abort(); } UI_Status_Textarea_Add("\nConnected to AWS IoT Core and pub/sub to the device shadow state\n", NULL, 0); rc = aws_iot_shadow_set_autoreconnect_status(&iotCoreClient, true); if (rc != SUCCESS) { ESP_LOGE(TAG, "Unable to set auto-reconnect to true with error: %d", rc); abort(); } // Register callback for recommendations rc = aws_iot_shadow_register_delta(&iotCoreClient, &recommendationsHandler); if (rc != SUCCESS) { ESP_LOGE(TAG, "Unable to register callback for recomendations."); } // Register callback for recommendations count rc = aws_iot_shadow_register_delta(&iotCoreClient, &recommendationCountHandler); if (rc != SUCCESS) { ESP_LOGE(TAG, "Unable to register callback for recommendations count."); } vTaskDelay(pdMS_TO_TICKS(2000)); while(rc == NETWORK_ATTEMPTING_RECONNECT || rc == NETWORK_RECONNECTED || rc == SUCCESS) { rc = aws_iot_shadow_yield(&iotCoreClient, 1000); if (rc == NETWORK_ATTEMPTING_RECONNECT || _shadowUpdateInProgress) { // Skip the rest of the loop while waiting for a reconnect/pending update continue; } _hhoMeasures = Read_HHO_Measures(); rc = aws_iot_shadow_init_json_document(JsonDocumentBuffer, sizeOfJsonDocumentBuffer); if (rc == SUCCESS) { rc = aws_iot_shadow_add_reported( JsonDocumentBuffer, sizeOfJsonDocumentBuffer, 7, &temperatureHandler, &soundHandler, &lightHandler, &tvocHandler, &eCO2Handler, &recommendationsHandler, &recommendationCountHandler); if (rc == SUCCESS) { rc = aws_iot_finalize_json_document(JsonDocumentBuffer, sizeOfJsonDocumentBuffer); if (rc == SUCCESS) { ESP_LOGI(TAG, "Updating shadow device: %s", JsonDocumentBuffer); rc = aws_iot_shadow_update(&iotCoreClient, clientId, JsonDocumentBuffer, shadow_update_status_callback, NULL, 6, true); _shadowUpdateInProgress = true; } else { ESP_LOGE(TAG, "Unable to finalize JSON document with error: %d", rc); } } else { ESP_LOGE(TAG, "Unable to add reported data with error: %d", rc); } } else { ESP_LOGE(TAG, "Unable to initialize the JSON message with error: %d", rc); } // Perform update every 10 seconds vTaskDelay(pdMS_TO_TICKS(10000)); } if (rc != SUCCESS) { ESP_LOGE(TAG, "An error occured in the loop: %d", rc); } rc = aws_iot_shadow_disconnect(&iotCoreClient); if (rc != SUCCESS) { ESP_LOGE(TAG, "Disconnect error: %d", rc); } else { ESP_LOGI(TAG, "Successfully disconnected."); } vTaskDelete(NULL); } void AWS_IoT_Update_Task_Init(UBaseType_t priority) { ESP_LOGI(TAG, "AWS IoT SDK Version %d.%d.%d-%s", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_TAG); initialize_JSON_buffer_fields(); initialise_wifi(); xTaskCreatePinnedToCore( &update_task, TAG, 4096*2, NULL, priority, NULL, 1); }
35.824742
113
0.698513
91085e24a160f4b590fb52c21c205fd3f70643ce
3,745
h
C
src/FlightSimOutputs.h
jbliesener/FlightSimOutputs
cd59a6151dfbaa9474f892f4bcf87cea0b443158
[ "MIT" ]
3
2019-09-27T13:30:57.000Z
2021-04-30T21:04:37.000Z
src/FlightSimOutputs.h
jbliesener/FlightSimOutputs
cd59a6151dfbaa9474f892f4bcf87cea0b443158
[ "MIT" ]
1
2018-05-07T00:15:42.000Z
2018-05-07T00:15:42.000Z
src/FlightSimOutputs.h
jbliesener/FlightSimOutputs
cd59a6151dfbaa9474f892f4bcf87cea0b443158
[ "MIT" ]
1
2018-05-06T23:42:45.000Z
2018-05-06T23:42:45.000Z
#ifndef _FLIGHTSIM_OUTPUTS_H #define _FLIGHTSIM_OUTPUTS_H #include <Arduino.h> /* * Data outputs for Midwest737Simulations Multi Output card * * (c) Jorg Neves Bliesener */ const uint8_t TEENSY_DIN_PIN = 5; const uint8_t TEENSY_CLK_PIN = 2; const uint8_t TEENSY_ENA_PIN = 4; const uint8_t TEENSY_STB_PIN = 3; const uint8_t NO_ENA_PIN = 0xff; const bool SR_74HCT4094 = false; const bool SR_74HCT595 = true; #define DEBUG_OFF (0) #define DEBUG_OUTPUT (1) #define DEBUG_VALUE (2) const uint8_t NUMBER_OF_SHIFT_REGS = 6; const uint8_t MAX_NUMBER_OF_CARDS = 8; const uint8_t MAX_NUMBER_OF_SHIFT_REGS = MAX_NUMBER_OF_CARDS * NUMBER_OF_SHIFT_REGS; const float DEFAULT_ON_THRESHOLD = 0.2; class FlightSimOutputElement; class MultiOutputBoard { // The FLIGHTSIM_INTERFACE macro is defined in Teensy's runtime library, if it has been compiled with // support for communications with X-Plane. Doesn't exist on the Arduino. #ifdef FLIGHTSIM_INTERFACE friend FlightSimOutputElement; #endif public: MultiOutputBoard(const uint8_t numberOfShiftRegs = NUMBER_OF_SHIFT_REGS) : MultiOutputBoard(TEENSY_DIN_PIN, TEENSY_CLK_PIN, TEENSY_STB_PIN, TEENSY_ENA_PIN, false, numberOfShiftRegs) {} MultiOutputBoard(const uint8_t dinPin, const uint8_t clkPin, const uint8_t stbPin, const uint8_t enaPin=NO_ENA_PIN, bool enaIsActiveLow=false, const uint8_t numberOfShiftRegs = NUMBER_OF_SHIFT_REGS); void setDinPin(uint8_t dinPin) { this->dinPin = dinPin; } void setClkPin(uint8_t clkPin) { this->clkPin = clkPin; } void setStbPin(uint8_t stbPin) { this->stbPin = stbPin; } void setEnaPin(uint8_t enaPin, bool enaIsActiveLow=false) { this->enaPin = enaPin; this->enaIsActiveLow = enaIsActiveLow; } void printTime(Stream *s); bool checkInitialized(const char *message, bool mustBeInitialized); void begin(); void setData(size_t pinNumber, bool value); bool getData(size_t pinNumber); void sendData(); void sendDataIfChanged(); void loop(); static MultiOutputBoard *firstOutputBoard; private: uint8_t numberOfShiftRegs; uint8_t dinPin; uint8_t clkPin; uint8_t stbPin; uint8_t enaPin; bool enaIsActiveLow; bool initialized; bool wasEnabled; bool valueChanged; uint8_t outputData[MAX_NUMBER_OF_SHIFT_REGS]; #ifdef FLIGHTSIM_INTERFACE FlightSimOutputElement *firstOutput; FlightSimOutputElement *lastOutput; #endif }; #ifdef FLIGHTSIM_INTERFACE class FlightSimOutputElement { friend MultiOutputBoard; public: FlightSimOutputElement(MultiOutputBoard *outBoard, size_t outputPin); virtual ~FlightSimOutputElement() {} void setDebug(uint8_t debugLevel) { this->debugLevel = debugLevel; } MultiOutputBoard *board; size_t outputPin; protected: uint8_t debugLevel; bool isEnabled; virtual void begin(size_t maxPinNumber); private: static FlightSimOutputElement *firstOrphan; static FlightSimOutputElement *lastOrphan; FlightSimOutputElement *next; virtual void forceUpdate() {} }; class FlightSimDigitalOutput : public FlightSimOutputElement { public: FlightSimDigitalOutput(size_t outputPin, float onThreshold=DEFAULT_ON_THRESHOLD, bool isInverted=false); FlightSimDigitalOutput(MultiOutputBoard *outputBoard, size_t outputPin, float onThreshold=DEFAULT_ON_THRESHOLD, bool isInverted=false); virtual ~FlightSimDigitalOutput() {} void setDataref(const _XpRefStr_ *positionDataref); void valueChanged(float newValue); FlightSimDigitalOutput & operator =(const _XpRefStr_ *s) { setDataref(s); return *this; } void setThreshold(float threshold) { this->onThreshold = threshold; } private: const _XpRefStr_ *datarefName; FlightSimFloat dataref; float onThreshold; bool isInverted; virtual void begin(size_t maxPinNumber); virtual void forceUpdate(); }; #endif #endif // _FLIGHTSIM_OUTPUTS_H
27.536765
136
0.796262
bcc036b43cbb7f2a2b40975403646b4612dce727
2,440
h
C
toonz/sources/tnzbase/tscanner/tscannerepson.h
rozhuk-im/opentoonz
ad5b632512746b97fd526aa79660fbaedf934fad
[ "BSD-3-Clause" ]
3,710
2016-03-26T00:40:48.000Z
2022-03-31T21:35:12.000Z
toonz/sources/tnzbase/tscanner/tscannerepson.h
rozhuk-im/opentoonz
ad5b632512746b97fd526aa79660fbaedf934fad
[ "BSD-3-Clause" ]
4,246
2016-03-26T01:21:45.000Z
2022-03-31T23:10:47.000Z
toonz/sources/tnzbase/tscanner/tscannerepson.h
rozhuk-im/opentoonz
ad5b632512746b97fd526aa79660fbaedf934fad
[ "BSD-3-Clause" ]
633
2016-03-26T00:42:25.000Z
2022-03-17T02:55:13.000Z
#pragma once #ifndef TSCANNER_EPSON_INCLUDED #define TSCANNER_EPSON_INCLUDED #include "tscanner.h" #include "TScannerIO/TScannerIO.h" #include <memory> /* PLEASE DO NOT REMOVE unreferenced methods... they are useful for debugging :) max */ class TScannerEpson final : public TScanner { enum SettingsMode { OLD_STYLE, NEW_STYLE }; TScannerIO *m_scannerIO; bool m_hasADF; bool m_isOpened; SettingsMode m_settingsMode; public: TScannerEpson(); ~TScannerEpson(); void selectDevice() override; bool isDeviceAvailable() override; bool isDeviceSelected() override; void updateParameters(TScannerParameters &param) override; // vedi TScanner void acquire(const TScannerParameters &params, int paperCount) override; bool isAreaSupported(); void closeIO(); private: void doSettings(const TScannerParameters &params, bool isFirstSheet); void collectInformation(char *lev0, char *lev1, unsigned short *lowRes, unsigned short *hiRes, unsigned short *hMax, unsigned short *vMax); bool resetScanner(); void reportError(std::string errMsg); // debug only char *ESCI_inquiry(char cmd); /* returns 0 if failed */ bool ESCI_command(char cmd, bool checkACK); bool ESCI_command_1b(char cmd, unsigned char p0, bool checkACK); bool ESCI_command_2b(char cmd, unsigned char p0, unsigned char p1, bool checkACK); bool ESCI_command_2w(char cmd, unsigned short p0, unsigned short p1, bool checkACK); bool ESCI_command_4w(char cmd, unsigned short p0, unsigned short p1, unsigned short p2, unsigned short p3, bool checkACK); std::unique_ptr<unsigned char[]> ESCI_read_data2(unsigned long &size); void ESCI_readLineData(unsigned char &stx, unsigned char &status, unsigned short &counter, unsigned short &lines, bool &areaEnd); void ESCI_readLineData2(unsigned char &stx, unsigned char &status, unsigned short &counter); int receive(unsigned char *buffer, int size); int send(unsigned char *buffer, int size); bool ESCI_doADF(bool on); int sendACK(); bool expectACK(); void scanArea2pix(const TScannerParameters &params, unsigned short &offsetx, unsigned short &offsety, unsigned short &dimlx, unsigned short &dimly, const TRectD &scanArea); }; #endif
33.424658
78
0.687295
406f10f55527031fedb77e72a0fd54e133dfd959
7,271
h
C
src/LiquidBattle.h
Centaurus99/LiquidBattle
80927cb80eb1605848a2f0605b59eba63eecc1be
[ "MIT" ]
null
null
null
src/LiquidBattle.h
Centaurus99/LiquidBattle
80927cb80eb1605848a2f0605b59eba63eecc1be
[ "MIT" ]
null
null
null
src/LiquidBattle.h
Centaurus99/LiquidBattle
80927cb80eb1605848a2f0605b59eba63eecc1be
[ "MIT" ]
null
null
null
/* * @Author: Tong Haixuan * @Date: 2021-05-24 20:30:21 * @LastEditTime: 2021-07-03 01:05:00 * @LastEditors: Tong Haixuan * @Description: The Main File of LiquidBattle */ #ifndef LIQUID_BATTLE_H #define LIQUID_BATTLE_H #include <iostream> #include <vector> #include <list> #include "framework/ParticleEmitter.h" #include "MyDebug.h" #include "CollisionData.h" #include "Player.h" #include "Obstacle.h" #include "ColorSet.h" // A Contact Filter to check collision class MyContactFilter : public b2ContactFilter { public: // Active when collision happen between body and particle bool ShouldCollide(b2Fixture* fixture, b2ParticleSystem* particleSystem, int32 particleIndex) { /* Here is the debug information of collision between body and particle. */ // #ifdef DEBUG // if (fixture->GetBody()->GetUserData()) { // if (fixture->GetBody()->GetUserData()) // MyDebug::Print(static_cast<CollisionData*>(fixture->GetBody()->GetUserData())->GetFlag()); // MyDebug::Print('-'); // if (particleSystem->GetUserDataBuffer()[particleIndex]) // MyDebug::Print(static_cast<CollisionData*>(particleSystem->GetUserDataBuffer()[particleIndex])->GetFlag()); // MyDebug::Print('\n'); // } // #endif if (fixture->GetBody()->GetUserData()) { uint32 particle_flag = 0; if (!particleSystem->GetUserDataBuffer()[particleIndex] || !(static_cast<CollisionData*>(fixture->GetBody()->GetUserData())->GetFlag() & (particle_flag = static_cast<CollisionData*>(particleSystem->GetUserDataBuffer()[particleIndex])->GetFlag()))) { static_cast<CollisionData*>(fixture->GetBody()->GetUserData())->Collide(particle_flag); } } return true; } // Active when collision happen between body and body bool ShouldCollide(b2Fixture* fixtureA, b2Fixture* fixtureB) { /* Here is the debug information of collision between body and body. */ if (fixtureA->GetBody()->GetUserData() || fixtureB->GetBody()->GetUserData()) { MyDebug::Print("Collision: "); if (fixtureA->GetBody()->GetUserData()) MyDebug::Print(static_cast<CollisionData*>(fixtureA->GetBody()->GetUserData())->GetFlag()); MyDebug::Print('-'); if (fixtureB->GetBody()->GetUserData()) MyDebug::Print(static_cast<CollisionData*>(fixtureB->GetBody()->GetUserData())->GetFlag()); MyDebug::Print('\n'); } CollisionData* UserDataA = static_cast<CollisionData*>(fixtureA->GetBody()->GetUserData()); CollisionData* UserDataB = static_cast<CollisionData*>(fixtureB->GetBody()->GetUserData()); if (UserDataA && UserDataB && (UserDataA->GetFlag() ^ UserDataB->GetFlag()) == ~0u) { MyDebug::Print("delete!\n"); UserDataA->Delete(); UserDataB->Delete(); } return true; } }; class LiquidBattle : public Test { private: std::vector<Player*> player_list_; std::list<Obstacle*> obstacle_list_; int32 obstacle_generation_interval_ = 0x3ff; // Calculate a random number in [l, r]. float32 Random(const float32& l, const float32& r) { float32 x = ((float32)rand() / (float32)RAND_MAX); return l + (r - l) * x; } public: MyContactFilter m_contact_filter_; LiquidBattle() { m_world->SetContactFilter(&m_contact_filter_); player_list_.push_back(new Player{ m_world, "wsad", 0, b2Vec2{-1.0f, 10.0f}, ColorSet[1] }); player_list_.push_back(new Player{ m_world, "ikjl", 1, b2Vec2{1.0f, 10.0f}, ColorSet[2] }); /* This player3 can be controlled with the small keyboard. */ // player_list_.push_back(new Player{ m_world, "8546", 2, b2Vec2{1.5f, 10.0f}, ColorSet[0] }); obstacle_list_.push_back(new Obstacle{ m_world, 0, 5, 2.0f, 1.0f, 0.06f, 2.5f }); { b2BodyDef bd; bd.position.Set(0, 5); b2Body* ground = m_world->CreateBody(&bd); ground->SetUserData(new CollisionData{ ~0u }); { b2PolygonShape shape; const b2Vec2 vertices[4] = { b2Vec2(-11, -11.5), b2Vec2(11, -11.5), b2Vec2(11, -10.5), b2Vec2(-11, -10.5) }; shape.Set(vertices, 4); ground->CreateFixture(&shape, 0.0f); } } { b2BodyDef bd; bd.position.Set(0, 5); b2Body* ground = m_world->CreateBody(&bd); { b2PolygonShape shape; const b2Vec2 vertices[4] = { b2Vec2(-11, 13), b2Vec2(11, 13), b2Vec2(11, 14), b2Vec2(-11, 14) }; shape.Set(vertices, 4); ground->CreateFixture(&shape, 0.0f); } { b2PolygonShape shape; const b2Vec2 vertices[4] = { b2Vec2(-11, -10.6f), b2Vec2(-9.5, -10.6f), b2Vec2(-9.5, 13.1f), b2Vec2(-11, 13.1f) }; shape.Set(vertices, 4); ground->CreateFixture(&shape, 0.0f); } { b2PolygonShape shape; const b2Vec2 vertices[4] = { b2Vec2(9.5, -10.6f), b2Vec2(11, -10.6f), b2Vec2(11, 13.1f), b2Vec2(9.5, 13.1f) }; shape.Set(vertices, 4); ground->CreateFixture(&shape, 0.0f); } } m_particleSystem->SetRadius(0.05f); m_particleSystem->SetDensity(1.0f); { b2PolygonShape shape; shape.SetAsBox(9.4f, 3.0f); b2ParticleGroupDef pd; pd.flags = b2_waterParticle | b2_fixtureContactFilterParticle; pd.position.Set(0, -2.3f); pd.shape = &shape; pd.color.Set(0, 0, 255, 255); pd.userData = new CollisionData; m_particleSystem->CreateParticleGroup(pd); } } /// Here has a BUG: sometimes main.cpp wil miss some 'Keyboard' or 'KeyboardUp' and forget to call function. // Change the keyboard state void Keyboard(unsigned char key) { // MyDebug::Print(key + 'A' - 'a'); for (auto x : player_list_) { x->KeyBoardPress(key); } } // Change the keyboard state void KeyboardUp(unsigned char key) { // MyDebug::Print(key); for (auto x : player_list_) { x->KeyBoardRelease(key); } if (key == '=') { // obstacle_list_.push_back(new Obstacle{ m_world, 0, 3, 2.0f, 1.0f, 0.06f, 2.5f }); player_list_.push_back(new Player{ m_world, "wsad", 0, b2Vec2{-1.0f, 10.0f} }); } if (key == '-') { if (!player_list_.empty()) { delete* player_list_.rbegin(); player_list_.pop_back(); } } } // Print current infomation to screen void PrintInformation() { /* Operate tips */ // m_debugDraw.DrawString(5, m_textLine, "Rotate: a,d Emit: w,s"); // m_textLine += DRAW_STRING_NEW_LINE; for (auto x : player_list_) { x->PrintInformation(&m_debugDraw, m_textLine); } } void Step(Settings* settings) { Test::Step(settings); const float32 dt = 1.0f / settings->hz; for (auto x : player_list_) { x->Maintain(dt); } for (auto x = obstacle_list_.begin(); x != obstacle_list_.end();) { if ((*x)->IsNeedDelete()) { delete (*x); x = obstacle_list_.erase(x); } else { ++x; } } PrintInformation(); if ((m_stepCount & obstacle_generation_interval_) == obstacle_generation_interval_) { obstacle_list_.push_back(new Obstacle{ m_world, Random(-7.0f, 7.0f), 5 + 11, 2.0f, 1.0f, 0.06f, 2.5f }); MyDebug::Print("Generate!\n"); } int32 cnt = 0; for (auto x : player_list_) { if (x->GetHP() <= 0.0f) { settings->pause = 1; //Print Player Die char buffer[256]; sprintf(buffer, "Player %d died.", cnt); m_debugDraw.DrawString(5, m_textLine, buffer); m_textLine += DRAW_STRING_NEW_LINE; } ++cnt; } } float32 GetDefaultViewZoom() const { return 0.38f; } static Test* Create() { return new LiquidBattle; } }; #endif
28.291829
117
0.652868
efb3919e354555a6ed364a4072aad365b9101753
339
h
C
src/2photo/views/table_view_cells/TPArtistDetailTableViewCell.h
petropavel13/2photo-iOS
ad8e4b7b97c632d930a87057e209e56df99da680
[ "MIT" ]
null
null
null
src/2photo/views/table_view_cells/TPArtistDetailTableViewCell.h
petropavel13/2photo-iOS
ad8e4b7b97c632d930a87057e209e56df99da680
[ "MIT" ]
null
null
null
src/2photo/views/table_view_cells/TPArtistDetailTableViewCell.h
petropavel13/2photo-iOS
ad8e4b7b97c632d930a87057e209e56df99da680
[ "MIT" ]
null
null
null
// // TPArtistDetailTableViewCell.h // 2photo // // Created by smolin_in on 10/05/14. // Copyright (c) 2014 null inc. All rights reserved. // #import <UIKit/UIKit.h> #import "TPBasicTableViewCell.h" #import "Artist.h" @interface TPArtistDetailTableViewCell : TPBasicTableViewCell @property (nonatomic, strong) Artist* artist; @end
18.833333
61
0.734513
c6466fc782bc0f4ba5a05e31d3f6f30346356f12
365
h
C
SYCacheFileViewController/SYCacheFileTable.h
mohsinalimat/SYCacheFileViewController
70e2aab6d75a85c0fbc96f5a5825f6e6b7b346d4
[ "MIT" ]
1
2018-07-31T11:39:45.000Z
2018-07-31T11:39:45.000Z
SYCacheFileViewController/SYCacheFileTable.h
mohsinalimat/SYCacheFileViewController
70e2aab6d75a85c0fbc96f5a5825f6e6b7b346d4
[ "MIT" ]
null
null
null
SYCacheFileViewController/SYCacheFileTable.h
mohsinalimat/SYCacheFileViewController
70e2aab6d75a85c0fbc96f5a5825f6e6b7b346d4
[ "MIT" ]
null
null
null
// // SYCacheFileTable.h // zhangshaoyu // // Created by zhangshaoyu on 17/6/27. // Copyright © 2017年 zhangshaoyu. All rights reserved. // #import <UIKit/UIKit.h> @interface SYCacheFileTable : UITableView /// 数据源 @property (nonatomic, strong) NSMutableArray *cacheDatas; /// 响应回调 @property (nonatomic, copy) void (^itemClick)(NSIndexPath *indexPath); @end
18.25
70
0.715068
f41f92597b17d9c4754412c473af9671e99e255c
14,953
h
C
Plugins/pvNVIDIAIndeX/include/nv/index/idata_distribution.h
xj361685640/ParaView
0a27eef5abc5a0c0472ab0bc806c4db881156e64
[ "Apache-2.0", "BSD-3-Clause" ]
815
2015-01-03T02:14:04.000Z
2022-03-26T07:48:07.000Z
Plugins/pvNVIDIAIndeX/include/nv/index/idata_distribution.h
xj361685640/ParaView
0a27eef5abc5a0c0472ab0bc806c4db881156e64
[ "Apache-2.0", "BSD-3-Clause" ]
9
2015-04-28T20:10:37.000Z
2021-08-20T18:19:01.000Z
Plugins/pvNVIDIAIndeX/include/nv/index/idata_distribution.h
xj361685640/ParaView
0a27eef5abc5a0c0472ab0bc806c4db881156e64
[ "Apache-2.0", "BSD-3-Clause" ]
328
2015-01-22T23:11:46.000Z
2022-03-14T06:07:52.000Z
/****************************************************************************** * Copyright 2021 NVIDIA Corporation. All rights reserved. *****************************************************************************/ /// \file idata_distribution.h /// \brief Interfaces for implementing and launching distributed data jobs. #ifndef NVIDIA_INDEX_IDATA_DISTRIBUTION_H #define NVIDIA_INDEX_IDATA_DISTRIBUTION_H #include <mi/dice.h> #include <mi/base/interface_declare.h> #include <mi/neuraylib/iserializer.h> #include <nv/index/idistributed_data_edit.h> #include <nv/index/idistributed_data_locality.h> namespace nv { namespace index { /// Distributed job interface enabling analysis and processing running against distributed subset data. /// /// The \c IDistributed_data_job interface for implementing custom jobs resembles the /// \c mi::neuraylib::IFragment_job interface on purpose. While DiCE's \c mi::neuraylib::IFragment_job /// interface is meant to implement general cluster wide jobs, e.g., compute algorithms, /// the \c IDistributed_data_job interface enables applications to implement algorithms /// specifically for NVIDIA IndeX's distributed data. Here, the scheduling is based on the /// data locality, i.e., which cluster node stores which portion of the dataset. /// The job will then send out one execution thread per subset data so that all data subsets /// can be processed in parallel either locally or remotely. For local execution, the /// method #execute_subset is invoked to processes a single subset data and for remote execution, /// the method #execute_subset_remote is invoked. The method #execute_subset_remote has its /// local counterpart #receive_subset_result in case the distributed data processing analyses /// the data and derives information from the data that need to be assembled locally. /// A common use-case for that is the histogram generation. /// /// Technically, the DiCE \c mi::neuraylib::Fragmented_job infrastructure is used to facilitate the /// distributed data analysis and processing. While the processing of subset data could still be /// implemented using the \c mi::neuraylib::Fragmented_job interface and, for instance, the /// information provided by the data locality (see \c IDistributed_data_locality), the use of /// the \c IDistributed_data_job interface reduces the code complexity drastically and provides /// immediate access to the data subset through \c IData_subset_processing_task and /// \c IData_subset_compute_task_processing interfaces. /// /// \ingroup nv_index_data_edit /// class IDistributed_data_job : public mi::base::Interface_declare<0x841224fe,0x3c17,0x43b3,0xaa,0xc8,0xbc,0x32,0x72,0xc8,0x44,0xf1, mi::neuraylib::ISerializable> { public: /// A data locality query mode specifies which data subsets to process. /// Implementations of the class \c IDistributed_data_locality_query_mode /// specify which distributed data scene element to process and typically also /// provide additional query parameter such as the region of interest in 3D in /// case of a volume or a 2D in case of a height field. /// The query mode lets the NVIDIA IndeX system determine the cluster nodes and /// GPUs on which subset data is located and schedule the distributed data job /// respectively. /// /// \return Returns data locality query mode represented by the /// \c IDistributed_data_locality_query_mode interface. If the /// method returns an invalid query mode or just a null pointer /// then the NVIDIA IndeX system prevents the distributed job /// execution. /// virtual IDistributed_data_locality_query_mode* get_scheduling_mode() const = 0; /// Receiving a distributed data locality from the NVIDIA IndeX system. /// /// Typically, the \c IDistributed_data_locality reports on which cluster /// node the distributed portions of a dataset are hosted. These portions /// are represented as subset data and have a well-defined bounding box. /// /// The \c IDistributed_data_locality may be used by the application to gather /// details on the job execution as each execution thread of the job is sent to /// exactly one data subset. That is, the cluster host and the bounding box /// could be derived and taken into account for further job execution. /// /// \param[in] determined_locality The data locality determined /// by the NVIDIA IndeX system based on the /// information that this job implementation /// provides along with the #get_scheduling_mode. /// virtual void receive_data_locality( IDistributed_data_locality* determined_locality) = 0; /// Local execution of the distributed data job for a processing a data subset. /// /// The method is invoked by the NVIDIA IndeX system. It facilitates the processing /// of a single data subset. For processing the data an user-implemented /// \c IData_subset_processing_task can be executed using the method /// \c IData_subset_compute_task_processing::execute_compute_task. /// /// \param[in] dice_transaction The DiCE transaction enables access of the /// the distributed data store and launching of /// additional jobs, e.g., to retrieve compute /// results from different nodes. /// /// \param[in] data_distribution The \c IData_distribution interface enables /// to derive a data locality and schedule new /// distributed jobs. /// /// \param[in] data_subset_processing The \c IData_subset_compute_task_processing interface /// facilitates the execution of user-implemented /// data processing tasks (see \c IData_subset_processing_task). /// /// \param[in] data_subset_index The data subset ID that corresponds and uniquely /// identifies the data subset that this execution call /// processes. /// /// \param[in] data_subset_count The total number of data subsets that are processed /// by the distributed data job. /// virtual void execute_subset( mi::neuraylib::IDice_transaction* dice_transaction, const nv::index::IData_distribution* data_distribution, nv::index::IData_subset_compute_task_processing* data_subset_processing, mi::Size data_subset_index, // not to confuse with subset data ID mi::Size data_subset_count) = 0; /// Remote execution of the distributed data job for a processing a data subset. /// /// The method is invoked by the NVIDIA IndeX system on a remote node. /// It facilitates the processing of a single data subset. /// For processing the data an user-implemented \c IData_subset_processing_task /// can be executed using the method /// \c IData_subset_compute_task_processing::execute_compute_task. /// /// \param[in] serializer The serializer allows the application to /// communicate computed results, e.g. a mean /// value, back to the calling job instance. /// The correspondent #receive_subset_result /// receives the returned result in its /// deserializer steam. /// /// \param[in] dice_transaction The DiCE transaction enables access of the /// the distributed data store and launching of /// additional jobs, e.g., to retrieve compute /// results from different nodes. /// /// \param[in] data_distribution The \c IData_distribution interface enables /// to derive a data locality and schedule new /// distributed jobs. /// /// \param[in] data_subset_processing The \c IData_subset_compute_task_processing interface /// facilitates the execution of user-implemented /// data processing tasks (see \c IData_subset_processing_task). /// /// \param[in] data_subset_index The data subset ID that corresponds and uniquely /// identifies the data subset that this execution call /// processes. /// /// \param[in] data_subset_count The total number of data subsets that are processed /// by the distributed data job. /// virtual void execute_subset_remote( mi::neuraylib::ISerializer* serializer, mi::neuraylib::IDice_transaction* dice_transaction, const nv::index::IData_distribution* data_distribution, nv::index::IData_subset_compute_task_processing* data_subset_processing, mi::Size data_subset_index, mi::Size data_subset_count) = 0; /// Receives the result of a remote distributed data job execution. /// /// The method is invoked by the NVIDIA IndeX system on the local node again and /// assembles the results computed by the correspondent #execute_subset_remote that /// was launched for the data subset with the same \c data_subset_index. /// /// \param[in] deserializer The deserializer receives the results /// computed on a remote node for the given /// data subset in the correspondent /// #execute_subset_remote call. /// /// \param[in] dice_transaction The DiCE transaction enables access of the /// the distributed data store and launching of /// additional jobs, e.g., to retrieve compute /// results from different nodes. /// /// \param[in] data_distribution The \c IData_distribution interface enables /// to derive a data locality and schedule new /// distributed jobs. /// /// \param[in] data_subset_index The data subset ID that corresponds and uniquely /// identifies the data subset that this execution call /// processes. /// /// \param[in] data_subset_count The total number of data subsets that are processed /// by the distributed data job. /// virtual void receive_subset_result( mi::neuraylib::IDeserializer* deserializer, mi::neuraylib::IDice_transaction* dice_transaction, const nv::index::IData_distribution* data_distribution, mi::Size data_subset_index, mi::Size data_subset_count) = 0; }; /// Mixin class that implements the mi::neuraylib::Distributed_data_job interface. /// /// The mixin class provides a default implementation of some of the pure virtual /// methods of the \c nv::index::IDistributed_data_job interface. The documentation /// here just lists the behavior of the default implementation, /// see \c nv::index::IDistributed_data_job for the documentation of the /// methods themselves. /// template <mi::Uint32 id1, mi::Uint16 id2, mi::Uint16 id3, mi::Uint8 id4, mi::Uint8 id5, mi::Uint8 id6, mi::Uint8 id7, mi::Uint8 id8, mi::Uint8 id9, mi::Uint8 id10, mi::Uint8 id11, class I = IDistributed_data_job> class Distributed_data_job : public mi::neuraylib::Base<id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, I> { public: /// Receiving a distributed data locality from the NVIDIA IndeX job scheduler. /// /// \param[in] determined_locality The data locality determined by the NVIDIA IndeX system. /// This default implementation does not consider the /// data locality further. /// virtual void receive_data_locality( IDistributed_data_locality* determined_locality) { (void)determined_locality; // avoid unused warnings return; /* do nothing */ } }; /// Scheduling and launching distributed data analysis and processing jobs. /// /// The scheduler takes an user-implemented \c IDistributed_data_job and executes /// it. The scheduler first examines the job's scheduling mode and determines the /// data locality of the targeted distributed dataset. That is, the scheduler determines /// on which cluster node which data subset is hosted. The scheduler then sends the /// execution threads to these cluster nodes for processing these datasets. One execution /// thread per subset. The data locality will be passed back to the job for information /// and potential use. /// /// An instance of a \c IDistributed_data_job_scheduler interface implementation is /// created and exposed by the interace \c IData_distribution, which is available through /// the \c ISession interface. /// /// \ingroup nv_index_data_edit /// class IDistributed_data_job_scheduler : public mi::base::Interface_declare<0x91224ed0,0x6e2a,0x48c9,0xb1,0x79,0x61,0x8e,0x22,0xd2,0x5e,0xf2, mi::base::IInterface> { public: /// Launching the user-implemented distributed data job. /// /// \param[in] job The user-implemented distributed data job /// for scheduling and cluster-wide execution. /// /// \param[in] dice_transaction The DiCE transaction that this job runs in. /// virtual mi::Sint32 execute( IDistributed_data_job* job, mi::neuraylib::IDice_transaction* dice_transaction) const = 0; }; }} // namespace index / nv #endif // NVIDIA_INDEX_IDATA_DISTRIBUTION_H
56.214286
121
0.612452
3cac9b5ec608a11684891bb57469d9151cd1c6e7
153
c
C
HelloFuzz/main.c
zhouweitong3/fuzzing-test
c04e07e22b1b1ea1752c42f984538aa5e62dfc42
[ "MIT" ]
null
null
null
HelloFuzz/main.c
zhouweitong3/fuzzing-test
c04e07e22b1b1ea1752c42f984538aa5e62dfc42
[ "MIT" ]
null
null
null
HelloFuzz/main.c
zhouweitong3/fuzzing-test
c04e07e22b1b1ea1752c42f984538aa5e62dfc42
[ "MIT" ]
null
null
null
#include <stdio.h> int main() { printf("Hello!\nWhat\'s Your Name?\n"); char s[15]; gets(s); printf("Welcome %s!", s); return 0; }
13.909091
43
0.522876
71634bee39efb8424afdf7b4faf971571ee0f0e1
8,279
c
C
api/src/intro_c/classic.c
thebridge0491/intro_c
ff474a8ef8f152536438b95cf8df01f4a841cce8
[ "CECILL-B" ]
null
null
null
api/src/intro_c/classic.c
thebridge0491/intro_c
ff474a8ef8f152536438b95cf8df01f4a841cce8
[ "CECILL-B" ]
null
null
null
api/src/intro_c/classic.c
thebridge0491/intro_c
ff474a8ef8f152536438b95cf8df01f4a841cce8
[ "CECILL-B" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> #include <math.h> #include <log4c.h> static log4c_category_t *prac1; static bool is_less(int a, int b) { return a < b; } static bool is_grtr(int a, int b) { return a > b; } static long add_a_b(const long a, const long b) { return a + b; } static long mul_a_b(const long a, const long b) { return a * b; } static float expt_iter(const float b, const float n, const float acc) { return n > 0.0f ? expt_iter(b, n - 1, acc * b) : acc; } float expt_i(const float b, const float n) {return expt_iter(b, n, 1.0f);} float expt_lp(const float b, const float n) { float acc = 1.0f; for (float i = n; 0.0f < i; --i) acc *= b; return acc; } float square_i(const float n) { return expt_i(n, 2.0); // powf(n, 2.0f); } float square_lp(const float n) { return expt_lp(n, 2.0); } static float fast_expt_iter(const float b, const int n, const float acc) { if (0 >= n) { return acc; } else if (0 == (n % 2)) { return fast_expt_iter(b, n - 2, acc * b * b); } else { return fast_expt_iter(b, n - 1, acc * b); } } float fast_expt_i(const float b, const float n) { return fast_expt_iter(b, n, 1.0); } float fast_expt_lp(const float b, const float n) { float acc = 1.0f; for (int i = n; 0.0f < i; ) { if (0 == (i % 2)) { acc *= (b * b); i -= 2.0f; } else { acc *= b; i -= 1.0f; } } return acc; } static long numseq_math_iter(long (*op)(long a, long b), const long acc, const long hi, const long lo) { return hi >= lo ? numseq_math_iter(op, op(acc, lo), hi, lo + 1) : acc; } static long numseq_math_i(long (*op)(long a, long b), const long init, const long hi, const long lo) { return numseq_math_iter(op, init, hi, lo); } static long numseq_math_lp(long (*op)(long a, long b), const long init, const long hi, const long lo) { long acc = init; for (long i = lo; hi >= i; ++i) acc = op(acc, i); return acc; } long sum_to_i(const long hi, const long lo) { return numseq_math_i(add_a_b, 0L, hi, lo); } long sum_to_lp(const long hi, const long lo) { return numseq_math_lp(add_a_b, 0L, hi, lo); } long fact_i(const long n) { prac1 = log4c_category_get("prac"); log4c_category_log(prac1, LOG4C_PRIORITY_INFO, "fact_i"); return numseq_math_i(mul_a_b, 1L, n, 1L); } long fact_lp(const long n) { return numseq_math_lp(mul_a_b, 1L, n, 1L); } static int fib_iter(const int s0, const int s1, const int cnt) { return 0 >= cnt ? s0 : fib_iter(s1, s0 + s1, cnt - 1); } int fib_i(const int n) { return fib_iter(0, 1, n); } int fib_lp(const int n) { int acc = 0; for (int sum0 = 0, sum1 = 1, ct = n; 0 <= ct; --ct) { acc = sum0; sum0 = sum1; sum1 = sum1 + acc; } return acc; } static void mk_rows(const int n, int **arr2d) { for (int row = 1; n >= row; ++row) { arr2d[row][0] = arr2d[row][row] = 1; for (int col = 1; row > col; ++col) arr2d[row][col] = arr2d[row - 1][col - 1] + arr2d[row - 1][col]; } } int** pascaltri_add(const int n) { int **result = NULL; if (NULL == (result = calloc(n + 1, sizeof(int*)))) { perror("calloc error(arr2d)"); return NULL; } for (int row = 0; n >= row; ++row) for (int col = 0; row >= col; ++col) if (NULL == (result[row] = calloc(row + 1, sizeof(int)))) { perror("calloc error(arr2d[i])"); return NULL; } result[0][0] = 1; mk_rows(n, result); return result; } void print_pascaltri(const int n, const int **arr2d) { if (NULL == arr2d) return; for (int row = 0; n >= row; ++row, putchar('\n')) for (int col = 0; row >= col; ++col) printf("%3i ", arr2d[row][col]); putchar('\n'); } int quot_m(const int n, const int d) {return n / d;} int rem_m(const int n, const int d) {return n % d;} //n - (d * quot_m(n, d));} static int euclid_iter(const int a, const int b) { return 0 == b ? a : euclid_iter(b, a % b); } static int euclid_i(const int m, const int n) { return euclid_iter(m, n); } static int euclid_lp(const int m, const int n) { int acc = m; for (int b = n, swap = 0; 0 < b; ) { swap = acc; acc = b; b = swap % b; } return acc; } static int gcd_iter(const int acc, const int idx, const int *arr) { return 0 > idx ? acc : gcd_iter(euclid_i(acc, arr[idx]), idx - 1, arr); } int gcd_i(const int nelts, const int *arr) { return 0 > nelts ? 1 : gcd_iter(arr[0], nelts - 1, arr); } int gcd_lp(const int nelts, const int *arr) { int acc = (2 <= nelts) ? euclid_lp(arr[0], arr[1]) : ((1 == nelts) ? arr[0] : 1); for (int i = 2; nelts > i; ++i) acc = euclid_lp(acc, arr[i]); return acc; } static int lcm_iter(const int acc, const int idx, const int *arr) { return 0 > idx ? acc : lcm_iter(acc * arr[idx] / euclid_i(acc, arr[idx]), idx - 1, arr); } int lcm_i(const int nelts, const int *arr) { return 0 > nelts ? 1 : lcm_iter(1, nelts - 1, arr); } int lcm_lp(const int nelts, const int *arr) { int acc = (2 <= nelts) ? (arr[0] * arr[1]) / euclid_lp(arr[0], arr[1]) : ((1 == nelts) ? arr[0] : 1); for (int i = 2; nelts > i; ++i) acc = (acc * arr[i]) / euclid_lp(acc, arr[i]); return acc; } static int* base_expand_iter(const int b, const int n, const int idx, int *arr) { if (0 <= idx) { arr[idx] = n % b; return base_expand_iter(b, n / b, idx - 1, arr); } return arr; } int* base_expand_i(const int b, const int n) { int *res = NULL, len_arr = 0; for (int i = n; 0 < i; i = i / b) len_arr += 1; if (NULL == (res = malloc(len_arr * sizeof(int)))) { perror("malloc error"); return NULL; } return base_expand_iter(b, n, len_arr - 1, res); } int* base_expand_lp(const int b, const int n) { int *res = NULL, len_arr = 0; for (int i = n; 0 < i; i = i / b) len_arr += 1; if (NULL == (res = malloc(len_arr * sizeof(int)))) { perror("malloc error"); return NULL; } for (int i = n, j = len_arr - 1; 0 < i; i = i / b, --j) res[j] = i % b; return res; } static int base_to10_iter(const int acc, const int b, const int idx, const int len_arr, const int *arr) { return len_arr <= idx ? acc : base_to10_iter(acc + arr[idx] * powf(b, (len_arr - idx - 1)), b, idx + 1, len_arr, arr); } int base_to10_i(const int b, const int len_arr, const int *arr) { return base_to10_iter(0, b, 0, len_arr, arr); } int base_to10_lp(const int b, const int len_arr, const int *arr) { int acc = 0; for (int i = len_arr - 1, ct = 0; 0 <= i; --i, ++ct) acc += arr[i] * powf(b, ct); return acc; } static int* range_step_iter(const int step, int start, const int stop, const int idx, const int len_arr, int *arr) { if (len_arr > idx) { arr[idx] = start; return range_step_iter(step, start + step, stop, idx + 1, len_arr, arr); } return arr; } int* range_step_i(const int step, int start, const int stop) { int *res = NULL, len_arr = 0; bool (*rel_op)(int a, int b) = (step > 0) ? is_grtr : is_less; for (int i = start; rel_op(stop, i); i = i + step) len_arr += 1; if (NULL == (res = malloc(len_arr * sizeof(int)))) { perror("malloc error"); return NULL; } return range_step_iter(step, start, stop, 0, len_arr, res); } int* range_step_lp(const int step, int start, const int stop) { int *res = NULL, len_arr = 0; bool (*rel_op)(int a, int b) = (step > 0) ? is_grtr : is_less; for (int i = start; rel_op(stop, i); i = i + step) len_arr += 1; if (NULL == (res = malloc(len_arr * sizeof(int)))) { perror("malloc error"); return NULL; } for (int i = start, j = 0; rel_op(stop, i); i = i + step, ++j) res[j] = i; return res; } int* range_i(const int start, const int stop) { return range_step_i(1, start, stop); } int* range_lp(const int start, const int stop) { return range_step_lp(1, start, stop); }
28.647059
80
0.559609
716c540badbcad24909f2d82c2b8f78121df580b
7,220
c
C
src/res.c
fgsfdsfgs/rawpsx
0c67fe942df8934e6cf610115b9a3868e5bff9f7
[ "MIT" ]
1
2021-06-14T21:09:03.000Z
2021-06-14T21:09:03.000Z
src/res.c
fgsfdsfgs/rawpsx
0c67fe942df8934e6cf610115b9a3868e5bff9f7
[ "MIT" ]
1
2022-02-05T19:45:53.000Z
2022-02-08T16:46:45.000Z
src/res.c
fgsfdsfgs/rawpsx
0c67fe942df8934e6cf610115b9a3868e5bff9f7
[ "MIT" ]
null
null
null
#include <string.h> #include "types.h" #include "res.h" #include "cd.h" #include "gfx.h" #include "util.h" #include "unpack.h" #include "tables.h" #include "snd.h" #include "game.h" u8 *res_seg_code; u8 *res_seg_video[2]; u8 *res_seg_video_pal; int res_vidseg_idx; u16 res_next_part; u16 res_cur_part; int res_have_password; const string_t *res_str_tab; static mementry_t res_memlist[NUM_MEMLIST_ENTRIES + 1]; static u16 res_memlist_num; static u8 res_mem[MEMBLOCK_SIZE]; static u8 *res_script_ptr; static u8 *res_script_membase; static u8 *res_vid_ptr; static u8 *res_vid_membase; typedef struct { u8 me_pal; u8 me_code; u8 me_vid1; u8 me_vid2; } mempart_t; static const mempart_t res_memlist_parts[] = { { 0x14, 0x15, 0x16, 0x00 }, // 16000 - protection screens { 0x17, 0x18, 0x19, 0x00 }, // 16001 - introduction { 0x1A, 0x1B, 0x1C, 0x11 }, // 16002 - water { 0x1D, 0x1E, 0x1F, 0x11 }, // 16003 - jail { 0x20, 0x21, 0x22, 0x11 }, // 16004 - 'cite' { 0x23, 0x24, 0x25, 0x00 }, // 16005 - 'arene' { 0x26, 0x27, 0x28, 0x11 }, // 16006 - 'luxe' { 0x29, 0x2A, 0x2B, 0x11 }, // 16007 - 'final' { 0x7D, 0x7E, 0x7F, 0x00 }, // 16008 - password screen { 0x7D, 0x7E, 0x7F, 0x00 } // 16009 - password screen }; void res_init(void) { cd_init(); // read memlist cd_file_t *f = cd_fopen(MEMLIST_FILENAME, 0); if (!f) panic("res_init(): could not open data files"); res_memlist_num = 0; mementry_t *me = res_memlist; while (!cd_feof(f)) { ASSERT(res_memlist_num < NUM_MEMLIST_ENTRIES + 1); cd_freadordie(me, sizeof(*me), 1, f); me->bufptr = NULL; me->bank_pos = bswap32(me->bank_pos); me->packed_size = bswap32(me->packed_size); me->unpacked_size = bswap32(me->unpacked_size); // terminating entry if (me->status == 0xFF) break; ++me; ++res_memlist_num; } cd_fclose(f); printf("res_init(): memlist_num=%d\n", (int)res_memlist_num); // check if there's a password screen const int pwnum = res_memlist_parts[PART_PASSWORD - PART_BASE].me_code; char bank[16]; ASSERT(pwnum < res_memlist_num); snprintf(bank, sizeof(bank), BANK_FILENAME, res_memlist[pwnum].bank); res_have_password = cd_fexists(bank); // set up memory work areas res_script_membase = res_script_ptr = res_mem; res_vid_membase = res_vid_ptr = res_mem + MEMBLOCK_SIZE - 0x800 * 16; // assume english res_str_tab = str_tab_en; } void res_invalidate_res(void) { for (u16 i = 0; i < res_memlist_num; ++i) { mementry_t *me = res_memlist + i; if (me->type <= RT_BITMAP || me->type > RT_BANK) me->status = RS_NULL; } res_script_ptr = res_script_membase; gfx_invalidate_palette(); snd_clear_cache(); } void res_invalidate_all(void) { for (u16 i = 0; i < res_memlist_num; ++i) res_memlist[i].status = RS_NULL; res_script_ptr = res_mem; gfx_invalidate_palette(); snd_clear_cache(); } static int res_read_bank(const mementry_t *me, u8 *out) { int ret = 0; char fname[16]; u32 count = 0; snprintf(fname, sizeof(fname), BANK_FILENAME, (int)me->bank); cd_file_t *f = cd_fopen(fname, 1); // allow reopening same handle because we fseek immediately afterwards if (f) { cd_fseek(f, me->bank_pos, SEEK_SET); count = cd_fread(out, me->packed_size, 1, f); cd_fclose(f); ret = (count == me->packed_size); if (ret && (me->packed_size != me->unpacked_size)) { printf("res_read_bank(%d, %p): unpacking %d to %d (%p)\n", me - res_memlist, out, me->packed_size, me->unpacked_size, out); ret = bytekiller_unpack(out, me->unpacked_size, out, me->packed_size); } } printf("res_read_bank(%d, %p): bank %d ofs %d count %d packed %d unpacked %d\n", me - res_memlist, out, me->bank, me->bank_pos, count, me->packed_size, me->unpacked_size); return ret; } static void res_do_load(void) { while (1) { // find pending entry with max rank mementry_t *me = NULL; u8 max_rank = 0; for (u16 i = 0; i < res_memlist_num; ++i) { mementry_t *it = res_memlist + i; if (it->status == RS_TOLOAD && it->rank >= max_rank) { me = it; max_rank = it->rank; } } if (!me) break; const int resnum = me - res_memlist; u8 *memptr = NULL; if (me->type == RT_BITMAP) { memptr = res_vid_ptr; } else { memptr = res_script_ptr; // video data seg is after the script data seg, check if they'll intersect if (me->unpacked_size > (u32)(res_vid_membase - res_script_ptr)) { printf("res_do_load(): not enough memory to load resource %d\n", resnum); me->status = RS_NULL; continue; } } if (me->bank == 0) { printf("res_do_load(): res %d has NULL banknum\n", resnum); me->status = RS_NULL; } else { if (res_read_bank(me, memptr)) { printf("res_do_load(): read res %d (type %d) from bank %d\n", me - res_memlist, me->type, me->bank); if (me->type == RT_BITMAP) { gfx_blit_bitmap(res_vid_ptr, me->unpacked_size); me->status = RS_NULL; } else { me->bufptr = memptr; me->status = RS_LOADED; res_script_ptr += me->unpacked_size; if (me->type == RT_SOUND) { printf("res_do_load(): precaching sound %d size %d\n", resnum, me->unpacked_size); snd_cache_sound(me->bufptr, me->unpacked_size, SND_TYPE_PCM_WITH_HEADER); } } } else if (me->bank == 12 && me->type == RT_BANK) { // DOS demo does not have this resource, ignore it me->status = RS_NULL; continue; } else { panic("res_do_load(): could not load resource %d from bank %d", resnum, (int)me->bank); } } } } void res_setup_part(const u16 part_id) { if (part_id != res_cur_part) { if (part_id < PART_BASE || part_id > PART_LAST) panic("res_setup_part(%05d): invalid part", (int)part_id); const mempart_t part = res_memlist_parts[part_id - PART_BASE]; res_invalidate_all(); res_memlist[part.me_pal ].status = RS_TOLOAD; res_memlist[part.me_code].status = RS_TOLOAD; res_memlist[part.me_vid1].status = RS_TOLOAD; if (part.me_vid2 != 0) res_memlist[part.me_vid2].status = RS_TOLOAD; res_do_load(); res_seg_video_pal = res_memlist[part.me_pal].bufptr; res_seg_code = res_memlist[part.me_code].bufptr; res_seg_video[0] = res_memlist[part.me_vid1].bufptr; if (part.me_vid2 != 0) res_seg_video[1] = res_memlist[part.me_vid2].bufptr; res_cur_part = part_id; } res_script_membase = res_script_ptr; } void res_load(const u16 res_id) { if (res_id > PART_BASE) { res_next_part = res_id; return; } mementry_t *me = res_memlist + res_id; if (me->status == RS_NULL) { me->status = RS_TOLOAD; res_do_load(); } } const mementry_t *res_get_entry(const u16 res_id) { if (res_id >= PART_BASE) return NULL; return res_memlist + res_id; } const char *res_get_string(const string_t *strtab, const u16 str_id) { if (strtab == NULL) strtab = res_str_tab; if (strtab == NULL) return NULL; for (u16 i = 0; i < 0x100 && strtab[i].id != 0xFFFF; ++i) { if (strtab[i].id == str_id) return strtab[i].str; } return NULL; }
29.711934
173
0.64072
14cb509fc34237b555dd35263bf67e7468ad8a2e
1,047
h
C
Checkman/HTTPRequest.h
Pivotal-Data-Attic/checkman
627603d36e08437cbac77f36856c182a87b4fd79
[ "MIT" ]
56
2015-02-11T13:20:16.000Z
2021-01-18T15:54:33.000Z
Checkman/HTTPRequest.h
Pivotal-Data-Attic/checkman
627603d36e08437cbac77f36856c182a87b4fd79
[ "MIT" ]
32
2015-02-12T19:44:50.000Z
2022-02-26T04:55:34.000Z
Checkman/HTTPRequest.h
Pivotal-Data-Attic/checkman
627603d36e08437cbac77f36856c182a87b4fd79
[ "MIT" ]
25
2015-03-17T17:04:06.000Z
2021-05-17T21:13:12.000Z
#import <Foundation/Foundation.h> @class HTTPRequest; @protocol HTTPRequestDelegate <NSObject> - (void)HTTPRequestDidRespond:(HTTPRequest *)request; @end @interface HTTPRequest : NSObject @property (nonatomic, assign) id<HTTPRequestDelegate> delegate; @property (nonatomic, assign) CFHTTPMessageRef request; @property (nonatomic, assign) CFHTTPMessageRef response; - (id)initWithRequest:(CFHTTPMessageRef)request; #pragma mark - Request - (NSString *)requestMethod; - (NSString *)requestVersion; - (BOOL)isHTTP11; - (NSURL *)requestURL; - (NSString *)requestNamedHeaderValue:(NSString *)name; #pragma mark - Response // Also sets HTTP 1.1 and Content-Length: 0 - (void)setResponseStatus:(CFIndex)status; - (void)setResponseHeader:(NSString *)name value:(NSString *)value; - (NSString *)responseNamedHeaderValue:(NSString *)name; - (BOOL)isResponseConnectionUpgrade; // Automatically sets Content-Length: to data's length - (void)setResponseBody:(NSData *)data; - (void)respond; - (BOOL)hasResponded; - (NSData *)responseAsData; @end
24.348837
67
0.762178
ede265b9cc7bb94c991b027fbe39a472df0419c6
1,589
h
C
ART/LeafArray.h
GasolLY/ROART
c313e0f375d55ea850c0c497e7d104009a327fa3
[ "Apache-2.0" ]
6
2021-07-12T04:53:58.000Z
2022-01-18T12:29:35.000Z
ART/LeafArray.h
victoryang00/ROART
c313e0f375d55ea850c0c497e7d104009a327fa3
[ "Apache-2.0" ]
4
2021-07-01T06:56:08.000Z
2022-01-09T06:57:36.000Z
ART/LeafArray.h
victoryang00/ROART
c313e0f375d55ea850c0c497e7d104009a327fa3
[ "Apache-2.0" ]
8
2021-09-07T09:02:34.000Z
2022-03-17T07:45:17.000Z
// // Created by 谢威宇 on 2021/4/3. // #ifndef P_ART_LEAFARRAY_H #define P_ART_LEAFARRAY_H #include "N.h" #include <atomic> #include <bitset> #include <functional> namespace PART_ns { const size_t LeafArrayLength = 64; const size_t FingerPrintShift = 48; class LeafArray : public N { public: std::atomic<uintptr_t> leaf[LeafArrayLength]; std::atomic<std::bitset<LeafArrayLength>> bitmap; // 0 means used slot; 1 means empty slot public: LeafArray(uint32_t level = -1) : N(NTypes::LeafArray, level, {}, 0) { bitmap.store(std::bitset<LeafArrayLength>{}.reset()); memset(leaf, 0, sizeof(leaf)); } virtual ~LeafArray() {} size_t getRightmostSetBit() const; void setBit(size_t bit_pos, bool to = true); uint16_t getFingerPrint(size_t pos) const; Leaf *getLeafAt(size_t pos) const; N *getAnyChild() const; static uintptr_t fingerPrintLeaf(uint16_t fingerPrint, Leaf *l); Leaf *lookup(const Key *k) const; bool update(const Key *k, Leaf *l); bool insert(Leaf *l, bool flush); bool remove(const Key *k); void reload(); uint32_t getCount() const; bool isFull() const; void splitAndUnlock(N *parentNode, uint8_t parentKey, bool &need_restart); std::vector<Leaf *> getSortedLeaf(const Key *start, const Key *end, int start_level, bool compare_start, bool compare_end); void graphviz_debug(std::ofstream &f); } __attribute__((aligned(64))); } // namespace PART_ns #endif // P_ART_LEAFARRAY_H
23.367647
78
0.648836
e8a8a78cc8fe21c0e93cc549e677c7959581f1b4
2,812
h
C
PrivateFrameworks/Intents/_INPBValueMetadata.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
17
2018-11-13T04:02:58.000Z
2022-01-20T09:27:13.000Z
PrivateFrameworks/Intents/_INPBValueMetadata.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
3
2018-04-06T02:02:27.000Z
2018-10-02T01:12:10.000Z
PrivateFrameworks/Intents/_INPBValueMetadata.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
1
2018-09-28T13:54:23.000Z
2018-09-28T13:54:23.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "PBCodable.h" #import "NSCopying.h" #import "NSSecureCoding.h" #import "_INPBValueMetadata.h" @class NSString, _INPBConfidenceScore; @interface _INPBValueMetadata : PBCodable <_INPBValueMetadata, NSSecureCoding, NSCopying> { CDStruct_95bda58d _requiredEntitlements; struct { unsigned int confirmed:1; } _has; BOOL _confirmed; BOOL __encodeLegacyGloryData; NSString *_canonicalValue; _INPBConfidenceScore *_confidenceScore; NSString *_input; NSString *_source; NSString *_sourceAppBundleIdentifier; NSString *_uuid; } + (BOOL)supportsSecureCoding; @property(nonatomic, setter=_setEncodeLegacyGloryData:) BOOL _encodeLegacyGloryData; // @synthesize _encodeLegacyGloryData=__encodeLegacyGloryData; @property(copy, nonatomic) NSString *uuid; // @synthesize uuid=_uuid; @property(copy, nonatomic) NSString *sourceAppBundleIdentifier; // @synthesize sourceAppBundleIdentifier=_sourceAppBundleIdentifier; @property(copy, nonatomic) NSString *source; // @synthesize source=_source; @property(copy, nonatomic) NSString *input; // @synthesize input=_input; @property(nonatomic) BOOL confirmed; // @synthesize confirmed=_confirmed; @property(retain, nonatomic) _INPBConfidenceScore *confidenceScore; // @synthesize confidenceScore=_confidenceScore; @property(copy, nonatomic) NSString *canonicalValue; // @synthesize canonicalValue=_canonicalValue; - (void).cxx_destruct; - (id)dictionaryRepresentation; @property(readonly) unsigned long long hash; - (BOOL)isEqual:(id)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (void)dealloc; - (void)writeTo:(id)arg1; - (BOOL)readFrom:(id)arg1; @property(readonly, nonatomic) BOOL hasUuid; @property(readonly, nonatomic) BOOL hasSourceAppBundleIdentifier; @property(readonly, nonatomic) BOOL hasSource; - (int)StringAsRequiredEntitlements:(id)arg1; - (id)requiredEntitlementsAsString:(int)arg1; - (int)requiredEntitlementAtIndex:(unsigned long long)arg1; @property(readonly, nonatomic) unsigned long long requiredEntitlementsCount; - (void)addRequiredEntitlement:(int)arg1; - (void)clearRequiredEntitlements; @property(readonly, nonatomic) int *requiredEntitlements; - (void)setRequiredEntitlements:(int *)arg1 count:(unsigned long long)arg2; @property(readonly, nonatomic) BOOL hasInput; @property(nonatomic) BOOL hasConfirmed; @property(readonly, nonatomic) BOOL hasConfidenceScore; @property(readonly, nonatomic) BOOL hasCanonicalValue; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) Class superclass; @end
38.520548
147
0.781294
5ebd4388ae45055253252d4cdad2d673dfd9ff52
359
c
C
Main_Program.c
simokd/ProjetGL
eb75d520c20019b2f3378275de00aa756ded6292
[ "MIT" ]
null
null
null
Main_Program.c
simokd/ProjetGL
eb75d520c20019b2f3378275de00aa756ded6292
[ "MIT" ]
null
null
null
Main_Program.c
simokd/ProjetGL
eb75d520c20019b2f3378275de00aa756ded6292
[ "MIT" ]
null
null
null
#include<stdio.h> #include<stdlib.h> #include "Main.h" int main(int argc, char *argv[]) { structure tab[taille]; for (int i = 0; i<taille; i++){ tab[i].nom = "vide"; tab[i].tel = "vide"; tab[i].suivant = NULL; } //ajouterItem("ilyas", "063476671",tab); nombreItems(46,tab); afficherItemsDansIndex(46,tab); }
17.095238
44
0.56546
19365bd9a5a70af82a9f3c7f5e6218563dae9816
1,721
h
C
gob/Bitmap.h
mattbierner/gober
dddcecd72a8dc447054808b3026893ac3a0f3d95
[ "MIT" ]
3
2015-06-01T19:09:45.000Z
2017-04-16T14:17:03.000Z
gob/Bitmap.h
mattbierner/libgob
dddcecd72a8dc447054808b3026893ac3a0f3d95
[ "MIT" ]
null
null
null
gob/Bitmap.h
mattbierner/libgob
dddcecd72a8dc447054808b3026893ac3a0f3d95
[ "MIT" ]
null
null
null
#pragma once #include <gob/Buffer.h> #include <gob/BmFileData.h> namespace Df { /** Bitmap data. Holds uncompressed bitmap data. */ class Bitmap : public IReadableBuffer { public: using T = uint8_t; Bitmap(unsigned width, unsigned height, BmFileTransparency transparency, std::unique_ptr<IBuffer>&& buffer) : m_width(width), m_height(height), m_transparency(transparency), m_data(std::move(buffer)) { } Bitmap(unsigned width, unsigned height, BmFileTransparency transparency, Buffer&& buffer) : Bitmap(width, height, transparency, std::make_unique<Buffer>(std::move(buffer))) { } /** Does the bitmap have valid data. A valid bitmap allows reading from the entire buffer. */ bool IsValid() const { return (GetWidth() * GetHeight()) <= GetDataSize(); } /** Get the width of the image. */ unsigned GetWidth() const { return m_width; } /** Get the height of the image. */ unsigned GetHeight() const { return m_height; } /** Get the type of transparency that should be used to render the image. */ BmFileTransparency GetTransparency() const { return m_transparency; } // IBuffer virtual bool IsReadable() const override { return (m_data && m_data->IsReadable()); } virtual size_t GetDataSize() const override { return m_data->GetDataSize() / sizeof(T); } virtual const T* GetR(size_t offset) const override { return m_data->GetR(offset); } private: std::unique_ptr<IReadableBuffer> m_data; unsigned m_width; unsigned m_height; BmFileTransparency m_transparency; }; } // Df
24.239437
113
0.63742
e5dc80db357e82ce52871cba9e65df527f10fd30
3,422
h
C
ZRXSDK/2012/inc/zdbdict.h
kevinzhwl/ZRXSDKMod
2d2de60ab45db535439e6608fb4764835fd72ff7
[ "MIT" ]
null
null
null
ZRXSDK/2012/inc/zdbdict.h
kevinzhwl/ZRXSDKMod
2d2de60ab45db535439e6608fb4764835fd72ff7
[ "MIT" ]
null
null
null
ZRXSDK/2012/inc/zdbdict.h
kevinzhwl/ZRXSDKMod
2d2de60ab45db535439e6608fb4764835fd72ff7
[ "MIT" ]
2
2015-12-04T08:39:49.000Z
2020-09-11T02:54:27.000Z
#ifndef ZD_DBDICT_H #define ZD_DBDICT_H #include "zdbmain.h" #pragma pack(push, 8) class ZcDbImpDictionary; class ZcString; class ZSOFT_NO_VTABLE ZcDbDictionaryIterator: public ZcRxObject { public: ZCRX_DECLARE_MEMBERS(ZcDbDictionaryIterator); virtual ~ZcDbDictionaryIterator() {} virtual const ZTCHAR* name () const = 0; virtual Zcad::ErrorStatus getObject (ZcDbObject*& pObject, ZcDb::OpenMode mode) = 0; virtual ZcDbObjectId objectId () const = 0; virtual bool done () const = 0; virtual bool next () = 0; virtual bool setPosition(ZcDbObjectId objId) = 0; protected: ZcDbDictionaryIterator() {} }; class ZcDbDictionary: public ZcDbObject { public: ZCDB_DECLARE_MEMBERS(ZcDbDictionary); ZcDbDictionary(); virtual ~ZcDbDictionary(); Zcad::ErrorStatus getAt(const ZTCHAR* entryName, ZcDbObject*& entryObj, ZcDb::OpenMode mode) const; Zcad::ErrorStatus getAt(const ZTCHAR* entryName, ZcDbObjectId& entryObj) const; Zcad::ErrorStatus nameAt(ZcDbObjectId objId, ZTCHAR*& name) const; Zcad::ErrorStatus nameAt(ZcDbObjectId objId, ZcString & name) const; bool has (const ZTCHAR* entryName) const; bool has (ZcDbObjectId objId) const; ZSoft::UInt32 numEntries() const; Zcad::ErrorStatus remove(const ZTCHAR * key); Zcad::ErrorStatus remove(const ZTCHAR * key, ZcDbObjectId& returnId); Zcad::ErrorStatus remove(ZcDbObjectId objId); bool setName(const ZTCHAR* oldName, const ZTCHAR* newName); Zcad::ErrorStatus setAt (const ZTCHAR* srchKey, ZcDbObject* newValue, ZcDbObjectId& retObjId); bool isTreatElementsAsHard () const; void setTreatElementsAsHard(bool doIt); ZcDbDictionaryIterator* newIterator() const; virtual Zcad::ErrorStatus subErase (ZSoft::Boolean pErasing = ZSoft::kTrue); virtual Zcad::ErrorStatus dwgInFields (ZcDbDwgFiler* pFiler); virtual Zcad::ErrorStatus dwgOutFields (ZcDbDwgFiler* pFiler) const; virtual Zcad::ErrorStatus dxfInFields (ZcDbDxfFiler* pFiler); virtual Zcad::ErrorStatus dxfOutFields (ZcDbDxfFiler* pFiler) const; virtual ZcDb::DuplicateRecordCloning mergeStyle() const; virtual void setMergeStyle(ZcDb::DuplicateRecordCloning style); virtual void goodbye(const ZcDbObject* pObject); virtual void erased (const ZcDbObject* pObject, ZSoft::Boolean pErasing = ZSoft::kTrue); virtual Zcad::ErrorStatus decomposeForSave( ZcDb::ZcDbDwgVersion ver, ZcDbObject*& replaceObj, ZcDbObjectId& replaceId, ZSoft::Boolean& exchangeXData); virtual Zcad::ErrorStatus getClassID(CLSID* pClsid) const; }; #pragma pack(pop) #endif
36.404255
73
0.56955
95a4cb4f3b9578eb6bc6bc4a3eb913d3dbdd72b7
2,228
h
C
PrivateFrameworks/OfficeImport/EDFont.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
17
2018-11-13T04:02:58.000Z
2022-01-20T09:27:13.000Z
PrivateFrameworks/OfficeImport/EDFont.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
3
2018-04-06T02:02:27.000Z
2018-10-02T01:12:10.000Z
PrivateFrameworks/OfficeImport/EDFont.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
1
2018-09-28T13:54:23.000Z
2018-09-28T13:54:23.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "EDImmutableObject.h" #import "NSCopying.h" @class EDColorReference, EDResources, NSString; __attribute__((visibility("hidden"))) @interface EDFont : NSObject <NSCopying, EDImmutableObject> { EDResources *mResources; NSString *mName; EDColorReference *mColorReference; int mUnderline; int mScript; double mHeightInTwips; int mCharSet; int mFamily; unsigned int mWeight; _Bool mBold; _Bool mItalic; _Bool mShadow; _Bool mStrike; _Bool mOutline; _Bool mUnderlineOverridden; _Bool mStrikeOverridden; _Bool mBoldOverridden; _Bool mWeightOverridden; _Bool mItalicOverridden; _Bool mHeightOverridden; _Bool mNameOverridden; _Bool mDoNotModify; } + (id)fontWithResources:(id)arg1; - (void).cxx_destruct; @property(readonly, copy) NSString *description; - (void)setDoNotModify:(_Bool)arg1; - (void)setWeight:(unsigned int)arg1; - (_Bool)isWeightOverridden; - (unsigned int)weight; - (void)setFamily:(int)arg1; - (int)family; - (void)setCharSet:(int)arg1; - (int)charSet; - (void)setHeight:(double)arg1; - (_Bool)isHeightOverridden; - (double)height; - (void)setStrike:(_Bool)arg1; - (_Bool)isStrikeOverridden; - (_Bool)isStrike; - (void)setOutline:(_Bool)arg1; - (_Bool)isOutline; - (void)setShadow:(_Bool)arg1; - (_Bool)isShadow; - (void)setItalic:(_Bool)arg1; - (_Bool)isItalicOverridden; - (_Bool)isItalic; - (void)setBold:(_Bool)arg1; - (_Bool)isBoldOverridden; - (_Bool)isBold; - (void)setColor:(id)arg1; - (id)color; - (_Bool)isNameOverridden; - (void)setName:(id)arg1; - (id)name; - (void)setUnderline:(int)arg1; - (_Bool)isUnderlineOverridden; - (int)underline; - (void)setScript:(int)arg1; - (int)script; @property(readonly) unsigned long long hash; - (BOOL)isEqual:(id)arg1; - (BOOL)isEqualToFont:(id)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initWithResources:(id)arg1; - (void)setColorReference:(id)arg1; - (id)colorReference; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly) Class superclass; @end
24.217391
83
0.717235
68b407be75c616ab0c841ca647aaa0b208c84f37
8,473
c
C
vlc_linux/vlc-3.0.16/src/posix/filesystem.c
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
vlc_linux/vlc-3.0.16/src/posix/filesystem.c
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
vlc_linux/vlc-3.0.16/src/posix/filesystem.c
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
/***************************************************************************** * filesystem.c: POSIX file system helpers ***************************************************************************** * Copyright (C) 2005-2006 VLC authors and VideoLAN * Copyright © 2005-2008 Rémi Denis-Courmont * * Authors: Rémi Denis-Courmont * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <assert.h> #include <stdio.h> #include <limits.h> /* NAME_MAX */ #include <errno.h> #include <signal.h> #include <sys/types.h> #include <sys/uio.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #ifndef HAVE_LSTAT # define lstat(a, b) stat(a, b) #endif #include <dirent.h> #include <sys/socket.h> #ifndef O_TMPFILE # define O_TMPFILE 0 #endif #include <vlc_common.h> #include <vlc_fs.h> #if !defined(HAVE_ACCEPT4) || !defined HAVE_MKOSTEMP static inline void vlc_cloexec(int fd) { fcntl(fd, F_SETFD, FD_CLOEXEC | fcntl(fd, F_GETFD)); } #endif int vlc_open (const char *filename, int flags, ...) { unsigned int mode = 0; va_list ap; va_start (ap, flags); if (flags & (O_CREAT|O_TMPFILE)) mode = va_arg (ap, unsigned int); va_end (ap); #ifdef O_CLOEXEC return open(filename, flags | O_CLOEXEC, mode); #else int fd = open(filename, flags, mode); if (fd != -1) vlc_cloexec(fd); return -1; #endif } int vlc_openat (int dir, const char *filename, int flags, ...) { unsigned int mode = 0; va_list ap; va_start (ap, flags); if (flags & (O_CREAT|O_TMPFILE)) mode = va_arg (ap, unsigned int); va_end (ap); #ifdef HAVE_OPENAT return openat(dir, filename, flags | O_CLOEXEC, mode); #else VLC_UNUSED (dir); VLC_UNUSED (filename); VLC_UNUSED (mode); errno = ENOSYS; return -1; #endif } int vlc_mkstemp (char *template) { #if defined (HAVE_MKOSTEMP) && defined (O_CLOEXEC) return mkostemp(template, O_CLOEXEC); #else int fd = mkstemp(template); if (fd != -1) vlc_cloexec(fd); return fd; #endif } int vlc_memfd (void) { int fd; #if O_TMPFILE fd = vlc_open ("/tmp", O_RDWR|O_TMPFILE, S_IRUSR|S_IWUSR); if (fd != -1) return fd; /* ENOENT means either /tmp is missing (!) or the kernel does not support * O_TMPFILE. EISDIR means /tmp exists but the kernel does not support * O_TMPFILE. EOPNOTSUPP means the kernel supports O_TMPFILE but the /tmp * filesystem does not. Do not fallback on other errors. */ if (errno != ENOENT && errno != EISDIR && errno != EOPNOTSUPP) return -1; #endif char bufpath[] = "/tmp/"PACKAGE_NAME"XXXXXX"; fd = vlc_mkstemp (bufpath); if (fd != -1) unlink (bufpath); return fd; } int vlc_close (int fd) { int ret; #ifdef POSIX_CLOSE_RESTART ret = posix_close(fd, 0); #else ret = close(fd); /* POSIX.2008 (and earlier) does not specify if the file descriptor is * closed on failure. Assume it is as on Linux and most other common OSes. * Also emulate the correct error code as per newer POSIX versions. */ if (unlikely(ret != 0) && unlikely(errno == EINTR)) errno = EINPROGRESS; #endif assert(ret == 0 || errno != EBADF); /* something is corrupt? */ return ret; } int vlc_mkdir (const char *dirname, mode_t mode) { return mkdir (dirname, mode); } DIR *vlc_opendir (const char *dirname) { return opendir (dirname); } const char *vlc_readdir(DIR *dir) { struct dirent *ent = readdir (dir); return (ent != NULL) ? ent->d_name : NULL; } int vlc_stat (const char *filename, struct stat *buf) { return stat (filename, buf); } int vlc_lstat (const char *filename, struct stat *buf) { return lstat (filename, buf); } int vlc_unlink (const char *filename) { return unlink (filename); } int vlc_rename (const char *oldpath, const char *newpath) { return rename (oldpath, newpath); } char *vlc_getcwd (void) { long path_max = pathconf (".", _PC_PATH_MAX); size_t size = (path_max == -1 || path_max > 4096) ? 4096 : path_max; for (;; size *= 2) { char *buf = malloc (size); if (unlikely(buf == NULL)) break; if (getcwd (buf, size) != NULL) return buf; free (buf); if (errno != ERANGE) break; } return NULL; } int vlc_dup (int oldfd) { #ifdef F_DUPFD_CLOEXEC return fcntl (oldfd, F_DUPFD_CLOEXEC, 0); #else int newfd = dup (oldfd); if (newfd != -1) vlc_cloexec(oldfd); return newfd; #endif } int vlc_pipe (int fds[2]) { #ifdef HAVE_PIPE2 return pipe2(fds, O_CLOEXEC); #else int ret = pipe(fds); if (ret == 0) { vlc_cloexec(fds[0]); vlc_cloexec(fds[1]); } return ret; #endif } ssize_t vlc_write(int fd, const void *buf, size_t len) { struct iovec iov = { .iov_base = (void *)buf, .iov_len = len }; return vlc_writev(fd, &iov, 1); } ssize_t vlc_writev(int fd, const struct iovec *iov, int count) { sigset_t set, oset; sigemptyset(&set); sigaddset(&set, SIGPIPE); pthread_sigmask(SIG_BLOCK, &set, &oset); ssize_t val = writev(fd, iov, count); if (val < 0 && errno == EPIPE) { #if (_POSIX_REALTIME_SIGNALS > 0) siginfo_t info; struct timespec ts = { 0, 0 }; while (sigtimedwait(&set, &info, &ts) >= 0 || errno != EAGAIN); #else for (;;) { sigset_t s; int num; sigpending(&s); if (!sigismember(&s, SIGPIPE)) break; sigwait(&set, &num); assert(num == SIGPIPE); } #endif } if (!sigismember(&oset, SIGPIPE)) /* Restore the signal mask if changed */ pthread_sigmask(SIG_SETMASK, &oset, NULL); return val; } #include <vlc_network.h> #ifndef HAVE_ACCEPT4 static void vlc_socket_setup(int fd, bool nonblock) { vlc_cloexec(fd); if (nonblock) fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK); #ifdef SO_NOSIGPIPE setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &(int){ 1 }, sizeof (int)); #endif } #endif int vlc_socket (int pf, int type, int proto, bool nonblock) { #ifdef SOCK_CLOEXEC if (nonblock) type |= SOCK_NONBLOCK; int fd = socket(pf, type | SOCK_CLOEXEC, proto); # ifdef SO_NOSIGPIPE if (fd != -1) setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &(int){ 1 }, sizeof (int)); # endif #else int fd = socket (pf, type, proto); if (fd != -1) vlc_socket_setup(fd, nonblock); #endif return fd; } int vlc_socketpair(int pf, int type, int proto, int fds[2], bool nonblock) { #ifdef SOCK_CLOEXEC if (nonblock) type |= SOCK_NONBLOCK; int ret = socketpair(pf, type | SOCK_CLOEXEC, proto, fds); # ifdef SO_NOSIGPIPE if (ret == 0) { const int val = 1; setsockopt(fds[0], SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof (val)); setsockopt(fds[1], SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof (val)); } # endif #else int ret = socketpair(pf, type, proto, fds); if (ret == 0) { vlc_socket_setup(fds[0], nonblock); vlc_socket_setup(fds[1], nonblock); } #endif return ret; } int vlc_accept (int lfd, struct sockaddr *addr, socklen_t *alen, bool nonblock) { #ifdef HAVE_ACCEPT4 int flags = SOCK_CLOEXEC; if (nonblock) flags |= SOCK_NONBLOCK; int fd = accept4(lfd, addr, alen, flags); # ifdef SO_NOSIGPIPE if (fd != -1) setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &(int){ 1 }, sizeof (int)); # endif #else int fd = accept(lfd, addr, alen); if (fd != -1) vlc_socket_setup(fd, nonblock); #endif return fd; }
23.470914
79
0.610646
84bc67f7ca6580d69e449d0e39b2c9e56050be1a
631
h
C
ext/fun/fun.zep.h
logoove/phpx-windows
0c50ca75569865656a16106396893a3c827c8fe4
[ "MIT" ]
2
2019-11-24T12:59:29.000Z
2020-10-06T15:51:44.000Z
ext/fun/fun.zep.h
logoove/phpx-windows
0c50ca75569865656a16106396893a3c827c8fe4
[ "MIT" ]
null
null
null
ext/fun/fun.zep.h
logoove/phpx-windows
0c50ca75569865656a16106396893a3c827c8fe4
[ "MIT" ]
null
null
null
extern zend_class_entry *fun_fun_ce; ZEPHIR_INIT_CLASS(Fun_Fun); PHP_METHOD(Fun_Fun, dump); PHP_METHOD(Fun_Fun, json); ZEND_BEGIN_ARG_INFO_EX(arginfo_fun_fun_dump, 0, 0, 1) ZEND_ARG_INFO(0, t) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_fun_fun_json, 0, 0, 0) ZEND_ARG_INFO(0, code) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, list) ZEND_ARG_INFO(0, total) ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(fun_fun_method_entry) { PHP_ME(Fun_Fun, dump, arginfo_fun_fun_dump, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_ME(Fun_Fun, json, arginfo_fun_fun_json, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_FE_END };
25.24
78
0.782884
27ab1a64e574bed96a5c8c4d1366b1ec6419c581
930
c
C
test/data/test-records-complex.c
scarito1/ctypeslib
2aeb1942a5a32a5cc798c287cd0d9e684a0181a8
[ "MIT" ]
130
2015-01-08T00:17:29.000Z
2022-03-20T12:26:52.000Z
test/data/test-records-complex.c
NyaMisty/ctypeslib
e1fe4a0be670958e66a8037362e3258c344f5b92
[ "MIT" ]
88
2015-01-09T00:20:15.000Z
2022-03-14T11:27:16.000Z
test/data/test-records-complex.c
NyaMisty/ctypeslib
e1fe4a0be670958e66a8037362e3258c344f5b92
[ "MIT" ]
43
2015-01-08T00:39:54.000Z
2021-12-14T18:36:43.000Z
typedef struct _complex1 { struct { int a; }; } complex1, *pcomplex1; typedef struct _complex2 { struct { int a; }; struct { long b; }; } complex2, *pcomplex2; typedef struct _complex3 { union { struct { int a; }; struct { long b; union { int c; struct { long long d; char e; }; }; }; struct { long f; }; int g; }; } complex3, *pcomplex3; typedef struct _complex4 { struct { short a; }; struct { short b; char c; }; } complex4, *pcomplex4; typedef struct _complex5 { struct { int x; char a; }; struct __attribute__((packed)) { char b; int c; }; } complex5, *pcomplex5; typedef struct _complex6 { struct { char a; }; struct __attribute__((packed)) { char b; }; } complex6, *pcomplex6;
13.676471
33
0.488172
b464678ea423a3b8cd24ab37fc47bfb327461608
5,698
h
C
Headers/FBAdEndCardScreenshotView.h
chuiizeet/stickers-daily-headers
d779869a384b0334e709ea24830bee5b063276a9
[ "MIT" ]
null
null
null
Headers/FBAdEndCardScreenshotView.h
chuiizeet/stickers-daily-headers
d779869a384b0334e709ea24830bee5b063276a9
[ "MIT" ]
null
null
null
Headers/FBAdEndCardScreenshotView.h
chuiizeet/stickers-daily-headers
d779869a384b0334e709ea24830bee5b063276a9
[ "MIT" ]
null
null
null
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <UIKit/UIView.h> #import "FBAdCommandProcessorDelegate-Protocol.h" #import "FBInterstitialAdToolbarViewDelegate-Protocol.h" #import "UIScrollViewDelegate-Protocol.h" @class FBAdBlurredOverlayView, FBAdCommandProcessor, FBAdDetailsAndCTAButtonContainerView, FBGradientView, FBInterstitialAdToolbarView, FBNativeAdDataModel, NSMutableArray, NSString, UIScrollView, UIViewController; @protocol FBAdEndCardScreenshotViewDelegate, FBAdFunnelLoggingDelegate; @interface FBAdEndCardScreenshotView : UIView <FBAdCommandProcessorDelegate, FBInterstitialAdToolbarViewDelegate, UIScrollViewDelegate> { _Bool _modalViewPresenting; _Bool _isAutoRotateEnabled; _Bool _isUsingNewLayout; _Bool _endcardAnimated; FBAdDetailsAndCTAButtonContainerView *_adDetailsAndCTAButtonContainerView; id <FBAdEndCardScreenshotViewDelegate> _delegate; UIViewController *_rootViewController; CDUnknownBlockType _onInfo; NSString *_placementID; UIScrollView *_scrollView; FBAdBlurredOverlayView *_blurredBackgroundImageView; NSMutableArray *_screenshotViewArray; FBAdCommandProcessor *_commandHandler; FBInterstitialAdToolbarView *_toolbarView; FBGradientView *_toolbarGradientView; double _firstImpressionTime; FBNativeAdDataModel *_adDataModel; id <FBAdFunnelLoggingDelegate> _funnelLoggerDelegate; } @property(nonatomic) __weak id <FBAdFunnelLoggingDelegate> funnelLoggerDelegate; // @synthesize funnelLoggerDelegate=_funnelLoggerDelegate; @property(readonly, nonatomic) FBNativeAdDataModel *adDataModel; // @synthesize adDataModel=_adDataModel; @property(nonatomic) double firstImpressionTime; // @synthesize firstImpressionTime=_firstImpressionTime; @property(nonatomic, getter=isEndcardAnimated) _Bool endcardAnimated; // @synthesize endcardAnimated=_endcardAnimated; @property(nonatomic) __weak FBGradientView *toolbarGradientView; // @synthesize toolbarGradientView=_toolbarGradientView; @property(nonatomic) __weak FBInterstitialAdToolbarView *toolbarView; // @synthesize toolbarView=_toolbarView; @property(nonatomic) _Bool isUsingNewLayout; // @synthesize isUsingNewLayout=_isUsingNewLayout; @property(nonatomic) _Bool isAutoRotateEnabled; // @synthesize isAutoRotateEnabled=_isAutoRotateEnabled; @property(retain, nonatomic) FBAdCommandProcessor *commandHandler; // @synthesize commandHandler=_commandHandler; @property(retain, nonatomic) NSMutableArray *screenshotViewArray; // @synthesize screenshotViewArray=_screenshotViewArray; @property(nonatomic) __weak FBAdBlurredOverlayView *blurredBackgroundImageView; // @synthesize blurredBackgroundImageView=_blurredBackgroundImageView; @property(nonatomic) __weak UIScrollView *scrollView; // @synthesize scrollView=_scrollView; @property(copy, nonatomic) NSString *placementID; // @synthesize placementID=_placementID; @property(copy, nonatomic) CDUnknownBlockType onInfo; // @synthesize onInfo=_onInfo; @property(nonatomic, getter=isModalViewPresenting) _Bool modalViewPresenting; // @synthesize modalViewPresenting=_modalViewPresenting; @property(nonatomic) __weak UIViewController *rootViewController; // @synthesize rootViewController=_rootViewController; @property(nonatomic) __weak id <FBAdEndCardScreenshotViewDelegate> delegate; // @synthesize delegate=_delegate; @property(nonatomic) __weak FBAdDetailsAndCTAButtonContainerView *adDetailsAndCTAButtonContainerView; // @synthesize adDetailsAndCTAButtonContainerView=_adDetailsAndCTAButtonContainerView; - (void).cxx_destruct; - (void)handleClickWithExtraData:(id)arg1; - (_Bool)processFBAdSchemeLink:(id)arg1 adDataModel:(id)arg2 withExtraData:(id)arg3; - (double)marginForLayout; - (void)interstitialAdToolbarDidTapAdInfo:(id)arg1; - (void)interstitialAdToolbarDidCloseAdChoices:(id)arg1; - (void)interstitialAdToolbarDidTapAdChoices:(id)arg1; - (void)interstitialAdToolbarDidClose:(id)arg1 withTouchData:(id)arg2; - (void)adDidTerminate; - (void)adDidLogClick; - (id)commandProcessorTouchInformation:(id)arg1; - (void)viewControllerDismissed:(id)arg1; - (void)willPresentViewController:(id)arg1; @property(readonly, nonatomic) UIViewController *viewControllerForPresentingModalView; - (void)scrollViewWillEndDragging:(id)arg1 withVelocity:(struct CGPoint)arg2 targetContentOffset:(inout struct CGPoint *)arg3; - (unsigned long long)wantedAdDetailsAndCTAButtonContainerViewButtonStyle; - (void)animateViews; - (void)processCommand:(id)arg1 withExtraData:(id)arg2; - (void)adClicked:(id)arg1 withEvent:(id)arg2; - (void)addAdDetailsViewAndCTA; - (void)addScrollView; - (void)loadScreenshots; - (void)addBlurredBackgroundImageView; - (void)addToolbarGradientView; - (void)addToolbarView:(id)arg1; - (void)layoutAdMetadataViewForOrientation:(_Bool)arg1 withInsets:(struct UIEdgeInsets)arg2 withBounds:(struct CGRect)arg3; - (void)layoutScreenshotViewForOrientation:(_Bool)arg1 withInsets:(struct UIEdgeInsets)arg2 withBounds:(struct CGRect)arg3; - (void)layoutToolbarViewForOrientation:(_Bool)arg1 withInsets:(struct UIEdgeInsets)arg2 withBounds:(struct CGRect)arg3; - (void)layoutBackgroundViewWithBounds:(struct CGRect)arg1; - (void)layoutSubviews; - (void)didMoveToSuperview; - (void)dealloc; - (id)initWithPlacementID:(id)arg1 adDataModel:(id)arg2 rootViewController:(id)arg3 toolbarView:(id)arg4 useNewLayout:(_Bool)arg5; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
58.142857
214
0.828185
f21646c8af6ef8d352415a2188e97707711f5c13
12,891
h
C
arch/platform/simplelink/cc13xx-cc26xx/sensortag/cc1352r/CC1352R_STK.h
tobiengel/contiki-ng
9878dde4602c48bd67ea3cbe69d85691165be3a1
[ "BSD-3-Clause" ]
null
null
null
arch/platform/simplelink/cc13xx-cc26xx/sensortag/cc1352r/CC1352R_STK.h
tobiengel/contiki-ng
9878dde4602c48bd67ea3cbe69d85691165be3a1
[ "BSD-3-Clause" ]
null
null
null
arch/platform/simplelink/cc13xx-cc26xx/sensortag/cc1352r/CC1352R_STK.h
tobiengel/contiki-ng
9878dde4602c48bd67ea3cbe69d85691165be3a1
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2015-2019, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** ============================================================================ * @file CC1352RSTK.h * * @brief CC1352R SensorTag Board Specific header file. * * The CC1352RSTK header file should be included in an application as * follows: * @code * #include "CC1352RSTK.h" * @endcode * ============================================================================ */ #ifndef __CC1352RSTK_BOARD_H__ #define __CC1352RSTK_BOARD_H__ #ifdef __cplusplus extern "C" { #endif #include "contiki-conf.h" #define TI_UART_CONF_ENABLE 1 //#define TI_UART_CONF_UART0_ENABLE 1 //#define TI_UART_CONF_BAUD_RATE 19200 /* Includes */ #include <ti/drivers/PIN.h> #include <ti/devices/DeviceFamily.h> #include DeviceFamily_constructPath(driverlib/ioc.h) /* Externs */ extern const PIN_Config BoardGpioInitTable[]; /* Defines */ #define CC1352RSTK /* Mapping of pins to board signals using general board aliases * <board signal alias> <pin mapping> <comments> */ /* Analog Capable DIOs */ #define CC1352RSTK_DIO23_ANALOG IOID_23 #define CC1352RSTK_DIO24_ANALOG IOID_24 #define CC1352RSTK_DIO25_ANALOG IOID_25 #define CC1352RSTK_DIO26_ANALOG IOID_26 #define CC1352RSTK_DIO27_ANALOG IOID_27 #define CC1352RSTK_DIO28_ANALOG IOID_28 #define CC1352RSTK_DIO29_ANALOG IOID_29 #define CC1352RSTK_DIO30_ANALOG IOID_30 /* Digital IOs */ #define CC1352RSTK_DIO12 IOID_12 #define CC1352RSTK_DIO15 IOID_15 #define CC1352RSTK_DIO16_TDO IOID_16 #define CC1352RSTK_DIO17_TDI IOID_17 #define CC1352RSTK_DIO21 IOID_21 #define CC1352RSTK_DIO22 IOID_22 #define CC1352RSTK_DIO24 IOID_24 #define CC1352RSTK_DIO30 IOID_30 /* Discrete Inputs */ #define CC1352RSTK_PIN_BTN1 IOID_15 #define CC1352RSTK_PIN_BTN2 IOID_14 #define CC1352STK_KEY_LEFT CC1352STK_PIN_BTN2 #define CC1352STK_KEY_RIGHT CC1352STK_PIN_BTN1 #define CC1352STK_CAPTOUCH_INT1 IOID_22 #define CC1352STK_CAPTOUCH_INT2 IOID_24 /* GPIO */ #define CC1352RSTK_GPIO_LED_ON 1 #define CC1352RSTK_GPIO_LED_OFF 0 /* I2C */ #define CC1352RSTK_I2C0_SCL0 IOID_4 #define CC1352RSTK_I2C0_SDA0 IOID_5 /* I2S */ #define CC1352RSTK_I2S_ADO IOID_25 #define CC1352RSTK_I2S_ADI IOID_26 #define CC1352RSTK_I2S_BCLK IOID_27 #define CC1352RSTK_I2S_MCLK PIN_UNASSIGNED #define CC1352RSTK_I2S_WCLK IOID_28 /* LEDs */ #define CC1352RSTK_PIN_LED_ON 1 #define CC1352RSTK_PIN_LED_OFF 0 #define CC1352RSTK_PIN_RLED IOID_6 #define CC1352RSTK_PIN_GLED IOID_7 #define CC1352RSTK_PIN_BLED IOID_21 /* PWM Outputs */ #define CC1352RSTK_PWMPIN0 CC1352RSTK_PIN_RLED #define CC1352RSTK_PWMPIN1 CC1352RSTK_PIN_GLED #define CC1352RSTK_PWMPIN2 CC1352RSTK_PIN_BLED #define CC1352RSTK_PWMPIN3 PIN_UNASSIGNED #define CC1352RSTK_PWMPIN4 PIN_UNASSIGNED #define CC1352RSTK_PWMPIN5 PIN_UNASSIGNED #define CC1352RSTK_PWMPIN6 PIN_UNASSIGNED #define CC1352RSTK_PWMPIN7 PIN_UNASSIGNED /* Sensors */ #define CC1352RSTK_MPU_INT IOID_30 #define CC1352RSTK_TMP_RDY IOID_25 /* SPI */ #define CC1352RSTK_SPI_FLASH_CS IOID_20 #define CC1352RSTK_FLASH_CS_ON 0 #define CC1352RSTK_FLASH_CS_OFF 1 #define CC1352RSTK_SPI_GYRO_CS IOID_11 #define CC1352RSTK_GYRO_INT IOID_29 #define CC1352RSTK_GYRO_FSY IOID_28 /* SPI Board */ #ifndef TI_SPI_CONF_SPI0_ENABLE #define TI_SPI_CONF_SPI0_ENABLE #endif #define CC1352RSTK_SPI0_MISO IOID_8 #define CC1352RSTK_SPI0_MOSI IOID_9 #define CC1352RSTK_SPI0_CLK IOID_10 #define CC1352RSTK_SPI0_CSN IOID_11 #define CC1352RSTK_SPI1_MISO PIN_UNASSIGNED #define CC1352RSTK_SPI1_MOSI PIN_UNASSIGNED #define CC1352RSTK_SPI1_CLK PIN_UNASSIGNED #define CC1352RSTK_SPI1_CSN PIN_UNASSIGNED /* UART */ #define CC1352RSTK_UART_TX IOID_13 #define CC1352RSTK_UART_RX IOID_12 /*! * @brief Initialize the general board specific settings * * This function initializes the general board specific settings. */ void CC1352RSTK_initGeneral(void); /*! * @brief Turn off the external flash on LaunchPads * */ void CC1352RSTK_shutDownExtFlash(void); /*! * @brief Wake up the external flash present on the board files * * This function toggles the chip select for the amount of time needed * to wake the chip up. */ void CC1352RSTK_wakeUpExtFlash(void); /*! * @def CC1352RSTK_ADCBufName * @brief Enum of ADCBufs */ typedef enum CC1352RSTK_ADCBufName { CC1352RSTK_ADCBUF0 = 0, CC1352RSTK_ADCBUFCOUNT } CC1352RSTK_ADCBufName; /*! * @def CC1352RSTK_ADCBuf0ChannelName * @brief Enum of ADCBuf channels */ typedef enum CC1352RSTK_ADCBuf0ChannelName { CC1352RSTK_ADCBUF0CHANNEL0 = 0, CC1352RSTK_ADCBUF0CHANNEL1, CC1352RSTK_ADCBUF0CHANNEL2, CC1352RSTK_ADCBUF0CHANNEL3, CC1352RSTK_ADCBUF0CHANNEL4, CC1352RSTK_ADCBUF0CHANNEL5, CC1352RSTK_ADCBUF0CHANNEL6, CC1352RSTK_ADCBUF0CHANNEL7, CC1352RSTK_ADCBUF0CHANNELVDDS, CC1352RSTK_ADCBUF0CHANNELDCOUPL, CC1352RSTK_ADCBUF0CHANNELVSS, CC1352RSTK_ADCBUF0CHANNELCOUNT } CC1352RSTK_ADCBuf0ChannelName; /*! * @def CC1352RSTK_ADCName * @brief Enum of ADCs */ typedef enum CC1352RSTK_ADCName { CC1352RSTK_ADC0 = 0, CC1352RSTK_ADC1, CC1352RSTK_ADC2, CC1352RSTK_ADC3, CC1352RSTK_ADC4, CC1352RSTK_ADC5, CC1352RSTK_ADC6, CC1352RSTK_ADCDCOUPL, CC1352RSTK_ADCVSS, CC1352RSTK_ADCVDDS, CC1352RSTK_ADCCOUNT } CC1352RSTK_ADCName; /*! * @def CC1352R1_LAUNCHXL_ECDHName * @brief Enum of ECDH names */ typedef enum CC1352RSTK_ECDHName { CC1352RSTK_ECDH0 = 0, CC1352RSTK_ECDHCOUNT } CC1352RSTK_ECDHName; /*! * @def CC1352R1_LAUNCHXL_ECDSAName * @brief Enum of ECDSA names */ typedef enum CC1352RSTK_ECDSAName { CC1352RSTK_ECDSA0 = 0, CC1352RSTK_ECDSACOUNT } CC1352RSTK_ECDSAName; /*! * @def CC1352R1_LAUNCHXL_ECJPAKEName * @brief Enum of ECJPAKE names */ typedef enum CC1352RSTK_ECJPAKEName { CC1352RSTK_ECJPAKE0 = 0, CC1352RSTK_ECJPAKECOUNT } CC1352RSTK_ECJPAKEName; /*! * @def CC1352R1_LAUNCHXL_SHA2Name * @brief Enum of SHA2 names */ typedef enum CC1352RSTK_SHA2Name { CC1352RSTK_SHA20 = 0, CC1352RSTK_SHA2COUNT } CC1352RSTK_SHA2Name; /*! * @def CC1352RSTK_CryptoName * @brief Enum of Crypto names */ typedef enum CC1352RSTK_CryptoName { CC1352RSTK_CRYPTO0 = 0, CC1352RSTK_CRYPTOCOUNT } CC1352RSTK_CryptoName; /*! * @def CC1352RSTK_AESCCMName * @brief Enum of AESCCM names */ typedef enum CC1352RSTK_AESCCMName { CC1352RSTK_AESCCM0 = 0, CC1352RSTK_AESCCMCOUNT } CC1352RSTK_AESCCMName; /*! * @def CC1352RSTK_AESGCMName * @brief Enum of AESGCM names */ typedef enum CC1352RSTK_AESGCMName { CC1352RSTK_AESGCM0 = 0, CC1352RSTK_AESGCMCOUNT } CC1352RSTK_AESGCMName; /*! * @def CC1352RSTK_AESCBCName * @brief Enum of AESCBC names */ typedef enum CC1352RSTK_AESCBCName { CC1352RSTK_AESCBC0 = 0, CC1352RSTK_AESCBCCOUNT } CC1352RSTK_AESCBCName; /*! * @def CC1352RSTK_AESCTRName * @brief Enum of AESCTR names */ typedef enum CC1352RSTK_AESCTRName { CC1352RSTK_AESCTR0 = 0, CC1352RSTK_AESCTRCOUNT } CC1352RSTK_AESCTRName; /*! * @def CC1352RSTK_AESECBName * @brief Enum of AESECB names */ typedef enum CC1352RSTK_AESECBName { CC1352RSTK_AESECB0 = 0, CC1352RSTK_AESECBCOUNT } CC1352RSTK_AESECBName; /*! * @def CC1352RSTK_AESCTRDRBGName * @brief Enum of AESCTRDRBG names */ typedef enum CC1352RSTK_AESCTRDRBGName { CC1352RSTK_AESCTRDRBG0 = 0, CC1352RSTK_AESCTRDRBGCOUNT } CC1352RSTK_AESCTRDRBGName; /*! * @def CC1352RSTK_TRNGName * @brief Enum of TRNG names */ typedef enum CC1352RSTK_TRNGName { CC1352RSTK_TRNG0 = 0, CC1352RSTK_TRNGCOUNT } CC1352RSTK_TRNGName; /*! * @def CC1352RSTK_GPIOName * @brief Enum of GPIO names */ typedef enum CC1352RSTK_GPIOName { CC1352RSTK_GPIO_S1 = 0, CC1352RSTK_GPIO_S2, CC1352RSTK_GPIO_LED0, CC1352RSTK_GPIO_LED1, CC1352RSTK_GPIO_LED2, CC1352RSTK_GPIO_SPI_FLASH_CS, CC1352RSTK_GPIO_CAPTOUCH1, CC1352RSTK_GPIO_CAPTOUCH2, CC1352RSTK_GPIOCOUNT } CC1352RSTK_GPIOName; /*! * @def CC1352RSTK_GPTimerName * @brief Enum of GPTimer parts */ typedef enum CC1352RSTK_GPTimerName { CC1352RSTK_GPTIMER0A = 0, CC1352RSTK_GPTIMER0B, CC1352RSTK_GPTIMER1A, CC1352RSTK_GPTIMER1B, CC1352RSTK_GPTIMER2A, CC1352RSTK_GPTIMER2B, CC1352RSTK_GPTIMER3A, CC1352RSTK_GPTIMER3B, CC1352RSTK_GPTIMERPARTSCOUNT } CC1352RSTK_GPTimerName; /*! * @def CC1352RSTK_GPTimers * @brief Enum of GPTimers */ typedef enum CC1352RSTK_GPTimers { CC1352RSTK_GPTIMER0 = 0, CC1352RSTK_GPTIMER1, CC1352RSTK_GPTIMER2, CC1352RSTK_GPTIMER3, CC1352RSTK_GPTIMERCOUNT } CC1352RSTK_GPTimers; /*! * @def CC1352RSTK_I2CName * @brief Enum of I2C names */ typedef enum CC1352RSTK_I2CName { #if TI_I2C_CONF_I2C0_ENABLE CC1352RSTK_I2C0 = 0, #endif CC1352RSTK_I2CCOUNT } CC1352RSTK_I2CName; /*! * @def CC1352RSTK_I2SName * @brief Enum of I2S names */ typedef enum CC1352RSTK_I2SName { CC1352RSTK_I2S0 = 0, CC1352RSTK_I2SCOUNT } CC1352RSTK_I2SName; /*! * @def CC1352RSTK_NVSName * @brief Enum of NVS names */ typedef enum CC1352RSTK_NVSName { #if TI_NVS_CONF_NVS_INTERNAL_ENABLE CC1352RSTK_NVSCC26XX0 = 0, #endif CC1352RSTK_NVSSPI25X0, CC1352RSTK_NVSCOUNT } CC1352RSTK_NVSName; /*! * @def CC1352RSTK_PWMName * @brief Enum of PWM outputs */ typedef enum CC1352RSTK_PWMName { CC1352RSTK_PWM0 = 0, CC1352RSTK_PWM1, CC1352RSTK_PWM2, CC1352RSTK_PWM3, CC1352RSTK_PWM4, CC1352RSTK_PWM5, CC1352RSTK_PWM6, CC1352RSTK_PWM7, CC1352RSTK_PWMCOUNT } CC1352RSTK_PWMName; /*! * @def CC1352RSTK_SPIName * @brief Enum of SPI names */ typedef enum CC1352RSTK_SPIName { #if TI_SPI_CONF_SPI0_ENABLE CC1352RSTK_SPI0 = 0, #endif #if TI_SPI_CONF_SPI1_ENABLE CC1352RSTK_SPI1, #endif CC1352RSTK_SPICOUNT } CC1352RSTK_SPIName; /*! * @def CC1352RSTK_UARTName * @brief Enum of UARTs */ typedef enum CC1352RSTK_UARTName { #if TI_UART_CONF_UART0_ENABLE CC1352RSTK_UART0 = 0, #endif CC1352RSTK_UARTCOUNT } CC1352RSTK_UARTName; /*! * @def CC1352RSTK_UDMAName * @brief Enum of DMA buffers */ typedef enum CC1352RSTK_UDMAName { CC1352RSTK_UDMA0 = 0, CC1352RSTK_UDMACOUNT } CC1352RSTK_UDMAName; /*! * @def CC1352RSTK_WatchdogName * @brief Enum of Watchdogs */ typedef enum CC1352RSTK_WatchdogName { CC1352RSTK_WATCHDOG0 = 0, CC1352RSTK_WATCHDOGCOUNT } CC1352RSTK_WatchdogName; #ifdef __cplusplus } #endif #endif /* __CC1352RSTK_BOARD_H__ */
25.32613
80
0.709332
ccaf54cdf561706b3f7502f4ab97a70d8a529844
561
h
C
ccs-os.h
MIPI-Alliance/public-ccs-tools
bb532047131a3119a11c2afcd24252313b7f28f6
[ "BSD-3-Clause" ]
3
2020-11-23T20:09:18.000Z
2021-01-13T16:26:40.000Z
ccs-os.h
MIPI-Alliance/public-ccs-tools
bb532047131a3119a11c2afcd24252313b7f28f6
[ "BSD-3-Clause" ]
1
2020-11-23T18:14:30.000Z
2020-11-23T18:14:30.000Z
ccs-os.h
MIPI-Alliance/public-ccs-tools
bb532047131a3119a11c2afcd24252313b7f28f6
[ "BSD-3-Clause" ]
1
2020-12-23T02:55:27.000Z
2020-12-23T02:55:27.000Z
/* Copyright (C) 2020 MIPI Alliance */ /* Copyright (C) 2019--2020 Intel Corporation */ /* SPDX-License-Identifier: BSD-3-Clause */ #ifndef __CCS_OS_H__ #define __CCS_OS_H__ #include <errno.h> #include <limits.h> #include <malloc.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <string.h> #define align2(n, a) (((n) & ~((a) - 1)) + (a)) #define array_length(a) (sizeof(a) / sizeof(*(a))) #define os_printf fprintf typedef FILE * printf_ctx; #define os_calloc(a) calloc(1, a) #define os_free(a) free(a) #endif /* __CCS_OS_H__ */
19.344828
50
0.673797
a8c1d85c3b46b73e975b85f3094f5ebc7d66b536
8,848
h
C
usr/src/lib/libshell/amd64/include/ast/shell.h
AsahiOS/gate
283d47da4e17a5871d9d575e7ffb81e8f6c52e51
[ "MIT" ]
null
null
null
usr/src/lib/libshell/amd64/include/ast/shell.h
AsahiOS/gate
283d47da4e17a5871d9d575e7ffb81e8f6c52e51
[ "MIT" ]
null
null
null
usr/src/lib/libshell/amd64/include/ast/shell.h
AsahiOS/gate
283d47da4e17a5871d9d575e7ffb81e8f6c52e51
[ "MIT" ]
1
2020-12-30T00:04:16.000Z
2020-12-30T00:04:16.000Z
/* : : generated by proto : : */ /*********************************************************************** * * * This software is part of the ast package * * Copyright (c) 1982-2010 AT&T Intellectual Property * * and is licensed under the * * Common Public License, Version 1.0 * * by AT&T Intellectual Property * * * * A copy of the License is available at * * http://www.opensource.org/licenses/cpl1.0.txt * * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * * * * Information and Software Systems Research * * AT&T Research * * Florham Park NJ * * * * David Korn <dgk@research.att.com> * * * ***********************************************************************/ #ifndef SH_INTERACTIVE #if !defined(__PROTO__) #include <prototyped.h> #endif #if !defined(__LINKAGE__) #define __LINKAGE__ /* 2004-08-11 transition */ #endif /* * David Korn * AT&T Labs * * Interface definitions for shell command language * */ #include <ast.h> #include <cdt.h> #ifdef _SH_PRIVATE # include "name.h" #else # include <nval.h> #endif /* _SH_PRIVATE */ #define SH_VERSION 20071012 #undef NOT_USED #define NOT_USED(x) (&x,1) /* options */ typedef struct { unsigned long v[4]; } Shopt_t; typedef struct Shell_s Shell_t; typedef void (*Shinit_f) __PROTO__((Shell_t*, int)); typedef int (*Shwait_f) __PROTO__((int, long, int)); union Shnode_u; typedef union Shnode_u Shnode_t; #define SH_CFLAG 0 #define SH_HISTORY 1 /* used also as a state */ #define SH_ERREXIT 2 /* used also as a state */ #define SH_VERBOSE 3 /* used also as a state */ #define SH_MONITOR 4 /* used also as a state */ #define SH_INTERACTIVE 5 /* used also as a state */ #define SH_RESTRICTED 6 #define SH_XTRACE 7 #define SH_KEYWORD 8 #define SH_NOUNSET 9 #define SH_NOGLOB 10 #define SH_ALLEXPORT 11 #define SH_PFSH 12 #define SH_IGNOREEOF 13 #define SH_NOCLOBBER 14 #define SH_MARKDIRS 15 #define SH_BGNICE 16 #define SH_VI 17 #define SH_VIRAW 18 #define SH_TFLAG 19 #define SH_TRACKALL 20 #define SH_SFLAG 21 #define SH_NOEXEC 22 #define SH_GMACS 24 #define SH_EMACS 25 #define SH_PRIVILEGED 26 #define SH_SUBSHARE 27 /* subshell shares state with parent */ #define SH_NOLOG 28 #define SH_NOTIFY 29 #define SH_DICTIONARY 30 #define SH_PIPEFAIL 32 #define SH_GLOBSTARS 33 #define SH_XARGS 34 #define SH_RC 35 #define SH_SHOWME 36 /* * passed as flags to builtins in Nambltin_t struct when BLT_OPTIM is on */ #define SH_BEGIN_OPTIM 0x1 #define SH_END_OPTIM 0x2 /* The following type is used for error messages */ /* error messages */ extern __MANGLE__ const char e_defpath[]; extern __MANGLE__ const char e_found[]; extern __MANGLE__ const char e_nospace[]; extern __MANGLE__ const char e_format[]; extern __MANGLE__ const char e_number[]; extern __MANGLE__ const char e_restricted[]; extern __MANGLE__ const char e_recursive[]; extern __MANGLE__ char e_version[]; typedef struct sh_scope { struct sh_scope *par_scope; int argc; char **argv; char *cmdname; char *filename; char *funname; int lineno; Dt_t *var_tree; struct sh_scope *self; } Shscope_t; /* * Saves the state of the shell */ struct Shell_s { Shopt_t options; /* set -o options */ Dt_t *var_tree; /* for shell variables */ Dt_t *fun_tree; /* for shell functions */ Dt_t *alias_tree; /* for alias names */ Dt_t *bltin_tree; /* for builtin commands */ Shscope_t *topscope; /* pointer to top-level scope */ int inlineno; /* line number of current input file */ int exitval; /* most recent exit value */ unsigned char trapnote; /* set when trap/signal is pending */ char shcomp; /* set when runing shcomp */ short subshell; /* set for virtual subshell */ #ifdef _SH_PRIVATE _SH_PRIVATE #endif /* _SH_PRIVATE */ }; /* flags for sh_parse */ #define SH_NL 1 /* Treat new-lines as ; */ #define SH_EOF 2 /* EOF causes syntax error */ /* symbolic values for sh_iogetiop */ #define SH_IOCOPROCESS (-2) #define SH_IOHISTFILE (-3) #include <cmd.h> /* symbolic value for sh_fdnotify */ #define SH_FDCLOSE (-1) #undef getenv /* -lshell provides its own */ #if defined(__EXPORT__) && defined(_DLL) # ifdef _BLD_shell #undef __MANGLE__ #define __MANGLE__ __LINKAGE__ __EXPORT__ # endif /* _BLD_shell */ #endif /* _DLL */ extern __MANGLE__ Dt_t *sh_bltin_tree __PROTO__((void)); extern __MANGLE__ void sh_subfork __PROTO__((void)); extern __MANGLE__ Shell_t *sh_init __PROTO__((int,char*[],Shinit_f)); extern __MANGLE__ int sh_reinit __PROTO__((char*[])); extern __MANGLE__ int sh_eval __PROTO__((Sfio_t*,int)); extern __MANGLE__ void sh_delay __PROTO__((double)); extern __MANGLE__ __V_ *sh_parse __PROTO__((Shell_t*, Sfio_t*,int)); extern __MANGLE__ int sh_trap __PROTO__((const char*,int)); extern __MANGLE__ int sh_fun __PROTO__((Namval_t*,Namval_t*, char*[])); extern __MANGLE__ int sh_funscope __PROTO__((int,char*[],int(*)(__V_*),__V_*,int)); extern __MANGLE__ Sfio_t *sh_iogetiop __PROTO__((int,int)); extern __MANGLE__ int sh_main __PROTO__((int, char*[], Shinit_f)); extern __MANGLE__ int sh_run __PROTO__((int, char*[])); extern __MANGLE__ void sh_menu __PROTO__((Sfio_t*, int, char*[])); extern __MANGLE__ Namval_t *sh_addbuiltin __PROTO__((const char*, int(*)(int, char*[],__V_*), __V_*)); extern __MANGLE__ char *sh_fmtq __PROTO__((const char*)); extern __MANGLE__ char *sh_fmtqf __PROTO__((const char*, int, int)); extern __MANGLE__ Sfdouble_t sh_strnum __PROTO__((const char*, char**, int)); extern __MANGLE__ int sh_access __PROTO__((const char*,int)); extern __MANGLE__ int sh_close __PROTO__((int)); extern __MANGLE__ int sh_dup __PROTO__((int)); extern __MANGLE__ void sh_exit __PROTO__((int)); extern __MANGLE__ int sh_fcntl __PROTO__((int, int, ...)); extern __MANGLE__ Sfio_t *sh_fd2sfio __PROTO__((int)); extern __MANGLE__ int (*sh_fdnotify __PROTO__((int(*)(int,int)))) __PROTO__((int,int)); extern __MANGLE__ Shell_t *sh_getinterp __PROTO__((void)); extern __MANGLE__ int sh_open __PROTO__((const char*, int, ...)); extern __MANGLE__ int sh_openmax __PROTO__((void)); extern __MANGLE__ Sfio_t *sh_pathopen __PROTO__((const char*)); extern __MANGLE__ ssize_t sh_read __PROTO__((int, __V_*, size_t)); extern __MANGLE__ ssize_t sh_write __PROTO__((int, const __V_*, size_t)); extern __MANGLE__ off_t sh_seek __PROTO__((int, off_t, int)); extern __MANGLE__ int sh_pipe __PROTO__((int[])); extern __MANGLE__ mode_t sh_umask __PROTO__((mode_t)); extern __MANGLE__ __V_ *sh_waitnotify __PROTO__((Shwait_f)); extern __MANGLE__ Shscope_t *sh_getscope __PROTO__((int,int)); extern __MANGLE__ Shscope_t *sh_setscope __PROTO__((Shscope_t*)); extern __MANGLE__ void sh_sigcheck __PROTO__((void)); extern __MANGLE__ unsigned long sh_isoption __PROTO__((int)); extern __MANGLE__ unsigned long sh_onoption __PROTO__((int)); extern __MANGLE__ unsigned long sh_offoption __PROTO__((int)); extern __MANGLE__ int sh_waitsafe __PROTO__((void)); extern __MANGLE__ int sh_exec __PROTO__((const Shnode_t*,int)); #if SHOPT_DYNAMIC extern __MANGLE__ __V_ **sh_getliblist __PROTO__((void)); #endif /* SHOPT_DYNAMIC */ /* * direct access to sh is obsolete, use sh_getinterp() instead */ #if !defined(_SH_PRIVATE) && defined(__IMPORT__) && !defined(_BLD_shell) extern __MANGLE__ __IMPORT__ Shell_t sh; #else extern __MANGLE__ Shell_t sh; #endif #ifdef _DLL #undef __MANGLE__ #define __MANGLE__ __LINKAGE__ #endif /* _DLL */ #ifndef _SH_PRIVATE # define access(a,b) sh_access(a,b) # define close(a) sh_close(a) # define exit(a) sh_exit(a) # define fcntl(a,b,c) sh_fcntl(a,b,c) # define pipe(a) sh_pipe(a) # define read(a,b,c) sh_read(a,b,c) # define write(a,b,c) sh_write(a,b,c) # define umask(a) sh_umask(a) # define dup sh_dup # if _lib_lseek64 # define open64 sh_open # define lseek64 sh_seek # else # define open sh_open # define lseek sh_seek # endif #endif /* !_SH_PRIVATE */ #define SH_SIGSET 4 #define SH_EXITSIG 0400 /* signal exit bit */ #define SH_EXITMASK (SH_EXITSIG-1) /* normal exit status bits */ #define SH_RUNPROG -1022 /* needs to be negative and < 256 */ #endif /* SH_INTERACTIVE */
33.388679
103
0.65755
017c79c141a6906953f93943400eb9ef9605ffbf
9,400
h
C
libvui/src/vui/lib/thread.h
slankdev/netlinkd
9873d845396b11beba771b55c4b87f66b1036019
[ "MIT" ]
2
2019-02-27T14:48:39.000Z
2020-03-25T01:28:54.000Z
libvui/src/vui/lib/thread.h
slankdev/netlinkd
9873d845396b11beba771b55c4b87f66b1036019
[ "MIT" ]
1
2019-07-27T07:50:46.000Z
2019-07-27T07:50:46.000Z
libvui/src/vui/lib/thread.h
slankdev/netlinkd
9873d845396b11beba771b55c4b87f66b1036019
[ "MIT" ]
null
null
null
/* Thread management routine header. * Copyright (C) 1998 Kunihiro Ishiguro * * This file is part of GNU Zebra. * * GNU Zebra is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * GNU Zebra 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 * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; see the file COPYING; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _ZEBRA_THREAD_H #define _ZEBRA_THREAD_H #include "zebra.h" #include <pthread.h> #include <poll.h> #include <stdint.h> #include <time.h> #include <sys/time.h> #include "frratomic.h" #include "typesafe.h" #ifdef __cplusplus extern "C" { #endif #ifndef TIMESPEC_TO_TIMEVAL /* should be in sys/time.h on BSD & Linux libcs */ #define TIMESPEC_TO_TIMEVAL(tv, ts) \ do { \ (tv)->tv_sec = (ts)->tv_sec; \ (tv)->tv_usec = (ts)->tv_nsec / 1000; \ } while (0) #endif #ifndef TIMEVAL_TO_TIMESPEC /* should be in sys/time.h on BSD & Linux libcs */ #define TIMEVAL_TO_TIMESPEC(tv, ts) \ do { \ (ts)->tv_sec = (tv)->tv_sec; \ (ts)->tv_nsec = (tv)->tv_usec * 1000; \ } while (0) #endif static inline time_t monotime(struct timeval *tvo) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); if (tvo) { TIMESPEC_TO_TIMEVAL(tvo, &ts); } return ts.tv_sec; } #define ONE_DAY_SECOND 60*60*24 #define ONE_WEEK_SECOND ONE_DAY_SECOND*7 #define ONE_YEAR_SECOND ONE_DAY_SECOND*365 /* the following two return microseconds, not time_t! * * also, they're negative forms of each other, but having both makes the * code more readable */ static inline int64_t monotime_since(const struct timeval *ref, struct timeval *out) { struct timeval tv; monotime(&tv); timersub(&tv, ref, &tv); if (out) *out = tv; return (int64_t)tv.tv_sec * 1000000LL + tv.tv_usec; } static inline int64_t monotime_until(const struct timeval *ref, struct timeval *out) { struct timeval tv; monotime(&tv); timersub(ref, &tv, &tv); if (out) *out = tv; return (int64_t)tv.tv_sec * 1000000LL + tv.tv_usec; } static inline char *time_to_string(time_t ts) { struct timeval tv; time_t tbuf; monotime(&tv); tbuf = time(NULL) - (tv.tv_sec - ts); return ctime(&tbuf); } struct rusage_t { struct rusage cpu; struct timeval real; }; #define RUSAGE_T struct rusage_t #define GETRUSAGE(X) thread_getrusage(X) PREDECL_LIST(thread_list) struct pqueue; struct fd_handler { /* number of pfd that fit in the allocated space of pfds. This is a * constant * and is the same for both pfds and copy. */ nfds_t pfdsize; /* file descriptors to monitor for i/o */ struct pollfd *pfds; /* number of pollfds stored in pfds */ nfds_t pfdcount; /* chunk used for temp copy of pollfds */ struct pollfd *copy; /* number of pollfds stored in copy */ nfds_t copycount; }; struct cancel_req { struct thread *thread; void *eventobj; struct thread **threadref; }; /* Master of the theads. */ struct thread_master { char *name; struct thread **read; struct thread **write; struct pqueue *timer; struct thread_list_head event, ready, unuse; struct list *cancel_req; bool canceled; pthread_cond_t cancel_cond; struct hash *cpu_record; int io_pipe[2]; int fd_limit; struct fd_handler handler; unsigned long alloc; long selectpoll_timeout; bool spin; bool handle_signals; pthread_mutex_t mtx; pthread_t owner; }; /* Thread itself. */ struct thread { uint8_t type; /* thread type */ uint8_t add_type; /* thread type */ struct thread_list_item threaditem; struct thread **ref; /* external reference (if given) */ struct thread_master *master; /* pointer to the struct thread_master */ int (*func)(struct thread *); /* event function */ void *arg; /* event argument */ union { int val; /* second argument of the event. */ int fd; /* file descriptor in case of r/w */ struct timeval sands; /* rest of time sands value. */ } u; int index; /* queue position for timers */ struct timeval real; struct cpu_thread_history *hist; /* cache pointer to cpu_history */ unsigned long yield; /* yield time in microseconds */ const char *funcname; /* name of thread function */ const char *schedfrom; /* source file thread was scheduled from */ int schedfrom_line; /* line number of source file */ pthread_mutex_t mtx; /* mutex for thread.c functions */ }; struct cpu_thread_history { int (*func)(struct thread *); atomic_uint_fast32_t total_calls; atomic_uint_fast32_t total_active; struct time_stats { atomic_size_t total, max; } real; struct time_stats cpu; atomic_uint_fast32_t types; const char *funcname; }; /* Struct timeval's tv_usec one second value. */ #define TIMER_SECOND_MICRO 1000000L /* Thread types. */ #define THREAD_READ 0 #define THREAD_WRITE 1 #define THREAD_TIMER 2 #define THREAD_EVENT 3 #define THREAD_READY 4 #define THREAD_UNUSED 5 #define THREAD_EXECUTE 6 /* Thread yield time. */ #define THREAD_YIELD_TIME_SLOT 10 * 1000L /* 10ms */ /* Macros. */ #define THREAD_ARG(X) ((X)->arg) #define THREAD_FD(X) ((X)->u.fd) #define THREAD_VAL(X) ((X)->u.val) #define THREAD_OFF(thread) \ do { \ if (thread) { \ thread_cancel(thread); \ thread = NULL; \ } \ } while (0) #define THREAD_READ_OFF(thread) THREAD_OFF(thread) #define THREAD_WRITE_OFF(thread) THREAD_OFF(thread) #define THREAD_TIMER_OFF(thread) THREAD_OFF(thread) #define debugargdef const char *funcname, const char *schedfrom, int fromln #define thread_add_read(m,f,a,v,t) funcname_thread_add_read_write(THREAD_READ,m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_add_write(m,f,a,v,t) funcname_thread_add_read_write(THREAD_WRITE,m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_add_timer(m,f,a,v,t) funcname_thread_add_timer(m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_add_timer_msec(m,f,a,v,t) funcname_thread_add_timer_msec(m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_add_timer_tv(m,f,a,v,t) funcname_thread_add_timer_tv(m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_add_event(m,f,a,v,t) funcname_thread_add_event(m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_execute(m,f,a,v) funcname_thread_execute(m,f,a,v,#f,__FILE__,__LINE__) #define thread_execute_name(m, f, a, v, n) \ funcname_thread_execute(m, f, a, v, n, __FILE__, __LINE__) /* Prototypes. */ extern struct thread_master *thread_master_create(const char *); void thread_master_set_name(struct thread_master *master, const char *name); extern void thread_master_free(struct thread_master *); extern void thread_master_free_unused(struct thread_master *); extern struct thread * funcname_thread_add_read_write(int dir, struct thread_master *, int (*)(struct thread *), void *, int, struct thread **, debugargdef); extern struct thread *funcname_thread_add_timer(struct thread_master *, int (*)(struct thread *), void *, long, struct thread **, debugargdef); extern struct thread * funcname_thread_add_timer_msec(struct thread_master *, int (*)(struct thread *), void *, long, struct thread **, debugargdef); extern struct thread *funcname_thread_add_timer_tv(struct thread_master *, int (*)(struct thread *), void *, struct timeval *, struct thread **, debugargdef); extern struct thread *funcname_thread_add_event(struct thread_master *, int (*)(struct thread *), void *, int, struct thread **, debugargdef); extern void funcname_thread_execute(struct thread_master *, int (*)(struct thread *), void *, int, debugargdef); #undef debugargdef extern void thread_cancel(struct thread *); extern void thread_cancel_async(struct thread_master *, struct thread **, void *); extern void thread_cancel_event(struct thread_master *, void *); extern struct thread *thread_fetch(struct thread_master *, struct thread *); extern void thread_call(struct thread *); extern unsigned long thread_timer_remain_second(struct thread *); extern struct timeval thread_timer_remain(struct thread *); extern unsigned long thread_timer_remain_msec(struct thread *); extern int thread_should_yield(struct thread *); /* set yield time for thread */ extern void thread_set_yield_time(struct thread *, unsigned long); /* Internal libfrr exports */ extern void thread_getrusage(RUSAGE_T *); extern void thread_cmd_init(void); /* Returns elapsed real (wall clock) time. */ extern unsigned long thread_consumed_time(RUSAGE_T *after, RUSAGE_T *before, unsigned long *cpu_time_elapsed); /* only for use in logging functions! */ extern pthread_key_t thread_current; #ifdef __cplusplus } #endif #endif /* _ZEBRA_THREAD_H */
30.322581
111
0.694255
6011099cf658ae52821038a989cb27cf9364e206
641
h
C
Twitter/ProfileCell.h
nikils/Twitter
c99f5a50208e1976464f55c17339ed062015029d
[ "Apache-2.0" ]
null
null
null
Twitter/ProfileCell.h
nikils/Twitter
c99f5a50208e1976464f55c17339ed062015029d
[ "Apache-2.0" ]
null
null
null
Twitter/ProfileCell.h
nikils/Twitter
c99f5a50208e1976464f55c17339ed062015029d
[ "Apache-2.0" ]
null
null
null
// // ProfileCell.h // Twitter // // Created by Nikhil S on 9/22/16. // Copyright © 2016 Nikhil S. All rights reserved. // #import <UIKit/UIKit.h> @interface ProfileCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *profileBackgroundImage; @property (weak, nonatomic) IBOutlet UIImageView *profileImage; @property (weak, nonatomic) IBOutlet UILabel *userNameLabel; @property (weak, nonatomic) IBOutlet UILabel *userIdLabel; @property (weak, nonatomic) IBOutlet UILabel *tweetsLabel; @property (weak, nonatomic) IBOutlet UILabel *followingCount; @property (weak, nonatomic) IBOutlet UILabel *followersCount; @end
30.52381
73
0.765991
6d08ba97b3e8729b10a23366157066b1739d0f91
2,089
h
C
ComponentKit/Core/CKComponentProtocol.h
priteshrnandgaonkar/componentkit
c5509f8f371a6af599bf9e7644cc2e2e4497edaa
[ "BSD-3-Clause" ]
6,156
2015-03-25T22:01:06.000Z
2022-03-31T16:35:10.000Z
ComponentKit/Core/CKComponentProtocol.h
priteshrnandgaonkar/componentkit
c5509f8f371a6af599bf9e7644cc2e2e4497edaa
[ "BSD-3-Clause" ]
806
2015-03-25T22:33:44.000Z
2022-03-21T12:19:21.000Z
ComponentKit/Core/CKComponentProtocol.h
priteshrnandgaonkar/componentkit
c5509f8f371a6af599bf9e7644cc2e2e4497edaa
[ "BSD-3-Clause" ]
733
2015-03-25T22:26:55.000Z
2022-03-24T15:46:47.000Z
/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #import <Foundation/Foundation.h> #import <ComponentKit/CKDefines.h> #import <ComponentKit/RCComponentCoalescingMode.h> #import <ComponentKit/CKBuildComponentTreeParams.h> #import <ComponentKit/RCIterable.h> NS_ASSUME_NONNULL_BEGIN @protocol CKComponentControllerProtocol; @class CKComponentScopeHandle; @class CKTreeNode; NS_SWIFT_NAME(ComponentProtocol) @protocol CKComponentProtocol <RCIterable> @property (nonatomic, copy, readonly) NSString *className; @property (nonatomic, assign, readonly) const char *typeName; @property (nonatomic, strong, readonly, class, nullable) id initialState; @property (nonatomic, strong, readonly, class, nullable) Class<CKComponentControllerProtocol> controllerClass; @property (nonatomic, assign, readonly, class) RCComponentCoalescingMode coalescingMode; /* * For internal use only. Please do not use this. Will soon be deprecated. * Overriding this API has undefined behvaiour. */ - (id<CKComponentControllerProtocol>)buildController; #if CK_NOT_SWIFT /** This method translates the component render method into a 'CKTreeNode'; a component tree. It's being called by the infra during the component tree creation. */ - (void)buildComponentTree:(CKTreeNode *)parent previousParent:(CKTreeNode *_Nullable)previousParent params:(const CKBuildComponentTreeParams &)params parentHasStateUpdate:(BOOL)parentHasStateUpdate; #endif /** Ask the component to acquire a tree node. */ - (void)acquireTreeNode:(CKTreeNode *)treeNode; /** Reference to the component's tree node. */ @property (nonatomic, strong, readonly, nullable) CKTreeNode *treeNode; /** Get child at index; can be nil */ - (id<CKComponentProtocol> _Nullable)childAtIndex:(unsigned int)index; @end NS_ASSUME_NONNULL_END
33.15873
110
0.770704
d176bfcc310e90cd666b304fb680ad5c22320ad0
284
h
C
MobileSDK/Samples-Native/Sample-Android/app/src/main/cpp/jni/MenuView_JNI.h
jnwoko/xbox-live-samples
06a78315b72e71fef7fd347016e7c37a48c83c16
[ "MIT" ]
65
2019-05-15T00:10:08.000Z
2022-03-17T03:18:52.000Z
MobileSDK/Samples-Native/Sample-Android/app/src/main/cpp/jni/MenuView_JNI.h
jnwoko/xbox-live-samples
06a78315b72e71fef7fd347016e7c37a48c83c16
[ "MIT" ]
37
2017-03-08T21:38:49.000Z
2019-04-16T00:17:45.000Z
MobileSDK/Samples-Native/Sample-Android/app/src/main/cpp/jni/MenuView_JNI.h
jnwoko/xbox-live-samples
06a78315b72e71fef7fd347016e7c37a48c83c16
[ "MIT" ]
52
2017-03-03T00:47:48.000Z
2019-04-27T07:08:10.000Z
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #pragma once #define MVL_EMPTY 0 #define MVL_MAIN_MENU 1 #define MVL_ACHIEVEMENTS 2 void MenuView_ChangeLayer(int layer);
28.4
101
0.746479