code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
<?php defined('_JEXEC') or die('Acesos restrito'); jimport('joomla.application.component.modeladmin'); class LojaModelPagina extends JModelAdmin { protected $data; public function getTable($type="Pagina", $prefix="LojaTable", $config=array() ) { return JTable::getInstance($type, $prefix, $config); } public function getForm($data = array(), $loadData = true) { $form = $this->loadForm('com_loja.pagina', 'pagina', array('control' => 'jform', 'load_data' =>$loadData)); if(empty($form)) { return false; } return $form; } //* Método responsavel por pegas os dados que serão injetados no formulario protected function loadFormData() { // Check the session for previously entered form data. $data = JFactory::getApplication()->getUserState('com_loja.edit.pagina.data', array()); //print_r($data); if (empty($data)) { $data = $this->getItem(); } JFactory::getApplication()->setUserState('com_loja.edit.pagina.data', array()); return $data; } public function salvar($data,$pagina,$pagina_ref) { $db = JFactory::getDbo(); /*$query = $db->getQuery(true); $fields = array( $db->quoteName('atributos').json_encode($data) ); $conditions = array ( $db->quoteName('cod_pagina') . '=\''.$pagina.'\'' ); $query->update($db->quoteName('#__loja_paginas'))->set($fields)->where($conditions);*/ $att = ''; $numItems = count($data); $i = 0; foreach ($data as $key => $value) { $att.= $key.' =\''.$value.'\' '; if(++$i !== $numItems) { $att.= ','; } } $query = "UPDATE #__loja_pagina_".$pagina." set ".$att." WHERE pagina_ref = '".$pagina_ref."' "; $db->setQuery($query); $result = $db->query(); } public function getItemCoaching() { $db = JFactory::getDBO(); $query = $db->getQuery(true); //Seleciona os campos $query->select('p.*'); $query->from('#__loja_pagina_coaching p'); $query->where('p.pagina_ref = \'COA\''); $db->setQuery((String) $query); $pagina = $db->loadObject(); return $pagina; } public function getItemPalestras() { $db = JFactory::getDBO(); $query = $db->getQuery(true); //Seleciona os campos $query->select('p.*'); $query->from('#__loja_pagina_palestras p'); $query->where('p.pagina_ref = \'PAL\''); $db->setQuery((String) $query); $pagina = $db->loadObject(); return $pagina; } }
proizprojetos/olhemaisumavez
administrator/components/com_loja/models/pagina.php
PHP
gpl-2.0
2,427
package games.strategy.net; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; public interface IObjectStreamFactory { ObjectInputStream create(InputStream stream) throws IOException; ObjectOutputStream create(OutputStream stream) throws IOException; }
simon33-2/triplea
src/games/strategy/net/IObjectStreamFactory.java
Java
gpl-2.0
363
<?php include_once 'sessionController.php'; class departamento extends controller { public function index_action($pagina = 1) { $session = new session(); $session->sessao_valida(); $_SESSION['pagina'] = $pagina; $this->smarty->assign('paginador', $this->mostraGrid()); $this->smarty->assign('title', 'Departamentos'); $this->smarty->display('departamento/index.tpl'); } public function paginacao() { $this->index_action($this->getParam('pagina')); } public function mostraGrid() { $total_reg = "10"; // número de registros por página $pagina = $_SESSION['pagina']; if (!$pagina) { $pc = "1"; } else { $pc = $pagina; } $inicio = $pc - 1; $inicio = $inicio * $total_reg; //Busca os registros para o Grid $model = new model(); $qry_limitada = $model->readSQL("SELECT * FROM departamento WHERE stat<>0 LIMIT $inicio,$total_reg"); $this->smarty->assign('listdepartamento', $qry_limitada); // Total de Registros na tabela $qry_total = $model->readSQL("SELECT count(*)as total FROM departamento WHERE stat<>0"); $total_registros = $qry_total[0]['total']; //pega o valor $html = $this->paginador($pc, $total_registros, 'departamento'); return $html; } public function insert() { $this->smarty->assign('title', 'Novo Departamento'); $this->smarty->display('departamento/insert.tpl'); } public function save() { $modelDepartamento = new departamentoModel(); $dados['des_departamento'] = $_POST['des_departamento']; $modelDepartamento->setDepartamento($dados); header('Location: /departamento'); } public function update() { $id = $this->getParam('id_departamento'); $modelDepartamento = new departamentoModel(); $dados['id_departamento'] = $id; $dados['des_departamento'] = $_POST['des_departamento']; $modelDepartamento->updDepartamento($dados); header('Location: /departamento'); } public function edit() { $id = $this->getParam('id_departamento'); $modelDepartamento = new departamentoModel(); $resDepartamento = $modelDepartamento->getDepartamento('id_departamento=' . $id); $this->smarty->assign('registro', $resDepartamento[0]); $this->smarty->assign('title', 'Atualizar Departamento'); $this->smarty->display('departamento/update.tpl'); } public function delete() { $id = $this->getParam('id_departamento'); $modelDepartamento = new departamentoModel(); $dados['id_departamento'] = $id; $modelDepartamento->delDepartamento($dados); $modelDepartamento->updDepartamento($dados); header('Location: /departamento'); } } ?>
ErickMaeda/controle-eventos-php-cow_tipping_dwarfs
controllers/departamentoController.php
PHP
gpl-2.0
2,901
// SysIconUtils.h #ifndef __SYS_ICON_UTILS_H #define __SYS_ICON_UTILS_H #include "Common/MyString.h" struct CExtIconPair { UString Ext; int IconIndex; UString TypeName; }; struct CAttribIconPair { DWORD Attrib; int IconIndex; UString TypeName; }; inline bool operator==(const CExtIconPair &a1, const CExtIconPair &a2) { return a1.Ext == a2.Ext; } inline bool operator< (const CExtIconPair &a1, const CExtIconPair &a2) { return a1.Ext < a2.Ext; } inline bool operator==(const CAttribIconPair &a1, const CAttribIconPair &a2) { return a1.Attrib == a2.Attrib; } inline bool operator< (const CAttribIconPair &a1, const CAttribIconPair &a2) { return a1.Attrib < a2.Attrib; } class CExtToIconMap { CObjectVector<CExtIconPair> _extMap; CObjectVector<CAttribIconPair> _attribMap; public: void Clear() { _extMap.Clear(); _attribMap.Clear(); } int GetIconIndex(DWORD attrib, const UString &fileName, UString &typeName); int GetIconIndex(DWORD attrib, const UString &fileName); }; DWORD_PTR GetRealIconIndex(LPCTSTR path, DWORD attrib, int &iconIndex); #ifndef _UNICODE DWORD_PTR GetRealIconIndex(LPCWSTR path, DWORD attrib, int &iconIndex); #endif int GetIconIndexForCSIDL(int csidl); inline HIMAGELIST GetSysImageList(bool smallIcons) { SHFILEINFO shellInfo; return (HIMAGELIST)SHGetFileInfo(TEXT(""), FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_DIRECTORY, &shellInfo, sizeof(shellInfo), SHGFI_USEFILEATTRIBUTES | SHGFI_SYSICONINDEX | (smallIcons ? SHGFI_SMALLICON : SHGFI_ICON)); } #endif
apollo2k4/wcx_7zip
7z_src/CPP/7zip/UI/FileManager/SysIconUtils.h
C
gpl-2.0
1,541
// Lab 6.8 - Student Generated Code Assignments // // Option 2: Write a program that will input the number of wins and losses that // a baseball team acquired during a complete season. The wins should be // input in a parameter-less value returning function that returns the wins to // the main function. A similar function should do the same thing for the // losses. A third value returning function calculates the percentage of wins. // It receives the wins and losses as parameters and returns the percentage // (float) to the main program which then prints the result. The percentage // should be printed as a percent to two decimal places. // // // written by Walter B. Vaughan for CSC 134, section 200, Fall 2014 // at Catawba Valley Community College #include <iostream> #include <iomanip> unsigned getWins(); unsigned getLosses(); float calcPercentage( unsigned, unsigned ); int main() { std::cout << std::fixed << std::setprecision(2) << "The percentage of wins is " << calcPercentage( getLosses(), getWins() ) << "%\n"; return 0; } unsigned getWins() { unsigned w; std::cout << "Please input the number of wins\n"; std::cin >> w; return w; } unsigned getLosses() { unsigned l; std::cout << "Please input the number of losses\n"; std::cin >> l; return l; } float calcPercentage( unsigned l, unsigned w ) { return ( static_cast<float>(w) / (w+l) ) * 100.0; }
wbv/CSC134
ch06/Lab6.2/6.8.baseball.cpp
C++
gpl-2.0
1,447
/* * aTunes * Copyright (C) Alex Aranda, Sylvain Gaudard and contributors * * See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors * * http://www.atunes.org * http://sourceforge.net/projects/atunes * * This program 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 * 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 General Public License for more details. */ package net.sourceforge.atunes.kernel.modules.state; import java.util.Map; import net.sourceforge.atunes.model.IStateDevice; import net.sourceforge.atunes.utils.ReflectionUtils; /** * This class represents the application settings that are stored at application * shutdown and loaded at application startup. * <p> * <b>NOTE: All classes that are used as properties must be Java Beans!</b> * </p> */ public class ApplicationStateDevice implements IStateDevice { private PreferenceHelper preferenceHelper; /** * @param preferenceHelper */ public void setPreferenceHelper(final PreferenceHelper preferenceHelper) { this.preferenceHelper = preferenceHelper; } @Override public String getDefaultDeviceLocation() { return this.preferenceHelper.getPreference( Preferences.DEFAULT_DEVICE_LOCATION, String.class, null); } @Override public void setDefaultDeviceLocation(final String defaultDeviceLocation) { this.preferenceHelper.setPreference( Preferences.DEFAULT_DEVICE_LOCATION, defaultDeviceLocation); } @Override public String getDeviceFileNamePattern() { return this.preferenceHelper.getPreference( Preferences.DEVICE_FILENAME_PATTERN, String.class, null); } @Override public void setDeviceFileNamePattern(final String deviceFileNamePattern) { this.preferenceHelper.setPreference( Preferences.DEVICE_FILENAME_PATTERN, deviceFileNamePattern); } @Override public String getDeviceFolderPathPattern() { return this.preferenceHelper.getPreference( Preferences.DEVICE_FOLDER_PATH_PATTERN, String.class, null); } @Override public void setDeviceFolderPathPattern(final String deviceFolderPathPattern) { this.preferenceHelper .setPreference(Preferences.DEVICE_FOLDER_PATH_PATTERN, deviceFolderPathPattern); } @Override public boolean isAllowRepeatedSongsInDevice() { return this.preferenceHelper .getPreference(Preferences.ALLOW_REPEATED_SONGS_IN_DEVICE, Boolean.class, true); } @Override public void setAllowRepeatedSongsInDevice( final boolean allowRepeatedSongsInDevice) { this.preferenceHelper.setPreference( Preferences.ALLOW_REPEATED_SONGS_IN_DEVICE, allowRepeatedSongsInDevice); } @Override public Map<String, String> describeState() { return ReflectionUtils.describe(this); } }
PDavid/aTunes
aTunes/src/main/java/net/sourceforge/atunes/kernel/modules/state/ApplicationStateDevice.java
Java
gpl-2.0
3,055
<?php require("../datos/conectar.php"); $estado = $_POST['estado']; $based = ("SELECT * FROM municipio where id_estado=".$estado); $rs = mysql_query($based); $opciones = "<option value='seleccione municipio'>Seleccione Municipio</option>"; //---desiciones: si el numero de coincidencias es igual a 1 entonces... ejecutar la funcion sesion_cliente dentro del script sesion_cliente.php, que guarda los datos de usuario y contraseña en variables de sesion. Y luego redirecciona a la pagina de inicio.php .....de lo contrario si no existen coincidencias, entonces devolver a cero las variables de sesion (por seguridad) y luego devuelve al usuario a la pagina INDEX donde debe ingresar el usuario y contraseña correctos. if (mysql_num_rows($rs) > 0) { while ($fila = mysql_fetch_assoc($rs)) { $opciones .= "<option value='". $fila["id_municipio"]."'>". $fila["nombre_municipio"]."</option>"; } } echo $opciones; ?>
gokulobo/bibliometria
listar/listarMunicipio.php
PHP
gpl-2.0
930
# # Copyright 2013 Red Hat, Inc. # # This software is licensed to you under the GNU General Public # License as published by the Free Software Foundation; either version # 2 of the License (GPLv2) or (at your option) any later version. # There is NO WARRANTY for this software, express or implied, # including the implied warranties of MERCHANTABILITY, # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should # have received a copy of GPLv2 along with this software; if not, see # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. module Glue module Pulp module PulpErrors class ServiceUnavailable < HttpErrors::ServiceUnavailable; end end end end
xsuchy/katello
app/models/glue/pulp/pulp_errors.rb
Ruby
gpl-2.0
684
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ // // Purpose: // // $NoKeywords: $ //============================================================================= // trace.c #include "light.h" typedef struct tnode_s { int type; vec3_t normal; float dist; int children[2]; int pad; } tnode_t; tnode_t *tnodes, *tnode_p; /* ============== MakeTnode Converts the disk node structure into the efficient tracing structure ============== */ void MakeTnode (int nodenum) { tnode_t *t; dplane_t *plane; int i; dnode_t *node; t = tnode_p++; node = dnodes + nodenum; plane = dplanes + node->planenum; t->type = plane->type; VectorCopy (plane->normal, t->normal); t->dist = plane->dist; for (i=0 ; i<2 ; i++) { if (node->children[i] < 0) t->children[i] = dleafs[-node->children[i] - 1].contents; else { t->children[i] = tnode_p - tnodes; MakeTnode (node->children[i]); } } } /* ============= MakeTnodes Loads the node structure out of a .bsp file to be used for light occlusion ============= */ void MakeTnodes (dmodel_t *bm) { if (!numnodes) Error ("Map has no nodes\n"); tnode_p = tnodes = malloc(numnodes * sizeof(tnode_t)); MakeTnode (0); } /* ============================================================================== LINE TRACING The major lighting operation is a point to point visibility test, performed by recursive subdivision of the line by the BSP tree. ============================================================================== */ typedef struct { vec3_t backpt; int side; int node; } tracestack_t; /* ============== TestLine ============== */ qboolean TestLine (vec3_t start, vec3_t stop) { int node; float front, back; tracestack_t *tstack_p; int side; float frontx,fronty, frontz, backx, backy, backz; tracestack_t tracestack[64]; tnode_t *tnode; frontx = start[0]; fronty = start[1]; frontz = start[2]; backx = stop[0]; backy = stop[1]; backz = stop[2]; tstack_p = tracestack; node = 0; while (1) { while (node < 0 && node != CONTENTS_SOLID) { // pop up the stack for a back side tstack_p--; if (tstack_p < tracestack) return true; node = tstack_p->node; // set the hit point for this plane frontx = backx; fronty = backy; frontz = backz; // go down the back side backx = tstack_p->backpt[0]; backy = tstack_p->backpt[1]; backz = tstack_p->backpt[2]; node = tnodes[tstack_p->node].children[!tstack_p->side]; } if (node == CONTENTS_SOLID) return false; // DONE! tnode = &tnodes[node]; switch (tnode->type) { case PLANE_X: front = frontx - tnode->dist; back = backx - tnode->dist; break; case PLANE_Y: front = fronty - tnode->dist; back = backy - tnode->dist; break; case PLANE_Z: front = frontz - tnode->dist; back = backz - tnode->dist; break; default: front = (frontx*tnode->normal[0] + fronty*tnode->normal[1] + frontz*tnode->normal[2]) - tnode->dist; back = (backx*tnode->normal[0] + backy*tnode->normal[1] + backz*tnode->normal[2]) - tnode->dist; break; } if (front > -ON_EPSILON && back > -ON_EPSILON) // if (front > 0 && back > 0) { node = tnode->children[0]; continue; } if (front < ON_EPSILON && back < ON_EPSILON) // if (front <= 0 && back <= 0) { node = tnode->children[1]; continue; } side = front < 0; front = front / (front-back); tstack_p->node = node; tstack_p->side = side; tstack_p->backpt[0] = backx; tstack_p->backpt[1] = backy; tstack_p->backpt[2] = backz; tstack_p++; backx = frontx + front*(backx-frontx); backy = fronty + front*(backy-fronty); backz = frontz + front*(backz-frontz); node = tnode->children[side]; } }
malortie/uncompleted-compilable-hl-opfor
SourceCode/utils/light/trace.c
C
gpl-2.0
3,813
/* Copyright (C) 2006 - 2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * This program 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 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* ScriptData SDName: Boss_Broggok SD%Complete: 70 SDComment: pre-event not made SDCategory: Hellfire Citadel, Blood Furnace EndScriptData */ #include "ScriptedPch.h" #include "blood_furnace.h" enum eEnums { SAY_AGGRO = -1542008, SPELL_SLIME_SPRAY = 30913, SPELL_POISON_CLOUD = 30916, SPELL_POISON_BOLT = 30917, SPELL_POISON = 30914 }; struct boss_broggokAI : public ScriptedAI { boss_broggokAI(Creature *c) : ScriptedAI(c) { pInstance = c->GetInstanceData(); } ScriptedInstance* pInstance; uint32 AcidSpray_Timer; uint32 PoisonSpawn_Timer; uint32 PoisonBolt_Timer; void Reset() { AcidSpray_Timer = 10000; PoisonSpawn_Timer = 5000; PoisonBolt_Timer = 7000; if (pInstance) { pInstance->SetData(TYPE_BROGGOK_EVENT, NOT_STARTED); pInstance->HandleGameObject(pInstance->GetData64(DATA_DOOR4), true); } } void EnterCombat(Unit *who) { DoScriptText(SAY_AGGRO, me); if (pInstance) { pInstance->SetData(TYPE_BROGGOK_EVENT, IN_PROGRESS); pInstance->HandleGameObject(pInstance->GetData64(DATA_DOOR4), false); } } void JustSummoned(Creature *summoned) { summoned->setFaction(16); summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); summoned->CastSpell(summoned,SPELL_POISON,false,0,0,me->GetGUID()); } void UpdateAI(const uint32 diff) { if (!UpdateVictim()) return; if (AcidSpray_Timer <= diff) { DoCast(me->getVictim(), SPELL_SLIME_SPRAY); AcidSpray_Timer = 4000+rand()%8000; } else AcidSpray_Timer -=diff; if (PoisonBolt_Timer <= diff) { DoCast(me->getVictim(), SPELL_POISON_BOLT); PoisonBolt_Timer = 4000+rand()%8000; } else PoisonBolt_Timer -=diff; if (PoisonSpawn_Timer <= diff) { DoCast(me, SPELL_POISON_CLOUD); PoisonSpawn_Timer = 20000; } else PoisonSpawn_Timer -=diff; DoMeleeAttackIfReady(); } void JustDied(Unit* who) { if (pInstance) { pInstance->HandleGameObject(pInstance->GetData64(DATA_DOOR4), true); pInstance->HandleGameObject(pInstance->GetData64(DATA_DOOR5), true); pInstance->SetData(TYPE_BROGGOK_EVENT, DONE); } } }; CreatureAI* GetAI_boss_broggok(Creature* pCreature) { return new boss_broggokAI (pCreature); } void AddSC_boss_broggok() { Script *newscript; newscript = new Script; newscript->Name = "boss_broggok"; newscript->GetAI = &GetAI_boss_broggok; newscript->RegisterSelf(); }
Muglackh/cejkaz-tc
src/scripts/outland/hellfire_citadel/blood_furnace/boss_broggok.cpp
C++
gpl-2.0
3,664
/* * pSeries_lpar.c * Copyright (C) 2001 Todd Inglett, IBM Corporation * * pSeries LPAR support. * * This program 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 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <linux/config.h> #include <linux/kernel.h> #include <asm/processor.h> #include <asm/semaphore.h> #include <asm/mmu.h> #include <asm/page.h> #include <asm/pgtable.h> #include <asm/machdep.h> #include <asm/abs_addr.h> #include <asm/mmu_context.h> #include <asm/ppcdebug.h> #include <asm/pci_dma.h> #include <linux/pci.h> #include <asm/naca.h> /* Status return values */ #define H_Success 0 #define H_Busy 1 /* Hardware busy -- retry later */ #define H_Hardware -1 /* Hardware error */ #define H_Function -2 /* Function not supported */ #define H_Privilege -3 /* Caller not privileged */ #define H_Parameter -4 /* Parameter invalid, out-of-range or conflicting */ #define H_Bad_Mode -5 /* Illegal msr value */ #define H_PTEG_Full -6 /* PTEG is full */ #define H_Not_Found -7 /* PTE was not found" */ #define H_Reserved_DABR -8 /* DABR address is reserved by the hypervisor on this processor" */ /* Flags */ #define H_LARGE_PAGE (1UL<<(63-16)) #define H_EXACT (1UL<<(63-24)) /* Use exact PTE or return H_PTEG_FULL */ #define H_R_XLATE (1UL<<(63-25)) /* include a valid logical page num in the pte if the valid bit is set */ #define H_READ_4 (1UL<<(63-26)) /* Return 4 PTEs */ #define H_AVPN (1UL<<(63-32)) /* An avpn is provided as a sanity test */ #define H_ICACHE_INVALIDATE (1UL<<(63-40)) /* icbi, etc. (ignored for IO pages) */ #define H_ICACHE_SYNCHRONIZE (1UL<<(63-41)) /* dcbst, icbi, etc (ignored for IO pages */ #define H_ZERO_PAGE (1UL<<(63-48)) /* zero the page before mapping (ignored for IO pages) */ #define H_COPY_PAGE (1UL<<(63-49)) #define H_N (1UL<<(63-61)) #define H_PP1 (1UL<<(63-62)) #define H_PP2 (1UL<<(63-63)) /* pSeries hypervisor opcodes */ #define H_REMOVE 0x04 #define H_ENTER 0x08 #define H_READ 0x0c #define H_CLEAR_MOD 0x10 #define H_CLEAR_REF 0x14 #define H_PROTECT 0x18 #define H_GET_TCE 0x1c #define H_PUT_TCE 0x20 #define H_SET_SPRG0 0x24 #define H_SET_DABR 0x28 #define H_PAGE_INIT 0x2c #define H_SET_ASR 0x30 #define H_ASR_ON 0x34 #define H_ASR_OFF 0x38 #define H_LOGICAL_CI_LOAD 0x3c #define H_LOGICAL_CI_STORE 0x40 #define H_LOGICAL_CACHE_LOAD 0x44 #define H_LOGICAL_CACHE_STORE 0x48 #define H_LOGICAL_ICBI 0x4c #define H_LOGICAL_DCBF 0x50 #define H_GET_TERM_CHAR 0x54 #define H_PUT_TERM_CHAR 0x58 #define H_REAL_TO_LOGICAL 0x5c #define H_HYPERVISOR_DATA 0x60 #define H_EOI 0x64 #define H_CPPR 0x68 #define H_IPI 0x6c #define H_IPOLL 0x70 #define H_XIRR 0x74 #define HSC ".long 0x44000022\n" #define H_ENTER_r3 "li 3, 0x08\n" /* plpar_hcall() -- Generic call interface using above opcodes * * The actual call interface is a hypervisor call instruction with * the opcode in R3 and input args in R4-R7. * Status is returned in R3 with variable output values in R4-R11. * Only H_PTE_READ with H_READ_4 uses R6-R11 so we ignore it for now * and return only two out args which MUST ALWAYS BE PROVIDED. */ long plpar_hcall(unsigned long opcode, unsigned long arg1, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long *out1, unsigned long *out2, unsigned long *out3); /* Same as plpar_hcall but for those opcodes that return no values * other than status. Slightly more efficient. */ long plpar_hcall_norets(unsigned long opcode, ...); long plpar_pte_enter(unsigned long flags, unsigned long ptex, unsigned long new_pteh, unsigned long new_ptel, unsigned long *old_pteh_ret, unsigned long *old_ptel_ret) { unsigned long dummy, ret; ret = plpar_hcall(H_ENTER, flags, ptex, new_pteh, new_ptel, old_pteh_ret, old_ptel_ret, &dummy); return(ret); } long plpar_pte_remove(unsigned long flags, unsigned long ptex, unsigned long avpn, unsigned long *old_pteh_ret, unsigned long *old_ptel_ret) { unsigned long dummy; return plpar_hcall(H_REMOVE, flags, ptex, avpn, 0, old_pteh_ret, old_ptel_ret, &dummy); } long plpar_pte_read(unsigned long flags, unsigned long ptex, unsigned long *old_pteh_ret, unsigned long *old_ptel_ret) { unsigned long dummy; return plpar_hcall(H_READ, flags, ptex, 0, 0, old_pteh_ret, old_ptel_ret, &dummy); } long plpar_pte_protect(unsigned long flags, unsigned long ptex, unsigned long avpn) { return plpar_hcall_norets(H_PROTECT, flags, ptex); } long plpar_tce_get(unsigned long liobn, unsigned long ioba, unsigned long *tce_ret) { unsigned long dummy; return plpar_hcall(H_GET_TCE, liobn, ioba, 0, 0, tce_ret, &dummy, &dummy); } long plpar_tce_put(unsigned long liobn, unsigned long ioba, unsigned long tceval) { return plpar_hcall_norets(H_PUT_TCE, liobn, ioba, tceval); } long plpar_get_term_char(unsigned long termno, unsigned long *len_ret, char *buf_ret) { unsigned long *lbuf = (unsigned long *)buf_ret; /* ToDo: alignment? */ return plpar_hcall(H_GET_TERM_CHAR, termno, 0, 0, 0, len_ret, lbuf+0, lbuf+1); } long plpar_put_term_char(unsigned long termno, unsigned long len, const char *buffer) { unsigned long dummy; unsigned long *lbuf = (unsigned long *)buffer; /* ToDo: alignment? */ return plpar_hcall(H_PUT_TERM_CHAR, termno, len, lbuf[0], lbuf[1], &dummy, &dummy, &dummy); } long plpar_eoi(unsigned long xirr) { return plpar_hcall_norets(H_EOI, xirr); } long plpar_cppr(unsigned long cppr) { return plpar_hcall_norets(H_CPPR, cppr); } long plpar_ipi(unsigned long servernum, unsigned long mfrr) { return plpar_hcall_norets(H_IPI, servernum, mfrr); } long plpar_xirr(unsigned long *xirr_ret) { unsigned long dummy; return plpar_hcall(H_XIRR, 0, 0, 0, 0, xirr_ret, &dummy, &dummy); } long plpar_ipoll(unsigned long servernum, unsigned long* xirr_ret, unsigned long* mfrr_ret) { unsigned long dummy; return plpar_hcall(H_IPOLL, servernum, 0, 0, 0, xirr_ret, mfrr_ret, &dummy); } /* * The following section contains code that ultimately should * be put in the relavent file (htab.c, xics.c, etc). It has * been put here for the time being in order to ease maintainence * of the pSeries LPAR code until it can all be put into CVS. */ static void hpte_invalidate_pSeriesLP(unsigned long slot) { HPTE old_pte; unsigned long lpar_rc; unsigned long flags = 0; lpar_rc = plpar_pte_remove(flags, slot, 0, &old_pte.dw0.dword0, &old_pte.dw1.dword1); if (lpar_rc != H_Success) BUG(); } /* NOTE: for updatepp ops we are fortunate that the linux "newpp" bits and * the low 3 bits of flags happen to line up. So no transform is needed. * We can probably optimize here and assume the high bits of newpp are * already zero. For now I am paranoid. */ static void hpte_updatepp_pSeriesLP(long slot, unsigned long newpp, unsigned long va) { unsigned long lpar_rc; unsigned long flags; flags = newpp & 3; lpar_rc = plpar_pte_protect( flags, slot, 0); if (lpar_rc != H_Success) { udbg_printf( " bad return code from pte protect rc = %lx \n", lpar_rc); for (;;); } } static void hpte_updateboltedpp_pSeriesLP(unsigned long newpp, unsigned long ea) { unsigned long lpar_rc; unsigned long vsid,va,vpn,flags; long slot; vsid = get_kernel_vsid( ea ); va = ( vsid << 28 ) | ( ea & 0x0fffffff ); vpn = va >> PAGE_SHIFT; slot = ppc_md.hpte_find( vpn ); flags = newpp & 3; lpar_rc = plpar_pte_protect( flags, slot, 0); if (lpar_rc != H_Success) { udbg_printf( " bad return code from pte bolted protect rc = %lx \n", lpar_rc); for (;;); } } static unsigned long hpte_getword0_pSeriesLP(unsigned long slot) { unsigned long dword0; unsigned long lpar_rc; unsigned long dummy_word1; unsigned long flags; /* Read 1 pte at a time */ /* Do not need RPN to logical page translation */ /* No cross CEC PFT access */ flags = 0; lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1); if (lpar_rc != H_Success) { udbg_printf(" error on pte read in get_hpte0 rc = %lx \n", lpar_rc); for (;;); } return(dword0); } static long hpte_selectslot_pSeriesLP(unsigned long vpn) { unsigned long primary_hash; unsigned long hpteg_slot; unsigned i, k; unsigned long flags; HPTE pte_read; unsigned long lpar_rc; /* Search the primary group for an available slot */ primary_hash = hpt_hash(vpn, 0); hpteg_slot = ( primary_hash & htab_data.htab_hash_mask ) * HPTES_PER_GROUP; /* Read 1 pte at a time */ /* Do not need RPN to logical page translation */ /* No cross CEC PFT access */ flags = 0; for (i=0; i<HPTES_PER_GROUP; ++i) { /* read the hpte entry from the slot */ lpar_rc = plpar_pte_read(flags, hpteg_slot + i, &pte_read.dw0.dword0, &pte_read.dw1.dword1); if (lpar_rc != H_Success) { udbg_printf(" read of hardware page table failed rc = %lx \n", lpar_rc); for (;;); } if ( pte_read.dw0.dw0.v == 0 ) { /* If an available slot found, return it */ return hpteg_slot + i; } } /* Search the secondary group for an available slot */ hpteg_slot = ( ~primary_hash & htab_data.htab_hash_mask ) * HPTES_PER_GROUP; for (i=0; i<HPTES_PER_GROUP; ++i) { /* read the hpte entry from the slot */ lpar_rc = plpar_pte_read(flags, hpteg_slot + i, &pte_read.dw0.dword0, &pte_read.dw1.dword1); if (lpar_rc != H_Success) { udbg_printf(" read of hardware page table failed2 rc = %lx \n", lpar_rc); for (;;); } if ( pte_read.dw0.dw0.v == 0 ) { /* If an available slot found, return it */ return hpteg_slot + i; } } /* No available entry found in secondary group */ /* Select an entry in the primary group to replace */ hpteg_slot = ( primary_hash & htab_data.htab_hash_mask ) * HPTES_PER_GROUP; k = htab_data.next_round_robin++ & 0x7; for (i=0; i<HPTES_PER_GROUP; ++i) { if (k == HPTES_PER_GROUP) k = 0; lpar_rc = plpar_pte_read(flags, hpteg_slot + k, &pte_read.dw0.dword0, &pte_read.dw1.dword1); if (lpar_rc != H_Success) { udbg_printf( " pte read failed - rc = %lx", lpar_rc); for (;;); } if ( ! pte_read.dw0.dw0.bolted) { hpteg_slot += k; /* Invalidate the current entry */ ppc_md.hpte_invalidate(hpteg_slot); return hpteg_slot; } ++k; } /* No non-bolted entry found in primary group - time to panic */ udbg_printf("select_hpte_slot - No non-bolted HPTE in group 0x%lx! \n", hpteg_slot/HPTES_PER_GROUP); udbg_printf("No non-bolted HPTE in group %lx", (unsigned long)hpteg_slot/HPTES_PER_GROUP); for (;;); /* never executes - avoid compiler errors */ return 0; } static void hpte_create_valid_pSeriesLP(unsigned long slot, unsigned long vpn, unsigned long prpn, unsigned hash, void *ptep, unsigned hpteflags, unsigned bolted) { /* Local copy of HPTE */ struct { /* Local copy of first doubleword of HPTE */ union { unsigned long d; Hpte_dword0 h; } dw0; /* Local copy of second doubleword of HPTE */ union { unsigned long d; Hpte_dword1 h; Hpte_dword1_flags f; } dw1; } lhpte; unsigned long avpn = vpn >> 11; unsigned long arpn = physRpn_to_absRpn( prpn ); unsigned long lpar_rc; unsigned long flags; HPTE ret_hpte; /* Fill in the local HPTE with absolute rpn, avpn and flags */ lhpte.dw1.d = 0; lhpte.dw1.h.rpn = arpn; lhpte.dw1.f.flags = hpteflags; lhpte.dw0.d = 0; lhpte.dw0.h.avpn = avpn; lhpte.dw0.h.h = hash; lhpte.dw0.h.bolted = bolted; lhpte.dw0.h.v = 1; /* Now fill in the actual HPTE */ /* Set CEC cookie to 0 */ /* Large page = 0 */ /* Zero page = 0 */ /* I-cache Invalidate = 0 */ /* I-cache synchronize = 0 */ /* Exact = 1 - only modify exact entry */ flags = H_EXACT; if (hpteflags & (_PAGE_GUARDED|_PAGE_NO_CACHE)) lhpte.dw1.f.flags &= ~_PAGE_COHERENT; #if 1 __asm__ __volatile__ ( H_ENTER_r3 "mr 4, %1\n" "mr 5, %2\n" "mr 6, %3\n" "mr 7, %4\n" HSC "mr %0, 3\n" : "=r" (lpar_rc) : "r" (flags), "r" (slot), "r" (lhpte.dw0.d), "r" (lhpte.dw1.d) : "r3", "r4", "r5", "r6", "r7", "cc"); #else lpar_rc = plpar_pte_enter(flags, slot, lhpte.dw0.d, lhpte.dw1.d, &ret_hpte.dw0.dword0, &ret_hpte.dw1.dword1); #endif if (lpar_rc != H_Success) { udbg_printf("error on pte enter lapar rc = %ld\n",lpar_rc); udbg_printf("ent: s=%lx, dw0=%lx, dw1=%lx\n", slot, lhpte.dw0.d, lhpte.dw1.d); /* xmon_backtrace("backtrace"); */ for (;;); } } static long hpte_find_pSeriesLP(unsigned long vpn) { union { unsigned long d; Hpte_dword0 h; } hpte_dw0; long slot; unsigned long hash; unsigned long i,j; hash = hpt_hash(vpn, 0); for ( j=0; j<2; ++j ) { slot = (hash & htab_data.htab_hash_mask) * HPTES_PER_GROUP; for ( i=0; i<HPTES_PER_GROUP; ++i ) { hpte_dw0.d = hpte_getword0_pSeriesLP( slot ); if ( ( hpte_dw0.h.avpn == ( vpn >> 11 ) ) && ( hpte_dw0.h.v ) && ( hpte_dw0.h.h == j ) ) { /* HPTE matches */ if ( j ) slot = -slot; return slot; } ++slot; } hash = ~hash; } return -1; } /* * Create a pte - LPAR . Used during initialization only. * We assume the PTE will fit in the primary PTEG. */ void make_pte_LPAR(HPTE *htab, unsigned long va, unsigned long pa, int mode, unsigned long hash_mask, int large) { HPTE local_hpte, ret_hpte; unsigned long hash, slot, flags,lpar_rc, vpn; if (large) vpn = va >> 24; else vpn = va >> 12; hash = hpt_hash(vpn, large); slot = ((hash & hash_mask)*HPTES_PER_GROUP); local_hpte.dw1.dword1 = pa | mode; local_hpte.dw0.dword0 = 0; local_hpte.dw0.dw0.avpn = va >> 23; local_hpte.dw0.dw0.bolted = 1; /* bolted */ if (large) local_hpte.dw0.dw0.l = 1; /* large page */ local_hpte.dw0.dw0.v = 1; /* Set CEC cookie to 0 */ /* Zero page = 0 */ /* I-cache Invalidate = 0 */ /* I-cache synchronize = 0 */ /* Exact = 0 - modify any entry in group */ flags = 0; #if 1 __asm__ __volatile__ ( H_ENTER_r3 "mr 4, %1\n" "mr 5, %2\n" "mr 6, %3\n" "mr 7, %4\n" HSC "mr %0, 3\n" : "=r" (lpar_rc) : "r" (flags), "r" (slot), "r" (local_hpte.dw0.dword0), "r" (local_hpte.dw1.dword1) : "r3", "r4", "r5", "r6", "r7", "cc"); #else lpar_rc = plpar_pte_enter(flags, slot, local_hpte.dw0.dword0, local_hpte.dw1.dword1, &ret_hpte.dw0.dword0, &ret_hpte.dw1.dword1); #endif #if 0 /* NOTE: we explicitly do not check return status here because it is * "normal" for early boot code to map io regions for which a partition * has no access. However, we will die if we actually fault on these * "permission denied" pages. */ if (lpar_rc != H_Success) { /* pSeriesLP_init_early(); */ udbg_printf("flags=%lx, slot=%lx, dword0=%lx, dword1=%lx, rc=%d\n", flags, slot, local_hpte.dw0.dword0,local_hpte.dw1.dword1, lpar_rc); BUG(); } #endif } static void tce_build_pSeriesLP(struct TceTable *tbl, long tcenum, unsigned long uaddr, int direction ) { u64 set_tce_rc; union Tce tce; PPCDBG(PPCDBG_TCE, "build_tce: uaddr = 0x%lx\n", uaddr); PPCDBG(PPCDBG_TCE, "\ttcenum = 0x%lx, tbl = 0x%lx, index=%lx\n", tcenum, tbl, tbl->index); tce.wholeTce = 0; tce.tceBits.rpn = (virt_to_absolute(uaddr)) >> PAGE_SHIFT; tce.tceBits.readWrite = 1; if ( direction != PCI_DMA_TODEVICE ) tce.tceBits.pciWrite = 1; set_tce_rc = plpar_tce_put((u64)tbl->index, (u64)tcenum << 12, tce.wholeTce ); if(set_tce_rc) { printk("tce_build_pSeriesLP: plpar_tce_put failed. rc=%ld\n", set_tce_rc); printk("\tindex = 0x%lx\n", (u64)tbl->index); printk("\ttcenum = 0x%lx\n", (u64)tcenum); printk("\ttce val = 0x%lx\n", tce.wholeTce ); } } static void tce_free_one_pSeriesLP(struct TceTable *tbl, long tcenum) { u64 set_tce_rc; union Tce tce; tce.wholeTce = 0; set_tce_rc = plpar_tce_put((u64)tbl->index, (u64)tcenum << 12, tce.wholeTce ); if ( set_tce_rc ) { printk("tce_free_one_pSeriesLP: plpar_tce_put failed\n"); printk("\trc = %ld\n", set_tce_rc); printk("\tindex = 0x%lx\n", (u64)tbl->index); printk("\ttcenum = 0x%lx\n", (u64)tcenum); printk("\ttce val = 0x%lx\n", tce.wholeTce ); } } /* PowerPC Interrupts for lpar. */ /* NOTE: this typedef is duplicated (for now) from xics.c! */ typedef struct { int (*xirr_info_get)(int cpu); void (*xirr_info_set)(int cpu, int val); void (*cppr_info)(int cpu, u8 val); void (*qirr_info)(int cpu, u8 val); } xics_ops; static int pSeriesLP_xirr_info_get(int n_cpu) { unsigned long lpar_rc; unsigned long return_value; lpar_rc = plpar_xirr(&return_value); if (lpar_rc != H_Success) { panic(" bad return code xirr - rc = %lx \n", lpar_rc); } return ((int)(return_value)); } static void pSeriesLP_xirr_info_set(int n_cpu, int value) { unsigned long lpar_rc; unsigned long val64 = value & 0xffffffff; lpar_rc = plpar_eoi(val64); if (lpar_rc != H_Success) { panic(" bad return code EOI - rc = %ld, value=%lx \n", lpar_rc, val64); } } static void pSeriesLP_cppr_info(int n_cpu, u8 value) { unsigned long lpar_rc; lpar_rc = plpar_cppr(value); if (lpar_rc != H_Success) { panic(" bad return code cppr - rc = %lx \n", lpar_rc); } } static void pSeriesLP_qirr_info(int n_cpu , u8 value) { unsigned long lpar_rc; lpar_rc = plpar_ipi(get_hard_smp_processor_id(n_cpu),value); if (lpar_rc != H_Success) { udbg_printf("pSeriesLP_qirr_info - plpar_ipi failed!!!!!!!! \n"); panic(" bad return code qirr -ipi - rc = %lx \n", lpar_rc); } } xics_ops pSeriesLP_ops = { pSeriesLP_xirr_info_get, pSeriesLP_xirr_info_set, pSeriesLP_cppr_info, pSeriesLP_qirr_info }; /* end TAI-LPAR */ int vtermno; /* virtual terminal# for udbg */ static void udbg_putcLP(unsigned char c) { char buf[16]; unsigned long rc; if (c == '\n') udbg_putcLP('\r'); buf[0] = c; do { rc = plpar_put_term_char(vtermno, 1, buf); } while(rc == H_Busy); } /* Buffered chars getc */ static long inbuflen; static long inbuf[2]; /* must be 2 longs */ static int udbg_getc_pollLP(void) { /* The interface is tricky because it may return up to 16 chars. * We save them statically for future calls to udbg_getc(). */ char ch, *buf = (char *)inbuf; int i; long rc; if (inbuflen == 0) { /* get some more chars. */ inbuflen = 0; rc = plpar_get_term_char(vtermno, &inbuflen, buf); if (rc != H_Success) inbuflen = 0; /* otherwise inbuflen is garbage */ } if (inbuflen <= 0 || inbuflen > 16) { /* Catch error case as well as other oddities (corruption) */ inbuflen = 0; return -1; } ch = buf[0]; for (i = 1; i < inbuflen; i++) /* shuffle them down. */ buf[i-1] = buf[i]; inbuflen--; return ch; } static unsigned char udbg_getcLP(void) { int ch; for (;;) { ch = udbg_getc_pollLP(); if (ch == -1) { /* This shouldn't be needed...but... */ volatile unsigned long delay; for (delay=0; delay < 2000000; delay++) ; } else { return ch; } } } /* This is called early in setup.c. * Use it to setup page table ppc_md stuff as well as udbg. */ void pSeriesLP_init_early(void) { ppc_md.hpte_invalidate = hpte_invalidate_pSeriesLP; ppc_md.hpte_updatepp = hpte_updatepp_pSeriesLP; ppc_md.hpte_updateboltedpp = hpte_updateboltedpp_pSeriesLP; ppc_md.hpte_getword0 = hpte_getword0_pSeriesLP; ppc_md.hpte_selectslot = hpte_selectslot_pSeriesLP; ppc_md.hpte_create_valid = hpte_create_valid_pSeriesLP; ppc_md.hpte_find = hpte_find_pSeriesLP; ppc_md.tce_build = tce_build_pSeriesLP; ppc_md.tce_free_one = tce_free_one_pSeriesLP; #ifdef CONFIG_SMP smp_init_pSeries(); #endif pSeries_pcibios_init_early(); /* The keyboard is not useful in the LPAR environment. * Leave all the interfaces NULL. */ if (naca->serialPortAddr) { void *comport = (void *)__ioremap(naca->serialPortAddr, 16, _PAGE_NO_CACHE); udbg_init_uart(comport); ppc_md.udbg_putc = udbg_putc; ppc_md.udbg_getc = udbg_getc; ppc_md.udbg_getc_poll = udbg_getc_poll; } else { /* lookup the first virtual terminal number in case we don't have a com port. * Zero is probably correct in case someone calls udbg before the init. * The property is a pair of numbers. The first is the starting termno (the * one we use) and the second is the number of terminals. */ u32 *termno; struct device_node *np = find_path_device("/rtas"); if (np) { termno = (u32 *)get_property(np, "ibm,termno", 0); if (termno) vtermno = termno[0]; } ppc_md.udbg_putc = udbg_putcLP; ppc_md.udbg_getc = udbg_getcLP; ppc_md.udbg_getc_poll = udbg_getc_pollLP; } } /* Code for hvc_console. Should move it back eventually. */ int hvc_get_chars(int index, char *buf, int count) { unsigned long got; if (plpar_hcall(H_GET_TERM_CHAR, index, 0, 0, 0, &got, (unsigned long *)buf, (unsigned long *)buf+1) == H_Success) { /* * Work around a HV bug where it gives us a null * after every \r. -- paulus */ if (got > 0) { int i; for (i = 1; i < got; ++i) { if (buf[i] == 0 && buf[i-1] == '\r') { --got; if (i < got) memmove(&buf[i], &buf[i+1], got - i); } } } return got; } return 0; } int hvc_put_chars(int index, const char *buf, int count) { unsigned long dummy; unsigned long *lbuf = (unsigned long *) buf; long ret; ret = plpar_hcall(H_PUT_TERM_CHAR, index, count, lbuf[0], lbuf[1], &dummy, &dummy, &dummy); if (ret == H_Success) return count; if (ret == H_Busy) return 0; return -1; } int hvc_count(int *start_termno) { u32 *termno; struct device_node *dn; if ((dn = find_path_device("/rtas")) != NULL) { if ((termno = (u32 *)get_property(dn, "ibm,termno", 0)) != NULL) { if (start_termno) *start_termno = termno[0]; return termno[1]; } } return 0; }
bticino/linux-2.4.19-rmk7-pxa2-btweb
arch/ppc64/kernel/pSeries_lpar.c
C
gpl-2.0
22,752
#[anarPHP v1.1.13](http://anarphp.ir) ### The modular PHP framework ======= ##License GNU ##Versioning Anar will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format: `<major>.<minor>.<patch>` ##Author - Project Owner: Mohsen Ahmadian - Email: mohsen.etc@gmail.com #About Anar Anar (Persian: انار‎ anâr) is the Persian word for pomegranate. Anar(Pomegranate) is native to Iran,and this framework is too, So this name is selected for my framework. #Why Anar PHP AnarPHP is modular and full MVC. In the php world you can find many framework but all of theme not modular .anar is only one framework is modular . This means when you develop your web application ( or website ) you can manage your app module ( remove / add / edit /reuse ). Joomla is CMS but Anar is framework not a CMS.when you use Anar your hands is open to create any module anar is small and fast. #How to Use Write Quick Start
anarphp/anarPHP
README.md
Markdown
gpl-2.0
1,003
<html> <head> <meta charset="UTF-8"> <title>Teachery</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Teachery is a web application aimed at teachers everywhere. The goal of Teachery is to make teaching easier by giving teachers a small set of handy tools."> <link rel="icon" type="image/x-icon" href="img/favicon.ico" /> <link rel="stylesheet" href="//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css"> <link rel="stylesheet" href="css/style.php" id="stylesheet"> <link rel="stylesheet" href="css/shake.css"> <script type="text/javascript" src="js/util/cookies.js"></script> <script type="text/javascript" src="js/util/confirm.js"></script> <script type="text/javascript" src="js/util/render.js"></script> <script type="text/javascript" src="js/util/CSV.js"></script> <script type="text/javascript" src="js/models/notification.js"></script> <script type="text/javascript" src="js/models/timer.js"></script> <script type="text/javascript" src="js/models/clock.js"></script> <script type="text/javascript" src="js/models/picker.js"></script> <script type="text/javascript" src="js/models/grouper.js"></script> </head> <body> <div class="nostyle">Loading stylesheet..</div> <div class="cookie"></div> <!-- This is where the navigation resires. --> <nav> <a id="home_menu" class="menu" href="#home"><i class="icon ion-home"></i></a> <a id="timery_menu" class="menu" href="#timery"><i class="icon ion-clock"></i></a> <a id="pickery_menu" class="menu" href="#pickery"><i class="icon ion-person"></i></a> <a id="groupery_menu" class="menu" href="#groupery"><i class="icon ion-person-stalker"></i></a> <a id="settings_menu" class="menu" href="#settings"><i class="icon ion-gear-b"></i></a> </nav> <div class=navlay></div> <noscript> For full functionality of this site it is necessary to enable JavaScript. Here are the <a href="http://www.enable-javascript.com/" target="_blank"> instructions how to enable JavaScript in your web browser</a>. </noscript> <div id="home" class="page"> <?php include('views/home.php'); ?> </div> <div id="timery" class="page"> <?php include('views/time.php'); ?> </div> <div id="pickery" class="page"> <?php include('views/picker.php'); ?> </div> <div id="groupery" class="page"> <?php include('views/grouper.php'); ?> </div> <div id="settings" class="page"> <?php include('views/settings.php'); ?> </div> <div id="notlist"></div> <script type="text/javascript" src="js/view/timery.js"></script> <script type="text/javascript" src="js/view/settings.js"></script> <script type="text/javascript" src="js/view/pickery.js"></script> <script type="text/javascript" src="js/view/groupery.js"></script> <script type="text/javascript" src="js/main.js"></script> </body> </html>
soudy/Teachery
app/index.php
PHP
gpl-2.0
3,050
package USER; use strict; require DynaLoader; our @ISA = qw(DynaLoader); our $VERSION = '0.92'; USER->bootstrap($VERSION); # Preloaded methods go here. package USER::ADMIN; our @ISA = qw(); package USER::ENT; our @ISA = qw(); 1; __END__ # Below is stub documentation for your module. You'd better edit it! =head1 NAME USER - Perl extension for libuser API =head1 SYNOPSIS use USER; =head1 ABSTRACT A user and group account administration library =head1 DESCRIPTION The libuser library implements a standardized interface for manipulating and administering user and group accounts. The library uses pluggable back-ends to interface to its data sources. This is the perl Extension for libuser. It is mostly used by userdrake which is a GUI for user and groups administration =head2 EXPORT None by default. =head1 SEE ALSO Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards. If you have a mailing list set up for your module, mention it here. If you have a web site set up for your module, mention it here. =head1 AUTHOR Daouda LO, E<lt>daouda@mandrakesoft.comE<gt> =head1 COPYRIGHT AND LICENSE Copyright 2003 by Mandrakesoft SA This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut
OpenMandrivaSoftware/userdrake
USER/USER.pm
Perl
gpl-2.0
1,449
function c_game(piece, display, score) { this.piece = piece; this.display = display; this.score = score; this.speed = 250; } c_game.prototype.reassign = function(y) { var x; var tmp; while (y > 0) { tmp = y - 1; x = 1; while (this.display.map[tmp][x] != null) { this.display.map[y][x] = this.display.map[tmp][x]; x++; } y--; } }
genot-c/tetris
src/js/c_game.js
JavaScript
gpl-2.0
385
#!/bin/sh # Copyright (C) 2011 OpenWrt.org UCIDEF_LEDS_CHANGED=0 ucidef_set_led_netdev() { local cfg="led_$1" local name=$2 local sysfs=$3 local dev=$4 uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='led' set system.$cfg.name='$name' set system.$cfg.sysfs='$sysfs' set system.$cfg.trigger='netdev' set system.$cfg.dev='$dev' set system.$cfg.mode='link tx rx' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_set_led_usbdev() { local cfg="led_$1" local name=$2 local sysfs=$3 local dev=$4 uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='led' set system.$cfg.name='$name' set system.$cfg.sysfs='$sysfs' set system.$cfg.trigger='usbdev' set system.$cfg.dev='$dev' set system.$cfg.interval='50' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_set_led_wlan() { local cfg="led_$1" local name=$2 local sysfs=$3 local trigger=$4 uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='led' set system.$cfg.name='$name' set system.$cfg.sysfs='$sysfs' set system.$cfg.trigger='$trigger' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_set_led_switch() { local cfg="led_$1" local name=$2 local sysfs=$3 local trigger=$4 local port_mask=$5 uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='led' set system.$cfg.name='$name' set system.$cfg.sysfs='$sysfs' set system.$cfg.trigger='$trigger' set system.$cfg.port_mask='$port_mask' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_set_led_default() { local cfg="led_$1" local name=$2 local sysfs=$3 local default=$4 uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='led' set system.$cfg.name='$name' set system.$cfg.sysfs='$sysfs' set system.$cfg.default='$default' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_set_led_rssi() { local cfg="led_$1" local name=$2 local sysfs=$3 local iface=$4 local minq=$5 local maxq=$6 local offset=$7 local factor=$8 uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='led' set system.$cfg.name='$name' set system.$cfg.sysfs='$sysfs' set system.$cfg.trigger='rssi' set system.$cfg.iface='rssid_$iface' set system.$cfg.minq='$minq' set system.$cfg.maxq='$maxq' set system.$cfg.offset='$offset' set system.$cfg.factor='$factor' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_set_rssimon() { local dev="$1" local refresh="$2" local threshold="$3" local cfg="rssid_$dev" uci -q get system.$cfg && return 0 uci batch <<EOF set system.$cfg='rssid' set system.$cfg.dev='$dev' set system.$cfg.refresh='$refresh' set system.$cfg.threshold='$threshold' EOF UCIDEF_LEDS_CHANGED=1 } ucidef_commit_leds() { [ "$UCIDEF_LEDS_CHANGED" == "1" ] && uci commit system } ucidef_set_interface_loopback() { uci batch <<EOF set network.loopback='interface' set network.loopback.ifname='lo' set network.loopback.proto='static' set network.loopback.ipaddr='127.0.0.1' set network.loopback.netmask='255.0.0.0' EOF } ucidef_set_interface_raw() { local cfg=$1 local ifname=$2 uci batch <<EOF set network.$cfg='interface' set network.$cfg.ifname='$ifname' set network.$cfg.proto='none' EOF } ucidef_set_interface_lan() { local ifname=$1 uci batch <<EOF set network.lan='interface' set network.lan.ifname='$ifname' set network.lan.type='bridge' set network.lan.proto='static' set network.lan.ipaddr='192.168.1.1' set network.lan.netmask='255.255.255.0' EOF } ucidef_set_interface_wan() { local ifname=$1 uci batch <<EOF set network.wan='interface' set network.wan.ifname='usb0' set network.wan.proto='dhcp' EOF } ucidef_set_interfaces_lan_wan() { local lan_ifname=$1 local wan_ifname=$2 ucidef_set_interface_lan "$lan_ifname" ucidef_set_interface_wan "$wan_ifname" } ucidef_set_interface_macaddr() { local ifname=$1 local mac=$2 uci batch <<EOF set network.$ifname.macaddr='$mac' EOF } ucidef_add_switch() { local name=$1 local reset=$2 local enable=$3 uci batch <<EOF add network switch set network.@switch[-1].name='$name' set network.@switch[-1].reset='$reset' set network.@switch[-1].enable_vlan='$enable' EOF } ucidef_add_switch_vlan() { local device=$1 local vlan=$2 local ports=$3 uci batch <<EOF add network switch_vlan set network.@switch_vlan[-1].device='$device' set network.@switch_vlan[-1].vlan='$vlan' set network.@switch_vlan[-1].ports='$ports' EOF }
blackzw/openwrt_sdk_dev1
staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/lib/functions/uci-defaults.sh
Shell
gpl-2.0
4,249
/* * Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * This program 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 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 General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __UNIT_H #define __UNIT_H #include "DBCStructure.h" #include "EventProcessor.h" #include "FollowerReference.h" #include "FollowerRefManager.h" #include "HostileRefManager.h" #include "MotionMaster.h" #include "Object.h" #include "SpellAuraDefines.h" #include "ThreatManager.h" #include "MoveSplineInit.h" #define WORLD_TRIGGER 12999 enum SpellInterruptFlags { SPELL_INTERRUPT_FLAG_MOVEMENT = 0x01, // why need this for instant? SPELL_INTERRUPT_FLAG_PUSH_BACK = 0x02, // push back SPELL_INTERRUPT_FLAG_UNK3 = 0x04, // any info? SPELL_INTERRUPT_FLAG_INTERRUPT = 0x08, // interrupt SPELL_INTERRUPT_FLAG_ABORT_ON_DMG = 0x10 // _complete_ interrupt on direct damage //SPELL_INTERRUPT_UNK = 0x20 // unk, 564 of 727 spells having this spell start with "Glyph" }; // See SpellAuraInterruptFlags for other values definitions enum SpellChannelInterruptFlags { CHANNEL_INTERRUPT_FLAG_INTERRUPT = 0x08, // interrupt CHANNEL_FLAG_DELAY = 0x4000 }; enum SpellAuraInterruptFlags { AURA_INTERRUPT_FLAG_HITBYSPELL = 0x00000001, // 0 removed when getting hit by a negative spell? AURA_INTERRUPT_FLAG_TAKE_DAMAGE = 0x00000002, // 1 removed by any damage AURA_INTERRUPT_FLAG_CAST = 0x00000004, // 2 cast any spells AURA_INTERRUPT_FLAG_MOVE = 0x00000008, // 3 removed by any movement AURA_INTERRUPT_FLAG_TURNING = 0x00000010, // 4 removed by any turning AURA_INTERRUPT_FLAG_JUMP = 0x00000020, // 5 removed by entering combat AURA_INTERRUPT_FLAG_NOT_MOUNTED = 0x00000040, // 6 removed by dismounting AURA_INTERRUPT_FLAG_NOT_ABOVEWATER = 0x00000080, // 7 removed by entering water AURA_INTERRUPT_FLAG_NOT_UNDERWATER = 0x00000100, // 8 removed by leaving water AURA_INTERRUPT_FLAG_NOT_SHEATHED = 0x00000200, // 9 removed by unsheathing AURA_INTERRUPT_FLAG_TALK = 0x00000400, // 10 talk to npc / loot? action on creature AURA_INTERRUPT_FLAG_USE = 0x00000800, // 11 mine/use/open action on gameobject AURA_INTERRUPT_FLAG_MELEE_ATTACK = 0x00001000, // 12 removed by attacking AURA_INTERRUPT_FLAG_SPELL_ATTACK = 0x00002000, // 13 ??? AURA_INTERRUPT_FLAG_UNK14 = 0x00004000, // 14 AURA_INTERRUPT_FLAG_TRANSFORM = 0x00008000, // 15 removed by transform? AURA_INTERRUPT_FLAG_UNK16 = 0x00010000, // 16 AURA_INTERRUPT_FLAG_MOUNT = 0x00020000, // 17 misdirect, aspect, swim speed AURA_INTERRUPT_FLAG_NOT_SEATED = 0x00040000, // 18 removed by standing up (used by food and drink mostly and sleep/Fake Death like) AURA_INTERRUPT_FLAG_CHANGE_MAP = 0x00080000, // 19 leaving map/getting teleported AURA_INTERRUPT_FLAG_IMMUNE_OR_LOST_SELECTION = 0x00100000, // 20 removed by auras that make you invulnerable, or make other to lose selection on you AURA_INTERRUPT_FLAG_UNK21 = 0x00200000, // 21 AURA_INTERRUPT_FLAG_TELEPORTED = 0x00400000, // 22 AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT = 0x00800000, // 23 removed by entering pvp combat AURA_INTERRUPT_FLAG_DIRECT_DAMAGE = 0x01000000, // 24 removed by any direct damage AURA_INTERRUPT_FLAG_LANDING = 0x02000000, // 25 removed by hitting the ground AURA_INTERRUPT_FLAG_NOT_VICTIM = (AURA_INTERRUPT_FLAG_HITBYSPELL | AURA_INTERRUPT_FLAG_TAKE_DAMAGE | AURA_INTERRUPT_FLAG_DIRECT_DAMAGE) }; enum SpellModOp { SPELLMOD_DAMAGE = 0, SPELLMOD_DURATION = 1, SPELLMOD_THREAT = 2, SPELLMOD_EFFECT1 = 3, SPELLMOD_CHARGES = 4, SPELLMOD_RANGE = 5, SPELLMOD_RADIUS = 6, SPELLMOD_CRITICAL_CHANCE = 7, SPELLMOD_ALL_EFFECTS = 8, SPELLMOD_NOT_LOSE_CASTING_TIME = 9, SPELLMOD_CASTING_TIME = 10, SPELLMOD_COOLDOWN = 11, SPELLMOD_EFFECT2 = 12, SPELLMOD_IGNORE_ARMOR = 13, SPELLMOD_COST = 14, // Used when SpellPowerEntry::PowerIndex == 0 SPELLMOD_CRIT_DAMAGE_BONUS = 15, SPELLMOD_RESIST_MISS_CHANCE = 16, SPELLMOD_JUMP_TARGETS = 17, SPELLMOD_CHANCE_OF_SUCCESS = 18, SPELLMOD_ACTIVATION_TIME = 19, SPELLMOD_DAMAGE_MULTIPLIER = 20, SPELLMOD_GLOBAL_COOLDOWN = 21, SPELLMOD_DOT = 22, SPELLMOD_EFFECT3 = 23, SPELLMOD_BONUS_MULTIPLIER = 24, // spellmod 25 SPELLMOD_PROC_PER_MINUTE = 26, SPELLMOD_VALUE_MULTIPLIER = 27, SPELLMOD_RESIST_DISPEL_CHANCE = 28, SPELLMOD_CRIT_DAMAGE_BONUS_2 = 29, //one not used spell SPELLMOD_SPELL_COST_REFUND_ON_FAIL = 30, SPELLMOD_STACK_AMOUNT = 31, // has no effect on tooltip parsing SPELLMOD_EFFECT4 = 32, SPELLMOD_EFFECT5 = 33, SPELLMOD_SPELL_COST2 = 34, // Used when SpellPowerEntry::PowerIndex == 1 SPELLMOD_JUMP_DISTANCE = 35, SPELLMOD_STACK_AMOUNT2 = 37 // same as SPELLMOD_STACK_AMOUNT but affects tooltips }; #define MAX_SPELLMOD 38 enum SpellValueMod { SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, SPELLVALUE_BASE_POINT3, SPELLVALUE_BASE_POINT4, SPELLVALUE_BASE_POINT5, SPELLVALUE_BASE_POINT6, SPELLVALUE_BASE_POINT7, SPELLVALUE_BASE_POINT8, SPELLVALUE_BASE_POINT9, SPELLVALUE_BASE_POINT10, SPELLVALUE_BASE_POINT11, SPELLVALUE_BASE_POINT12, SPELLVALUE_BASE_POINT13, SPELLVALUE_BASE_POINT14, SPELLVALUE_BASE_POINT15, SPELLVALUE_BASE_POINT16, SPELLVALUE_BASE_POINT17, SPELLVALUE_BASE_POINT18, SPELLVALUE_BASE_POINT19, SPELLVALUE_BASE_POINT20, SPELLVALUE_BASE_POINT21, SPELLVALUE_BASE_POINT22, SPELLVALUE_BASE_POINT23, SPELLVALUE_BASE_POINT24, SPELLVALUE_BASE_POINT25, SPELLVALUE_BASE_POINT26, SPELLVALUE_BASE_POINT27, SPELLVALUE_BASE_POINT28, SPELLVALUE_BASE_POINT29, SPELLVALUE_BASE_POINT30, SPELLVALUE_BASE_POINT31, SPELLVALUE_BASE_POINT_END, SPELLVALUE_RADIUS_MOD, SPELLVALUE_MAX_TARGETS, SPELLVALUE_AURA_STACK }; class CustomSpellValues { typedef std::pair<SpellValueMod, int32> CustomSpellValueMod; typedef std::vector<CustomSpellValueMod> StorageType; public: typedef StorageType::const_iterator const_iterator; public: void AddSpellMod(SpellValueMod mod, int32 value) { storage_.push_back(CustomSpellValueMod(mod, value)); } const_iterator begin() const { return storage_.begin(); } const_iterator end() const { return storage_.end(); } private: StorageType storage_; }; enum SpellFacingFlags { SPELL_FACING_FLAG_INFRONT = 0x0001 }; #define BASE_MINDAMAGE 1.0f #define BASE_MAXDAMAGE 2.0f #define BASE_ATTACK_TIME 2000 // byte value (UNIT_FIELD_BYTES_1, 0) enum UnitStandStateType { UNIT_STAND_STATE_STAND = 0, UNIT_STAND_STATE_SIT = 1, UNIT_STAND_STATE_SIT_CHAIR = 2, UNIT_STAND_STATE_SLEEP = 3, UNIT_STAND_STATE_SIT_LOW_CHAIR = 4, UNIT_STAND_STATE_SIT_MEDIUM_CHAIR = 5, UNIT_STAND_STATE_SIT_HIGH_CHAIR = 6, UNIT_STAND_STATE_DEAD = 7, UNIT_STAND_STATE_KNEEL = 8, UNIT_STAND_STATE_SUBMERGED = 9 }; // byte flag value (UNIT_FIELD_BYTES_1, 2) enum UnitStandFlags { UNIT_STAND_FLAGS_UNK1 = 0x01, UNIT_STAND_FLAGS_CREEP = 0x02, UNIT_STAND_FLAGS_UNTRACKABLE = 0x04, UNIT_STAND_FLAGS_UNK4 = 0x08, UNIT_STAND_FLAGS_UNK5 = 0x10, UNIT_STAND_FLAGS_ALL = 0xFF }; enum UnitBytes0Offsets { UNIT_BYTES_0_OFFSET_RACE = 0, UNIT_BYTES_0_OFFSET_CLASS = 1, UNIT_BYTES_0_OFFSET_GENDER = 3 }; enum UnitBytes1Offsets { UNIT_BYTES_1_OFFSET_STAND_STATE = 0, UNIT_BYTES_1_OFFSET_VIS_FLAG = 2, UNIT_BYTES_1_OFFSET_ANIM_TIER = 3 }; enum UnitBytes2Offsets { UNIT_BYTES_2_OFFSET_SHEATH_STATE = 0, UNIT_BYTES_2_OFFSET_PVP_FLAG = 1, }; // byte flags value (UNIT_FIELD_BYTES_1, 3) enum UnitBytes1_Flags { UNIT_BYTE1_FLAG_ALWAYS_STAND = 0x01, UNIT_BYTE1_FLAG_HOVER = 0x02, UNIT_BYTE1_FLAG_UNK_3 = 0x04, UNIT_BYTE1_FLAG_ALL = 0xFF }; // high byte (3 from 0..3) of UNIT_FIELD_BYTES_2 enum ShapeshiftForm { FORM_NONE = 0x00, FORM_CAT = 0x01, FORM_TREE = 0x02, FORM_TRAVEL = 0x03, FORM_AQUA = 0x04, FORM_BEAR = 0x05, FORM_AMBIENT = 0x06, FORM_GHOUL = 0x07, FORM_DIREBEAR = 0x08, // Removed in 4.0.1 FORM_STEVES_GHOUL = 0x09, FORM_THARONJA_SKELETON = 0x0A, FORM_TEST_OF_STRENGTH = 0x0B, FORM_BLB_PLAYER = 0x0C, FORM_SHADOW_DANCE = 0x0D, FORM_CREATUREBEAR = 0x0E, FORM_CREATURECAT = 0x0F, FORM_GHOSTWOLF = 0x10, FORM_BATTLESTANCE = 0x11, FORM_DEFENSIVESTANCE = 0x12, FORM_BERSERKERSTANCE = 0x13, FORM_TEST = 0x14, FORM_ZOMBIE = 0x15, FORM_METAMORPHOSIS = 0x16, FORM_UNDEAD = 0x19, FORM_MASTER_ANGLER = 0x1A, FORM_FLIGHT_EPIC = 0x1B, FORM_SHADOW = 0x1C, FORM_FLIGHT = 0x1D, FORM_STEALTH = 0x1E, FORM_MOONKIN = 0x1F, FORM_SPIRITOFREDEMPTION = 0x20 }; // low byte (0 from 0..3) of UNIT_FIELD_BYTES_2 enum SheathState : uint8 { SHEATH_STATE_UNARMED = 0, // non prepared weapon SHEATH_STATE_MELEE = 1, // prepared melee weapon SHEATH_STATE_RANGED = 2 // prepared ranged weapon }; #define MAX_SHEATH_STATE 3 // byte (1 from 0..3) of UNIT_FIELD_BYTES_2 enum UnitPVPStateFlags { UNIT_BYTE2_FLAG_PVP = 0x01, UNIT_BYTE2_FLAG_UNK1 = 0x02, UNIT_BYTE2_FLAG_FFA_PVP = 0x04, UNIT_BYTE2_FLAG_SANCTUARY = 0x08, UNIT_BYTE2_FLAG_UNK4 = 0x10, UNIT_BYTE2_FLAG_UNK5 = 0x20, UNIT_BYTE2_FLAG_UNK6 = 0x40, UNIT_BYTE2_FLAG_UNK7 = 0x80 }; // byte (2 from 0..3) of UNIT_FIELD_BYTES_2 enum UnitRename { UNIT_CAN_BE_RENAMED = 0x01, UNIT_CAN_BE_ABANDONED = 0x02 }; #define MAX_SPELL_CHARM 4 #define MAX_SPELL_VEHICLE 6 #define MAX_SPELL_POSSESS 8 #define MAX_SPELL_CONTROL_BAR 10 #define MAX_AGGRO_RESET_TIME 10 // in seconds #define MAX_AGGRO_RADIUS 45.0f // yards enum VictimState { VICTIMSTATE_INTACT = 0, // set when attacker misses VICTIMSTATE_HIT = 1, // victim got clear/blocked hit VICTIMSTATE_DODGE = 2, VICTIMSTATE_PARRY = 3, VICTIMSTATE_INTERRUPT = 4, VICTIMSTATE_BLOCKS = 5, // unused? not set when blocked, even on full block VICTIMSTATE_EVADES = 6, VICTIMSTATE_IS_IMMUNE = 7, VICTIMSTATE_DEFLECTS = 8 }; enum HitInfo { HITINFO_NORMALSWING = 0x00000000, HITINFO_UNK1 = 0x00000001, // req correct packet structure HITINFO_AFFECTS_VICTIM = 0x00000002, HITINFO_OFFHAND = 0x00000004, HITINFO_UNK2 = 0x00000008, HITINFO_MISS = 0x00000010, HITINFO_FULL_ABSORB = 0x00000020, HITINFO_PARTIAL_ABSORB = 0x00000040, HITINFO_FULL_RESIST = 0x00000080, HITINFO_PARTIAL_RESIST = 0x00000100, HITINFO_CRITICALHIT = 0x00000200, // critical hit // 0x00000400 // 0x00000800 HITINFO_UNK12 = 0x00001000, HITINFO_BLOCK = 0x00002000, // blocked damage // 0x00004000 // Hides worldtext for 0 damage // 0x00008000 // Related to blood visual HITINFO_GLANCING = 0x00010000, HITINFO_CRUSHING = 0x00020000, HITINFO_NO_ANIMATION = 0x00040000, // 0x00080000 // 0x00100000 HITINFO_SWINGNOHITSOUND = 0x00200000, // unused? // 0x00400000 HITINFO_RAGE_GAIN = 0x00800000 }; //i would like to remove this: (it is defined in item.h enum InventorySlot { NULL_BAG = 0, NULL_SLOT = 255 }; struct FactionTemplateEntry; struct MountCapabilityEntry; struct SpellValue; class AuraApplication; class Aura; class UnitAura; class AuraEffect; class Creature; class Spell; class SpellInfo; class SpellEffectInfo; class SpellHistory; class DynamicObject; class GameObject; class Item; class Pet; class PetAura; class Minion; class Guardian; class UnitAI; class Totem; class Transport; class Vehicle; class VehicleJoinEvent; class TransportBase; class SpellCastTargets; namespace Movement { class MoveSpline; } namespace WorldPackets { namespace CombatLog { class CombatLogServerPacket; } } typedef std::list<Unit*> UnitList; typedef std::list<std::pair<Aura*, uint8>> DispelChargesList; struct SpellImmune { uint32 type; uint32 spellId; }; typedef std::list<SpellImmune> SpellImmuneList; enum UnitModifierType { BASE_VALUE = 0, BASE_PCT_EXCLUDE_CREATE = 1, // percent modifier affecting all stat values from auras and gear but not player base for level BASE_PCT = 2, TOTAL_VALUE = 3, TOTAL_PCT = 4, MODIFIER_TYPE_END = 5 }; enum WeaponDamageRange { MINDAMAGE, MAXDAMAGE }; enum AuraRemoveMode { AURA_REMOVE_NONE = 0, AURA_REMOVE_BY_DEFAULT = 1, // scripted remove, remove by stack with aura with different ids and sc aura remove AURA_REMOVE_BY_CANCEL, AURA_REMOVE_BY_ENEMY_SPELL, // dispel and absorb aura destroy AURA_REMOVE_BY_EXPIRE, // aura duration has ended AURA_REMOVE_BY_DEATH }; enum TriggerCastFlags { TRIGGERED_NONE = 0x00000000, //! Not triggered TRIGGERED_IGNORE_GCD = 0x00000001, //! Will ignore GCD TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD = 0x00000002, //! Will ignore Spell and Category cooldowns TRIGGERED_IGNORE_POWER_AND_REAGENT_COST = 0x00000004, //! Will ignore power and reagent cost TRIGGERED_IGNORE_CAST_ITEM = 0x00000008, //! Will not take away cast item or update related achievement criteria TRIGGERED_IGNORE_AURA_SCALING = 0x00000010, //! Will ignore aura scaling TRIGGERED_IGNORE_CAST_IN_PROGRESS = 0x00000020, //! Will not check if a current cast is in progress TRIGGERED_IGNORE_COMBO_POINTS = 0x00000040, //! Will ignore combo point requirement TRIGGERED_CAST_DIRECTLY = 0x00000080, //! In Spell::prepare, will be cast directly without setting containers for executed spell TRIGGERED_IGNORE_AURA_INTERRUPT_FLAGS = 0x00000100, //! Will ignore interruptible aura's at cast TRIGGERED_IGNORE_SET_FACING = 0x00000200, //! Will not adjust facing to target (if any) TRIGGERED_IGNORE_SHAPESHIFT = 0x00000400, //! Will ignore shapeshift checks TRIGGERED_IGNORE_CASTER_AURASTATE = 0x00000800, //! Will ignore caster aura states including combat requirements and death state TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE = 0x00002000, //! Will ignore mounted/on vehicle restrictions TRIGGERED_IGNORE_CASTER_AURAS = 0x00010000, //! Will ignore caster aura restrictions or requirements TRIGGERED_DISALLOW_PROC_EVENTS = 0x00020000, //! Disallows proc events from triggered spell (default) TRIGGERED_DONT_REPORT_CAST_ERROR = 0x00040000, //! Will return SPELL_FAILED_DONT_REPORT in CheckCast functions TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT = 0x00080000, //! Will ignore equipped item requirements TRIGGERED_IGNORE_TARGET_CHECK = 0x00100000, //! Will ignore most target checks (mostly DBC target checks) TRIGGERED_FULL_MASK = 0xFFFFFFFF }; enum UnitMods { UNIT_MOD_STAT_STRENGTH, // UNIT_MOD_STAT_STRENGTH..UNIT_MOD_STAT_SPIRIT must be in existed order, it's accessed by index values of Stats enum. UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_HEALTH, UNIT_MOD_MANA, // UNIT_MOD_MANA..UNIT_MOD_RUNIC_POWER must be in existed order, it's accessed by index values of Powers enum. UNIT_MOD_RAGE, UNIT_MOD_FOCUS, UNIT_MOD_ENERGY, UNIT_MOD_UNUSED, // Old UNIT_MOD_HAPPINESS UNIT_MOD_RUNE, UNIT_MOD_RUNIC_POWER, UNIT_MOD_SOUL_SHARDS, UNIT_MOD_ECLIPSE, UNIT_MOD_HOLY_POWER, UNIT_MOD_ALTERNATIVE, UNIT_MOD_ARMOR, // UNIT_MOD_ARMOR..UNIT_MOD_RESISTANCE_ARCANE must be in existed order, it's accessed by index values of SpellSchools enum. UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_END, // synonyms UNIT_MOD_STAT_START = UNIT_MOD_STAT_STRENGTH, UNIT_MOD_STAT_END = UNIT_MOD_STAT_SPIRIT + 1, UNIT_MOD_RESISTANCE_START = UNIT_MOD_ARMOR, UNIT_MOD_RESISTANCE_END = UNIT_MOD_RESISTANCE_ARCANE + 1, UNIT_MOD_POWER_START = UNIT_MOD_MANA, UNIT_MOD_POWER_END = UNIT_MOD_ALTERNATIVE + 1 }; enum BaseModGroup { CRIT_PERCENTAGE, RANGED_CRIT_PERCENTAGE, OFFHAND_CRIT_PERCENTAGE, SHIELD_BLOCK_VALUE, BASEMOD_END }; enum BaseModType { FLAT_MOD, PCT_MOD, MOD_END }; enum DeathState { ALIVE = 0, JUST_DIED = 1, CORPSE = 2, DEAD = 3, JUST_RESPAWNED = 4 }; enum UnitState { UNIT_STATE_DIED = 0x00000001, // player has fake death aura UNIT_STATE_MELEE_ATTACKING = 0x00000002, // player is melee attacking someone //UNIT_STATE_MELEE_ATTACK_BY = 0x00000004, // player is melee attack by someone UNIT_STATE_STUNNED = 0x00000008, UNIT_STATE_ROAMING = 0x00000010, UNIT_STATE_CHASE = 0x00000020, //UNIT_STATE_SEARCHING = 0x00000040, UNIT_STATE_FLEEING = 0x00000080, UNIT_STATE_IN_FLIGHT = 0x00000100, // player is in flight mode UNIT_STATE_FOLLOW = 0x00000200, UNIT_STATE_ROOT = 0x00000400, UNIT_STATE_CONFUSED = 0x00000800, UNIT_STATE_DISTRACTED = 0x00001000, UNIT_STATE_ISOLATED = 0x00002000, // area auras do not affect other players UNIT_STATE_ATTACK_PLAYER = 0x00004000, UNIT_STATE_CASTING = 0x00008000, UNIT_STATE_POSSESSED = 0x00010000, UNIT_STATE_CHARGING = 0x00020000, UNIT_STATE_JUMPING = 0x00040000, UNIT_STATE_MOVE = 0x00100000, UNIT_STATE_ROTATING = 0x00200000, UNIT_STATE_EVADE = 0x00400000, UNIT_STATE_ROAMING_MOVE = 0x00800000, UNIT_STATE_CONFUSED_MOVE = 0x01000000, UNIT_STATE_FLEEING_MOVE = 0x02000000, UNIT_STATE_CHASE_MOVE = 0x04000000, UNIT_STATE_FOLLOW_MOVE = 0x08000000, UNIT_STATE_IGNORE_PATHFINDING = 0x10000000, // do not use pathfinding in any MovementGenerator UNIT_STATE_ALL_STATE_SUPPORTED = UNIT_STATE_DIED | UNIT_STATE_MELEE_ATTACKING | UNIT_STATE_STUNNED | UNIT_STATE_ROAMING | UNIT_STATE_CHASE | UNIT_STATE_FLEEING | UNIT_STATE_IN_FLIGHT | UNIT_STATE_FOLLOW | UNIT_STATE_ROOT | UNIT_STATE_CONFUSED | UNIT_STATE_DISTRACTED | UNIT_STATE_ISOLATED | UNIT_STATE_ATTACK_PLAYER | UNIT_STATE_CASTING | UNIT_STATE_POSSESSED | UNIT_STATE_CHARGING | UNIT_STATE_JUMPING | UNIT_STATE_MOVE | UNIT_STATE_ROTATING | UNIT_STATE_EVADE | UNIT_STATE_ROAMING_MOVE | UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE | UNIT_STATE_CHASE_MOVE | UNIT_STATE_FOLLOW_MOVE | UNIT_STATE_IGNORE_PATHFINDING, UNIT_STATE_UNATTACKABLE = UNIT_STATE_IN_FLIGHT, // for real move using movegen check and stop (except unstoppable flight) UNIT_STATE_MOVING = UNIT_STATE_ROAMING_MOVE | UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE | UNIT_STATE_CHASE_MOVE | UNIT_STATE_FOLLOW_MOVE, UNIT_STATE_CONTROLLED = (UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING), UNIT_STATE_LOST_CONTROL = (UNIT_STATE_CONTROLLED | UNIT_STATE_JUMPING | UNIT_STATE_CHARGING), UNIT_STATE_SIGHTLESS = (UNIT_STATE_LOST_CONTROL | UNIT_STATE_EVADE), UNIT_STATE_CANNOT_AUTOATTACK = (UNIT_STATE_LOST_CONTROL | UNIT_STATE_CASTING), UNIT_STATE_CANNOT_TURN = (UNIT_STATE_LOST_CONTROL | UNIT_STATE_ROTATING), // stay by different reasons UNIT_STATE_NOT_MOVE = UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DIED | UNIT_STATE_DISTRACTED, UNIT_STATE_ALL_STATE = 0xffffffff //(UNIT_STATE_STOPPED | UNIT_STATE_MOVING | UNIT_STATE_IN_COMBAT | UNIT_STATE_IN_FLIGHT) }; enum UnitMoveType { MOVE_WALK = 0, MOVE_RUN = 1, MOVE_RUN_BACK = 2, MOVE_SWIM = 3, MOVE_SWIM_BACK = 4, MOVE_TURN_RATE = 5, MOVE_FLIGHT = 6, MOVE_FLIGHT_BACK = 7, MOVE_PITCH_RATE = 8 }; #define MAX_MOVE_TYPE 9 extern float baseMoveSpeed[MAX_MOVE_TYPE]; extern float playerBaseMoveSpeed[MAX_MOVE_TYPE]; enum WeaponAttackType : uint16 { BASE_ATTACK = 0, OFF_ATTACK = 1, RANGED_ATTACK = 2, MAX_ATTACK }; enum CombatRating { CR_UNUSED_1 = 0, CR_DEFENSE_SKILL = 1, // Removed in 4.0.1 CR_DODGE = 2, CR_PARRY = 3, CR_BLOCK = 4, CR_HIT_MELEE = 5, CR_HIT_RANGED = 6, CR_HIT_SPELL = 7, CR_CRIT_MELEE = 8, CR_CRIT_RANGED = 9, CR_CRIT_SPELL = 10, CR_MULTISTRIKE = 11, CR_READINESS = 12, CR_SPEED = 13, CR_RESILIENCE_CRIT_TAKEN = 14, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN = 15, CR_LIFESTEAL = 16, CR_HASTE_MELEE = 17, CR_HASTE_RANGED = 18, CR_HASTE_SPELL = 19, CR_AVOIDANCE = 20, CR_UNUSED_2 = 21, CR_WEAPON_SKILL_RANGED = 22, CR_EXPERTISE = 23, CR_ARMOR_PENETRATION = 24, CR_MASTERY = 25, CR_UNUSED_3 = 26, CR_UNUSED_4 = 27, CR_VERSATILITY_DAMAGE_DONE = 28, // placeholder = 29, CR_VERSATILITY_DAMAGE_TAKEN = 30 }; #define MAX_COMBAT_RATING 31 enum DamageEffectType { DIRECT_DAMAGE = 0, // used for normal weapon damage (not for class abilities or spells) SPELL_DIRECT_DAMAGE = 1, // spell/class abilities damage DOT = 2, HEAL = 3, NODAMAGE = 4, // used also in case when damage applied to health but not applied to spell channelInterruptFlags/etc SELF_DAMAGE = 5 }; // Value masks for UNIT_FIELD_FLAGS enum UnitFlags { UNIT_FLAG_SERVER_CONTROLLED = 0x00000001, // set only when unit movement is controlled by server - by SPLINE/MONSTER_MOVE packets, together with UNIT_FLAG_STUNNED; only set to units controlled by client; client function CGUnit_C::IsClientControlled returns false when set for owner UNIT_FLAG_NON_ATTACKABLE = 0x00000002, // not attackable UNIT_FLAG_DISABLE_MOVE = 0x00000004, UNIT_FLAG_PVP_ATTACKABLE = 0x00000008, // allow apply pvp rules to attackable state in addition to faction dependent state UNIT_FLAG_RENAME = 0x00000010, UNIT_FLAG_PREPARATION = 0x00000020, // don't take reagents for spells with SPELL_ATTR5_NO_REAGENT_WHILE_PREP UNIT_FLAG_UNK_6 = 0x00000040, UNIT_FLAG_NOT_ATTACKABLE_1 = 0x00000080, // ?? (UNIT_FLAG_PVP_ATTACKABLE | UNIT_FLAG_NOT_ATTACKABLE_1) is NON_PVP_ATTACKABLE UNIT_FLAG_IMMUNE_TO_PC = 0x00000100, // disables combat/assistance with PlayerCharacters (PC) - see Unit::_IsValidAttackTarget, Unit::_IsValidAssistTarget UNIT_FLAG_IMMUNE_TO_NPC = 0x00000200, // disables combat/assistance with NonPlayerCharacters (NPC) - see Unit::_IsValidAttackTarget, Unit::_IsValidAssistTarget UNIT_FLAG_LOOTING = 0x00000400, // loot animation UNIT_FLAG_PET_IN_COMBAT = 0x00000800, // in combat?, 2.0.8 UNIT_FLAG_PVP = 0x00001000, // changed in 3.0.3 UNIT_FLAG_SILENCED = 0x00002000, // silenced, 2.1.1 UNIT_FLAG_UNK_14 = 0x00004000, // 2.0.8 UNIT_FLAG_UNK_15 = 0x00008000, UNIT_FLAG_UNK_16 = 0x00010000, UNIT_FLAG_PACIFIED = 0x00020000, // 3.0.3 ok UNIT_FLAG_STUNNED = 0x00040000, // 3.0.3 ok UNIT_FLAG_IN_COMBAT = 0x00080000, UNIT_FLAG_TAXI_FLIGHT = 0x00100000, // disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag UNIT_FLAG_DISARMED = 0x00200000, // 3.0.3, disable melee spells casting..., "Required melee weapon" added to melee spells tooltip. UNIT_FLAG_CONFUSED = 0x00400000, UNIT_FLAG_FLEEING = 0x00800000, UNIT_FLAG_PLAYER_CONTROLLED = 0x01000000, // used in spell Eyes of the Beast for pet... let attack by controlled creature UNIT_FLAG_NOT_SELECTABLE = 0x02000000, UNIT_FLAG_SKINNABLE = 0x04000000, UNIT_FLAG_MOUNT = 0x08000000, UNIT_FLAG_UNK_28 = 0x10000000, UNIT_FLAG_UNK_29 = 0x20000000, // used in Feing Death spell UNIT_FLAG_SHEATHE = 0x40000000, UNIT_FLAG_UNK_31 = 0x80000000, MAX_UNIT_FLAGS = 33 }; // Value masks for UNIT_FIELD_FLAGS_2 enum UnitFlags2 { UNIT_FLAG2_FEIGN_DEATH = 0x00000001, UNIT_FLAG2_UNK1 = 0x00000002, // Hide unit model (show only player equip) UNIT_FLAG2_IGNORE_REPUTATION = 0x00000004, UNIT_FLAG2_COMPREHEND_LANG = 0x00000008, UNIT_FLAG2_MIRROR_IMAGE = 0x00000010, UNIT_FLAG2_INSTANTLY_APPEAR_MODEL = 0x00000020, // Unit model instantly appears when summoned (does not fade in) UNIT_FLAG2_FORCE_MOVEMENT = 0x00000040, UNIT_FLAG2_DISARM_OFFHAND = 0x00000080, UNIT_FLAG2_DISABLE_PRED_STATS = 0x00000100, // Player has disabled predicted stats (Used by raid frames) UNIT_FLAG2_DISARM_RANGED = 0x00000400, // this does not disable ranged weapon display (maybe additional flag needed?) UNIT_FLAG2_REGENERATE_POWER = 0x00000800, UNIT_FLAG2_RESTRICT_PARTY_INTERACTION = 0x00001000, // Restrict interaction to party or raid UNIT_FLAG2_PREVENT_SPELL_CLICK = 0x00002000, // Prevent spellclick UNIT_FLAG2_ALLOW_ENEMY_INTERACT = 0x00004000, UNIT_FLAG2_DISABLE_TURN = 0x00008000, UNIT_FLAG2_UNK2 = 0x00010000, UNIT_FLAG2_PLAY_DEATH_ANIM = 0x00020000, // Plays special death animation upon death UNIT_FLAG2_ALLOW_CHEAT_SPELLS = 0x00040000 // Allows casting spells with AttributesEx7 & SPELL_ATTR7_IS_CHEAT_SPELL }; /// Non Player Character flags enum NPCFlags : uint64 { UNIT_NPC_FLAG_NONE = 0x0000000000, UNIT_NPC_FLAG_GOSSIP = 0x0000000001, // 100% UNIT_NPC_FLAG_QUESTGIVER = 0x0000000002, // 100% UNIT_NPC_FLAG_UNK1 = 0x0000000004, UNIT_NPC_FLAG_UNK2 = 0x0000000008, UNIT_NPC_FLAG_TRAINER = 0x0000000010, // 100% UNIT_NPC_FLAG_TRAINER_CLASS = 0x0000000020, // 100% UNIT_NPC_FLAG_TRAINER_PROFESSION = 0x0000000040, // 100% UNIT_NPC_FLAG_VENDOR = 0x0000000080, // 100% UNIT_NPC_FLAG_VENDOR_AMMO = 0x0000000100, // 100%, general goods vendor UNIT_NPC_FLAG_VENDOR_FOOD = 0x0000000200, // 100% UNIT_NPC_FLAG_VENDOR_POISON = 0x0000000400, // guessed UNIT_NPC_FLAG_VENDOR_REAGENT = 0x0000000800, // 100% UNIT_NPC_FLAG_REPAIR = 0x0000001000, // 100% UNIT_NPC_FLAG_FLIGHTMASTER = 0x0000002000, // 100% UNIT_NPC_FLAG_SPIRITHEALER = 0x0000004000, // guessed UNIT_NPC_FLAG_SPIRITGUIDE = 0x0000008000, // guessed UNIT_NPC_FLAG_INNKEEPER = 0x0000010000, // 100% UNIT_NPC_FLAG_BANKER = 0x0000020000, // 100% UNIT_NPC_FLAG_PETITIONER = 0x0000040000, // 100% 0xC0000 = guild petitions, 0x40000 = arena team petitions UNIT_NPC_FLAG_TABARDDESIGNER = 0x0000080000, // 100% UNIT_NPC_FLAG_BATTLEMASTER = 0x0000100000, // 100% UNIT_NPC_FLAG_AUCTIONEER = 0x0000200000, // 100% UNIT_NPC_FLAG_STABLEMASTER = 0x0000400000, // 100% UNIT_NPC_FLAG_GUILD_BANKER = 0x0000800000, // cause client to send 997 opcode UNIT_NPC_FLAG_SPELLCLICK = 0x0001000000, // cause client to send 1015 opcode (spell click) UNIT_NPC_FLAG_PLAYER_VEHICLE = 0x0002000000, // players with mounts that have vehicle data should have it set UNIT_NPC_FLAG_MAILBOX = 0x0004000000, // mailbox UNIT_NPC_FLAG_REFORGER = 0x0008000000, // reforging UNIT_NPC_FLAG_TRANSMOGRIFIER = 0x0010000000, // transmogrification UNIT_NPC_FLAG_VAULTKEEPER = 0x0020000000, // void storage UNIT_NPC_FLAG_BLACK_MARKET = 0x0080000000, // black market UNIT_NPC_FLAG_ITEM_UPGRADE_MASTER = 0x0100000000, UNIT_NPC_FLAG_GARRISON_ARCHITECT = 0x0200000000, UNIT_NPC_FLAG_SHIPMENT_CRAFTER = 0x2000000000, UNIT_NPC_FLAG_GARRISON_MISSION_NPC = 0x4000000000, UNIT_NPC_FLAG_TRADESKILL_NPC = 0x8000000000 }; enum MovementFlags { MOVEMENTFLAG_NONE = 0x00000000, MOVEMENTFLAG_FORWARD = 0x00000001, MOVEMENTFLAG_BACKWARD = 0x00000002, MOVEMENTFLAG_STRAFE_LEFT = 0x00000004, MOVEMENTFLAG_STRAFE_RIGHT = 0x00000008, MOVEMENTFLAG_LEFT = 0x00000010, MOVEMENTFLAG_RIGHT = 0x00000020, MOVEMENTFLAG_PITCH_UP = 0x00000040, MOVEMENTFLAG_PITCH_DOWN = 0x00000080, MOVEMENTFLAG_WALKING = 0x00000100, // Walking MOVEMENTFLAG_DISABLE_GRAVITY = 0x00000200, // Former MOVEMENTFLAG_LEVITATING. This is used when walking is not possible. MOVEMENTFLAG_ROOT = 0x00000400, // Must not be set along with MOVEMENTFLAG_MASK_MOVING MOVEMENTFLAG_FALLING = 0x00000800, // damage dealt on that type of falling MOVEMENTFLAG_FALLING_FAR = 0x00001000, MOVEMENTFLAG_PENDING_STOP = 0x00002000, MOVEMENTFLAG_PENDING_STRAFE_STOP = 0x00004000, MOVEMENTFLAG_PENDING_FORWARD = 0x00008000, MOVEMENTFLAG_PENDING_BACKWARD = 0x00010000, MOVEMENTFLAG_PENDING_STRAFE_LEFT = 0x00020000, MOVEMENTFLAG_PENDING_STRAFE_RIGHT = 0x00040000, MOVEMENTFLAG_PENDING_ROOT = 0x00080000, MOVEMENTFLAG_SWIMMING = 0x00100000, // appears with fly flag also MOVEMENTFLAG_ASCENDING = 0x00200000, // press "space" when flying MOVEMENTFLAG_DESCENDING = 0x00400000, MOVEMENTFLAG_CAN_FLY = 0x00800000, // Appears when unit can fly AND also walk MOVEMENTFLAG_FLYING = 0x01000000, // unit is actually flying. pretty sure this is only used for players. creatures use disable_gravity MOVEMENTFLAG_SPLINE_ELEVATION = 0x02000000, // used for flight paths MOVEMENTFLAG_WATERWALKING = 0x04000000, // prevent unit from falling through water MOVEMENTFLAG_FALLING_SLOW = 0x08000000, // active rogue safe fall spell (passive) MOVEMENTFLAG_HOVER = 0x10000000, // hover, cannot jump MOVEMENTFLAG_DISABLE_COLLISION = 0x20000000, /// @todo Check if PITCH_UP and PITCH_DOWN really belong here.. MOVEMENTFLAG_MASK_MOVING = MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_BACKWARD | MOVEMENTFLAG_STRAFE_LEFT | MOVEMENTFLAG_STRAFE_RIGHT | MOVEMENTFLAG_PITCH_UP | MOVEMENTFLAG_PITCH_DOWN | MOVEMENTFLAG_FALLING | MOVEMENTFLAG_FALLING_FAR | MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING | MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_MASK_TURNING = MOVEMENTFLAG_LEFT | MOVEMENTFLAG_RIGHT, MOVEMENTFLAG_MASK_MOVING_FLY = MOVEMENTFLAG_FLYING | MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING, // Movement flags allowed for creature in CreateObject - we need to keep all other enabled serverside // to properly calculate all movement MOVEMENTFLAG_MASK_CREATURE_ALLOWED = MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_DISABLE_GRAVITY | MOVEMENTFLAG_ROOT | MOVEMENTFLAG_SWIMMING | MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_WATERWALKING | MOVEMENTFLAG_FALLING_SLOW | MOVEMENTFLAG_HOVER | MOVEMENTFLAG_DISABLE_COLLISION, /// @todo if needed: add more flags to this masks that are exclusive to players MOVEMENTFLAG_MASK_PLAYER_ONLY = MOVEMENTFLAG_FLYING, /// Movement flags that have change status opcodes associated for players MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE = MOVEMENTFLAG_DISABLE_GRAVITY | MOVEMENTFLAG_ROOT | MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_WATERWALKING | MOVEMENTFLAG_FALLING_SLOW | MOVEMENTFLAG_HOVER | MOVEMENTFLAG_DISABLE_COLLISION }; enum MovementFlags2 { MOVEMENTFLAG2_NONE = 0x00000000, MOVEMENTFLAG2_NO_STRAFE = 0x00000001, MOVEMENTFLAG2_NO_JUMPING = 0x00000002, MOVEMENTFLAG2_FULL_SPEED_TURNING = 0x00000004, MOVEMENTFLAG2_FULL_SPEED_PITCHING = 0x00000008, MOVEMENTFLAG2_ALWAYS_ALLOW_PITCHING = 0x00000010, MOVEMENTFLAG2_UNK5 = 0x00000020, MOVEMENTFLAG2_UNK6 = 0x00000040, MOVEMENTFLAG2_UNK7 = 0x00000080, MOVEMENTFLAG2_UNK8 = 0x00000100, MOVEMENTFLAG2_UNK9 = 0x00000200, MOVEMENTFLAG2_CAN_SWIM_TO_FLY_TRANS = 0x00000400, MOVEMENTFLAG2_UNK11 = 0x00000800, MOVEMENTFLAG2_UNK12 = 0x00001000, MOVEMENTFLAG2_INTERPOLATED_MOVEMENT = 0x00002000, MOVEMENTFLAG2_INTERPOLATED_TURNING = 0x00004000, MOVEMENTFLAG2_INTERPOLATED_PITCHING = 0x00008000 }; enum UnitTypeMask { UNIT_MASK_NONE = 0x00000000, UNIT_MASK_SUMMON = 0x00000001, UNIT_MASK_MINION = 0x00000002, UNIT_MASK_GUARDIAN = 0x00000004, UNIT_MASK_TOTEM = 0x00000008, UNIT_MASK_PET = 0x00000010, UNIT_MASK_VEHICLE = 0x00000020, UNIT_MASK_PUPPET = 0x00000040, UNIT_MASK_HUNTER_PET = 0x00000080, UNIT_MASK_CONTROLABLE_GUARDIAN = 0x00000100, UNIT_MASK_ACCESSORY = 0x00000200 }; struct DiminishingReturn { DiminishingReturn(DiminishingGroup group, uint32 t, uint32 count) : DRGroup(group), stack(0), hitTime(t), hitCount(count) { } DiminishingGroup DRGroup:16; uint16 stack:16; uint32 hitTime; uint32 hitCount; }; enum MeleeHitOutcome { MELEE_HIT_EVADE, MELEE_HIT_MISS, MELEE_HIT_DODGE, MELEE_HIT_BLOCK, MELEE_HIT_PARRY, MELEE_HIT_GLANCING, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_NORMAL }; class DispelInfo { public: explicit DispelInfo(Unit* dispeller, uint32 dispellerSpellId, uint8 chargesRemoved) : _dispellerUnit(dispeller), _dispellerSpell(dispellerSpellId), _chargesRemoved(chargesRemoved) { } Unit* GetDispeller() const { return _dispellerUnit; } uint32 GetDispellerSpellId() const { return _dispellerSpell; } uint8 GetRemovedCharges() const { return _chargesRemoved; } void SetRemovedCharges(uint8 amount) { _chargesRemoved = amount; } private: Unit* _dispellerUnit; uint32 _dispellerSpell; uint8 _chargesRemoved; }; struct CleanDamage { CleanDamage(uint32 mitigated, uint32 absorbed, WeaponAttackType _attackType, MeleeHitOutcome _hitOutCome) : absorbed_damage(absorbed), mitigated_damage(mitigated), attackType(_attackType), hitOutCome(_hitOutCome) { } uint32 absorbed_damage; uint32 mitigated_damage; WeaponAttackType attackType; MeleeHitOutcome hitOutCome; }; struct CalcDamageInfo; class DamageInfo { private: Unit* const m_attacker; Unit* const m_victim; uint32 m_damage; SpellInfo const* const m_spellInfo; SpellSchoolMask const m_schoolMask; DamageEffectType const m_damageType; WeaponAttackType m_attackType; uint32 m_absorb; uint32 m_resist; uint32 m_block; public: explicit DamageInfo(Unit* _attacker, Unit* _victim, uint32 _damage, SpellInfo const* _spellInfo, SpellSchoolMask _schoolMask, DamageEffectType _damageType); explicit DamageInfo(CalcDamageInfo& dmgInfo); void ModifyDamage(int32 amount); void AbsorbDamage(uint32 amount); void ResistDamage(uint32 amount); void BlockDamage(uint32 amount); Unit* GetAttacker() const { return m_attacker; } Unit* GetVictim() const { return m_victim; } SpellInfo const* GetSpellInfo() const { return m_spellInfo; } SpellSchoolMask GetSchoolMask() const { return m_schoolMask; } DamageEffectType GetDamageType() const { return m_damageType; } WeaponAttackType GetAttackType() const { return m_attackType; } uint32 GetDamage() const { return m_damage; } uint32 GetAbsorb() const { return m_absorb; } uint32 GetResist() const { return m_resist; } uint32 GetBlock() const { return m_block; } }; class HealInfo { private: uint32 m_heal; uint32 m_absorb; public: explicit HealInfo(uint32 heal) : m_heal(heal) { m_absorb = 0; } void AbsorbHeal(uint32 amount) { amount = std::min(amount, GetHeal()); m_absorb += amount; m_heal -= amount; } uint32 GetHeal() const { return m_heal; } }; class ProcEventInfo { public: ProcEventInfo(Unit* actor, Unit* actionTarget, Unit* procTarget, uint32 typeMask, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell* spell, DamageInfo* damageInfo, HealInfo* healInfo); Unit* GetActor() { return _actor; } Unit* GetActionTarget() const { return _actionTarget; } Unit* GetProcTarget() const { return _procTarget; } uint32 GetTypeMask() const { return _typeMask; } uint32 GetSpellTypeMask() const { return _spellTypeMask; } uint32 GetSpellPhaseMask() const { return _spellPhaseMask; } uint32 GetHitMask() const { return _hitMask; } SpellInfo const* GetSpellInfo() const; SpellSchoolMask GetSchoolMask() const; DamageInfo* GetDamageInfo() const { return _damageInfo; } HealInfo* GetHealInfo() const { return _healInfo; } private: Unit* const _actor; Unit* const _actionTarget; Unit* const _procTarget; uint32 _typeMask; uint32 _spellTypeMask; uint32 _spellPhaseMask; uint32 _hitMask; Spell* _spell; DamageInfo* _damageInfo; HealInfo* _healInfo; }; // Struct for use in Unit::CalculateMeleeDamage // Need create structure like in SMSG_ATTACKERSTATEUPDATE opcode struct CalcDamageInfo { Unit *attacker; // Attacker Unit *target; // Target for damage uint32 damageSchoolMask; uint32 damage; uint32 absorb; uint32 resist; uint32 blocked_amount; uint32 HitInfo; uint32 TargetState; // Helper WeaponAttackType attackType; // uint32 procAttacker; uint32 procVictim; uint32 procEx; uint32 cleanDamage; // Used only for rage calculation MeleeHitOutcome hitOutCome; /// @todo remove this field (need use TargetState) }; // Spell damage info structure based on structure sending in SMSG_SPELLNONMELEEDAMAGELOG opcode struct SpellNonMeleeDamage { SpellNonMeleeDamage(Unit* _attacker, Unit* _target, uint32 _SpellID, uint32 _schoolMask); Unit *target; Unit *attacker; uint32 SpellID; uint32 damage; uint32 schoolMask; uint32 absorb; uint32 resist; bool periodicLog; uint32 blocked; uint32 HitInfo; // Used for help uint32 cleanDamage; uint32 preHitHealth; }; struct SpellPeriodicAuraLogInfo { SpellPeriodicAuraLogInfo(AuraEffect const* _auraEff, uint32 _damage, uint32 _overDamage, uint32 _absorb, uint32 _resist, float _multiplier, bool _critical) : auraEff(_auraEff), damage(_damage), overDamage(_overDamage), absorb(_absorb), resist(_resist), multiplier(_multiplier), critical(_critical){ } AuraEffect const* auraEff; uint32 damage; uint32 overDamage; // overkill/overheal uint32 absorb; uint32 resist; float multiplier; bool critical; }; uint32 createProcExtendMask(SpellNonMeleeDamage* damageInfo, SpellMissInfo missCondition); struct RedirectThreatInfo { RedirectThreatInfo() : _threatPct(0) { } ObjectGuid _targetGUID; uint32 _threatPct; ObjectGuid GetTargetGUID() const { return _targetGUID; } uint32 GetThreatPct() const { return _threatPct; } void Set(ObjectGuid guid, uint32 pct) { _targetGUID = guid; _threatPct = pct; } void ModifyThreatPct(int32 amount) { amount += _threatPct; _threatPct = uint32(std::max(0, amount)); } }; #define MAX_DECLINED_NAME_CASES 5 struct DeclinedName { std::string name[MAX_DECLINED_NAME_CASES]; }; enum CurrentSpellTypes { CURRENT_MELEE_SPELL = 0, CURRENT_GENERIC_SPELL = 1, CURRENT_CHANNELED_SPELL = 2, CURRENT_AUTOREPEAT_SPELL = 3 }; #define CURRENT_FIRST_NON_MELEE_SPELL 1 #define CURRENT_MAX_SPELL 4 enum ActiveStates { ACT_PASSIVE = 0x01, // 0x01 - passive ACT_DISABLED = 0x81, // 0x80 - castable ACT_ENABLED = 0xC1, // 0x40 | 0x80 - auto cast + castable ACT_COMMAND = 0x07, // 0x01 | 0x02 | 0x04 ACT_REACTION = 0x06, // 0x02 | 0x04 ACT_DECIDE = 0x00 // custom }; enum ReactStates { REACT_PASSIVE = 0, REACT_DEFENSIVE = 1, REACT_AGGRESSIVE = 2, REACT_ASSIST = 3 }; enum CommandStates { COMMAND_STAY = 0, COMMAND_FOLLOW = 1, COMMAND_ATTACK = 2, COMMAND_ABANDON = 3, COMMAND_MOVE_TO = 4 }; #define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x00FFFFFF) #define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24) #define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 24)) struct UnitActionBarEntry { UnitActionBarEntry() : packedData(uint32(ACT_DISABLED) << 24) { } uint32 packedData; // helper ActiveStates GetType() const { return ActiveStates(UNIT_ACTION_BUTTON_TYPE(packedData)); } uint32 GetAction() const { return UNIT_ACTION_BUTTON_ACTION(packedData); } bool IsActionBarForSpell() const { ActiveStates Type = GetType(); return Type == ACT_DISABLED || Type == ACT_ENABLED || Type == ACT_PASSIVE; } void SetActionAndType(uint32 action, ActiveStates type) { packedData = MAKE_UNIT_ACTION_BUTTON(action, type); } void SetType(ActiveStates type) { packedData = MAKE_UNIT_ACTION_BUTTON(UNIT_ACTION_BUTTON_ACTION(packedData), type); } void SetAction(uint32 action) { packedData = (packedData & 0xFF000000) | UNIT_ACTION_BUTTON_ACTION(action); } }; typedef std::list<Player*> SharedVisionList; enum CharmType { CHARM_TYPE_CHARM, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, CHARM_TYPE_CONVERT }; typedef UnitActionBarEntry CharmSpellInfo; enum ActionBarIndex { ACTION_BAR_INDEX_START = 0, ACTION_BAR_INDEX_PET_SPELL_START = 3, ACTION_BAR_INDEX_PET_SPELL_END = 7, ACTION_BAR_INDEX_END = 10 }; #define MAX_UNIT_ACTION_BAR_INDEX (ACTION_BAR_INDEX_END-ACTION_BAR_INDEX_START) struct CharmInfo { public: explicit CharmInfo(Unit* unit); ~CharmInfo(); void RestoreState(); uint32 GetPetNumber() const { return _petnumber; } void SetPetNumber(uint32 petnumber, bool statwindow); void SetCommandState(CommandStates st) { _CommandState = st; } CommandStates GetCommandState() const { return _CommandState; } bool HasCommandState(CommandStates state) const { return (_CommandState == state); } void InitPossessCreateSpells(); void InitCharmCreateSpells(); void InitPetActionBar(); void InitEmptyActionBar(bool withAttack = true); //return true if successful bool AddSpellToActionBar(SpellInfo const* spellInfo, ActiveStates newstate = ACT_DECIDE, uint8 preferredSlot = 0); bool RemoveSpellFromActionBar(uint32 spell_id); void LoadPetActionBar(const std::string& data); void BuildActionBar(WorldPacket* data); void SetSpellAutocast(SpellInfo const* spellInfo, bool state); void SetActionBar(uint8 index, uint32 spellOrAction, ActiveStates type) { PetActionBar[index].SetActionAndType(spellOrAction, type); } UnitActionBarEntry const* GetActionBarEntry(uint8 index) const { return &(PetActionBar[index]); } void ToggleCreatureAutocast(SpellInfo const* spellInfo, bool apply); CharmSpellInfo* GetCharmSpell(uint8 index) { return &(_charmspells[index]); } void SetIsCommandAttack(bool val); bool IsCommandAttack(); void SetIsCommandFollow(bool val); bool IsCommandFollow(); void SetIsAtStay(bool val); bool IsAtStay(); void SetIsFollowing(bool val); bool IsFollowing(); void SetIsReturning(bool val); bool IsReturning(); void SaveStayPosition(); void GetStayPosition(float &x, float &y, float &z); private: Unit* _unit; UnitActionBarEntry PetActionBar[MAX_UNIT_ACTION_BAR_INDEX]; CharmSpellInfo _charmspells[4]; CommandStates _CommandState; uint32 _petnumber; //for restoration after charmed ReactStates _oldReactState; bool _isCommandAttack; bool _isCommandFollow; bool _isAtStay; bool _isFollowing; bool _isReturning; float _stayX; float _stayY; float _stayZ; }; // for clearing special attacks #define REACTIVE_TIMER_START 4000 enum ReactiveType { REACTIVE_DEFENSE = 0, REACTIVE_HUNTER_PARRY = 1, REACTIVE_OVERPOWER = 2 }; #define MAX_REACTIVE 3 #define SUMMON_SLOT_PET 0 #define SUMMON_SLOT_TOTEM 1 #define MAX_TOTEM_SLOT 5 #define SUMMON_SLOT_MINIPET 5 #define SUMMON_SLOT_QUEST 6 #define MAX_SUMMON_SLOT 7 #define MAX_GAMEOBJECT_SLOT 4 enum PlayerTotemType { SUMMON_TYPE_TOTEM_FIRE = 63, SUMMON_TYPE_TOTEM_EARTH = 81, SUMMON_TYPE_TOTEM_WATER = 82, SUMMON_TYPE_TOTEM_AIR = 83 }; #define MAX_EQUIPMENT_ITEMS 3 // delay time next attack to prevent client attack animation problems #define ATTACK_DISPLAY_DELAY 200 #define MAX_PLAYER_STEALTH_DETECT_RANGE 30.0f // max distance for detection targets by player struct SpellProcEventEntry; // used only privately class Unit : public WorldObject { public: typedef std::set<Unit*> AttackerSet; typedef std::set<Unit*> ControlList; typedef std::multimap<uint32, Aura*> AuraMap; typedef std::pair<AuraMap::const_iterator, AuraMap::const_iterator> AuraMapBounds; typedef std::pair<AuraMap::iterator, AuraMap::iterator> AuraMapBoundsNonConst; typedef std::multimap<uint32, AuraApplication*> AuraApplicationMap; typedef std::pair<AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator> AuraApplicationMapBounds; typedef std::pair<AuraApplicationMap::iterator, AuraApplicationMap::iterator> AuraApplicationMapBoundsNonConst; typedef std::multimap<AuraStateType, AuraApplication*> AuraStateAurasMap; typedef std::pair<AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator> AuraStateAurasMapBounds; typedef std::list<AuraEffect*> AuraEffectList; typedef std::list<Aura*> AuraList; typedef std::list<AuraApplication *> AuraApplicationList; typedef std::list<DiminishingReturn> Diminishing; typedef std::map<uint8, AuraApplication*> VisibleAuraMap; virtual ~Unit(); UnitAI* GetAI() { return i_AI; } void SetAI(UnitAI* newAI) { i_AI = newAI; } void AddToWorld() override; void RemoveFromWorld() override; void CleanupBeforeRemoveFromMap(bool finalCleanup); void CleanupsBeforeDelete(bool finalCleanup = true) override; // used in ~Creature/~Player (or before mass creature delete to remove cross-references to already deleted units) void SendCombatLogMessage(WorldPackets::CombatLog::CombatLogServerPacket* combatLog) const; DiminishingLevels GetDiminishing(DiminishingGroup group); void IncrDiminishing(DiminishingGroup group); float ApplyDiminishingToDuration(DiminishingGroup group, int32 &duration, Unit* caster, DiminishingLevels Level, int32 limitduration); void ApplyDiminishingAura(DiminishingGroup group, bool apply); void ClearDiminishings() { m_Diminishing.clear(); } // target dependent range checks float GetSpellMaxRangeForTarget(Unit const* target, SpellInfo const* spellInfo) const; float GetSpellMinRangeForTarget(Unit const* target, SpellInfo const* spellInfo) const; virtual void Update(uint32 time) override; void setAttackTimer(WeaponAttackType type, uint32 time) { m_attackTimer[type] = time; } void resetAttackTimer(WeaponAttackType type = BASE_ATTACK); uint32 getAttackTimer(WeaponAttackType type) const { return m_attackTimer[type]; } bool isAttackReady(WeaponAttackType type = BASE_ATTACK) const { return m_attackTimer[type] == 0; } bool haveOffhandWeapon() const; bool CanDualWield() const { return m_canDualWield; } virtual void SetCanDualWield(bool value) { m_canDualWield = value; } float GetCombatReach() const { return m_floatValues[UNIT_FIELD_COMBATREACH]; } float GetMeleeReach() const; bool IsWithinCombatRange(const Unit* obj, float dist2compare) const; bool IsWithinMeleeRange(const Unit* obj, float dist = MELEE_RANGE) const; void GetRandomContactPoint(const Unit* target, float &x, float &y, float &z, float distance2dMin, float distance2dMax) const; uint32 m_extraAttacks; bool m_canDualWield; void _addAttacker(Unit* pAttacker); // must be called only from Unit::Attack(Unit*) void _removeAttacker(Unit* pAttacker); // must be called only from Unit::AttackStop() Unit* getAttackerForHelper() const; // If someone wants to help, who to give them bool Attack(Unit* victim, bool meleeAttack); void CastStop(uint32 except_spellid = 0); bool AttackStop(); void RemoveAllAttackers(); AttackerSet const& getAttackers() const { return m_attackers; } bool isAttackingPlayer() const; Unit* GetVictim() const { return m_attacking; } // Use this only when 100% sure there is a victim Unit* EnsureVictim() const { ASSERT(m_attacking); return m_attacking; } void CombatStop(bool includingCast = false); void CombatStopWithPets(bool includingCast = false); void StopAttackFaction(uint32 faction_id); Unit* SelectNearbyTarget(Unit* exclude = NULL, float dist = NOMINAL_MELEE_RANGE) const; void SendMeleeAttackStop(Unit* victim = NULL); void SendMeleeAttackStart(Unit* victim); void AddUnitState(uint32 f) { m_state |= f; } bool HasUnitState(const uint32 f) const { return (m_state & f) != 0; } void ClearUnitState(uint32 f) { m_state &= ~f; } bool CanFreeMove() const; uint32 HasUnitTypeMask(uint32 mask) const { return mask & m_unitTypeMask; } void AddUnitTypeMask(uint32 mask) { m_unitTypeMask |= mask; } bool IsSummon() const { return (m_unitTypeMask & UNIT_MASK_SUMMON) != 0; } bool IsGuardian() const { return (m_unitTypeMask & UNIT_MASK_GUARDIAN) != 0; } bool IsPet() const { return (m_unitTypeMask & UNIT_MASK_PET) != 0; } bool IsHunterPet() const{ return (m_unitTypeMask & UNIT_MASK_HUNTER_PET) != 0; } bool IsTotem() const { return (m_unitTypeMask & UNIT_MASK_TOTEM) != 0; } bool IsVehicle() const { return (m_unitTypeMask & UNIT_MASK_VEHICLE) != 0; } uint8 getLevel() const { return uint8(GetUInt32Value(UNIT_FIELD_LEVEL)); } uint8 getLevelForTarget(WorldObject const* /*target*/) const override { return getLevel(); } void SetLevel(uint8 lvl); uint8 getRace() const { return GetByteValue(UNIT_FIELD_BYTES_0, UNIT_BYTES_0_OFFSET_RACE); } uint32 getRaceMask() const { return 1 << (getRace()-1); } uint8 getClass() const { return GetByteValue(UNIT_FIELD_BYTES_0, UNIT_BYTES_0_OFFSET_CLASS); } uint32 getClassMask() const { return 1 << (getClass()-1); } uint8 getGender() const { return GetByteValue(UNIT_FIELD_BYTES_0, UNIT_BYTES_0_OFFSET_GENDER); } float GetStat(Stats stat) const { return float(GetUInt32Value(UNIT_FIELD_STAT+stat)); } void SetStat(Stats stat, int32 val) { SetStatInt32Value(UNIT_FIELD_STAT+stat, val); } uint32 GetArmor() const { return GetResistance(SPELL_SCHOOL_NORMAL); } void SetArmor(int32 val) { SetResistance(SPELL_SCHOOL_NORMAL, val); } uint32 GetResistance(SpellSchools school) const { return GetUInt32Value(UNIT_FIELD_RESISTANCES+school); } uint32 GetResistance(SpellSchoolMask mask) const; void SetResistance(SpellSchools school, int32 val) { SetStatInt32Value(UNIT_FIELD_RESISTANCES+school, val); } uint32 GetHealth() const { return GetUInt32Value(UNIT_FIELD_HEALTH); } uint32 GetMaxHealth() const { return GetUInt32Value(UNIT_FIELD_MAXHEALTH); } bool IsFullHealth() const { return GetHealth() == GetMaxHealth(); } bool HealthBelowPct(int32 pct) const { return GetHealth() < CountPctFromMaxHealth(pct); } bool HealthBelowPctDamaged(int32 pct, uint32 damage) const { return int64(GetHealth()) - int64(damage) < int64(CountPctFromMaxHealth(pct)); } bool HealthAbovePct(int32 pct) const { return GetHealth() > CountPctFromMaxHealth(pct); } bool HealthAbovePctHealed(int32 pct, uint32 heal) const { return uint64(GetHealth()) + uint64(heal) > CountPctFromMaxHealth(pct); } float GetHealthPct() const { return GetMaxHealth() ? 100.f * GetHealth() / GetMaxHealth() : 0.0f; } uint32 CountPctFromMaxHealth(int32 pct) const { return CalculatePct(GetMaxHealth(), pct); } uint32 CountPctFromCurHealth(int32 pct) const { return CalculatePct(GetHealth(), pct); } void SetHealth(uint32 val); void SetMaxHealth(uint32 val); inline void SetFullHealth() { SetHealth(GetMaxHealth()); } int32 ModifyHealth(int32 val); int32 GetHealthGain(int32 dVal); Powers getPowerType() const { return Powers(GetUInt32Value(UNIT_FIELD_DISPLAY_POWER)); } void setPowerType(Powers power); int32 GetPower(Powers power) const; int32 GetMinPower(Powers power) const { return power == POWER_ECLIPSE ? -100 : 0; } int32 GetMaxPower(Powers power) const; float GetPowerPct(Powers power) const { return GetMaxPower(power) ? 100.f * GetPower(power) / GetMaxPower(power) : 0.0f; } int32 CountPctFromMaxPower(Powers power, int32 pct) const { return CalculatePct(GetMaxPower(power), pct); } void SetPower(Powers power, int32 val); void SetMaxPower(Powers power, int32 val); // returns the change in power int32 ModifyPower(Powers power, int32 val); int32 ModifyPowerPct(Powers power, float pct, bool apply = true); uint32 GetAttackTime(WeaponAttackType att) const; void SetAttackTime(WeaponAttackType att, uint32 val) { SetFloatValue(UNIT_FIELD_BASEATTACKTIME + att, val*m_modAttackSpeedPct[att]); } void ApplyAttackTimePercentMod(WeaponAttackType att, float val, bool apply); void ApplyCastTimePercentMod(float val, bool apply); SheathState GetSheath() const { return SheathState(GetByteValue(UNIT_FIELD_BYTES_2, 0)); } virtual void SetSheath(SheathState sheathed) { SetByteValue(UNIT_FIELD_BYTES_2, 0, sheathed); } // faction template id uint32 getFaction() const { return GetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE); } void setFaction(uint32 faction) { SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, faction); } FactionTemplateEntry const* GetFactionTemplateEntry() const; ReputationRank GetReactionTo(Unit const* target) const; ReputationRank static GetFactionReactionTo(FactionTemplateEntry const* factionTemplateEntry, Unit const* target); bool IsHostileTo(Unit const* unit) const; bool IsHostileToPlayers() const; bool IsFriendlyTo(Unit const* unit) const; bool IsNeutralToAll() const; bool IsInPartyWith(Unit const* unit) const; bool IsInRaidWith(Unit const* unit) const; void GetPartyMembers(std::list<Unit*> &units); bool IsContestedGuard() const; bool IsPvP() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_PVP); } bool IsFFAPvP() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP); } virtual void SetPvP(bool state); uint32 GetCreatureType() const; uint32 GetCreatureTypeMask() const; UnitStandStateType GetStandState() const { return UnitStandStateType(GetByteValue(UNIT_FIELD_BYTES_1, 0)); } bool IsSitState() const; bool IsStandState() const; void SetStandState(UnitStandStateType state, uint32 animKitID = 0); void SetStandFlags(uint8 flags) { SetByteFlag(UNIT_FIELD_BYTES_1, 2, flags); } void RemoveStandFlags(uint8 flags) { RemoveByteFlag(UNIT_FIELD_BYTES_1, 2, flags); } bool IsMounted() const { return HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT); } uint32 GetMountID() const { return GetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID); } void Mount(uint32 mount, uint32 vehicleId = 0, uint32 creatureEntry = 0); void Dismount(); MountCapabilityEntry const* GetMountCapability(uint32 mountType) const; void SendDurabilityLoss(Player* receiver, uint32 percent); void SetAIAnimKitId(uint16 animKitId); uint16 GetAIAnimKitId() const override { return _aiAnimKitId; } void SetMovementAnimKitId(uint16 animKitId); uint16 GetMovementAnimKitId() const override { return _movementAnimKitId; } void SetMeleeAnimKitId(uint16 animKitId); uint16 GetMeleeAnimKitId() const override { return _meleeAnimKitId; } void PlayOneShotAnimKit(uint16 animKitId); uint16 GetMaxSkillValueForLevel(Unit const* target = NULL) const { return (target ? getLevelForTarget(target) : getLevel()) * 5; } void DealDamageMods(Unit* victim, uint32 &damage, uint32* absorb); uint32 DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDamage = NULL, DamageEffectType damagetype = DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL, SpellInfo const* spellProto = NULL, bool durabilityLoss = true); void Kill(Unit* victim, bool durabilityLoss = true); int32 DealHeal(Unit* victim, uint32 addhealth); void ProcDamageAndSpell(Unit* victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType = BASE_ATTACK, SpellInfo const* procSpell = NULL, SpellInfo const* procAura = NULL); void ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const* procSpell, uint32 damage, SpellInfo const* procAura = NULL); void GetProcAurasTriggeredOnEvent(AuraApplicationList& aurasTriggeringProc, AuraApplicationList* procAuras, ProcEventInfo eventInfo); void TriggerAurasProcOnEvent(CalcDamageInfo& damageInfo); void TriggerAurasProcOnEvent(AuraApplicationList* myProcAuras, AuraApplicationList* targetProcAuras, Unit* actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell* spell, DamageInfo* damageInfo, HealInfo* healInfo); void TriggerAurasProcOnEvent(ProcEventInfo& eventInfo, AuraApplicationList& procAuras); void HandleEmoteCommand(uint32 anim_id); void AttackerStateUpdate (Unit* victim, WeaponAttackType attType = BASE_ATTACK, bool extra = false); void CalculateMeleeDamage(Unit* victim, uint32 damage, CalcDamageInfo* damageInfo, WeaponAttackType attackType = BASE_ATTACK); void DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss); void HandleProcExtraAttackFor(Unit* victim); void CalculateSpellDamageTaken(SpellNonMeleeDamage* damageInfo, int32 damage, SpellInfo const* spellInfo, WeaponAttackType attackType = BASE_ATTACK, bool crit = false); void DealSpellDamage(SpellNonMeleeDamage const* damageInfo, bool durabilityLoss); // player or player's pet resilience (-1%) uint32 GetDamageReduction(uint32 damage) const { return GetCombatRatingDamageReduction(CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, 1.0f, 100.0f, damage); } void ApplyResilience(Unit const* victim, int32* damage) const; float MeleeSpellMissChance(Unit const* victim, WeaponAttackType attType, uint32 spellId) const; SpellMissInfo MeleeSpellHitResult(Unit* victim, SpellInfo const* spellInfo); SpellMissInfo MagicSpellHitResult(Unit* victim, SpellInfo const* spellInfo); SpellMissInfo SpellHitResult(Unit* victim, SpellInfo const* spellInfo, bool canReflect = false); float GetUnitDodgeChanceAgainst(Unit const* attacker) const; float GetUnitParryChanceAgainst(Unit const* attacker) const; float GetUnitBlockChanceAgainst(Unit const* attacker) const; float GetUnitMissChance(WeaponAttackType attType) const; float GetUnitCriticalChance(WeaponAttackType attackType, const Unit* victim) const; int32 GetMechanicResistChance(SpellInfo const* spellInfo) const; bool CanUseAttackType(uint8 attacktype) const; virtual uint32 GetBlockPercent() const { return 30; } float GetWeaponProcChance() const; float GetPPMProcChance(uint32 WeaponSpeed, float PPM, const SpellInfo* spellProto) const; MeleeHitOutcome RollMeleeOutcomeAgainst(Unit const* victim, WeaponAttackType attType) const; bool IsVendor() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_VENDOR); } bool IsTrainer() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_TRAINER); } bool IsQuestGiver() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); } bool IsGossip() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP); } bool IsTaxi() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_FLIGHTMASTER); } bool IsGuildMaster() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_PETITIONER); } bool IsBattleMaster() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_BATTLEMASTER); } bool IsBanker() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_BANKER); } bool IsInnkeeper() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_INNKEEPER); } bool IsSpiritHealer() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPIRITHEALER); } bool IsSpiritGuide() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPIRITGUIDE); } bool IsTabardDesigner()const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_TABARDDESIGNER); } bool IsAuctioner() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_AUCTIONEER); } bool IsArmorer() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_REPAIR); } bool IsServiceProvider() const; bool IsSpiritService() const { return HasFlag64(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPIRITHEALER | UNIT_NPC_FLAG_SPIRITGUIDE); } bool IsCritter() const { return GetCreatureType() == CREATURE_TYPE_CRITTER; } bool IsInFlight() const { return HasUnitState(UNIT_STATE_IN_FLIGHT); } bool IsInCombat() const { return HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT); } bool IsInCombatWith(Unit const* who) const; void CombatStart(Unit* target, bool initialAggro = true); void SetInCombatState(bool PvP, Unit* enemy = NULL); void SetInCombatWith(Unit* enemy); void ClearInCombat(); uint32 GetCombatTimer() const { return m_CombatTimer; } bool HasAuraTypeWithFamilyFlags(AuraType auraType, uint32 familyName, uint32 familyFlags) const; bool virtual HasSpell(uint32 /*spellID*/) const { return false; } bool HasBreakableByDamageAuraType(AuraType type, uint32 excludeAura = 0) const; bool HasBreakableByDamageCrowdControlAura(Unit* excludeCasterChannel = NULL) const; bool HasStealthAura() const { return HasAuraType(SPELL_AURA_MOD_STEALTH); } bool HasInvisibilityAura() const { return HasAuraType(SPELL_AURA_MOD_INVISIBILITY); } bool isFeared() const { return HasAuraType(SPELL_AURA_MOD_FEAR); } bool isInRoots() const { return HasAuraType(SPELL_AURA_MOD_ROOT); } bool IsPolymorphed() const; bool isFrozen() const; bool isTargetableForAttack(bool checkFakeDeath = true) const; bool IsValidAttackTarget(Unit const* target) const; bool _IsValidAttackTarget(Unit const* target, SpellInfo const* bySpell, WorldObject const* obj = NULL) const; bool IsValidAssistTarget(Unit const* target) const; bool _IsValidAssistTarget(Unit const* target, SpellInfo const* bySpell) const; virtual bool IsInWater() const; virtual bool IsUnderWater() const; virtual void UpdateUnderwaterState(Map* m, float x, float y, float z); bool isInAccessiblePlaceFor(Creature const* c) const; void SendHealSpellLog(Unit* victim, uint32 spellID, uint32 health, uint32 overHeal, uint32 absorbed, bool crit = false); int32 HealBySpell(Unit* victim, SpellInfo const* spellInfo, uint32 addHealth, bool critical = false); void SendEnergizeSpellLog(Unit* victim, uint32 spellID, int32 damage, Powers powertype); void EnergizeBySpell(Unit* victim, uint32 SpellID, int32 Damage, Powers powertype); void CastSpell(SpellCastTargets const& targets, SpellInfo const* spellInfo, CustomSpellValues const* value, TriggerCastFlags triggerFlags = TRIGGERED_NONE, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastSpell(Unit* victim, uint32 spellId, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastSpell(Unit* victim, uint32 spellId, TriggerCastFlags triggerFlags = TRIGGERED_NONE, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastSpell(Unit* victim, SpellInfo const* spellInfo, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastSpell(Unit* victim, SpellInfo const* spellInfo, TriggerCastFlags triggerFlags = TRIGGERED_NONE, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastSpell(GameObject* go, uint32 spellId, bool triggered, Item* castItem = NULL, AuraEffect* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastCustomSpell(Unit* victim, uint32 spellId, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastCustomSpell(uint32 spellId, SpellValueMod mod, int32 value, Unit* victim, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastCustomSpell(uint32 spellId, SpellValueMod mod, int32 value, Unit* victim = NULL, TriggerCastFlags triggerFlags = TRIGGERED_NONE, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void CastCustomSpell(uint32 spellId, CustomSpellValues const &value, Unit* victim = NULL, TriggerCastFlags triggerFlags = TRIGGERED_NONE, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); Aura* AddAura(uint32 spellId, Unit* target); Aura* AddAura(SpellInfo const* spellInfo, uint32 effMask, Unit* target); void SetAuraStack(uint32 spellId, Unit* target, uint32 stack); void SendPlaySpellVisualKit(uint32 id, uint32 type); void DeMorph(); void SendAttackStateUpdate(CalcDamageInfo* damageInfo); void SendAttackStateUpdate(uint32 HitInfo, Unit* target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount); void SendSpellNonMeleeDamageLog(SpellNonMeleeDamage const* log); void SendPeriodicAuraLog(SpellPeriodicAuraLogInfo* pInfo); void SendSpellMiss(Unit* target, uint32 spellID, SpellMissInfo missInfo); void SendSpellDamageResist(Unit* target, uint32 spellId); void SendSpellDamageImmune(Unit* target, uint32 spellId, bool isPeriodic); void NearTeleportTo(float x, float y, float z, float orientation, bool casting = false); void SendTeleportPacket(Position& pos); virtual bool UpdatePosition(float x, float y, float z, float ang, bool teleport = false); // returns true if unit's position really changed virtual bool UpdatePosition(const Position &pos, bool teleport = false); void UpdateOrientation(float orientation); void UpdateHeight(float newZ); void SendMoveKnockBack(Player* player, float speedXY, float speedZ, float vcos, float vsin); void KnockbackFrom(float x, float y, float speedXY, float speedZ); void JumpTo(float speedXY, float speedZ, bool forward = true); void JumpTo(WorldObject* obj, float speedZ); void MonsterMoveWithSpeed(float x, float y, float z, float speed, bool generatePath = false, bool forceDestination = false); void SendSetPlayHoverAnim(bool enable); bool IsLevitating() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY); } bool IsWalking() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_WALKING); } bool IsHovering() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_HOVER); } bool SetWalk(bool enable); bool SetDisableGravity(bool disable, bool packetOnly = false); bool SetFall(bool enable); bool SetSwim(bool enable); bool SetCanFly(bool enable); bool SetWaterWalking(bool enable, bool packetOnly = false); bool SetFeatherFall(bool enable, bool packetOnly = false); bool SetHover(bool enable, bool packetOnly = false); bool SetCollision(bool disable); void SendSetVehicleRecId(uint32 vehicleId); void SetInFront(WorldObject const* target); void SetFacingTo(float ori); void SetFacingToObject(WorldObject* object); void SendChangeCurrentVictimOpcode(HostileReference* pHostileReference); void SendClearThreatListOpcode(); void SendRemoveFromThreatListOpcode(HostileReference* pHostileReference); void SendThreatListUpdate(); void SendClearTarget(); bool IsAlive() const { return (m_deathState == ALIVE); } bool isDying() const { return (m_deathState == JUST_DIED); } bool isDead() const { return (m_deathState == DEAD || m_deathState == CORPSE); } DeathState getDeathState() const { return m_deathState; } virtual void setDeathState(DeathState s); // overwrited in Creature/Player/Pet ObjectGuid GetOwnerGUID() const { return GetGuidValue(UNIT_FIELD_SUMMONEDBY); } void SetOwnerGUID(ObjectGuid owner); ObjectGuid GetCreatorGUID() const { return GetGuidValue(UNIT_FIELD_CREATEDBY); } void SetCreatorGUID(ObjectGuid creator) { SetGuidValue(UNIT_FIELD_CREATEDBY, creator); } ObjectGuid GetMinionGUID() const { return GetGuidValue(UNIT_FIELD_SUMMON); } void SetMinionGUID(ObjectGuid guid) { SetGuidValue(UNIT_FIELD_SUMMON, guid); } ObjectGuid GetCharmerGUID() const { return GetGuidValue(UNIT_FIELD_CHARMEDBY); } void SetCharmerGUID(ObjectGuid owner) { SetGuidValue(UNIT_FIELD_CHARMEDBY, owner); } ObjectGuid GetCharmGUID() const { return GetGuidValue(UNIT_FIELD_CHARM); } void SetPetGUID(ObjectGuid guid) { m_SummonSlot[SUMMON_SLOT_PET] = guid; } ObjectGuid GetPetGUID() const { return m_SummonSlot[SUMMON_SLOT_PET]; } void SetCritterGUID(ObjectGuid guid) { SetGuidValue(UNIT_FIELD_CRITTER, guid); } ObjectGuid GetCritterGUID() const { return GetGuidValue(UNIT_FIELD_CRITTER); } bool IsControlledByPlayer() const { return m_ControlledByPlayer; } ObjectGuid GetCharmerOrOwnerGUID() const; ObjectGuid GetCharmerOrOwnerOrOwnGUID() const; bool IsCharmedOwnedByPlayerOrPlayer() const { return GetCharmerOrOwnerOrOwnGUID().IsPlayer(); } Player* GetSpellModOwner() const; Unit* GetOwner() const; Guardian* GetGuardianPet() const; Minion* GetFirstMinion() const; Unit* GetCharmer() const; Unit* GetCharm() const; Unit* GetCharmerOrOwner() const; Unit* GetCharmerOrOwnerOrSelf() const; Player* GetCharmerOrOwnerPlayerOrPlayerItself() const; Player* GetAffectingPlayer() const; void SetMinion(Minion *minion, bool apply); void GetAllMinionsByEntry(std::list<TempSummon*>& Minions, uint32 entry); void RemoveAllMinionsByEntry(uint32 entry); void SetCharm(Unit* target, bool apply); Unit* GetNextRandomRaidMemberOrPet(float radius); bool SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* aurApp = NULL); void RemoveCharmedBy(Unit* charmer); void RestoreFaction(); ControlList m_Controlled; Unit* GetFirstControlled() const; void RemoveAllControlled(); bool IsCharmed() const { return !GetCharmerGUID().IsEmpty(); } bool isPossessed() const { return HasUnitState(UNIT_STATE_POSSESSED); } bool isPossessedByPlayer() const; bool isPossessing() const; bool isPossessing(Unit* u) const; CharmInfo* GetCharmInfo() { return m_charmInfo; } CharmInfo* InitCharmInfo(); void DeleteCharmInfo(); void UpdateCharmAI(); //Player* GetMoverSource() const; Player* m_movedPlayer; SharedVisionList const& GetSharedVisionList() { return m_sharedVision; } void AddPlayerToVision(Player* player); void RemovePlayerFromVision(Player* player); bool HasSharedVision() const { return !m_sharedVision.empty(); } void RemoveBindSightAuras(); void RemoveCharmAuras(); Pet* CreateTamedPetFrom(Creature* creatureTarget, uint32 spell_id = 0); Pet* CreateTamedPetFrom(uint32 creatureEntry, uint32 spell_id = 0); bool InitTamedPet(Pet* pet, uint8 level, uint32 spell_id); // aura apply/remove helpers - you should better not use these Aura* _TryStackingOrRefreshingExistingAura(SpellInfo const* newAura, uint32 effMask, Unit* caster, int32 *baseAmount = NULL, Item* castItem = NULL, ObjectGuid casterGUID = ObjectGuid::Empty, int32 castItemLevel = -1); void _AddAura(UnitAura* aura, Unit* caster); AuraApplication * _CreateAuraApplication(Aura* aura, uint32 effMask); void _ApplyAuraEffect(Aura* aura, uint8 effIndex); void _ApplyAura(AuraApplication * aurApp, uint32 effMask); void _UnapplyAura(AuraApplicationMap::iterator &i, AuraRemoveMode removeMode); void _UnapplyAura(AuraApplication * aurApp, AuraRemoveMode removeMode); void _RemoveNoStackAuraApplicationsDueToAura(Aura* aura); void _RemoveNoStackAurasDueToAura(Aura* aura); bool _IsNoStackAuraDueToAura(Aura* appliedAura, Aura* existingAura) const; void _RegisterAuraEffect(AuraEffect* aurEff, bool apply); // m_ownedAuras container management AuraMap & GetOwnedAuras() { return m_ownedAuras; } AuraMap const& GetOwnedAuras() const { return m_ownedAuras; } void RemoveOwnedAura(AuraMap::iterator &i, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT); void RemoveOwnedAura(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT); void RemoveOwnedAura(Aura* aura, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT); Aura* GetOwnedAura(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, ObjectGuid itemCasterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0, Aura* except = NULL) const; // m_appliedAuras container management AuraApplicationMap & GetAppliedAuras() { return m_appliedAuras; } AuraApplicationMap const& GetAppliedAuras() const { return m_appliedAuras; } void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode = AURA_REMOVE_BY_DEFAULT); void RemoveAura(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT); void RemoveAura(AuraApplication * aurApp, AuraRemoveMode mode = AURA_REMOVE_BY_DEFAULT); void RemoveAura(Aura* aur, AuraRemoveMode mode = AURA_REMOVE_BY_DEFAULT); // Convenience methods removing auras by predicate void RemoveAppliedAuras(std::function<bool(AuraApplication const*)> const& check); void RemoveOwnedAuras(std::function<bool(Aura const*)> const& check); // Optimized overloads taking advantage of map key void RemoveAppliedAuras(uint32 spellId, std::function<bool(AuraApplication const*)> const& check); void RemoveOwnedAuras(uint32 spellId, std::function<bool(Aura const*)> const& check); void RemoveAurasByType(AuraType auraType, std::function<bool(AuraApplication const*)> const& check); void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT); void RemoveAuraFromStack(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT); void RemoveAurasDueToSpellByDispel(uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, Unit* dispeller, uint8 chargesRemoved = 1); void RemoveAurasDueToSpellBySteal(uint32 spellId, ObjectGuid casterGUID, Unit* stealer); void RemoveAurasDueToItemSpell(uint32 spellId, ObjectGuid castItemGuid); void RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID = ObjectGuid::Empty, Aura* except = NULL, bool negative = true, bool positive = true); void RemoveNotOwnSingleTargetAuras(uint32 newPhase = 0x0, bool phaseid = false); void RemoveAurasWithInterruptFlags(uint32 flag, uint32 except = 0); void RemoveAurasWithAttribute(uint32 flags); void RemoveAurasWithFamily(SpellFamilyNames family, flag128 const& familyFlag, ObjectGuid casterGUID); void RemoveAurasWithMechanic(uint32 mechanic_mask, AuraRemoveMode removemode = AURA_REMOVE_BY_DEFAULT, uint32 except = 0); void RemoveMovementImpairingAuras(); void RemoveAreaAurasDueToLeaveWorld(); void RemoveAllAuras(); void RemoveArenaAuras(); void RemoveAllAurasOnDeath(); void RemoveAllAurasRequiringDeadTarget(); void RemoveAllAurasExceptType(AuraType type); void RemoveAllAurasExceptType(AuraType type1, AuraType type2); /// @todo: once we support variadic templates use them here void DelayOwnedAuras(uint32 spellId, ObjectGuid caster, int32 delaytime); void _RemoveAllAuraStatMods(); void _ApplyAllAuraStatMods(); AuraEffectList const& GetAuraEffectsByType(AuraType type) const { return m_modAuras[type]; } AuraList & GetSingleCastAuras() { return m_scAuras; } AuraList const& GetSingleCastAuras() const { return m_scAuras; } AuraEffect* GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID = ObjectGuid::Empty) const; AuraEffect* GetAuraEffectOfRankedSpell(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID = ObjectGuid::Empty) const; AuraEffect* GetAuraEffect(AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const; // spell mustn't have familyflags AuraEffect* GetAuraEffect(AuraType type, SpellFamilyNames family, flag128 const& familyFlag, ObjectGuid casterGUID = ObjectGuid::Empty) const; AuraEffect* GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const; AuraApplication * GetAuraApplication(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, ObjectGuid itemCasterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0, AuraApplication * except = NULL) const; Aura* GetAura(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, ObjectGuid itemCasterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0) const; AuraApplication * GetAuraApplicationOfRankedSpell(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, ObjectGuid itemCasterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0, AuraApplication * except = NULL) const; Aura* GetAuraOfRankedSpell(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, ObjectGuid itemCasterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0) const; void GetDispellableAuraList(Unit* caster, uint32 dispelMask, DispelChargesList& dispelList); bool HasAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid caster = ObjectGuid::Empty) const; uint32 GetAuraCount(uint32 spellId) const; bool HasAura(uint32 spellId, ObjectGuid casterGUID = ObjectGuid::Empty, ObjectGuid itemCasterGUID = ObjectGuid::Empty, uint32 reqEffMask = 0) const; bool HasAuraType(AuraType auraType) const; bool HasAuraTypeWithCaster(AuraType auratype, ObjectGuid caster) const; bool HasAuraTypeWithMiscvalue(AuraType auratype, int32 miscvalue) const; bool HasAuraTypeWithAffectMask(AuraType auratype, SpellInfo const* affectedSpell) const; bool HasAuraTypeWithValue(AuraType auratype, int32 value) const; bool HasNegativeAuraWithInterruptFlag(uint32 flag, ObjectGuid guid = ObjectGuid::Empty) const; bool HasNegativeAuraWithAttribute(uint32 flag, ObjectGuid guid = ObjectGuid::Empty) const; bool HasAuraWithMechanic(uint32 mechanicMask) const; AuraEffect* IsScriptOverriden(SpellInfo const* spell, int32 script) const; uint32 GetDiseasesByCaster(ObjectGuid casterGUID, bool remove = false); uint32 GetDoTsByCaster(ObjectGuid casterGUID) const; int32 GetTotalAuraModifier(AuraType auratype) const; float GetTotalAuraMultiplier(AuraType auratype) const; int32 GetMaxPositiveAuraModifier(AuraType auratype) const; int32 GetMaxNegativeAuraModifier(AuraType auratype) const; int32 GetTotalAuraModifierByMiscMask(AuraType auratype, uint32 misc_mask) const; float GetTotalAuraMultiplierByMiscMask(AuraType auratype, uint32 misc_mask) const; int32 GetMaxPositiveAuraModifierByMiscMask(AuraType auratype, uint32 misc_mask, const AuraEffect* except = NULL) const; int32 GetMaxNegativeAuraModifierByMiscMask(AuraType auratype, uint32 misc_mask) const; int32 GetTotalAuraModifierByMiscValue(AuraType auratype, int32 misc_value) const; float GetTotalAuraMultiplierByMiscValue(AuraType auratype, int32 misc_value) const; int32 GetMaxPositiveAuraModifierByMiscValue(AuraType auratype, int32 misc_value) const; int32 GetMaxNegativeAuraModifierByMiscValue(AuraType auratype, int32 misc_value) const; int32 GetTotalAuraModifierByAffectMask(AuraType auratype, SpellInfo const* affectedSpell) const; float GetTotalAuraMultiplierByAffectMask(AuraType auratype, SpellInfo const* affectedSpell) const; int32 GetMaxPositiveAuraModifierByAffectMask(AuraType auratype, SpellInfo const* affectedSpell) const; int32 GetMaxNegativeAuraModifierByAffectMask(AuraType auratype, SpellInfo const* affectedSpell) const; float GetResistanceBuffMods(SpellSchools school, bool positive) const; void SetResistanceBuffMods(SpellSchools school, bool positive, float val); void ApplyResistanceBuffModsMod(SpellSchools school, bool positive, float val, bool apply); void ApplyResistanceBuffModsPercentMod(SpellSchools school, bool positive, float val, bool apply); void InitStatBuffMods(); void ApplyStatBuffMod(Stats stat, float val, bool apply); void ApplyStatPercentBuffMod(Stats stat, float val, bool apply); void SetCreateStat(Stats stat, float val) { m_createStats[stat] = val; } void SetCreateHealth(uint32 val) { SetUInt32Value(UNIT_FIELD_BASE_HEALTH, val); } uint32 GetCreateHealth() const { return GetUInt32Value(UNIT_FIELD_BASE_HEALTH); } void SetCreateMana(uint32 val) { SetUInt32Value(UNIT_FIELD_BASE_MANA, val); } uint32 GetCreateMana() const { return GetUInt32Value(UNIT_FIELD_BASE_MANA); } uint32 GetPowerIndex(uint32 powerType) const; int32 GetCreatePowers(Powers power) const; float GetPosStat(Stats stat) const { return GetFloatValue(UNIT_FIELD_POSSTAT+stat); } float GetNegStat(Stats stat) const { return GetFloatValue(UNIT_FIELD_NEGSTAT+stat); } float GetCreateStat(Stats stat) const { return m_createStats[stat]; } ObjectGuid GetChannelObjectGuid() const { return GetGuidValue(UNIT_FIELD_CHANNEL_OBJECT); } void SetChannelObjectGuid(ObjectGuid guid) { SetGuidValue(UNIT_FIELD_CHANNEL_OBJECT, guid); } void SetCurrentCastSpell(Spell* pSpell); void InterruptSpell(CurrentSpellTypes spellType, bool withDelayed = true, bool withInstant = true); void FinishSpell(CurrentSpellTypes spellType, bool ok = true); // set withDelayed to true to account delayed spells as cast // delayed+channeled spells are always accounted as cast // we can skip channeled or delayed checks using flags bool IsNonMeleeSpellCast(bool withDelayed, bool skipChanneled = false, bool skipAutorepeat = false, bool isAutoshoot = false, bool skipInstant = true) const; // set withDelayed to true to interrupt delayed spells too // delayed+channeled spells are always interrupted void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid = 0, bool withInstant = true); Spell* GetCurrentSpell(CurrentSpellTypes spellType) const { return m_currentSpells[spellType]; } Spell* GetCurrentSpell(uint32 spellType) const { return m_currentSpells[spellType]; } Spell* FindCurrentSpellBySpellId(uint32 spell_id) const; int32 GetCurrentSpellCastTime(uint32 spell_id) const; virtual SpellInfo const* GetCastSpellInfo(SpellInfo const* spellInfo) const; SpellHistory* GetSpellHistory() { return _spellHistory; } SpellHistory const* GetSpellHistory() const { return _spellHistory; } ObjectGuid m_SummonSlot[MAX_SUMMON_SLOT]; ObjectGuid m_ObjectSlot[MAX_GAMEOBJECT_SLOT]; ShapeshiftForm GetShapeshiftForm() const { return ShapeshiftForm(GetByteValue(UNIT_FIELD_BYTES_2, 3)); } void SetShapeshiftForm(ShapeshiftForm form); bool IsInFeralForm() const; bool IsInDisallowedMountForm() const; float m_modMeleeHitChance; float m_modRangedHitChance; float m_modSpellHitChance; int32 m_baseSpellCritChance; float m_threatModifier[MAX_SPELL_SCHOOL]; float m_modAttackSpeedPct[3]; // Event handler EventProcessor m_Events; // stat system bool HandleStatModifier(UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply); void SetModifierValue(UnitMods unitMod, UnitModifierType modifierType, float value) { m_auraModifiersGroup[unitMod][modifierType] = value; } float GetModifierValue(UnitMods unitMod, UnitModifierType modifierType) const; float GetTotalStatValue(Stats stat) const; float GetTotalAuraModValue(UnitMods unitMod) const; SpellSchools GetSpellSchoolByAuraGroup(UnitMods unitMod) const; Stats GetStatByAuraGroup(UnitMods unitMod) const; Powers GetPowerTypeByAuraGroup(UnitMods unitMod) const; bool CanModifyStats() const { return m_canModifyStats; } void SetCanModifyStats(bool modifyStats) { m_canModifyStats = modifyStats; } virtual bool UpdateStats(Stats stat) = 0; virtual bool UpdateAllStats() = 0; virtual void UpdateResistances(uint32 school) = 0; virtual void UpdateAllResistances(); virtual void UpdateArmor() = 0; virtual void UpdateMaxHealth() = 0; virtual void UpdateMaxPower(Powers power) = 0; virtual void UpdateAttackPowerAndDamage(bool ranged = false) = 0; virtual void UpdateDamagePhysical(WeaponAttackType attType); float GetTotalAttackPowerValue(WeaponAttackType attType) const; float GetWeaponDamageRange(WeaponAttackType attType, WeaponDamageRange type) const; void SetBaseWeaponDamage(WeaponAttackType attType, WeaponDamageRange damageRange, float value) { m_weaponDamage[attType][damageRange] = value; } virtual void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) = 0; uint32 CalculateDamage(WeaponAttackType attType, bool normalized, bool addTotalPct); float GetAPMultiplier(WeaponAttackType attType, bool normalized); bool isInFrontInMap(Unit const* target, float distance, float arc = float(M_PI)) const; bool isInBackInMap(Unit const* target, float distance, float arc = float(M_PI)) const; // Visibility system bool IsVisible() const; void SetVisible(bool x); // common function for visibility checks for player/creatures with detection code bool SetInPhase(uint32 id, bool update, bool apply) override; void UpdateObjectVisibility(bool forced = true) override; SpellImmuneList m_spellImmune[MAX_SPELL_IMMUNITY]; uint32 m_lastSanctuaryTime; // Threat related methods bool CanHaveThreatList(bool skipAliveCheck = false) const; void AddThreat(Unit* victim, float fThreat, SpellSchoolMask schoolMask = SPELL_SCHOOL_MASK_NORMAL, SpellInfo const* threatSpell = NULL); float ApplyTotalThreatModifier(float fThreat, SpellSchoolMask schoolMask = SPELL_SCHOOL_MASK_NORMAL); void DeleteThreatList(); void TauntApply(Unit* victim); void TauntFadeOut(Unit* taunter); ThreatManager& getThreatManager() { return m_ThreatManager; } void addHatedBy(HostileReference* pHostileReference) { m_HostileRefManager.insertFirst(pHostileReference); } void removeHatedBy(HostileReference* /*pHostileReference*/) { /* nothing to do yet */ } HostileRefManager& getHostileRefManager() { return m_HostileRefManager; } VisibleAuraMap const* GetVisibleAuras() { return &m_visibleAuras; } AuraApplication * GetVisibleAura(uint8 slot) const; void SetVisibleAura(uint8 slot, AuraApplication * aur); void RemoveVisibleAura(uint8 slot); uint32 GetInterruptMask() const { return m_interruptMask; } void AddInterruptMask(uint32 mask) { m_interruptMask |= mask; } void UpdateInterruptMask(); uint32 GetDisplayId() const { return GetUInt32Value(UNIT_FIELD_DISPLAYID); } virtual void SetDisplayId(uint32 modelId); uint32 GetNativeDisplayId() const { return GetUInt32Value(UNIT_FIELD_NATIVEDISPLAYID); } void RestoreDisplayId(); void SetNativeDisplayId(uint32 modelId) { SetUInt32Value(UNIT_FIELD_NATIVEDISPLAYID, modelId); } void setTransForm(uint32 spellid) { m_transform = spellid;} uint32 getTransForm() const { return m_transform;} // DynamicObject management void _RegisterDynObject(DynamicObject* dynObj); void _UnregisterDynObject(DynamicObject* dynObj); DynamicObject* GetDynObject(uint32 spellId); void RemoveDynObject(uint32 spellId); void RemoveAllDynObjects(); GameObject* GetGameObject(uint32 spellId) const; void AddGameObject(GameObject* gameObj); void RemoveGameObject(GameObject* gameObj, bool del); void RemoveGameObject(uint32 spellid, bool del); void RemoveAllGameObjects(); void ModifyAuraState(AuraStateType flag, bool apply); uint32 BuildAuraStateUpdateForTarget(Unit* target) const; bool HasAuraState(AuraStateType flag, SpellInfo const* spellProto = NULL, Unit const* Caster = NULL) const; void UnsummonAllTotems(); bool IsMagnet() const; Unit* GetMagicHitRedirectTarget(Unit* victim, SpellInfo const* spellInfo); Unit* GetMeleeHitRedirectTarget(Unit* victim, SpellInfo const* spellInfo = NULL); int32 SpellBaseDamageBonusDone(SpellSchoolMask schoolMask) const; int32 SpellBaseDamageBonusTaken(SpellSchoolMask schoolMask) const; uint32 SpellDamageBonusDone(Unit* victim, SpellInfo const* spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const* effect, uint32 stack = 1) const; float SpellDamagePctDone(Unit* victim, SpellInfo const* spellProto, DamageEffectType damagetype) const; uint32 SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const* effect, uint32 stack = 1) const; int32 SpellBaseHealingBonusDone(SpellSchoolMask schoolMask) const; int32 SpellBaseHealingBonusTaken(SpellSchoolMask schoolMask) const; uint32 SpellHealingBonusDone(Unit* victim, SpellInfo const* spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const* effect, uint32 stack = 1) const; float SpellHealingPctDone(Unit* victim, SpellInfo const* spellProto) const; uint32 SpellHealingBonusTaken(Unit* caster, SpellInfo const* spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const* effect, uint32 stack = 1) const; uint32 MeleeDamageBonusDone(Unit* pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const* spellProto = NULL); uint32 MeleeDamageBonusTaken(Unit* attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const* spellProto = NULL); bool isSpellBlocked(Unit* victim, SpellInfo const* spellProto, WeaponAttackType attackType = BASE_ATTACK); bool isBlockCritical(); bool IsSpellCrit(Unit* victim, SpellInfo const* spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType = BASE_ATTACK) const; float GetUnitSpellCriticalChance(Unit* victim, SpellInfo const* spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType = BASE_ATTACK) const; uint32 SpellCriticalDamageBonus(SpellInfo const* spellProto, uint32 damage, Unit* victim); uint32 SpellCriticalHealingBonus(SpellInfo const* spellProto, uint32 damage, Unit* victim); void SetContestedPvP(Player* attackedPlayer = NULL); uint32 GetCastingTimeForBonus(SpellInfo const* spellProto, DamageEffectType damagetype, uint32 CastingTime) const; float CalculateDefaultCoefficient(SpellInfo const* spellInfo, DamageEffectType damagetype) const; uint32 GetRemainingPeriodicAmount(ObjectGuid caster, uint32 spellId, AuraType auraType, uint8 effectIndex = 0) const; void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply); void ApplySpellDispelImmunity(const SpellInfo* spellProto, DispelType type, bool apply); virtual bool IsImmunedToSpell(SpellInfo const* spellInfo) const; // redefined in Creature uint32 GetSchoolImmunityMask() const; uint32 GetMechanicImmunityMask() const; bool IsImmunedToDamage(SpellSchoolMask meleeSchoolMask) const; bool IsImmunedToDamage(SpellInfo const* spellInfo) const; virtual bool IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const; // redefined in Creature bool IsDamageReducedByArmor(SpellSchoolMask damageSchoolMask, SpellInfo const* spellInfo = NULL, uint8 effIndex = MAX_SPELL_EFFECTS); uint32 CalcArmorReducedDamage(Unit* victim, const uint32 damage, SpellInfo const* spellInfo, WeaponAttackType attackType = MAX_ATTACK); uint32 CalcSpellResistance(Unit* victim, SpellSchoolMask schoolMask, SpellInfo const* spellInfo) const; void CalcAbsorbResist(Unit* victim, SpellSchoolMask schoolMask, DamageEffectType damagetype, uint32 const damage, uint32* absorb, uint32* resist, SpellInfo const* spellInfo = NULL); void CalcHealAbsorb(Unit* victim, SpellInfo const* spellInfo, uint32& healAmount, uint32& absorb); void UpdateSpeed(UnitMoveType mtype, bool forced); float GetSpeed(UnitMoveType mtype) const; float GetSpeedRate(UnitMoveType mtype) const { return m_speed_rate[mtype]; } void SetSpeed(UnitMoveType mtype, float rate, bool forced = false); float ApplyEffectModifiers(SpellInfo const* spellProto, uint8 effect_index, float value) const; int32 CalculateSpellDamage(Unit const* target, SpellInfo const* spellProto, uint8 effect_index, int32 const* basePoints = nullptr, float* variance = nullptr, int32 itemLevel = -1) const; int32 CalcSpellDuration(SpellInfo const* spellProto); int32 ModSpellDuration(SpellInfo const* spellProto, Unit const* target, int32 duration, bool positive, uint32 effectMask); void ModSpellCastTime(SpellInfo const* spellProto, int32& castTime, Spell* spell = NULL); float CalculateLevelPenalty(SpellInfo const* spellProto) const; void addFollower(FollowerReference* pRef) { m_FollowingRefManager.insertFirst(pRef); } void removeFollower(FollowerReference* /*pRef*/) { /* nothing to do yet */ } MotionMaster* GetMotionMaster() { return i_motionMaster; } const MotionMaster* GetMotionMaster() const { return i_motionMaster; } bool IsStopped() const { return !(HasUnitState(UNIT_STATE_MOVING)); } void StopMoving(); void AddUnitMovementFlag(uint32 f) { m_movementInfo.AddMovementFlag(f); } void RemoveUnitMovementFlag(uint32 f) { m_movementInfo.RemoveMovementFlag(f); } bool HasUnitMovementFlag(uint32 f) const { return m_movementInfo.HasMovementFlag(f); } uint32 GetUnitMovementFlags() const { return m_movementInfo.GetMovementFlags(); } void SetUnitMovementFlags(uint32 f) { m_movementInfo.SetMovementFlags(f); } void AddExtraUnitMovementFlag(uint16 f) { m_movementInfo.AddExtraMovementFlag(f); } void RemoveExtraUnitMovementFlag(uint16 f) { m_movementInfo.RemoveExtraMovementFlag(f); } uint16 HasExtraUnitMovementFlag(uint16 f) const { return m_movementInfo.HasExtraMovementFlag(f); } uint16 GetExtraUnitMovementFlags() const { return m_movementInfo.GetExtraMovementFlags(); } void SetExtraUnitMovementFlags(uint16 f) { m_movementInfo.SetExtraMovementFlags(f); } bool IsSplineEnabled() const; float GetPositionZMinusOffset() const; void SetControlled(bool apply, UnitState state); void AddComboPointHolder(ObjectGuid lowguid) { m_ComboPointHolders.insert(lowguid); } void RemoveComboPointHolder(ObjectGuid lowguid) { m_ComboPointHolders.erase(lowguid); } void ClearComboPointHolders(); ///----------Pet responses methods----------------- void SendPetActionFeedback (uint8 msg); void SendPetTalk (uint32 pettalk); void SendPetAIReaction(ObjectGuid guid); ///----------End of Pet responses methods---------- void propagateSpeedChange() { GetMotionMaster()->propagateSpeedChange(); } // reactive attacks void ClearAllReactives(); void StartReactiveTimer(ReactiveType reactive) { m_reactiveTimer[reactive] = REACTIVE_TIMER_START;} void UpdateReactives(uint32 p_time); // group updates void UpdateAuraForGroup(uint8 slot); // proc trigger system bool CanProc() const {return !m_procDeep;} void SetCantProc(bool apply); // pet auras typedef std::set<PetAura const*> PetAuraSet; PetAuraSet m_petAuras; void AddPetAura(PetAura const* petSpell); void RemovePetAura(PetAura const* petSpell); uint32 GetModelForForm(ShapeshiftForm form) const; uint32 GetModelForTotem(PlayerTotemType totemType); // Redirect Threat void SetRedirectThreat(ObjectGuid guid, uint32 pct) { _redirectThreadInfo.Set(guid, pct); } void ResetRedirectThreat() { SetRedirectThreat(ObjectGuid::Empty, 0); } void ModifyRedirectThreat(int32 amount) { _redirectThreadInfo.ModifyThreatPct(amount); } uint32 GetRedirectThreatPercent() const { return _redirectThreadInfo.GetThreatPct(); } Unit* GetRedirectThreatTarget(); friend class VehicleJoinEvent; bool IsAIEnabled, NeedChangeAI; ObjectGuid LastCharmerGUID; bool CreateVehicleKit(uint32 id, uint32 creatureEntry, bool loading = false); void RemoveVehicleKit(bool onRemoveFromWorld = false); Vehicle* GetVehicleKit()const { return m_vehicleKit; } Vehicle* GetVehicle() const { return m_vehicle; } void SetVehicle(Vehicle* vehicle) { m_vehicle = vehicle; } bool IsOnVehicle(const Unit* vehicle) const; Unit* GetVehicleBase() const; Creature* GetVehicleCreatureBase() const; ObjectGuid GetTransGUID() const override; /// Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) TransportBase* GetDirectTransport() const; bool m_ControlledByPlayer; bool HandleSpellClick(Unit* clicker, int8 seatId = -1); void EnterVehicle(Unit* base, int8 seatId = -1); void ExitVehicle(Position const* exitPosition = NULL); void ChangeSeat(int8 seatId, bool next = true); // Should only be called by AuraEffect::HandleAuraControlVehicle(AuraApplication const* auraApp, uint8 mode, bool apply) const; void _ExitVehicle(Position const* exitPosition = NULL); void _EnterVehicle(Vehicle* vehicle, int8 seatId, AuraApplication const* aurApp = NULL); bool isMoving() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_MASK_MOVING); } bool isTurning() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_MASK_TURNING); } virtual bool CanFly() const = 0; bool IsFlying() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_FLYING | MOVEMENTFLAG_DISABLE_GRAVITY); } bool IsFalling() const; void RewardRage(uint32 baseRage, bool attacker); virtual float GetFollowAngle() const { return static_cast<float>(M_PI/2); } void OutDebugInfo() const; virtual bool IsLoading() const { return false; } bool IsDuringRemoveFromWorld() const {return m_duringRemoveFromWorld;} Pet* ToPet() { if (IsPet()) return reinterpret_cast<Pet*>(this); else return NULL; } Pet const* ToPet() const { if (IsPet()) return reinterpret_cast<Pet const*>(this); else return NULL; } Totem* ToTotem() { if (IsTotem()) return reinterpret_cast<Totem*>(this); else return NULL; } Totem const* ToTotem() const { if (IsTotem()) return reinterpret_cast<Totem const*>(this); else return NULL; } TempSummon* ToTempSummon() { if (IsSummon()) return reinterpret_cast<TempSummon*>(this); else return NULL; } TempSummon const* ToTempSummon() const { if (IsSummon()) return reinterpret_cast<TempSummon const*>(this); else return NULL; } ObjectGuid GetTarget() const { return GetGuidValue(UNIT_FIELD_TARGET); } virtual void SetTarget(ObjectGuid const& /*guid*/) = 0; // Movement info Movement::MoveSpline * movespline; // Part of Evade mechanics time_t GetLastDamagedTime() const { return _lastDamagedTime; } void SetLastDamagedTime(time_t val) { _lastDamagedTime = val; } int32 GetHighestExclusiveSameEffectSpellGroupValue(AuraEffect const* aurEff, AuraType auraType, bool checkMiscValue = false, int32 miscValue = 0) const; bool IsHighestExclusiveAura(Aura const* aura, bool removeOtherAuraApplications = false); virtual void Talk(std::string const& text, ChatMsg msgType, Language language, float textRange, WorldObject const* target); virtual void Say(std::string const& text, Language language, WorldObject const* target = nullptr); virtual void Yell(std::string const& text, Language language, WorldObject const* target = nullptr); virtual void TextEmote(std::string const& text, WorldObject const* target = nullptr, bool isBossEmote = false); virtual void Whisper(std::string const& text, Language language, Player* target, bool isBossWhisper = false); void Talk(uint32 textId, ChatMsg msgType, float textRange, WorldObject const* target); void Say(uint32 textId, WorldObject const* target = nullptr); void Yell(uint32 textId, WorldObject const* target = nullptr); void TextEmote(uint32 textId, WorldObject const* target = nullptr, bool isBossEmote = false); void Whisper(uint32 textId, Player* target, bool isBossWhisper = false); uint32 GetVirtualItemId(uint32 slot) const; void SetVirtualItem(uint32 slot, uint32 itemId, uint16 appearanceModId = 0); protected: explicit Unit (bool isWorldObject); void BuildValuesUpdate(uint8 updatetype, ByteBuffer* data, Player* target) const override; void DestroyForPlayer(Player* target) const override; UnitAI* i_AI, *i_disabledAI; void _UpdateSpells(uint32 time); void _DeleteRemovedAuras(); void _UpdateAutoRepeatSpell(); bool m_AutoRepeatFirstCast; uint32 m_attackTimer[MAX_ATTACK]; float m_createStats[MAX_STATS]; AttackerSet m_attackers; Unit* m_attacking; DeathState m_deathState; int32 m_procDeep; typedef std::list<DynamicObject*> DynObjectList; DynObjectList m_dynObj; typedef std::list<GameObject*> GameObjectList; GameObjectList m_gameObj; uint32 m_transform; Spell* m_currentSpells[CURRENT_MAX_SPELL]; AuraMap m_ownedAuras; AuraApplicationMap m_appliedAuras; AuraList m_removedAuras; AuraMap::iterator m_auraUpdateIterator; uint32 m_removedAurasCount; AuraEffectList m_modAuras[TOTAL_AURAS]; AuraList m_scAuras; // cast singlecast auras AuraApplicationList m_interruptableAuras; // auras which have interrupt mask applied on unit AuraStateAurasMap m_auraStateAuras; // Used for improve performance of aura state checks on aura apply/remove uint32 m_interruptMask; float m_auraModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_END]; float m_weaponDamage[MAX_ATTACK][2]; bool m_canModifyStats; VisibleAuraMap m_visibleAuras; float m_speed_rate[MAX_MOVE_TYPE]; CharmInfo* m_charmInfo; SharedVisionList m_sharedVision; virtual SpellSchoolMask GetMeleeDamageSchoolMask() const; MotionMaster* i_motionMaster; uint32 m_reactiveTimer[MAX_REACTIVE]; uint32 m_regenTimer; ThreatManager m_ThreatManager; Vehicle* m_vehicle; Vehicle* m_vehicleKit; uint32 m_unitTypeMask; LiquidTypeEntry const* _lastLiquid; bool IsAlwaysVisibleFor(WorldObject const* seer) const override; bool IsAlwaysDetectableFor(WorldObject const* seer) const override; void DisableSpline(); private: bool IsTriggeredAtSpellProcEvent(Unit* victim, Aura* aura, SpellInfo const* procSpell, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, bool isVictim, bool active, SpellProcEventEntry const* & spellProcEvent); bool HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggeredByAura, SpellInfo const* procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown); bool HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, SpellInfo const* procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, bool * handled); bool HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* triggeredByAura, SpellInfo const* procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown); bool HandleOverrideClassScriptAuraProc(Unit* victim, uint32 damage, AuraEffect* triggeredByAura, SpellInfo const* procSpell, uint32 cooldown); bool HandleAuraRaidProcFromChargeWithValue(AuraEffect* triggeredByAura); bool HandleAuraRaidProcFromCharge(AuraEffect* triggeredByAura); void UpdateSplineMovement(uint32 t_diff); void UpdateSplinePosition(); // player or player's pet float GetCombatRatingReduction(CombatRating cr) const; uint32 GetCombatRatingDamageReduction(CombatRating cr, float rate, float cap, uint32 damage) const; protected: void SetFeared(bool apply); void SetConfused(bool apply); void SetStunned(bool apply); void SetRooted(bool apply, bool packetOnly = false); uint32 m_movementCounter; ///< Incrementing counter used in movement packets private: uint32 m_state; // Even derived shouldn't modify uint32 m_CombatTimer; TimeTrackerSmall m_movesplineTimer; Diminishing m_Diminishing; // Manage all Units that are threatened by us HostileRefManager m_HostileRefManager; FollowerRefManager m_FollowingRefManager; GuidSet m_ComboPointHolders; RedirectThreatInfo _redirectThreadInfo; bool m_cleanupDone; // lock made to not add stuff after cleanup before delete bool m_duringRemoveFromWorld; // lock made to not add stuff after begining removing from world uint32 _oldFactionId; ///< faction before charm bool _isWalkingBeforeCharm; ///< Are we walking before we were charmed? uint16 _aiAnimKitId; uint16 _movementAnimKitId; uint16 _meleeAnimKitId; time_t _lastDamagedTime; // Part of Evade mechanics SpellHistory* _spellHistory; }; namespace Trinity { // Binary predicate for sorting Units based on percent value of a power class PowerPctOrderPred { public: PowerPctOrderPred(Powers power, bool ascending = true) : _power(power), _ascending(ascending) { } bool operator()(WorldObject const* objA, WorldObject const* objB) const { Unit const* a = objA->ToUnit(); Unit const* b = objB->ToUnit(); float rA = (a && a->GetMaxPower(_power)) ? float(a->GetPower(_power)) / float(a->GetMaxPower(_power)) : 0.0f; float rB = (b && b->GetMaxPower(_power)) ? float(b->GetPower(_power)) / float(b->GetMaxPower(_power)) : 0.0f; return _ascending ? rA < rB : rA > rB; } bool operator()(Unit const* a, Unit const* b) const { float rA = a->GetMaxPower(_power) ? float(a->GetPower(_power)) / float(a->GetMaxPower(_power)) : 0.0f; float rB = b->GetMaxPower(_power) ? float(b->GetPower(_power)) / float(b->GetMaxPower(_power)) : 0.0f; return _ascending ? rA < rB : rA > rB; } private: Powers const _power; bool const _ascending; }; // Binary predicate for sorting Units based on percent value of health class HealthPctOrderPred { public: HealthPctOrderPred(bool ascending = true) : _ascending(ascending) { } bool operator()(WorldObject const* objA, WorldObject const* objB) const { Unit const* a = objA->ToUnit(); Unit const* b = objB->ToUnit(); float rA = (a && a->GetMaxHealth()) ? float(a->GetHealth()) / float(a->GetMaxHealth()) : 0.0f; float rB = (b && b->GetMaxHealth()) ? float(b->GetHealth()) / float(b->GetMaxHealth()) : 0.0f; return _ascending ? rA < rB : rA > rB; } bool operator() (Unit const* a, Unit const* b) const { float rA = a->GetMaxHealth() ? float(a->GetHealth()) / float(a->GetMaxHealth()) : 0.0f; float rB = b->GetMaxHealth() ? float(b->GetHealth()) / float(b->GetMaxHealth()) : 0.0f; return _ascending ? rA < rB : rA > rB; } private: bool const _ascending; }; } #endif
alex1kiss/LegacyCore_6.x.x
src/server/game/Entities/Unit/Unit.h
C
gpl-2.0
118,261
<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><link rel='stylesheet' type='text/css' href='../tononkira.css' /></head><body><ul class="hira-fihirana-list"><li style="color: red;"><b>Fihirana Vaovao</b> <i>p. 527</i></li><li style="color: red;"><b>Fihirana Hasina</b> <i>p. 278</i></li><li style="color: red;"><b>Vavaka sy Hira</b> <i>p. 401</i></li><li style="color: red;"><b>Ankalazao ny Tompo</b> <i>p. 211</i></li><li style="color: red;"><b>Fihirana Dera</b> <i>p. 254</i></li></ul><p><strong>I Jesoa Tompo hanangona firenena,</strong><br /> <strong>Raha tonga ny fotoana,</strong><br /> <strong>Ka havahany hisaraka amy ratsy</strong><br /> <strong>Ny olo-marina</strong>. <em>(Mt. 25, 32)</em></p> <p><em>(Iz. 33, 13-18)</em><br /> &nbsp;<br /> 1 Ianareo lavitra a, ianareo lavitra:<br /> &nbsp;Aoka hihaino ny teniko,<br /> &nbsp;Ianareo akaiky a, ianareo akaiky:<br /> &nbsp;Mahafantara ny heriko!<br /> &nbsp;Ny mpanota ao Si&ocirc;na mihorohoro,<br /> &nbsp;Toy izany ny mpihatsaravelatsihy!<br /> &nbsp;<br /> 2 Ary iza kosa a, ary iza kosa<br /> &nbsp;No hahasedra ny memy?<br /> &nbsp;Zovy no hahatanty a, zovy no hahatanty<br /> &nbsp;Ny vain&#39;afo tsy maty?<br /> &nbsp;&#39;Reo mitory ny rariny raha miteny,<br /> &nbsp;Ka manaraka n&#39;hitsiny raha mihary!<br /> &nbsp;<br /> 3 Tsy mandray tsolotra a, tsy mandray tsolotra,<br /> &nbsp;Tsy mba mifofo ain&#39;olona;<br /> &nbsp;Fa manapi-maso a, fa manapi-maso<br /> &nbsp;Mba tsy hijery ny ratsy.<br /> &nbsp;Izy ireny no hiakatra ny tan&agrave;na,<br /> &nbsp;Dia tan&agrave;na mimanda tsy hay resena.<br /> &nbsp;<br /> 4 Tsy ho mosarena a, tsy ho mosarena,<br /> &nbsp;Ny fatsakany tsy ritra.<br /> &nbsp;Ilay Avo indrindra a, ilay Avo indrindra:<br /> &nbsp;&#39;Ndeha ho deraina fa marina!<br /> &nbsp;Fa ny Zanany hitsara &#39;reo firenena,<br /> &nbsp;Ny Fanahiny miaro an&#39;izay nantsoiny.</p></body></html>
heriniaina/fihirana-katolika
src/main/assets/files/1166.html
HTML
gpl-2.0
1,923
/*************************************************************************** * manager.cpp * * * * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> * * Copyright (C) 2010 Marco Martin <notmart@gmail.com> * * * * This program 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 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 General Public License for more details. * * * * You should have received a copy of the GNU 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 . * ***************************************************************************/ #include "manager.h" #include <KDebug> #include <KGlobal> #include <plasma/applet.h> #include "protocol.h" #include "task.h" #include "../protocols/fdo/fdoprotocol.h" #include "../protocols/plasmoid/plasmoidtaskprotocol.h" #include "../protocols/dbussystemtray/dbussystemtrayprotocol.h" #include <QTimer> namespace SystemTray { class Manager::Private { public: Private(Manager *manager) : q(manager), plasmoidProtocol(0) { } void setupProtocol(Protocol *protocol); Manager *q; QList<Task *> tasks; PlasmoidProtocol *plasmoidProtocol; }; Manager::Manager() : d(new Private(this)) { d->plasmoidProtocol = new PlasmoidProtocol(this); d->setupProtocol(d->plasmoidProtocol); d->setupProtocol(new SystemTray::FdoProtocol(this)); d->setupProtocol(new SystemTray::DBusSystemTrayProtocol(this)); } Manager::~Manager() { delete d; } QList<Task*> Manager::tasks() const { return d->tasks; } void Manager::addTask(Task *task) { connect(task, SIGNAL(destroyed(SystemTray::Task*)), this, SLOT(removeTask(SystemTray::Task*))); connect(task, SIGNAL(changed(SystemTray::Task*)), this, SIGNAL(taskChanged(SystemTray::Task*))); kDebug() << task->name() << "(" << task->typeId() << ")"; d->tasks.append(task); emit taskAdded(task); } void Manager::removeTask(Task *task) { d->tasks.removeAll(task); disconnect(task, 0, this, 0); emit taskRemoved(task); } void Manager::forwardConstraintsEvent(Plasma::Constraints constraints, Plasma::Applet *host) { d->plasmoidProtocol->forwardConstraintsEvent(constraints, host); } void Manager::loadApplets(Plasma::Applet *parent) { d->plasmoidProtocol->loadFromConfig(parent); } void Manager::addApplet(const QString appletName, Plasma::Applet *parent) { d->plasmoidProtocol->addApplet(appletName, 0, parent); } void Manager::removeApplet(const QString appletName, Plasma::Applet *parent) { d->plasmoidProtocol->removeApplet(appletName, parent); } QStringList Manager::applets(Plasma::Applet *parent) const { return d->plasmoidProtocol->applets(parent); } void Manager::Private::setupProtocol(Protocol *protocol) { connect(protocol, SIGNAL(taskCreated(SystemTray::Task*)), q, SLOT(addTask(SystemTray::Task*))); protocol->init(); } } #include "manager.moc"
mgottschlag/kwin-tiling
plasma/generic/applets/systemtray/core/manager.cpp
C++
gpl-2.0
3,955
package form_amdata; import java.io.File; import java.text.DecimalFormat; import java.util.ArrayList; import class_amdata.Class_CensoCarga; import sypelc.androidamdata.R; import miscelanea.SQLite; import miscelanea.Tablas; import miscelanea.Util; import android.app.Activity; import android.content.ContentValues; import android.content.Intent; import android.os.Bundle; import android.os.Environment; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TableLayout; import android.widget.TextView; import android.widget.Toast; import android.widget.Spinner; public class Form_CensoCarga extends Activity implements OnClickListener, OnCheckedChangeListener, OnItemSelectedListener{ Tablas CensoTabla; SQLite CensoSQL; Util CensoUtil; Class_CensoCarga FcnCenso; private String NombreUsuario = ""; private String CedulaUsuario = ""; private String NivelUsuario = ""; private String OrdenTrabajo = ""; private String CuentaCliente = ""; private String FolderAplicacion= ""; //private String IdElemento = ""; private float errorImpulsos; private float errorNumeradorA; private float errorNumeradorB; private float errorNumeradorC; private float errorVoltajeLinea; private float errorCorrienteLinea; private float errorTiempoLinea; private float errorVueltasLinea; private String[] _strEstadoCarga = {"...","Registrada","Directa"}; private String _strCamposTabla = "carga,elemento,vatios,cant,total"; private String[] _strConexion = {"Monofasico","Bifasico","Trifasico"}; private String[] _strPrueba = {"Baja","Alta"}; private ArrayList<String> _strCantidad = new ArrayList<String>(); private ArrayAdapter<String> AdaptadorCantidad; CheckBox _chkFaseA, _chkFaseB, _chkFaseC; Spinner _cmbElementos, _cmbEstadoElemento, _cmbConexion, _cmbPrueba, _cmbCantidad; TextView _lblVb, _lblVc, _lblIb, _lblIc, _lblTb, _lblTc, _lblNvb, _lblNvc, _lblFp1, _lblFp2, _lblFp3, _lbltcr, _lbltcd, _lbltcc; EditText _txtVa, _txtVb, _txtVc, _txtIa, _txtIb, _txtIc, _txtTa, _txtTb, _txtTc, _txtNva, _txtNvb, _txtNvc, _txtRevUnidades, _txtVatios; Button _btnRegistrar, _btnEliminar, _btnErrorCalcular, _btnErrorGuardar; private LinearLayout ll; private TableLayout InformacionTabla; //Variables para consultas en la base de datos private ContentValues Registro = new ContentValues(); private ArrayList<ContentValues> Tabla = new ArrayList<ContentValues>(); DecimalFormat decimales = new DecimalFormat("0.000"); ArrayAdapter<String> AdaptadorEstadoCarga; ArrayAdapter<String> AdaptadorTipoConexion; ArrayAdapter<String> AdaptadorTipoPrueba; //Variables para la consulta de los elementos disponibles del censo de carga ArrayList<ContentValues> ElementosCenso = new ArrayList<ContentValues>(); ArrayList<String> StringElementosCenso = new ArrayList<String>(); ArrayAdapter<String> AdaptadorElementosCenso; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_censo_carga); Bundle bundle = getIntent().getExtras(); this.NombreUsuario = bundle.getString("NombreUsuario"); this.CedulaUsuario = bundle.getString("CedulaUsuario"); this.NivelUsuario = bundle.getString("NivelUsuario"); this.OrdenTrabajo = bundle.getString("OrdenTrabajo"); this.CuentaCliente = bundle.getString("CuentaCliente"); this.FolderAplicacion = bundle.getString("FolderAplicacion"); CensoTabla = new Tablas(this, _strCamposTabla, "110,275,80,70,90", 1, "#74BBEE", "#A9CFEA" ,"#EE7474"); CensoSQL = new SQLite(this, FolderAplicacion); CensoUtil = new Util(); FcnCenso = new Class_CensoCarga(this, FolderAplicacion); _cmbElementos = (Spinner) findViewById(R.id.CensoCmbElemento); _cmbEstadoElemento = (Spinner) findViewById(R.id.CensoCmbCarga); _cmbConexion = (Spinner) findViewById(R.id.ErrorCmbTipoConexion); _cmbPrueba = (Spinner) findViewById(R.id.ErrorCmbTipoPrueba); _cmbCantidad = (Spinner) findViewById(R.id.CensoCmbCantidad); _chkFaseA = (CheckBox) findViewById(R.id.ErrorChkFaseA); _chkFaseB = (CheckBox) findViewById(R.id.ErrorChkFaseB); _chkFaseC = (CheckBox) findViewById(R.id.ErrorChkFaseC); _lblVb = (TextView) findViewById(R.id.CensoLblVb); _lblVc = (TextView) findViewById(R.id.CensoLblVc); _lblIb = (TextView) findViewById(R.id.CensoLblIb); _lblIc = (TextView) findViewById(R.id.CensoLblIc); _lblTb = (TextView) findViewById(R.id.CensoLblTb); _lblTc = (TextView) findViewById(R.id.CensoLblTc); _lblNvb = (TextView) findViewById(R.id.CensoLblNvb); _lblNvc = (TextView) findViewById(R.id.CensoLblNvc); _lblFp1 = (TextView) findViewById(R.id.ErrorLblFp1Value); _lblFp2 = (TextView) findViewById(R.id.ErrorLblFp2Value); _lblFp3 = (TextView) findViewById(R.id.ErrorLblFp3Value); _lbltcr = (TextView) findViewById(R.id.CensoLblTCR2); _lbltcd = (TextView) findViewById(R.id.CensoLblTCD); _lbltcc = (TextView) findViewById(R.id.CensoLblTCC); _txtVa = (EditText) findViewById(R.id.CensoTxtVa); _txtVb = (EditText) findViewById(R.id.CensoTxtVb); _txtVc = (EditText) findViewById(R.id.CensoTxtVc); _txtIa = (EditText) findViewById(R.id.CensoTxtIa); _txtIb = (EditText) findViewById(R.id.CensoTxtIb); _txtIc = (EditText) findViewById(R.id.CensoTxtIc); _txtTa = (EditText) findViewById(R.id.CensoTxtTa); _txtTb = (EditText) findViewById(R.id.CensoTxtTb); _txtTc = (EditText) findViewById(R.id.CensoTxtTc); _txtNva = (EditText) findViewById(R.id.CensoTxtNva); _txtNvb = (EditText) findViewById(R.id.CensoTxtNvb); _txtNvc = (EditText) findViewById(R.id.CensoTxtNvc); _txtRevUnidades = (EditText) findViewById(R.id.ErrorTxtRevUnidades); _txtVatios = (EditText) findViewById(R.id.CensoTxtVatios); _btnRegistrar = (Button) findViewById(R.id.CensoBtnRegistrar); _btnEliminar = (Button) findViewById(R.id.CensoBtnEliminar); _btnErrorCalcular = (Button) findViewById(R.id.ErrorBtnCalcular); _btnErrorGuardar = (Button) findViewById(R.id.ErrorBtnGuardar); ll = (LinearLayout) findViewById(R.id.CensoTablaElementos); _strCantidad = CensoUtil.getRangeAdapter(0, 100, 1); AdaptadorCantidad = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,_strCantidad); _cmbCantidad.setAdapter(AdaptadorCantidad); AdaptadorEstadoCarga = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,_strEstadoCarga); _cmbEstadoElemento.setAdapter(AdaptadorEstadoCarga); AdaptadorTipoConexion = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,_strConexion); _cmbConexion.setAdapter(AdaptadorTipoConexion); AdaptadorTipoPrueba = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,_strPrueba); _cmbPrueba.setAdapter(AdaptadorTipoPrueba); _lbltcr.setText("TCR: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"' AND tipo_carga='R'")); _lbltcd.setText("TCD: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"' AND tipo_carga='D'")); _lbltcc.setText("TCC: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"'")); //Adaptador para el combo del calibre del material segun el tipo y el conductor ElementosCenso = CensoSQL.SelectData("amd_elementos_censo", "descripcion", "id_elemento IS NOT NULL ORDER BY descripcion"); CensoUtil.ArrayContentValuesToString(StringElementosCenso, ElementosCenso, "descripcion"); AdaptadorElementosCenso= new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,StringElementosCenso); _cmbElementos.setAdapter(AdaptadorElementosCenso); Tabla = CensoSQL.SelectData("vista_censo_carga", "carga,elemento,vatios,cant,total", "id_orden='"+OrdenTrabajo+"'"); InformacionTabla = CensoTabla.CuerpoTabla(Tabla); ll.removeAllViews(); ll.addView(InformacionTabla); _chkFaseA.setOnCheckedChangeListener(this); _chkFaseB.setOnCheckedChangeListener(this); _chkFaseC.setOnCheckedChangeListener(this); _cmbPrueba.setOnItemSelectedListener(this); _cmbElementos.setOnItemSelectedListener(this); _cmbConexion.setOnItemSelectedListener(this); _btnRegistrar.setOnClickListener(this); _btnEliminar.setOnClickListener(this); _btnErrorCalcular.setOnClickListener(this); _btnErrorGuardar.setOnClickListener(this); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_censo_carga, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { Intent k; switch (item.getItemId()) { case R.id.Acta: finish(); k = new Intent(this, Form_Actas.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.Acometida: finish(); k = new Intent(this, Acometida.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.ContadorTransformador: finish(); k = new Intent(this, Form_CambioContador.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.IrregularidadesObservaciones: finish(); k = new Intent(this, IrregularidadesObservaciones.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.Sellos: finish(); k = new Intent(this, Form_Sellos.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.EncontradoPruebas: finish(); k = new Intent(this, Form_MedidorPruebas.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.Materiales: finish(); k = new Intent(this, Materiales.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.DatosAdecuaciones: finish(); k = new Intent(this, Form_DatosActa_Adecuaciones.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; case R.id.Volver: finish(); k = new Intent(this, Form_Solicitudes.class); k.putExtra("NombreUsuario", this.NombreUsuario); k.putExtra("CedulaUsuario", CedulaUsuario); k.putExtra("NivelUsuario", NivelUsuario); k.putExtra("OrdenTrabajo", OrdenTrabajo); k.putExtra("CuentaCliente",CuentaCliente); k.putExtra("FolderAplicacion", Environment.getExternalStorageDirectory() + File.separator + "EMSA"); startActivity(k); return true; default: return super.onOptionsItemSelected(item); } } public void OcultarItemsGraficos(){ if(_cmbConexion.getSelectedItem().toString().equals("Monofasico")){ _chkFaseB.setVisibility(View.INVISIBLE); _chkFaseC.setVisibility(View.INVISIBLE); _lblVb.setVisibility(View.INVISIBLE); _lblVc.setVisibility(View.INVISIBLE); _lblIb.setVisibility(View.INVISIBLE); _lblIc.setVisibility(View.INVISIBLE); _lblTb.setVisibility(View.INVISIBLE); _lblTc.setVisibility(View.INVISIBLE); _lblNvb.setVisibility(View.INVISIBLE); _lblNvc.setVisibility(View.INVISIBLE); _lblFp2.setVisibility(View.INVISIBLE); _lblFp3.setVisibility(View.INVISIBLE); _txtVb.setVisibility(View.INVISIBLE); _txtVc.setVisibility(View.INVISIBLE); _txtIb.setVisibility(View.INVISIBLE); _txtIc.setVisibility(View.INVISIBLE); _txtTb.setVisibility(View.INVISIBLE); _txtTc.setVisibility(View.INVISIBLE); _txtNvb.setVisibility(View.INVISIBLE); _txtNvc.setVisibility(View.INVISIBLE); }else if(_cmbConexion.getSelectedItem().toString().equals("Bifasico")){ _chkFaseB.setVisibility(View.VISIBLE); _chkFaseC.setVisibility(View.INVISIBLE); _lblVb.setVisibility(View.VISIBLE); _lblVc.setVisibility(View.INVISIBLE); _lblIb.setVisibility(View.VISIBLE); _lblIc.setVisibility(View.INVISIBLE); _lblTb.setVisibility(View.VISIBLE); _lblTc.setVisibility(View.INVISIBLE); _lblNvb.setVisibility(View.VISIBLE); _lblNvc.setVisibility(View.INVISIBLE); _lblFp2.setVisibility(View.VISIBLE); _lblFp3.setVisibility(View.INVISIBLE); _txtVb.setVisibility(View.VISIBLE); _txtVc.setVisibility(View.INVISIBLE); _txtIb.setVisibility(View.VISIBLE); _txtIc.setVisibility(View.INVISIBLE); _txtTb.setVisibility(View.VISIBLE); _txtTc.setVisibility(View.INVISIBLE); _txtNvb.setVisibility(View.VISIBLE); _txtNvc.setVisibility(View.INVISIBLE); }else if(_cmbConexion.getSelectedItem().toString().equals("Trifasico")){ _chkFaseB.setVisibility(View.VISIBLE); _chkFaseC.setVisibility(View.VISIBLE); _lblVb.setVisibility(View.VISIBLE); _lblVc.setVisibility(View.VISIBLE); _lblIb.setVisibility(View.VISIBLE); _lblIc.setVisibility(View.VISIBLE); _lblTb.setVisibility(View.VISIBLE); _lblTc.setVisibility(View.VISIBLE); _lblNvb.setVisibility(View.VISIBLE); _lblNvc.setVisibility(View.VISIBLE); _lblFp2.setVisibility(View.VISIBLE); _lblFp3.setVisibility(View.VISIBLE); _txtVb.setVisibility(View.VISIBLE); _txtVc.setVisibility(View.VISIBLE); _txtIb.setVisibility(View.VISIBLE); _txtIc.setVisibility(View.VISIBLE); _txtTb.setVisibility(View.VISIBLE); _txtTc.setVisibility(View.VISIBLE); _txtNvb.setVisibility(View.VISIBLE); _txtNvc.setVisibility(View.VISIBLE); } } @Override public void onClick(View v) { switch(v.getId()){ case R.id.CensoBtnRegistrar: if(_cmbEstadoElemento.getSelectedItem().toString().equals("...")){ Toast.makeText(this,"No ha seleccionado el estado de la carga del elemento.",Toast.LENGTH_SHORT).show(); }else if(_cmbCantidad.getSelectedItem().toString().equals("0")){ Toast.makeText(this,"No ha ingresado una cantidad valida.",Toast.LENGTH_SHORT).show(); }else if(_txtVatios.getText().toString().isEmpty()||!FcnCenso.verificarRango(_cmbElementos.getSelectedItem().toString(), _txtVatios.getText().toString())){ Toast.makeText(this,"No ha ingresado un valor de vatios validos.",Toast.LENGTH_SHORT).show(); }else{ Registro.clear(); Registro.put("id_orden", OrdenTrabajo); Registro.put("id_elemento",CensoSQL.StrSelectShieldWhere("amd_elementos_censo", "id_elemento", "descripcion='"+_cmbElementos.getSelectedItem().toString()+"'")); Registro.put("capacidad", _txtVatios.getText().toString()); Registro.put("cantidad", _cmbCantidad.getSelectedItem().toString()); Registro.put("tipo_carga", _cmbEstadoElemento.getSelectedItem().toString().substring(0,1)); Registro.put("usuario_ins", CedulaUsuario); if(CensoSQL.InsertRegistro("amd_censo_carga", Registro)){ Tabla = CensoSQL.SelectData("vista_censo_carga", "carga,elemento,vatios,cant,total", "id_orden='"+OrdenTrabajo+"'"); InformacionTabla = CensoTabla.CuerpoTabla(Tabla); ll.removeAllViews(); ll.addView(InformacionTabla); Toast.makeText(this,"Elemento ingresado correctamente.",Toast.LENGTH_SHORT).show(); }else{ Toast.makeText(this,"Error al registrar el elemento.",Toast.LENGTH_SHORT).show(); } } _lbltcr.setText("TCR: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"' AND tipo_carga='R'")); _lbltcd.setText("TCD: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"' AND tipo_carga='D'")); _lbltcc.setText("TCC: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"'")); break; case R.id.CensoBtnEliminar: if(CensoSQL.DeleteRegistro("amd_censo_carga", "id_orden='"+OrdenTrabajo+"' AND id_elemento='"+CensoSQL.StrSelectShieldWhere("amd_elementos_censo", "id_elemento", "descripcion='"+_cmbElementos.getSelectedItem().toString()+"'")+"' AND tipo_carga='"+_cmbEstadoElemento.getSelectedItem().toString().substring(0,1)+"'")){ Tabla = CensoSQL.SelectData("vista_censo_carga", "carga,elemento,vatios,cant,total", "id_orden='"+OrdenTrabajo+"'"); InformacionTabla = CensoTabla.CuerpoTabla(Tabla); ll.removeAllViews(); ll.addView(InformacionTabla); _lbltcr.setText("TCR: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"' AND tipo_carga='R'")); _lbltcd.setText("TCD: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"' AND tipo_carga='D'")); _lbltcc.setText("TCC: "+this.CensoSQL.StrSelectShieldWhere("amd_censo_carga","sum(capacidad*cantidad)"," id_orden='"+this.OrdenTrabajo+"'")); }else{ Toast.makeText(this,"Error al eliminar el elemento.",Toast.LENGTH_SHORT).show(); } break; case R.id.ErrorBtnCalcular: if((_cmbConexion.getSelectedItemPosition()==0)){ if(_txtRevUnidades.getText().toString().isEmpty()){ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); }else{ if(_txtRevUnidades.getText().toString().isEmpty()){ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); }else{ if(_txtVa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Voltaje",Toast.LENGTH_SHORT).show(); }else{ if(_txtIa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado la Corriente",Toast.LENGTH_SHORT).show(); }else{ if(_txtTa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Tiempo",Toast.LENGTH_SHORT).show(); }else{ if(_txtNva.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Numero de Vueltas",Toast.LENGTH_SHORT).show(); }else{ errorImpulsos = Float.parseFloat(_txtRevUnidades.getText()+""); if(errorImpulsos>=0){ ValidarCamposLinea(); }else{ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); } } } } } } } }else{ if((_cmbConexion.getSelectedItemPosition()==1)){ if(_txtRevUnidades.getText().toString().isEmpty()){ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); }else{ if(_txtVb.getText().toString().equals("")||_txtVa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Voltaje FaseB",Toast.LENGTH_SHORT).show(); }else{ if(_txtIb.getText().toString().equals("")||_txtIa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado la Corriente FaseB",Toast.LENGTH_SHORT).show(); }else{ if(_txtTb.getText().toString().equals("")||_txtTa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Tiempo FaseB",Toast.LENGTH_SHORT).show(); }else{ if(_txtNvb.getText().toString().equals("")||_txtNva.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Numero Vueltas FaseB",Toast.LENGTH_SHORT).show(); }else{ errorImpulsos = Float.parseFloat(_txtRevUnidades.getText()+""); if(errorImpulsos>=0){ ValidarCamposLinea(); }else{ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); } } } } } } } else{ if(_cmbConexion.getSelectedItemPosition()==2){ if(_txtRevUnidades.getText().toString().isEmpty()){ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); }else{ if(_txtVc.getText().toString().equals("")||_txtVa.getText().toString().equals("")||_txtVb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Voltaje FaseC",Toast.LENGTH_SHORT).show(); }else{ if(_txtIc.getText().toString().equals("")||_txtIa.getText().toString().equals("")||_txtIb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado la Corriente FaseC",Toast.LENGTH_SHORT).show(); }else{ if(_txtTc.getText().toString().equals("")||_txtTa.getText().toString().equals("")||_txtTb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Tiempo Fasec",Toast.LENGTH_SHORT).show(); }else{ if(_txtNvc.getText().toString().equals("")||_txtNva.getText().toString().equals("")||_txtNvb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Numero Vueltas Fasec",Toast.LENGTH_SHORT).show(); }else{ errorImpulsos = Float.parseFloat(_txtRevUnidades.getText()+""); if(errorImpulsos>=0){ ValidarCamposLinea(); }else{ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); } } } } } } } } } break; case R.id.ErrorBtnGuardar: CensoSQL.DeleteRegistro("amd_pct_error", "id_orden='"+OrdenTrabajo+"' AND tipo_carga='"+_cmbPrueba.getSelectedItem().toString()+"'"); if((_cmbConexion.getSelectedItemPosition()==0)||(_cmbConexion.getSelectedItemPosition()==1)||(_cmbConexion.getSelectedItemPosition()==2)){ Registro.clear(); Registro.put("id_orden", OrdenTrabajo); Registro.put("tipo_carga", _cmbPrueba.getSelectedItem().toString()); Registro.put("voltaje", _txtVa.getText().toString()); Registro.put("corriente", _txtIa.getText().toString()); Registro.put("tiempo", _txtTa.getText().toString()); Registro.put("vueltas", _txtNva.getText().toString()); Registro.put("total", decimales.format(Math.abs(Float.parseFloat(_lblFp1.getText().toString().replace(",","."))-1))); Registro.put("rev",errorImpulsos); Registro.put("usuario_ins", CedulaUsuario); Registro.put("fp", _lblFp1.getText().toString()); Registro.put("fase", "1"); if(_txtRevUnidades.getText().toString().isEmpty()){ Toast.makeText(this,"No ha ingresado el parametro del medidor de Impulsos o Revoluciones Kw/h.",Toast.LENGTH_SHORT).show(); }else{ if(_txtVa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Voltaje",Toast.LENGTH_SHORT).show(); }else{ if(_txtIa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado la Corriente",Toast.LENGTH_SHORT).show(); }else{ if(_txtTa.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Tiempo",Toast.LENGTH_SHORT).show(); }else{ if(_txtNva.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Numero Vueltas",Toast.LENGTH_SHORT).show(); }else{ if(CensoSQL.InsertRegistro("amd_pct_error", Registro)){ Toast.makeText(this,"Factor de potencia de la fase A guardado correctamente",Toast.LENGTH_SHORT).show(); }else{ Toast.makeText(this,"Error al guardar el factor de potencia de la fase A.",Toast.LENGTH_SHORT).show(); } } } } } } } if((_cmbConexion.getSelectedItemPosition()==1)||(_cmbConexion.getSelectedItemPosition()==2)){ Registro.clear(); Registro.put("id_orden", OrdenTrabajo); Registro.put("tipo_carga", _cmbPrueba.getSelectedItem().toString()); Registro.put("voltaje", _txtVb.getText().toString()); Registro.put("corriente", _txtIb.getText().toString()); Registro.put("tiempo", _txtTb.getText().toString()); Registro.put("vueltas", _txtNvb.getText().toString()); Registro.put("total", decimales.format(Math.abs(Float.parseFloat(_lblFp2.getText().toString().replace(",","."))-1))); Registro.put("rev",errorImpulsos); Registro.put("usuario_ins", CedulaUsuario); Registro.put("fp", _lblFp2.getText().toString()); Registro.put("fase", "2"); if(_txtVb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Voltaje FaseB",Toast.LENGTH_SHORT).show(); }else{ if(_txtIb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado la Corriente FaseB",Toast.LENGTH_SHORT).show(); }else{ if(_txtTb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Tiempo FaseB",Toast.LENGTH_SHORT).show(); }else{ if(_txtNvb.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Numero Vueltas FaseB",Toast.LENGTH_SHORT).show(); }else{ if(CensoSQL.InsertRegistro("amd_pct_error", Registro)){ Toast.makeText(this,"Factor de potencia de la fase B guardado correctamente",Toast.LENGTH_SHORT).show(); }else{ Toast.makeText(this,"Error al guardar el factor de potencia de la fase B.",Toast.LENGTH_SHORT).show(); } } } } } } if(_cmbConexion.getSelectedItemPosition()==2){ Registro.clear(); Registro.put("id_orden", OrdenTrabajo); Registro.put("tipo_carga", _cmbPrueba.getSelectedItem().toString()); Registro.put("voltaje", _txtVc.getText().toString()); Registro.put("corriente", _txtIc.getText().toString()); Registro.put("tiempo", _txtTc.getText().toString()); Registro.put("vueltas", _txtNvc.getText().toString()); Registro.put("total", decimales.format(Math.abs(Float.parseFloat(_lblFp3.getText().toString().replace(",","."))-1))); Registro.put("rev",errorImpulsos); Registro.put("usuario_ins", CedulaUsuario); Registro.put("fp", _lblFp3.getText().toString()); Registro.put("fase", "3"); if(_txtVc.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Voltaje FaseC",Toast.LENGTH_SHORT).show(); }else{ if(_txtIc.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado la Corriente FaseC",Toast.LENGTH_SHORT).show(); }else{ if(_txtTc.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Tiempo Fasec",Toast.LENGTH_SHORT).show(); }else{ if(_txtNvc.getText().toString().equals("")){ Toast.makeText(this,"No ha ingresado el Numero Vueltas Fasec",Toast.LENGTH_SHORT).show(); }else{ if(CensoSQL.InsertRegistro("amd_pct_error", Registro)){ Toast.makeText(this,"Factor de potencia de la fase C guardado correctamente",Toast.LENGTH_SHORT).show(); }else{ Toast.makeText(this,"Error al guardar el factor de potencia de la fase C.",Toast.LENGTH_SHORT).show(); } } } } } } break; default: break; } } public boolean ValidarCamposLinea(){ boolean _retorno = true; if((_cmbConexion.getSelectedItemPosition()==0)||(_cmbConexion.getSelectedItemPosition()==1)||(_cmbConexion.getSelectedItemPosition()==2)){ errorVoltajeLinea = Float.parseFloat(_txtVa.getText().toString()); errorCorrienteLinea = Float.parseFloat(_txtIa.getText().toString()); errorTiempoLinea = Float.parseFloat(_txtTa.getText().toString()); errorVueltasLinea = Float.parseFloat(_txtNva.getText().toString()); if(errorVoltajeLinea>150){ Toast.makeText(this,"El voltaje ingresado en la linea A esta fuera del rango.",Toast.LENGTH_SHORT).show(); _retorno = false; }else if(errorCorrienteLinea>15){ Toast.makeText(this,"La corrente ingresada en la linea A esta fuera del rango.",Toast.LENGTH_SHORT).show(); _retorno = false; }else if(_chkFaseA.isChecked()){ errorNumeradorA = 0; _lblFp1.setText(""+decimales.format(errorNumeradorA)); }else{ errorNumeradorA = (3600000*errorVueltasLinea)/(errorVoltajeLinea*errorCorrienteLinea*errorTiempoLinea*errorImpulsos); _lblFp1.setText(""+decimales.format(errorNumeradorA)); } } if((_cmbConexion.getSelectedItemPosition()==1)||(_cmbConexion.getSelectedItemPosition()==2)){ errorVoltajeLinea = Float.parseFloat(_txtVb.getText().toString()); errorCorrienteLinea = Float.parseFloat(_txtIb.getText().toString()); errorTiempoLinea = Float.parseFloat(_txtTb.getText().toString()); errorVueltasLinea = Float.parseFloat(_txtNvb.getText().toString()); if(errorVoltajeLinea>150){ Toast.makeText(this,"El voltaje ingresado en la linea B esta fuera del rango.",Toast.LENGTH_SHORT).show(); _retorno = false; }else if(errorCorrienteLinea>15){ Toast.makeText(this,"La corrente ingresada en la linea B esta fuera del rango.",Toast.LENGTH_SHORT).show(); _retorno = false; }else if(_chkFaseB.isChecked()){ errorNumeradorB = 0; _lblFp2.setText(""+decimales.format(errorNumeradorB)); }else{ errorNumeradorB = (3600000*errorVueltasLinea)/(errorVoltajeLinea*errorCorrienteLinea*errorTiempoLinea*errorImpulsos); _lblFp2.setText(""+decimales.format(errorNumeradorB)); } } if(_cmbConexion.getSelectedItemPosition()==2){ errorVoltajeLinea = Float.parseFloat(_txtVc.getText().toString()); errorCorrienteLinea = Float.parseFloat(_txtIc.getText().toString()); errorTiempoLinea = Float.parseFloat(_txtTc.getText().toString()); errorVueltasLinea = Float.parseFloat(_txtNvc.getText().toString()); if(errorVoltajeLinea>150){ Toast.makeText(this,"El voltaje ingresado en la linea C esta fuera del rango.",Toast.LENGTH_SHORT).show(); _retorno = false; }else if(errorCorrienteLinea>15){ Toast.makeText(this,"La corrente ingresada en la linea C esta fuera del rango.",Toast.LENGTH_SHORT).show(); _retorno = false; }else if(_chkFaseC.isChecked()){ errorNumeradorC = 0; _lblFp3.setText(""+decimales.format(errorNumeradorC)); }else{ errorNumeradorC = (3600000*errorVueltasLinea)/(errorVoltajeLinea*errorCorrienteLinea*errorTiempoLinea*errorImpulsos); _lblFp3.setText(""+decimales.format(errorNumeradorC)); } } return _retorno; } /**Funcion encargada de capturar los cambios al hacer click en cualquier checkbox del activity**/ @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { // TODO Auto-generated method stub switch(buttonView.getId()){ case R.id.ErrorChkFaseA: if ( isChecked ){ _txtTa.setText("0"); _txtNva.setText("0"); _txtTa.setEnabled(false); _txtNva.setEnabled(false); }else{ _txtTa.setEnabled(true); _txtNva.setEnabled(true); } break; case R.id.ErrorChkFaseB: if ( isChecked ){ _txtTb.setText("0"); _txtNvb.setText("0"); _txtTb.setEnabled(false); _txtNvb.setEnabled(false); }else{ _txtTb.setEnabled(true); _txtNvb.setEnabled(true); } break; case R.id.ErrorChkFaseC: if ( isChecked ){ _txtTc.setText("0"); _txtNvc.setText("0"); _txtTc.setEnabled(false); _txtNvc.setEnabled(false); }else{ _txtTc.setEnabled(true); _txtNvc.setEnabled(true); } break; } } /**Control de eventos de cambios en los combos**/ @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { switch(parent.getId()){ case R.id.ErrorCmbTipoPrueba: if(_cmbPrueba.getSelectedItem().toString().equals("Baja")){ _cmbConexion.setSelection(AdaptadorTipoPrueba.getPosition("Baja")); _cmbConexion.setEnabled(false); }else{ _cmbConexion.setEnabled(true); } break; case R.id.CensoCmbElemento: _txtVatios.setText(FcnCenso.getVatioMinimo(_cmbElementos.getSelectedItem().toString())); /*_strVatios = FcnCenso.getRangoVatios(_cmbElementos.getSelectedItem().toString(),10); AdaptadorVatios = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,_strVatios); _cmbVatios.setAdapter(AdaptadorVatios); AdaptadorVatios.notifyDataSetChanged();*/ break; case R.id.ErrorCmbTipoConexion: OcultarItemsGraficos(); break; } } @Override public void onNothingSelected(AdapterView<?> parent) { } }
JulianPoveda/AndroidData
src/form_amdata/Form_CensoCarga.java
Java
gpl-2.0
37,678
{template 'common/header'} <div class="main"> <form action="" method="post" class="form-horizontal form"> <h4>更新缓存</h4> <table class="tb"> <tr> <th><label for="">缓存类型</label></th> <td> <label for="type_data" class="checkbox inline"><input type="checkbox" name="type[]" value="data" id="type_data" checked="checked" /> 数据缓存</label><label for="type_template" class="checkbox inline"><input type="checkbox" name="type[]" value="template" id="type_template" checked="checked" /> 模板缓存</label> </td> </tr> <tr> <th></th> <td> <input name="submit" type="submit" value="提交" class="btn btn-primary span3" /> <input type="hidden" name="token" value="{$_W['token']}" /> </td> </tr> </table> </form> </div> {template 'common/footer'}
JoelPub/wordpress-amazon
order/themes/web/default/setting/updatecache.html
HTML
gpl-2.0
836
/***************************************************************************** * * Atmel Corporation * * File : main.c * Compiler : IAR C 3.10C Kickstart, AVR-GCC/avr-libc(>= 1.2.5) * Revision : $Revision: 1.7 $ * Date : $Date: Tuesday, June 07, 200 $ * Updated by : $Author: raapeland $ * * Support mail : avr@atmel.com * * Target platform : All AVRs with bootloader support * * AppNote : AVR109 - Self-programming * * Description : This Program allows an AVR with bootloader capabilities to * Read/write its own Flash/EEprom. To enter Programming mode * an input pin is checked. If this pin is pulled low, programming mode * is entered. If not, normal execution is done from $0000 * "reset" vector in Application area. * * Preparations : Use the preprocessor.xls file for obtaining a customized * defines.h file and linker-file code-segment definition for * the device you are compiling for. ****************************************************************************/ #include "defines.h" #include "serial.h" #include "flash.h" /* Uncomment the following to save code space */ //#define REMOVE_AVRPROG_SUPPORT //#define REMOVE_FUSE_AND_LOCK_BIT_SUPPORT //#define REMOVE_BLOCK_SUPPORT //#define REMOVE_EEPROM_BYTE_SUPPORT //#define REMOVE_FLASH_BYTE_SUPPORT /* * GCC doesn't optimize long int arithmetics very clever. As the * address only needs to be larger than 16 bits for the ATmega128 and * above (where flash consumptions isn't much of an issue as the * entire boot loader will still fit even into the smallest possible * boot loader section), save space by using a 16-bit variable for the * smaller devices. */ #ifdef LARGE_MEMORY # define ADDR_T unsigned long #else /* !LARGE_MEMORY */ # define ADDR_T unsigned int #endif /* LARGE_MEMORY */ #ifndef REMOVE_BLOCK_SUPPORT unsigned char BlockLoad(unsigned int size, unsigned char mem, ADDR_T *address); void BlockRead(unsigned int size, unsigned char mem, ADDR_T *address); /* BLOCKSIZE should be chosen so that the following holds: BLOCKSIZE*n = PAGESIZE, where n=1,2,3... */ #define BLOCKSIZE PAGESIZE #endif /* REMOVE_BLOCK_SUPPORT */ #ifdef __ICCAVR__ # define C_TASK __C_task #else /* ! __ICCAVR__ */ # define C_TASK /**/ #endif /* __ICCAVR__ */ /* Initialize UART */ void uartInit (void ) { /* Set frame format: 8 data 1 stop */ UCSRC = ((1<<URSEL)|(1<<UCSZ1)|(1<<UCSZ0)); /* Set the baud rate */ UBRRL = BRREG_VALUE; UBRRH = BRREG_VALUE>>8; /* Set the U2X mode */ UCSRA = (1<<U2X); /* Enable UART receiver and transmitter */ UCSRB = ( ( 1 << RXEN ) | ( 1 << TXEN ) ); } void sendchar(unsigned char c) { while ( !(UCSRA & (1<<UDRE)) ) // wait for empty data register ; UDR = c; // send it } unsigned char recchar(void) { while( !(UCSRA & (1 << RXC)) ) // wait for data ; return UDR; // return it } C_TASK void main(void) { ADDR_T address; unsigned int temp_int=0; unsigned char val; unsigned char dd, pd; /* Initialization */ void (*funcptr)( void ) = 0x0000; // Set up function pointer to RESET vector. PROGPORT |= (1<<PROG_NO); // Enable pull-up on PROG_NO line on PROGPORT. uartInit(); // initialize UART /* Branch to bootloader or application code? */ if( !(PROGPIN & (1<<PROG_NO)) ) // If PROGPIN is pulled low, enter programmingmode. { dd=DEBUGDDR;pd=DEBUGPORT;DEBUGDDR|=0x01;DEBUGPORT|=0x01; // DEBUG LED ON // Main loop for(;;) { val=recchar(); // Wait for command character. // Check autoincrement status. if(val=='a') { sendchar('Y'); // Yes, we do autoincrement. } // Set address. else if(val=='A') // Set address... { // NOTE: Flash addresses are given in words, not bytes. address=(recchar()<<8) | recchar(); // Read address high and low byte. sendchar('\r'); // Send OK back. } // Chip erase. else if(val=='e') { for(address = 0; address < APP_END;address += PAGESIZE) { // NOTE: Here we use address as a byte-address, not word-address, for convenience. _WAIT_FOR_SPM(); #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif _PAGE_ERASE( address ); #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif } sendchar('\r'); // Send OK back. } #ifndef REMOVE_BLOCK_SUPPORT // Check block load support. else if(val=='b') { sendchar('Y'); // Report block load supported. sendchar((BLOCKSIZE>>8) & 0xFF); // MSB first. sendchar(BLOCKSIZE&0xFF); // Report BLOCKSIZE (bytes). } // Start block load. else if(val=='B') { temp_int = (recchar()<<8) | recchar(); // Get block size. val = recchar(); // Get memtype. sendchar( BlockLoad(temp_int,val,&address) ); // Block load. } // Start block read. else if(val=='g') { temp_int = (recchar()<<8) | recchar(); // Get block size. val = recchar(); // Get memtype BlockRead(temp_int,val,&address); // Block read } #endif // REMOVE_BLOCK_SUPPORT #ifndef REMOVE_FLASH_BYTE_SUPPORT // Read program memory. else if(val=='R') { // Send high byte, then low byte of flash word. _WAIT_FOR_SPM(); _ENABLE_RWW_SECTION(); #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif sendchar( _LOAD_PROGRAM_MEMORY( (address << 1)+1 ) ); sendchar( _LOAD_PROGRAM_MEMORY( (address << 1)+0 ) ); #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif address++; // Auto-advance to next Flash word. } // Write program memory, low byte. else if(val=='c') { // NOTE: Always use this command before sending high byte. temp_int=recchar(); // Get low byte for later _FILL_TEMP_WORD. sendchar('\r'); // Send OK back. } // Write program memory, high byte. else if(val=='C') { temp_int |= (recchar()<<8); // Get and insert high byte. _WAIT_FOR_SPM(); #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif _FILL_TEMP_WORD( (address << 1), temp_int ); // Convert word-address to byte-address and fill. #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif address++; // Auto-advance to next Flash word. sendchar('\r'); // Send OK back. } // Write page. else if(val== 'm') { if( address >= (APP_END>>1) ) // Protect bootloader area. { sendchar('?'); } else { _WAIT_FOR_SPM(); #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif _PAGE_WRITE( address << 1 ); // Convert word-address to byte-address and write. #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif } sendchar('\r'); // Send OK back. } #endif // REMOVE_FLASH_BYTE_SUPPORT #ifndef REMOVE_EEPROM_BYTE_SUPPORT // Write EEPROM memory. else if (val == 'D') { _WAIT_FOR_SPM(); EEARL = address; // Setup EEPROM address. EEARH = (address >> 8); EEDR = recchar(); // Get byte. EECR |= (1<<EEMWE); // Write byte. EECR |= (1<<EEWE); while (EECR & (1<<EEWE)) // Wait for write operation to finish. ; address++; // Auto-advance to next EEPROM byte. sendchar('\r');// Send OK back. } // Read EEPROM memory. else if (val == 'd') { EEARL = address; // Setup EEPROM address. EEARH = (address >> 8); EECR |= (1<<EERE); // Read byte... sendchar(EEDR); // ...and send it back. address++; // Auto-advance to next EEPROM byte. } #endif // REMOVE_EEPROM_BYTE_SUPPORT #ifndef REMOVE_FUSE_AND_LOCK_BIT_SUPPORT // Write lockbits. else if(val=='l') { _WAIT_FOR_SPM(); _SET_LOCK_BITS( recchar() ); // Read and set lock bits. sendchar('\r'); // Send OK back. } #if defined(_GET_LOCK_BITS) // Read lock bits. else if(val=='r') { _WAIT_FOR_SPM(); sendchar( _GET_LOCK_BITS() ); } // Read fuse bits. else if(val=='F') { _WAIT_FOR_SPM(); sendchar( _GET_LOW_FUSES() ); } // Read high fuse bits. else if(val=='N') { _WAIT_FOR_SPM(); sendchar( _GET_HIGH_FUSES() ); } // Read extended fuse bits. else if(val=='Q') { _WAIT_FOR_SPM(); sendchar( _GET_EXTENDED_FUSES() ); } #endif // defined(_GET_LOCK_BITS) #endif // REMOVE_FUSE_AND_LOCK_BIT_SUPPORT #ifndef REMOVE_AVRPROG_SUPPORT // Enter and leave programming mode. else if((val=='P')||(val=='L')) { sendchar('\r'); // Nothing special to do, just answer OK. } // Exit bootloader. else if(val=='E') { _WAIT_FOR_SPM(); _ENABLE_RWW_SECTION(); sendchar('\r'); DEBUGDDR=dd;DEBUGPORT=pd; // get back what was on debug LED. funcptr(); // Jump to Reset vector 0x0000 in Application Section. } // Get programmer type. else if (val=='p') { sendchar('S'); // Answer 'SERIAL'. } // Return supported device codes. else if(val=='t') { #if PARTCODE+0 > 0 sendchar( PARTCODE ); // Supports only this device, of course. #endif // PARTCODE sendchar( 0 ); // Send list terminator. } // Set LED, clear LED and set device type. else if((val=='x')||(val=='y')||(val=='T')) { recchar(); // Ignore the command and it's parameter. sendchar('\r'); // Send OK back. } #endif // REMOVE_AVRPROG_SUPPORT // Return programmer identifier. else if(val=='S') { sendchar('A'); // Return 'AVRBOOT'. sendchar('V'); // Software identifier (aka programmer signature) is always 7 characters. sendchar('R'); sendchar('B'); sendchar('O'); sendchar('O'); sendchar('T'); } // Return software version. else if(val=='V') { sendchar('1'); sendchar('5'); } // Return signature bytes. else if(val=='s') { sendchar( SIGNATURE_BYTE_3 ); sendchar( SIGNATURE_BYTE_2 ); sendchar( SIGNATURE_BYTE_1 ); } // The last command to accept is ESC (synchronization). else if(val!=0x1b) // If not ESC, then it is unrecognized... { sendchar('?'); } } // end: for(;;) } else { _WAIT_FOR_SPM(); _ENABLE_RWW_SECTION(); funcptr(); // Jump to Reset vector 0x0000 in Application Section. } } // end: main #ifndef REMOVE_BLOCK_SUPPORT unsigned char BlockLoad(unsigned int size, unsigned char mem, ADDR_T *address) { unsigned char buffer[BLOCKSIZE]; unsigned int data; ADDR_T tempaddress; // EEPROM memory type. if(mem=='E') { /* Fill buffer first, as EEPROM is too slow to copy with UART speed */ for(tempaddress=0;tempaddress<size;tempaddress++) buffer[tempaddress] = recchar(); /* Then program the EEPROM */ _WAIT_FOR_SPM(); for( tempaddress=0; tempaddress < size; tempaddress++) { EEARL = *address; // Setup EEPROM address EEARH = ((*address) >> 8); EEDR = buffer[tempaddress]; // Get byte. EECR |= (1<<EEMWE); // Write byte. EECR |= (1<<EEWE); while (EECR & (1<<EEWE)) // Wait for write operation to finish. ; (*address)++; // Select next EEPROM byte } return '\r'; // Report programming OK } // Flash memory type. else if(mem=='F') { // NOTE: For flash programming, 'address' is given in words. (*address) <<= 1; // Convert address to bytes temporarily. tempaddress = (*address); // Store address in page. do { data = recchar(); data |= (recchar() << 8); #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif _FILL_TEMP_WORD(*address,data); #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif (*address)+=2; // Select next word in memory. size -= 2; // Reduce number of bytes to write by two. } while(size); // Loop until all bytes written. #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif _PAGE_WRITE(tempaddress); #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif _WAIT_FOR_SPM(); _ENABLE_RWW_SECTION(); (*address) >>= 1; // Convert address back to Flash words again. return '\r'; // Report programming OK } // Invalid memory type? else { return '?'; } } void BlockRead(unsigned int size, unsigned char mem, ADDR_T *address) { // EEPROM memory type. if (mem=='E') // Read EEPROM { do { EEARL = *address; // Setup EEPROM address EEARH = ((*address) >> 8); (*address)++; // Select next EEPROM byte EECR |= (1<<EERE); // Read EEPROM sendchar(EEDR); // Transmit EEPROM dat ato PC size--; // Decrease number of bytes to read } while (size); // Repeat until all block has been read } // Flash memory type. else if(mem=='F') { (*address) <<= 1; // Convert address to bytes temporarily. do { #ifdef __ICCAVR__ #pragma diag_suppress=Pe1053 // Suppress warning for conversion from long-type address to flash ptr. #endif sendchar( _LOAD_PROGRAM_MEMORY(*address) ); sendchar( _LOAD_PROGRAM_MEMORY((*address)+1) ); #ifdef __ICCAVR__ #pragma diag_default=Pe1053 // Back to default. #endif (*address) += 2; // Select next word in memory. size -= 2; // Subtract two bytes from number of bytes to read } while (size); // Repeat until all block has been read (*address) >>= 1; // Convert address back to Flash words again. } } #endif /* REMOVE_BLOCK_SUPPORT */ /* end of file */
koudis/robot
smile/bootloader/mega/main.c
C
gpl-2.0
16,458
use strict; package eosort; use Unicode::String qw(utf8); my @_order_kodoj = ('A'..'Z','a'..'z'); ############################################## # cxiuj literoj en unu linio estas samvaloroj # ili estas ordigita aux tio ordo ############################################## my @_order_ci = ( ['a', 'A', '\u00E1', '\u00E0', '\u00E2', '\u00C0', '\u00C2', '\u00E4', '\u00C4', '\u00E6', '\u00C6'], ['b', 'B'], ['c', 'C', '\u00E7', '\u00C7'], ['\u0109', '\u0108'], ['d', 'D'], ['e', 'E', '\u00E9', '\u00C9', '\u00E8', '\u00C8', '\u00EA', '\u00CA', '\u00EB', '\u00CB'], ['f', 'F'], ['g', 'G'], ['\u011D', '\u011C'], ['h', 'H'], ['\u0125', '\u0124'], ['i', 'I', '\u00ED', '\u00CD', '\u00EC', '\u00CC', '\u00EE', '\u00CE', '\u00EF', '\u00CF'], ['j', 'J'], ['\u0135', '\u0134'], # jx JX ['k', 'K'], ['l', 'L'], ['m', 'M'], ['n', 'N'], ['o', 'O', '\u00F3', '\u00D3', '\u00F2', '\u00D2', '\u00F4', '\u00D4', '\u00F6', '\u00D6', '\u0153', '\u0152'], ['p', 'P'], ['q', 'Q'], ['r', 'R'], ['s', 'S', '\u00DF'], # s S ß ['\u015D', '\u015C'], # sx SX ['t', 'T'], ['u', 'U', '\u00F9', '\u00D9', '\u00FB', '\u00DB', '\u00FC', '\u00DC'], # u U . . . . ü Ü ['\u016D', '\u016C'], # ux, UX ['v', 'V'], ['w', 'W'], ['x', 'X'], ['y', 'Y'], ['z', 'Z'], [',', '.', '\''], ); ##################################################### # cxiuj postaj literoj estas egala al la unua litero ##################################################### my @_order_ci2 = ( [ '\u0401', # c_Jo '\u0451'], # c_jo [ '\u0404', # c_Jeu '\u0454'], # c_jeu [ '\u0406', # c_Ib '\u0456'], # c_ib [ '\u0407', # c_Ji '\u0457'], # c_ji [ '\u040E', # c_W '\u045E'], # c_w [ '\u0410', # c_A '\u0430'], # c_a [ '\u0411', # c_B '\u0431'], # c_b [ '\u0412', # c_V '\u0432'], # c_v [ '\u0413', # c_G '\u0433'], # c_g [ '\u0414', # c_D '\u0434'], # c_d [ '\u0415', # c_Je '\u0435'], # c_je [ '\u0416', # c_Zh '\u0436'], # c_zh [ '\u0417', # c_Z '\u0437'], # c_z [ '\u0418', # c_I '\u0438'], # c_i [ '\u0419', # c_J '\u0439'], # c_j [ '\u041A', # c_K '\u043A'], # c_k [ '\u041B', # c_L '\u043B'], # c_l [ '\u041C', # c_M '\u043C'], # c_m [ '\u041D', # c_N '\u043D'], # c_n [ '\u041E', # c_O '\u043E'], # c_o [ '\u041F', # c_P '\u043F'], # c_p [ '\u0420', # c_R '\u0440'], # c_r [ '\u0421', # c_S '\u0441'], # c_s [ '\u0422', # c_T '\u0442'], # c_t [ '\u0423', # c_U '\u0443'], # c_u [ '\u0424', # c_F '\u0444'], # c_f [ '\u0425', # c_H '\u0445'], # c_h [ '\u0426', # c_C '\u0446'], # c_c [ '\u0427'], # c_Ch [ '\u0428', # c_Sh '\u0448'], # c_sh [ '\u0429', # c_Shch '\u0449'], # c_shch [ '\u042B', # c_Y '\u044B'], # c_y [ '\u042C', # c_Mol '\u044C'], # c_mol [ '\u042D', # c_E '\u044D'], # c_e [ '\u042E', # c_Ju '\u044E'], # c_ju [ '\u042F', # c_Ja '\u044F'], # c_ja [ '\u0447'], # c_ch [ '\u044A'], # c_malmol [ '\u0490', # c_Gu '\u0491'], # c_gu # lingvo araba [ '\u0627', # alif '\u0623', # alif_hamza_sure '\u0625', # alif_hamza_sube '\u0622', # alif_madda '\u0671', # alif_wasla '\u0621'], # hamza ); ################################################### # cxio unua litero egalas al la teksto en dua loko ################################################### #my @_order_ci3 = ( #[ '\u0153', 'oe' ], # oe lig #[ '\u0152', 'oe' ], # OE lig #[ '\u00E6', 'ae' ], # ae lig #[ '\u00C6', 'ae' ], # ae lig #); ############################################## sub new { my $type = shift; my %params = @_; my $self = {dbg=>$params{dbg}}; my %mapper_ci; my $count = $#_order_ci; print "count = $count\n" if $self->{dbg}; die "Ne suficxe da kodoj" if $#_order_kodoj < $count; for my $i (0..$count) { my $aref = $_order_ci[$i]; print "i = $i\n" if $self->{dbg}; my $kodo = $_order_kodoj[$i]; print "kodo = $kodo\n" if $self->{dbg}; foreach (@$aref) { my $u = utf8($_); if (/^\\[u](....)$/) { print "u $1\n" if $self->{dbg}; $u->hex($1); } my @lit = $u->unpack('U*'); die "pli ol unu unikodo letero: $u" if $#lit > 0; print "lit = $lit[0], lit = $_\n" if $self->{dbg}; $mapper_ci{$lit[0]} = $kodo; } print "\n" if $self->{dbg}; } my $count = $#_order_ci2; print "count = $count\n" if $self->{dbg}; for my $i (0..$count) { my $aref = $_order_ci2[$i]; print "$i: " if $self->{dbg}; my $start_val; foreach (@$aref) { my $u = utf8($_); if (/^\\[u](....)$/) { print "u $1 " if $self->{dbg}; $u->hex($1); } my @lit = $u->unpack('U*'); die "pli ol unu unikodo letero: ".$u->utf8() if $#lit > 0; $start_val = $lit[0] unless $start_val; print "$lit[0] -> $start_val " if $self->{dbg}; $u->chr($start_val); $mapper_ci{$lit[0]} = $u->utf8(); } print "\n" if $self->{dbg}; } # my $count = $#_order_ci3; # print "ci3 count = $count\n" if $self->{dbg}; # for my $i (0..$count) { # my $aref = $_order_ci3[$i]; # print "$i: " if $self->{dbg}; # # my $u = utf8($$aref[0]); # if ($$aref[0] =~ /^\\[u](....)$/) { # print "u $1 " if $self->{dbg}; # $u->hex($1); # } # my @lit = $u->unpack('U*'); # die "pli ol unu unikodo letero: ".$u->utf8() if $#lit > 0; # print "$lit[0] -> $$aref[1] " if $self->{dbg}; # my @a = utf8($$aref[1])->unpack('U*'); # print join("-", map {$mapper_ci{$_}} @a) if $self->{dbg}; # $mapper_ci{$lit[0]} = join("", map {$mapper_ci{$_}} @a); # # print "\n" if $self->{dbg}; # } $self->{mapper_ci} = \%mapper_ci; bless $self, $type; } sub remap_ci { my $self = shift; my $u = shift; $u =~ s/[- ]//g; $u = utf8($u); print "remap_ci ($u)\n" if $self->{dbg}; print "$_ len=".$u->length()."\n" if $self->{dbg}; my @lit = $u->unpack('U*'); print "lit = ".join('-', @lit)."\n" if $self->{dbg}; for (my $i = $#lit; $i >= 0; $i--) { print "test $i: $lit[$i]\n" if $self->{dbg}; splice(@lit,$i,1) if $lit[$i] == 40 or $lit[$i] == 41 or $lit[$i] == 44; } print "lit = ".join('-', @lit)."\n" if $self->{dbg}; my $mapref = $self->{mapper_ci}; foreach (@lit) { print "lit = $_ -> $$mapref{$_}\n" if $self->{dbg}; if (exists($$mapref{$_})) { $_ = $$mapref{$_} } else { print "noexist: $_\n" if $self->{dbg}; $u->chr($_); $_ = $u->utf8(); print "lit = -> $_\n" if $self->{dbg}; } } print "lit = ".join('-', @lit)."\n" if $self->{dbg}; return join('', @lit); } sub remap_ci_lng { my $self = shift; my $u = utf8(shift); my $lng = shift; print "remap_ci_lng (".$u->utf8().", $lng)\n" if $self->{dbg}; }
revuloj/voko-iloj
cgi/perllib/eosort.pm
Perl
gpl-2.0
6,648
//----------------------------------------------------------------------------- // boost detail/templated_streams.hpp header file // See http://www.boost.org for updates, documentation, and revision history. //----------------------------------------------------------------------------- // // Copyright (c) 2013 John Maddock, Antony Polukhin // // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_DETAIL_BASIC_POINTERBUF_HPP #define BOOST_DETAIL_BASIC_POINTERBUF_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) # pragma once #endif #include "boost/config.hpp" #include <streambuf> namespace boost { namespace detail { // // class basic_pointerbuf: // acts as a stream buffer which wraps around a pair of pointers: // template <class charT, class BufferT > class basic_pointerbuf : public BufferT { protected: typedef BufferT base_type; typedef basic_pointerbuf<charT, BufferT> this_type; typedef typename base_type::int_type int_type; typedef typename base_type::char_type char_type; typedef typename base_type::pos_type pos_type; typedef ::std::streamsize streamsize; typedef typename base_type::off_type off_type; public: basic_pointerbuf() : base_type() { setbuf(0, 0); } const charT* getnext() { return this->gptr(); } #ifndef BOOST_NO_USING_TEMPLATE using base_type::pptr; using base_type::pbase; #else charT* pptr() const { return base_type::pptr(); } charT* pbase() const { return base_type::pbase(); } #endif protected: base_type* setbuf(char_type* s, streamsize n); typename this_type::pos_type seekpos(pos_type sp, ::std::ios_base::openmode which); typename this_type::pos_type seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which); private: basic_pointerbuf& operator=(const basic_pointerbuf&); basic_pointerbuf(const basic_pointerbuf&); }; template<class charT, class BufferT> BufferT* basic_pointerbuf<charT, BufferT>::setbuf(char_type* s, streamsize n) { this->setg(s, s, s + n); return this; } template<class charT, class BufferT> typename basic_pointerbuf<charT, BufferT>::pos_type basic_pointerbuf<charT, BufferT>::seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which) { typedef typename boost::int_t<sizeof(way) * CHAR_BIT>::least cast_type; if(which & ::std::ios_base::out) return pos_type(off_type(-1)); std::ptrdiff_t size = this->egptr() - this->eback(); std::ptrdiff_t pos = this->gptr() - this->eback(); charT* g = this->eback(); switch(static_cast<cast_type>(way)) { case ::std::ios_base::beg: if((off < 0) || (off > size)) return pos_type(off_type(-1)); else this->setg(g, g + off, g + size); break; case ::std::ios_base::end: if((off < 0) || (off > size)) return pos_type(off_type(-1)); else this->setg(g, g + size - off, g + size); break; case ::std::ios_base::cur: { std::ptrdiff_t newpos = static_cast<std::ptrdiff_t>(pos + off); if((newpos < 0) || (newpos > size)) return pos_type(off_type(-1)); else this->setg(g, g + newpos, g + size); break; } default: ; } #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4244) #endif return static_cast<pos_type>(this->gptr() - this->eback()); #ifdef BOOST_MSVC #pragma warning(pop) #endif } template<class charT, class BufferT> typename basic_pointerbuf<charT, BufferT>::pos_type basic_pointerbuf<charT, BufferT>::seekpos(pos_type sp, ::std::ios_base::openmode which) { if(which & ::std::ios_base::out) return pos_type(off_type(-1)); off_type size = static_cast<off_type>(this->egptr() - this->eback()); charT* g = this->eback(); if(off_type(sp) <= size) { this->setg(g, g + off_type(sp), g + size); } return pos_type(off_type(-1)); } }} // namespace boost::detail #endif // BOOST_DETAIL_BASIC_POINTERBUF_HPP
andrewroldugin/art
third_party/boost/boost/detail/basic_pointerbuf.hpp
C++
gpl-2.0
4,220
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>> <?php print $user_picture; ?> <?php print render($title_prefix); ?> <?php if (!$page): ?> <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2> <?php endif; ?> <?php print render($title_suffix); ?> <?php if ($display_submitted): ?> <div class="submitted"><?php print $submitted ?></div> <?php endif; ?> <?php if($node->type == 'forum' || $node->type == 'blog') { ?> <div class="follow-block"> <?php if(follow_get($node->nid)) { //#block-system-main echo l('Avfölj', 'unfollow/'.$node->nid, array( 'attributes' => array( 'class' => 'unfollow', ), 'query' => array('next' => current_path()), 'fragment' => 'block-system-main', // 'external' => TRUE )); } else { echo l('Följ', 'follow/'.$node->nid, array( 'attributes' => array( 'class' => 'follow', ), 'query' => array('next' => current_path()), 'fragment' => 'block-system-main', // 'external' => TRUE )); } ?> </div> <? } ?> <div class="content clearfix"<?php print $content_attributes; ?>> <?php // We hide the comments and links now so that we can render them later. hide($content['comments']); hide($content['links']); print render($content); ?> </div> <div class="clearfix"> <?php if (!empty($content['links'])): ?> <div class="links"><?php print render($content['links']); ?></div> <?php endif; ?> <?php print render($content['comments']); ?> </div> </div>
lawik/dionysos-drupal
sites/all/themes/corporateclean/node.tpl.php
PHP
gpl-2.0
1,873
<!DOCTYPE html> <html lang="zh-cn"> <!-- Mirrored from www.w3school.com.cn/tiy/t.asp?f=css3_text-overflow by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 03:41:37 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=GB2312" /><!-- /Added by HTTrack --> <head> <meta charset="utf-8" /> <meta name="robots" content="all" /> <meta name="author" content="w3school.com.cn" /> <link rel="stylesheet" type="text/css" href="tc.css" /> <title>W3School在线测试工具 V2</title> </head> <body id="editor"> <div id="wrapper"> <div id="header"> <h1>W3School TIY</h1> <div id="ad"> <script type="text/javascript"><!-- google_ad_client = "pub-3381531532877742"; /* 728x90, tiy_big */ google_ad_slot = "7947784850"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="../../pagead2.googlesyndication.com/pagead/f.txt"> </script> </div> </div> <form action="http://www.w3school.com.cn/tiy/v.asp" method="post" id="tryitform" name="tryitform" onSubmit="validateForm();" target="i"> <div id="butt"> <input type="button" value="提交代码" onClick="submitTryit()"> </div> <div id="CodeArea"> <h2>编辑您的代码:</h2> <textarea id="TestCode" wrap="logical"> <!DOCTYPE html> <html> <head> <style> div.test { white-space:nowrap; width:12em; overflow:hidden; border:1px solid #000000; } </style> </head> <body> <p>下面两个 div 包含无法在框中容纳的长文本。正如您所见,文本被修剪了。</p> <p>这个 div 使用 "text-overflow:ellipsis" :</p> <div class="test" style="text-overflow:ellipsis;">This is some long text that will not fit in the box</div> <p>这个 div 使用 "text-overflow:clip":</p> <div class="test" style="text-overflow:clip;">This is some long text that will not fit in the box</div> </body> <!-- Mirrored from www.w3school.com.cn/tiy/t.asp?f=css3_text-overflow by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 03:41:37 GMT --> </html> </textarea> </div> <input type="hidden" id="code" name="code" /> <input type="hidden" id="bt" name="bt" /> </form> <div id="result"> <h2>查看结果:</h2> <iframe frameborder="0" name="i" src="loadtext3366.html?f=css3_text-overflow"></iframe> </div> <div id="footer"> <p>请在上面的文本框中编辑您的代码,然后单击提交按钮测试结果。<a href="../index-2.html" title="W3School 在线教程">w3school.com.cn</a></p> </div> </div> <script type="text/javascript"> function submitTryit() { var t=document.getElementById("TestCode").value; t=t.replace(/=/gi,"w3equalsign"); t=t.replace(/script/gi,"w3scrw3ipttag"); document.getElementById("code").value=t; document.getElementById("tryitform").action="v.html"; validateForm(); document.getElementById("tryitform").submit(); } function validateForm() { var code=document.getElementById("code").value; if (code.length>5000) { document.getElementById("code").value="<h1>Error</h1>"; } } </script> </body> </html>
platinhom/ManualHom
Coding/W3School/W3CN/www.w3school.com.cn/tiy/t3366.html
HTML
gpl-2.0
2,995
#!/usr/bin/env ruby require 'ostruct' require 'optparse' require 'gtruby' def assert raise "Assertion failed !" unless yield end Lcpinterval = Struct.new("Lcpinterval",:lcp, :lb, :rb, :brchildlist) class LcpSufstream def initialize(indexname) @lcpfile = File.new(indexname + ".lcp","r") @lcpfile.read(1) @llvfile = File.new(indexname + ".llv","r") @suffile = File.new(indexname + ".suf","r") @totallength = nil @specialcharacters = nil @intbytes=nil @mirrored=nil @lastsuftabvalue = nil File.new(indexname + ".prj","r").each_line do |line| m = line.match(/^totallength=(\d+)/) if m @totallength=m[1].to_i end m = line.match(/^specialcharacters=(\d+)/) if m @specialcharacters=m[1].to_i end m = line.match(/^integersize=(\d+)/) if m if m[1].to_i == 64 @intbytes=8 else @intbytes=4 end end m = line.match(/^mirrored=(\d+)/) if m if m[1].to_i == 0 @mirrored=false else @mirrored=true end end end el = GT::EncseqLoader.new @encseq = el.load(indexname) if @mirrored @encseq.mirror() end end def getencseq() return @encseq end def next() @lcpfile.each_byte do |cc| suftabvalue = @suffile.read(@intbytes).unpack("L")[0] if cc == 255 idxvalue = @llvfile.read(@intbytes) lcpvalue = @llvfile.read(@intbytes) yield lcpvalue.unpack("L")[0],suftabvalue else yield cc,suftabvalue end end @lastsuftabvalue = @suffile.read(@intbytes).unpack("L")[0] end def numofnonspecials() return @totallength - @specialcharacters end def lastsuftabvalue_get() return @lastsuftabvalue end end def processlcpinterval(itv) puts "N #{itv.lcp} #{itv.lb} #{itv.rb}" end def enumlcpintervals(lcpsufstream) stack = Array.new() stack.push(Lcpinterval.new(0,0,nil,[])) idx = 0 lcpsufstream.next() do |lcpvalue,previoussuffix| lb = idx while lcpvalue < stack.last.lcp lastinterval = stack.pop lastinterval.rb = idx processlcpinterval(lastinterval) lb = lastinterval.lb end if lcpvalue > stack.last.lcp stack.push(Lcpinterval.new(lcpvalue,lb,nil,[])) end idx += 1 end lastinterval = stack.pop lastinterval.rb = idx processlcpinterval(lastinterval) end def showbool(b) if b return "1" else return "0" end end Edge = Struct.new("Edge",:kind,:firstedge,:parent,:goal) def enumlcpintervaltree(lcpsufstream) stack = Array.new() lastinterval = nil firstedgefromroot = true firstedge = false prevlcpvalue = 0 storesuffix = nil stack.push(Lcpinterval.new(0,0,nil,[])) nonspecials = lcpsufstream.numofnonspecials() idx=0 lcpsufstream.next() do |lcpvalue,previoussuffix| storesuffix = previoussuffix if idx >= nonspecials break end if lcpvalue <= stack.last.lcp if stack.last.lcp > 0 or not firstedgefromroot firstedge = false else firstedge = true firstedgefromroot = false end assert{stack.last.lcp == [prevlcpvalue,lcpvalue].max} yield Edge.new(0,firstedge,stack.last,previoussuffix) end assert {lastinterval.nil?} while lcpvalue < stack.last.lcp lastinterval = stack.pop lastinterval.rb = idx yield Edge.new(2,nil,lastinterval,nil) if lcpvalue <= stack.last.lcp firstedge = false if stack.last.lcp > 0 or not firstedgefromroot firstedge = false else firstedge = true firstedgefromroot = false end yield Edge.new(1,firstedge,stack.last,lastinterval) stack.last.brchildlist.push(lastinterval) lastinterval = nil end end if not lastinterval.nil? assert{lcpvalue > stack.last.lcp} end if lastinterval.nil? assert{lcpvalue>=stack.last.lcp} end if lcpvalue > stack.last.lcp if not lastinterval.nil? stack.push(Lcpinterval.new(lcpvalue,lastinterval.lb,nil,[lastinterval])) yield Edge.new(1,true,stack.last,lastinterval) lastinterval = nil else stack.push(Lcpinterval.new(lcpvalue,idx,nil,[])) yield Edge.new(0,true,stack.last,previoussuffix) end end assert {lcpvalue == stack.last.lcp} prevlcpvalue = lcpvalue idx += 1 end assert {stack.length > 0} if stack.last.lcp > 0 yield Edge.new(0,false,stack.last,lcpsufstream.lastsuftabvalue_get()) yield Edge.new(2,nil,stack.last,nil) end end def parseargs(argv) options = OpenStruct.new options.itv = false options.tree = false options.minlen = nil options.indexname = nil opts = OptionParser.new opts.on("-i","--itv","output lcp-intervals") do |x| options.itv = true end opts.on("-t","--tree","output lcp-intervaltree") do |x| options.tree = true end opts.on("-m","--m NUM","output suffix-prefix matches of given length") do |x| options.minlen = x.to_i end rest = opts.parse(argv) if rest.empty? STDERR.puts "Usage: #{$0}: missing indexname" exit 1 elsif rest.length != 1 STDERR.puts "Usage: #{$0}: too many indexnames" exit 1 else options.indexname = rest[0] end return options end def showleafedge(firstedge,parent,suffix) puts "L #{showbool(firstedge)} #{parent.lcp} #{parent.lb} #{suffix}" end def showbranchedge(firstedge,parent,toitv) print "B #{showbool(firstedge)} #{parent.lcp} #{parent.lb} " puts "#{toitv.lcp} #{toitv.lb}" end Resource = Struct.new("Resource",:encseq,:minlen,:firstinW,:wset,:lset) def itv2key(itv) return "#{itv.lcp} #{itv.lb}" end def spmleafedge(res,firstedge,itv,pos) if itv.lcp >= res.minlen # puts "leafedge from #{itv.lcp} #{itv.lb} to #{pos}" if firstedge res.firstinW[itv2key(itv)] = res.wset.length end if pos == 0 or res.encseq.get_encoded_char(pos-1) == 255 idx = res.encseq.seqnum(pos) res.wset.push(idx) end if pos + itv.lcp == res.encseq.total_length or res.encseq.get_encoded_char(pos + itv.lcp) == 255 idx = res.encseq.seqnum(pos) res.lset.push(idx) end end end def spmbranchedge(res,firstedge,itv,itvprime) if itv.lcp >= res.minlen and firstedge # print "branch from #{itv.lcp} #{itv.lb} #{itv.rb} to " # puts "#{itvprime.lcp} #{itvprime.lb} #{itvprime.rb}" res.firstinW[itv2key(itv)] = res.firstinW[itv2key(itvprime)] end end def spmlcpinterval(res,itv) if itv.lcp >= res.minlen # puts "itv #{itv.lcp} #{itv.lb}" firstpos = res.firstinW[itv2key(itv)] res.lset.each do |l| firstpos.upto(res.wset.length-1) do |i| puts "#{l} #{res.wset[i]} #{itv.lcp}" end end res.lset = [] else res.wset = [] end end options = parseargs(ARGV) lcpsufstream = LcpSufstream.new(options.indexname) if options.itv enumlcpintervals(lcpsufstream) elsif options.tree enumlcpintervaltree(lcpsufstream) do |item| if item.kind == 0 showleafedge(item.firstedge,item.parent,item.goal) elsif item.kind == 1 showbranchedge(item.firstedge,item.parent,item.goal) end end elsif not options.minlen.nil? res = Resource.new(lcpsufstream.getencseq(), options.minlen,Hash.new(),Array.new(),Array.new()) enumlcpintervaltree(lcpsufstream) do |item| if item.kind == 0 spmleafedge(res,item.firstedge,item.parent,item.goal) elsif item.kind == 1 spmbranchedge(res,item.firstedge,item.parent,item.goal) else spmlcpinterval(res,item.parent) end end end
bioh4x/NeatFreq
lib/genometools-1.4.1/scripts/lcpintervals.rb
Ruby
gpl-2.0
7,646
## This file is part of Invenio. ## Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio 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 of the ## License, or (at your option) any later version. ## ## Invenio 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 Invenio; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. """ This is the Create_Modify_Interface function (along with its helpers). It is used by WebSubmit for the "Modify Bibliographic Information" action. """ __revision__ = "$Id$" import os import re import time import pprint import cgi from invenio.dbquery import run_sql from invenio.websubmit_config import InvenioWebSubmitFunctionError from invenio.websubmit_functions.Retrieve_Data import Get_Field from invenio.errorlib import register_exception from invenio.htmlutils import escape_javascript_string from invenio.messages import gettext_set_language, wash_language def Create_Modify_Interface_getfieldval_fromfile(cur_dir, fld=""): """Read a field's value from its corresponding text file in 'cur_dir' (if it exists) into memory. Delete the text file after having read-in its value. This function is called on the reload of the modify-record page. This way, the field in question can be populated with the value last entered by the user (before reload), instead of always being populated with the value still found in the DB. """ fld_val = "" if len(fld) > 0 and os.access("%s/%s" % (cur_dir, fld), os.R_OK|os.W_OK): fp = open( "%s/%s" % (cur_dir, fld), "r" ) fld_val = fp.read() fp.close() try: os.unlink("%s/%s"%(cur_dir, fld)) except OSError: # Cannot unlink file - ignore, let WebSubmit main handle this pass fld_val = fld_val.strip() return fld_val def Create_Modify_Interface_getfieldval_fromDBrec(fieldcode, recid): """Read a field's value from the record stored in the DB. This function is called when the Create_Modify_Interface function is called for the first time when modifying a given record, and field values must be retrieved from the database. """ fld_val = "" if fieldcode != "": for next_field_code in [x.strip() for x in fieldcode.split(",")]: fld_val += "%s\n" % Get_Field(next_field_code, recid) fld_val = fld_val.rstrip('\n') return fld_val def Create_Modify_Interface_transform_date(fld_val): """Accept a field's value as a string. If the value is a date in one of the following formats: DD Mon YYYY (e.g. 23 Apr 2005) YYYY-MM-DD (e.g. 2005-04-23) ...transform this date value into "DD/MM/YYYY" (e.g. 23/04/2005). """ if re.search("^[0-9]{2} [a-z]{3} [0-9]{4}$", fld_val, re.IGNORECASE) is not None: try: fld_val = time.strftime("%d/%m/%Y", time.strptime(fld_val, "%d %b %Y")) except (ValueError, TypeError): # bad date format: pass elif re.search("^[0-9]{4}-[0-9]{2}-[0-9]{2}$", fld_val, re.IGNORECASE) is not None: try: fld_val = time.strftime("%d/%m/%Y", time.strptime(fld_val, "%Y-%m-%d")) except (ValueError,TypeError): # bad date format: pass return fld_val def Create_Modify_Interface(parameters, curdir, form, user_info=None): """ Create an interface for the modification of a document, based on the fields that the user has chosen to modify. This avoids having to redefine a submission page for the modifications, but rely on the elements already defined for the initial submission i.e. SBI action (The only page that needs to be built for the modification is the page letting the user specify a document to modify). This function should be added at step 1 of your modification workflow, after the functions that retrieves report number and record id (Get_Report_Number, Get_Recid). Functions at step 2 are the one executed upon successful submission of the form. Create_Modify_Interface expects the following parameters: * "fieldnameMBI" - the name of a text file in the submission working directory that contains a list of the names of the WebSubmit fields to include in the Modification interface. These field names are separated by"\n" or "+". * "prefix" - some content displayed before the main modification interface. Can contain HTML (i.e. needs to be pre-escaped). The prefix can make use of Python string replacement for common values (such as 'rn'). Percent signs (%) must consequently be escaped (with %%). * "suffix" - some content displayed after the main modification interface. Can contain HTML (i.e. needs to be pre-escaped). The suffix can make use of Python string replacement for common values (such as 'rn'). Percent signs (%) must consequently be escaped (with %%). * "button_label" - the label for the "END" button. * "button_prefix" - some content displayed before the button to submit the form. Can contain HTML (i.e. needs to be pre-escaped). The prefix can make use of Python string replacement for common values (such as 'rn'). Percent signs (%) must consequently be escaped (with %%). * "dates_conversion" - by default, values interpreted as dates are converted to their 'DD/MM/YYYY' format, whenever possible. Set another value for a different behaviour (eg. 'none' for no conversion) Given the list of WebSubmit fields to be included in the modification interface, the values for each field are retrieved for the given record (by way of each WebSubmit field being configured with a MARC Code in the WebSubmit database). An HTML FORM is then created. This form allows a user to modify certain field values for a record. The file referenced by 'fieldnameMBI' is usually generated from a multiple select form field): users can then select one or several fields to modify Note that the function will display WebSubmit Response elements, but will not be able to set an initial value: this must be done by the Response element iteself. Additionally the function creates an internal field named 'Create_Modify_Interface_DONE' on the interface, that can be retrieved in curdir after the form has been submitted. This flag is an indicator for the function that displayed values should not be retrieved from the database, but from the submitted values (in case the page is reloaded). You can also rely on this value when building your WebSubmit Response element in order to retrieve value either from the record, or from the submission directory. """ ln = wash_language(form['ln']) _ = gettext_set_language(ln) global sysno,rn t = "" # variables declaration fieldname = parameters['fieldnameMBI'] prefix = '' suffix = '' end_button_label = 'END' end_button_prefix = '' date_conversion_setting = '' if parameters.has_key('prefix'): prefix = parameters['prefix'] if parameters.has_key('suffix'): suffix = parameters['suffix'] if parameters.has_key('button_label') and parameters['button_label']: end_button_label = parameters['button_label'] if parameters.has_key('button_prefix'): end_button_prefix = parameters['button_prefix'] if parameters.has_key('dates_conversion'): date_conversion_setting = parameters['dates_conversion'] # Path of file containing fields to modify the_globals = { 'doctype' : doctype, 'action' : action, 'act' : action, ## for backward compatibility 'step' : step, 'access' : access, 'ln' : ln, 'curdir' : curdir, 'uid' : user_info['uid'], 'uid_email' : user_info['email'], 'rn' : rn, 'last_step' : last_step, 'action_score' : action_score, '__websubmit_in_jail__' : True, 'form': form, 'sysno': sysno, 'user_info' : user_info, '__builtins__' : globals()['__builtins__'], 'Request_Print': Request_Print } if os.path.exists("%s/%s" % (curdir, fieldname)): fp = open( "%s/%s" % (curdir, fieldname), "r" ) fieldstext = fp.read() fp.close() fieldstext = re.sub("\+","\n", fieldstext) fields = fieldstext.split("\n") else: res = run_sql("SELECT fidesc FROM sbmFIELDDESC WHERE name=%s", (fieldname,)) if len(res) == 1: fields = res[0][0].replace(" ", "") fields = re.findall("<optionvalue=.*>", fields) regexp = re.compile("""<optionvalue=(?P<quote>['|"]?)(?P<value>.*?)(?P=quote)""") fields = [regexp.search(x) for x in fields] fields = [x.group("value") for x in fields if x is not None] fields = [x for x in fields if x not in ("Select", "select")] else: raise InvenioWebSubmitFunctionError("cannot find fields to modify") #output some text if not prefix: t += "<center bgcolor=\"white\">The document <b>%s</b> has been found in the database.</center><br />Please modify the following fields:<br />Then press the '%s' button at the bottom of the page<br />\n" % \ (rn, cgi.escape(_(end_button_label))) else: t += prefix % the_globals for field in fields: subfield = "" value = "" marccode = "" text = "" # retrieve and display the modification text t = t + "<FONT color=\"darkblue\">\n" res = run_sql("SELECT modifytext FROM sbmFIELDDESC WHERE name=%s", (field,)) if len(res)>0: t = t + "<small>%s</small> </FONT>\n" % res[0][0] # retrieve the marc code associated with the field res = run_sql("SELECT marccode FROM sbmFIELDDESC WHERE name=%s", (field,)) if len(res) > 0: marccode = res[0][0] # then retrieve the previous value of the field if os.path.exists("%s/%s" % (curdir, "Create_Modify_Interface_DONE")): # Page has been reloaded - get field value from text file on server, not from DB record value = Create_Modify_Interface_getfieldval_fromfile(curdir, field) else: # First call to page - get field value from DB record value = Create_Modify_Interface_getfieldval_fromDBrec(marccode, sysno) if date_conversion_setting != 'none': # If field is a date value, transform date into format DD/MM/YYYY: value = Create_Modify_Interface_transform_date(value) res = run_sql("SELECT * FROM sbmFIELDDESC WHERE name=%s", (field,)) # kwalitee: disable=sql if len(res) > 0: element_type = res[0][3] numcols = res[0][6] numrows = res[0][5] size = res[0][4] maxlength = res[0][7] val = res[0][8] fidesc = res[0][9] if element_type == "T": text = "<textarea name=\"%s\" rows=%s cols=%s wrap>%s</textarea>" % (field, numrows, numcols, cgi.escape(value)) elif element_type == "F": text = "<input type=\"file\" name=\"%s\" size=%s maxlength=\"%s\">" % (field, size, maxlength) elif element_type == "I": text = "<input name=\"%s\" size=%s value=\"%s\"> " % (field, size, val and escape_javascript_string(val, escape_quote_for_html=True) or '') text = text + '''<script type="text/javascript">/*<![CDATA[*/ document.forms[0].%s.value="%s"; /*]]>*/</script>''' % (field, escape_javascript_string(value, escape_for_html=False)) elif element_type == "H": text = "<input type=\"hidden\" name=\"%s\" value=\"%s\">" % (field, val and escape_javascript_string(val, escape_quote_for_html=True) or '') text = text + '''<script type="text/javascript">/*<![CDATA[*/ document.forms[0].%s.value="%s"; /*]]>*/</script>''' % (field, escape_javascript_string(value, escape_for_html=False)) elif element_type == "S": values = re.split("[\n\r]+", value) text = fidesc if re.search("%s\[\]" % field, fidesc): multipletext = "[]" else: multipletext = "" if len(values) > 0 and not(len(values) == 1 and values[0] == ""): text += '<script type="text/javascript">/*<![CDATA[*/\n' text += "var i = 0;\n" text += "el = document.forms[0].elements['%s%s'];\n" % (field, multipletext) text += "max = el.length;\n" for val in values: text += "var found = 0;\n" text += "var i=0;\n" text += "while (i != max) {\n" text += " if (el.options[i].value == \"%s\" || el.options[i].text == \"%s\") {\n" % \ (escape_javascript_string(val, escape_for_html=False), escape_javascript_string(val, escape_for_html=False)) text += " el.options[i].selected = true;\n" text += " found = 1;\n" text += " }\n" text += " i=i+1;\n" text += "}\n" #text += "if (found == 0) {\n" #text += " el[el.length] = new Option(\"%s\", \"%s\", 1,1);\n" #text += "}\n" text += "/*]]>*/</script>\n" elif element_type == "D": text = fidesc elif element_type == "R": try: co = compile(fidesc.replace("\r\n", "\n"), "<string>", "exec") ## Note this exec is safe WRT global variable because the ## Create_Modify_Interface has already been parsed by ## execfile within a protected environment. the_globals['text'] = '' exec co in the_globals text = the_globals['text'] except: msg = "Error in evaluating response element %s with globals %s" % (pprint.pformat(field), pprint.pformat(globals())) register_exception(req=None, alert_admin=True, prefix=msg) raise InvenioWebSubmitFunctionError(msg) else: text = "%s: unknown field type" % field t = t + "<small>%s</small>" % text # output our flag field t += '<input type="hidden" name="Create_Modify_Interface_DONE" value="DONE\n" />' t += '<br />' if end_button_prefix: t += end_button_prefix % the_globals # output some more text t += "<br /><CENTER><small><INPUT type=\"button\" width=400 height=50 name=\"End\" value=\"%(end_button_label)s\" onClick=\"document.forms[0].step.value = 2;user_must_confirm_before_leaving_page = false;document.forms[0].submit();\"></small></CENTER></H4>" % {'end_button_label': escape_javascript_string(_(end_button_label), escape_quote_for_html=True)} if suffix: t += suffix % the_globals return t
pamfilos/invenio
modules/websubmit/lib/functions/Create_Modify_Interface.py
Python
gpl-2.0
15,906
#!/usr/bin/env python import glob import os import site from cx_Freeze import setup, Executable import meld.build_helpers import meld.conf site_dir = site.getsitepackages()[1] include_dll_path = os.path.join(site_dir, "gnome") missing_dll = [ 'libgtk-3-0.dll', 'libgdk-3-0.dll', 'libatk-1.0-0.dll', 'libintl-8.dll', 'libzzz.dll', 'libwinpthread-1.dll', 'libcairo-gobject-2.dll', 'libgdk_pixbuf-2.0-0.dll', 'libpango-1.0-0.dll', 'libpangocairo-1.0-0.dll', 'libpangoft2-1.0-0.dll', 'libpangowin32-1.0-0.dll', 'libffi-6.dll', 'libfontconfig-1.dll', 'libfreetype-6.dll', 'libgio-2.0-0.dll', 'libglib-2.0-0.dll', 'libgmodule-2.0-0.dll', 'libgobject-2.0-0.dll', 'libgirepository-1.0-1.dll', 'libgtksourceview-3.0-1.dll', 'libjasper-1.dll', 'libjpeg-8.dll', 'libpng16-16.dll', 'libgnutls-26.dll', 'libxmlxpat.dll', 'librsvg-2-2.dll', 'libharfbuzz-gobject-0.dll', 'libwebp-5.dll', ] gtk_libs = [ 'etc/fonts', 'etc/gtk-3.0/settings.ini', 'etc/pango', 'lib/gdk-pixbuf-2.0', 'lib/girepository-1.0', 'share/fontconfig', 'share/fonts', 'share/glib-2.0', 'share/gtksourceview-3.0', 'share/icons', ] include_files = [(os.path.join(include_dll_path, path), path) for path in missing_dll + gtk_libs] build_exe_options = { "compressed": False, "icon": "data/icons/meld.ico", "includes": ["gi"], "packages": ["gi", "weakref"], "include_files": include_files, } # Create our registry key, and fill with install directory and exe registry_table = [ ('MeldKLM', 2, 'SOFTWARE\Meld', '*', None, 'TARGETDIR'), ('MeldInstallDir', 2, 'SOFTWARE\Meld', 'InstallDir', '[TARGETDIR]', 'TARGETDIR'), ('MeldExecutable', 2, 'SOFTWARE\Meld', 'Executable', '[TARGETDIR]Meld.exe', 'TARGETDIR'), ] # Provide the locator and app search to give MSI the existing install directory # for future upgrades reg_locator_table = [ ('MeldInstallDirLocate', 2, 'SOFTWARE\Meld', 'InstallDir', 0) ] app_search_table = [('TARGETDIR', 'MeldInstallDirLocate')] msi_data = { 'Registry': registry_table, 'RegLocator': reg_locator_table, 'AppSearch': app_search_table } bdist_msi_options = { "upgrade_code": "{1d303789-b4e2-4d6e-9515-c301e155cd50}", "data": msi_data, } setup( name="Meld", version=meld.conf.__version__, description='Visual diff and merge tool', author='The Meld project', author_email='meld-list@gnome.org', maintainer='Kai Willadsen', url='http://meldmerge.org', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: X11 Applications :: GTK', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', 'Programming Language :: Python', 'Topic :: Desktop Environment :: Gnome', 'Topic :: Software Development', 'Topic :: Software Development :: Version Control', ], options = { "build_exe": build_exe_options, "bdist_msi": bdist_msi_options, }, executables = [ Executable( "bin/meld", base="Win32GUI", targetName="Meld.exe", shortcutName="Meld", shortcutDir="ProgramMenuFolder", ), ], packages=[ 'meld', 'meld.ui', 'meld.util', 'meld.vc', ], package_data={ 'meld': ['README', 'COPYING', 'NEWS'] }, scripts=['bin/meld'], data_files=[ ('share/man/man1', ['meld.1'] ), ('share/doc/meld-' + meld.conf.__version__, ['COPYING', 'NEWS'] ), ('share/meld', ['data/meld.css', 'data/meld-dark.css'] ), ('share/meld/icons', glob.glob("data/icons/*.png") + glob.glob("data/icons/COPYING*") ), ('share/meld/ui', glob.glob("data/ui/*.ui") + glob.glob("data/ui/*.xml") ), ], cmdclass={ "build_i18n": meld.build_helpers.build_i18n, "build_help": meld.build_helpers.build_help, "build_icons": meld.build_helpers.build_icons, "build_data": meld.build_helpers.build_data, } )
culots/meld
setup_win32.py
Python
gpl-2.0
4,346
/* GStreamer * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> * 2000,2004 Wim Taymans <wim@fluendo.com> * * gstelement.h: Header for GstElement * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __GST_ELEMENT_FACTORY_H__ #define __GST_ELEMENT_FACTORY_H__ /** * GstElementFactory: * * The opaque #GstElementFactory data structure. */ typedef struct _GstElementFactory GstElementFactory; typedef struct _GstElementFactoryClass GstElementFactoryClass; #include <gst/gstconfig.h> #include <gst/gstelement.h> #include <gst/gstpad.h> #include <gst/gstplugin.h> #include <gst/gstpluginfeature.h> #include <gst/gsturi.h> G_BEGIN_DECLS #define GST_TYPE_ELEMENT_FACTORY (gst_element_factory_get_type()) #define GST_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ELEMENT_FACTORY,\ GstElementFactory)) #define GST_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ELEMENT_FACTORY,\ GstElementFactoryClass)) #define GST_IS_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ELEMENT_FACTORY)) #define GST_IS_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ELEMENT_FACTORY)) #define GST_ELEMENT_FACTORY_CAST(obj) ((GstElementFactory *)(obj)) GType gst_element_factory_get_type (void); GstElementFactory * gst_element_factory_find (const gchar *name); GType gst_element_factory_get_element_type (GstElementFactory *factory); const gchar * gst_element_factory_get_metadata (GstElementFactory *factory, const gchar *key); gchar ** gst_element_factory_get_metadata_keys (GstElementFactory *factory); guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory); const GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory); GstURIType gst_element_factory_get_uri_type (GstElementFactory *factory); const gchar * const * gst_element_factory_get_uri_protocols (GstElementFactory *factory); gboolean gst_element_factory_has_interface (GstElementFactory *factory, const gchar *interfacename); GstElement* gst_element_factory_create (GstElementFactory *factory, const gchar *name) G_GNUC_MALLOC; GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name) G_GNUC_MALLOC; gboolean gst_element_register (GstPlugin *plugin, const gchar *name, guint rank, GType type); /* Factory list functions */ /** * GstFactoryListType: * @GST_ELEMENT_FACTORY_TYPE_DECODER: Decoder elements * @GST_ELEMENT_FACTORY_TYPE_ENCODER: Encoder elements * @GST_ELEMENT_FACTORY_TYPE_SINK: Sink elements * @GST_ELEMENT_FACTORY_TYPE_SRC: Source elements * @GST_ELEMENT_FACTORY_TYPE_MUXER: Muxer elements * @GST_ELEMENT_FACTORY_TYPE_DEMUXER: Demuxer elements * @GST_ELEMENT_FACTORY_TYPE_PARSER: Parser elements * @GST_ELEMENT_FACTORY_TYPE_PAYLOADER: Payloader elements * @GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: Depayloader elements * @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: Private, do not use * @GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO: Elements handling video media types * @GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: Elements handling audio media types * @GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE: Elements handling image media types * @GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE: Elements handling subtitle media types * @GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA: Elements handling metadata media types * * The type of #GstElementFactory to filter. * * All @GstFactoryListType up to @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS are exclusive. * * If one or more of the MEDIA types are specified, then only elements * matching the specified media types will be selected. */ typedef guint64 GstElementFactoryListType; #define GST_ELEMENT_FACTORY_TYPE_DECODER (G_GUINT64_CONSTANT (1) << 0) #define GST_ELEMENT_FACTORY_TYPE_ENCODER (G_GUINT64_CONSTANT (1) << 1) #define GST_ELEMENT_FACTORY_TYPE_SINK (G_GUINT64_CONSTANT (1) << 2) #define GST_ELEMENT_FACTORY_TYPE_SRC (G_GUINT64_CONSTANT (1) << 3) #define GST_ELEMENT_FACTORY_TYPE_MUXER (G_GUINT64_CONSTANT (1) << 4) #define GST_ELEMENT_FACTORY_TYPE_DEMUXER (G_GUINT64_CONSTANT (1) << 5) #define GST_ELEMENT_FACTORY_TYPE_PARSER (G_GUINT64_CONSTANT (1) << 6) #define GST_ELEMENT_FACTORY_TYPE_PAYLOADER (G_GUINT64_CONSTANT (1) << 7) #define GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER (G_GUINT64_CONSTANT (1) << 8) #define GST_ELEMENT_FACTORY_TYPE_FORMATTER (G_GUINT64_CONSTANT (1) << 9) #define GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS (G_GUINT64_CONSTANT (1) << 48) #define GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO (G_GUINT64_CONSTANT (1) << 49) #define GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO (G_GUINT64_CONSTANT (1) << 50) #define GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE (G_GUINT64_CONSTANT (1) << 51) #define GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE (G_GUINT64_CONSTANT (1) << 52) #define GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA (G_GUINT64_CONSTANT (1) << 53) /** * GST_ELEMENT_FACTORY_TYPE_ANY: * * Elements of any of the defined GST_ELEMENT_FACTORY_LIST types * * Value: 562949953421311 * Type: GstElementFactoryListType */ #define GST_ELEMENT_FACTORY_TYPE_ANY ((G_GUINT64_CONSTANT (1) << 49) - 1) /** * GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY: * * Elements matching any of the defined GST_ELEMENT_FACTORY_TYPE_MEDIA types * * Note: Do not use this if you wish to not filter against any of the defined * media types. If you wish to do this, simply don't specify any * GST_ELEMENT_FACTORY_TYPE_MEDIA flag. * * Value: 18446462598732840960 * Type: GstElementFactoryListType */ #define GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY (~G_GUINT64_CONSTANT (0) << 48) /** * GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER: * * All encoders handling video or image media types * * Value: 2814749767106562 * Type: GstElementFactoryListType */ #define GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER (GST_ELEMENT_FACTORY_TYPE_ENCODER | GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO | GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE) /** * GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER: * * All encoders handling audio media types * * Value: 1125899906842626 * Type: GstElementFactoryListType */ #define GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER (GST_ELEMENT_FACTORY_TYPE_ENCODER | GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO) /** * GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS: * * All sinks handling audio, video or image media types * * Value: 3940649673949188 * Type: GstElementFactoryListType */ #define GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS (GST_ELEMENT_FACTORY_TYPE_SINK | GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO | GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO | GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE) /** * GST_ELEMENT_FACTORY_TYPE_DECODABLE: * * All elements used to 'decode' streams (decoders, demuxers, parsers, depayloaders) * * Value: 353 * Type: GstElementFactoryListType */ #define GST_ELEMENT_FACTORY_TYPE_DECODABLE \ (GST_ELEMENT_FACTORY_TYPE_DECODER | GST_ELEMENT_FACTORY_TYPE_DEMUXER | GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER | GST_ELEMENT_FACTORY_TYPE_PARSER) /* Element klass defines */ #define GST_ELEMENT_FACTORY_KLASS_DECODER "Decoder" #define GST_ELEMENT_FACTORY_KLASS_ENCODER "Encoder" #define GST_ELEMENT_FACTORY_KLASS_SINK "Sink" #define GST_ELEMENT_FACTORY_KLASS_SRC "Source" #define GST_ELEMENT_FACTORY_KLASS_MUXER "Muxer" #define GST_ELEMENT_FACTORY_KLASS_DEMUXER "Demuxer" #define GST_ELEMENT_FACTORY_KLASS_PARSER "Parser" #define GST_ELEMENT_FACTORY_KLASS_PAYLOADER "Payloader" #define GST_ELEMENT_FACTORY_KLASS_DEPAYLOADER "Depayloader" #define GST_ELEMENT_FACTORY_KLASS_FORMATTER "Formatter" #define GST_ELEMENT_FACTORY_KLASS_MEDIA_VIDEO "Video" #define GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO "Audio" #define GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE "Image" #define GST_ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE "Subtitle" #define GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA "Metadata" gboolean gst_element_factory_list_is_type (GstElementFactory *factory, GstElementFactoryListType type); GList * gst_element_factory_list_get_elements (GstElementFactoryListType type, GstRank minrank) G_GNUC_MALLOC; GList * gst_element_factory_list_filter (GList *list, const GstCaps *caps, GstPadDirection direction, gboolean subsetonly) G_GNUC_MALLOC; G_END_DECLS #endif /* __GST_ELEMENT_FACTORY_H__ */
atmark-techno/atmark-dist
user/gstreamer/gstreamer1.0/gstreamer1.0-1.0.8/gst/gstelementfactory.h
C
gpl-2.0
10,001
// Copyright 2013 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #include <memory> #include <wx/wx.h> #include "Common/Logging/LogManager.h" #include "Core/Core.h" #include "Core/Host.h" #include "VideoCommon/BPStructs.h" #include "VideoCommon/CommandProcessor.h" #include "VideoCommon/Fifo.h" #include "VideoCommon/GeometryShaderManager.h" #include "VideoCommon/OnScreenDisplay.h" #include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/TessellationShaderManager.h" #include "VideoCommon/VertexLoaderManager.h" #include "VideoCommon/VertexShaderManager.h" #include "VideoCommon/VideoConfig.h" #include "Common/FileUtil.h" #include "Common/IniFile.h" #include "DolphinWX/Debugger/DebuggerPanel.h" #include "DolphinWX/VideoConfigDiag.h" #include "VideoCommon/IndexGenerator.h" #include "VideoBackends/DX11/BoundingBox.h" #include "VideoBackends/DX11/D3DBase.h" #include "VideoBackends/DX11/D3DUtil.h" #include "VideoBackends/DX11/GeometryShaderCache.h" #include "VideoBackends/DX11/HullDomainShaderCache.h" #include "VideoBackends/DX11/PerfQuery.h" #include "VideoBackends/DX11/PixelShaderCache.h" #include "VideoBackends/DX11/Render.h" #include "VideoBackends/DX11/TextureCache.h" #include "VideoBackends/DX11/VertexManager.h" #include "VideoBackends/DX11/VertexShaderCache.h" #include "Core/ConfigManager.h" #include "VideoBackends/DX11/VideoBackend.h" namespace DX11 { unsigned int VideoBackend::PeekMessages() { MSG msg; while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { if (msg.message == WM_QUIT) return FALSE; TranslateMessage(&msg); DispatchMessage(&msg); } return TRUE; } std::string VideoBackend::GetName() const { return "DX11"; } std::string VideoBackend::GetDisplayName() const { return "Direct3D 11"; } void VideoBackend::InitBackendInfo() { HRESULT hr = DX11::D3D::LoadDXGI(); if (SUCCEEDED(hr)) hr = DX11::D3D::LoadD3D(); if (FAILED(hr)) { DX11::D3D::UnloadDXGI(); return; } g_Config.backend_info.APIType = API_D3D11; g_Config.backend_info.bSupportsScaling = false; g_Config.backend_info.bSupportsExclusiveFullscreen = true; g_Config.backend_info.bSupportsDualSourceBlend = true; g_Config.backend_info.bSupportsPixelLighting = true; g_Config.backend_info.bNeedBlendIndices = false; g_Config.backend_info.bSupportsOversizedViewports = false; g_Config.backend_info.bSupportsGeometryShaders = true; g_Config.backend_info.bSupports3DVision = true; g_Config.backend_info.bSupportsPostProcessing = true; g_Config.backend_info.bSupportsClipControl = true; g_Config.backend_info.bSupportsNormalMaps = true; g_Config.backend_info.bSupportsDepthClamp = true; g_Config.backend_info.bSupportsMultithreading = false; g_Config.backend_info.bSupportsValidationLayer = true; g_Config.backend_info.bSupportsReversedDepthRange = true; g_Config.backend_info.bSupportsInternalResolutionFrameDumps = true; g_Config.backend_info.bSupportsAsyncShaderCompilation = true; g_Config.backend_info.bSupportsBitfield = false; g_Config.backend_info.bSupportsDynamicSamplerIndexing = false; g_Config.backend_info.bSupportsUberShaders = true; g_Config.backend_info.bSupportsHighPrecisionFrameBuffer = true; g_Config.ClearFormats(); IDXGIFactory* factory; IDXGIAdapter* ad; hr = DX11::PCreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&factory); if (FAILED(hr)) PanicAlert("Failed to create IDXGIFactory object"); // adapters g_Config.backend_info.Adapters.clear(); g_Config.backend_info.AAModes.clear(); while (factory->EnumAdapters((UINT)g_Config.backend_info.Adapters.size(), &ad) != DXGI_ERROR_NOT_FOUND) { const size_t adapter_index = g_Config.backend_info.Adapters.size(); DXGI_ADAPTER_DESC desc; ad->GetDesc(&desc); // TODO: These don't get updated on adapter change, yet if (adapter_index == g_Config.iAdapter) { std::string samples; std::vector<DXGI_SAMPLE_DESC> modes = DX11::D3D::EnumAAModes(ad); // First iteration will be 1. This equals no AA. for (unsigned int i = 0; i < modes.size(); ++i) { g_Config.backend_info.AAModes.push_back(modes[i].Count); } bool shader_model_5_supported = (DX11::D3D::GetFeatureLevel(ad) >= D3D_FEATURE_LEVEL_11_0); // Requires the earlydepthstencil attribute (only available in shader model 5) g_Config.backend_info.bSupportsEarlyZ = shader_model_5_supported; // Requires full UAV functionality (only available in shader model 5) g_Config.backend_info.bSupportsBBox = shader_model_5_supported; // Requires the instance attribute (only available in shader model 5) g_Config.backend_info.bSupportsGSInstancing = shader_model_5_supported; g_Config.backend_info.bSupportsTessellation = shader_model_5_supported; g_Config.backend_info.bSupportsFragmentStoresAndAtomics = shader_model_5_supported; g_Config.backend_info.bSupportsSSAA = shader_model_5_supported; g_Config.backend_info.bSupportsGPUTextureDecoding = shader_model_5_supported; g_Config.backend_info.bSupportsComputeTextureEncoding = shader_model_5_supported; g_Config.backend_info.MaxTextureSize = DX11::D3D::GetMaxTextureSize(DX11::D3D::GetFeatureLevel(ad)); } g_Config.backend_info.Adapters.push_back(UTF16ToUTF8(desc.Description)); ad->Release(); } factory->Release(); DX11::D3D::UnloadDXGI(); DX11::D3D::UnloadD3D(); } bool VideoBackend::Initialize(void* window_handle) { if (window_handle == nullptr) return false; InitBackendInfo(); InitializeShared(); m_window_handle = window_handle; return true; } void VideoBackend::Video_Prepare() { // internal interfaces g_renderer = std::make_unique<Renderer>(m_window_handle); g_texture_cache = std::make_unique<TextureCache>(); g_vertex_manager = std::make_unique<VertexManager>(); g_perf_query = std::make_unique<PerfQuery>(); g_renderer->Init(); VertexShaderCache::Init(); PixelShaderCache::Init(); GeometryShaderCache::Init(); HullDomainShaderCache::Init(); D3D::InitUtils(); BBox::Init(); } void VideoBackend::Shutdown() { // internal interfaces D3D::ShutdownUtils(); PixelShaderCache::Shutdown(); GeometryShaderCache::Shutdown(); HullDomainShaderCache::Shutdown(); VertexShaderCache::Shutdown(); BBox::Shutdown(); g_perf_query.reset(); g_vertex_manager.reset(); g_texture_cache.reset(); g_renderer.reset(); ShutdownShared(); } void VideoBackend::Video_Cleanup() { CleanupShared(); } } // namespace DX11
Tinob/Ishiiruka
Source/Core/VideoBackends/DX11/main.cpp
C++
gpl-2.0
6,666
<?php if ( !defined('WORPIT_DS') ) { define( 'WORPIT_DS', DIRECTORY_SEPARATOR ); } if ( !class_exists('HLT_Plugin') ): class HLT_Plugin { static public $VERSION; static public $PLUGIN_NAME; static public $PLUGIN_PATH; static public $PLUGIN_DIR; static public $PLUGIN_URL; static public $PLUGIN_BASENAME; static public $OPTION_PREFIX; const ParentTitle = 'iControlWP Plugins'; const ParentName = 'Twitter Bootstrap'; const ParentPermissions = 'manage_options'; const ParentMenuId = 'icwp'; const VariablePrefix = 'worpit'; const BaseOptionPrefix = 'worpit_'; const ViewExt = '.php'; const ViewDir = 'views'; protected $m_aPluginMenu; protected $m_aAllPluginOptions; protected $m_sParentMenuIdSuffix; static protected $m_fUpdateSuccessTracker; static protected $m_aFailedUpdateOptions; public function __construct() { add_action( 'plugins_loaded', array( &$this, 'onWpPluginsLoaded' ) ); add_action( 'init', array( &$this, 'onWpInit' ), 0 ); if ( is_admin() ) { add_action( 'admin_init', array( &$this, 'onWpAdminInit' ) ); add_action( 'admin_notices', array( &$this, 'onWpAdminNotices' ) ); add_action( 'admin_menu', array( &$this, 'onWpAdminMenu' ) ); add_action( 'plugin_action_links', array( &$this, 'onWpPluginActionLinks' ), 10, 4 ); } /** * We make the assumption that all settings updates are successful until told otherwise * by an actual failing update_option call. */ self::$m_fUpdateSuccessTracker = true; self::$m_aFailedUpdateOptions = array(); $this->m_sParentMenuIdSuffix = 'base'; } protected function getFullParentMenuId() { return self::ParentMenuId .'-'. $this->m_sParentMenuIdSuffix; }//getFullParentMenuId protected function display( $insView, $inaData = array() ) { $sFile = dirname(__FILE__).WORPIT_DS.'..'.WORPIT_DS.self::ViewDir.WORPIT_DS.$insView.self::ViewExt; if ( !is_file( $sFile ) ) { echo "View not found: ".$sFile; return false; } if ( count( $inaData ) > 0 ) { extract( $inaData, EXTR_PREFIX_ALL, self::VariablePrefix ); } ob_start(); include( $sFile ); $sContents = ob_get_contents(); ob_end_clean(); echo $sContents; return true; } protected function getImageUrl( $insImage ) { return self::$PLUGIN_URL.'resources/images/'.$insImage; } protected function getCssUrl( $insCss ) { return self::$PLUGIN_URL.'resources/css/'.$insCss; } protected function getJsUrl( $insJs ) { return self::$PLUGIN_URL.'resources/js/'.$insJs; } protected function getSubmenuPageTitle( $insTitle ) { return self::ParentTitle.' - '.$insTitle; } protected function getSubmenuId( $insId ) { return $this->getFullParentMenuId().'-'.$insId; } public function onWpPluginsLoaded() { if ( is_admin() ) { //Handle plugin upgrades $this->handlePluginUpgrade(); } if ( $this->isIcwpPluginAdminPage() ) { //Handle form submit $this->handlePluginFormSubmit(); } }//onWpPluginsLoaded public function onWpInit() { } public function onWpAdminInit() { //Do Plugin-Specific Admin Work if ( $this->isIcwpPluginAdminPage() ) { //Links up CSS styles for the plugin itself (set the admin bootstrap CSS as a dependency also) $this->enqueuePluginAdminCss(); } }//onWpAdminInit public function onWpAdminMenu() { $sFullParentMenuId = $this->getFullParentMenuId(); add_menu_page( self::ParentTitle, self::ParentName, self::ParentPermissions, $sFullParentMenuId, array( $this, 'onDisplayMainMenu' ), $this->getImageUrl( 'icontrolwp_16x16.png' ) ); //Create and Add the submenu items $this->createPluginSubMenuItems(); if ( !empty($this->m_aPluginMenu) ) { foreach ( $this->m_aPluginMenu as $sMenuTitle => $aMenu ) { list( $sMenuItemText, $sMenuItemId, $sMenuCallBack ) = $aMenu; add_submenu_page( $sFullParentMenuId, $sMenuTitle, $sMenuItemText, self::ParentPermissions, $sMenuItemId, array( &$this, $sMenuCallBack ) ); } } $this->fixSubmenu(); }//onWpAdminMenu protected function createPluginSubMenuItems(){ /* Override to create array of sub-menu items $this->m_aPluginMenu = array( //Menu Page Title => Menu Item name, page ID (slug), callback function onLoad. $this->getSubmenuPageTitle( 'Content by Country' ) => array( 'Content by Country', $this->getSubmenuId('main'), 'onDisplayCbcMain' ), ); */ }//createPluginSubMenuItems protected function fixSubmenu() { global $submenu; $sFullParentMenuId = $this->getFullParentMenuId(); if ( isset( $submenu[$sFullParentMenuId] ) ) { $submenu[$sFullParentMenuId][0][0] = 'Dashboard'; } } /** * The callback function for the main admin menu index page */ public function onDisplayMainMenu() { $aData = array( 'plugin_url' => self::$PLUGIN_URL ); $this->display( 'worpit_'.$this->m_sParentMenuIdSuffix.'_index', $aData ); } /** * The Action Links in the main plugins page. Defaults to link to the main Dashboard page * * @param $inaLinks * @param $insFile */ public function onWpPluginActionLinks( $inaLinks, $insFile ) { if ( $insFile == self::$PLUGIN_BASENAME ) { $sSettingsLink = '<a href="'.admin_url( "admin.php" ).'?page='.$this->getFullParentMenuId().'">' . __( 'Settings', 'worpit' ) . '</a>'; array_unshift( $inaLinks, $sSettingsLink ); } return $inaLinks; } /** * Override this method to handle all the admin notices */ public function onWpAdminNotices() { } /** * This is called from within onWpAdminInit. Use this solely to manage upgrades of the plugin */ protected function handlePluginUpgrade() { } protected function handlePluginFormSubmit() { } protected function enqueuePluginAdminCss() { $iRand = rand(); wp_register_style( 'worpit_plugin_css'.$iRand, $this->getCssUrl('worpit-plugin.css'), array('worpit_bootstrap_wpadmin_css_fixes'), self::$VERSION ); wp_enqueue_style( 'worpit_plugin_css'.$iRand ); }//enqueuePluginAdminCss /** * Provides the basic HTML template for printing a WordPress Admin Notices * * @param $insNotice - The message to be displayed. * @param $insMessageClass - either error or updated * @param $infPrint - if true, will echo. false will return the string * @return boolean|string */ protected function getAdminNotice( $insNotice = '', $insMessageClass = 'updated', $infPrint = false ) { $sFullNotice = ' <div id="message" class="'.$insMessageClass.'"> <style> #message form { margin: 0px; } </style> '.$insNotice.' </div> '; if ( $infPrint ) { echo $sFullNotice; return true; } else { return $sFullNotice; } }//getAdminNotice protected function redirect( $insUrl, $innTimeout = 1 ) { echo ' <script type="text/javascript"> function redirect() { window.location = "'.$insUrl.'"; } var oTimer = setTimeout( "redirect()", "'.($innTimeout * 1000).'" ); </script>'; } /** * A little helper function that populates all the plugin options arrays with DB values */ protected function readyAllPluginOptions() { $this->initPluginOptions(); $this->populateAllPluginOptions(); } /** * Override to create the plugin options array. * * Returns false if nothing happens - i.e. not over-rided. */ protected function initPluginOptions() { return false; } /** * Reads the current value for ALL plugin options from the WP options db. * * Assumes the standard plugin options array structure. Over-ride to change. * * NOT automatically executed on any hooks. */ protected function populateAllPluginOptions() { if ( empty($this->m_aAllPluginOptions) && !$this->initPluginOptions() ) { return false; } self::PopulatePluginOptions( $this->m_aAllPluginOptions ); }//populateAllPluginOptions public static function PopulatePluginOptions( &$inaAllOptions ) { if ( empty($inaAllOptions) ) { return false; } foreach ( $inaAllOptions as &$aOptionsSection ) { self::PopulatePluginOptionsSection($aOptionsSection); } } public static function PopulatePluginOptionsSection( &$inaOptionsSection ) { if ( empty($inaOptionsSection) ) { return false; } foreach ( $inaOptionsSection['section_options'] as &$aOptionParams ) { list( $sOptionKey, $sOptionCurrent, $sOptionDefault ) = $aOptionParams; $sCurrentOptionVal = self::getOption( $sOptionKey ); $aOptionParams[1] = ($sCurrentOptionVal == '' )? $sOptionDefault : $sCurrentOptionVal; } } /** * $sAllOptionsInput is a comma separated list of all the input keys to be processed from the $_POST */ protected function updatePluginOptionsFromSubmit( $sAllOptionsInput ) { if ( empty($sAllOptionsInput) ) { return; } $aAllInputOptions = explode( ',', $sAllOptionsInput); foreach ( $aAllInputOptions as $sInputKey ) { $aInput = explode( ':', $sInputKey ); list( $sOptionType, $sOptionKey ) = $aInput; $sOptionValue = $this->getAnswerFromPost( $sOptionKey ); if ( is_null($sOptionValue) ) { if ( $sOptionType == 'text' ) { //if it was a text box, and it's null, don't update anything continue; } else if ( $sOptionType == 'checkbox' ) { //if it was a checkbox, and it's null, it means 'N' $sOptionValue = 'N'; } } $this->updateOption( $sOptionKey, $sOptionValue ); } return true; }//updatePluginOptionsFromSubmit protected function collateAllFormInputsForAllOptions($aAllOptions, $sInputSeparator = ',') { if ( empty($aAllOptions) ) { return ''; } $iCount = 0; foreach ( $aAllOptions as $aOptionsSection ) { if ( $iCount == 0 ) { $sCollated = $this->collateAllFormInputsForOptionsSection($aOptionsSection, $sInputSeparator); } else { $sCollated .= $sInputSeparator.$this->collateAllFormInputsForOptionsSection($aOptionsSection, $sInputSeparator); } $iCount++; } return $sCollated; }//collateAllFormInputsAllOptions /** * Returns a comma seperated list of all the options in a given options section. * * @param array $aOptionsSection */ protected function collateAllFormInputsForOptionsSection( $aOptionsSection, $sInputSeparator = ',' ) { if ( empty($aOptionsSection) ) { return ''; } $iCount = 0; foreach ( $aOptionsSection['section_options'] as $aOption ) { list($sKey, $fill1, $fill2, $sType) = $aOption; if ( $iCount == 0 ) { $sCollated = $sType.':'.$sKey; } else { $sCollated .= $sInputSeparator.$sType.':'.$sKey; } $iCount++; } return $sCollated; }//collateAllFormInputsForOptionsSection protected function isIcwpPluginAdminPage() { $sSubPageNow = isset( $_GET['page'] )? $_GET['page']: ''; if ( is_admin() && !empty($sSubPageNow) && (strpos( $sSubPageNow, $this->getFullParentMenuId() ) === 0 )) { //admin area, and the 'page' begins with 'worpit' return true; } return false; }//isIcwpPluginAdminPage protected function deleteAllPluginDbOptions() { if ( !current_user_can( 'manage_options' ) ) { return; } if ( empty($this->m_aAllPluginOptions) && !$this->initPluginOptions() ) { return; } foreach ( $this->m_aAllPluginOptions as &$aOptionsSection ) { foreach ( $aOptionsSection['section_options'] as &$aOptionParams ) { if ( isset( $aOptionParams[0] ) ) { $this->deleteOption($aOptionParams[0]); } } } }//deleteAllPluginDbOptions protected function getAnswerFromPost( $insKey, $insPrefix = null ) { if ( is_null( $insPrefix ) ) { $insKey = self::$OPTION_PREFIX.$insKey; } return ( isset( $_POST[$insKey] )? $_POST[$insKey]: null ); } static public function getOption( $insKey, $insAddPrefix = '' ) { return get_option( self::$OPTION_PREFIX.$insKey ); } static public function addOption( $insKey, $insValue ) { return add_option( self::$OPTION_PREFIX.$insKey, $insValue ); } static public function updateOption( $insKey, $insValue ) { if ( self::getOption( $insKey ) == $insValue ) { return true; } $fResult = update_option( self::$OPTION_PREFIX.$insKey, $insValue ); if ( !$fResult ) { self::$m_fUpdateSuccessTracker = false; self::$m_aFailedUpdateOptions[] = self::$OPTION_PREFIX.$insKey; } } static public function deleteOption( $insKey ) { return delete_option( self::$OPTION_PREFIX.$insKey ); } public function onWpActivatePlugin() { } public function onWpDeactivatePlugin() { } public function onWpUninstallPlugin() { //Do we have admin priviledges? if ( current_user_can( 'manage_options' ) ) { $this->deleteAllPluginDbOptions(); } } /** * Takes an array, an array key, and a default value. If key isn't set, sets it to default. */ protected function def( &$aSrc, $insKey, $insValue = '' ) { if ( !isset( $aSrc[$insKey] ) ) { $aSrc[$insKey] = $insValue; } } /** * Takes an array, an array key and an element type. If value is empty, sets the html element * string to empty string, otherwise forms a complete html element parameter. * * E.g. noEmptyElement( aSomeArray, sSomeArrayKey, "style" ) * will return String: style="aSomeArray[sSomeArrayKey]" or empty string. */ protected function noEmptyElement( &$inaArgs, $insAttrKey, $insElement = '' ) { $sAttrValue = $inaArgs[$insAttrKey]; $insElement = ( $insElement == '' )? $insAttrKey : $insElement; $inaArgs[$insAttrKey] = ( empty($sAttrValue) ) ? '' : ' '.$insElement.'="'.$sAttrValue.'"'; } }//CLASS Worpit Plugins Base endif;
oniiru/filmbundle
blog/wp-content/plugins/wordpress-bootstrap-css/src/worpit-plugins-base.php
PHP
gpl-2.0
13,835
public class AdjustableArrowCap : CustomLineCap, System.ICloneable, System.IDisposable { // Constructors public AdjustableArrowCap(float width, float height) {} public AdjustableArrowCap(float width, float height, bool isFilled) {} // Methods public virtual void Dispose() {} public virtual object Clone() {} public void SetStrokeCaps(LineCap startCap, LineCap endCap) {} public void GetStrokeCaps(out LineCap& startCapout , LineCap& endCap) {} public virtual object GetLifetimeService() {} public virtual object InitializeLifetimeService() {} public virtual System.Runtime.Remoting.ObjRef CreateObjRef(Type requestedType) {} public Type GetType() {} public virtual string ToString() {} public virtual bool Equals(object obj) {} public virtual int GetHashCode() {} // Properties public float Height { get{} set{} } public float Width { get{} set{} } public float MiddleInset { get{} set{} } public bool Filled { get{} set{} } public LineJoin StrokeJoin { get{} set{} } public LineCap BaseCap { get{} set{} } public float BaseInset { get{} set{} } public float WidthScale { get{} set{} } }
Pengfei-Gao/source-Insight-3-for-centos7
SourceInsight3/NetFramework/AdjustableArrowCap.cs
C#
gpl-2.0
1,117
package biz; import entity.*; public class MotoManage { public MotoVehicle motoLeaseOut(String motoType) throws ClassNotFoundException, InstantiationException, IllegalAccessException{ Class<?> motoClass=Class.forName("entity."+motoType); MotoVehicle moto= (MotoVehicle)motoClass.newInstance(); moto.leaseOutFlow(); return moto; } }
simurayousuke/2017java03
课堂练习/week1/java-day4-VehicleManage/VehicleManage/src/biz/MotoManage.java
Java
gpl-2.0
346
/* $Id: mcl_cb.h,v 1.32 2005/05/23 11:11:44 roca Exp $ */ /* * Copyright (c) 2003-2004 INRIA - All rights reserved * (main author: Vincent Roca - vincent.roca@inrialpes.fr) * * This program 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 * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. */ #ifndef MCL_CB_H /* { */ #define MCL_CB_H #include "mcl_fec.h" /* cross-references */ /** * TRANSMISSION layer control block. * One entry for each layer used by the sender. */ typedef struct txlay { INT32 layer; /* tx layer (starts at 0) */ double cumul_du_per_tick;/* target cumulative tx rate per tick */ double du_per_tick; /* target tx rate per tick */ double remaining_du_per_tick; /* number of DUs not sent */ /* during previous tick, that should */ /* have been sent though to match */ /* target rate */ class mcl_socket *socket; /* mcast group where data is sent */ mcl_tx_tab *tx_tab; /* tx plannification table for */ /* normal priority data */ mcl_tx_tab *tx_tab_high; /* tx plannification table for high */ /* priority data*/ INT32 tx_high_timer; /* timer for high priority data, in ticks. Tx is done when going to 0. */ bool tx_high_flush; /* flush (i.e. send) the entire content of tx_high immediatly. */ #if 0 //#ifdef RLC char wait_sp; /* boolean: 1 = no tx on lay i before */ /* sending the first SP on layer i-1 */ char wait_after_sp_count;/* wait this # ticks after wait=0 */ #endif } txlay_t; /** * RECEPTION control block. * Only one entry at the receiver, no matter the number of layers. */ typedef struct { class mcl_socket *socket_head; /* head of mcast group tab */ fd_set fds; /* set of fd, used by select */ int nfds; /* highest-numbered fd + 1 */ int n_fd; /* total nb of fd (ie sockets) */ du_t *du_head; /* head of the orphan DU list */ #ifdef FEC du_t *dufec_head; /* head of the DU_FEC list */ #endif } rxlay_t; /** * Possible session modes. */ enum mcl_tx_rx_mode { MCL_INVALID, MCL_IS_A_SENDER_ONLY, MCL_IS_A_RECEIVER_ONLY }; /** * Control Block Class for the MCL_ALC session. * Contains all the variables, classes, member functions etc. required for * a session. */ class mcl_cb { public: /****** Public Members ************************************************/ /** * Session control block constructor. * Perform pre-initialization of the session. * Called by mcl_open(). * At completion, the session is NOT fully initialized, but * sufficiently to enable most tasks to be performed (e.g all * threads are created). * @param mode determines if this is a sender or receiver */ mcl_cb (mcl_tx_rx_mode mode); /** Destructor */ ~mcl_cb (); /** * Finish the initialization of the session if not already done. * This end of init is done only once. * @param nb_lay number of layers * @return Completion status (MCL_OK or MCL_ERROR). */ #ifdef SVSOA_RECV mcl_error_status finish_session_init_if_needed (int nb_lay); #else mcl_error_status finish_session_init_if_needed (); #endif /** * True once the session if fully initialized. * @return boolean */ bool is_fully_initialized (); /** * Free everything. * This is done at the very last stage, at the end of session close * or abort, just before calling the destructor. */ void free_everything (); /** * Returns the local MCL session id. * The session identifier is set once, at session creation. * @return session id */ INT32 get_id(); /** * Get the tx/rx mode for this session. * @return mode */ mcl_tx_rx_mode get_mode (); /** * Is this session essentially a sending session. * @return returns true when the MCL session has been opened * in "w" and "wr" modes, false otherwise. */ bool is_a_sender (); /** * Is this session essentially a receiving session. * @return returns true when the MCL session has been opened * in "r" and "rw" modes, false otherwise. */ bool is_a_receiver (); /** * Set/unset the FLUTE compatibility mode. * @param flute boolean: true in FLUTE compatibility mode * (default: false) */ void set_flute_mode (bool onoff); /** * True in FLUTE compatibility mode. * @return true in FLUTE compatibility mode, false otherwise. */ bool is_flute_compatible (); /** * Set the session lock. * There is one lock per MCL session. Their total number is equal * to the number of concurrent sessions. */ void lock (); /** * Try to set the session lock. * There is one lock per MCL session. Their total number is equal * to the number of concurrent sessions. * @return return EBUSY if not possible, 0 if ok */ INT32 trylock (); /** * Release the session lock. */ void unlock (); /** * Set the maximum datagram size (in bytes) and adjusts the payload * size in consequence. * A datagram includes the payload (if any) plus the ALC/LCT header. * @return Completion status (MCL_OK or MCL_ERROR). */ mcl_error_status set_max_datagram_size (INT32 sz); /** * Get the maximum datagram size (in bytes). * A datagram includes the payload (if any) plus the ALC/LCT header. * @return maximum datagram size in bytes */ INT32 get_max_datagram_size () const; /** * Set the payload size (in bytes). * Only the data payload of the ALC/LCT datagram is considered here. * @return Completion status (MCL_OK or MCL_ERROR). */ mcl_error_status set_payload_size (INT32 sz); /** * Get the payload size (in bytes). * Only the data payload of the ALC/LCT datagram is considered here. * Can be set independantly of the max_datagram_size but cannot * be larger than this latter. * @return payload size in bytes */ INT32 get_payload_size () const; /** * Set the verbosity level. * @param level * @return Completion status (MCL_OK or MCL_ERROR). */ mcl_error_status set_verbosity (INT32 level); /** * Get the verbosity level. * @return verbosity level */ INT32 get_verbosity (); /** * Set the statistic level. * @param level 0 means no stats at all, 2 means all statistics, * 1 means only major statistics (e.g. at session end). * @return Completion status (MCL_OK or MCL_ERROR). */ mcl_error_status set_stats_level (INT32 level); /** * Get the statistic level. * @return statistic level */ INT32 get_stats_level (); /****** Public Attributes *********************************************/ /* * All the classes/structs required by a session follow... */ /* * SHARED BY SENDERS AND RECEIVERS */ class mcl_fsm fsm; class mcl_periodic_proc periodic_proc; // For all periodic tasks class mcl_fec fec; // FEC encoding/decoding class // for all FEC flavors and the // associated parameters stats_t stats; // tx and rx statistics //class mcl_ses_channel ses_channel; // session channel //class mcl_alc_pkt_mgmt alc_pkt_mgmt; rlccb_t rlccb; // RLC control block flids_cb_t flids_cb; // FLIDS control block #ifdef METAOBJECT_USED class mcl_meta_object_layer *meta_obj_layer; // Meta object mgmt #endif /* * SENDER SPECIFIC */ class mcl_tx tx; // Transmission class //class mcl_group_mgmt group_mgmt; //class mcl_tx_ctrl tx_ctrl; // Performs control tasks //class mcl_tx_window tx_window; // Store ADUs/DUs to send class mcl_tx_flute tx_flute; // FLUTE specific tx functions //class mcl_tx_storage tx_storage; // Virtual tx memory management /* * RECEIVER SPECIFIC */ class mcl_rx rx; // Reception class //class mcl_rx_thread rx_thread; // Reception thread //class mcl_rx_ctrl rx_ctrl; // Performs control tasks class mcl_rx_window rx_window; // Store received ADUs class mcl_rx_flute rx_flute; // FLUTE specific rx functions class mcl_rx_storage rx_storage; // Virtual rx memory management /* * And some additional public variables... */ /* * The number of layers, nb_layers, can vary in [1, max_nb_layers]. * The maximum nb of layers, max_nb_layers, can vary in * [1, MAX_NB_TX_LAYERS]. * All table allocations are done with MAX_NB_TX_LAYERS. */ INT32 nb_layers; /** Current number of tx layers. */ INT32 max_nb_layers; /** Maximum number of tx layers. */ /** Array of ctrl blocks for the sending side, one per layer. */ txlay_t txlay_tab[MAX_NB_TX_LAYERS]; /* Control block for receiving side, only one, no matter the number * of layers. */ rxlay_t rxlvl; #ifdef WIN32 BOOL test_cancel; /* used as a pthread_testcancel() alternative */ #endif /**********************************************************************/ /*** Stuff below is here for historical reasons, will be removed... ***/ /* * mode selection variables */ char ucast_mcast_mode; /* UNI_TX MCAST_TX UNI_RX MCAST_RX */ bool single_layer_mode; /* optimize for single layer mode */ mcl_congestion_control_scheme congestion_control; /* congestion control mode: */ /* NO_CC: no congestion control */ /* RLC_CC: RLC */ /* FLID_SL_CC: FLID-SL */ /* Required for FLUTE interoperability tests */ /* * time related variables */ int last_periodic_proc_tc;/* time_count for last do_periodic_proc call*/ mcl_itime_t last_periodic_proc_it;/* idem with itime */ int tx_mem_cleanup_count; /* tx memory cleanup function call period */ int stats_time_count; /* for periodic stats print */ /* * COMMON TX/RX VARIABLES */ int demux_label; /* LCT demux label, or tx session ID (TSI) */ int cc_id; char *mcast_if_name; /* name of mcast interface to use or NULL */ class mcl_addr *mcast_if_addr;/* addr of mcast intf to use or NULL */ class mcl_addr addr; /* unicast/mcast address and port on which */ /* to rx (client) or tx (source). This is the */ /* ALC session addr/port. With mcast, it uses */ /* the ranges: */ /* [addr; addr+max_nb_layers[ for addr, and */ /* [port; port+max_nb_layers[ for port nb */ UINT16 ttl; /* default TTL used with mcast */ /* * TX SPECIFIC VARIABLES */ char delivery_mode; /* which delivery mode? on-demand/push/... */ double rate_on_base_layer; /* tx rate in packets/s on base layer */ int nb_tx; /* # of desired tx for each DU */ float remaining_tx_tick_nb;/* fractional tick_nb in do_periodic_proc */ sig_tab_t *sig_tab; /* used by mcl_sig.c */ int skip; /* used by mcl_sig.c */ sig_tab_t *psig_next; /* used by mcl_sig.c */ int mcl_sig_pending; /* is there any SIG msg pending ? counter */ #ifdef ANTICIPATED_TX_FOR_PUSH char anticipated_tx_for_push; /* optimization for tx in PUSH mode */ #endif #ifdef VIRTUAL_TX_MEM bool vtm_used; /* boolean: 1 to use virtual tx memory service*/ bool vtm_initialized; /* boolean: 1 if vtm_cb is valid */ vtm_cb_t vtm_cb; /* vtm control block for that session */ #endif int scheduler; /* shed to use for next UpdateTxPlanning call */ int adu_scheduling; /* SEQUENTIAL, MIXED, PARTIALLY_MIXED, RANDOM */ /* * RECEIVER SPECIFIC VARIABLES */ int ready_data; /* # completed ADU not yet returned to appli */ #ifdef FEC bool postpone_fec_decoding; /* decode during reception of at the end? */ /* only valid with RSE, doesn't apply to LDPC */ #endif /* * various additional state/context */ #ifdef SIMUL_LOSSES bool simul_losses_state; #endif int mcl_max_group; /* nb of mcast groups */ class mcl_socket socket_tab[MAX_MC_GROUP]; /* array of mcast group contexts */ mcl_thread_t rx_thread; /* rx thread idf */ /* * various working variables */ adu_t *findadu_cache; /* adu cache used by FindADU function */ adu_t *lastadu_cache; /* adu cache to point to the last adu * returned/or announced to appli */ private: /****** Private Members ***********************************************/ /** * Finish the initialization of the session. * This function is called by once finish_session_init_if_needed() * after that all the appropriate params have been set up with * mcl_ctl(). * It initializes everything (context, sockets, threads, etc.). * @param nb_lay number of layers * @return Completion status (MCL_OK or MCL_ERROR). */ #ifdef SVSOA_RECV mcl_error_status finish_session_init (int nb_lay); #else mcl_error_status finish_session_init (); #endif /** * Finishes the initialization of a sender. * @return Completion status (MCL_OK or MCL_ERROR). */ mcl_error_status finish_init_as_a_sender (); /** * Finishes the initialization of a receiver. * @return Completion status (MCL_OK or MCL_ERROR). */ mcl_error_status finish_init_as_a_receiver (); /* * Tx rate (in DUs per tick) calculations. * The exact transmission scale depends on the congestion control * protocol used. * With RLC: exponential scale (factor 2) up to "max" DUs/tick, and then * linear scale of "max" DUs/tick * With FLID-SL: exponential scale (factor 1.3). * @param tab table where to store the result. * @param start initial power of 2 (RLC) or 1.3 (FLIDS). * @param max with RLC, maximum number of DUs per tick. * @param tab_len number of entries in table to consider. */ void mcl_calc_tx_scale (double *tab, INT32 start, double max, INT32 tab_len); /****** Private Attributes ********************************************/ bool fully_initialized; // true when session is fully init'ed // ie. after finish_session_init() INT32 id; // MCL session identifier mcl_tx_rx_mode tx_rx_mode; // is it a sender or a receiver? bool flute_mode; // true in FLUTE compatibility mode, // false otherwise INT8 verbosity_level;// debug trace level INT8 stats_level; // statistics level mcl_mutex_t session_lock; // global session lock INT32 max_datagram_size; // max datagram size for tx and rx INT32 payload_size; // default payload size for tx and rx // the actual DU size used for a given ADU is // kept in the adu->symbol_len, and may change // for different ADUs (not yet supported!) }; /** * Table containing the various control blocks of the sessions. * There can be at most MCLCB_MAX_ID simultaneous sessions in an MCL-ALC * instance. */ extern mcl_cb *mclcb_tab[MAX_NB_MCLCB]; /** One time initialization function for the mclcb table. */ extern void mcl_init_mclcb_tab (void); //------------------------------------------------------------------------------ // Inlines for all classes follow //------------------------------------------------------------------------------ inline INT32 mcl_cb::get_id() { return this->id; } inline mcl_tx_rx_mode mcl_cb::get_mode () { return this->tx_rx_mode; } inline bool mcl_cb::is_a_sender () { //return (this->tx_rx_mode == MCL_IS_A_SENDER_ONLY || // this->tx_rx_mode == MCL_IS_A_SENDER_AND_RECEIVER); return (this->tx_rx_mode == MCL_IS_A_SENDER_ONLY); } inline bool mcl_cb::is_a_receiver () { //return (this->tx_rx_mode == MCL_IS_A_RECEIVER_ONLY || // this->tx_rx_mode == MCL_IS_A_RECEIVER_AND_SENDER); return (this->tx_rx_mode == MCL_IS_A_RECEIVER_ONLY); } inline void mcl_cb::set_flute_mode (bool onoff) { this->flute_mode = onoff; } inline bool mcl_cb::is_flute_compatible () { return this->flute_mode; } inline INT32 mcl_cb::get_verbosity () { return (INT32) this->verbosity_level; } inline INT32 mcl_cb::get_stats_level () { return (INT32) this->stats_level; } inline void mcl_cb::lock () { mcl_lock(&(this->session_lock)); } inline INT32 mcl_cb::trylock () { return mcl_trylock(&(this->session_lock)); } inline void mcl_cb::unlock () { mcl_unlock(&(this->session_lock)); } inline mcl_error_status #ifdef SVSOA_RECV mcl_cb::finish_session_init_if_needed (int nb_lay) #else mcl_cb::finish_session_init_if_needed () #endif { if (this->fully_initialized) return MCL_OK; else #ifdef SVSOA_RECV return (this->finish_session_init(nb_lay)); #else return (this->finish_session_init()); #endif } inline bool mcl_cb::is_fully_initialized () { return this->fully_initialized; } inline INT32 mcl_cb::get_max_datagram_size () const { return this->max_datagram_size; } inline INT32 mcl_cb::get_payload_size () const { return this->payload_size; } #endif /* } MCL_CB_H */
jcable/mcl
src/alc/mcl_cb.h
C
gpl-2.0
16,636
<?php /** * Virtuemart Waitinglist table * * @package CSVI * @author Roland Dalmulder * @link http://www.csvimproved.com * @copyright Copyright (C) 2006 - 2012 RolandD Cyber Produksi * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id: waitingusers.php 1924 2012-03-02 11:32:38Z RolandD $ */ // No direct access defined('_JEXEC') or die('Restricted access'); /** * @package CSVI */ class TableWaitingusers extends JTable { /** * Table constructor * * @copyright * @author RolandD * @todo * @see * @access public * @param * @return * @since 4.0 */ public function __construct($db) { parent::__construct('#__virtuemart_waitingusers', 'virtuemart_waitinguser_id', $db ); } /** * Resets the default properties * * @copyright * @author RolandD * @todo * @see * @access public * @param * @return void * @since 3.1 */ public function reset() { // Get the default values for the class from the table. foreach ($this->getFields() as $k => $v) { // If the property is not private, reset it. if (strpos($k, '_') !== 0) { $this->$k = NULL; } } } /** * Check if there is already a waiting list entry * * @copyright * @author RolandD * @todo * @see * @access public * @param * @return * @since 3.1 */ public function check() { if (empty($this->virtuemart_waitinguser_id)) { $jinput = JFactory::getApplication()->input; $csvilog = $jinput->get('csvilog', null, null); $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select($this->_tbl_key); $query->from($this->_tbl); $query->where('virtuemart_product_id = '.$this->virtuemart_product_id); $query->where('virtuemart_user_id = '.$this->virtuemart_user_id); $db->setQuery($query); $this->virtuemart_waitinguser_id = $db->loadResult(); $csvilog->addDebug(JText::_('COM_CSVI_CHECKING_WAITINGLIST_EXISTS'), true); } } } ?>
srbsnkr/sellingonlinemadesimple
administrator/components/com_csvi/tables/com_virtuemart/waitingusers.php
PHP
gpl-2.0
1,970
/* * Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Sun designates this * particular file as subject to the "Classpath" exception as provided * by Sun in the LICENSE file that accompanied this code. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ /* * Licensed Materials - Property of IBM * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997,1998 * RMI-IIOP v1.0 * */ package com.sun.tools.corba.se.idl.som.cff; import java.lang.Exception; import java.lang.String; import java.lang.System; import java.io.BufferedInputStream; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.IOException; import java.util.Locale; import java.util.NoSuchElementException; import java.util.Properties; import java.util.StringTokenizer; import java.util.zip.*; /** * FileLocator is an abstract class (one that cannot be instantiated) that * provides class methods for finding files in the directories or zip * archives that make up the CLASSPATH. * * @author Larry K. Raper */ public abstract class FileLocator extends Object { /* Class variables */ static final Properties pp = System.getProperties (); static final String classPath = pp.getProperty ("java.class.path", "."); static final String pathSeparator = pp.getProperty ("path.separator", ";"); /* Instance variables */ /* [None, no instances of this class are ever instantiated.] */ /** * locateClassFile returns a DataInputStream with mark/reset * capability that can be used to read the requested class file. The * CLASSPATH is used to locate the class. * * @param classFileName The name of the class to locate. The class name * should be given in fully-qualified form, for example: * <pre> * java.lang.Object * java.io.DataInputStream * </pre> * * @exception java.io.FileNotFoundException The requested class file * could not be found. * @exception java.io.IOException The requested class file * could not be opened. */ public static DataInputStream locateClassFile (String classFileName) throws FileNotFoundException, IOException { boolean notFound = true; StringTokenizer st; String path = ""; String pathNameForm; File cf = null; NamedDataInputStream result; st = new StringTokenizer (classPath, pathSeparator, false); pathNameForm = classFileName.replace ('.', File.separatorChar) + ".class"; while (st.hasMoreTokens () && notFound) { try {path = st.nextToken ();} catch (NoSuchElementException nse) {break;} int pLen = path.length (); String pathLast4 = pLen > 3 ? path.substring (pLen - 4) : ""; if (pathLast4.equalsIgnoreCase (".zip") || pathLast4.equalsIgnoreCase (".jar")) { try { result = locateInZipFile (path, classFileName, true, true); if (result == null) continue; return (DataInputStream) result; } catch (ZipException zfe) { continue; } catch (IOException ioe) { continue; } } else { try {cf = new File (path + File.separator + pathNameForm); } catch (NullPointerException npe) { continue; } if ((cf != null) && cf.exists ()) notFound = false; } } if (notFound) { /* Make one last attempt to find the file in the current * directory */ int lastdot = classFileName.lastIndexOf ('.'); String simpleName = (lastdot >= 0) ? classFileName.substring (lastdot+1) : classFileName; result = new NamedDataInputStream (new BufferedInputStream ( new FileInputStream (simpleName + ".class")), simpleName + ".class", false); return (DataInputStream) result; } result = new NamedDataInputStream (new BufferedInputStream ( new FileInputStream (cf)), path + File.separator + pathNameForm, false); return (DataInputStream) result; } /** * locateLocaleSpecificFileInClassPath returns a DataInputStream that * can be used to read the requested file, but the name of the file is * determined using information from the current locale and the supplied * file name (which is treated as a "base" name, and is supplemented with * country and language related suffixes, obtained from the current * locale). The CLASSPATH is used to locate the file. * * @param fileName The name of the file to locate. The file name * may be qualified with a partial path name, using '/' as the separator * character or using separator characters appropriate for the host file * system, in which case each directory or zip file in the CLASSPATH will * be used as a base for finding the fully-qualified file. * Here is an example of how the supplied fileName is used as a base * for locating a locale-specific file: * * <pre> * Supplied fileName: a/b/c/x.y, current locale: US English * * Look first for: a/b/c/x_en_US.y * (if that fails) Look next for: a/b/c/x_en.y * (if that fails) Look last for: a/b/c/x.y * * All elements of the class path are searched for each name, * before the next possible name is tried. * </pre> * * @exception java.io.FileNotFoundException The requested class file * could not be found. * @exception java.io.IOException The requested class file * could not be opened. */ public static DataInputStream locateLocaleSpecificFileInClassPath ( String fileName) throws FileNotFoundException, IOException { String localeSuffix = "_" + Locale.getDefault ().toString (); int lastSlash = fileName.lastIndexOf ('/'); int lastDot = fileName.lastIndexOf ('.'); String fnFront, fnEnd; DataInputStream result = null; boolean lastAttempt = false; if ((lastDot > 0) && (lastDot > lastSlash)) { fnFront = fileName.substring (0, lastDot); fnEnd = fileName.substring (lastDot); } else { fnFront = fileName; fnEnd = ""; } while (true) { if (lastAttempt) result = locateFileInClassPath (fileName); else try { result = locateFileInClassPath (fnFront + localeSuffix + fnEnd); } catch (Exception e) { /* ignore */ } if ((result != null) || lastAttempt) break; int lastUnderbar = localeSuffix.lastIndexOf ('_'); if (lastUnderbar > 0) localeSuffix = localeSuffix.substring (0, lastUnderbar); else lastAttempt = true; } return result; } /** * locateFileInClassPath returns a DataInputStream that can be used * to read the requested file. The CLASSPATH is used to locate the file. * * @param fileName The name of the file to locate. The file name * may be qualified with a partial path name, using '/' as the separator * character or using separator characters appropriate for the host file * system, in which case each directory or zip file in the CLASSPATH will * be used as a base for finding the fully-qualified file. * * @exception java.io.FileNotFoundException The requested class file * could not be found. * @exception java.io.IOException The requested class file * could not be opened. */ public static DataInputStream locateFileInClassPath (String fileName) throws FileNotFoundException, IOException { boolean notFound = true; StringTokenizer st; String path = ""; File cf = null; NamedDataInputStream result; String zipEntryName = File.separatorChar == '/' ? fileName : fileName.replace (File.separatorChar, '/'); String localFileName = File.separatorChar == '/' ? fileName : fileName.replace ('/', File.separatorChar); st = new StringTokenizer (classPath, pathSeparator, false); while (st.hasMoreTokens () && notFound) { try {path = st.nextToken ();} catch (NoSuchElementException nse) {break;} int pLen = path.length (); String pathLast4 = pLen > 3 ? path.substring (pLen - 4) : ""; if (pathLast4.equalsIgnoreCase (".zip") || pathLast4.equalsIgnoreCase (".jar")) { try { result = locateInZipFile (path, zipEntryName, false, false); if (result == null) continue; return (DataInputStream) result; } catch (ZipException zfe) { continue; } catch (IOException ioe) { continue; } } else { try {cf = new File (path + File.separator + localFileName); } catch (NullPointerException npe) { continue; } if ((cf != null) && cf.exists ()) notFound = false; } } if (notFound) { /* Make one last attempt to find the file in the current * directory */ int lastpart = localFileName.lastIndexOf (File.separator); String simpleName = (lastpart >= 0) ? localFileName.substring (lastpart+1) : localFileName; result = new NamedDataInputStream (new BufferedInputStream ( new FileInputStream (simpleName)), simpleName, false); return (DataInputStream) result; } result = new NamedDataInputStream (new BufferedInputStream ( new FileInputStream (cf)), path + File.separator + localFileName, false); return (DataInputStream) result; } /** * Returns the fully qualified file name associated with the passed * DataInputStream <i>if the DataInputStream was created using one * of the static locate methods supplied with this class</i>, otherwise * returns a zero length string. */ public static String getFileNameFromStream (DataInputStream ds) { if (ds instanceof NamedDataInputStream) return ((NamedDataInputStream) ds).fullyQualifiedFileName; return ""; } /** * Returns an indication of whether the passed DataInputStream is * associated with a member of a zip file <i>if the DataInputStream was * created using one of the static locate methods supplied with this * class</i>, otherwise returns false. */ public static boolean isZipFileAssociatedWithStream (DataInputStream ds) { if (ds instanceof NamedDataInputStream) return ((NamedDataInputStream) ds).inZipFile; return false; } private static NamedDataInputStream locateInZipFile (String zipFileName, String fileName, boolean wantClass, boolean buffered) throws ZipException, IOException { ZipFile zf; ZipEntry ze; zf = new ZipFile (zipFileName); if (zf == null) return null; String zeName = wantClass ? fileName.replace ('.', '/') + ".class" : fileName; // This code works with JDK 1.0 level SUN zip classes // // ze = zf.get (zeName); // if (ze == null) // return null; // return new NamedDataInputStream ( // new BufferedInputStream (new ZipInputStream (ze)), // zipFileName + '(' +zeName + ')', true); // This code works with JDK 1.0.2 and JDK 1.1 level SUN zip classes // ze = zf.getEntry (zeName); if (ze == null) { zf.close(); // D55355, D56419 zf = null; return null; } InputStream istream = zf.getInputStream(ze); if (buffered) istream = new BufferedInputStream(istream); return new NamedDataInputStream (istream, zipFileName + '(' + zeName + ')', true); } } /** * This class is used to associate a filename with a DataInputStream * The host platform's file naming conventions are assumed for the filename. * * @author Larry K. Raper * */ /* default access */ class NamedDataInputStream extends DataInputStream { /* Instance variables */ /** * The name of the file associated with the DataInputStream. */ public String fullyQualifiedFileName; /** * Indicates whether or not the file is contained in a .zip file. */ public boolean inZipFile; /* Constructors */ protected NamedDataInputStream (InputStream in, String fullyQualifiedName, boolean inZipFile) { super (in); this.fullyQualifiedFileName = fullyQualifiedName; this.inZipFile = inZipFile; } }
TheTypoMaster/Scaper
openjdk/corba/src/share/classes/com/sun/tools/corba/se/idl/som/cff/FileLocator.java
Java
gpl-2.0
14,450
#ifndef __CVMX_PEXP_DEFS_H__ #define __CVMX_PEXP_DEFS_H__ #define CVMX_PEXP_NPEI_BAR1_INDEXX(offset) \ CVMX_ADD_IO_SEG(0x00011F0000008000ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_BIST_STATUS \ CVMX_ADD_IO_SEG(0x00011F0000008580ull) #define CVMX_PEXP_NPEI_BIST_STATUS2 \ CVMX_ADD_IO_SEG(0x00011F0000008680ull) #define CVMX_PEXP_NPEI_CTL_PORT0 \ CVMX_ADD_IO_SEG(0x00011F0000008250ull) #define CVMX_PEXP_NPEI_CTL_PORT1 \ CVMX_ADD_IO_SEG(0x00011F0000008260ull) #define CVMX_PEXP_NPEI_CTL_STATUS \ CVMX_ADD_IO_SEG(0x00011F0000008570ull) #define CVMX_PEXP_NPEI_CTL_STATUS2 \ CVMX_ADD_IO_SEG(0x00011F000000BC00ull) #define CVMX_PEXP_NPEI_DATA_OUT_CNT \ CVMX_ADD_IO_SEG(0x00011F00000085F0ull) #define CVMX_PEXP_NPEI_DBG_DATA \ CVMX_ADD_IO_SEG(0x00011F0000008510ull) #define CVMX_PEXP_NPEI_DBG_SELECT \ CVMX_ADD_IO_SEG(0x00011F0000008500ull) #define CVMX_PEXP_NPEI_DMA0_INT_LEVEL \ CVMX_ADD_IO_SEG(0x00011F00000085C0ull) #define CVMX_PEXP_NPEI_DMA1_INT_LEVEL \ CVMX_ADD_IO_SEG(0x00011F00000085D0ull) #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) \ CVMX_ADD_IO_SEG(0x00011F0000008450ull + (((offset) & 7) * 16)) #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) \ CVMX_ADD_IO_SEG(0x00011F00000083B0ull + (((offset) & 7) * 16)) #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) \ CVMX_ADD_IO_SEG(0x00011F0000008400ull + (((offset) & 7) * 16)) #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) \ CVMX_ADD_IO_SEG(0x00011F00000084A0ull + (((offset) & 7) * 16)) #define CVMX_PEXP_NPEI_DMA_CNTS \ CVMX_ADD_IO_SEG(0x00011F00000085E0ull) #define CVMX_PEXP_NPEI_DMA_CONTROL \ CVMX_ADD_IO_SEG(0x00011F00000083A0ull) #define CVMX_PEXP_NPEI_INT_A_ENB \ CVMX_ADD_IO_SEG(0x00011F0000008560ull) #define CVMX_PEXP_NPEI_INT_A_ENB2 \ CVMX_ADD_IO_SEG(0x00011F000000BCE0ull) #define CVMX_PEXP_NPEI_INT_A_SUM \ CVMX_ADD_IO_SEG(0x00011F0000008550ull) #define CVMX_PEXP_NPEI_INT_ENB \ CVMX_ADD_IO_SEG(0x00011F0000008540ull) #define CVMX_PEXP_NPEI_INT_ENB2 \ CVMX_ADD_IO_SEG(0x00011F000000BCD0ull) #define CVMX_PEXP_NPEI_INT_INFO \ CVMX_ADD_IO_SEG(0x00011F0000008590ull) #define CVMX_PEXP_NPEI_INT_SUM \ CVMX_ADD_IO_SEG(0x00011F0000008530ull) #define CVMX_PEXP_NPEI_INT_SUM2 \ CVMX_ADD_IO_SEG(0x00011F000000BCC0ull) #define CVMX_PEXP_NPEI_LAST_WIN_RDATA0 \ CVMX_ADD_IO_SEG(0x00011F0000008600ull) #define CVMX_PEXP_NPEI_LAST_WIN_RDATA1 \ CVMX_ADD_IO_SEG(0x00011F0000008610ull) #define CVMX_PEXP_NPEI_MEM_ACCESS_CTL \ CVMX_ADD_IO_SEG(0x00011F00000084F0ull) #define CVMX_PEXP_NPEI_MEM_ACCESS_SUBIDX(offset) \ CVMX_ADD_IO_SEG(0x00011F0000008280ull + (((offset) & 31) * 16) - 16 * 12) #define CVMX_PEXP_NPEI_MSI_ENB0 \ CVMX_ADD_IO_SEG(0x00011F000000BC50ull) #define CVMX_PEXP_NPEI_MSI_ENB1 \ CVMX_ADD_IO_SEG(0x00011F000000BC60ull) #define CVMX_PEXP_NPEI_MSI_ENB2 \ CVMX_ADD_IO_SEG(0x00011F000000BC70ull) #define CVMX_PEXP_NPEI_MSI_ENB3 \ CVMX_ADD_IO_SEG(0x00011F000000BC80ull) #define CVMX_PEXP_NPEI_MSI_RCV0 \ CVMX_ADD_IO_SEG(0x00011F000000BC10ull) #define CVMX_PEXP_NPEI_MSI_RCV1 \ CVMX_ADD_IO_SEG(0x00011F000000BC20ull) #define CVMX_PEXP_NPEI_MSI_RCV2 \ CVMX_ADD_IO_SEG(0x00011F000000BC30ull) #define CVMX_PEXP_NPEI_MSI_RCV3 \ CVMX_ADD_IO_SEG(0x00011F000000BC40ull) #define CVMX_PEXP_NPEI_MSI_RD_MAP \ CVMX_ADD_IO_SEG(0x00011F000000BCA0ull) #define CVMX_PEXP_NPEI_MSI_W1C_ENB0 \ CVMX_ADD_IO_SEG(0x00011F000000BCF0ull) #define CVMX_PEXP_NPEI_MSI_W1C_ENB1 \ CVMX_ADD_IO_SEG(0x00011F000000BD00ull) #define CVMX_PEXP_NPEI_MSI_W1C_ENB2 \ CVMX_ADD_IO_SEG(0x00011F000000BD10ull) #define CVMX_PEXP_NPEI_MSI_W1C_ENB3 \ CVMX_ADD_IO_SEG(0x00011F000000BD20ull) #define CVMX_PEXP_NPEI_MSI_W1S_ENB0 \ CVMX_ADD_IO_SEG(0x00011F000000BD30ull) #define CVMX_PEXP_NPEI_MSI_W1S_ENB1 \ CVMX_ADD_IO_SEG(0x00011F000000BD40ull) #define CVMX_PEXP_NPEI_MSI_W1S_ENB2 \ CVMX_ADD_IO_SEG(0x00011F000000BD50ull) #define CVMX_PEXP_NPEI_MSI_W1S_ENB3 \ CVMX_ADD_IO_SEG(0x00011F000000BD60ull) #define CVMX_PEXP_NPEI_MSI_WR_MAP \ CVMX_ADD_IO_SEG(0x00011F000000BC90ull) #define CVMX_PEXP_NPEI_PCIE_CREDIT_CNT \ CVMX_ADD_IO_SEG(0x00011F000000BD70ull) #define CVMX_PEXP_NPEI_PCIE_MSI_RCV \ CVMX_ADD_IO_SEG(0x00011F000000BCB0ull) #define CVMX_PEXP_NPEI_PCIE_MSI_RCV_B1 \ CVMX_ADD_IO_SEG(0x00011F0000008650ull) #define CVMX_PEXP_NPEI_PCIE_MSI_RCV_B2 \ CVMX_ADD_IO_SEG(0x00011F0000008660ull) #define CVMX_PEXP_NPEI_PCIE_MSI_RCV_B3 \ CVMX_ADD_IO_SEG(0x00011F0000008670ull) #define CVMX_PEXP_NPEI_PKTX_CNTS(offset) \ CVMX_ADD_IO_SEG(0x00011F000000A400ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_INSTR_BADDR(offset) \ CVMX_ADD_IO_SEG(0x00011F000000A800ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_INSTR_BAOFF_DBELL(offset) \ CVMX_ADD_IO_SEG(0x00011F000000AC00ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_INSTR_FIFO_RSIZE(offset) \ CVMX_ADD_IO_SEG(0x00011F000000B000ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_INSTR_HEADER(offset) \ CVMX_ADD_IO_SEG(0x00011F000000B400ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_IN_BP(offset) \ CVMX_ADD_IO_SEG(0x00011F000000B800ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_SLIST_BADDR(offset) \ CVMX_ADD_IO_SEG(0x00011F0000009400ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_SLIST_BAOFF_DBELL(offset) \ CVMX_ADD_IO_SEG(0x00011F0000009800ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKTX_SLIST_FIFO_RSIZE(offset) \ CVMX_ADD_IO_SEG(0x00011F0000009C00ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKT_CNT_INT \ CVMX_ADD_IO_SEG(0x00011F0000009110ull) #define CVMX_PEXP_NPEI_PKT_CNT_INT_ENB \ CVMX_ADD_IO_SEG(0x00011F0000009130ull) #define CVMX_PEXP_NPEI_PKT_DATA_OUT_ES \ CVMX_ADD_IO_SEG(0x00011F00000090B0ull) #define CVMX_PEXP_NPEI_PKT_DATA_OUT_NS \ CVMX_ADD_IO_SEG(0x00011F00000090A0ull) #define CVMX_PEXP_NPEI_PKT_DATA_OUT_ROR \ CVMX_ADD_IO_SEG(0x00011F0000009090ull) #define CVMX_PEXP_NPEI_PKT_DPADDR \ CVMX_ADD_IO_SEG(0x00011F0000009080ull) #define CVMX_PEXP_NPEI_PKT_INPUT_CONTROL \ CVMX_ADD_IO_SEG(0x00011F0000009150ull) #define CVMX_PEXP_NPEI_PKT_INSTR_ENB \ CVMX_ADD_IO_SEG(0x00011F0000009000ull) #define CVMX_PEXP_NPEI_PKT_INSTR_RD_SIZE \ CVMX_ADD_IO_SEG(0x00011F0000009190ull) #define CVMX_PEXP_NPEI_PKT_INSTR_SIZE \ CVMX_ADD_IO_SEG(0x00011F0000009020ull) #define CVMX_PEXP_NPEI_PKT_INT_LEVELS \ CVMX_ADD_IO_SEG(0x00011F0000009100ull) #define CVMX_PEXP_NPEI_PKT_IN_BP \ CVMX_ADD_IO_SEG(0x00011F00000086B0ull) #define CVMX_PEXP_NPEI_PKT_IN_DONEX_CNTS(offset) \ CVMX_ADD_IO_SEG(0x00011F000000A000ull + (((offset) & 31) * 16)) #define CVMX_PEXP_NPEI_PKT_IN_INSTR_COUNTS \ CVMX_ADD_IO_SEG(0x00011F00000086A0ull) #define CVMX_PEXP_NPEI_PKT_IN_PCIE_PORT \ CVMX_ADD_IO_SEG(0x00011F00000091A0ull) #define CVMX_PEXP_NPEI_PKT_IPTR \ CVMX_ADD_IO_SEG(0x00011F0000009070ull) #define CVMX_PEXP_NPEI_PKT_OUTPUT_WMARK \ CVMX_ADD_IO_SEG(0x00011F0000009160ull) #define CVMX_PEXP_NPEI_PKT_OUT_BMODE \ CVMX_ADD_IO_SEG(0x00011F00000090D0ull) #define CVMX_PEXP_NPEI_PKT_OUT_ENB \ CVMX_ADD_IO_SEG(0x00011F0000009010ull) #define CVMX_PEXP_NPEI_PKT_PCIE_PORT \ CVMX_ADD_IO_SEG(0x00011F00000090E0ull) #define CVMX_PEXP_NPEI_PKT_PORT_IN_RST \ CVMX_ADD_IO_SEG(0x00011F0000008690ull) #define CVMX_PEXP_NPEI_PKT_SLIST_ES \ CVMX_ADD_IO_SEG(0x00011F0000009050ull) #define CVMX_PEXP_NPEI_PKT_SLIST_ID_SIZE \ CVMX_ADD_IO_SEG(0x00011F0000009180ull) #define CVMX_PEXP_NPEI_PKT_SLIST_NS \ CVMX_ADD_IO_SEG(0x00011F0000009040ull) #define CVMX_PEXP_NPEI_PKT_SLIST_ROR \ CVMX_ADD_IO_SEG(0x00011F0000009030ull) #define CVMX_PEXP_NPEI_PKT_TIME_INT \ CVMX_ADD_IO_SEG(0x00011F0000009120ull) #define CVMX_PEXP_NPEI_PKT_TIME_INT_ENB \ CVMX_ADD_IO_SEG(0x00011F0000009140ull) #define CVMX_PEXP_NPEI_RSL_INT_BLOCKS \ CVMX_ADD_IO_SEG(0x00011F0000008520ull) #define CVMX_PEXP_NPEI_SCRATCH_1 \ CVMX_ADD_IO_SEG(0x00011F0000008270ull) #define CVMX_PEXP_NPEI_STATE1 \ CVMX_ADD_IO_SEG(0x00011F0000008620ull) #define CVMX_PEXP_NPEI_STATE2 \ CVMX_ADD_IO_SEG(0x00011F0000008630ull) #define CVMX_PEXP_NPEI_STATE3 \ CVMX_ADD_IO_SEG(0x00011F0000008640ull) #define CVMX_PEXP_NPEI_WINDOW_CTL \ CVMX_ADD_IO_SEG(0x00011F0000008380ull) #endif
luckasfb/OT_903D-kernel-2.6.35.7
kernel/arch/mips/include/asm/octeon/cvmx-pexp-defs.h
C
gpl-2.0
8,125
<?php // Don't load directly if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } if ( ! class_exists( 'Tribe__Settings_Tab' ) ) { /** * helper class that creates a settings tab * this is a public API, use it to create tabs * simply by instantiating this class * */ class Tribe__Settings_Tab { /** * Tab ID, used in query string and elsewhere * @var string */ public $id; /** * Tab's name * @var string */ public $name; /** * Tab's arguments * @var array */ public $args; /** * Defaults for tabs * @var array */ public $defaults; /** * class constructor * * @param string $id the tab's id (no spaces or special characters) * @param string $name the tab's visible name * @param array $args additional arguments for the tab */ public function __construct( $id, $name, $args = array() ) { // setup the defaults $this->defaults = array( 'fields' => array(), 'priority' => 50, 'show_save' => true, 'display_callback' => false, 'network_admin' => false, ); // parse args with defaults $this->args = wp_parse_args( $args, $this->defaults ); // set each instance variable and filter $this->id = apply_filters( 'tribe_settings_tab_id', $id ); $this->name = apply_filters( 'tribe_settings_tab_name', $name ); foreach ( $this->defaults as $key => $value ) { $this->{$key} = apply_filters( 'tribe_settings_tab_' . $key, $this->args[ $key ], $id ); } // run actions & filters if ( ! $this->network_admin ) { add_filter( 'tribe_settings_all_tabs', array( $this, 'addAllTabs' ) ); } add_filter( 'tribe_settings_tabs', array( $this, 'addTab' ), $this->priority ); } /** * filters the tabs array from Tribe__Settings * and adds the current tab to it * does not add a tab if it's empty * * @param array $tabs the $tabs from Tribe__Settings * * @return array $tabs the filtered tabs */ public function addTab( $tabs ) { if ( ( isset( $this->fields ) || has_action( 'tribe_settings_content_tab_' . $this->id ) ) ) { if ( ( is_network_admin() && $this->args['network_admin'] ) || ( ! is_network_admin() && ! $this->args['network_admin'] ) ) { $tabs[ $this->id ] = $this->name; add_filter( 'tribe_settings_fields', array( $this, 'addFields' ) ); add_filter( 'tribe_settings_no_save_tabs', array( $this, 'showSaveTab' ) ); add_filter( 'tribe_settings_content_tab_' . $this->id, array( $this, 'doContent' ) ); } } return $tabs; } /** * Adds this tab to the list of total tabs, even if it is not displayed. * * @param array $allTabs All the tabs from Tribe__Settings. * * @return array $allTabs All the tabs. */ public function addAllTabs( $allTabs ) { $allTabs[ $this->id ] = $this->name; return $allTabs; } /** * filters the fields array from Tribe__Settings * and adds the current tab's fields to it * * @param array $field the $fields from Tribe__Settings * * @return array $fields the filtered fields */ public function addFields( $fields ) { if ( ! empty ( $this->fields ) ) { $fields[ $this->id ] = $this->fields; } elseif ( has_action( 'tribe_settings_content_tab_' . $this->id ) ) { $fields[ $this->id ] = $this->fields = array( 0 => null ); // just to trick it } return $fields; } /** * sets whether the current tab should show the save * button or not * * @param array $noSaveTabs the $noSaveTabs from Tribe__Settings * * @return array $noSaveTabs the filtered non saving tabs */ public function showSaveTab( $noSaveTabs ) { if ( ! $this->show_save || empty( $this->fields ) ) { $noSaveTabs[ $this->id ] = $this->id; } return $noSaveTabs; } /** * displays the content for the tab * * @return void */ public function doContent() { if ( $this->display_callback && is_callable( $this->display_callback ) ) { call_user_func( $this->display_callback ); return; } $sent_data = get_option( 'tribe_settings_sent_data', array() ); if ( is_array( $this->fields ) && ! empty( $this->fields ) ) { foreach ( $this->fields as $key => $field ) { if ( isset( $sent_data[ $key ] ) ) { // if we just saved [or attempted to], get the value that was inputed $value = $sent_data[ $key ]; } else { // Some options should always be stored at network level $network_option = isset( $field['network_option'] ) ? (bool) $field['network_option'] : false; if ( ! is_network_admin() ) { $parent_option = ( isset( $field['parent_option'] ) ) ? $field['parent_option'] : Tribe__Main::OPTIONNAME; } // get the field's parent_option in order to later get the field's value $parent_option = apply_filters( 'tribe_settings_do_content_parent_option', $parent_option, $key ); $default = ( isset( $field['default'] ) ) ? $field['default'] : null; $default = apply_filters( 'tribe_settings_field_default', $default, $field ); if ( ! $parent_option ) { // no parent option, get the straight up value if ( $network_option || is_network_admin() ) { $value = get_site_option( $key, $default ); } else { $value = get_option( $key, $default ); } } else { // there's a parent option if ( $parent_option == Tribe__Main::OPTIONNAME ) { // get the options from Tribe__Settings_Manager if we're getting the main array $value = Tribe__Settings_Manager::get_option( $key, $default ); } else { // else, get the parent option normally if ( is_network_admin() ) { $options = (array) get_site_option( $parent_option ); } else { $options = (array) get_option( $parent_option ); } $value = ( isset( $options[ $key ] ) ) ? $options[ $key ] : $default; } } } // escape the value for display if ( ! empty( $field['esc_display'] ) && function_exists( $field['esc_display'] ) ) { $value = $field['esc_display']( $value ); } elseif ( is_string( $value ) ) { $value = esc_attr( stripslashes( $value ) ); } // filter the value $value = apply_filters( 'tribe_settings_get_option_value_pre_display', $value, $key, $field ); // create the field new Tribe__Field( $key, $field, $value ); } } else { // no fields setup for this tab yet echo '<p>' . esc_html__( 'There are no fields setup for this tab yet.', 'the-events-calendar' ) . '</p>'; } } } // end class } // endif class_exists
Ilya-d/htdocs
wp-content/plugins/the-events-calendar-malivi/common/src/Tribe/Settings_Tab.php
PHP
gpl-2.0
6,671
# coding: utf-8 from Sensor import Sensor import nxt class ColorSensor(Sensor): name = 'color' def Initialize(self): #self.sensor = nxt.Light(self.robot.GetBrick(), self.port) #self.sensor.set_illuminated(0) self.sensor = nxt.Color20(self.robot.GetBrick(), self.port) def Scan(self): return self.sensor.get_sample()
Lopt/nxt
NXT/ColorSensor.py
Python
gpl-2.0
372
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace webtest.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; return View(); } public ActionResult About() { ViewBag.Message = "This application serves as the results of the OGSys web test."; return View(); } public ActionResult Contact() { ViewBag.Message = "Contact Information for Steve Zilligen."; return View(); } } }
szilligen/ogsys_webtest
code/webtest/Controllers/HomeController.cs
C#
gpl-2.0
724
Notes for early adopters ======================== Though I am making an effort to ensure that the HTTP replicator is reliable, I am not all that creative about thinking up ways that people might like to configure things; for example, see below about my specific concerns about --ip and --alias. Just because a program is "bug-free" with respect to a specification does not mean that the specification itself is not buggy... so let me know if you find something to be misdesigned, even if the code appears to be "working as intended". I'd also like to improve the documentation of the replicator. Please point out places where the existing documentation is worded awkwardly or confusingly, as well as anywhere that you find the documentation to just be lacking. Plus, of course, just general testing. Use the replicator, monitor the logs, and report any bugs you find. The --ip option --------------- I personally protect internal-only services on my network by having them bind to an address which will not be routed (or NATed) outside my local network (e.g., an IPv6 ULA from fc00::/7). Or I run a service bound to "localhost", and use a ssh tunnel to that machine with suitable port forwarding. Others apparently like to bind to the wildcard address (0.0.0.0 or ::) and then filter based on the incoming peer's IP address. I've added code intending to accommodate this latter approach, but as it is not my style, I'm not sure I got it right. I've also attempted to document both approaches (and the approach of using firewall rules, like nftables) in the "README-too.md" document. Please let me know if either the code's behavior or the documentation relating to the --ip option needs to be improved. The --alias option ------------------ I've received laments that the --alias option of the v3 replicator disappeared in the v4 replicator. I've added code intending to support this, based on my reading of what the v3 code was attempting to accomplish, but as I never made use of this feature, I may have misunderstood the actual intent. Please let me know if I botched up any of: the intent of the option, its implementation, or its documentation.
gertjanvanzwieten/replicator
README-beta.md
Markdown
gpl-2.0
2,169
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus-core - m64p_config.h * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2009 Richard Goedeken * * * * This program 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 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 General Public License for more details. * * * * You should have received a copy of the GNU 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* This header file defines typedefs for function pointers to the Core's * configuration handling functions. */ #if !defined(M64P_CONFIG_H) #define M64P_CONFIG_H #include "m64p_types.h" /* ConfigListSections() * * This function is called to enumerate the list of Sections in the Mupen64Plus * configuration file. It is expected that there will be a section named "Core" * for core-specific configuration data, "Graphics" for common graphics options, * and one or more sections for each plugin library. */ typedef m64p_error (*ptr_ConfigListSections)(void *, void (*)(void *, const char *)); /* ConfigOpenSection() * * This function is used to give a configuration section handle to the front-end * which may be used to read or write configuration parameter values in a given * section of the configuration file. */ typedef m64p_error (*ptr_ConfigOpenSection)(const char *, m64p_handle *); /* ConfigListParameters() * * This function is called to enumerate the list of Parameters in a given * Section of the Mupen64Plus configuration file. */ typedef m64p_error (*ptr_ConfigListParameters)(m64p_handle, void *, void (*)(void *, const char *, m64p_type)); /* ConfigSaveFile() * * This function saves the Mupen64Plus configuration file to disk. */ typedef m64p_error (*ptr_ConfigSaveFile)(void); /* ConfigDeleteSection() * * This function deletes a section from the Mupen64Plus configuration data. */ typedef m64p_error (*ptr_ConfigDeleteSection)(const char *SectionName); /* ConfigSetParameter() * * This function sets the value of one of the emulator's configuration * parameters. */ typedef m64p_error (*ptr_ConfigSetParameter)(m64p_handle, const char *, m64p_type, const void *); /* ConfigGetParameter() * * This function retrieves the value of one of the emulator's parameters. */ typedef m64p_error (*ptr_ConfigGetParameter)(m64p_handle, const char *, m64p_type, void *, int); /* ConfigGetParameterType() * * This function retrieves the type of one of the emulator's parameters. */ typedef m64p_error (*ptr_ConfigGetParameterType)(m64p_handle, const char *, m64p_type *); /* ConfigGetParameterHelp() * * This function retrieves the help information about one of the emulator's * parameters. */ typedef const char * (*ptr_ConfigGetParameterHelp)(m64p_handle, const char *); /* ConfigSetDefault***() * * These functions are used to set the value of a configuration parameter if it * is not already present in the configuration file. This may happen if a new * user runs the emulator, or an upgraded module uses a new parameter, or the * user deletes his or her configuration file. If the parameter is already * present in the given section of the configuration file, then no action will * be taken and this function will return successfully. */ typedef m64p_error (*ptr_ConfigSetDefaultInt)(m64p_handle, const char *, int, const char *); typedef m64p_error (*ptr_ConfigSetDefaultFloat)(m64p_handle, const char *, float, const char *); typedef m64p_error (*ptr_ConfigSetDefaultBool)(m64p_handle, const char *, int, const char *); typedef m64p_error (*ptr_ConfigSetDefaultString)(m64p_handle, const char *, const char *, const char *); /* ConfigGetParam***() * * These functions retrieve the value of one of the emulator's parameters in * the given section, and return the value directly to the calling function. If * an errors occurs (such as an invalid Section handle, or invalid * configuration parameter name), then an error will be sent to the front-end * via the DebugCallback() function, and either a 0 (zero) or an empty string * will be returned. */ typedef int (*ptr_ConfigGetParamInt)(m64p_handle, const char *); typedef float (*ptr_ConfigGetParamFloat)(m64p_handle, const char *); typedef int (*ptr_ConfigGetParamBool)(m64p_handle, const char *); typedef const char * (*ptr_ConfigGetParamString)(m64p_handle, const char *); /* ConfigGetSharedDataFilepath() * * This function is provided to allow a plugin to retrieve a full pathname to a * given shared data file. This type of file is intended to be shared among * multiple users on a system, so it is likely to be read-only. */ typedef const char * (*ptr_ConfigGetSharedDataFilepath)(const char *); /* ConfigGetUserConfigPath() * * This function may be used by the plugins or front-end to get a path to the * directory for storing user-specific configuration files. This will be the * directory where "mupen64plus.cfg" is located. */ typedef const char * (*ptr_ConfigGetUserConfigPath)(void); /* ConfigGetUserDataPath() * * This function may be used by the plugins or front-end to get a path to the * directory for storing user-specific data files. This may be used to store * files such as screenshots, saved game states, or hi-res textures. */ typedef const char * (*ptr_ConfigGetUserDataPath)(void); /* ConfigGetUserCachePath() * * This function may be used by the plugins or front-end to get a path to the * directory for storing cached user-specific data files. Files in this * directory may be deleted by the user to save space, so critical information * should not be stored here. This directory may be used to store files such * as the ROM browser cache. */ typedef const char * (*ptr_ConfigGetUserCachePath)(void); #endif /* #define M64P_CONFIG_H */
emudeveloper/N64-Player--Mupen64plus-
core-debug/jni/core/src/api/m64p_config.h
C
gpl-2.0
6,887
package com.sgulab.thongtindaotao.models; public class ExamSchedule { private String subjectId; private String subjectName; private int numberOfStudents; private String date; private String time; private int duration; private String room; public String getSubjectId() { return subjectId; } public void setSubjectId(String subjectId) { this.subjectId = subjectId; } public String getSubjectName() { return subjectName; } public void setSubjectName(String subjectName) { this.subjectName = subjectName; } public int getNumberOfStudents() { return numberOfStudents; } public void setNumberOfStudents(int numberOfStudents) { this.numberOfStudents = numberOfStudents; } public String getDate() { return date; } public void setDate(String date) { this.date = date; } public String getTime() { return time; } public void setTime(String time) { this.time = time; } public int getDuration() { return duration; } public void setDuration(int duration) { this.duration = duration; } public String getRoom() { return room; } public void setRoom(String room) { this.room = room; } }
toantruonggithub/sguthongtindaotao
app/src/main/java/com/sgulab/thongtindaotao/models/ExamSchedule.java
Java
gpl-2.0
1,210
<?php /** * @version $Id$ * @package Joomla.Administrator * @subpackage com_config * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access defined('_JEXEC') or die; ?> <div class="width-100"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_CONFIG_SITE_SETTINGS'); ?></legend> <ul class="adminformlist"> <?php foreach ($this->form->getFieldset('site') as $field): ?> <li><?php echo $field->label; ?> <?php echo $field->input; ?></li> <?php endforeach; ?> </ul> </fieldset> </div>
worldwideinterweb/joomla-cms
administrator/components/com_config/views/application/tmpl/default_site.php
PHP
gpl-2.0
661
""" Implements compartmental model of a passive cable. See Neuronal Dynamics `Chapter 3 Section 2 <http://neuronaldynamics.epfl.ch/online/Ch3.S2.html>`_ """ # This file is part of the exercise code repository accompanying # the book: Neuronal Dynamics (see http://neuronaldynamics.epfl.ch) # located at http://github.com/EPFL-LCN/neuronaldynamics-exercises. # This free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License 2.0 as published by the # Free Software Foundation. You should have received a copy of the # GNU General Public License along with the repository. If not, # see http://www.gnu.org/licenses/. # Should you reuse and publish the code for your own purposes, # please cite the book or point to the webpage http://neuronaldynamics.epfl.ch. # Wulfram Gerstner, Werner M. Kistler, Richard Naud, and Liam Paninski. # Neuronal Dynamics: From Single Neurons to Networks and Models of Cognition. # Cambridge University Press, 2014. import brian2 as b2 from neurodynex3.tools import input_factory import matplotlib.pyplot as plt import numpy as np # integration time step in milliseconds b2.defaultclock.dt = 0.01 * b2.ms # DEFAULT morphological and electrical parameters CABLE_LENGTH = 500. * b2.um # length of dendrite CABLE_DIAMETER = 2. * b2.um # diameter of dendrite R_LONGITUDINAL = 0.5 * b2.kohm * b2.mm # Intracellular medium resistance R_TRANSVERSAL = 1.25 * b2.Mohm * b2.mm ** 2 # cell membrane resistance (->leak current) E_LEAK = -70. * b2.mV # reversal potential of the leak current (-> resting potential) CAPACITANCE = 0.8 * b2.uF / b2.cm ** 2 # membrane capacitance DEFAULT_INPUT_CURRENT = input_factory.get_step_current(2000, 3000, unit_time=b2.us, amplitude=0.2 * b2.namp) DEFAULT_INPUT_LOCATION = [CABLE_LENGTH / 3] # provide an array of locations # print("Membrane Timescale = {}".format(R_TRANSVERSAL*CAPACITANCE)) def simulate_passive_cable(current_injection_location=DEFAULT_INPUT_LOCATION, input_current=DEFAULT_INPUT_CURRENT, length=CABLE_LENGTH, diameter=CABLE_DIAMETER, r_longitudinal=R_LONGITUDINAL, r_transversal=R_TRANSVERSAL, e_leak=E_LEAK, initial_voltage=E_LEAK, capacitance=CAPACITANCE, nr_compartments=200, simulation_time=5 * b2.ms): """Builds a multicompartment cable and numerically approximates the cable equation. Args: t_spikes (int): list of spike times current_injection_location (list): List [] of input locations (Quantity, Length): [123.*b2.um] input_current (TimedArray): TimedArray of current amplitudes. One column per current_injection_location. length (Quantity): Length of the cable: 0.8*b2.mm diameter (Quantity): Diameter of the cable: 0.2*b2.um r_longitudinal (Quantity): The longitudinal (axial) resistance of the cable: 0.5*b2.kohm*b2.mm r_transversal (Quantity): The transversal resistance (=membrane resistance): 1.25*b2.Mohm*b2.mm**2 e_leak (Quantity): The reversal potential of the leak current (=resting potential): -70.*b2.mV initial_voltage (Quantity): Value of the potential at t=0: -70.*b2.mV capacitance (Quantity): Membrane capacitance: 0.8*b2.uF/b2.cm**2 nr_compartments (int): Number of compartments. Spatial discretization: 200 simulation_time (Quantity): Time for which the dynamics are simulated: 5*b2.ms Returns: (StateMonitor, SpatialNeuron): The state monitor contains the membrane voltage in a Time x Location matrix. The SpatialNeuron object specifies the simulated neuron model and gives access to the morphology. You may want to use those objects for spatial indexing: myVoltageStateMonitor[mySpatialNeuron.morphology[0.123*b2.um]].v """ assert isinstance(input_current, b2.TimedArray), "input_current is not of type TimedArray" assert input_current.values.shape[1] == len(current_injection_location),\ "number of injection_locations does not match nr of input currents" cable_morphology = b2.Cylinder(diameter=diameter, length=length, n=nr_compartments) # Im is transmembrane current # Iext is injected current at a specific position on dendrite EL = e_leak RT = r_transversal eqs = """ Iext = current(t, location_index): amp (point current) location_index : integer (constant) Im = (EL-v)/RT : amp/meter**2 """ cable_model = b2.SpatialNeuron(morphology=cable_morphology, model=eqs, Cm=capacitance, Ri=r_longitudinal) monitor_v = b2.StateMonitor(cable_model, "v", record=True) # inject all input currents at the specified location: nr_input_locations = len(current_injection_location) input_current_0 = np.insert(input_current.values, 0, 0., axis=1) * b2.amp # insert default current: 0. [amp] current = b2.TimedArray(input_current_0, dt=input_current.dt * b2.second) for current_index in range(nr_input_locations): insert_location = current_injection_location[current_index] compartment_index = int(np.floor(insert_location / (length / nr_compartments))) # next line: current_index+1 because 0 is the default current 0Amp cable_model.location_index[compartment_index] = current_index + 1 # set initial values and run for 1 ms cable_model.v = initial_voltage b2.run(simulation_time) return monitor_v, cable_model def getting_started(): """A simple code example to get started. """ current = input_factory.get_step_current(500, 510, unit_time=b2.us, amplitude=3. * b2.namp) voltage_monitor, cable_model = simulate_passive_cable( length=0.5 * b2.mm, current_injection_location=[0.1 * b2.mm], input_current=current, nr_compartments=100, simulation_time=2 * b2.ms) # provide a minimal plot plt.figure() plt.imshow(voltage_monitor.v / b2.volt) plt.colorbar(label="voltage") plt.xlabel("time index") plt.ylabel("location index") plt.title("vm at (t,x), raw data voltage_monitor.v") plt.show() if __name__ == "__main__": getting_started()
EPFL-LCN/neuronaldynamics-exercises
neurodynex3/cable_equation/passive_cable.py
Python
gpl-2.0
6,153
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * 用户添加 * * :NOTICE:仅限管理员权限 * * @copyright 版权所有(C) 2014-2014 沈阳工业大学ACM实验室 沈阳工业大学网络管理中心 *Chen * @license http://www.gnu.org/licenses/gpl-3.0.txt GPL3.0 License * @version 2.0 * @link http://acm.sut.edu.cn/ * @since File available since Release 2.0 */ class Person_add extends CI_Controller{ function __construct() { parent::__construct(); } public function index(){ $this->load->library('session'); $this->load->library('encrypt'); $this->load->model('role_model'); $this->load->model('section_model'); if (!$this->session->userdata('user_id')){ header('Location: ' . base_url()); return 0; } $this->load->view('person_add_view', array( 'user_id' => $this->session->userdata('user_id'), 'user_key' => $this->encrypt->encode($this->session->userdata('user_key')), 'role' => $this->role_model->GetRoleNameList(), 'section' => $this->section_model->GetSectionNameList() )); } /**     * @Purpose:     * 处理传入的添加用户值 * * @Method Name: * AddPersonNormal()     * @Parameter:  * POST $user_id 用户账号 * POST $user_key 用户密钥 * POST $add_user_role 添加用户角色 * POST $add_user_section 添加用户部门 * POST $add_user_number 添加用户学号 * POST $add_user_name 添加用户姓名 * POST $add_user_sex 添加用户性别 * POST $add_user_qq 添加用户QQ * POST $add_user_talent 添加用户特长 * POST $add_user_telephone 添加用户联系方式 * * @Return:  * iframe|目标|状态码|状态说明|出错id * iframe| |0|密钥无法通过检查 * iframe| |1|添加成功 * iframe| |2|学号位数不合法| * iframe| |3|检测到学号重复| * iframe| |4|用户权限不足 * iframe| |5|用户社团角色错误 * iframe| |6|联系方式需要为11位数字| * iframe| |7|联系方式检测到重复| * iframe| |8|QQ号码为不超过15位的数字| * iframe| |9|特长不能超过398个字符| * iframe| |10|姓名不能超过10个字符| * iframe| |11|性别不能超过4个字符| * iframe| |12|用户部门参数错误 * iframe| |13|用户部门关联设置错误 * * :NOTICE:用户权限必须为管理员 * */ public function AddPersonNormal(){ $this->load->library('encrypt'); $this->load->library('basic'); $this->load->library('secure'); $this->load->library('data'); $this->load->model('section_model'); $this->load->model('role_model'); $this->load->model('user_model'); $clean = array(); if ($this->input->post('user_id', TRUE) != $this->secure->CheckUserKey($this->input->post('user_key', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 0, '密钥无法通过安检'); } if (10 < strlen($this->input->post('user_id', TRUE)) || !ctype_digit($this->input->post('user_id', TRUE)) || $this->basic->user_number_length != strlen($this->input->post('add_user_number', TRUE)) || !ctype_digit($this->input->post('add_user_number', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 2, '学号位数不合法,应为' . $this->basic->user_number_length . '位', 'user_number'); } if ($this->user_model->CheckNumberConflict($this->input->post('add_user_number', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 3, '检测到学号重复', 'user_number'); } if ('管理员' != $this->secure->CheckRole($this->input->post('user_id', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 4, '用户权限不足'); } // $clean['basic']['user_number'] = $this->input->post('user_number', TRUE); $clean['basic']['user_number'] = $this->input->post('add_user_number', TRUE); //开始检验正常传入表单 if (11 != strlen($this->input->post('add_user_telephone', TRUE)) || !ctype_digit($this->input->post('add_user_telephone', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 6, '联系方式需要为11位数字', 'user_telephone'); } if ($this->user_model->CheckTeleConflict(NULL, $this->input->post('add_user_telephone', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 7, '联系方式检测到重复', 'user_telephone'); } $clean['basic']['user_telephone'] = $this->input->post('add_user_telephone', TRUE); if (15 < strlen($this->input->post('add_user_qq', TRUE)) || !ctype_digit($this->input->post('add_user_qq', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 8, 'QQ号码为不超过15位的数字', 'user_qq'); } $clean['basic']['user_qq'] = $this->input->post('add_user_qq', TRUE); if (398 < iconv_strlen($this->input->post('add_user_talent', TRUE), 'utf-8')){ $this->data->Out('iframe', $this->input->post('src', TRUE), 9, '特长不能超过398个字符', 'user_talent'); } $clean['basic']['user_talent'] = $this->input->post('add_user_talent', TRUE); if (10 < iconv_strlen($this->input->post('add_user_name', TRUE), 'utf-8')){ $this->data->Out('iframe', $this->input->post('src', TRUE), 10, '姓名不能超过10个字符', 'user_name'); } $clean['basic']['user_name'] = $this->input->post('add_user_name', TRUE); if (4 < iconv_strlen($this->input->post('add_user_sex', TRUE), 'utf-8') || !$this->input->post('add_user_sex', TRUE)){ $this->data->Out('iframe', $this->input->post('src', TRUE), 11, '性别不能超过4个字符'); } $clean['basic']['user_sex'] = $this->input->post('add_user_sex', TRUE); $clean['basic']['user_reg_time'] = 'Y-m-d'; $clean['basic']['user_password'] = $this->encrypt->encode($this->input->post('add_user_number', TRUE) . substr($this->input->post('add_user_telephone', TRUE), 7, 4)); //此处可更改 // $clean['basic']['user_section'] = $this->input->post('add_user_section', TRUE); if ($user_id = $this->user_model->SetUserBasic($clean['basic'])){ if (20 < strlen($this->input->post('add_user_role', TRUE)) || !$this->user_model->SetUserRole($user_id, $this->input->post('add_user_role', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 5, '用户社团角色错误'); } // $this->user_model->SetUserRole($this->input->post('add_user_number', TRUE), $this->input->post('add_user_role', TRUE)); if (!$this->section_model->CheckSectionExist($this->input->post('add_user_section', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 12, '用户部门参数错误'); } if (!$this->user_model->SetUserSection($user_id, $this->input->post('add_user_section', TRUE))){ $this->data->Out('iframe', $this->input->post('src', TRUE), 13, '用户部门关联设置失败,请勿重复关联'); } $this->data->Out('iframe', $this->input->post('src', TRUE), 1, '添加成功'); } } }
SUTFutureCoder/nws_v2
main/application/controllers/person_add.php
PHP
gpl-2.0
7,962
/* * This file is part of the KDE libraries * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. **/ #ifndef KMWINFOBASE_H #define KMWINFOBASE_H #include "kmwizardpage.h" #include <qptrlist.h> class QLabel; class QLineEdit; class KDEPRINT_EXPORT KMWInfoBase : public KMWizardPage { public: KMWInfoBase(int n = 1, QWidget *parent = 0, const char *name = 0); void setInfo(const QString &); void setLabel(int, const QString &); void setText(int, const QString &); void setCurrent(int); QString text(int); protected: QLineEdit *lineEdit(int); private: QPtrList< QLabel > m_labels; QPtrList< QLineEdit > m_edits; QLabel *m_info; int m_nlines; }; #endif
serghei/kde3-kdelibs
kdeprint/management/kmwinfobase.h
C
gpl-2.0
1,432
This will produce analysis 00utc files. $ bsub < ncum_india_reg_from_global_anl_00Z.bash This will produce analysis 06utc files. $ bsub < ncum_india_reg_from_global_anl_06Z.bash This will produce analysis 12utc files. $ bsub < ncum_india_reg_from_global_anl_12Z.bash This will produce analysis 18utc files. $ bsub < ncum_india_reg_from_global_anl_18Z.bash This will produce forecast 00utc files. $ bsub < ncum_india_reg_from_global_fcst_00Z.bash This will produce forecast 12utc files. $ bsub < ncum_india_reg_from_global_fcst_12Z.bash Arulalan.T 09-02-2016
arulalant/UMRider
bsubScripts/ncum_india_reg_from_global/REAMDE.md
Markdown
gpl-2.0
570
<?php /** * Installation related functions and actions. * * @author WooThemes * @category Admin * @package WooCommerce/Classes * @version 2.1.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! class_exists( 'WC_Install' ) ) : /** * WC_Install Class */ class WC_Install { /** * Hook in tabs. */ public function __construct() { register_activation_hook( WC_PLUGIN_FILE, array( $this, 'install' ) ); add_action( 'admin_init', array( $this, 'install_actions' ) ); add_action( 'admin_init', array( $this, 'check_version' ), 5 ); add_action( 'in_plugin_update_message-woocommerce/woocommerce.php', array( $this, 'in_plugin_update_message' ) ); } /** * check_version function. * * @access public * @return void */ public function check_version() { if ( ! defined( 'IFRAME_REQUEST' ) && ( get_option( 'woocommerce_version' ) != WC()->version || get_option( 'woocommerce_db_version' ) != WC()->version ) ) { $this->install(); do_action( 'woocommerce_updated' ); } } /** * Install actions such as installing pages when a button is clicked. */ public function install_actions() { // Install - Add pages button if ( ! empty( $_GET['install_woocommerce_pages'] ) ) { self::create_pages(); // We no longer need to install pages delete_option( '_wc_needs_pages' ); delete_transient( '_wc_activation_redirect' ); // What's new redirect wp_redirect( admin_url( 'index.php?page=wc-about&wc-installed=true' ) ); exit; // Skip button } elseif ( ! empty( $_GET['skip_install_woocommerce_pages'] ) ) { // We no longer need to install pages delete_option( '_wc_needs_pages' ); delete_transient( '_wc_activation_redirect' ); // What's new redirect wp_redirect( admin_url( 'index.php?page=wc-about' ) ); exit; // Update button } elseif ( ! empty( $_GET['do_update_woocommerce'] ) ) { $this->update(); // Update complete delete_option( '_wc_needs_pages' ); delete_option( '_wc_needs_update' ); delete_transient( '_wc_activation_redirect' ); // What's new redirect wp_redirect( admin_url( 'index.php?page=wc-about&wc-updated=true' ) ); exit; } } /** * Install WC */ public function install() { $this->create_options(); $this->create_tables(); $this->create_roles(); // Register post types include_once( 'class-wc-post-types.php' ); WC_Post_types::register_post_types(); WC_Post_types::register_taxonomies(); // Also register endpoints - this needs to be done prior to rewrite rule flush WC()->query->init_query_vars(); WC()->query->add_endpoints(); $this->create_terms(); $this->create_cron_jobs(); $this->create_files(); $this->create_css_from_less(); // Clear transient cache wc_delete_product_transients(); // Queue upgrades $current_version = get_option( 'woocommerce_version', null ); $current_db_version = get_option( 'woocommerce_db_version', null ); if ( version_compare( $current_db_version, '2.1.0', '<' ) && null !== $current_db_version ) { update_option( '_wc_needs_update', 1 ); } else { update_option( 'woocommerce_db_version', WC()->version ); } // Update version update_option( 'woocommerce_version', WC()->version ); // Check if pages are needed if ( wc_get_page_id( 'shop' ) < 1 ) { update_option( '_wc_needs_pages', 1 ); } // Flush rules after install flush_rewrite_rules(); // Redirect to welcome screen set_transient( '_wc_activation_redirect', 1, 60 * 60 ); } /** * Handle updates */ public function update() { // Do updates $current_db_version = get_option( 'woocommerce_db_version' ); if ( version_compare( $current_db_version, '1.4', '<' ) ) { include( 'updates/woocommerce-update-1.4.php' ); update_option( 'woocommerce_db_version', '1.4' ); } if ( version_compare( $current_db_version, '1.5', '<' ) ) { include( 'updates/woocommerce-update-1.5.php' ); update_option( 'woocommerce_db_version', '1.5' ); } if ( version_compare( $current_db_version, '2.0', '<' ) ) { include( 'updates/woocommerce-update-2.0.php' ); update_option( 'woocommerce_db_version', '2.0' ); } if ( version_compare( $current_db_version, '2.0.9', '<' ) ) { include( 'updates/woocommerce-update-2.0.9.php' ); update_option( 'woocommerce_db_version', '2.0.9' ); } if ( version_compare( $current_db_version, '2.0.14', '<' ) ) { if ( 'HU' == get_option( 'woocommerce_default_country' ) ) { update_option( 'woocommerce_default_country', 'HU:BU' ); } update_option( 'woocommerce_db_version', '2.0.14' ); } if ( version_compare( $current_db_version, '2.1.0', '<' ) || WC_VERSION == '2.1-bleeding' ) { include( 'updates/woocommerce-update-2.1.php' ); update_option( 'woocommerce_db_version', '2.1.0' ); } update_option( 'woocommerce_db_version', WC()->version ); } /** * Create cron jobs (clear them first) */ private function create_cron_jobs() { // Cron jobs wp_clear_scheduled_hook( 'woocommerce_scheduled_sales' ); wp_clear_scheduled_hook( 'woocommerce_cancel_unpaid_orders' ); wp_clear_scheduled_hook( 'woocommerce_cleanup_sessions' ); $ve = get_option( 'gmt_offset' ) > 0 ? '+' : '-'; wp_schedule_event( strtotime( '00:00 tomorrow ' . $ve . get_option( 'gmt_offset' ) . ' HOURS' ), 'daily', 'woocommerce_scheduled_sales' ); $held_duration = get_option( 'woocommerce_hold_stock_minutes', null ); if ( is_null( $held_duration ) ) { $held_duration = '60'; } if ( $held_duration != '' ) { wp_schedule_single_event( time() + ( absint( $held_duration ) * 60 ), 'woocommerce_cancel_unpaid_orders' ); } wp_schedule_event( time(), 'twicedaily', 'woocommerce_cleanup_sessions' ); } /** * Create pages that the plugin relies on, storing page id's in variables. * * @access public * @return void */ public static function create_pages() { $pages = apply_filters( 'woocommerce_create_pages', array( 'shop' => array( 'name' => _x( 'shop', 'Page slug', 'woocommerce' ), 'title' => _x( 'Shop', 'Page title', 'woocommerce' ), 'content' => '' ), 'cart' => array( 'name' => _x( 'cart', 'Page slug', 'woocommerce' ), 'title' => _x( 'Cart', 'Page title', 'woocommerce' ), 'content' => '[' . apply_filters( 'woocommerce_cart_shortcode_tag', 'woocommerce_cart' ) . ']' ), 'checkout' => array( 'name' => _x( 'checkout', 'Paeg slug', 'woocommerce' ), 'title' => _x( 'Checkout', 'Page title', 'woocommerce' ), 'content' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']' ), 'myaccount' => array( 'name' => _x( 'my-account', 'Page slug', 'woocommerce' ), 'title' => _x( 'My Account', 'Page title', 'woocommerce' ), 'content' => '[' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']' ) ) ); foreach ( $pages as $key => $page ) { wc_create_page( esc_sql( $page['name'] ), 'woocommerce_' . $key . '_page_id', $page['title'], $page['content'], ! empty( $page['parent'] ) ? wc_get_page_id( $page['parent'] ) : '' ); } } /** * Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk. * * @access public * @return void */ private function create_terms() { $taxonomies = array( 'product_type' => array( 'simple', 'grouped', 'variable', 'external' ), 'shop_order_status' => array( 'pending', 'failed', 'on-hold', 'processing', 'completed', 'refunded', 'cancelled' ) ); foreach ( $taxonomies as $taxonomy => $terms ) { foreach ( $terms as $term ) { if ( ! get_term_by( 'slug', sanitize_title( $term ), $taxonomy ) ) { wp_insert_term( $term, $taxonomy ); } } } } /** * Default options * * Sets up the default options used on the settings page * * @access public */ function create_options() { // Include settings so that we can run through defaults include_once( 'admin/class-wc-admin-settings.php' ); $settings = WC_Admin_Settings::get_settings_pages(); foreach ( $settings as $section ) { foreach ( $section->get_settings() as $value ) { if ( isset( $value['default'] ) && isset( $value['id'] ) ) { $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true; add_option( $value['id'], $value['default'], '', ( $autoload ? 'yes' : 'no' ) ); } } // Special case to install the inventory settings. if ( $section instanceof WC_Settings_Products ) { foreach ( $section->get_settings( 'inventory' ) as $value ) { if ( isset( $value['default'] ) && isset( $value['id'] ) ) { $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true; add_option( $value['id'], $value['default'], '', ( $autoload ? 'yes' : 'no' ) ); } } } } } /** * Set up the database tables which the plugin needs to function. * * Tables: * woocommerce_attribute_taxonomies - Table for storing attribute taxonomies - these are user defined * woocommerce_termmeta - Term meta table - sadly WordPress does not have termmeta so we need our own * woocommerce_downloadable_product_permissions - Table for storing user and guest download permissions. * KEY(order_id, product_id, download_id) used for organizing downloads on the My Account page * woocommerce_order_items - Order line items are stored in a table to make them easily queryable for reports * woocommerce_order_itemmeta - Order line item meta is stored in a table for storing extra data. * woocommerce_tax_rates - Tax Rates are stored inside 2 tables making tax queries simple and efficient. * woocommerce_tax_rate_locations - Each rate can be applied to more than one postcode/city hence the second table. * * @access public * @return void */ private function create_tables() { global $wpdb, $woocommerce; $wpdb->hide_errors(); $collate = ''; if ( $wpdb->has_cap( 'collation' ) ) { if ( ! empty($wpdb->charset ) ) { $collate .= "DEFAULT CHARACTER SET $wpdb->charset"; } if ( ! empty($wpdb->collate ) ) { $collate .= " COLLATE $wpdb->collate"; } } require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); /** * Update schemas before DBDELTA * * Before updating, remove any primary keys which could be modified due to schema updates */ if ( $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->prefix}woocommerce_downloadable_product_permissions';" ) ) { if ( ! $wpdb->get_var( "SHOW COLUMNS FROM `{$wpdb->prefix}woocommerce_downloadable_product_permissions` LIKE 'permission_id';" ) ) { $wpdb->query( "ALTER TABLE {$wpdb->prefix}woocommerce_downloadable_product_permissions DROP PRIMARY KEY, ADD `permission_id` bigint(20) NOT NULL PRIMARY KEY AUTO_INCREMENT;" ); } } // WooCommerce Tables $woocommerce_tables = " CREATE TABLE {$wpdb->prefix}woocommerce_attribute_taxonomies ( attribute_id bigint(20) NOT NULL auto_increment, attribute_name varchar(200) NOT NULL, attribute_label longtext NULL, attribute_type varchar(200) NOT NULL, attribute_orderby varchar(200) NOT NULL, PRIMARY KEY (attribute_id), KEY attribute_name (attribute_name) ) $collate; CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( meta_id bigint(20) NOT NULL auto_increment, woocommerce_term_id bigint(20) NOT NULL, meta_key varchar(255) NULL, meta_value longtext NULL, PRIMARY KEY (meta_id), KEY woocommerce_term_id (woocommerce_term_id), KEY meta_key (meta_key) ) $collate; CREATE TABLE {$wpdb->prefix}woocommerce_downloadable_product_permissions ( permission_id bigint(20) NOT NULL auto_increment, download_id varchar(32) NOT NULL, product_id bigint(20) NOT NULL, order_id bigint(20) NOT NULL DEFAULT 0, order_key varchar(200) NOT NULL, user_email varchar(200) NOT NULL, user_id bigint(20) NULL, downloads_remaining varchar(9) NULL, access_granted datetime NOT NULL default '0000-00-00 00:00:00', access_expires datetime NULL default null, download_count bigint(20) NOT NULL DEFAULT 0, PRIMARY KEY (permission_id), KEY download_order_key_product (product_id,order_id,order_key,download_id), KEY download_order_product (download_id,order_id,product_id) ) $collate; CREATE TABLE {$wpdb->prefix}woocommerce_order_items ( order_item_id bigint(20) NOT NULL auto_increment, order_item_name longtext NOT NULL, order_item_type varchar(200) NOT NULL DEFAULT '', order_id bigint(20) NOT NULL, PRIMARY KEY (order_item_id), KEY order_id (order_id) ) $collate; CREATE TABLE {$wpdb->prefix}woocommerce_order_itemmeta ( meta_id bigint(20) NOT NULL auto_increment, order_item_id bigint(20) NOT NULL, meta_key varchar(255) NULL, meta_value longtext NULL, PRIMARY KEY (meta_id), KEY order_item_id (order_item_id), KEY meta_key (meta_key) ) $collate; CREATE TABLE {$wpdb->prefix}woocommerce_tax_rates ( tax_rate_id bigint(20) NOT NULL auto_increment, tax_rate_country varchar(200) NOT NULL DEFAULT '', tax_rate_state varchar(200) NOT NULL DEFAULT '', tax_rate varchar(200) NOT NULL DEFAULT '', tax_rate_name varchar(200) NOT NULL DEFAULT '', tax_rate_priority bigint(20) NOT NULL, tax_rate_compound int(1) NOT NULL DEFAULT 0, tax_rate_shipping int(1) NOT NULL DEFAULT 1, tax_rate_order bigint(20) NOT NULL, tax_rate_class varchar(200) NOT NULL DEFAULT '', PRIMARY KEY (tax_rate_id), KEY tax_rate_country (tax_rate_country), KEY tax_rate_state (tax_rate_state), KEY tax_rate_class (tax_rate_class), KEY tax_rate_priority (tax_rate_priority) ) $collate; CREATE TABLE {$wpdb->prefix}woocommerce_tax_rate_locations ( location_id bigint(20) NOT NULL auto_increment, location_code varchar(255) NOT NULL, tax_rate_id bigint(20) NOT NULL, location_type varchar(40) NOT NULL, PRIMARY KEY (location_id), KEY tax_rate_id (tax_rate_id), KEY location_type (location_type), KEY location_type_code (location_type,location_code) ) $collate; "; dbDelta( $woocommerce_tables ); } /** * Create roles and capabilities */ public function create_roles() { global $wp_roles; if ( class_exists( 'WP_Roles' ) ) { if ( ! isset( $wp_roles ) ) { $wp_roles = new WP_Roles(); } } if ( is_object( $wp_roles ) ) { // Customer role add_role( 'customer', __( 'Customer', 'woocommerce' ), array( 'read' => true, 'edit_posts' => false, 'delete_posts' => false ) ); // Shop manager role add_role( 'shop_manager', __( 'Shop Manager', 'woocommerce' ), array( 'level_9' => true, 'level_8' => true, 'level_7' => true, 'level_6' => true, 'level_5' => true, 'level_4' => true, 'level_3' => true, 'level_2' => true, 'level_1' => true, 'level_0' => true, 'read' => true, 'read_private_pages' => true, 'read_private_posts' => true, 'edit_users' => true, 'edit_posts' => true, 'edit_pages' => true, 'edit_published_posts' => true, 'edit_published_pages' => true, 'edit_private_pages' => true, 'edit_private_posts' => true, 'edit_others_posts' => true, 'edit_others_pages' => true, 'publish_posts' => true, 'publish_pages' => true, 'delete_posts' => true, 'delete_pages' => true, 'delete_private_pages' => true, 'delete_private_posts' => true, 'delete_published_pages' => true, 'delete_published_posts' => true, 'delete_others_posts' => true, 'delete_others_pages' => true, 'manage_categories' => true, 'manage_links' => true, 'moderate_comments' => true, 'unfiltered_html' => true, 'upload_files' => true, 'export' => true, 'import' => true, 'list_users' => true ) ); $capabilities = $this->get_core_capabilities(); foreach ( $capabilities as $cap_group ) { foreach ( $cap_group as $cap ) { $wp_roles->add_cap( 'shop_manager', $cap ); $wp_roles->add_cap( 'administrator', $cap ); } } } } /** * Get capabilities for WooCommerce - these are assigned to admin/shop manager during installation or reset * * @access public * @return array */ public function get_core_capabilities() { $capabilities = array(); $capabilities['core'] = array( 'manage_woocommerce', 'view_woocommerce_reports' ); $capability_types = array( 'product', 'shop_order', 'shop_coupon' ); foreach ( $capability_types as $capability_type ) { $capabilities[ $capability_type ] = array( // Post type "edit_{$capability_type}", "read_{$capability_type}", "delete_{$capability_type}", "edit_{$capability_type}s", "edit_others_{$capability_type}s", "publish_{$capability_type}s", "read_private_{$capability_type}s", "delete_{$capability_type}s", "delete_private_{$capability_type}s", "delete_published_{$capability_type}s", "delete_others_{$capability_type}s", "edit_private_{$capability_type}s", "edit_published_{$capability_type}s", // Terms "manage_{$capability_type}_terms", "edit_{$capability_type}_terms", "delete_{$capability_type}_terms", "assign_{$capability_type}_terms" ); } return $capabilities; } /** * woocommerce_remove_roles function. * * @access public * @return void */ public function remove_roles() { global $wp_roles; if ( class_exists( 'WP_Roles' ) ) { if ( ! isset( $wp_roles ) ) { $wp_roles = new WP_Roles(); } } if ( is_object( $wp_roles ) ) { $capabilities = $this->get_core_capabilities(); foreach ( $capabilities as $cap_group ) { foreach ( $cap_group as $cap ) { $wp_roles->remove_cap( 'shop_manager', $cap ); $wp_roles->remove_cap( 'administrator', $cap ); } } remove_role( 'customer' ); remove_role( 'shop_manager' ); } } /** * Create files/directories */ private function create_files() { // Install files and folders for uploading files and prevent hotlinking $upload_dir = wp_upload_dir(); $files = array( array( 'base' => $upload_dir['basedir'] . '/woocommerce_uploads', 'file' => '.htaccess', 'content' => 'deny from all' ), array( 'base' => $upload_dir['basedir'] . '/woocommerce_uploads', 'file' => 'index.html', 'content' => '' ), array( 'base' => WP_PLUGIN_DIR . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) ) . '/logs', 'file' => '.htaccess', 'content' => 'deny from all' ), array( 'base' => WP_PLUGIN_DIR . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) ) . '/logs', 'file' => 'index.html', 'content' => '' ) ); foreach ( $files as $file ) { if ( wp_mkdir_p( $file['base'] ) && ! file_exists( trailingslashit( $file['base'] ) . $file['file'] ) ) { if ( $file_handle = @fopen( trailingslashit( $file['base'] ) . $file['file'], 'w' ) ) { fwrite( $file_handle, $file['content'] ); fclose( $file_handle ); } } } } /** * Create CSS from LESS file */ private function create_css_from_less() { // Recompile LESS styles if they are custom $colors = get_option( 'woocommerce_frontend_css_colors' ); if ( ( ! empty( $colors['primary'] ) && ! empty( $colors['secondary'] ) && ! empty( $colors['highlight'] ) && ! empty( $colors['content_bg'] ) && ! empty( $colors['subtext'] ) ) && ( $colors['primary'] != '#ad74a2' || $colors['secondary'] != '#f7f6f7' || $colors['highlight'] != '#85ad74' || $colors['content_bg'] != '#ffffff' || $colors['subtext'] != '#777777' ) ) { if ( ! function_exists( 'woocommerce_compile_less_styles' ) ) { include_once( 'admin/wc-admin-functions.php' ); } woocommerce_compile_less_styles(); } } /** * Active plugins pre update option filter * * @param string $new_value * @return string */ function pre_update_option_active_plugins( $new_value ) { $old_value = (array) get_option( 'active_plugins' ); if ( $new_value !== $old_value && in_array( W3TC_FILE, (array) $new_value ) && in_array( W3TC_FILE, (array) $old_value ) ) { $this->_config->set( 'notes.plugins_updated', true ); try { $this->_config->save(); } catch( Exception $ex ) {} } return $new_value; } /** * Show plugin changes. Code adapted from W3 Total Cache. * * @return void */ function in_plugin_update_message( $args ) { $transient_name = 'wc_upgrade_notice_' . $args['Version']; if ( false === ( $upgrade_notice = get_transient( $transient_name ) ) ) { $response = wp_remote_get( 'https://plugins.svn.wordpress.org/woocommerce/trunk/readme.txt' ); if ( ! is_wp_error( $response ) && ! empty( $response['body'] ) ) { // Output Upgrade Notice $matches = null; $regexp = '~==\s*Upgrade Notice\s*==\s*=\s*(.*)\s*=(.*)(=\s*' . preg_quote( WC_VERSION ) . '\s*=|$)~Uis'; $upgrade_notice = ''; if ( preg_match( $regexp, $response['body'], $matches ) ) { $version = trim( $matches[1] ); $notices = (array) preg_split('~[\r\n]+~', trim( $matches[2] ) ); if ( version_compare( WC_VERSION, $version, '<' ) ) { $upgrade_notice .= '<div class="wc_plugin_upgrade_notice">'; foreach ( $notices as $index => $line ) { $upgrade_notice .= wp_kses_post( preg_replace( '~\[([^\]]*)\]\(([^\)]*)\)~', '<a href="${2}">${1}</a>', $line ) ); } $upgrade_notice .= '</div> '; } } set_transient( $transient_name, $upgrade_notice, DAY_IN_SECONDS ); } } echo wp_kses_post( $upgrade_notice ); } } endif; return new WC_Install();
tuyenln/hanoiled
wp-content/plugins/woocommerce/includes/class-wc-install.php
PHP
gpl-2.0
22,747
! (function($){ $(function(){ if ($('.haik-config-menu').length){ $('.haik-admin-navbar-inside').prepend('<a class="navbar-brand pull-right" href="#haik_config_slider" id="config_slider_link"><img src="haik-contents/img/haiklogo.png" height="50"></a>'); // ! admin slider $("#config_slider_link").sidr({ name: "slider-right", source: "#haik_config_slider", side: "right", renaming: false, onOpen: function(){ $(document).on("click.configSlider keydown.configSlider", "*", function(e){ e.stopPropagation(); if ( ! $(e.target).is("[data-toggle=modal]") && $(e.target).closest(".haik-admin-slider").length > 0) return; $.sidr('close', 'slider-right'); }); $(".haik-admin-slider .close").on('click', function(){ $.sidr('close', 'slider-right'); }); }, onClose: function(){ $(document).off(".configSlider"); } }); } $(".setting_list") .on("show", "> li", function(e){ // console.log("show"); }) .on("shown", "> li", function(e, $block){ if ($(".datepicker", $block).length) { $(".datepicker").datepicker({language: 'ja'}); } $block.find('input:radio, select').each(function(){ var item = $(this).attr('name'); if ($(this).is(':radio')) { $block.find("input:radio[name="+item+"]").val([ORGM.options[item]]); } if ($(this).is('select') && $(this).is(':not[data-selected]')) { $block.find("select[name="+item+"]").val(ORGM.options[item]); } }); if ($.fn.passwdcheck) { $('input[name=new_passwd]', $block).passwdcheck($.extend({}, ORGM.passwdcheck.options, {placeholderClass:"col-sm-3"})); } $("[data-exnote=onshown]", $block).exnote(); // console.log("shown"); // console.log($block); }) .on("hide", "> li", function(e, $block){ // console.log("hide"); // console.log($block); ORGM.scroll(this); }) .on("hidden", "> li", function(e, $block){ // console.log("hidden"); // console.log($block); var $li = $(this); }) .on("submit", "> li", function(e, data){ var $configbox = $(this).next() , callback = function(){}; if (data.error) { $configbox.find("input, select, textarea").filter("[name="+data.item+"]") .after('<span class="help-block" data-error-message>'+data.error+'</span>') .closest(".form-group").addClass("has-error"); ORGM.notify(data.error, "error"); // パスワードの場合は、新パスワードと確認欄を消す if (data.item == 'new_passwd' || data.item == 're_passwd') { $configbox.find("input, select, textarea").filter("[name$=_passwd]").val(''); } return false; } if (typeof data.item !== "undefined") { // mc_api_key の場合、mc_lists を options へセットする if (data.item === "mc_api_key") { data.options = $.extend(data.options, {mc_lists: data.mc_lists}); } else if (data.item === "mc_list_id" && data.mc_list_id.length > 0) { $("#mc_form_confirm").filter(".in").collapse("hide"); } // passwd 変更した場合、ログアウト状態になるので、 // redirect_to へ転送する else if (data.item === "passwd" && typeof data.redirect_to !== "undefinded") { callback = function(){ location.href = data.redirect_to; }; } } ORGM.options = $.extend(ORGM.options, data.options); $('.current', this).text(data.value); $(this).configblock('hide'); ORGM.notify(data.message, "success", callback); }) .on("submitStart", "> li", function(e){ var $configbox = $(this).next(); $('.form-group').filter('.has-error').removeClass('has-error') .find('[data-error-message]').remove(); }) .on('click', '[data-image]', function(e){ e.preventDefault(); var self = this ,$filer = $("#orgm_filer_selector") ,$image = $(this); $filer.find("iframe").data({search_word: ":image", select_mode: "exclusive"}); $filer .on("show.bs.modal", function(){ $(document).on("selectFiles.pluginAppConfigLogImage", function(e, selectedFiles){ if (selectedFiles.length > 0) { $image.html('<img src="'+selectedFiles[0].filepath+'" alt="" /><span class="triangle-btn triangle-right-top red show" data-image-delete><i class="orgm-icon orgm-icon-close"></i></span>'); $image.data('image', selectedFiles[0].filename).removeClass('img-add'); $image.next().val(selectedFiles[0].filename); $filer.modal("hide"); } }); }) .on("hidden.bs.modal", function(){ $(document).off("selectFiles.pluginAppConfigLogImage"); }); $filer.data("footer", "").modal(); }) .on('click', '[data-image-delete]', function(e){ e.preventDefault(); $image = $(this).parent(); $image.addClass('img-add').html("クリックで画像選択").next().val(""); return false; }) .on('click', '[data-confirm]', function(e){ e.preventDefault(); var mode = $(this).data('confirm'); if (mode == 'maintenance') { if (confirm('メンテナンスを実行しますか?')) { var data = { cmd: 'app_config_system', phase: 'exec', mode: mode }; $.post(ORGM.baseUrl, data, function(res){ if (res.error) { ORGM.notify(res.error, 'error'); return false; } ORGM.notify(res.success); return false; }, 'json'); } } }); $(document).on("click", ".mailcheck", function(){ var username = $(this).closest('.controls').find('input[name=username]').val(); data = { cmd: 'app_config_auth', phase: 'mailcheck', username: username }; $.post(ORGM.baseUrl, data, function(res){ if (res.error) { ORGM.notify(res.error, 'error'); return false; } ORGM.notify(res.success); return false; }, 'json'); }) // MCフォームを更新する .on("show.bs.collapse", "#mc_form_confirm", function(e){ var $this = $(this); if ($this.data("mc_list_id") === ORGM.options.mc_list.id) return; var data = { cmd: "app_config_marketing", phase: "get", mc_list_id: ORGM.options.mc_list.id }; $.ajax({ url: ORGM.baseUrl, data: data, dataType: "json", type: "POST", success: function(res){ $this.html(res[0].html).data("mc_list_id", ORGM.options.mc_list.id); } }); }); // set mc_lists value to options if (typeof ORGM.mcLists !== "undefined") { ORGM.options = $.extend({}, ORGM.options, {mc_lists: ORGM.mcLists}); } }); })(window.jQuery); // !ConfigBlock !function ($) { "use strict"; // jshint ;_; /* ConfigBlock CLASS DEFINITION * ====================== */ var ConfigBlock = function(element, options) { this.options = options; this.$element = $(element);//li element this.$element .on('click.configblock', '[data-edit]', $.proxy(this.show, this)) } ConfigBlock.prototype = { constructor: ConfigBlock , toggle: function () { return this[!this.isShown ? 'show' : 'hide']() } , show: function (e) { e && e.preventDefault(); var that = this , e = $.Event('show') , $a = this.$element.find("[data-edit]") , tmpl = "#tmpl_conf_" + $a.data("edit"); this.$element.trigger(e); if (this.isShown || e.isDefaultPrevented()) return this.$block = $(tmpl).tmpl(ORGM.options, {unixtime: function(){return "hoge"}}); this.$block.insertAfter(this.$element); this.$block .on('click.dismiss.configblock', '[data-dismiss="configblock"]', $.proxy(this.hide, this)) .on('submit.configblock', $.proxy(this.submit, this)) this.isShown = true this.$block.addClass('in') // .attr('aria-hidden', false) this.$element.addClass('in') this.$element.trigger("shown", [this.$block]); } , hide: function (e) { e && e.preventDefault() var that = this e = $.Event('hide') this.$element.trigger(e, [this.$block]) if (!this.isShown || e.isDefaultPrevented()) return $(document).off('focusin.configblock') this.isShown = false this.$block .removeClass('in') // .attr('aria-hidden', true) this.$element.removeClass("in") $.support.transition && this.$block.hasClass('fade') ? this.hideWithTransition() : this.hideConfig() } , hideWithTransition: function () { var that = this , timeout = setTimeout(function () { that.$block.off($.support.transition.end) that.hideConfig() }, 500) this.$block.one($.support.transition.end, function () { clearTimeout(timeout) that.hideConfig() }) } , hideConfig: function (that) { this.$block .hide().remove() this.$element .trigger('hidden', [this.$block]) } , submit: function (e) { e && e.preventDefault() var data = this.$block.find("form").serialize() , that = this this.$element.trigger("submitStart"); $.ajax({ url: ORGM.baseUrl, type: "POST", data: data, dataType: "json", success: function(res){ that.$element.trigger("submit", [res]) } }); /* $.post(ORGM.baseUrl, data, function(res){ that.$element.trigger("submit", [res]) }, "json") */ } } /* MODAL PLUGIN DEFINITION * ======================= */ $.fn.configblock = function (option) { return this.each(function () { var $this = $(this) , data = $this.data('configblock') , options = $.extend({}, $.fn.configblock.defaults, $this.data(), typeof option == 'object' && option) if (!data) $this.data('configblock', (data = new ConfigBlock(this, options))) if (typeof option == 'string') data[option]() else if (options.show) data.show() }) } $.fn.configblock.defaults = { show: false } $.fn.configblock.Constructor = ConfigBlock; /* MODAL DATA-API * ============== */ $(function(){ $(".setting_list > li").each(function(){$(this).configblock();}); if (location.hash && $("[data-edit='"+location.hash.substr(1)+"']").length > 0) { $("[data-edit='"+location.hash.substr(1)+"']").click(); } }) }(window.jQuery);
toiee/haik
haik-contents/plugin/app_config/common.js
JavaScript
gpl-2.0
10,617
/* * Misc image conversion routines * Copyright (c) 2001, 2002, 2003 Fabrice Bellard. * * This file is part of FFmpeg. * * FFmpeg 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. * * FFmpeg 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 FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** * @file imgconvert.c * misc image conversion routines */ /* TODO: * - write 'ffimg' program to test all the image related stuff * - move all api to slice based system * - integrate deinterlacing, postprocessing and scaling in the conversion process */ #include "avcodec.h" #include "dsputil.h" #include "colorspace.h" #ifdef HAVE_MMX #include "x86/mmx.h" #include "x86/dsputil_mmx.h" #endif #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y) #define FF_COLOR_RGB 0 /**< RGB color space */ #define FF_COLOR_GRAY 1 /**< gray color space */ #define FF_COLOR_YUV 2 /**< YUV color space. 16 <= Y <= 235, 16 <= U, V <= 240 */ #define FF_COLOR_YUV_JPEG 3 /**< YUV color space. 0 <= Y <= 255, 0 <= U, V <= 255 */ #define FF_PIXEL_PLANAR 0 /**< each channel has one component in AVPicture */ #define FF_PIXEL_PACKED 1 /**< only one components containing all the channels */ #define FF_PIXEL_PALETTE 2 /**< one components containing indexes for a palette */ typedef struct PixFmtInfo { const char *name; uint8_t nb_channels; /**< number of channels (including alpha) */ uint8_t color_type; /**< color type (see FF_COLOR_xxx constants) */ uint8_t pixel_type; /**< pixel storage type (see FF_PIXEL_xxx constants) */ uint8_t is_alpha : 1; /**< true if alpha can be specified */ uint8_t x_chroma_shift; /**< X chroma subsampling factor is 2 ^ shift */ uint8_t y_chroma_shift; /**< Y chroma subsampling factor is 2 ^ shift */ uint8_t depth; /**< bit depth of the color components */ } PixFmtInfo; /* this table gives more information about formats */ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = { /* YUV formats */ [PIX_FMT_YUV420P] = { .name = "yuv420p", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 1, }, [PIX_FMT_YUV422P] = { .name = "yuv422p", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 0, }, [PIX_FMT_YUV444P] = { .name = "yuv444p", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_YUYV422] = { .name = "yuyv422", .nb_channels = 1, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 0, }, [PIX_FMT_UYVY422] = { .name = "uyvy422", .nb_channels = 1, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 0, }, [PIX_FMT_YUV410P] = { .name = "yuv410p", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 2, .y_chroma_shift = 2, }, [PIX_FMT_YUV411P] = { .name = "yuv411p", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 2, .y_chroma_shift = 0, }, [PIX_FMT_YUV440P] = { .name = "yuv440p", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 1, }, /* YUV formats with alpha plane */ [PIX_FMT_YUVA420P] = { .name = "yuva420p", .nb_channels = 4, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 1, }, /* JPEG YUV */ [PIX_FMT_YUVJ420P] = { .name = "yuvj420p", .nb_channels = 3, .color_type = FF_COLOR_YUV_JPEG, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 1, }, [PIX_FMT_YUVJ422P] = { .name = "yuvj422p", .nb_channels = 3, .color_type = FF_COLOR_YUV_JPEG, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 0, }, [PIX_FMT_YUVJ444P] = { .name = "yuvj444p", .nb_channels = 3, .color_type = FF_COLOR_YUV_JPEG, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_YUVJ440P] = { .name = "yuvj440p", .nb_channels = 3, .color_type = FF_COLOR_YUV_JPEG, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 1, }, /* RGB formats */ [PIX_FMT_RGB24] = { .name = "rgb24", .nb_channels = 3, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_BGR24] = { .name = "bgr24", .nb_channels = 3, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB32] = { .name = "rgb32", .nb_channels = 4, .is_alpha = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB565] = { .name = "rgb565", .nb_channels = 3, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 5, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB555] = { .name = "rgb555", .nb_channels = 3, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 5, .x_chroma_shift = 0, .y_chroma_shift = 0, }, /* gray / mono formats */ [PIX_FMT_GRAY16BE] = { .name = "gray16be", .nb_channels = 1, .color_type = FF_COLOR_GRAY, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, }, [PIX_FMT_GRAY16LE] = { .name = "gray16le", .nb_channels = 1, .color_type = FF_COLOR_GRAY, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, }, [PIX_FMT_GRAY8] = { .name = "gray", .nb_channels = 1, .color_type = FF_COLOR_GRAY, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, }, [PIX_FMT_MONOWHITE] = { .name = "monow", .nb_channels = 1, .color_type = FF_COLOR_GRAY, .pixel_type = FF_PIXEL_PLANAR, .depth = 1, }, [PIX_FMT_MONOBLACK] = { .name = "monob", .nb_channels = 1, .color_type = FF_COLOR_GRAY, .pixel_type = FF_PIXEL_PLANAR, .depth = 1, }, /* paletted formats */ [PIX_FMT_PAL8] = { .name = "pal8", .nb_channels = 4, .is_alpha = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PALETTE, .depth = 8, }, [PIX_FMT_XVMC_MPEG2_MC] = { .name = "xvmcmc", }, [PIX_FMT_XVMC_MPEG2_IDCT] = { .name = "xvmcidct", }, [PIX_FMT_VDPAU_H264] = { .name = "vdpau_h264", }, [PIX_FMT_UYYVYY411] = { .name = "uyyvyy411", .nb_channels = 1, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 2, .y_chroma_shift = 0, }, [PIX_FMT_BGR32] = { .name = "bgr32", .nb_channels = 4, .is_alpha = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_BGR565] = { .name = "bgr565", .nb_channels = 3, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 5, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_BGR555] = { .name = "bgr555", .nb_channels = 3, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 5, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB8] = { .name = "rgb8", .nb_channels = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB4] = { .name = "rgb4", .nb_channels = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 4, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB4_BYTE] = { .name = "rgb4_byte", .nb_channels = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_BGR8] = { .name = "bgr8", .nb_channels = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_BGR4] = { .name = "bgr4", .nb_channels = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 4, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_BGR4_BYTE] = { .name = "bgr4_byte", .nb_channels = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_NV12] = { .name = "nv12", .nb_channels = 2, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 1, }, [PIX_FMT_NV21] = { .name = "nv12", .nb_channels = 2, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 8, .x_chroma_shift = 1, .y_chroma_shift = 1, }, [PIX_FMT_BGR32_1] = { .name = "bgr32_1", .nb_channels = 4, .is_alpha = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, [PIX_FMT_RGB32_1] = { .name = "rgb32_1", .nb_channels = 4, .is_alpha = 1, .color_type = FF_COLOR_RGB, .pixel_type = FF_PIXEL_PACKED, .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 0, }, }; void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift) { *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift; *v_shift = pix_fmt_info[pix_fmt].y_chroma_shift; } const char *avcodec_get_pix_fmt_name(int pix_fmt) { if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB) return NULL; else return pix_fmt_info[pix_fmt].name; } enum PixelFormat avcodec_get_pix_fmt(const char* name) { int i; for (i=0; i < PIX_FMT_NB; i++) if (!strcmp(pix_fmt_info[i].name, name)) return i; return PIX_FMT_NONE; } void avcodec_pix_fmt_string (char *buf, int buf_size, int pix_fmt) { /* print header */ if (pix_fmt < 0) snprintf (buf, buf_size, "name " " nb_channels" " depth" " is_alpha" ); else{ PixFmtInfo info= pix_fmt_info[pix_fmt]; char is_alpha_char= info.is_alpha ? 'y' : 'n'; snprintf (buf, buf_size, "%-10s" " %1d " " %2d " " %c ", info.name, info.nb_channels, info.depth, is_alpha_char ); } } int ff_fill_linesize(AVPicture *picture, int pix_fmt, int width) { int w2; const PixFmtInfo *pinfo; memset(picture->linesize, 0, sizeof(picture->linesize)); pinfo = &pix_fmt_info[pix_fmt]; switch(pix_fmt) { case PIX_FMT_YUV420P: case PIX_FMT_YUV422P: case PIX_FMT_YUV444P: case PIX_FMT_YUV410P: case PIX_FMT_YUV411P: case PIX_FMT_YUV440P: case PIX_FMT_YUVJ420P: case PIX_FMT_YUVJ422P: case PIX_FMT_YUVJ444P: case PIX_FMT_YUVJ440P: w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift; picture->linesize[0] = width; picture->linesize[1] = w2; picture->linesize[2] = w2; break; case PIX_FMT_YUVA420P: w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift; picture->linesize[0] = width; picture->linesize[1] = w2; picture->linesize[2] = w2; picture->linesize[3] = width; break; case PIX_FMT_NV12: case PIX_FMT_NV21: w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift; picture->linesize[0] = width; picture->linesize[1] = w2; break; case PIX_FMT_RGB24: case PIX_FMT_BGR24: picture->linesize[0] = width * 3; break; case PIX_FMT_RGB32: case PIX_FMT_BGR32: case PIX_FMT_RGB32_1: case PIX_FMT_BGR32_1: picture->linesize[0] = width * 4; break; case PIX_FMT_GRAY16BE: case PIX_FMT_GRAY16LE: case PIX_FMT_BGR555: case PIX_FMT_BGR565: case PIX_FMT_RGB555: case PIX_FMT_RGB565: case PIX_FMT_YUYV422: picture->linesize[0] = width * 2; break; case PIX_FMT_UYVY422: picture->linesize[0] = width * 2; break; case PIX_FMT_UYYVYY411: picture->linesize[0] = width + width/2; break; case PIX_FMT_RGB8: case PIX_FMT_BGR8: case PIX_FMT_RGB4_BYTE: case PIX_FMT_BGR4_BYTE: case PIX_FMT_GRAY8: picture->linesize[0] = width; break; case PIX_FMT_RGB4: case PIX_FMT_BGR4: picture->linesize[0] = width / 2; break; case PIX_FMT_MONOWHITE: case PIX_FMT_MONOBLACK: picture->linesize[0] = (width + 7) >> 3; break; case PIX_FMT_PAL8: picture->linesize[0] = width; picture->linesize[1] = 4; break; default: return -1; } return 0; } int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, int pix_fmt, int height) { int size, h2, size2; const PixFmtInfo *pinfo; pinfo = &pix_fmt_info[pix_fmt]; size = picture->linesize[0] * height; switch(pix_fmt) { case PIX_FMT_YUV420P: case PIX_FMT_YUV422P: case PIX_FMT_YUV444P: case PIX_FMT_YUV410P: case PIX_FMT_YUV411P: case PIX_FMT_YUV440P: case PIX_FMT_YUVJ420P: case PIX_FMT_YUVJ422P: case PIX_FMT_YUVJ444P: case PIX_FMT_YUVJ440P: h2 = (height + (1 << pinfo->y_chroma_shift) - 1) >> pinfo->y_chroma_shift; size2 = picture->linesize[1] * h2; picture->data[0] = ptr; picture->data[1] = picture->data[0] + size; picture->data[2] = picture->data[1] + size2; picture->data[3] = NULL; return size + 2 * size2; case PIX_FMT_YUVA420P: h2 = (height + (1 << pinfo->y_chroma_shift) - 1) >> pinfo->y_chroma_shift; size2 = picture->linesize[1] * h2; picture->data[0] = ptr; picture->data[1] = picture->data[0] + size; picture->data[2] = picture->data[1] + size2; picture->data[3] = picture->data[1] + size2 + size2; return 2 * size + 2 * size2; case PIX_FMT_NV12: case PIX_FMT_NV21: h2 = (height + (1 << pinfo->y_chroma_shift) - 1) >> pinfo->y_chroma_shift; size2 = picture->linesize[1] * h2 * 2; picture->data[0] = ptr; picture->data[1] = picture->data[0] + size; picture->data[2] = NULL; picture->data[3] = NULL; return size + 2 * size2; case PIX_FMT_RGB24: case PIX_FMT_BGR24: case PIX_FMT_RGB32: case PIX_FMT_BGR32: case PIX_FMT_RGB32_1: case PIX_FMT_BGR32_1: case PIX_FMT_GRAY16BE: case PIX_FMT_GRAY16LE: case PIX_FMT_BGR555: case PIX_FMT_BGR565: case PIX_FMT_RGB555: case PIX_FMT_RGB565: case PIX_FMT_YUYV422: case PIX_FMT_UYVY422: case PIX_FMT_UYYVYY411: case PIX_FMT_RGB8: case PIX_FMT_BGR8: case PIX_FMT_RGB4_BYTE: case PIX_FMT_BGR4_BYTE: case PIX_FMT_GRAY8: case PIX_FMT_RGB4: case PIX_FMT_BGR4: case PIX_FMT_MONOWHITE: case PIX_FMT_MONOBLACK: picture->data[0] = ptr; picture->data[1] = NULL; picture->data[2] = NULL; picture->data[3] = NULL; return size; case PIX_FMT_PAL8: size2 = (size + 3) & ~3; picture->data[0] = ptr; picture->data[1] = ptr + size2; /* palette is stored here as 256 32 bit words */ picture->data[2] = NULL; picture->data[3] = NULL; return size2 + 256 * 4; default: picture->data[0] = NULL; picture->data[1] = NULL; picture->data[2] = NULL; picture->data[3] = NULL; return -1; } } int avpicture_fill(AVPicture *picture, uint8_t *ptr, int pix_fmt, int width, int height) { if(avcodec_check_dimensions(NULL, width, height)) return -1; if (ff_fill_linesize(picture, pix_fmt, width)) return -1; return ff_fill_pointer(picture, ptr, pix_fmt, height); } int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height, unsigned char *dest, int dest_size) { const PixFmtInfo* pf = &pix_fmt_info[pix_fmt]; int i, j, w, h, data_planes; const unsigned char* s; int size = avpicture_get_size(pix_fmt, width, height); if (size > dest_size || size < 0) return -1; if (pf->pixel_type == FF_PIXEL_PACKED || pf->pixel_type == FF_PIXEL_PALETTE) { if (pix_fmt == PIX_FMT_YUYV422 || pix_fmt == PIX_FMT_UYVY422 || pix_fmt == PIX_FMT_BGR565 || pix_fmt == PIX_FMT_BGR555 || pix_fmt == PIX_FMT_RGB565 || pix_fmt == PIX_FMT_RGB555) w = width * 2; else if (pix_fmt == PIX_FMT_UYYVYY411) w = width + width/2; else if (pix_fmt == PIX_FMT_PAL8) w = width; else w = width * (pf->depth * pf->nb_channels / 8); data_planes = 1; h = height; } else { data_planes = pf->nb_channels; w = (width*pf->depth + 7)/8; h = height; } for (i=0; i<data_planes; i++) { if (i == 1) { w = width >> pf->x_chroma_shift; h = height >> pf->y_chroma_shift; } s = src->data[i]; for(j=0; j<h; j++) { memcpy(dest, s, w); dest += w; s += src->linesize[i]; } } if (pf->pixel_type == FF_PIXEL_PALETTE) memcpy((unsigned char *)(((size_t)dest + 3) & ~3), src->data[1], 256 * 4); return size; } int avpicture_get_size(int pix_fmt, int width, int height) { AVPicture dummy_pict; return avpicture_fill(&dummy_pict, NULL, pix_fmt, width, height); } int avcodec_get_pix_fmt_loss(int dst_pix_fmt, int src_pix_fmt, int has_alpha) { const PixFmtInfo *pf, *ps; int loss; ps = &pix_fmt_info[src_pix_fmt]; pf = &pix_fmt_info[dst_pix_fmt]; /* compute loss */ loss = 0; pf = &pix_fmt_info[dst_pix_fmt]; if (pf->depth < ps->depth || (dst_pix_fmt == PIX_FMT_RGB555 && src_pix_fmt == PIX_FMT_RGB565)) loss |= FF_LOSS_DEPTH; if (pf->x_chroma_shift > ps->x_chroma_shift || pf->y_chroma_shift > ps->y_chroma_shift) loss |= FF_LOSS_RESOLUTION; switch(pf->color_type) { case FF_COLOR_RGB: if (ps->color_type != FF_COLOR_RGB && ps->color_type != FF_COLOR_GRAY) loss |= FF_LOSS_COLORSPACE; break; case FF_COLOR_GRAY: if (ps->color_type != FF_COLOR_GRAY) loss |= FF_LOSS_COLORSPACE; break; case FF_COLOR_YUV: if (ps->color_type != FF_COLOR_YUV) loss |= FF_LOSS_COLORSPACE; break; case FF_COLOR_YUV_JPEG: if (ps->color_type != FF_COLOR_YUV_JPEG && ps->color_type != FF_COLOR_YUV && ps->color_type != FF_COLOR_GRAY) loss |= FF_LOSS_COLORSPACE; break; default: /* fail safe test */ if (ps->color_type != pf->color_type) loss |= FF_LOSS_COLORSPACE; break; } if (pf->color_type == FF_COLOR_GRAY && ps->color_type != FF_COLOR_GRAY) loss |= FF_LOSS_CHROMA; if (!pf->is_alpha && (ps->is_alpha && has_alpha)) loss |= FF_LOSS_ALPHA; if (pf->pixel_type == FF_PIXEL_PALETTE && (ps->pixel_type != FF_PIXEL_PALETTE && ps->color_type != FF_COLOR_GRAY)) loss |= FF_LOSS_COLORQUANT; return loss; } static int avg_bits_per_pixel(int pix_fmt) { int bits; const PixFmtInfo *pf; pf = &pix_fmt_info[pix_fmt]; switch(pf->pixel_type) { case FF_PIXEL_PACKED: switch(pix_fmt) { case PIX_FMT_YUYV422: case PIX_FMT_UYVY422: case PIX_FMT_RGB565: case PIX_FMT_RGB555: case PIX_FMT_BGR565: case PIX_FMT_BGR555: bits = 16; break; case PIX_FMT_UYYVYY411: bits = 12; break; default: bits = pf->depth * pf->nb_channels; break; } break; case FF_PIXEL_PLANAR: if (pf->x_chroma_shift == 0 && pf->y_chroma_shift == 0) { bits = pf->depth * pf->nb_channels; } else { bits = pf->depth + ((2 * pf->depth) >> (pf->x_chroma_shift + pf->y_chroma_shift)); } break; case FF_PIXEL_PALETTE: bits = 8; break; default: bits = -1; break; } return bits; } static int avcodec_find_best_pix_fmt1(int64_t pix_fmt_mask, int src_pix_fmt, int has_alpha, int loss_mask) { int dist, i, loss, min_dist, dst_pix_fmt; /* find exact color match with smallest size */ dst_pix_fmt = -1; min_dist = 0x7fffffff; for(i = 0;i < PIX_FMT_NB; i++) { if (pix_fmt_mask & (1ULL << i)) { loss = avcodec_get_pix_fmt_loss(i, src_pix_fmt, has_alpha) & loss_mask; if (loss == 0) { dist = avg_bits_per_pixel(i); if (dist < min_dist) { min_dist = dist; dst_pix_fmt = i; } } } } return dst_pix_fmt; } int avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, int src_pix_fmt, int has_alpha, int *loss_ptr) { int dst_pix_fmt, loss_mask, i; static const int loss_mask_order[] = { ~0, /* no loss first */ ~FF_LOSS_ALPHA, ~FF_LOSS_RESOLUTION, ~(FF_LOSS_COLORSPACE | FF_LOSS_RESOLUTION), ~FF_LOSS_COLORQUANT, ~FF_LOSS_DEPTH, 0, }; /* try with successive loss */ i = 0; for(;;) { loss_mask = loss_mask_order[i++]; dst_pix_fmt = avcodec_find_best_pix_fmt1(pix_fmt_mask, src_pix_fmt, has_alpha, loss_mask); if (dst_pix_fmt >= 0) goto found; if (loss_mask == 0) break; } return -1; found: if (loss_ptr) *loss_ptr = avcodec_get_pix_fmt_loss(dst_pix_fmt, src_pix_fmt, has_alpha); return dst_pix_fmt; } void ff_img_copy_plane(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { if((!dst) || (!src)) return; for(;height > 0; height--) { memcpy(dst, src, width); dst += dst_wrap; src += src_wrap; } } int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane) { int bits; const PixFmtInfo *pf = &pix_fmt_info[pix_fmt]; pf = &pix_fmt_info[pix_fmt]; switch(pf->pixel_type) { case FF_PIXEL_PACKED: switch(pix_fmt) { case PIX_FMT_YUYV422: case PIX_FMT_UYVY422: case PIX_FMT_RGB565: case PIX_FMT_RGB555: case PIX_FMT_BGR565: case PIX_FMT_BGR555: bits = 16; break; case PIX_FMT_UYYVYY411: bits = 12; break; default: bits = pf->depth * pf->nb_channels; break; } return (width * bits + 7) >> 3; break; case FF_PIXEL_PLANAR: if (plane == 1 || plane == 2) width= -((-width)>>pf->x_chroma_shift); return (width * pf->depth + 7) >> 3; break; case FF_PIXEL_PALETTE: if (plane == 0) return width; break; } return -1; } void av_picture_copy(AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height) { int i; const PixFmtInfo *pf = &pix_fmt_info[pix_fmt]; pf = &pix_fmt_info[pix_fmt]; switch(pf->pixel_type) { case FF_PIXEL_PACKED: case FF_PIXEL_PLANAR: for(i = 0; i < pf->nb_channels; i++) { int h; int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i); h = height; if (i == 1 || i == 2) { h= -((-height)>>pf->y_chroma_shift); } ff_img_copy_plane(dst->data[i], dst->linesize[i], src->data[i], src->linesize[i], bwidth, h); } break; case FF_PIXEL_PALETTE: ff_img_copy_plane(dst->data[0], dst->linesize[0], src->data[0], src->linesize[0], width, height); /* copy the palette */ ff_img_copy_plane(dst->data[1], dst->linesize[1], src->data[1], src->linesize[1], 4, 256); break; } } /* XXX: totally non optimized */ static void yuyv422_to_yuv420p(AVPicture *dst, const AVPicture *src, int width, int height) { const uint8_t *p, *p1; uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = src->data[0]; lum1 = dst->data[0]; cb1 = dst->data[1]; cr1 = dst->data[2]; for(;height >= 1; height -= 2) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 2; w -= 2) { lum[0] = p[0]; cb[0] = p[1]; lum[1] = p[2]; cr[0] = p[3]; p += 4; lum += 2; cb++; cr++; } if (w) { lum[0] = p[0]; cb[0] = p[1]; cr[0] = p[3]; cb++; cr++; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; if (height>1) { p = p1; lum = lum1; for(w = width; w >= 2; w -= 2) { lum[0] = p[0]; lum[1] = p[2]; p += 4; lum += 2; } if (w) { lum[0] = p[0]; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; } cb1 += dst->linesize[1]; cr1 += dst->linesize[2]; } } static void uyvy422_to_yuv420p(AVPicture *dst, const AVPicture *src, int width, int height) { const uint8_t *p, *p1; uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = src->data[0]; lum1 = dst->data[0]; cb1 = dst->data[1]; cr1 = dst->data[2]; for(;height >= 1; height -= 2) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 2; w -= 2) { lum[0] = p[1]; cb[0] = p[0]; lum[1] = p[3]; cr[0] = p[2]; p += 4; lum += 2; cb++; cr++; } if (w) { lum[0] = p[1]; cb[0] = p[0]; cr[0] = p[2]; cb++; cr++; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; if (height>1) { p = p1; lum = lum1; for(w = width; w >= 2; w -= 2) { lum[0] = p[1]; lum[1] = p[3]; p += 4; lum += 2; } if (w) { lum[0] = p[1]; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; } cb1 += dst->linesize[1]; cr1 += dst->linesize[2]; } } static void uyvy422_to_yuv422p(AVPicture *dst, const AVPicture *src, int width, int height) { const uint8_t *p, *p1; uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = src->data[0]; lum1 = dst->data[0]; cb1 = dst->data[1]; cr1 = dst->data[2]; for(;height > 0; height--) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 2; w -= 2) { lum[0] = p[1]; cb[0] = p[0]; lum[1] = p[3]; cr[0] = p[2]; p += 4; lum += 2; cb++; cr++; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; cb1 += dst->linesize[1]; cr1 += dst->linesize[2]; } } static void yuyv422_to_yuv422p(AVPicture *dst, const AVPicture *src, int width, int height) { const uint8_t *p, *p1; uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = src->data[0]; lum1 = dst->data[0]; cb1 = dst->data[1]; cr1 = dst->data[2]; for(;height > 0; height--) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 2; w -= 2) { lum[0] = p[0]; cb[0] = p[1]; lum[1] = p[2]; cr[0] = p[3]; p += 4; lum += 2; cb++; cr++; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; cb1 += dst->linesize[1]; cr1 += dst->linesize[2]; } } static void yuv422p_to_yuyv422(AVPicture *dst, const AVPicture *src, int width, int height) { uint8_t *p, *p1; const uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = dst->data[0]; lum1 = src->data[0]; cb1 = src->data[1]; cr1 = src->data[2]; for(;height > 0; height--) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 2; w -= 2) { p[0] = lum[0]; p[1] = cb[0]; p[2] = lum[1]; p[3] = cr[0]; p += 4; lum += 2; cb++; cr++; } p1 += dst->linesize[0]; lum1 += src->linesize[0]; cb1 += src->linesize[1]; cr1 += src->linesize[2]; } } static void yuv422p_to_uyvy422(AVPicture *dst, const AVPicture *src, int width, int height) { uint8_t *p, *p1; const uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = dst->data[0]; lum1 = src->data[0]; cb1 = src->data[1]; cr1 = src->data[2]; for(;height > 0; height--) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 2; w -= 2) { p[1] = lum[0]; p[0] = cb[0]; p[3] = lum[1]; p[2] = cr[0]; p += 4; lum += 2; cb++; cr++; } p1 += dst->linesize[0]; lum1 += src->linesize[0]; cb1 += src->linesize[1]; cr1 += src->linesize[2]; } } static void uyyvyy411_to_yuv411p(AVPicture *dst, const AVPicture *src, int width, int height) { const uint8_t *p, *p1; uint8_t *lum, *cr, *cb, *lum1, *cr1, *cb1; int w; p1 = src->data[0]; lum1 = dst->data[0]; cb1 = dst->data[1]; cr1 = dst->data[2]; for(;height > 0; height--) { p = p1; lum = lum1; cb = cb1; cr = cr1; for(w = width; w >= 4; w -= 4) { cb[0] = p[0]; lum[0] = p[1]; lum[1] = p[2]; cr[0] = p[3]; lum[2] = p[4]; lum[3] = p[5]; p += 6; lum += 4; cb++; cr++; } p1 += src->linesize[0]; lum1 += dst->linesize[0]; cb1 += dst->linesize[1]; cr1 += dst->linesize[2]; } } static void yuv420p_to_yuyv422(AVPicture *dst, const AVPicture *src, int width, int height) { int w, h; uint8_t *line1, *line2, *linesrc = dst->data[0]; uint8_t *lum1, *lum2, *lumsrc = src->data[0]; uint8_t *cb1, *cb2 = src->data[1]; uint8_t *cr1, *cr2 = src->data[2]; for(h = height / 2; h--;) { line1 = linesrc; line2 = linesrc + dst->linesize[0]; lum1 = lumsrc; lum2 = lumsrc + src->linesize[0]; cb1 = cb2; cr1 = cr2; for(w = width / 2; w--;) { *line1++ = *lum1++; *line2++ = *lum2++; *line1++ = *line2++ = *cb1++; *line1++ = *lum1++; *line2++ = *lum2++; *line1++ = *line2++ = *cr1++; } linesrc += dst->linesize[0] * 2; lumsrc += src->linesize[0] * 2; cb2 += src->linesize[1]; cr2 += src->linesize[2]; } } static void yuv420p_to_uyvy422(AVPicture *dst, const AVPicture *src, int width, int height) { int w, h; uint8_t *line1, *line2, *linesrc = dst->data[0]; uint8_t *lum1, *lum2, *lumsrc = src->data[0]; uint8_t *cb1, *cb2 = src->data[1]; uint8_t *cr1, *cr2 = src->data[2]; for(h = height / 2; h--;) { line1 = linesrc; line2 = linesrc + dst->linesize[0]; lum1 = lumsrc; lum2 = lumsrc + src->linesize[0]; cb1 = cb2; cr1 = cr2; for(w = width / 2; w--;) { *line1++ = *line2++ = *cb1++; *line1++ = *lum1++; *line2++ = *lum2++; *line1++ = *line2++ = *cr1++; *line1++ = *lum1++; *line2++ = *lum2++; } linesrc += dst->linesize[0] * 2; lumsrc += src->linesize[0] * 2; cb2 += src->linesize[1]; cr2 += src->linesize[2]; } } /* 2x2 -> 1x1 */ void ff_shrink22(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w; const uint8_t *s1, *s2; uint8_t *d; for(;height > 0; height--) { s1 = src; s2 = s1 + src_wrap; d = dst; for(w = width;w >= 4; w-=4) { d[0] = (s1[0] + s1[1] + s2[0] + s2[1] + 2) >> 2; d[1] = (s1[2] + s1[3] + s2[2] + s2[3] + 2) >> 2; d[2] = (s1[4] + s1[5] + s2[4] + s2[5] + 2) >> 2; d[3] = (s1[6] + s1[7] + s2[6] + s2[7] + 2) >> 2; s1 += 8; s2 += 8; d += 4; } for(;w > 0; w--) { d[0] = (s1[0] + s1[1] + s2[0] + s2[1] + 2) >> 2; s1 += 2; s2 += 2; d++; } src += 2 * src_wrap; dst += dst_wrap; } } /* 4x4 -> 1x1 */ void ff_shrink44(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w; const uint8_t *s1, *s2, *s3, *s4; uint8_t *d; for(;height > 0; height--) { s1 = src; s2 = s1 + src_wrap; s3 = s2 + src_wrap; s4 = s3 + src_wrap; d = dst; for(w = width;w > 0; w--) { d[0] = (s1[0] + s1[1] + s1[2] + s1[3] + s2[0] + s2[1] + s2[2] + s2[3] + s3[0] + s3[1] + s3[2] + s3[3] + s4[0] + s4[1] + s4[2] + s4[3] + 8) >> 4; s1 += 4; s2 += 4; s3 += 4; s4 += 4; d++; } src += 4 * src_wrap; dst += dst_wrap; } } /* 8x8 -> 1x1 */ void ff_shrink88(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w, i; for(;height > 0; height--) { for(w = width;w > 0; w--) { int tmp=0; for(i=0; i<8; i++){ tmp += src[0] + src[1] + src[2] + src[3] + src[4] + src[5] + src[6] + src[7]; src += src_wrap; } *(dst++) = (tmp + 32)>>6; src += 8 - 8*src_wrap; } src += 8*src_wrap - 8*width; dst += dst_wrap - width; } } /* XXX: add jpeg quantize code */ #define TRANSP_INDEX (6*6*6) /* this is maybe slow, but allows for extensions */ static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) { return (((r) / 47) % 6) * 6 * 6 + (((g) / 47) % 6) * 6 + (((b) / 47) % 6); } static void build_rgb_palette(uint8_t *palette, int has_alpha) { uint32_t *pal; static const uint8_t pal_value[6] = { 0x00, 0x33, 0x66, 0x99, 0xcc, 0xff }; int i, r, g, b; pal = (uint32_t *)palette; i = 0; for(r = 0; r < 6; r++) { for(g = 0; g < 6; g++) { for(b = 0; b < 6; b++) { pal[i++] = (0xff << 24) | (pal_value[r] << 16) | (pal_value[g] << 8) | pal_value[b]; } } } if (has_alpha) pal[i++] = 0; while (i < 256) pal[i++] = 0xff000000; } /* copy bit n to bits 0 ... n - 1 */ static inline unsigned int bitcopy_n(unsigned int a, int n) { int mask; mask = (1 << n) - 1; return (a & (0xff & ~mask)) | ((-((a >> n) & 1)) & mask); } /* rgb555 handling */ #define RGB_NAME rgb555 #define RGB_IN(r, g, b, s)\ {\ unsigned int v = ((const uint16_t *)(s))[0];\ r = bitcopy_n(v >> (10 - 3), 3);\ g = bitcopy_n(v >> (5 - 3), 3);\ b = bitcopy_n(v << 3, 3);\ } #define RGB_OUT(d, r, g, b)\ {\ ((uint16_t *)(d))[0] = ((r >> 3) << 10) | ((g >> 3) << 5) | (b >> 3);\ } #define BPP 2 #include "imgconvert_template.c" /* rgb565 handling */ #define RGB_NAME rgb565 #define RGB_IN(r, g, b, s)\ {\ unsigned int v = ((const uint16_t *)(s))[0];\ r = bitcopy_n(v >> (11 - 3), 3);\ g = bitcopy_n(v >> (5 - 2), 2);\ b = bitcopy_n(v << 3, 3);\ } #define RGB_OUT(d, r, g, b)\ {\ ((uint16_t *)(d))[0] = ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3);\ } #define BPP 2 #include "imgconvert_template.c" /* bgr24 handling */ #define RGB_NAME bgr24 #define RGB_IN(r, g, b, s)\ {\ b = (s)[0];\ g = (s)[1];\ r = (s)[2];\ } #define RGB_OUT(d, r, g, b)\ {\ (d)[0] = b;\ (d)[1] = g;\ (d)[2] = r;\ } #define BPP 3 #include "imgconvert_template.c" #undef RGB_IN #undef RGB_OUT #undef BPP /* rgb24 handling */ #define RGB_NAME rgb24 #define FMT_RGB24 #define RGB_IN(r, g, b, s)\ {\ r = (s)[0];\ g = (s)[1];\ b = (s)[2];\ } #define RGB_OUT(d, r, g, b)\ {\ (d)[0] = r;\ (d)[1] = g;\ (d)[2] = b;\ } #define BPP 3 #include "imgconvert_template.c" /* rgb32 handling */ #define RGB_NAME rgb32 #define FMT_RGB32 #define RGB_IN(r, g, b, s)\ {\ unsigned int v = ((const uint32_t *)(s))[0];\ r = (v >> 16) & 0xff;\ g = (v >> 8) & 0xff;\ b = v & 0xff;\ } #define RGBA_IN(r, g, b, a, s)\ {\ unsigned int v = ((const uint32_t *)(s))[0];\ a = (v >> 24) & 0xff;\ r = (v >> 16) & 0xff;\ g = (v >> 8) & 0xff;\ b = v & 0xff;\ } #define RGBA_OUT(d, r, g, b, a)\ {\ ((uint32_t *)(d))[0] = (a << 24) | (r << 16) | (g << 8) | b;\ } #define BPP 4 #include "imgconvert_template.c" static void mono_to_gray(AVPicture *dst, const AVPicture *src, int width, int height, int xor_mask) { const unsigned char *p; unsigned char *q; int v, dst_wrap, src_wrap; int y, w; p = src->data[0]; src_wrap = src->linesize[0] - ((width + 7) >> 3); q = dst->data[0]; dst_wrap = dst->linesize[0] - width; for(y=0;y<height;y++) { w = width; while (w >= 8) { v = *p++ ^ xor_mask; q[0] = -(v >> 7); q[1] = -((v >> 6) & 1); q[2] = -((v >> 5) & 1); q[3] = -((v >> 4) & 1); q[4] = -((v >> 3) & 1); q[5] = -((v >> 2) & 1); q[6] = -((v >> 1) & 1); q[7] = -((v >> 0) & 1); w -= 8; q += 8; } if (w > 0) { v = *p++ ^ xor_mask; do { q[0] = -((v >> 7) & 1); q++; v <<= 1; } while (--w); } p += src_wrap; q += dst_wrap; } } static void monowhite_to_gray(AVPicture *dst, const AVPicture *src, int width, int height) { mono_to_gray(dst, src, width, height, 0xff); } static void monoblack_to_gray(AVPicture *dst, const AVPicture *src, int width, int height) { mono_to_gray(dst, src, width, height, 0x00); } static void gray_to_mono(AVPicture *dst, const AVPicture *src, int width, int height, int xor_mask) { int n; const uint8_t *s; uint8_t *d; int j, b, v, n1, src_wrap, dst_wrap, y; s = src->data[0]; src_wrap = src->linesize[0] - width; d = dst->data[0]; dst_wrap = dst->linesize[0] - ((width + 7) >> 3); for(y=0;y<height;y++) { n = width; while (n >= 8) { v = 0; for(j=0;j<8;j++) { b = s[0]; s++; v = (v << 1) | (b >> 7); } d[0] = v ^ xor_mask; d++; n -= 8; } if (n > 0) { n1 = n; v = 0; while (n > 0) { b = s[0]; s++; v = (v << 1) | (b >> 7); n--; } d[0] = (v << (8 - (n1 & 7))) ^ xor_mask; d++; } s += src_wrap; d += dst_wrap; } } static void gray_to_monowhite(AVPicture *dst, const AVPicture *src, int width, int height) { gray_to_mono(dst, src, width, height, 0xff); } static void gray_to_monoblack(AVPicture *dst, const AVPicture *src, int width, int height) { gray_to_mono(dst, src, width, height, 0x00); } static void gray_to_gray16(AVPicture *dst, const AVPicture *src, int width, int height) { int x, y, src_wrap, dst_wrap; uint8_t *s, *d; s = src->data[0]; src_wrap = src->linesize[0] - width; d = dst->data[0]; dst_wrap = dst->linesize[0] - width * 2; for(y=0; y<height; y++){ for(x=0; x<width; x++){ *d++ = *s; *d++ = *s++; } s += src_wrap; d += dst_wrap; } } static void gray16_to_gray(AVPicture *dst, const AVPicture *src, int width, int height) { int x, y, src_wrap, dst_wrap; uint8_t *s, *d; s = src->data[0]; src_wrap = src->linesize[0] - width * 2; d = dst->data[0]; dst_wrap = dst->linesize[0] - width; for(y=0; y<height; y++){ for(x=0; x<width; x++){ *d++ = *s; s += 2; } s += src_wrap; d += dst_wrap; } } static void gray16be_to_gray(AVPicture *dst, const AVPicture *src, int width, int height) { gray16_to_gray(dst, src, width, height); } static void gray16le_to_gray(AVPicture *dst, const AVPicture *src, int width, int height) { AVPicture tmpsrc = *src; tmpsrc.data[0]++; gray16_to_gray(dst, &tmpsrc, width, height); } static void gray16_to_gray16(AVPicture *dst, const AVPicture *src, int width, int height) { int x, y, src_wrap, dst_wrap; uint16_t *s, *d; s = (uint16_t*)src->data[0]; src_wrap = (src->linesize[0] - width * 2)/2; d = (uint16_t*)dst->data[0]; dst_wrap = (dst->linesize[0] - width * 2)/2; for(y=0; y<height; y++){ for(x=0; x<width; x++){ *d++ = bswap_16(*s++); } s += src_wrap; d += dst_wrap; } } typedef struct ConvertEntry { void (*convert)(AVPicture *dst, const AVPicture *src, int width, int height); } ConvertEntry; /* Add each new conversion function in this table. In order to be able to convert from any format to any format, the following constraints must be satisfied: - all FF_COLOR_RGB formats must convert to and from PIX_FMT_RGB24 - all FF_COLOR_GRAY formats must convert to and from PIX_FMT_GRAY8 - all FF_COLOR_RGB formats with alpha must convert to and from PIX_FMT_RGB32 - PIX_FMT_YUV444P and PIX_FMT_YUVJ444P must convert to and from PIX_FMT_RGB24. - PIX_FMT_422 must convert to and from PIX_FMT_422P. The other conversion functions are just optimizations for common cases. */ static const ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = { [PIX_FMT_YUV420P] = { [PIX_FMT_YUYV422] = { .convert = yuv420p_to_yuyv422, }, [PIX_FMT_RGB555] = { .convert = yuv420p_to_rgb555 }, [PIX_FMT_RGB565] = { .convert = yuv420p_to_rgb565 }, [PIX_FMT_BGR24] = { .convert = yuv420p_to_bgr24 }, [PIX_FMT_RGB24] = { .convert = yuv420p_to_rgb24 }, [PIX_FMT_RGB32] = { .convert = yuv420p_to_rgb32 }, [PIX_FMT_UYVY422] = { .convert = yuv420p_to_uyvy422, }, }, [PIX_FMT_YUV422P] = { [PIX_FMT_YUYV422] = { .convert = yuv422p_to_yuyv422, }, [PIX_FMT_UYVY422] = { .convert = yuv422p_to_uyvy422, }, }, [PIX_FMT_YUV444P] = { [PIX_FMT_RGB24] = { .convert = yuv444p_to_rgb24 }, }, [PIX_FMT_YUVJ420P] = { [PIX_FMT_RGB555] = { .convert = yuvj420p_to_rgb555 }, [PIX_FMT_RGB565] = { .convert = yuvj420p_to_rgb565 }, [PIX_FMT_BGR24] = { .convert = yuvj420p_to_bgr24 }, [PIX_FMT_RGB24] = { .convert = yuvj420p_to_rgb24 }, [PIX_FMT_RGB32] = { .convert = yuvj420p_to_rgb32 }, }, [PIX_FMT_YUVJ444P] = { [PIX_FMT_RGB24] = { .convert = yuvj444p_to_rgb24 }, }, [PIX_FMT_YUYV422] = { [PIX_FMT_YUV420P] = { .convert = yuyv422_to_yuv420p, }, [PIX_FMT_YUV422P] = { .convert = yuyv422_to_yuv422p, }, }, [PIX_FMT_UYVY422] = { [PIX_FMT_YUV420P] = { .convert = uyvy422_to_yuv420p, }, [PIX_FMT_YUV422P] = { .convert = uyvy422_to_yuv422p, }, }, [PIX_FMT_RGB24] = { [PIX_FMT_YUV420P] = { .convert = rgb24_to_yuv420p }, [PIX_FMT_RGB565] = { .convert = rgb24_to_rgb565 }, [PIX_FMT_RGB555] = { .convert = rgb24_to_rgb555 }, [PIX_FMT_RGB32] = { .convert = rgb24_to_rgb32 }, [PIX_FMT_BGR24] = { .convert = rgb24_to_bgr24 }, [PIX_FMT_GRAY8] = { .convert = rgb24_to_gray }, [PIX_FMT_PAL8] = { .convert = rgb24_to_pal8 }, [PIX_FMT_YUV444P] = { .convert = rgb24_to_yuv444p }, [PIX_FMT_YUVJ420P] = { .convert = rgb24_to_yuvj420p }, [PIX_FMT_YUVJ444P] = { .convert = rgb24_to_yuvj444p }, }, [PIX_FMT_RGB32] = { [PIX_FMT_RGB24] = { .convert = rgb32_to_rgb24 }, [PIX_FMT_BGR24] = { .convert = rgb32_to_bgr24 }, [PIX_FMT_RGB565] = { .convert = rgb32_to_rgb565 }, [PIX_FMT_RGB555] = { .convert = rgb32_to_rgb555 }, [PIX_FMT_PAL8] = { .convert = rgb32_to_pal8 }, [PIX_FMT_YUV420P] = { .convert = rgb32_to_yuv420p }, [PIX_FMT_GRAY8] = { .convert = rgb32_to_gray }, }, [PIX_FMT_BGR24] = { [PIX_FMT_RGB32] = { .convert = bgr24_to_rgb32 }, [PIX_FMT_RGB24] = { .convert = bgr24_to_rgb24 }, [PIX_FMT_YUV420P] = { .convert = bgr24_to_yuv420p }, [PIX_FMT_GRAY8] = { .convert = bgr24_to_gray }, }, [PIX_FMT_RGB555] = { [PIX_FMT_RGB24] = { .convert = rgb555_to_rgb24 }, [PIX_FMT_RGB32] = { .convert = rgb555_to_rgb32 }, [PIX_FMT_YUV420P] = { .convert = rgb555_to_yuv420p }, [PIX_FMT_GRAY8] = { .convert = rgb555_to_gray }, }, [PIX_FMT_RGB565] = { [PIX_FMT_RGB32] = { .convert = rgb565_to_rgb32 }, [PIX_FMT_RGB24] = { .convert = rgb565_to_rgb24 }, [PIX_FMT_YUV420P] = { .convert = rgb565_to_yuv420p }, [PIX_FMT_GRAY8] = { .convert = rgb565_to_gray }, }, [PIX_FMT_GRAY16BE] = { [PIX_FMT_GRAY8] = { .convert = gray16be_to_gray }, [PIX_FMT_GRAY16LE] = { .convert = gray16_to_gray16 }, }, [PIX_FMT_GRAY16LE] = { [PIX_FMT_GRAY8] = { .convert = gray16le_to_gray }, [PIX_FMT_GRAY16BE] = { .convert = gray16_to_gray16 }, }, [PIX_FMT_GRAY8] = { [PIX_FMT_RGB555] = { .convert = gray_to_rgb555 }, [PIX_FMT_RGB565] = { .convert = gray_to_rgb565 }, [PIX_FMT_RGB24] = { .convert = gray_to_rgb24 }, [PIX_FMT_BGR24] = { .convert = gray_to_bgr24 }, [PIX_FMT_RGB32] = { .convert = gray_to_rgb32 }, [PIX_FMT_MONOWHITE] = { .convert = gray_to_monowhite }, [PIX_FMT_MONOBLACK] = { .convert = gray_to_monoblack }, [PIX_FMT_GRAY16LE] = { .convert = gray_to_gray16 }, [PIX_FMT_GRAY16BE] = { .convert = gray_to_gray16 }, }, [PIX_FMT_MONOWHITE] = { [PIX_FMT_GRAY8] = { .convert = monowhite_to_gray }, }, [PIX_FMT_MONOBLACK] = { [PIX_FMT_GRAY8] = { .convert = monoblack_to_gray }, }, [PIX_FMT_PAL8] = { [PIX_FMT_RGB555] = { .convert = pal8_to_rgb555 }, [PIX_FMT_RGB565] = { .convert = pal8_to_rgb565 }, [PIX_FMT_BGR24] = { .convert = pal8_to_bgr24 }, [PIX_FMT_RGB24] = { .convert = pal8_to_rgb24 }, [PIX_FMT_RGB32] = { .convert = pal8_to_rgb32 }, }, [PIX_FMT_UYYVYY411] = { [PIX_FMT_YUV411P] = { .convert = uyyvyy411_to_yuv411p, }, }, }; int avpicture_alloc(AVPicture *picture, int pix_fmt, int width, int height) { int size; void *ptr; size = avpicture_get_size(pix_fmt, width, height); if(size<0) goto fail; ptr = av_malloc(size); if (!ptr) goto fail; avpicture_fill(picture, ptr, pix_fmt, width, height); return 0; fail: memset(picture, 0, sizeof(AVPicture)); return -1; } void avpicture_free(AVPicture *picture) { av_free(picture->data[0]); } /* return true if yuv planar */ static inline int is_yuv_planar(const PixFmtInfo *ps) { return (ps->color_type == FF_COLOR_YUV || ps->color_type == FF_COLOR_YUV_JPEG) && ps->pixel_type == FF_PIXEL_PLANAR; } int av_picture_crop(AVPicture *dst, const AVPicture *src, int pix_fmt, int top_band, int left_band) { int y_shift; int x_shift; if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB || !is_yuv_planar(&pix_fmt_info[pix_fmt])) return -1; y_shift = pix_fmt_info[pix_fmt].y_chroma_shift; x_shift = pix_fmt_info[pix_fmt].x_chroma_shift; dst->data[0] = src->data[0] + (top_band * src->linesize[0]) + left_band; dst->data[1] = src->data[1] + ((top_band >> y_shift) * src->linesize[1]) + (left_band >> x_shift); dst->data[2] = src->data[2] + ((top_band >> y_shift) * src->linesize[2]) + (left_band >> x_shift); dst->linesize[0] = src->linesize[0]; dst->linesize[1] = src->linesize[1]; dst->linesize[2] = src->linesize[2]; return 0; } int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) { uint8_t *optr; int y_shift; int x_shift; int yheight; int i, y; if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB || !is_yuv_planar(&pix_fmt_info[pix_fmt])) return -1; for (i = 0; i < 3; i++) { x_shift = i ? pix_fmt_info[pix_fmt].x_chroma_shift : 0; y_shift = i ? pix_fmt_info[pix_fmt].y_chroma_shift : 0; if (padtop || padleft) { memset(dst->data[i], color[i], dst->linesize[i] * (padtop >> y_shift) + (padleft >> x_shift)); } if (padleft || padright) { optr = dst->data[i] + dst->linesize[i] * (padtop >> y_shift) + (dst->linesize[i] - (padright >> x_shift)); yheight = (height - 1 - (padtop + padbottom)) >> y_shift; for (y = 0; y < yheight; y++) { memset(optr, color[i], (padleft + padright) >> x_shift); optr += dst->linesize[i]; } } if (src) { /* first line */ uint8_t *iptr = src->data[i]; optr = dst->data[i] + dst->linesize[i] * (padtop >> y_shift) + (padleft >> x_shift); memcpy(optr, iptr, (width - padleft - padright) >> x_shift); iptr += src->linesize[i]; optr = dst->data[i] + dst->linesize[i] * (padtop >> y_shift) + (dst->linesize[i] - (padright >> x_shift)); yheight = (height - 1 - (padtop + padbottom)) >> y_shift; for (y = 0; y < yheight; y++) { memset(optr, color[i], (padleft + padright) >> x_shift); memcpy(optr + ((padleft + padright) >> x_shift), iptr, (width - padleft - padright) >> x_shift); iptr += src->linesize[i]; optr += dst->linesize[i]; } } if (padbottom || padright) { optr = dst->data[i] + dst->linesize[i] * ((height - padbottom) >> y_shift) - (padright >> x_shift); memset(optr, color[i],dst->linesize[i] * (padbottom >> y_shift) + (padright >> x_shift)); } } return 0; } #ifndef CONFIG_SWSCALE static uint8_t y_ccir_to_jpeg[256]; static uint8_t y_jpeg_to_ccir[256]; static uint8_t c_ccir_to_jpeg[256]; static uint8_t c_jpeg_to_ccir[256]; /* init various conversion tables */ static void img_convert_init(void) { int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; for(i = 0;i < 256; i++) { y_ccir_to_jpeg[i] = Y_CCIR_TO_JPEG(i); y_jpeg_to_ccir[i] = Y_JPEG_TO_CCIR(i); c_ccir_to_jpeg[i] = C_CCIR_TO_JPEG(i); c_jpeg_to_ccir[i] = C_JPEG_TO_CCIR(i); } } /* apply to each pixel the given table */ static void img_apply_table(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height, const uint8_t *table1) { int n; const uint8_t *s; uint8_t *d; const uint8_t *table; table = table1; for(;height > 0; height--) { s = src; d = dst; n = width; while (n >= 4) { d[0] = table[s[0]]; d[1] = table[s[1]]; d[2] = table[s[2]]; d[3] = table[s[3]]; d += 4; s += 4; n -= 4; } while (n > 0) { d[0] = table[s[0]]; d++; s++; n--; } dst += dst_wrap; src += src_wrap; } } /* XXX: use generic filter ? */ /* XXX: in most cases, the sampling position is incorrect */ /* 4x1 -> 1x1 */ static void shrink41(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w; const uint8_t *s; uint8_t *d; for(;height > 0; height--) { s = src; d = dst; for(w = width;w > 0; w--) { d[0] = (s[0] + s[1] + s[2] + s[3] + 2) >> 2; s += 4; d++; } src += src_wrap; dst += dst_wrap; } } /* 2x1 -> 1x1 */ static void shrink21(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w; const uint8_t *s; uint8_t *d; for(;height > 0; height--) { s = src; d = dst; for(w = width;w > 0; w--) { d[0] = (s[0] + s[1]) >> 1; s += 2; d++; } src += src_wrap; dst += dst_wrap; } } /* 1x2 -> 1x1 */ static void shrink12(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w; uint8_t *d; const uint8_t *s1, *s2; for(;height > 0; height--) { s1 = src; s2 = s1 + src_wrap; d = dst; for(w = width;w >= 4; w-=4) { d[0] = (s1[0] + s2[0]) >> 1; d[1] = (s1[1] + s2[1]) >> 1; d[2] = (s1[2] + s2[2]) >> 1; d[3] = (s1[3] + s2[3]) >> 1; s1 += 4; s2 += 4; d += 4; } for(;w > 0; w--) { d[0] = (s1[0] + s2[0]) >> 1; s1++; s2++; d++; } src += 2 * src_wrap; dst += dst_wrap; } } static void grow21_line(uint8_t *dst, const uint8_t *src, int width) { int w; const uint8_t *s1; uint8_t *d; s1 = src; d = dst; for(w = width;w >= 4; w-=4) { d[1] = d[0] = s1[0]; d[3] = d[2] = s1[1]; s1 += 2; d += 4; } for(;w >= 2; w -= 2) { d[1] = d[0] = s1[0]; s1 ++; d += 2; } /* only needed if width is not a multiple of two */ /* XXX: veryfy that */ if (w) { d[0] = s1[0]; } } static void grow41_line(uint8_t *dst, const uint8_t *src, int width) { int w, v; const uint8_t *s1; uint8_t *d; s1 = src; d = dst; for(w = width;w >= 4; w-=4) { v = s1[0]; d[0] = v; d[1] = v; d[2] = v; d[3] = v; s1 ++; d += 4; } } /* 1x1 -> 2x1 */ static void grow21(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { for(;height > 0; height--) { grow21_line(dst, src, width); src += src_wrap; dst += dst_wrap; } } /* 1x1 -> 1x2 */ static void grow12(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { for(;height > 0; height-=2) { memcpy(dst, src, width); dst += dst_wrap; memcpy(dst, src, width); dst += dst_wrap; src += src_wrap; } } /* 1x1 -> 2x2 */ static void grow22(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { for(;height > 0; height--) { grow21_line(dst, src, width); if (height%2) src += src_wrap; dst += dst_wrap; } } /* 1x1 -> 4x1 */ static void grow41(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { for(;height > 0; height--) { grow41_line(dst, src, width); src += src_wrap; dst += dst_wrap; } } /* 1x1 -> 4x4 */ static void grow44(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { for(;height > 0; height--) { grow41_line(dst, src, width); if ((height & 3) == 1) src += src_wrap; dst += dst_wrap; } } /* 1x2 -> 2x1 */ static void conv411(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height) { int w, c; const uint8_t *s1, *s2; uint8_t *d; width>>=1; for(;height > 0; height--) { s1 = src; s2 = src + src_wrap; d = dst; for(w = width;w > 0; w--) { c = (s1[0] + s2[0]) >> 1; d[0] = c; d[1] = c; s1++; s2++; d += 2; } src += src_wrap * 2; dst += dst_wrap; } } /* XXX: always use linesize. Return -1 if not supported */ int img_convert(AVPicture *dst, int dst_pix_fmt, const AVPicture *src, int src_pix_fmt, int src_width, int src_height) { static int initialized; int i, ret, dst_width, dst_height, int_pix_fmt; const PixFmtInfo *src_pix, *dst_pix; const ConvertEntry *ce; AVPicture tmp1, *tmp = &tmp1; if (src_pix_fmt < 0 || src_pix_fmt >= PIX_FMT_NB || dst_pix_fmt < 0 || dst_pix_fmt >= PIX_FMT_NB) return -1; if (src_width <= 0 || src_height <= 0) return 0; if (!initialized) { initialized = 1; img_convert_init(); } dst_width = src_width; dst_height = src_height; dst_pix = &pix_fmt_info[dst_pix_fmt]; src_pix = &pix_fmt_info[src_pix_fmt]; if (src_pix_fmt == dst_pix_fmt) { /* no conversion needed: just copy */ av_picture_copy(dst, src, dst_pix_fmt, dst_width, dst_height); return 0; } ce = &convert_table[src_pix_fmt][dst_pix_fmt]; if (ce->convert) { /* specific conversion routine */ ce->convert(dst, src, dst_width, dst_height); return 0; } /* gray to YUV */ if (is_yuv_planar(dst_pix) && src_pix_fmt == PIX_FMT_GRAY8) { int w, h, y; uint8_t *d; if (dst_pix->color_type == FF_COLOR_YUV_JPEG) { ff_img_copy_plane(dst->data[0], dst->linesize[0], src->data[0], src->linesize[0], dst_width, dst_height); } else { img_apply_table(dst->data[0], dst->linesize[0], src->data[0], src->linesize[0], dst_width, dst_height, y_jpeg_to_ccir); } /* fill U and V with 128 */ w = dst_width; h = dst_height; w >>= dst_pix->x_chroma_shift; h >>= dst_pix->y_chroma_shift; for(i = 1; i <= 2; i++) { d = dst->data[i]; for(y = 0; y< h; y++) { memset(d, 128, w); d += dst->linesize[i]; } } return 0; } /* YUV to gray */ if (is_yuv_planar(src_pix) && dst_pix_fmt == PIX_FMT_GRAY8) { if (src_pix->color_type == FF_COLOR_YUV_JPEG) { ff_img_copy_plane(dst->data[0], dst->linesize[0], src->data[0], src->linesize[0], dst_width, dst_height); } else { img_apply_table(dst->data[0], dst->linesize[0], src->data[0], src->linesize[0], dst_width, dst_height, y_ccir_to_jpeg); } return 0; } /* YUV to YUV planar */ if (is_yuv_planar(dst_pix) && is_yuv_planar(src_pix)) { int x_shift, y_shift, w, h, xy_shift; void (*resize_func)(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height); /* compute chroma size of the smallest dimensions */ w = dst_width; h = dst_height; if (dst_pix->x_chroma_shift >= src_pix->x_chroma_shift) w >>= dst_pix->x_chroma_shift; else w >>= src_pix->x_chroma_shift; if (dst_pix->y_chroma_shift >= src_pix->y_chroma_shift) h >>= dst_pix->y_chroma_shift; else h >>= src_pix->y_chroma_shift; x_shift = (dst_pix->x_chroma_shift - src_pix->x_chroma_shift); y_shift = (dst_pix->y_chroma_shift - src_pix->y_chroma_shift); xy_shift = ((x_shift & 0xf) << 4) | (y_shift & 0xf); /* there must be filters for conversion at least from and to YUV444 format */ switch(xy_shift) { case 0x00: resize_func = ff_img_copy_plane; break; case 0x10: resize_func = shrink21; break; case 0x20: resize_func = shrink41; break; case 0x01: resize_func = shrink12; break; case 0x11: resize_func = ff_shrink22; break; case 0x22: resize_func = ff_shrink44; break; case 0xf0: resize_func = grow21; break; case 0x0f: resize_func = grow12; break; case 0xe0: resize_func = grow41; break; case 0xff: resize_func = grow22; break; case 0xee: resize_func = grow44; break; case 0xf1: resize_func = conv411; break; default: /* currently not handled */ goto no_chroma_filter; } ff_img_copy_plane(dst->data[0], dst->linesize[0], src->data[0], src->linesize[0], dst_width, dst_height); for(i = 1;i <= 2; i++) resize_func(dst->data[i], dst->linesize[i], src->data[i], src->linesize[i], dst_width>>dst_pix->x_chroma_shift, dst_height>>dst_pix->y_chroma_shift); /* if yuv color space conversion is needed, we do it here on the destination image */ if (dst_pix->color_type != src_pix->color_type) { const uint8_t *y_table, *c_table; if (dst_pix->color_type == FF_COLOR_YUV) { y_table = y_jpeg_to_ccir; c_table = c_jpeg_to_ccir; } else { y_table = y_ccir_to_jpeg; c_table = c_ccir_to_jpeg; } img_apply_table(dst->data[0], dst->linesize[0], dst->data[0], dst->linesize[0], dst_width, dst_height, y_table); for(i = 1;i <= 2; i++) img_apply_table(dst->data[i], dst->linesize[i], dst->data[i], dst->linesize[i], dst_width>>dst_pix->x_chroma_shift, dst_height>>dst_pix->y_chroma_shift, c_table); } return 0; } no_chroma_filter: /* try to use an intermediate format */ if (src_pix_fmt == PIX_FMT_YUYV422 || dst_pix_fmt == PIX_FMT_YUYV422) { /* specific case: convert to YUV422P first */ int_pix_fmt = PIX_FMT_YUV422P; } else if (src_pix_fmt == PIX_FMT_UYVY422 || dst_pix_fmt == PIX_FMT_UYVY422) { /* specific case: convert to YUV422P first */ int_pix_fmt = PIX_FMT_YUV422P; } else if (src_pix_fmt == PIX_FMT_UYYVYY411 || dst_pix_fmt == PIX_FMT_UYYVYY411) { /* specific case: convert to YUV411P first */ int_pix_fmt = PIX_FMT_YUV411P; } else if ((src_pix->color_type == FF_COLOR_GRAY && src_pix_fmt != PIX_FMT_GRAY8) || (dst_pix->color_type == FF_COLOR_GRAY && dst_pix_fmt != PIX_FMT_GRAY8)) { /* gray8 is the normalized format */ int_pix_fmt = PIX_FMT_GRAY8; } else if ((is_yuv_planar(src_pix) && src_pix_fmt != PIX_FMT_YUV444P && src_pix_fmt != PIX_FMT_YUVJ444P)) { /* yuv444 is the normalized format */ if (src_pix->color_type == FF_COLOR_YUV_JPEG) int_pix_fmt = PIX_FMT_YUVJ444P; else int_pix_fmt = PIX_FMT_YUV444P; } else if ((is_yuv_planar(dst_pix) && dst_pix_fmt != PIX_FMT_YUV444P && dst_pix_fmt != PIX_FMT_YUVJ444P)) { /* yuv444 is the normalized format */ if (dst_pix->color_type == FF_COLOR_YUV_JPEG) int_pix_fmt = PIX_FMT_YUVJ444P; else int_pix_fmt = PIX_FMT_YUV444P; } else { /* the two formats are rgb or gray8 or yuv[j]444p */ if (src_pix->is_alpha && dst_pix->is_alpha) int_pix_fmt = PIX_FMT_RGB32; else int_pix_fmt = PIX_FMT_RGB24; } if (src_pix_fmt == int_pix_fmt) return -1; if (avpicture_alloc(tmp, int_pix_fmt, dst_width, dst_height) < 0) return -1; ret = -1; if (img_convert(tmp, int_pix_fmt, src, src_pix_fmt, src_width, src_height) < 0) goto fail1; if (img_convert(dst, dst_pix_fmt, tmp, int_pix_fmt, dst_width, dst_height) < 0) goto fail1; ret = 0; fail1: avpicture_free(tmp); return ret; } #endif /* NOTE: we scan all the pixels to have an exact information */ static int get_alpha_info_pal8(const AVPicture *src, int width, int height) { const unsigned char *p; int src_wrap, ret, x, y; unsigned int a; uint32_t *palette = (uint32_t *)src->data[1]; p = src->data[0]; src_wrap = src->linesize[0] - width; ret = 0; for(y=0;y<height;y++) { for(x=0;x<width;x++) { a = palette[p[0]] >> 24; if (a == 0x00) { ret |= FF_ALPHA_TRANSP; } else if (a != 0xff) { ret |= FF_ALPHA_SEMI_TRANSP; } p++; } p += src_wrap; } return ret; } int img_get_alpha_info(const AVPicture *src, int pix_fmt, int width, int height) { const PixFmtInfo *pf = &pix_fmt_info[pix_fmt]; int ret; pf = &pix_fmt_info[pix_fmt]; /* no alpha can be represented in format */ if (!pf->is_alpha) return 0; switch(pix_fmt) { case PIX_FMT_RGB32: ret = get_alpha_info_rgb32(src, width, height); break; case PIX_FMT_PAL8: ret = get_alpha_info_pal8(src, width, height); break; default: /* we do not know, so everything is indicated */ ret = FF_ALPHA_TRANSP | FF_ALPHA_SEMI_TRANSP; break; } return ret; } #ifdef HAVE_MMX #define DEINT_INPLACE_LINE_LUM \ movd_m2r(lum_m4[0],mm0);\ movd_m2r(lum_m3[0],mm1);\ movd_m2r(lum_m2[0],mm2);\ movd_m2r(lum_m1[0],mm3);\ movd_m2r(lum[0],mm4);\ punpcklbw_r2r(mm7,mm0);\ movd_r2m(mm2,lum_m4[0]);\ punpcklbw_r2r(mm7,mm1);\ punpcklbw_r2r(mm7,mm2);\ punpcklbw_r2r(mm7,mm3);\ punpcklbw_r2r(mm7,mm4);\ paddw_r2r(mm3,mm1);\ psllw_i2r(1,mm2);\ paddw_r2r(mm4,mm0);\ psllw_i2r(2,mm1);\ paddw_r2r(mm6,mm2);\ paddw_r2r(mm2,mm1);\ psubusw_r2r(mm0,mm1);\ psrlw_i2r(3,mm1);\ packuswb_r2r(mm7,mm1);\ movd_r2m(mm1,lum_m2[0]); #define DEINT_LINE_LUM \ movd_m2r(lum_m4[0],mm0);\ movd_m2r(lum_m3[0],mm1);\ movd_m2r(lum_m2[0],mm2);\ movd_m2r(lum_m1[0],mm3);\ movd_m2r(lum[0],mm4);\ punpcklbw_r2r(mm7,mm0);\ punpcklbw_r2r(mm7,mm1);\ punpcklbw_r2r(mm7,mm2);\ punpcklbw_r2r(mm7,mm3);\ punpcklbw_r2r(mm7,mm4);\ paddw_r2r(mm3,mm1);\ psllw_i2r(1,mm2);\ paddw_r2r(mm4,mm0);\ psllw_i2r(2,mm1);\ paddw_r2r(mm6,mm2);\ paddw_r2r(mm2,mm1);\ psubusw_r2r(mm0,mm1);\ psrlw_i2r(3,mm1);\ packuswb_r2r(mm7,mm1);\ movd_r2m(mm1,dst[0]); #endif /* filter parameters: [-1 4 2 4 -1] // 8 */ static void deinterlace_line(uint8_t *dst, const uint8_t *lum_m4, const uint8_t *lum_m3, const uint8_t *lum_m2, const uint8_t *lum_m1, const uint8_t *lum, int size) { #ifndef HAVE_MMX uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int sum; for(;size > 0;size--) { sum = -lum_m4[0]; sum += lum_m3[0] << 2; sum += lum_m2[0] << 1; sum += lum_m1[0] << 2; sum += -lum[0]; dst[0] = cm[(sum + 4) >> 3]; lum_m4++; lum_m3++; lum_m2++; lum_m1++; lum++; dst++; } #else { pxor_r2r(mm7,mm7); movq_m2r(ff_pw_4,mm6); } for (;size > 3; size-=4) { DEINT_LINE_LUM lum_m4+=4; lum_m3+=4; lum_m2+=4; lum_m1+=4; lum+=4; dst+=4; } #endif } static void deinterlace_line_inplace(uint8_t *lum_m4, uint8_t *lum_m3, uint8_t *lum_m2, uint8_t *lum_m1, uint8_t *lum, int size) { #ifndef HAVE_MMX uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int sum; for(;size > 0;size--) { sum = -lum_m4[0]; sum += lum_m3[0] << 2; sum += lum_m2[0] << 1; lum_m4[0]=lum_m2[0]; sum += lum_m1[0] << 2; sum += -lum[0]; lum_m2[0] = cm[(sum + 4) >> 3]; lum_m4++; lum_m3++; lum_m2++; lum_m1++; lum++; } #else { pxor_r2r(mm7,mm7); movq_m2r(ff_pw_4,mm6); } for (;size > 3; size-=4) { DEINT_INPLACE_LINE_LUM lum_m4+=4; lum_m3+=4; lum_m2+=4; lum_m1+=4; lum+=4; } #endif } /* deinterlacing : 2 temporal taps, 3 spatial taps linear filter. The top field is copied as is, but the bottom field is deinterlaced against the top field. */ static void deinterlace_bottom_field(uint8_t *dst, int dst_wrap, const uint8_t *src1, int src_wrap, int width, int height) { const uint8_t *src_m2, *src_m1, *src_0, *src_p1, *src_p2; int y; src_m2 = src1; src_m1 = src1; src_0=&src_m1[src_wrap]; src_p1=&src_0[src_wrap]; src_p2=&src_p1[src_wrap]; for(y=0;y<(height-2);y+=2) { memcpy(dst,src_m1,width); dst += dst_wrap; deinterlace_line(dst,src_m2,src_m1,src_0,src_p1,src_p2,width); src_m2 = src_0; src_m1 = src_p1; src_0 = src_p2; src_p1 += 2*src_wrap; src_p2 += 2*src_wrap; dst += dst_wrap; } memcpy(dst,src_m1,width); dst += dst_wrap; /* do last line */ deinterlace_line(dst,src_m2,src_m1,src_0,src_0,src_0,width); } static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap, int width, int height) { uint8_t *src_m1, *src_0, *src_p1, *src_p2; int y; uint8_t *buf; buf = (uint8_t*)av_malloc(width); src_m1 = src1; memcpy(buf,src_m1,width); src_0=&src_m1[src_wrap]; src_p1=&src_0[src_wrap]; src_p2=&src_p1[src_wrap]; for(y=0;y<(height-2);y+=2) { deinterlace_line_inplace(buf,src_m1,src_0,src_p1,src_p2,width); src_m1 = src_p1; src_0 = src_p2; src_p1 += 2*src_wrap; src_p2 += 2*src_wrap; } /* do last line */ deinterlace_line_inplace(buf,src_m1,src_0,src_0,src_0,width); av_free(buf); } int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height) { int i; if (pix_fmt != PIX_FMT_YUV420P && pix_fmt != PIX_FMT_YUV422P && pix_fmt != PIX_FMT_YUV444P && pix_fmt != PIX_FMT_YUV411P && pix_fmt != PIX_FMT_GRAY8) return -1; if ((width & 3) != 0 || (height & 3) != 0) return -1; for(i=0;i<3;i++) { if (i == 1) { switch(pix_fmt) { case PIX_FMT_YUV420P: width >>= 1; height >>= 1; break; case PIX_FMT_YUV422P: width >>= 1; break; case PIX_FMT_YUV411P: width >>= 2; break; default: break; } if (pix_fmt == PIX_FMT_GRAY8) { break; } } if (src == dst) { deinterlace_bottom_field_inplace(dst->data[i], dst->linesize[i], width, height); } else { deinterlace_bottom_field(dst->data[i],dst->linesize[i], src->data[i], src->linesize[i], width, height); } } emms_c(); return 0; }
BackupTheBerlios/avidemux
avidemux/ADM_libraries/ADM_ffmpeg/ADM_lavcodec/imgconvert.c
C
gpl-2.0
79,087
/* * Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ // Stub class generated by rmic, do not edit. // Contents subject to change without notice. public final class DownloadArrayClass_Stub extends java.rmi.server.RemoteStub implements Receiver, java.rmi.Remote { private static final java.rmi.server.Operation[] operations = { new java.rmi.server.Operation("void receive(java.lang.Object)") }; private static final long interfaceHash = -953299374608818732L; private static final long serialVersionUID = 2; private static boolean useNewInvoke; private static java.lang.reflect.Method $method_receive_0; static { try { java.rmi.server.RemoteRef.class.getMethod("invoke", new java.lang.Class[] { java.rmi.Remote.class, java.lang.reflect.Method.class, java.lang.Object[].class, long.class }); useNewInvoke = true; $method_receive_0 = Receiver.class.getMethod("receive", new java.lang.Class[] {java.lang.Object.class}); } catch (java.lang.NoSuchMethodException e) { useNewInvoke = false; } } // constructors public DownloadArrayClass_Stub() { super(); } public DownloadArrayClass_Stub(java.rmi.server.RemoteRef ref) { super(ref); } // methods from remote interfaces // implementation of receive(Object) public void receive(java.lang.Object $param_Object_1) throws java.rmi.RemoteException { try { if (useNewInvoke) { ref.invoke(this, $method_receive_0, new java.lang.Object[] {$param_Object_1}, -578858472643205929L); } else { java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash); try { java.io.ObjectOutput out = call.getOutputStream(); out.writeObject($param_Object_1); } catch (java.io.IOException e) { throw new java.rmi.MarshalException("error marshalling arguments", e); } ref.invoke(call); ref.done(call); } } catch (java.lang.RuntimeException e) { throw e; } catch (java.rmi.RemoteException e) { throw e; } catch (java.lang.Exception e) { throw new java.rmi.UnexpectedException("undeclared checked exception", e); } } }
TheTypoMaster/Scaper
openjdk/jdk/test/java/rmi/server/RMIClassLoader/downloadArrayClass/DownloadArrayClass_Stub.java
Java
gpl-2.0
3,569
<?php // content="text/plain; charset=utf-8" require_once ('jpgraph/jpgraph.php'); require_once ('jpgraph/jpgraph_radar.php'); $graph = new RadarGraph(300,300); $graph->SetScale('lin',0,50); $graph->yscale->ticks->Set(25,5); $graph->SetColor('white'); $graph->SetShadow(); $graph->SetCenter(0.5,0.55); $graph->axis->SetFont(FF_FONT1,FS_BOLD); $graph->axis->SetWeight(2); // Uncomment the following lines to also show grid lines. $graph->grid->SetLineStyle('dashed'); $graph->grid->SetColor('navy@0.5'); $graph->grid->Show(); $graph->ShowMinorTickMarks(); $graph->title->Set('Quality result'); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph->SetTitles(array('One','Two','Three','Four','Five','Sex','Seven','Eight','Nine','Ten')); $plot = new RadarPlot(array(12,35,20,30,33,15,37)); $plot->SetLegend('Goal'); $plot->SetColor('red','lightred'); $plot->SetFillColor('lightblue'); $plot->SetLineWeight(2); $graph->Add($plot); $graph->Stroke();
XoopsModules25x/xhelp
include/jpgraph/Examples/fixscale_radarex1.php
PHP
gpl-2.0
949
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>6.14节,判断日期是闰年还是平年</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <h2>判断日期是闰年还是平年</h2> <p id='getYearType1'></p> <p id='getYearType2'></p> <p id='getYearType3'></p> <script type="text/javascript"> window.onload = function(){ //日期格式化成字符串 function dateFormat(){ Date.prototype.format = function(f){ //获取对象中的日期 var date = { "Y" : this.getFullYear(),//获取年 "M" : (this.getMonth() + 1),//获取月 "D" : this.getDate(),//获取日 "h" : this.getHours(),//获取小时 "m" : this.getMinutes(),//获取分钟 "s" : this.getSeconds()//获取秒 }, d = "",//初始化接受日期变量的对象 r = false,//判断是否存在待替换的字符 reg = null,//正则 _d = "";//日期 for(d in date){//过滤日期标示符 //判断是否有待格式化的字符 reg = new RegExp("[" + d + "]{1,}", "g"); r = reg.test(f); if(r)//验证是否存在 { _d = date[d];//被替换的日期 f = f.replace(reg, _d < 10 ? ("0" + _d) : _d); } } return f; } } dateFormat(); //获取指定日期所在月份的天数 function getMonthDays(Y, M){ //Y代表年份;M 代表为月数0~11,月份加1,但是第3个参数为0,所以不+1;第3个参数要求最小为1,但是设置0,就变成M月的最后一天了 return new Date(Y, M, 0).getDate(); } //判断日期是闰年还是平年 function getYearType(Y){ return getMonthDays(Y, 2) == 28 ? "平年" : "闰年" ; } //判断日期是闰年还是平年 document.getElementById("getYearType1").innerHTML = "2014年为" + getYearType("2014"); document.getElementById("getYearType2").innerHTML = "2000年为" + getYearType("2000"); document.getElementById("getYearType3").innerHTML = "2011年为" + getYearType("2011"); }; </script> </body> </html>
letshare/code
js/6/6.14/index.html
HTML
gpl-2.0
2,692
PhD Application =============== Для получения архива с дистрибутивом приложения необходимо выполнить несколько шагов: 1) В системе должны быть установлены следующие компоненты: - Oracle JDK 8.+ - Gradle 1.1+ 2) Сборка приложения производится путём выполнения следующей команды: $ gradle distZip 3) ZIP-архив с дистрибутивом приложения будет находиться в директории "build/distributions"
igorbotian/phdapp
README.md
Markdown
gpl-2.0
628
/* Characters Map/2 * Copyright (C) 2001-2005 Dmitry A.Steklenev * * This program 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 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /**@#-*/ #ifndef _PM_ERROR_H #define _PM_ERROR_H #include <string.h> #include <errno.h> #include <stdio.h> #include "pm_noncopyable.h" /**@#+*/ /** * Base error class. * * The PMError class is the base class from which all * exception objects thrown in the library are derived. * These classes retrieve error information and text that * you can subsequently use to create an exception object. * <p> * None of the functions in this class throws exceptions because * an exception probably has been thrown already or is about to be * thrown. * * @author Dmitry A Steklenev */ class PMError { public: /** Constructs error from current GUI error. */ PMError( const char* file, const char* func, int line ); /** Constructs error from specified error id and information. */ PMError( int code, const char* info, const char* file, const char* func, int line ); /** Constructs error object from another error. */ PMError( const PMError& ); /** Assigns the value of one error object to another. */ PMError& operator=( const PMError& ); /** Destructs the error object */ ~PMError(); /** Returns source file name. */ const char* file() const { return err_file; } /** Returns the name of the function. */ const char* func() const { return err_func; } /** Returns the line number. */ int line() const { return err_line; } /** Returns the error message. */ const char* info() const { return err_info; } /** Returns the error id. */ int code() const { return err_code; } /** Display error information. */ PMError& display( FILE* out = 0 ); private: char* err_file; char* err_func; int err_line; char* err_info; int err_code; }; /**@#-*/ #define PM_ERROR_LOCATION __FILE__, __FUNCTION__, __LINE__ #define PM_THROW_ERROR( id, info ) \ throw( PMError( id, info, PM_ERROR_LOCATION ).display( stdout )) #define PM_THROW_GUIERROR() throw( PMError( PM_ERROR_LOCATION ).display( stdout )) #define PM_THROW_CLBERROR() PM_THROW_ERROR( errno , strerror( errno )) #define PM_THROW_OS2ERROR(rc) PM_THROW_ERROR( rc , NULL ) #endif
OS2World/UTIL-INTERNATIONAL-Characters-Map-2
Source/pm_error.h
C
gpl-2.0
2,981
package test.it.unibas.freesbee.ge.comunicazione.g; import it.unibas.freesbee.ge.messaggi.XmlJDomUtil; import it.unibas.freesbee.ge.modello.CategoriaEventiInterna; import it.unibas.freesbee.ge.modello.Configurazione; import it.unibas.freesbee.ge.modello.ConfigurazioniFactory; import it.unibas.freesbee.ge.modello.GestoreEventi; import it.unibas.freesbee.ge.modello.PubblicatoreInterno; import it.unibas.freesbee.ge.modello.Sottoscrittore; import it.unibas.freesbee.ge.modello.SottoscrizioneInterna; import it.unibas.freesbee.ge.persistenza.IDAOCategoriaEventiInterna; import it.unibas.freesbee.ge.persistenza.IDAOGestoreEventi; import it.unibas.freesbee.ge.persistenza.IDAOPubblicatoreInterno; import it.unibas.freesbee.ge.persistenza.IDAOSottoscrittore; import it.unibas.freesbee.ge.persistenza.facade.DAOPubblicatoreInternoFacade; import it.unibas.freesbee.ge.persistenza.hibernate.DAOCategoriaEventiInternaHibernate; import it.unibas.freesbee.ge.persistenza.hibernate.DAOCostanti; import it.unibas.freesbee.ge.persistenza.hibernate.DAOGestoreEventiHibernate; import it.unibas.freesbee.ge.persistenza.hibernate.DAOPubblicatoreInternoHibernate; import it.unibas.freesbee.ge.persistenza.hibernate.DAOSottoscrittoreHibernate; import it.unibas.freesbee.ge.persistenza.hibernate.DAOUtilHibernate; import it.unibas.freesbee.utilita.ClientPD; import it.unibas.springfreesbee.ge.ConfigurazioneStatico; import java.io.FileWriter; import java.net.URL; import junit.framework.Assert; import org.apache.camel.ContextTestSupport; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jdom.Document; import test.it.unibas.freesbee.ge.dao.DAOMock; public class Conferma8 extends ContextTestSupport { protected Log logger = LogFactory.getLog(this.getClass()); public void testConferma8Init() throws Exception { logger.info("TEST - 8"); logger.info("Init"); Thread.currentThread().sleep(5000); FileWriter f = new FileWriter(DAOMock.COMUNICAZIONE_ESTERNA); String s = ""; f.append(s.subSequence(0, s.length())); f.flush(); } public void test8Prima() throws Exception { logger.info("TEST - 8"); logger.info("Prima"); DAOUtilHibernate.beginTransaction(); IDAOCategoriaEventiInterna daoCategoriaEventi = new DAOCategoriaEventiInternaHibernate(); CategoriaEventiInterna categoriaEventi = daoCategoriaEventi.findByNome(DAOMock.CATEGORIA_EVENTI_INTERNA_ATTIVA_2); assertNotNull(categoriaEventi); assertTrue(categoriaEventi.isAttiva()); PubblicatoreInterno pubblicatore = new PubblicatoreInterno(DAOMock.TIPO_SOGGETTO_SPC, DAOMock.NOME_SOGGETTO_P); DAOPubblicatoreInternoFacade.aggiungiPubblicatoreInterno(categoriaEventi, pubblicatore); assertTrue(DAOPubblicatoreInternoFacade.isPubblicatoreInternoPerCategoriaEventiInterna(categoriaEventi, pubblicatore)); pubblicatore = new PubblicatoreInterno(DAOMock.TIPO_SOGGETTO_SPC, DAOMock.NOME_SOGGETTO_Q); DAOPubblicatoreInternoFacade.aggiungiPubblicatoreInterno(categoriaEventi, pubblicatore); assertTrue(DAOPubblicatoreInternoFacade.isPubblicatoreInternoPerCategoriaEventiInterna(categoriaEventi, pubblicatore)); IDAOGestoreEventi daoGestoreEventi = new DAOGestoreEventiHibernate(); GestoreEventi gesoreEventi = daoGestoreEventi.findByTipoNome(DAOMock.TIPO_SOGGETTO_SPC, DAOMock.NOME_SOGGETTO_GE); assertNotNull(gesoreEventi); IDAOSottoscrittore daoSottoscrittore = new DAOSottoscrittoreHibernate(); Sottoscrittore sottoscrittoreGE = daoSottoscrittore.findByTipoNome(DAOMock.TIPO_SOGGETTO_SPC, DAOMock.NOME_SOGGETTO_GE); assertNull(sottoscrittoreGE); assertNull(daoCategoriaEventi.findByCategoriaEventiSottoscrittore(categoriaEventi, sottoscrittoreGE)); DAOUtilHibernate.commit(); } public void testConferma8() throws Exception { logger.info("TEST - 8"); logger.info("Ricezione Richeista Conferma di Pubblicatori corretta"); try { //Carico il messaggio che verebbe generato dal GE URL url = this.getClass().getResource("/dati/g/test8.xml"); Document doc = XmlJDomUtil.caricaXML(url.getFile(), false); String m = XmlJDomUtil.convertiDocumentToString(doc); ClientPD clientPD = new ClientPD(); String indirizzo = "http://" + ConfigurazioneStatico.getInstance().getWebservicesIndirizzo() + ":" + ConfigurazioneStatico.getInstance().getWebservicesPort() + DAOCostanti.URL_WSDL_CONSEGNA_MESSAGGI; logger.info("url: " + indirizzo); logger.debug(m); clientPD.invocaPortaDelegata(indirizzo, m); } catch (Exception ex) { logger.error(ex.getMessage()); Assert.fail("La conferma dei pubblicvatori categoria ha lanciato eccezione"); } } public void testInserimento8VerificaComunicazioneEsterna() throws Exception { try { logger.info("TEST - 8"); logger.info("Verifica Comunicazione Esterna Conferma pubblicatori"); Thread.currentThread().sleep(5000); //Comunicazione inviata org.jdom.Document doc = XmlJDomUtil.caricaXML(DAOMock.COMUNICAZIONE_ESTERNA, false); String s = XmlJDomUtil.convertiDocumentToString(doc); //Comunicazione di test URL url = this.getClass().getResource("/dati/g/test8Esterno.xml"); doc = XmlJDomUtil.caricaXML(url.getFile(), false); String m = XmlJDomUtil.convertiDocumentToString(doc); logger.debug("Comunicazione inviata: "); logger.debug(XmlJDomUtil.formattaXML(s)); logger.debug("Comunicazione di test:"); logger.debug(XmlJDomUtil.formattaXML(m)); assertEquals(s, m); } catch (Exception ex) { logger.error(ex.getMessage()); Assert.fail(ex.getMessage()); } } public void test8Dopo() throws Exception { logger.info("TEST - 8"); logger.info("Dopo"); DAOUtilHibernate.beginTransaction(); IDAOCategoriaEventiInterna daoCategoriaEventiInterna = new DAOCategoriaEventiInternaHibernate(); CategoriaEventiInterna categoriaEventi = daoCategoriaEventiInterna.findByNome(DAOMock.CATEGORIA_EVENTI_INTERNA_ATTIVA_2); assertNotNull(categoriaEventi); assertTrue(categoriaEventi.isAttiva()); IDAOGestoreEventi daoGestoreEventi = new DAOGestoreEventiHibernate(); GestoreEventi gesoreEventi = daoGestoreEventi.findByTipoNome(DAOMock.TIPO_SOGGETTO_SPC, DAOMock.NOME_SOGGETTO_GE); assertNotNull(gesoreEventi); Configurazione conf = ConfigurazioniFactory.getConfigurazioneIstance(); IDAOPubblicatoreInterno daoPubblicatoreInterno = new DAOPubblicatoreInternoHibernate(); PubblicatoreInterno pubblicatore = daoPubblicatoreInterno.findByTipoNome(conf.getTipoGestoreEventi(), conf.getNomeGestoreEventi()); DAOPubblicatoreInternoFacade.verificaEsistenzaPubblicatoreInterno(categoriaEventi, pubblicatore); IDAOSottoscrittore daoSottoscrittore = new DAOSottoscrittoreHibernate(); Sottoscrittore sottoscrittoreGE = daoSottoscrittore.findByTipoNome(DAOMock.TIPO_SOGGETTO_SPC, DAOMock.NOME_SOGGETTO_GE); assertNotNull(sottoscrittoreGE); SottoscrizioneInterna sottoscrizione = daoCategoriaEventiInterna.findByCategoriaEventiSottoscrittore(categoriaEventi, sottoscrittoreGE); assertNotNull(sottoscrizione); assertEquals(1, sottoscrizione.getListaFiltroPublicatore().size()); assertTrue(sottoscrizione.getListaFiltroPublicatore().get(0).getPubblicatore().compareTo(pubblicatore) == 0); DAOUtilHibernate.commit(); } }
donatellosantoro/freESBee
freesbeeGE/test/test/it/unibas/freesbee/ge/comunicazione/g/Conferma8.java
Java
gpl-2.0
7,844
/** * OWASP Benchmark Project v1.2 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://owasp.org/www-project-benchmark/">https://owasp.org/www-project-benchmark/</a>. * * The OWASP Benchmark 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, version 2. * * The OWASP Benchmark 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. * * @author Dave Wichers * @created 2015 */ package org.owasp.benchmark.testcode; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(value="/weakrand-03/BenchmarkTest01535") public class BenchmarkTest01535 extends HttpServlet { private static final long serialVersionUID = 1L; @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } @Override public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); org.owasp.benchmark.helpers.SeparateClassRequest scr = new org.owasp.benchmark.helpers.SeparateClassRequest( request ); String param = scr.getTheParameter("BenchmarkTest01535"); if (param == null) param = ""; String bar = new Test().doSomething(request, param); try { double rand = java.security.SecureRandom.getInstance("SHA1PRNG").nextDouble(); String rememberMeKey = Double.toString(rand).substring(2); // Trim off the 0. at the front. String user = "SafeDonna"; String fullClassName = this.getClass().getName(); String testCaseNumber = fullClassName.substring(fullClassName.lastIndexOf('.')+1+"BenchmarkTest".length()); user+= testCaseNumber; String cookieName = "rememberMe" + testCaseNumber; boolean foundUser = false; javax.servlet.http.Cookie[] cookies = request.getCookies(); if (cookies != null) { for (int i = 0; !foundUser && i < cookies.length; i++) { javax.servlet.http.Cookie cookie = cookies[i]; if (cookieName.equals(cookie.getName())) { if (cookie.getValue().equals(request.getSession().getAttribute(cookieName))) { foundUser = true; } } } } if (foundUser) { response.getWriter().println( "Welcome back: " + user + "<br/>" ); } else { javax.servlet.http.Cookie rememberMe = new javax.servlet.http.Cookie(cookieName, rememberMeKey); rememberMe.setSecure(true); rememberMe.setHttpOnly(true); rememberMe.setPath(request.getRequestURI()); // i.e., set path to JUST this servlet // e.g., /benchmark/sql-01/BenchmarkTest01001 request.getSession().setAttribute(cookieName, rememberMeKey); response.addCookie(rememberMe); response.getWriter().println( user + " has been remembered with cookie: " + rememberMe.getName() + " whose value is: " + rememberMe.getValue() + "<br/>" ); } } catch (java.security.NoSuchAlgorithmException e) { System.out.println("Problem executing SecureRandom.nextDouble() - TestCase"); throw new ServletException(e); } response.getWriter().println( "Weak Randomness Test java.security.SecureRandom.nextDouble() executed" ); } // end doPost private class Test { public String doSomething(HttpServletRequest request, String param) throws ServletException, IOException { String bar = ""; if (param != null) { bar = new String( org.apache.commons.codec.binary.Base64.decodeBase64( org.apache.commons.codec.binary.Base64.encodeBase64( param.getBytes() ) )); } return bar; } } // end innerclass Test } // end DataflowThruInnerClass
h3xstream/Benchmark
src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01535.java
Java
gpl-2.0
4,138
<?php /**------------------------------------------------------------------------ com_bids - Auction Factory 2.5.0 ------------------------------------------------------------------------ * @author TheFactory * @copyright Copyright (C) 2011 SKEPSIS Consult SRL. All Rights Reserved. * @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * Websites: http://www.thefactory.ro * Technical Support: Forum - http://www.thefactory.ro/joomla-forum/ -------------------------------------------------------------------------*/ /** * Smarty {counter} function plugin * * Type: function<br> * Name: counter<br> * Purpose: print out a counter value * @author Monte Ohrt <monte at ohrt dot com> * @link http://smarty.php.net/manual/en/language.function.counter.php {counter} * (Smarty online manual) * @param array parameters * @param Smarty * @return string|null */ function smarty_function_counter($params, &$smarty) { static $counters = array(); $name = (isset($params['name'])) ? $params['name'] : 'default'; if (!isset($counters[$name])) { $counters[$name] = array( 'start'=>1, 'skip'=>1, 'direction'=>'up', 'count'=>1 ); } $counter = $counters[$name]; if (isset($params['start'])) { $counter['start'] = $counter['count'] = (int)$params['start']; } if (!empty($params['assign'])) { $counter['assign'] = $params['assign']; } if (isset($counter['assign'])) { $smarty->assign($counter['assign'], $counter['count']); } if (isset($params['print'])) { $print = (bool)$params['print']; } else { $print = empty($counter['assign']); } if ($print) { $retval = $counter['count']; } else { $retval = null; } if (isset($params['skip'])) { $counter['skip'] = $params['skip']; } if (isset($params['direction'])) { $counter['direction'] = $params['direction']; } if ($counter['direction'] == "down") $counter['count'] -= $counter['skip']; else $counter['count'] += $counter['skip']; return $retval; } /* vim: set expandtab: */ ?>
kosmosby/medicine-prof
components/com_bids/libraries/smarty/libs/plugins/function.counter.php
PHP
gpl-2.0
2,322
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>schrodinger.application.prime.primefix.FixForPrime</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/javascript" src="epydoc.js"></script> </head> <body bgcolor="white" text="black" link="blue" vlink="#204080" alink="#204080"> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th>&nbsp;&nbsp;&nbsp;<a href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th> <!-- Index link --> <th>&nbsp;&nbsp;&nbsp;<a href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th> <!-- Help link --> <th>&nbsp;&nbsp;&nbsp;<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" >2015-2Schrodinger Python API</th> </tr></table></th> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="100%"> <span class="breadcrumbs"> <a href="schrodinger-module.html">Package&nbsp;schrodinger</a> :: <a href="schrodinger.application-module.html">Package&nbsp;application</a> :: <a href="schrodinger.application.prime-module.html">Package&nbsp;prime</a> :: <a href="schrodinger.application.prime.primefix-module.html">Module&nbsp;primefix</a> :: Class&nbsp;FixForPrime </span> </td> <td> <table cellpadding="0" cellspacing="0"> <!-- hide/show private --> <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr> <tr><td align="right"><span class="options" >[<a href="frames.html" target="_top">frames</a >]&nbsp;|&nbsp;<a href="schrodinger.application.prime.primefix.FixForPrime-class.html" target="_top">no&nbsp;frames</a>]</span></td></tr> </table> </td> </tr> </table> <!-- ==================== CLASS DESCRIPTION ==================== --> <h1 class="epydoc">Class FixForPrime</h1><p class="nomargin-top"></p> <p>Wrapper class to house the combination of methods for fixing a structure for Prime.</p> <p>Raises RuntimeError if it can't determine a chain name, or general Exception if can't name a hydrogen because of PDB atom name field size restrictions.</p> <p>Call instance.fixAll() after creating the instance to drive all fixing methods.</p> <!-- ==================== INSTANCE METHODS ==================== --> <a name="section-InstanceMethods"></a> <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td colspan="2" class="table-header"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="left"><span class="table-header">Instance Methods</span></td> <td align="right" valign="top" ><span class="options">[<a href="#section-InstanceMethods" class="privatelink" onclick="toggle_private();" >hide private</a>]</span></td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>, <span class="summary-sig-arg">st</span>)</span></td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#fixMetals" class="summary-sig-name">fixMetals</a>(<span class="summary-sig-arg">self</span>, <span class="summary-sig-arg">fix_pdbnames</span>=<span class="summary-sig-default">False</span>)</span><br /> Sets bond order between all metals and other atoms to 0 and gives the metal a new residue number and name.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#fixSpecialResidues" class="summary-sig-name">fixSpecialResidues</a>(<span class="summary-sig-arg">self</span>)</span><br /> Assigns PDB atom names, and charges for residue names:</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#fixDNACaps" class="summary-sig-name">fixDNACaps</a>(<span class="summary-sig-arg">self</span>)</span><br /> Prime atom parameters need to be different for terminal DNA bases than the atom parameters for the DNA bases that are in the center of the string.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#reassignHets" class="summary-sig-name">reassignHets</a>(<span class="summary-sig-arg">self</span>, <span class="summary-sig-arg">het_atom_groups</span>)</span><br /> Assign chain, pdbres, and resnum to het groups.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#reassignResNums" class="summary-sig-name">reassignResNums</a>(<span class="summary-sig-arg">self</span>)</span><br /> Assigns new residue numbers as needed, making sure a residue number only appears in a chain once.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#renumberByMolecule" class="summary-sig-name">renumberByMolecule</a>(<span class="summary-sig-arg">self</span>)</span><br /> Break up the structure into multiple structures - one molecule each Recombined the structures into one, adding a molecule at a time.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="schrodinger.application.prime.primefix.FixForPrime-class.html#fixPdbresAndPdbnames" class="summary-sig-name">fixPdbresAndPdbnames</a>(<span class="summary-sig-arg">self</span>)</span><br /> Justifies PDB residue name.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="fixHets"></a><span class="summary-sig-name">fixHets</span>(<span class="summary-sig-arg">self</span>)</span><br /> Calls reassignHets on identified het atoms.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="fixAll"></a><span class="summary-sig-name">fixAll</span>(<span class="summary-sig-arg">self</span>)</span><br /> Driver method that makes all the fixes.</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> </table> <!-- ==================== METHOD DETAILS ==================== --> <a name="section-MethodDetails"></a> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td colspan="2" class="table-header"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="left"><span class="table-header">Method Details</span></td> <td align="right" valign="top" ><span class="options">[<a href="#section-MethodDetails" class="privatelink" onclick="toggle_private();" >hide private</a>]</span></td> </tr> </table> </td> </tr> </table> <a name="fixMetals"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">fixMetals</span>(<span class="sig-arg">self</span>, <span class="sig-arg">fix_pdbnames</span>=<span class="sig-default">False</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Sets bond order between all metals and other atoms to 0 and gives the metal a new residue number and name. Also sets the charges of metals to appropriate values. For Iron-sulfur clusters, sets the charge of iron to +3 and the charge of sulfurs to -1. Optionally corrects the metal pdbnames.</p> <p>Also every -SH that is within 3A of a metal is marked with a negative charge and gets its hydrogen removed.</p> <dl class="fields"> </dl> </td></tr></table> </div> <a name="fixSpecialResidues"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">fixSpecialResidues</span>(<span class="sig-arg">self</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Assigns PDB atom names, and charges for residue names:</p> <p>HOH, DOD, TIP, SPS ASP, GLU NMA, NME ACE HEM, HEC</p> <p>Changes residue name from DOD, TIP, or SPC to HOH</p> <dl class="fields"> </dl> </td></tr></table> </div> <a name="fixDNACaps"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">fixDNACaps</span>(<span class="sig-arg">self</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Prime atom parameters need to be different for terminal DNA bases than the atom parameters for the DNA bases that are in the center of the string. This is accomplished by giving terminal bases a new residue name. Ev:60484</p> <p>XHL is the 5' cap (-OH bound to the phosphate of the base) POT is the 3' cap (a phosphate cap)</p> <p>Protocol: Find all XHL&amp;POT caps and rename the cap and the residue bound to it</p> <dl class="fields"> </dl> </td></tr></table> </div> <a name="reassignHets"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">reassignHets</span>(<span class="sig-arg">self</span>, <span class="sig-arg">het_atom_groups</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Assign chain, pdbres, and resnum to het groups. Raises RuntimeError if it can't determine a chain name, or general Exception if can't name a hydrogen because of PDB atom name field size restrictions.</p> <dl class="fields"> </dl> </td></tr></table> </div> <a name="reassignResNums"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">reassignResNums</span>(<span class="sig-arg">self</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Assigns new residue numbers as needed, making sure a residue number only appears in a chain once. self.reassign_resnum currently contains only a list of metals to which bonds were broken.</p> <dl class="fields"> </dl> </td></tr></table> </div> <a name="renumberByMolecule"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">renumberByMolecule</span>(<span class="sig-arg">self</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Break up the structure into multiple structures - one molecule each Recombined the structures into one, adding a molecule at a time. The purpose of this is so that all atoms from each molecule appear together in the connection table.</p> <dl class="fields"> </dl> </td></tr></table> </div> <a name="fixPdbresAndPdbnames"></a> <div> <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">fixPdbresAndPdbnames</span>(<span class="sig-arg">self</span>)</span> </h3> </td><td align="right" valign="top" >&nbsp; </td> </tr></table> <p>Justifies PDB residue name. Changes all PDB atom names to upper case.</p> <dl class="fields"> </dl> </td></tr></table> </div> <br /> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th>&nbsp;&nbsp;&nbsp;<a href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th> <!-- Index link --> <th>&nbsp;&nbsp;&nbsp;<a href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th> <!-- Help link --> <th>&nbsp;&nbsp;&nbsp;<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" >2015-2Schrodinger Python API</th> </tr></table></th> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%%"> <tr> <td align="left" class="footer"> Generated by Epydoc 3.0.1 on Sat May 9 06:31:21 2015 </td> <td align="right" class="footer"> <a target="mainFrame" href="http://epydoc.sourceforge.net" >http://epydoc.sourceforge.net</a> </td> </tr> </table> <script type="text/javascript"> <!-- // Private objects are initially displayed (because if // javascript is turned off then we want them to be // visible); but by default, we want to hide them. So hide // them unless we have a cookie that says to show them. checkCookie(); // --> </script> </body> </html>
platinhom/ManualHom
Schrodinger/Schrodinger_2015-2_docs/python_api/api/schrodinger.application.prime.primefix.FixForPrime-class.html
HTML
gpl-2.0
18,186
(function ($, scope, undefined) { function capitalize(str) { return str.charAt(0).toUpperCase() + str.slice(1); } /** * @constructor * @param responsive {NextendSmartSliderResponsive} caller object * @param group {String} * @param element {jQuery} * @param cssProperties {Array} Array of properties which will be responsive * @param name {String} we will register the changed values for this namespace in the global NextendSmartSliderResponsive objects' responsiveDimensions property */ function NextendSmartSliderResponsiveElement(responsive, group, element, cssProperties, name) { this.loadDefaults(); this._lastRatio = 1; this.responsive = responsive; this.group = group; this.element = element; this.lazyload = this.responsive.slider.parameters.lazyload.enabled; this._readyDeferred = $.Deferred(); if (typeof name !== 'undefined') { this.name = name; } else { this.name = null; } this.tagName = element.prop("tagName"); this.data = {}; this.helper = { /** * Holds the current element's parent element, which is required for the centered mode */ parent: null, /** * Holds the current element's parent original width and height for images */ parentProps: null, /** * If font size is enabled for the current element, this will hold the different font sized for the different devices */ fontSize: false, /** * If this is enabled, the responsive mode will try to position the actual element into the center of the parent element */ centered: false }; if (!this.customLoad) { switch (this.tagName) { case 'IMG': var parent = element.parent(); // The images doesn't have their original(not the real dimension, it is the place // what was taken right after the load) width and height values in the future. // So we will calculate the original size from the parent element size // We will assume that the image was 100% width to its parent this.helper.parentProps = { width: parent.width(), height: parent.height() } // Images might not have proper height and width values when not loaded // Let's wait for them if (this.lazyload) { // Lazy load happens much later than the imagesloaded, but this is why it is lazy :) element.on('lazyloaded', $.proxy(this._lateInitIMG, this, cssProperties)); } else { element.imagesLoaded($.proxy(this._lateInitIMG, this, cssProperties)); } break; // We don't have anything to wait so we can start our later initialization default: this._lateInit(cssProperties); } } else { this.customLoad(cssProperties); } }; NextendSmartSliderResponsiveElement.prototype.loadDefaults = function () { this.customLoad = false; this.lazyload = false; }; NextendSmartSliderResponsiveElement.prototype._lateInit = function (cssProperties) { this._cssProperties = cssProperties; this.reloadDefault(); /** * If font-size is responsive on the element, we init this feature on the element. */ if ($.inArray('fontSize', cssProperties) != -1) { this.data['fontSize'] = this.element.data('fontsize'); this.helper.fontSize = { fontSize: this.element.data('fontsize'), desktopPortrait: this.element.data('minfontsizedesktopportrait'), desktopLandscape: this.element.data('minfontsizedesktoplandscape'), tabletPortrait: this.element.data('minfontsizetabletportrait'), tabletLandscape: this.element.data('minfontsizetabletlandscape'), mobilePortrait: this.element.data('minfontsizemobileportrait'), mobileLandscape: this.element.data('minfontsizemobilelandscape') }; // Sets the proper font size for the current mode //this.setFontSizeByMode(this.responsive.mode.mode); // When the mode changes we have to adjust the original font size value in the data this.responsive.sliderElement.on('SliderDeviceOrientation', $.proxy(this.onModeChange, this)); } // Our resource is finished with the loading, so we can enable the normal resize method. this.resize = this._resize; // We are ready this._readyDeferred.resolve(); }; NextendSmartSliderResponsiveElement.prototype.reloadDefault = function () { for (var i = 0; i < this._cssProperties.length; i++) { var propName = this._cssProperties[i]; this.data[propName] = parseInt(this.element.css(propName)); } if (this.name) { var d = this.responsive.responsiveDimensions; for (var k in this.data) { d['start' + capitalize(this.name) + capitalize(k)] = this.data[k]; } } }; NextendSmartSliderResponsiveElement.prototype._lateInitIMG = function (cssProperties, e) { // As our background images has 100% width, we know that the original img size was the same as the parent's width. // Then we can calculate the original height of the img as the parent element's ratio might not the same as the background image var width = this.element.width(), height = this.element.height(); height = parseInt(this.helper.parentProps.width / width * height); width = this.helper.parentProps.width; var widthIndex = $.inArray('width', cssProperties); if (widthIndex != -1) { cssProperties.splice(widthIndex, 1); this.data['width'] = width; } var heightIndex = $.inArray('height', cssProperties); if (heightIndex != -1) { cssProperties.splice(heightIndex, 1); this.data['height'] = height; } this._lateInit(cssProperties); }; /** * You can use it as the normal jQuery ready, except it check for the current element list * @param {function} fn */ NextendSmartSliderResponsiveElement.prototype.ready = function (fn) { this._readyDeferred.done(fn); }; /** * When the element list is not loaded yet, we have to add the current resize call to the ready event. * @example You have an image which is not loaded yet, but a resize happens on the browser. We have to make the resize later when the image is ready! * @param responsiveDimensions * @param ratio */ NextendSmartSliderResponsiveElement.prototype.resize = function (responsiveDimensions, ratio) { this.ready($.proxy(this.resize, this, responsiveDimensions, ratio)); this._lastRatio = ratio; }; NextendSmartSliderResponsiveElement.prototype._resize = function (responsiveDimensions, ratio, timeline, duration) { if (this.name && typeof responsiveDimensions[this.name] === 'undefined') { responsiveDimensions[this.name] = {}; } var to = {}; for (var propName in this.data) { var value = this.data[propName] * ratio; if (typeof this[propName + 'Prepare'] == 'function') { value = this[propName + 'Prepare'](value); } if (this.name) { responsiveDimensions[this.name][propName] = value; } to[propName] = value; } if (timeline) { timeline.to(this.element, duration, to, 0); } else { this.element.css(to); if (this.helper.centered) { // when centered feature enabled we have to set the proper margins for the element to make it centered if (n2const.isIOS && this.tagName == 'IMG') { // If this fix not applied, IOS might not calculate the correct width and height for the image this.element.css({ marginLeft: 1, marginTop: 1 }); } this.element.css({ marginLeft: parseInt((this.helper.parent.width() - this.element.width()) / 2), marginTop: parseInt((this.helper.parent.height() - this.element.height()) / 2) }); } } this._lastRatio = ratio; }; NextendSmartSliderResponsiveElement.prototype._refreshResize = function () { this.responsive.ready.done($.proxy(function () { this._resize(this.responsive.responsiveDimensions, this.responsive.lastRatios[this.group]); }, this)); }; NextendSmartSliderResponsiveElement.prototype.widthPrepare = function (value) { return Math.round(value); }; NextendSmartSliderResponsiveElement.prototype.heightPrepare = function (value) { return Math.round(value); }; NextendSmartSliderResponsiveElement.prototype.marginLeftPrepare = function (value) { return parseInt(value); }; NextendSmartSliderResponsiveElement.prototype.marginRightPrepare = function (value) { return parseInt(value); }; NextendSmartSliderResponsiveElement.prototype.lineHeightPrepare = function (value) { return value + 'px'; }; NextendSmartSliderResponsiveElement.prototype.fontSizePrepare = function (value) { var mode = this.responsive.getNormalizedModeString(); if (value < this.helper.fontSize[mode]) { return this.helper.fontSize[mode]; } return value; }; /** * Enables the centered feature on the current element. */ NextendSmartSliderResponsiveElement.prototype.setCentered = function () { this.helper.parent = this.element.parent(); this.helper.centered = true; }; NextendSmartSliderResponsiveElement.prototype.unsetCentered = function () { this.helper.centered = false; }; NextendSmartSliderResponsiveElement.prototype.onModeChange = function () { this.setFontSizeByMode(); }; /** * Changes the original font size based on the current mode and also updates the current value on the element. * @param mode */ NextendSmartSliderResponsiveElement.prototype.setFontSizeByMode = function () { this.element.css('fontSize', this.fontSizePrepare(this.data['fontSize'] * this._lastRatio)); }; scope.NextendSmartSliderResponsiveElement = NextendSmartSliderResponsiveElement; function NextendSmartSliderResponsiveElementBackgroundImage(responsive, backgroundImage, group, element, cssProperties, name) { this.ratio = -1; this.relativeRatio = 1; this.backgroundImage = backgroundImage; NextendSmartSliderResponsiveElement.prototype.constructor.call(this, responsive, group, element, cssProperties, name); backgroundImage.addResponsiveElement(this); }; NextendSmartSliderResponsiveElementBackgroundImage.prototype = Object.create(NextendSmartSliderResponsiveElement.prototype); NextendSmartSliderResponsiveElementBackgroundImage.prototype.constructor = NextendSmartSliderResponsiveElementBackgroundImage; NextendSmartSliderResponsiveElementBackgroundImage.prototype.customLoad = function (cssProperties) { var parent = this.element.parent(); // The images doesn't have their original(not the real dimension, it is the place // what was taken right after the load) width and height values in the future. // So we will calculate the original size from the parent element size // We will assume that the image was 100% width to its parent this.helper.parentProps = { width: parent.width(), height: parent.height() } this.backgroundImage.afterLoaded().done($.proxy(function () { this._lateInitIMG(cssProperties); }, this)); }; NextendSmartSliderResponsiveElementBackgroundImage.prototype._lateInitIMG = function (cssProperties, e) { if (this.backgroundImage.mode == 'fill' || this.backgroundImage.mode == 'fit' || this.backgroundImage.mode == 'simple') { this.refreshRatio(); if (!this.responsive.slider.parameters.dynamicHeight) { this.setCentered(); } } this._lateInit(cssProperties); }; NextendSmartSliderResponsiveElementBackgroundImage.prototype.afterLoaded = function () { if (this.backgroundImage.mode == 'fill' || this.backgroundImage.mode == 'fit' || this.backgroundImage.mode == 'simple') { this.refreshRatio(); if (!this.responsive.slider.parameters.dynamicHeight) { this.setCentered(); } } }; NextendSmartSliderResponsiveElementBackgroundImage.prototype._resize = function (responsiveDimensions, ratio, timeline, duration) { if (this.responsive.slider.parameters.dynamicHeight) { this.element.css({ width: '100%', height: '100%' }); } else { var slideOuter = responsiveDimensions.slideouter || responsiveDimensions.slide; var slideOuterRatio = slideOuter.width / slideOuter.height; if (this.backgroundImage.mode == 'fill') { if (slideOuterRatio > this.ratio) { this.element.css({ width: '100%', height: 'auto' }); } else { this.element.css({ width: 'auto', height: '100%' }); } } else if (this.backgroundImage.mode == 'fit') { if (slideOuterRatio < this.ratio) { this.element.css({ width: '100%', height: 'auto' }); } else { this.element.css({ width: 'auto', height: '100%' }); } } } NextendSmartSliderResponsiveElement.prototype._resize.call(this, responsiveDimensions, ratio, timeline, duration); }; NextendSmartSliderResponsiveElementBackgroundImage.prototype.refreshRatio = function () { var w = this.element.prop('naturalWidth'), h = this.element.prop('naturalHeight'); this.ratio = w / h; var slideW = this.responsive.responsiveDimensions.startSlideWidth, slideH = this.responsive.responsiveDimensions.startSlideHeight; this.relativeRatio = (slideW / slideH) / this.ratio; }; scope.NextendSmartSliderResponsiveElementBackgroundImage = NextendSmartSliderResponsiveElementBackgroundImage; })(n2, window);
darespaco/parlaproject
wp-content/plugins/smart-slider-3/library/media/js/responsive/ResponsiveElement.js
JavaScript
gpl-2.0
15,871
/* linux/drivers/mtd/onenand/samsung_captivate.h * * Partition Layout for Samsung Captivate * */ struct mtd_partition s3c_partition_info[] = { /*This is partition layout from the oneNAND it SHOULD match the pitfile on the second page of the NAND. It will work if it doesn't but beware to write below the adress 0x01200000 there are the bootloaders. Currently we won't map them, but we should keep that in mind for later things like flashing bootloader from Linux. There is a partition 'efs' starting @ 0x00080000 40 256K pages long, it contains data for the modem like IMSI we don't touch it for now, but we need the data from it, we create a partition for that and copy the data from it. For this you need a image from it and mount it as vfat or copy it on a kernel with rfs support on the phone. Partitions on the lower NAND adresses: 0x00000000 - 0x0003FFFF = first stage bootloader 0x00040000 - 0x0007FFFF = PIT for second stage bootloader 0x00080000 - 0x00A7FFFF = EFS: IMSI and NVRAM for the modem 0x00A80000 - 0x00BBFFFF = second stage bootloader 0x00BC0000 - 0x00CFFFFF = backup of the second stage bootloader (should be loaded if the other fails, unconfirmed!) 0x00D00000 - 0x011FFFFF = PARAM.lfs config the bootloader ######################################################################################### ######################################################################################### ###### NEVER TOUCH THE FIRST 2 256k PAGES! THEY CONTAIN THE FIRST STAGE BOOTLOADER ###### ######################################################################################### #########################################################################################*/ { .name = "boot", .offset = (72*SZ_256K), .size = (30*SZ_256K), //101 }, { .name = "recovery", .offset = (102*SZ_256K), .size = (30*SZ_256K), //131 }, { .name = "system", .offset = (132*SZ_256K), .size = (1000*SZ_256K), //1131 }, { .name = "cache", .offset = (1132*SZ_256K), .size = (277*SZ_256K), //1201 }, { /* we should consider moving this before the modem at the end that would allow us to change the partitions before without loosing ths sensible data*/ .name = "efs", .offset = (1890*SZ_256K), .size = (50*SZ_256K), //1939 }, { /* the modem firmware has to be mtd5 as the userspace samsung ril uses this device hardcoded, but I placed it at the end of the NAND to be able to change the other partition layout without moving it */ .name = "radio", .offset = (1940*SZ_256K), .size = (64*SZ_256K), //2003 }, { .name = "datadata", .offset = (1409*SZ_256K), .size = (461*SZ_256K), //1889 }, { /* The reservoir area is used by Samsung's Block Management Layer (BML) to map good blocks from this reservoir to bad blocks in user partitions. A special tool (bml_over_mtd) is needed to write partition images using bad block mapping. Currently, this is required for flashing the "boot" partition, as Samsung's stock bootloader expects BML partitions.*/ .name = "reservoir", .offset = (2004*SZ_256K), .size = (44*SZ_256K), //2047 }, };
nushor/samsung_aries_ics_OLD
drivers/mtd/onenand/samsung_captivate.h
C
gpl-2.0
3,379
/* * Copyright (C) 2015 TinyCore <http://www.tinycore.net/> * * This program 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 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 General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _WORLDDATABASE_H #define _WORLDDATABASE_H #include "DatabaseWorkerPool.h" #include "MySQLConnection.h" class WorldDatabaseConnection : public MySQLConnection { public: //- Constructors for sync and async connections WorldDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) { } WorldDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { } //- Loads database type specific prepared statements void DoPrepareStatements() override; }; typedef DatabaseWorkerPool<WorldDatabaseConnection> WorldDatabaseWorkerPool; enum WorldDatabaseStatements { /* Naming standard for defines: {DB}_{SEL/INS/UPD/DEL/REP}_{Summary of data changed} When updating more than one field, consider looking at the calling function name for a suiting suffix. */ WORLD_SEL_QUEST_POOLS, WORLD_DEL_CRELINKED_RESPAWN, WORLD_REP_CREATURE_LINKED_RESPAWN, WORLD_SEL_CREATURE_TEXT, WORLD_SEL_SMART_SCRIPTS, WORLD_SEL_SMARTAI_WP, WORLD_DEL_GAMEOBJECT, WORLD_DEL_EVENT_GAMEOBJECT, WORLD_INS_GRAVEYARD_ZONE, WORLD_DEL_GRAVEYARD_ZONE, WORLD_INS_GAME_TELE, WORLD_DEL_GAME_TELE, WORLD_INS_NPC_VENDOR, WORLD_DEL_NPC_VENDOR, WORLD_SEL_NPC_VENDOR_REF, WORLD_UPD_CREATURE_MOVEMENT_TYPE, WORLD_UPD_CREATURE_FACTION, WORLD_UPD_CREATURE_NPCFLAG, WORLD_UPD_CREATURE_POSITION, WORLD_UPD_CREATURE_SPAWN_DISTANCE, WORLD_UPD_CREATURE_SPAWN_TIME_SECS, WORLD_INS_CREATURE_FORMATION, WORLD_INS_WAYPOINT_DATA, WORLD_DEL_WAYPOINT_DATA, WORLD_UPD_WAYPOINT_DATA_POINT, WORLD_UPD_WAYPOINT_DATA_POSITION, WORLD_UPD_WAYPOINT_DATA_WPGUID, WORLD_UPD_WAYPOINT_DATA_ALL_WPGUID, WORLD_SEL_WAYPOINT_DATA_MAX_ID, WORLD_SEL_WAYPOINT_DATA_BY_ID, WORLD_SEL_WAYPOINT_DATA_POS_BY_ID, WORLD_SEL_WAYPOINT_DATA_POS_FIRST_BY_ID, WORLD_SEL_WAYPOINT_DATA_POS_LAST_BY_ID, WORLD_SEL_WAYPOINT_DATA_BY_WPGUID, WORLD_SEL_WAYPOINT_DATA_ALL_BY_WPGUID, WORLD_SEL_WAYPOINT_DATA_MAX_POINT, WORLD_SEL_WAYPOINT_DATA_BY_POS, WORLD_SEL_WAYPOINT_DATA_WPGUID_BY_ID, WORLD_SEL_WAYPOINT_DATA_ACTION, WORLD_SEL_WAYPOINT_SCRIPTS_MAX_ID, WORLD_UPD_CREATURE_ADDON_PATH, WORLD_INS_CREATURE_ADDON, WORLD_DEL_CREATURE_ADDON, WORLD_SEL_CREATURE_ADDON_BY_GUID, WORLD_INS_WAYPOINT_SCRIPT, WORLD_DEL_WAYPOINT_SCRIPT, WORLD_UPD_WAYPOINT_SCRIPT_ID, WORLD_UPD_WAYPOINT_SCRIPT_X, WORLD_UPD_WAYPOINT_SCRIPT_Y, WORLD_UPD_WAYPOINT_SCRIPT_Z, WORLD_UPD_WAYPOINT_SCRIPT_O, WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID, WORLD_DEL_CREATURE, WORLD_SEL_COMMANDS, WORLD_SEL_CREATURE_TEMPLATE, WORLD_SEL_WAYPOINT_SCRIPT_BY_ID, WORLD_SEL_ITEM_TEMPLATE_BY_NAME, WORLD_SEL_CREATURE_BY_ID, WORLD_SEL_GAMEOBJECT_NEAREST, WORLD_SEL_CREATURE_NEAREST, WORLD_SEL_GAMEOBJECT_TARGET, WORLD_INS_CREATURE, WORLD_DEL_GAME_EVENT_CREATURE, WORLD_DEL_GAME_EVENT_MODEL_EQUIP, WORLD_INS_GAMEOBJECT, WORLD_SEL_DISABLES, WORLD_INS_DISABLES, WORLD_DEL_DISABLES, WORLD_UPD_CREATURE_ZONE_AREA_DATA, WORLD_UPD_GAMEOBJECT_ZONE_AREA_DATA, MAX_WORLDDATABASE_STATEMENTS }; #endif
AwkwardDev/TinyCore
src/server/shared/Database/Implementation/WorldDatabase.h
C
gpl-2.0
3,998
<?php return array( array( 'label' => 'Login', 'route' => 'login', 'pages' => array( array( 'label' => 'User Login', 'route' => 'zfcuser/login', ), array( 'label' => 'Auth Login', 'route' => 'login', ), ), ), );
learnsqr/cursoZf2
module/Auth/config/menu.config.php
PHP
gpl-2.0
283
#/*########################################################################## # Copyright (C) 2004-2012 European Synchrotron Radiation Facility # # This file is part of the PyMca X-ray Fluorescence Toolkit developed at # the ESRF by the Software group. # # This file 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 of the License, or (at your option) # any later version. # # This file 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. # #############################################################################*/ __author__ = "V.A. Sole - ESRF Data Analysis" import os import numpy import time try: from PyMca import EdfFile from PyMca import TiffIO except ImportError: print("ArraySave.py is importing EdfFile and TiffIO from local directory") import EdfFile import TiffIO HDF5 = True try: import h5py except ImportError: HDF5 = False DEBUG = 0 def getDate(): localtime = time.localtime() gtime = time.gmtime() #year, month, day, hour, minute, second,\ # week_day, year_day, delta = time.localtime() year = localtime[0] month = localtime[1] day = localtime[2] hour = localtime[3] minute = localtime[4] second = localtime[5] #get the difference against Greenwich delta = hour - gtime[3] return "%4d-%02d-%02dT%02d:%02d:%02d%+02d:00" % (year, month, day, hour, minute, second, delta) def save2DArrayListAsASCII(datalist, filename, labels=None, csv=False, csvseparator=";"): if type(datalist) != type([]): datalist = [datalist] r, c = datalist[0].shape ndata = len(datalist) if os.path.exists(filename): try: os.remove(filename) except OSError: pass if labels is None: labels = [] for i in range(len(datalist)): labels.append("Array_%d" % i) if len(labels) != len(datalist): raise ValueError("Incorrect number of labels") if csv: header = '"row"%s"column"' % csvseparator for label in labels: header += '%s"%s"' % (csvseparator, label) else: header = "row column" for label in labels: header += " %s" % label filehandle = open(filename, 'w+') filehandle.write('%s\n' % header) fileline = "" if csv: for row in range(r): for col in range(c): fileline += "%d" % row fileline += "%s%d" % (csvseparator, col) for i in range(ndata): fileline += "%s%g" % (csvseparator, datalist[i][row, col]) fileline += "\n" filehandle.write("%s" % fileline) fileline = "" else: for row in range(r): for col in range(c): fileline += "%d" % row fileline += " %d" % col for i in range(ndata): fileline += " %g" % datalist[i][row, col] fileline += "\n" filehandle.write("%s" % fileline) fileline = "" filehandle.write("\n") filehandle.close() def save2DArrayListAsEDF(datalist, filename, labels=None, dtype=None): if type(datalist) != type([]): datalist = [datalist] ndata = len(datalist) if os.path.exists(filename): try: os.remove(filename) except OSError: pass if labels is None: labels = [] for i in range(ndata): labels.append("Array_%d" % i) if len(labels) != ndata: raise ValueError("Incorrect number of labels") edfout = EdfFile.EdfFile(filename, access="ab") for i in range(ndata): if dtype is None: edfout.WriteImage({'Title': labels[i]}, datalist[i], Append=1) else: edfout.WriteImage({'Title': labels[i]}, datalist[i].astype(dtype), Append=1) del edfout # force file close def save2DArrayListAsMonochromaticTiff(datalist, filename, labels=None, dtype=None): if type(datalist) != type([]): datalist = [datalist] ndata = len(datalist) if dtype is None: dtype = datalist[0].dtype for i in range(len(datalist)): dtypeI = datalist[i].dtype if dtypeI in [numpy.float32, numpy.float64] or\ dtypeI.str[-2] == 'f': dtype = numpy.float32 break elif dtypeI != dtype: dtype = numpy.float32 break if os.path.exists(filename): try: os.remove(filename) except OSError: pass if labels is None: labels = [] for i in range(ndata): labels.append("Array_%d" % i) if len(labels) != ndata: raise ValueError("Incorrect number of labels") outfileInstance = TiffIO.TiffIO(filename, mode="wb+") for i in range(ndata): if i == 1: outfileInstance = TiffIO.TiffIO(filename, mode="rb+") if dtype is None: data = datalist[i] else: data = datalist[i].astype(dtype) outfileInstance.writeImage(data, info={'Title': labels[i]}) outfileInstance.close() # force file close def openHDF5File(name, mode='a', **kwargs): """ Open an HDF5 file. Valid modes (like Python's file() modes) are: - r Readonly, file must exist - r+ Read/write, file must exist - w Create file, truncate if exists - w- Create file, fail if exists - a Read/write if exists, create otherwise (default) sorted_with is a callable function like python's builtin sorted, or None. """ h5file = h5py.File(name, mode, **kwargs) if h5file.mode != 'r' and len(h5file) == 0: if 'file_name' not in h5file.attrs: attr = 'file_name' txt = "%s" % name dtype = '<S%d' % len(txt) h5file.attrs.create(attr, txt, dtype=dtype) if 'file_time' not in h5file.attrs: attr = 'file_time' txt = "%s" % getDate() dtype = '<S%d' % len(txt) h5file.attrs.create(attr, txt, dtype=dtype) if 'HDF5_version' not in h5file.attrs: attr = 'HDF5_version' txt = "%s" % h5py.version.hdf5_version dtype = '<S%d' % len(txt) h5file.attrs.create(attr, txt, dtype=dtype) if 'HDF5_API_version' not in h5file.attrs: attr = 'HDF5_API_version' txt = "%s" % h5py.version.api_version dtype = '<S%d' % len(txt) h5file.attrs.create(attr, txt, dtype=dtype) if 'h5py_version' not in h5file.attrs: attr = 'h5py_version' txt = "%s" % h5py.version.version dtype = '<S%d' % len(txt) h5file.attrs.create(attr, txt, dtype=dtype) if 'creator' not in h5file.attrs: attr = 'creator' txt = "%s" % 'PyMca' dtype = '<S%d' % len(txt) h5file.attrs.create(attr, txt, dtype=dtype) #if 'format_version' not in self.attrs and len(h5file) == 0: # h5file.attrs['format_version'] = __format_version__ return h5file def getHDF5FileInstanceAndBuffer(filename, shape, buffername="data", dtype=numpy.float32, interpretation=None, compression=None): if not HDF5: raise IOError('h5py does not seem to be installed in your system') if os.path.exists(filename): try: os.remove(filename) except: raise IOError("Cannot overwrite existing file!") hdf = openHDF5File(filename, 'a') entryName = "data" #entry nxEntry = hdf.require_group(entryName) if 'NX_class' not in nxEntry.attrs: nxEntry.attrs['NX_class'] = 'NXentry'.encode('utf-8') elif nxEntry.attrs['NX_class'] != 'NXentry'.encode('utf-8'): #should I raise an error? pass nxEntry['title'] = "PyMca saved 3D Array".encode('utf-8') nxEntry['start_time'] = getDate().encode('utf-8') nxData = nxEntry.require_group('NXdata') if 'NX_class' not in nxData.attrs: nxData.attrs['NX_class'] = 'NXdata'.encode('utf-8') elif nxData.attrs['NX_class'] == 'NXdata'.encode('utf-8'): #should I raise an error? pass if compression: if DEBUG: print("Saving compressed and chunked dataset") chunk1 = int(shape[1] / 10) if chunk1 == 0: chunk1 = shape[1] for i in [11, 10, 8, 7, 5, 4]: if (shape[1] % i) == 0: chunk1 = int(shape[1] / i) break chunk2 = int(shape[2] / 10) if chunk2 == 0: chunk2 = shape[2] for i in [11, 10, 8, 7, 5, 4]: if (shape[2] % i) == 0: chunk2 = int(shape[2] / i) break data = nxData.require_dataset(buffername, shape=shape, dtype=dtype, chunks=(1, chunk1, chunk2), compression=compression) else: #no chunking if DEBUG: print("Saving not compressed and not chunked dataset") data = nxData.require_dataset(buffername, shape=shape, dtype=dtype, compression=None) data.attrs['signal'] = numpy.int32(1) if interpretation is not None: data.attrs['interpretation'] = interpretation.encode('utf-8') for i in range(len(shape)): dim = numpy.arange(shape[i]).astype(numpy.float32) dset = nxData.require_dataset('dim_%d' % i, dim.shape, dim.dtype, dim, chunks=dim.shape) dset.attrs['axis'] = numpy.int32(i + 1) nxEntry['end_time'] = getDate().encode('utf-8') return hdf, data def save3DArrayAsMonochromaticTiff(data, filename, labels=None, dtype=None, mcaindex=-1): ndata = data.shape[mcaindex] if dtype is None: dtype = numpy.float32 if os.path.exists(filename): try: os.remove(filename) except OSError: pass if labels is None: labels = [] for i in range(ndata): labels.append("Array_%d" % i) if len(labels) != ndata: raise ValueError("Incorrect number of labels") outfileInstance = TiffIO.TiffIO(filename, mode="wb+") if mcaindex in [2, -1]: for i in range(ndata): if i == 1: outfileInstance = TiffIO.TiffIO(filename, mode="rb+") if dtype is None: tmpData = data[:, :, i] else: tmpData = data[:, :, i].astype(dtype) outfileInstance.writeImage(tmpData, info={'Title': labels[i]}) if (ndata > 10): print("Saved image %d of %d" % (i + 1, ndata)) elif mcaindex == 1: for i in range(ndata): if i == 1: outfileInstance = TiffIO.TiffIO(filename, mode="rb+") if dtype is None: tmpData = data[:, i, :] else: tmpData = data[:, i, :].astype(dtype) outfileInstance.writeImage(tmpData, info={'Title': labels[i]}) if (ndata > 10): print("Saved image %d of %d" % (i + 1, ndata)) else: for i in range(ndata): if i == 1: outfileInstance = TiffIO.TiffIO(filename, mode="rb+") if dtype is None: tmpData = data[i] else: tmpData = data[i].astype(dtype) outfileInstance.writeImage(tmpData, info={'Title': labels[i]}) if (ndata > 10): print("Saved image %d of %d" % (i + 1, ndata)) outfileInstance.close() # force file close # it should be used to name the data that for the time being is named 'data'. def save3DArrayAsHDF5(data, filename, axes=None, labels=None, dtype=None, mode='nexus', mcaindex=-1, interpretation=None, compression=None): if not HDF5: raise IOError('h5py does not seem to be installed in your system') if (mcaindex == 0) and (interpretation in ["spectrum", None]): #stack of images to be saved as stack of spectra modify = True shape = [data.shape[1], data.shape[2], data.shape[0]] elif (mcaindex != 0) and (interpretation in ["image"]): #stack of spectra to be saved as stack of images modify = True shape = [data.shape[2], data.shape[0], data.shape[1]] else: modify = False shape = data.shape if dtype is None: dtype = data.dtype if mode.lower() in ['nexus', 'nexus+']: #raise IOError, 'NeXus data saving not implemented yet' if os.path.exists(filename): try: os.remove(filename) except: raise IOError("Cannot overwrite existing file!") hdf = openHDF5File(filename, 'a') entryName = "data" #entry nxEntry = hdf.require_group(entryName) if 'NX_class' not in nxEntry.attrs: nxEntry.attrs['NX_class'] = 'NXentry'.encode('utf-8') elif nxEntry.attrs['NX_class'] != 'NXentry'.encode('utf-8'): #should I raise an error? pass nxEntry['title'] = "PyMca saved 3D Array".encode('utf-8') nxEntry['start_time'] = getDate().encode('utf-8') nxData = nxEntry.require_group('NXdata') if ('NX_class' not in nxData.attrs): nxData.attrs['NX_class'] = 'NXdata'.encode('utf-8') elif nxData.attrs['NX_class'] != 'NXdata'.encode('utf-8'): #should I raise an error? pass if modify: if interpretation in ["image", "image".encode('utf-8')]: if compression: if DEBUG: print("Saving compressed and chunked dataset") #risk of taking a 10 % more space in disk chunk1 = int(shape[1] / 10) if chunk1 == 0: chunk1 = shape[1] for i in [11, 10, 8, 7, 5, 4]: if (shape[1] % i) == 0: chunk1 = int(shape[1] / i) break chunk2 = int(shape[2] / 10) for i in [11, 10, 8, 7, 5, 4]: if (shape[2] % i) == 0: chunk2 = int(shape[2] / i) break dset = nxData.require_dataset('data', shape=shape, dtype=dtype, chunks=(1, chunk1, chunk2), compression=compression) else: if DEBUG: print("Saving not compressed and not chunked dataset") #print not compressed -> Not chunked dset = nxData.require_dataset('data', shape=shape, dtype=dtype, compression=None) for i in range(data.shape[-1]): tmp = data[:, :, i:i + 1] tmp.shape = 1, shape[1], shape[2] dset[i, 0:shape[1], :] = tmp print("Saved item %d of %d" % (i + 1, data.shape[-1])) elif 0: #if I do not match the input and output shapes it takes ages #to save the images as spectra. However, it is much faster #when performing spectra operations. dset = nxData.require_dataset('data', shape=shape, dtype=dtype, chunks=(1, shape[1], shape[2])) for i in range(data.shape[1]): # shape[0] chunk = numpy.zeros((1, data.shape[2], data.shape[0]), dtype) for k in range(data.shape[0]): # shape[2] if 0: tmpData = data[k:k + 1] for j in range(data.shape[2]): # shape[1] tmpData.shape = data.shape[1], data.shape[2] chunk[0, j, k] = tmpData[i, j] else: tmpData = data[k:k + 1, i, :] tmpData.shape = -1 chunk[0, :, k] = tmpData print("Saving item %d of %d" % (i, data.shape[1])) dset[i, :, :] = chunk else: #if I do not match the input and output shapes it takes ages #to save the images as spectra. This is a very fast saving, but #the performance is awful when reading. if compression: if DEBUG: print("Saving compressed and chunked dataset") dset = nxData.require_dataset('data', shape=shape, dtype=dtype, chunks=(shape[0], shape[1], 1), compression=compression) else: if DEBUG: print("Saving not compressed and not chunked dataset") dset = nxData.require_dataset('data', shape=shape, dtype=dtype, compression=None) for i in range(data.shape[0]): tmp = data[i:i + 1, :, :] tmp.shape = shape[0], shape[1], 1 dset[:, :, i:i + 1] = tmp else: if compression: if DEBUG: print("Saving compressed and chunked dataset") chunk1 = int(shape[1] / 10) if chunk1 == 0: chunk1 = shape[1] for i in [11, 10, 8, 7, 5, 4]: if (shape[1] % i) == 0: chunk1 = int(shape[1] / i) break chunk2 = int(shape[2] / 10) if chunk2 == 0: chunk2 = shape[2] for i in [11, 10, 8, 7, 5, 4]: if (shape[2] % i) == 0: chunk2 = int(shape[2] / i) break if DEBUG: print("Used chunk size = (1, %d, %d)" % (chunk1, chunk2)) dset = nxData.require_dataset('data', shape=shape, dtype=dtype, chunks=(1, chunk1, chunk2), compression=compression) else: if DEBUG: print("Saving not compressed and notchunked dataset") dset = nxData.require_dataset('data', shape=shape, dtype=dtype, compression=None) tmpData = numpy.zeros((1, data.shape[1], data.shape[2]), data.dtype) for i in range(data.shape[0]): tmpData[0:1] = data[i:i + 1] dset[i:i + 1] = tmpData[0:1] print("Saved item %d of %d" % (i + 1, data.shape[0])) dset.attrs['signal'] = "1".encode('utf-8') if interpretation is not None: dset.attrs['interpretation'] = interpretation.encode('utf-8') axesAttribute = [] for i in range(len(shape)): if axes is None: dim = numpy.arange(shape[i]).astype(numpy.float32) dimlabel = 'dim_%d' % i elif axes[i] is not None: dim = axes[i] try: dimlabel = "%s" % labels[i] except: dimlabel = 'dim_%d' % i else: dim = numpy.arange(shape[i]).astype(numpy.float32) dimlabel = 'dim_%d' % i axesAttribute.append(dimlabel) adset = nxData.require_dataset(dimlabel, dim.shape, dim.dtype, compression=None) adset[:] = dim[:] adset.attrs['axis'] = i + 1 dset.attrs['axes'] = (":".join(axesAttribute)).encode('utf-8') nxEntry['end_time'] = getDate().encode('utf-8') if mode.lower() == 'nexus+': #create link g = h5py.h5g.open(hdf.fid, '/'.encode('utf-8')) g.link('/data/NXdata/data'.encode('utf-8'), '/data/data'.encode('utf-8'), h5py.h5g.LINK_HARD) elif mode.lower() == 'simplest': if os.path.exists(filename): try: os.remove(filename) except: raise IOError("Cannot overwrite existing file!") hdf = h5py.File(filename, 'a') if compression: hdf.require_dataset('data', shape=shape, dtype=dtype, data=data, chunks=(1, shape[1], shape[2]), compression=compression) else: hdf.require_dataset('data', shape=shape, data=data, dtype=dtype, compression=None) else: if os.path.exists(filename): try: os.remove(filename) except: raise IOError("Cannot overwrite existing file!") shape = data.shape dtype = data.dtype hdf = h5py.File(filename, 'a') dataGroup = hdf.require_group('data') dataGroup.require_dataset('data', shape=shape, dtype=dtype, data=data, chunks=(1, shape[1], shape[2])) hdf.flush() hdf.close() def main(): a = numpy.arange(1000000.) a.shape = 20, 50, 1000 save3DArrayAsHDF5(a, '/test.h5', mode='nexus+', interpretation='image') getHDF5FileInstanceAndBuffer('/test2.h5', (100, 100, 100)) print("Date String = ", getDate()) if __name__ == "__main__": main()
tonnrueter/pymca_devel
PyMca/ArraySave.py
Python
gpl-2.0
23,377
<?php function printPopupItems($itemArray,$selectedItem = NULL,$mode = "string",$extras = NULL,$returnMode = "print") { $returnedText = ""; if ($extras && $extras[start]) { $returnedText .= "<option value='" . $extras[start][0] . "'" . (($selectedID == $extras[start][0]) ? "selected":"") . ">" . $extras[start][1] . "\n"; } else { if (!$selectedItem) { $returnedText .= "<option value='null' selected>- Select -\n"; } else { $returnedText .= "<option value='null'>- Select -\n"; } } $arrayKeys = array_keys($itemArray); $keyCount = count($arrayKeys); for ($i=0; $i < $keyCount; $i++) { if ($itemArray[$arrayKeys[$i]]) { if ($mode == "string") { $returnedText .= "<option value='" . $itemArray[$arrayKeys[$i]] . "'" . (($itemArray[$arrayKeys[$i]] == $selectedItem) ? " selected>":">") . $itemArray[$arrayKeys[$i]] . "\n"; } else if ($mode == "key") { $returnedText .= "<option value='" . $arrayKeys[$i] . "'" . (($arrayKeys[$i] == $selectedItem) ? " selected>":">") . $itemArray[$arrayKeys[$i]] . "\n"; } else if ($mode == "int") { $returnedText .= "<option value='$i'" . (($i == $selectedItem) ? " selected>":">") . $itemArray[$arrayKeys[$i]] . "\n"; } else { } } } if ($extras && $extras[end]) { $returnedText .= "<option value='" . $extras[end][0] . "'" . (($selectedID == $extras[end][0]) ? "selected":"") . ">" . $extras[end][1] . "\n"; } if ($returnMode == "print") { print $returnedText; } else { return $returnedText; } } function printKeyedPopupItems($itemArray,$selectedItem='-999',$allowNull=false,$returnMode="print") { // Depreciated. Convert to using printPopupItems in "key" mode. $returnedText = ""; if ($allowNull) { if (!$selectedItem) { $returnedText .= "<option value='null'".(($selectedItem==NULL)?" selected":"").">- Select -\n"; } } foreach ($itemArray as $key => $value) { $returnedText .= "<option value='$key'".(($selectedItem==$key)?" selected":"").">$value\n"; } if ($returnMode == "print") { print $returnedText; } else { return $returnedText; } } function closeWindow($reload) { // Useful if you want a reloaded window to close itself and reload the opening window. print "<html> <SCRIPT type='text/javascript' language='Javascript'> " . (($reload) ? "opener.location.reload();":"") . " self.close(); </SCRIPT> </html>"; } function tabs($number) { // This function is merely cosmetic. If you want code to maintain its readability when // it is spit out of the application you might want to add some tabs in there. $tabs = ""; for ($i=0; $i < $number; $i++) { $tabs .= "\t"; } return $tabs; } function redirectToPage($page) { print "<script type='text/javascript' language='Javascript'> window.location.href = \"http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/". $page . "\";\n </script>"; } function createShadowedBox($titleLinkArray) { global $imageLoc; print "<table width='98%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='12' valign='bottom'><img src='$imageLoc/shadowedLines/tl.gif' width='12' height='11'></td>\n"; if (!$titleLinkArray) { print "<td background='$imageLoc/shadowedLines/t.gif'><img src='$imageLoc/spacer.gif' height='11' width='11'></td>\n"; } else { print "<td> <!-- Title table --> <table width='100%' border='0' cellpadding='0' cellspacing='0'> <tr> <td></td> <td width='12' valign='bottom'><img src='$imageLoc/shadowedLines/tl.gif' width='12' height='11'></td> <td background='$imageLoc/shadowedLines/t.gif'><img src='$imageLoc/shadowedLines/t.gif' width='12' height='11'></td> <td width='12' valign='bottom'><img src='$imageLoc/shadowedLines/tr.gif' width='12' height='11'></td> <td></td> </tr> <tr> <td></td> <td width='12' background='$imageLoc/shadowedLines/l.gif'><img src='$imageLoc/shadowedLines/l.gif' width='12' height='11'></td> <td bgcolor='white'><span class='defaultText'><nobr><img src='$imageLoc/spacer.gif' width='5' height='9'>\n"; for($i=0; $i < count($titleLinkArray); $i++) { $link = $titleLinkArray[$i][1]; $title = $titleLinkArray[$i][0]; print "<a href='$link'>$title</a>"; if ($i < (count($titleLinkArray) - 1)) { print " >> "; } } print "<img src='$imageLoc/spacer.gif' width='5' height='9'></nobr></td> <td width='12' background='$imageLoc/shadowedLines/r.gif'><img src='$imageLoc/shadowedLines/r.gif' width='12' height='11'></td> <td></td> </tr> <tr> <td width='12' height='11'><img src='$imageLoc/shadowedLines/t.gif' width='12' height='11'></td> <td width='12' height='11'><img src='$imageLoc/shadowedLines/rc.gif' width='12' height='11'></td> <td bgcolor='white'><img src='$imageLoc/spacer.gif' width='10' height='11'></td> <td width='12' height='11'><img src='$imageLoc/shadowedLines/lc.gif' width='12' height='11'></td> <td width='100%' background='$imageLoc/shadowedLines/t.gif' valign='bottom'><img src='$imageLoc/shadowedLines/t.gif' width='12' height='11'></td> </tr> </table> </td>\n"; } print "<td width='12' valign='bottom'><img src='$imageLoc/shadowedLines/tr.gif' width='12' height='11'></td> </tr> <tr> <td width='12' background='$imageLoc/shadowedLines/l.gif'><img src='$imageLoc/shadowedLines/l.gif' width='12' height='11'></td> <td>"; } function endShadowedBox() { global $imageLoc; print "</td> <td width='12' background='$imageLoc/shadowedLines/r.gif'><img src='$imageLoc/shadowedLines/r.gif' width='12' height='11'></td> </tr> <tr> <td width='12' height='11'><img src='$imageLoc/shadowedLines/bl.gif' width='12' height='11'></td> <td background='$imageLoc/shadowedLines/b.gif'><img src='$imageLoc/shadowedLines/b.gif' width='12' height='11'></td> <td width='12' height='11'><img src='$imageLoc/shadowedLines/br.gif' width='12' height='11'></td> </tr> </table> </center>"; } function processCSSFile($inputFile) { // Takes a CSS file and converts any %image% links into their appropriate location. if ($inputFile) { $newContent = "<style type='text/css'>\n"; $cssFile = file_get_contents($GLOBALS["appServerRoot"] . $inputFile); if ($cssFile != null) { $newContent .= preg_replace("/\\%([a-zA-Z0-9\.\-\_\/]+)\\%/e", "phImage(\"\\1\")",$cssFile); $newContent .= "</style>"; return $newContent; } else { return null; } } else { return null; } } function phImage($imageName,$local = false) { // Checks with the system cache of registered locations for an image and returns the path // to that image. This is useful if you don't want to have to worry about entering URLs // for images everywhere AND if you intend to mirgrate your application to other machines. global $appRoot; $found = false; if (array_key_exists("ImageCache",$GLOBALS["registeredLocations"])) { if (array_key_exists($imageName,$GLOBALS["registeredLocations"]["ImagesCache"])) { $found = true; return $GLOBALS["registeredLocations"]["ImagesCache"][$imageName]; } } if (!$found) { $locationCount = count($GLOBALS["registeredLocations"]["Images"]); for ($i=0; $i < $locationCount; $i++) { if (file_exists($GLOBALS["appServerRoot"] . "/" . $GLOBALS["registeredLocations"]["Images"][$i] . "/" . $imageName)) { if (array_key_exists("ImagesCache",$GLOBALS["registeredLocations"])) { $GLOBALS["registeredLocations"]["ImagesCache"][$imageName] = $GLOBALS["hostRoot"] . $appRoot . "/" . $GLOBALS["registeredLocations"]["Images"][$i] . "/" . $imageName; } else { $GLOBALS["registeredLocations"]["ImagesCache"] = array(); $GLOBALS["registeredLocations"]["ImagesCache"][$imageName] = $GLOBALS["hostRoot"] . $appRoot . "/" . $GLOBALS["registeredLocations"]["Images"][$i] . "/" . $imageName; } $found = true; return $GLOBALS["hostRoot"] . $appRoot . "/" . $GLOBALS["registeredLocations"]["Images"][$i] . "/" . $imageName; } } // If cannot find image. if (!$found) { return "null.gif"; } } } function cleanRequest($inputArray) { // Use this function to clean up text coming from forms. Escpecially unicode and UTF-8 encoded text. $convmap = array(0xFF, 0x2FFFF, 0, 0xFFFF); $aKeys = array_keys($inputArray); $aKeysCount = count($aKeys); for($i=0; $i < $aKeysCount; $i++) { $inputArray[$aKeys[$i]] = mb_decode_numericentity(urldecode(stripSlashes($inputArray[$aKeys[$i]])),$convmap,"UTF-8"); } return $inputArray; } function phIsNull($value) { if (is_null($value) || $value == "null" || $value == "") { return true; } else { return false; } } ?>
Hackmancoltaire/photon
functions/uiFunctions.php
PHP
gpl-2.0
8,546
/* * Copyright (C) 2005,2006,2007 MaNGOS <http://www.mangosproject.org/> * * This program 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 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /// \addtogroup mangosd /// @{ /// \file #ifndef __CLIRUNNABLE_H #define __CLIRUNNABLE_H /// Command Line Interface handling thread class CliRunnable : public ZThread::Runnable { public: void run(); }; #endif /// @}
elitak/noxserver
src/noxserverd/CliRunnable.h
C
gpl-2.0
1,059
<?php /* core/themes/classy/templates/system/form-element.html.twig */ class __TwigTemplate_fcea8158c2505a455713fde44c18ebf6a12ca7d19c4e86df55b920d5ed51dc1b extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 49 $context["classes"] = array(0 => "form-item", 1 => ("form-type-" . \Drupal\Component\Utility\Html::getClass((isset($context["type"]) ? $context["type"] : null))), 2 => ("form-item-" . \Drupal\Component\Utility\Html::getClass((isset($context["name"]) ? $context["name"] : null))), 3 => ((!twig_in_filter((isset($context["title_display"]) ? $context["title_display"] : null), array(0 => "after", 1 => "before"))) ? ("form-no-label") : ("")), 4 => ((((isset($context["disabled"]) ? $context["disabled"] : null) == "disabled")) ? ("form-disabled") : (""))); // line 58 $context["description_classes"] = array(0 => "description", 1 => ((((isset($context["description_display"]) ? $context["description_display"] : null) == "invisible")) ? ("visually-hidden") : (""))); // line 63 echo "<div"; echo twig_drupal_escape_filter($this->env, $this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "addClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "html", null, true); echo "> "; // line 64 if (twig_in_filter((isset($context["label_display"]) ? $context["label_display"] : null), array(0 => "before", 1 => "invisible"))) { // line 65 echo " "; echo twig_drupal_escape_filter($this->env, (isset($context["label"]) ? $context["label"] : null), "html", null, true); echo " "; } // line 67 echo " "; if ((!twig_test_empty((isset($context["prefix"]) ? $context["prefix"] : null)))) { // line 68 echo " <span class=\"field-prefix\">"; echo twig_drupal_escape_filter($this->env, (isset($context["prefix"]) ? $context["prefix"] : null), "html", null, true); echo "</span> "; } // line 70 echo " "; if ((((isset($context["description_display"]) ? $context["description_display"] : null) == "before") && $this->getAttribute((isset($context["description"]) ? $context["description"] : null), "content", array()))) { // line 71 echo " <div"; echo twig_drupal_escape_filter($this->env, $this->getAttribute((isset($context["description"]) ? $context["description"] : null), "attributes", array()), "html", null, true); echo "> "; // line 72 echo twig_drupal_escape_filter($this->env, $this->getAttribute((isset($context["description"]) ? $context["description"] : null), "content", array()), "html", null, true); echo " </div> "; } // line 75 echo " "; echo twig_drupal_escape_filter($this->env, (isset($context["children"]) ? $context["children"] : null), "html", null, true); echo " "; // line 76 if ((!twig_test_empty((isset($context["suffix"]) ? $context["suffix"] : null)))) { // line 77 echo " <span class=\"field-suffix\">"; echo twig_drupal_escape_filter($this->env, (isset($context["suffix"]) ? $context["suffix"] : null), "html", null, true); echo "</span> "; } // line 79 echo " "; if (((isset($context["label_display"]) ? $context["label_display"] : null) == "after")) { // line 80 echo " "; echo twig_drupal_escape_filter($this->env, (isset($context["label"]) ? $context["label"] : null), "html", null, true); echo " "; } // line 82 echo " "; if ((twig_in_filter((isset($context["description_display"]) ? $context["description_display"] : null), array(0 => "after", 1 => "invisible")) && $this->getAttribute((isset($context["description"]) ? $context["description"] : null), "content", array()))) { // line 83 echo " <div"; echo twig_drupal_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["description"]) ? $context["description"] : null), "attributes", array()), "addClass", array(0 => (isset($context["description_classes"]) ? $context["description_classes"] : null)), "method"), "html", null, true); echo "> "; // line 84 echo twig_drupal_escape_filter($this->env, $this->getAttribute((isset($context["description"]) ? $context["description"] : null), "content", array()), "html", null, true); echo " </div> "; } // line 87 echo "</div> "; } public function getTemplateName() { return "core/themes/classy/templates/system/form-element.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 95 => 87, 89 => 84, 84 => 83, 81 => 82, 75 => 80, 72 => 79, 66 => 77, 64 => 76, 59 => 75, 53 => 72, 48 => 71, 45 => 70, 39 => 68, 36 => 67, 30 => 65, 28 => 64, 23 => 63, 21 => 58, 19 => 49,); } }
ec-mdecker/drupal8
sites/default/files/php/twig/1#fc#ea#8158c2505a455713fde44c18ebf6a12ca7d19c4e86df55b920d5ed51dc1b/28637a905b5707e00f1fa77b8f9b478c02a1349791b5d934658e52d2c7312555.php
PHP
gpl-2.0
5,484
<?php /** * @version $Id: edit_params.php 21529 2011-06-11 22:17:15Z chdemko $ * @package Joomla.Administrator * @subpackage Templates.hathor * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @since 1.6 */ // No direct access. defined('_JEXEC') or die; $fieldSets = $this->form->getFieldsets('params'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel',JText::_($fieldSet->label), $name.'-params'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>'; endif; ?> <fieldset class="panelform"> <legend class="element-invisible"><?php echo JText::_($fieldSet->label); ?></legend> <ul class="adminformlist"> <?php foreach ($this->form->getFieldset($name) as $field) : ?> <li><?php echo $field->label; ?> <?php echo $field->input; ?></li> <?php endforeach; ?> </ul> </fieldset> <?php endforeach; ?>
scanalesespinoza/battlebit
administrator/templates/hathor/html/com_weblinks/weblink/edit_params.php
PHP
gpl-2.0
1,090
/* ***** BEGIN LICENSE BLOCK ***** * Source last modified: $Id: symbian_string.h,v 1.2 2006/08/23 00:41:11 gashish Exp $ * * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, * are subject to the current version of the RealNetworks Public * Source License (the "RPSL") available at * http://www.helixcommunity.org/content/rpsl unless you have licensed * the file under the current version of the RealNetworks Community * Source License (the "RCSL") available at * http://www.helixcommunity.org/content/rcsl, in which case the RCSL * will apply. You may also obtain the license terms directly from * RealNetworks. You may not use this file except in compliance with * the RPSL or, if you have a valid RCSL with RealNetworks applicable * to this file, the RCSL. Please see the applicable RPSL or RCSL for * the rights, obligations and limitations governing use of the * contents of the file. * * Alternatively, the contents of this file may be used under the * terms of the GNU General Public License Version 2 or later (the * "GPL") in which case the provisions of the GPL are applicable * instead of those above. If you wish to allow use of your version of * this file only under the terms of the GPL, and not to allow others * to use your version of this file under the terms of either the RPSL * or RCSL, indicate your decision by deleting the provisions above * and replace them with the notice and other provisions required by * the GPL. If you do not delete the provisions above, a recipient may * use your version of this file under the terms of any one of the * RPSL, the RCSL or the GPL. * * This file is part of the Helix DNA Technology. RealNetworks is the * developer of the Original Code and owns the copyrights in the * portions it created. * * This file, and the files included with this file, is distributed * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET * ENJOYMENT OR NON-INFRINGEMENT. * * Technology Compatibility Kit Test Suite(s) Location: * http://www.helixcommunity.org/content/tck * * Contributor(s): * * ***** END LICENSE BLOCK ***** */ #ifndef _SYMBIAN_STRINGS_H_ #define _SYMBIAN_STRINGS_H_ #include <e32std.h> #include <e32base.h> #include <charconv.h> #include <utf.h> #include "hxassert.h" #include "hxstring.h" #include "hxbuffer.h" namespace CHXSymbianString { void StringToDes(const CHXString& in, TDes& out); void DesToString(const TDesC& in, CHXString& out); CHXString DescToString(const TDesC& in); CHXString DescToString(const TDesC& desc); HBufC* StringToHBuf(const CHXString& s); HBufC* AllocTextL(const CHXString& str); } #endif //_SYMBIAN_STRINGS_H_
muromec/qtopia-ezx
src/3rdparty/libraries/helix/src/common/system/pub/platform/symbian/symbian_string.h
C
gpl-2.0
2,994
/* * JFFS2 -- Journalling Flash File System, Version 2. * * Copyright (C) 2001, 2002 Red Hat, Inc. * * Created by David Woodhouse <dwmw2@cambridge.redhat.com> * * For licensing information, see the file 'LICENCE' in the * jffs2 directory. * * $Id: jffs2.h,v 1.25 2002/08/20 21:37:27 dwmw2 Exp $ * */ #ifndef __LINUX_JFFS2_H__ #define __LINUX_JFFS2_H__ #define JFFS2_SUPER_MAGIC 0x72b6 /* Values we may expect to find in the 'magic' field */ #define JFFS2_OLD_MAGIC_BITMASK 0x1984 #define JFFS2_MAGIC_BITMASK 0x1985 #define KSAMTIB_CIGAM_2SFFJ 0x5981 /* For detecting wrong-endian fs */ #define JFFS2_EMPTY_BITMASK 0xffff #define JFFS2_DIRTY_BITMASK 0x0000 /* We only allow a single char for length, and 0xFF is empty flash so we don't want it confused with a real length. Hence max 254. */ #define JFFS2_MAX_NAME_LEN 254 /* How small can we sensibly write nodes? */ #define JFFS2_MIN_DATA_LEN 128 #define JFFS2_COMPR_NONE 0x00 #define JFFS2_COMPR_ZERO 0x01 #define JFFS2_COMPR_RTIME 0x02 #define JFFS2_COMPR_RUBINMIPS 0x03 #define JFFS2_COMPR_COPY 0x04 #define JFFS2_COMPR_DYNRUBIN 0x05 #define JFFS2_COMPR_ZLIB 0x06 /* Compatibility flags. */ #define JFFS2_COMPAT_MASK 0xc000 /* What do to if an unknown nodetype is found */ #define JFFS2_NODE_ACCURATE 0x2000 /* INCOMPAT: Fail to mount the filesystem */ #define JFFS2_FEATURE_INCOMPAT 0xc000 /* ROCOMPAT: Mount read-only */ #define JFFS2_FEATURE_ROCOMPAT 0x8000 /* RWCOMPAT_COPY: Mount read/write, and copy the node when it's GC'd */ #define JFFS2_FEATURE_RWCOMPAT_COPY 0x4000 /* RWCOMPAT_DELETE: Mount read/write, and delete the node when it's GC'd */ #define JFFS2_FEATURE_RWCOMPAT_DELETE 0x0000 #define JFFS2_NODETYPE_DIRENT (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 1) #define JFFS2_NODETYPE_INODE (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 2) #define JFFS2_NODETYPE_CLEANMARKER (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3) #define JFFS2_NODETYPE_PADDING (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 4) // Maybe later... //#define JFFS2_NODETYPE_CHECKPOINT (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3) //#define JFFS2_NODETYPE_OPTIONS (JFFS2_FEATURE_RWCOMPAT_COPY | JFFS2_NODE_ACCURATE | 4) #define JFFS2_INO_FLAG_PREREAD 1 /* Do read_inode() for this one at mount time, don't wait for it to happen later */ #define JFFS2_INO_FLAG_USERCOMPR 2 /* User has requested a specific compression type */ /* These can go once we've made sure we've caught all uses without byteswapping */ typedef struct { uint32_t v32; } __attribute__((packed)) jint32_t; typedef struct { uint16_t v16; } __attribute__((packed)) jint16_t; #define JFFS2_NATIVE_ENDIAN #if defined(JFFS2_NATIVE_ENDIAN) #define cpu_to_je16(x) ((jint16_t){x}) #define cpu_to_je32(x) ((jint32_t){x}) #define je16_to_cpu(x) ((x).v16) #define je32_to_cpu(x) ((x).v32) #elif defined(JFFS2_BIG_ENDIAN) #define cpu_to_je16(x) ((jint16_t){cpu_to_be16(x)}) #define cpu_to_je32(x) ((jint32_t){cpu_to_be32(x)}) #define je16_to_cpu(x) (be16_to_cpu(x.v16)) #define je32_to_cpu(x) (be32_to_cpu(x.v32)) #elif defined(JFFS2_LITTLE_ENDIAN) #define cpu_to_je16(x) ((jint16_t){cpu_to_le16(x)}) #define cpu_to_je32(x) ((jint32_t){cpu_to_le32(x)}) #define je16_to_cpu(x) (le16_to_cpu(x.v16)) #define je32_to_cpu(x) (le32_to_cpu(x.v32)) #else #error wibble #endif struct jffs2_unknown_node { /* All start like this */ jint16_t magic; jint16_t nodetype; jint32_t totlen; /* So we can skip over nodes we don't grok */ jint32_t hdr_crc; } __attribute__((packed)); struct jffs2_raw_dirent { jint16_t magic; jint16_t nodetype; /* == JFFS_NODETYPE_DIRENT */ jint32_t totlen; jint32_t hdr_crc; jint32_t pino; jint32_t version; jint32_t ino; /* == zero for unlink */ jint32_t mctime; uint8_t nsize; uint8_t type; uint8_t unused[2]; jint32_t node_crc; jint32_t name_crc; uint8_t name[0]; } __attribute__((packed)); /* The JFFS2 raw inode structure: Used for storage on physical media. */ /* The uid, gid, atime, mtime and ctime members could be longer, but are left like this for space efficiency. If and when people decide they really need them extended, it's simple enough to add support for a new type of raw node. */ struct jffs2_raw_inode { jint16_t magic; /* A constant magic number. */ jint16_t nodetype; /* == JFFS_NODETYPE_INODE */ jint32_t totlen; /* Total length of this node (inc data, etc.) */ jint32_t hdr_crc; jint32_t ino; /* Inode number. */ jint32_t version; /* Version number. */ jint32_t mode; /* The file's type or mode. */ jint16_t uid; /* The file's owner. */ jint16_t gid; /* The file's group. */ jint32_t isize; /* Total resultant size of this inode (used for truncations) */ jint32_t atime; /* Last access time. */ jint32_t mtime; /* Last modification time. */ jint32_t ctime; /* Change time. */ jint32_t offset; /* Where to begin to write. */ jint32_t csize; /* (Compressed) data size */ jint32_t dsize; /* Size of the node's data. (after decompression) */ uint8_t compr; /* Compression algorithm used */ uint8_t usercompr; /* Compression algorithm requested by the user */ jint16_t flags; /* See JFFS2_INO_FLAG_* */ jint32_t data_crc; /* CRC for the (compressed) data. */ jint32_t node_crc; /* CRC for the raw inode (excluding data) */ // uint8_t data[dsize]; } __attribute__((packed)); union jffs2_node_union { struct jffs2_raw_inode i; struct jffs2_raw_dirent d; struct jffs2_unknown_node u; }; #endif /* __LINUX_JFFS2_H__ */
rickgaiser/linux-2.4.17-ps2
include/linux/jffs2.h
C
gpl-2.0
5,623
namespace MillionGamePlayer { using System; [Serializable] public sealed class Statistics { private int jokersUsed; private int rightAnswers; private int wrongAnswers; public int RightAnswers { get { return rightAnswers; } internal set { rightAnswers = value; } } public int WrongAnswers { get { return wrongAnswers; } internal set { wrongAnswers = value; } } public int Answers { get { return rightAnswers + wrongAnswers; } } public int JokersUsed { get { return jokersUsed; } internal set { jokersUsed = value; } } } }
learningmedia/EasyMillionGame
src/MillonGamePlayer/Statistics.cs
C#
gpl-2.0
752
/* This file handles the loading of init.txt This file is part of Liberal Crime Squad. Liberal Crime Squad 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 of the License, or (at your option) any later version. Liberal Crime Squad 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 Liberal Crime Squad; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "../includes05.h" #include "../constStringinitfile.h" #include <algorithm> #include <fstream> void setconfigoption(std::string name, std::string value) { transform(name.begin(), name.end(), name.begin(), ::tolower); transform(value.begin(), value.end(), value.begin(), ::tolower); if (name == tag_pagekeys) { if (value == tag_azerty) { interface_pgup = '.'; interface_pgdn = '/'; } else if (value == tag_brackets) { interface_pgup = '['; interface_pgdn = ']'; } else if (value == tag_page) { interface_pgup = -61; interface_pgdn = -55; } } else if (name == tag_autosave) { if (stringtobool(value) == 0) title_screen::getInstance().setautosaveoption(false); } else if (name == tag_fixcleartype) // this setting is only true if set in the file AND running Windows XP or later, otherwise it's false { if (stringtobool(value) == 1) { // it's set to true in init.txt, so now we check if we're running Windows XP or later, since earlier versions don't have ClearType OSVERSIONINFO osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFO)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&osvi); fixcleartype = ((osvi.dwMajorVersion > 5) || ((osvi.dwMajorVersion == 5) && (osvi.dwMinorVersion >= 1))); // Windows XP is version 5.1 } } } #include <common\\consolesupport.h> void loadinitfile() { std::fstream file; if (LCSOpenFileCPP(CONST_INIT_TXT, std::ios::in, LCSIO_PRE_HOME, file)) { std::string str; int posequal; while (getline(file, str)) { str.erase(std::remove(str.begin(), str.end(), '\r'), str.end()); str.erase(std::remove(str.begin(), str.end(), '\n'), str.end()); str.erase(std::remove(str.begin(), str.end(), ' '), str.end()); str.erase(std::remove(str.begin(), str.end(), '\t'), str.end()); if (!len(str)) continue; if (str[0] == '#') continue; if (str[0] == ';') continue; posequal = str.find('='); if (posequal == (int)string::npos) continue; setconfigoption(str.substr(0, posequal), str.substr(posequal + 1)); } } file.close(); begin_cleartype_fix(); // won't do anything unless fixcleartype is true }
King-Drake/Liberal-Crime-Squad
src/title/initfile.cpp
C++
gpl-2.0
3,031
/* Theme Name: mimosa Adding support for language written in a Right To Left (RTL) direction is easy - it's just a matter of overwriting all the horizontal positioning attributes of your CSS stylesheet in a separate stylesheet file named rtl.css. http://codex.wordpress.org/Right_to_Left_Language_Support */ /* body { direction: rtl; unicode-bidi: embed; } */
rememberlenny/Mimosa
wp-content/themes/mimosa/rtl.css
CSS
gpl-2.0
365
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_51) on Tue Jan 24 09:57:51 EST 2017 --> <title>Index (Affdex Android SDK Java Documentation)</title> <meta name="date" content="2017-01-24"> <link rel="stylesheet" type="text/css" href="./stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Index (Affdex Android SDK Java Documentation)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="./overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li><a href="./overview-tree.html">Tree</a></li> <li><a href="./deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="./help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><em><img src="./affectiva.png"></em></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="./index.html?index-all.html" target="_top">Frames</a></li> <li><a href="index-all.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="./allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="contentContainer"><a href="#_A_">A</a>&nbsp;<a href="#_C_">C</a>&nbsp;<a href="#_D_">D</a>&nbsp;<a href="#_E_">E</a>&nbsp;<a href="#_F_">F</a>&nbsp;<a href="#_G_">G</a>&nbsp;<a href="#_I_">I</a>&nbsp;<a href="#_L_">L</a>&nbsp;<a href="#_M_">M</a>&nbsp;<a href="#_O_">O</a>&nbsp;<a href="#_P_">P</a>&nbsp;<a href="#_Q_">Q</a>&nbsp;<a href="#_R_">R</a>&nbsp;<a href="#_S_">S</a>&nbsp;<a href="#_T_">T</a>&nbsp;<a href="#_V_">V</a>&nbsp;<a name="_A_"> <!-- --> </a> <h2 class="title">A</h2> <dl> <dt><a href="./com/affectiva/android/affdex/sdk/AffdexException.html" title="class in com.affectiva.android.affdex.sdk"><span class="strong">AffdexException</span></a> - Exception in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/AffdexException.html#AffdexException(java.lang.String)">AffdexException(String)</a></span> - Constructor for exception com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/AffdexException.html" title="class in com.affectiva.android.affdex.sdk">AffdexException</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/AffdexException.html#AffdexException(java.lang.String, java.lang.Throwable)">AffdexException(String, Throwable)</a></span> - Constructor for exception com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/AffdexException.html" title="class in com.affectiva.android.affdex.sdk">AffdexException</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#appearance">appearance</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> </dl> <a name="_C_"> <!-- --> </a> <h2 class="title">C</h2> <dl> <dt><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">CameraDetector</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A Detector for processing a stream of frames received from the device's camera</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#CameraDetector(Context, com.affectiva.android.affdex.sdk.detector.CameraDetector.CameraType, SurfaceView, int, com.affectiva.android.affdex.sdk.detector.Detector.FaceDetectorMode)">CameraDetector(Context, CameraDetector.CameraType, SurfaceView, int, Detector.FaceDetectorMode)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">Creates a CameraDetector.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#CameraDetector(Context, com.affectiva.android.affdex.sdk.detector.CameraDetector.CameraType, SurfaceView)">CameraDetector(Context, CameraDetector.CameraType, SurfaceView)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">Creates a CameraDetector.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraEventListener.html" title="interface in com.affectiva.android.affdex.sdk.detector"><span class="strong">CameraDetector.CameraEventListener</span></a> - Interface in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Reports events related to the handling of the Android Camera by <code>CameraDetector</code>.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraType.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">CameraDetector.CameraType</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">This enumeration is used to specify which camera to use during recording.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#colorFormat">colorFormat</a></span> - Variable in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a> - package com.affectiva.android.affdex.sdk</dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a> - package com.affectiva.android.affdex.sdk.detector</dt> <dd>&nbsp;</dd> </dl> <a name="_D_"> <!-- --> </a> <h2 class="title">D</h2> <dl> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Detector</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Welcome to the Affdex SDK for Android! With this SDK, your app will be able to detect facial expressions using the built-in camera, or via a file on your device.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceDetectorMode.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">Detector.FaceDetectorMode</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceListener.html" title="interface in com.affectiva.android.affdex.sdk.detector"><span class="strong">Detector.FaceListener</span></a> - Interface in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Detector.ImageListener.html" title="interface in com.affectiva.android.affdex.sdk.detector"><span class="strong">Detector.ImageListener</span></a> - Interface in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">This interface provides methods that the Detector uses to communicate to users of the class.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#disableAnalytics()">disableAnalytics()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Disable the SDK from sending anonymous frame based events to Affectiva.</div> </dd> </dl> <a name="_E_"> <!-- --> </a> <h2 class="title">E</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#emojis">emojis</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#emotions">emotions</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#enableAnalytics()">enableAnalytics()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Enable the SDK to send anonymous frame based events to Affectiva.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#expressions">expressions</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> </dl> <a name="_F_"> <!-- --> </a> <h2 class="title">F</h2> <dl> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Represents a face found within a processed <code>Frame</code></div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#Face()">Face()</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.AGE.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.AGE</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Enumerates the age ranges which the SDK is capable of identifying for found faces.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.Appearance</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.EMOJI</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Enumerates the emojis that can be returned by <code>Face.emojis.getDominantEmoji()</code>.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.Emojis</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A container for emoji metric scores.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.Emotions</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A container for emotion metric scores.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.ETHNICITY.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.ETHNICITY</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Enumerates the ethnicities which the SDK is capable of identifying for found faces.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.Expressions</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A container for expression metric scores.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.FaceQuality.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.FaceQuality</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A container for face quality metric scores.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.GENDER.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.GENDER</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Enumerates the Face's possible gender values: MALE or FEMALE if a strong match could be made, otherwise UNKNOWN if it was not possible to determine gender.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.GLASSES.html" title="enum in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.GLASSES</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">Enumerates whether the Face is wearing glasses: YES or NO.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.Measurements</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A container for measurement metric scores.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">Face.Measurements.Orientation</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A container for orientation scores.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html#Face.Measurements.Orientation()">Face.Measurements.Orientation()</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Measurements.Orientation</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk"><span class="strong">Frame</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd> <div class="block">A wrapper class for images, which can originate from different types (like <code>byte[]</code> and <code>Bitmap</code>).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#Frame()">Frame()</a></span> - Constructor for class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd>&nbsp;</dd> <dt><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk"><span class="strong">Frame.BitmapFrame</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd> <div class="block">A class to wrap an image in a <code>Bitmap</code> format to a <code>Frame</code> readable by the SDK.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html#Frame.BitmapFrame(Bitmap, com.affectiva.android.affdex.sdk.Frame.COLOR_FORMAT)">Frame.BitmapFrame(Bitmap, Frame.COLOR_FORMAT)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.BitmapFrame</a></dt> <dd> <div class="block">Constructs a <code>BitmapFrame</code> that wraps the specified <code>Bitmap</code>.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html" title="class in com.affectiva.android.affdex.sdk"><span class="strong">Frame.ByteArrayFrame</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd> <div class="block">A class to wrap an image in a byte array format to a <code>Frame</code> readable by the SDK.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html#Frame.ByteArrayFrame(byte[], int, int, com.affectiva.android.affdex.sdk.Frame.COLOR_FORMAT)">Frame.ByteArrayFrame(byte[], int, int, Frame.COLOR_FORMAT)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.ByteArrayFrame</a></dt> <dd> <div class="block">Constructs a <code>ByteArrayFrame</code> that wraps the specified byte array.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/Frame.COLOR_FORMAT.html" title="enum in com.affectiva.android.affdex.sdk"><span class="strong">Frame.COLOR_FORMAT</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd> <div class="block">Defines the <a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk"><code>Frame</code></a>'s color format.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html" title="enum in com.affectiva.android.affdex.sdk"><span class="strong">Frame.ROTATE</span></a> - Enum in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd> <div class="block">Defines the desired rotation before processing.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">FrameDetector</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A Detector used to process a sequence of pushed frames.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#FrameDetector(Context, int, com.affectiva.android.affdex.sdk.detector.Detector.FaceDetectorMode)">FrameDetector(Context, int, Detector.FaceDetectorMode)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">FrameDetector</a></dt> <dd> <div class="block">Creates a FrameProcessor.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#FrameDetector(Context)">FrameDetector(Context)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">FrameDetector</a></dt> <dd> <div class="block">Creates a FrameProcessor.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#frameReady(byte[], int, int, com.affectiva.android.affdex.sdk.Frame.COLOR_FORMAT, long, com.affectiva.android.affdex.sdk.Frame.ROTATE)">frameReady(byte[], int, int, Frame.COLOR_FORMAT, long, Frame.ROTATE)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd>&nbsp;</dd> </dl> <a name="_G_"> <!-- --> </a> <h2 class="title">G</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html#getAge()">getAge()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Appearance</a></dt> <dd> <div class="block">Gets the age group, an <a href="./com/affectiva/android/affdex/sdk/detector/Face.AGE.html" title="enum in com.affectiva.android.affdex.sdk.detector"><code>Face.AGE</code></a> enum.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getAnger()">getAnger()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Anger score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getAttention()">getAttention()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Attention score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html#getBitmap()">getBitmap()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.BitmapFrame</a></dt> <dd> <div class="block">Get underlying <code>Bitmap</code> object.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.FaceQuality.html#getBrightness()">getBrightness()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.FaceQuality.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.FaceQuality</a></dt> <dd> <div class="block">Indicates how well the face is lit for purposes of analysis.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getBrowFurrow()">getBrowFurrow()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Brow Furrow score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getBrowRaise()">getBrowRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Brow Raise score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html#getByteArray()">getByteArray()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.ByteArrayFrame</a></dt> <dd> <div class="block">Get underlying byte array of pixels.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getCheekRaise()">getCheekRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Cheek Raise score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getChinRaise()">getChinRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Chin Raise score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#getColorFormat()">getColorFormat()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Get <code>Frame</code>'s color format.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getContempt()">getContempt()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Contempt score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectAge()">getDetectAge()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectAnger()">getDetectAnger()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectAttention()">getDetectAttention()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectBrowFurrow()">getDetectBrowFurrow()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectBrowRaise()">getDetectBrowRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectCheekRaise()">getDetectCheekRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectChinRaise()">getDetectChinRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectContempt()">getDetectContempt()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectDimpler()">getDetectDimpler()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectDisgust()">getDetectDisgust()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectEngagement()">getDetectEngagement()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectEthnicity()">getDetectEthnicity()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectEyeClosure()">getDetectEyeClosure()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectEyeWiden()">getDetectEyeWiden()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectFear()">getDetectFear()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectGender()">getDetectGender()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectGlasses()">getDetectGlasses()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectInnerBrowRaise()">getDetectInnerBrowRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectJawDrop()">getDetectJawDrop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectJoy()">getDetectJoy()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectLidTighten()">getDetectLidTighten()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectLipCornerDepressor()">getDetectLipCornerDepressor()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectLipPress()">getDetectLipPress()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectLipPucker()">getDetectLipPucker()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectLipStretch()">getDetectLipStretch()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectLipSuck()">getDetectLipSuck()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectMouthOpen()">getDetectMouthOpen()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectNoseWrinkle()">getDetectNoseWrinkle()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectSadness()">getDetectSadness()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectSmile()">getDetectSmile()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectSmirk()">getDetectSmirk()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectSurprise()">getDetectSurprise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectUpperLipRaise()">getDetectUpperLipRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getDetectValence()">getDetectValence()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getDimpler()">getDimpler()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Dimpler score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getDisappointed()">getDisappointed()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😞 (disappointed face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getDisgust()">getDisgust()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Disgust score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getDominant()">getDominant()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the raw classifier score for the dominant emoji.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getDominantEmoji()">getDominantEmoji()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the most likely ("dominant") emoji.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getEngagement()">getEngagement()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Engagement score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html#getEthnicity()">getEthnicity()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Appearance</a></dt> <dd> <div class="block">Gets the ETHNICITY, an <a href="./com/affectiva/android/affdex/sdk/detector/Face.ETHNICITY.html" title="enum in com.affectiva.android.affdex.sdk.detector"><code>Face.ETHNICITY</code></a> enum.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getEyeClosure()">getEyeClosure()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Eye Closure score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getEyeWiden()">getEyeWiden()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Eye Widen score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#getFacePoints()">getFacePoints()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getFear()">getFear()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Fear score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getFlushed()">getFlushed()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😳 (flushed face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html#getGender()">getGender()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Appearance</a></dt> <dd> <div class="block">Gets the Gender score, a <a href="./com/affectiva/android/affdex/sdk/detector/Face.GENDER.html" title="enum in com.affectiva.android.affdex.sdk.detector"><code>Face.GENDER</code></a> enum.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html#getGlasses()">getGlasses()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Appearance.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Appearance</a></dt> <dd> <div class="block">Gets the Glasses score, a <a href="./com/affectiva/android/affdex/sdk/detector/Face.GLASSES.html" title="enum in com.affectiva.android.affdex.sdk.detector"><code>Face.GLASSES</code></a> enum.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html#getHeight()">getHeight()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.BitmapFrame</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html#getHeight()">getHeight()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.ByteArrayFrame</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#getHeight()">getHeight()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Get <code>Frame</code>'s height.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#getId()">getId()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getInnerBrowRaise()">getInnerBrowRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Inner Brow Raise score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.html#getInterocularDistance()">getInterocularDistance()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Measurements</a></dt> <dd> <div class="block">Gets the Interocular Distance, defined as the distance between the outer corner of each eye, measured in pixels.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getJawDrop()">getJawDrop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Jaw Drop score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getJoy()">getJoy()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Joy score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getKissing()">getKissing()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😗 (kissing face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getLaughing()">getLaughing()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😆 (smiling face with open mouth and tightly-closed eyes).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getLidTighten()">getLidTighten()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Lid Tighten score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getLipCornerDepressor()">getLipCornerDepressor()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Lip Corner Depressor score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getLipPress()">getLipPress()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Lip Press score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getLipPucker()">getLipPucker()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Lip Pucker score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getLipStretch()">getLipStretch()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Lip Stretch score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getLipSuck()">getLipSuck()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Lip Suck score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getMouthOpen()">getMouthOpen()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Mouth Open score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getNoseWrinkle()">getNoseWrinkle()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Nose Wrinkle score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#getOriginalBitmapFrame()">getOriginalBitmapFrame()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Get the <code>Bitmap</code> that was used to create this frame, if any.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#getPercentFaceDetected()">getPercentFaceDetected()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">The percentage of time that any face was detected (reset at every <a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#start()"><code>Detector.start()</code></a>, but not <a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#reset()"><code>Detector.reset()</code></a>).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html#getPitch()">getPitch()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Measurements.Orientation</a></dt> <dd> <div class="block">Gets the Pitch score, measured in degrees.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#getPixelCount()">getPixelCount()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Get total number of pixels in <code>Frame</code>.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getRage()">getRage()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😡 (pouting face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getRelaxed()">getRelaxed()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for ☺ (white smiling face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html#getRoll()">getRoll()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Measurements.Orientation</a></dt> <dd> <div class="block">Gets the Roll score, measured in degrees.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getSadness()">getSadness()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Sadness score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getScream()">getScream()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😱 (face screaming in fear).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html#getShortcode()">getShortcode()</a></span> - Method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.EMOJI</a></dt> <dd> <div class="block">Returns the markdown "shortcode" that represents this emoji, e.g.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getSmile()">getSmile()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Smile score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getSmiley()">getSmiley()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😃 (smiling face with open mouth).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getSmirk()">getSmirk()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😏 (smirking face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getSmirk()">getSmirk()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Smirk score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getStuckOutTongue()">getStuckOutTongue()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😛 (face with stuck-out tongue).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getStuckOutTongueWinkingEye()">getStuckOutTongueWinkingEye()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😜 (face with stuck-out tongue and winking eye).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getSurprise()">getSurprise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Surprise score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#getTargetRotation()">getTargetRotation()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Get <code>Frame</code>'s rotation angle.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html#getUnicode()">getUnicode()</a></span> - Method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.EMOJI</a></dt> <dd> <div class="block">Returns a String containing the character(s) needed to represent this emoji.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html#getUpperLipRaise()">getUpperLipRaise()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Expressions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Expressions</a></dt> <dd> <div class="block">Gets the Upper Lip Raise score, a float in the range [0,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html#getValence()">getValence()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emotions.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emotions</a></dt> <dd> <div class="block">Gets the Valence score, a float in the range [-100,100].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html#getValue()">getValue()</a></span> - Method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.EMOJI</a></dt> <dd> <div class="block">Returns the "value" of this emoji, i.e., the unicode character value.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html#getWidth()">getWidth()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.BitmapFrame</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html#getWidth()">getWidth()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ByteArrayFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.ByteArrayFrame</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#getWidth()">getWidth()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Get <code>Frame</code>'s width.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html#getWink()">getWink()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Emojis.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Emojis</a></dt> <dd> <div class="block">Returns the score for 😉 (winking face).</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html#getYaw()">getYaw()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.Orientation.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Measurements.Orientation</a></dt> <dd> <div class="block">Gets the Yaw score, measured in degrees.</div> </dd> </dl> <a name="_I_"> <!-- --> </a> <h2 class="title">I</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#isRunning()">isRunning()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Returns the state of the detector.</div> </dd> </dl> <a name="_L_"> <!-- --> </a> <h2 class="title">L</h2> <dl> <dt><a href="./com/affectiva/android/affdex/sdk/LicenseException.html" title="class in com.affectiva.android.affdex.sdk"><span class="strong">LicenseException</span></a> - Exception in <a href="./com/affectiva/android/affdex/sdk/package-summary.html">com.affectiva.android.affdex.sdk</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/LicenseException.html#LicenseException(java.lang.String)">LicenseException(String)</a></span> - Constructor for exception com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/LicenseException.html" title="class in com.affectiva.android.affdex.sdk">LicenseException</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/LicenseException.html#LicenseException(java.lang.String, java.lang.Throwable)">LicenseException(String, Throwable)</a></span> - Constructor for exception com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/LicenseException.html" title="class in com.affectiva.android.affdex.sdk">LicenseException</a></dt> <dd>&nbsp;</dd> </dl> <a name="_M_"> <!-- --> </a> <h2 class="title">M</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#measurements">measurements</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> </dl> <a name="_O_"> <!-- --> </a> <h2 class="title">O</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraEventListener.html#onCameraSizeSelected(int, int, com.affectiva.android.affdex.sdk.Frame.ROTATE)">onCameraSizeSelected(int, int, Frame.ROTATE)</a></span> - Method in interface com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraEventListener.html" title="interface in com.affectiva.android.affdex.sdk.detector">CameraDetector.CameraEventListener</a></dt> <dd> <div class="block">Called when the size and orientation of the camera preview frames are known.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceListener.html#onFaceDetectionStarted()">onFaceDetectionStarted()</a></span> - Method in interface com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceListener.html" title="interface in com.affectiva.android.affdex.sdk.detector">Detector.FaceListener</a></dt> <dd> <div class="block">Indicates that the face detector has started tracking a face.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceListener.html#onFaceDetectionStopped()">onFaceDetectionStopped()</a></span> - Method in interface com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceListener.html" title="interface in com.affectiva.android.affdex.sdk.detector">Detector.FaceListener</a></dt> <dd> <div class="block">Indicates that the face detector has stopped tracking a face.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#onFrameAvailable(byte[], int, int, com.affectiva.android.affdex.sdk.Frame.ROTATE)">onFrameAvailable(byte[], int, int, Frame.ROTATE)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#onFrameSizeSelected(int, int, com.affectiva.android.affdex.sdk.Frame.ROTATE)">onFrameSizeSelected(int, int, Frame.ROTATE)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.ImageListener.html#onImageResults(java.util.List, com.affectiva.android.affdex.sdk.Frame, float)">onImageResults(List&lt;Face&gt;, Frame, float)</a></span> - Method in interface com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.ImageListener.html" title="interface in com.affectiva.android.affdex.sdk.detector">Detector.ImageListener</a></dt> <dd> <div class="block">Delivers information about an image which has been handled by the Detector</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#onProcessingFinished()">onProcessingFinished()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.html#orientation">orientation</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.Measurements.html" title="class in com.affectiva.android.affdex.sdk.detector">Face.Measurements</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#originalBitmap">originalBitmap</a></span> - Variable in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd>&nbsp;</dd> </dl> <a name="_P_"> <!-- --> </a> <h2 class="title">P</h2> <dl> <dt><a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">PhotoDetector</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A Detector for processing discrete photos.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#PhotoDetector(Context, int, com.affectiva.android.affdex.sdk.detector.Detector.FaceDetectorMode)">PhotoDetector(Context, int, Detector.FaceDetectorMode)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">PhotoDetector</a></dt> <dd> <div class="block">Creates a PhotoDetector</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#PhotoDetector(Context)">PhotoDetector(Context)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">PhotoDetector</a></dt> <dd> <div class="block">Creates a PhotoDetector</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#process(com.affectiva.android.affdex.sdk.Frame, float)">process(Frame, float)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">FrameDetector</a></dt> <dd> <div class="block">Asks the Detector to process the passed facePicture.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#process(com.affectiva.android.affdex.sdk.Frame)">process(Frame)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">PhotoDetector</a></dt> <dd> <div class="block">Processes a photo.</div> </dd> </dl> <a name="_Q_"> <!-- --> </a> <h2 class="title">Q</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#qualities">qualities</a></span> - Variable in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> </dl> <a name="_R_"> <!-- --> </a> <h2 class="title">R</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#reset()">reset()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#reset()">reset()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Resets the baselines used to measure facial expressions and emotions.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#reset()">reset()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">FrameDetector</a></dt> <dd> <div class="block">Resets the baselines used to detect expressions and emotions.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#reset()">reset()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#revertPointRotation(PointF[])">revertPointRotation(PointF[])</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Revert points to the <code>Frame</code>'s original coordinate space.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#revertPointRotation(PointF[], int, int, com.affectiva.android.affdex.sdk.Frame.ROTATE)">revertPointRotation(PointF[], int, int, Frame.ROTATE)</a></span> - Static method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Revert points to <code>Frame</code>'s original coordinate space</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#rotateImage(Bitmap, float)">rotateImage(Bitmap, float)</a></span> - Static method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Rotate a <code>Bitmap</code>.</div> </dd> </dl> <a name="_S_"> <!-- --> </a> <h2 class="title">S</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html#setBitmap(Bitmap, com.affectiva.android.affdex.sdk.Frame.COLOR_FORMAT)">setBitmap(Bitmap, Frame.COLOR_FORMAT)</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.BitmapFrame</a></dt> <dd> <div class="block">Set underlying <code>Bitmap</code> object.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#setCameraType(com.affectiva.android.affdex.sdk.detector.CameraDetector.CameraType)">setCameraType(CameraDetector.CameraType)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">Indicates which device camera to use.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAge(boolean)">setDetectAge(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAllAppearance(boolean)">setDetectAllAppearance(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block"><span class="strong">Deprecated.</span> <div class="block"><i>as of version 3.1 in favor of the equivalent -- but more appropriately named -- <a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAllAppearances(boolean)"><code>Detector.setDetectAllAppearances(boolean)</code></a></i></div> </div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAllAppearances(boolean)">setDetectAllAppearances(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Activates/Deactivates detection of all appearance attributes simultaneously.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAllEmojis(boolean)">setDetectAllEmojis(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Activates/Deactivates detection of emojis.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAllEmotions(boolean)">setDetectAllEmotions(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Activates/Deactivates detection of all emotions simultaneously.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAllExpressions(boolean)">setDetectAllExpressions(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block">Activates/Deactivates detection of all expressions simultaneously.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAnger(boolean)">setDetectAnger(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectAttention(boolean)">setDetectAttention(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectBrowFurrow(boolean)">setDetectBrowFurrow(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectBrowRaise(boolean)">setDetectBrowRaise(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectCheekRaise(boolean)">setDetectCheekRaise(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectChinRaise(boolean)">setDetectChinRaise(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectContempt(boolean)">setDetectContempt(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectDimpler(boolean)">setDetectDimpler(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectDisgust(boolean)">setDetectDisgust(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectEngagement(boolean)">setDetectEngagement(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectEthnicity(boolean)">setDetectEthnicity(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectEyeClosure(boolean)">setDetectEyeClosure(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectEyeWiden(boolean)">setDetectEyeWiden(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectFear(boolean)">setDetectFear(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectGender(boolean)">setDetectGender(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectGlasses(boolean)">setDetectGlasses(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectInnerBrowRaise(boolean)">setDetectInnerBrowRaise(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectJawDrop(boolean)">setDetectJawDrop(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectJoy(boolean)">setDetectJoy(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectLidTighten(boolean)">setDetectLidTighten(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectLipCornerDepressor(boolean)">setDetectLipCornerDepressor(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectLipPress(boolean)">setDetectLipPress(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectLipPucker(boolean)">setDetectLipPucker(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectLipStretch(boolean)">setDetectLipStretch(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectLipSuck(boolean)">setDetectLipSuck(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectMouthOpen(boolean)">setDetectMouthOpen(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectNoseWrinkle(boolean)">setDetectNoseWrinkle(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectSadness(boolean)">setDetectSadness(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectSmile(boolean)">setDetectSmile(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectSmirk(boolean)">setDetectSmirk(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectSurprise(boolean)">setDetectSurprise(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectUpperLipRaise(boolean)">setDetectUpperLipRaise(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setDetectValence(boolean)">setDetectValence(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setFaceListener(com.affectiva.android.affdex.sdk.detector.Detector.FaceListener)">setFaceListener(Detector.FaceListener)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.html#setId(int)">setId(int)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.html" title="class in com.affectiva.android.affdex.sdk.detector">Face</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setImageListener(com.affectiva.android.affdex.sdk.detector.Detector.ImageListener)">setImageListener(Detector.ImageListener)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setLicensePath(java.lang.String)">setLicensePath(String)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block"><span class="strong">Deprecated.</span> <div class="block"><i>as of version 3.1.1 - see new licensing policy: http://developer.affectiva.com</i></div> </div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#setLicenseStream(java.io.Reader)">setLicenseStream(Reader)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd> <div class="block"><span class="strong">Deprecated.</span> <div class="block"><i>as of version 3.1.1 - see new licensing policy: http://developer.affectiva.com</i></div> </div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#setMaxProcessRate(float)">setMaxProcessRate(float)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">The maximum processing rate to operate in [FPS].</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#setOnCameraEventListener(com.affectiva.android.affdex.sdk.detector.CameraDetector.CameraEventListener)">setOnCameraEventListener(CameraDetector.CameraEventListener)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#setSendUnprocessedFrames(boolean)">setSendUnprocessedFrames(boolean)</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">When the SDK is in control of the camera, if the SDK frame rate is lower than the camera frame rate, there will be frames that are not processed for expressions by the SDK.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#setTargetRotation(com.affectiva.android.affdex.sdk.Frame.ROTATE)">setTargetRotation(Frame.ROTATE)</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd> <div class="block">Set <code>Frame</code>'s rotation angle.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#start()">start()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">Initiates processing of frames received from the device's camera.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#start()">start()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#start()">start()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">FrameDetector</a></dt> <dd> <div class="block">Initializes the FrameDetector in preparation for handling frames subsequently pushed via <a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#process(com.affectiva.android.affdex.sdk.Frame, float)"><code>FrameDetector.process(com.affectiva.android.affdex.sdk.Frame, float)</code></a></div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#start()">start()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">PhotoDetector</a></dt> <dd> <div class="block">Initializes the PhotoDetector in preparation for handling photos subsequently pushed via <a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#process(com.affectiva.android.affdex.sdk.Frame)"><code>PhotoDetector.process(com.affectiva.android.affdex.sdk.Frame)</code></a></div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#start()">start()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd> <div class="block">Initiates processing of the video file.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html#stop()">stop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">CameraDetector</a></dt> <dd> <div class="block">Stops processing frames received from the device's camera, and releases the camera to allow its use by other apps.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.html#stop()">stop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.html" title="class in com.affectiva.android.affdex.sdk.detector">Detector</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#stop()">stop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">FrameDetector</a></dt> <dd> <div class="block">Notifies the FrameDetector that the last frame has been pushed via <a href="./com/affectiva/android/affdex/sdk/detector/FrameDetector.html#process(com.affectiva.android.affdex.sdk.Frame, float)"><code>FrameDetector.process(com.affectiva.android.affdex.sdk.Frame, float)</code></a>, allowing it to deallocate resources.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#stop()">stop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">PhotoDetector</a></dt> <dd> <div class="block">Notifies the PhotoDetector that the last photo has been pushed via <a href="./com/affectiva/android/affdex/sdk/detector/PhotoDetector.html#process(com.affectiva.android.affdex.sdk.Frame)"><code>PhotoDetector.process(com.affectiva.android.affdex.sdk.Frame)</code></a>, allowing it to deallocate resources.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#stop()">stop()</a></span> - Method in class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd> <div class="block">Allows the VideoFileProcessor to deallocate resources when processing is complete.</div> </dd> </dl> <a name="_T_"> <!-- --> </a> <h2 class="title">T</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.html#TAG">TAG</a></span> - Static variable in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.html" title="class in com.affectiva.android.affdex.sdk">Frame</a></dt> <dd>&nbsp;</dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html#toByteArrayFrame()">toByteArrayFrame()</a></span> - Method in class com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.BitmapFrame.html" title="class in com.affectiva.android.affdex.sdk">Frame.BitmapFrame</a></dt> <dd> <div class="block">Extract byte array from bitmap, be careful when using it, it allocates memory when needed.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html#toDouble()">toDouble()</a></span> - Method in enum com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html" title="enum in com.affectiva.android.affdex.sdk">Frame.ROTATE</a></dt> <dd> <div class="block">Method to get the rotation angle.</div> </dd> </dl> <a name="_V_"> <!-- --> </a> <h2 class="title">V</h2> <dl> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraType.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraType.html" title="enum in com.affectiva.android.affdex.sdk.detector">CameraDetector.CameraType</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceDetectorMode.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceDetectorMode.html" title="enum in com.affectiva.android.affdex.sdk.detector">Detector.FaceDetectorMode</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.AGE.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.AGE.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.AGE</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.EMOJI</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.ETHNICITY.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.ETHNICITY.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.ETHNICITY</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.GENDER.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.GENDER.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.GENDER</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.GLASSES.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.GLASSES.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.GLASSES</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.COLOR_FORMAT.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.COLOR_FORMAT.html" title="enum in com.affectiva.android.affdex.sdk">Frame.COLOR_FORMAT</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html" title="enum in com.affectiva.android.affdex.sdk">Frame.ROTATE</a></dt> <dd> <div class="block">Returns the enum constant of this type with the specified name.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraType.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/CameraDetector.CameraType.html" title="enum in com.affectiva.android.affdex.sdk.detector">CameraDetector.CameraType</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceDetectorMode.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Detector.FaceDetectorMode.html" title="enum in com.affectiva.android.affdex.sdk.detector">Detector.FaceDetectorMode</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.AGE.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.AGE.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.AGE</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.EMOJI.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.EMOJI</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.ETHNICITY.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.ETHNICITY.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.ETHNICITY</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.GENDER.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.GENDER.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.GENDER</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/Face.GLASSES.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/Face.GLASSES.html" title="enum in com.affectiva.android.affdex.sdk.detector">Face.GLASSES</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.COLOR_FORMAT.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.COLOR_FORMAT.html" title="enum in com.affectiva.android.affdex.sdk">Frame.COLOR_FORMAT</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html#values()">values()</a></span> - Static method in enum com.affectiva.android.affdex.sdk.<a href="./com/affectiva/android/affdex/sdk/Frame.ROTATE.html" title="enum in com.affectiva.android.affdex.sdk">Frame.ROTATE</a></dt> <dd> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </dd> <dt><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector"><span class="strong">VideoFileDetector</span></a> - Class in <a href="./com/affectiva/android/affdex/sdk/detector/package-summary.html">com.affectiva.android.affdex.sdk.detector</a></dt> <dd> <div class="block">A Detector for processing video files.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#VideoFileDetector(Context, java.lang.String, int, com.affectiva.android.affdex.sdk.detector.Detector.FaceDetectorMode)">VideoFileDetector(Context, String, int, Detector.FaceDetectorMode)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd> <div class="block">Creates a VideoFileDetector.</div> </dd> <dt><span class="strong"><a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html#VideoFileDetector(Context, java.lang.String)">VideoFileDetector(Context, String)</a></span> - Constructor for class com.affectiva.android.affdex.sdk.detector.<a href="./com/affectiva/android/affdex/sdk/detector/VideoFileDetector.html" title="class in com.affectiva.android.affdex.sdk.detector">VideoFileDetector</a></dt> <dd> <div class="block">Creates a VideoFileDetector.</div> </dd> </dl> <a href="#_A_">A</a>&nbsp;<a href="#_C_">C</a>&nbsp;<a href="#_D_">D</a>&nbsp;<a href="#_E_">E</a>&nbsp;<a href="#_F_">F</a>&nbsp;<a href="#_G_">G</a>&nbsp;<a href="#_I_">I</a>&nbsp;<a href="#_L_">L</a>&nbsp;<a href="#_M_">M</a>&nbsp;<a href="#_O_">O</a>&nbsp;<a href="#_P_">P</a>&nbsp;<a href="#_Q_">Q</a>&nbsp;<a href="#_R_">R</a>&nbsp;<a href="#_S_">S</a>&nbsp;<a href="#_T_">T</a>&nbsp;<a href="#_V_">V</a>&nbsp;</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="./overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li><a href="./overview-tree.html">Tree</a></li> <li><a href="./deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="./help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><em><img src="./affectiva.png"></em></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="./index.html?index-all.html" target="_top">Frames</a></li> <li><a href="index-all.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="./allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
Affectiva/developerportal
pages/platforms/v3_2/android/javadoc/index-all.html
HTML
gpl-2.0
118,188
package Smoketest::Command::remove { use Mojo::Base 'Mojolicious::Command'; use Minion::Backend; use Mojo::Util qw(getopt); has 'description' => 'Remove a currently-enqueued test'; =pod =head2 Remove =cut has usage => <<"=cut" =~ s/ APPLICATION/$0/rg =~ s/\s+=pod\s+//rs; =pod Usage: APPLICATION remove [IDS] [-count N] Removes one or more enqueued Minion jobs by ID, or from newest by count =cut sub run { my ($self, @args) = @_; getopt \@args, [qw(auto_abbrev)], 'count=i' => \my $count, ; my @ids = @args; # remaining if (!scalar @ids) { my $jobs = $self->app->minion->backend->list_jobs(0, $count // 1, # offset, limit {state => 'inactive', task => 'test', queue => 'default', } ); @ids = map { $_->{id} // () } @{$jobs->{jobs}}; # just the list of IDs } if (!scalar @ids) { $self->app->log->info("No jobs found to remove"); } foreach my $id (@ids) { my $job = $self->app->minion->job($id); if (defined $job) { if ($job->remove) { $self->app->log->info("Removed job $id"); } else { $self->app->log->error("Failed to remove job $id"); } } else { $self->app->log->error("Failed to remove job $id (ID not found)"); } } } } 1;
lindleyw/testers
lib/Smoketest/Command/remove.pm
Perl
gpl-2.0
1,760
package cn.lucifer.sdop.domain; public class HeaderDetail { public BpDetail bpDetail; public EnergyDetail energyDetail; public int gold; public int ms; public int msMax; public int pilot; public int pilotMax; }
hjp4lucifer/lucifer-sdop
android/sdop/src/cn/lucifer/sdop/domain/HeaderDetail.java
Java
gpl-2.0
240
# export AWS_ACCESS_KEY="Your-Access-Key" # export AWS_SECRET_KEY="Your-Secret-Key" today=`date +"%d-%m-%Y","%T"` logfile="/awslog/ec2-access.log" # Grab all Security Groups IDs for ALLOW action and export the IDs to a text file sudo aws ec2 describe-security-groups --filters Name=tag:open-https-time,Values=13-00 Name=tag:bash-profile,Values=wd --query SecurityGroups[].[GroupId] --output text > ~/tmp/allowhttps_wd_info.txt 2>&1 # Take list of changing security groups for group_id in $(cat ~/tmp/allowhttps_wd_info.txt) do # Change rules in security group sudo aws ec2 authorize-security-group-ingress --group-id $group_id --protocol tcp --port 443 --cidr 0.0.0.0/0 # Put info into log file echo Attempt $today allow access to instances with attached group $group_id for HTTPS >> $logfile done
STARTSPACE/aws-access-to-ec2-by-timetable
https-443/allow-wd/https-allow-wd-13.sh
Shell
gpl-2.0
804
//----------------------------------------------- // // Melfas Binary Converter v1.2 // // 2012/07 By DVK Team // //----------------------------------------------- const UINT16 MELFAS_binary_nLength_2 = 31744; const UINT8 MELFAS_binary_2[] = { 0x00,0x20,0x00,0x20,0x79,0x02,0x00,0x00,0x39,0x02,0x00,0x00,0x3D,0x02,0x00,0x00, 0x41,0x02,0x00,0x00,0x45,0x02,0x00,0x00,0x49,0x02,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4D,0x02,0x00,0x00, 0x51,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x02,0x00,0x00,0x59,0x02,0x00,0x00, 0x39,0x01,0x00,0x00,0x61,0x01,0x00,0x00,0x25,0x01,0x00,0x00,0x21,0x02,0x00,0x00, 0x35,0x02,0x00,0x00,0x71,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00,0x75,0x02,0x00,0x00, 0x30,0xB5,0x11,0x4B,0x11,0x4A,0x1B,0x88,0x12,0x78,0xD3,0x18,0xDB,0xB2,0xE1,0x2B, 0x02,0xD0,0xE5,0x2B,0x17,0xD1,0x09,0xE0,0x0D,0x49,0x0E,0x4A,0x04,0x23,0x01,0x3B, 0xDB,0xB2,0xC8,0x5C,0x98,0x54,0x00,0x2B,0xF9,0xD1,0x0C,0xE0,0x0A,0x4C,0x09,0x48, 0x0A,0x49,0x0B,0x4A,0x04,0x23,0x01,0x3B,0xDB,0xB2,0xE5,0x5C,0x1D,0x54,0xCD,0x5C, 0x9D,0x54,0x00,0x2B,0xF7,0xD1,0x30,0xBD,0x28,0x00,0x00,0x20,0x2A,0x00,0x00,0x20, 0x2D,0x00,0x00,0x20,0x0C,0x00,0x00,0x50,0x35,0x00,0x00,0x20,0x31,0x00,0x00,0x20, 0x10,0x00,0x00,0x50,0x03,0x4A,0x00,0x23,0x13,0x70,0x80,0x22,0xD2,0x05,0x13,0x70, 0x70,0x47,0xC0,0x46,0x00,0x00,0x00,0x20,0x06,0x4B,0x00,0x22,0x5A,0x70,0x80,0x23, 0xDB,0x05,0x59,0x69,0x04,0x4A,0x0A,0x40,0x5A,0x61,0x59,0x69,0x03,0x4A,0x0A,0x40, 0x5A,0x61,0x70,0x47,0x00,0x00,0x00,0x20,0xFF,0xFF,0xFF,0xFE,0xFF,0xFF,0xFF,0xEF, 0x70,0xB5,0xA0,0x23,0xDB,0x05,0x1C,0x7A,0x24,0x4D,0x0F,0x22,0x14,0x40,0x2A,0x78, 0x23,0x4E,0x00,0x2A,0x06,0xD0,0x23,0x4B,0x1B,0x68,0x98,0x47,0x00,0x23,0x2B,0x70, 0x34,0x70,0x3A,0xE0,0x9B,0x7A,0x32,0x78,0xE1,0x07,0x02,0xD5,0x1E,0x4A,0x13,0x80, 0x07,0xE0,0x08,0x21,0x0C,0x42,0x0A,0xD0,0x1C,0x4B,0x1A,0x78,0x52,0x18,0xD2,0xB2, 0x1A,0x70,0xFF,0xF7,0x8D,0xFF,0x1A,0x4B,0x1B,0x68,0x98,0x47,0x19,0xE0,0xA1,0x07, 0x0D,0xD5,0x08,0x2A,0x01,0xD0,0x01,0x2A,0x01,0xD1,0x16,0x4B,0x02,0xE0,0x12,0x4A, 0x13,0x80,0x15,0x4B,0x1B,0x68,0x98,0x47,0x00,0x22,0x10,0x4B,0x08,0xE0,0x63,0x07, 0x07,0xD5,0x11,0x4B,0x1B,0x68,0x98,0x47,0x0C,0x4B,0x1A,0x78,0x08,0x32,0xD2,0xB2, 0x1A,0x70,0x07,0x4B,0x01,0x22,0x1C,0x70,0xA0,0x23,0xDB,0x05,0x1A,0x72,0x0B,0x49, 0x10,0x22,0x1A,0x72,0x00,0x22,0x0A,0x70,0x1A,0x72,0x70,0xBD,0x2C,0x00,0x00,0x20, 0x2B,0x00,0x00,0x20,0x24,0x00,0x00,0x20,0x28,0x00,0x00,0x20,0x2A,0x00,0x00,0x20, 0x1C,0x00,0x00,0x20,0x20,0x00,0x00,0x20,0x18,0x00,0x00,0x20,0x0C,0x00,0x00,0x20, 0x03,0x4A,0x00,0x23,0x93,0x70,0x80,0x22,0xD2,0x05,0x53,0x70,0x70,0x47,0xC0,0x46, 0x00,0x00,0x00,0x20,0x70,0x47,0xC0,0x46,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7, 0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7, 0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7, 0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7, 0x00,0xB5,0xFE,0xE7,0x00,0xB5,0xFE,0xE7,0x38,0xB5,0x80,0x23,0xDB,0x05,0xFB,0x21, 0x5A,0x68,0x59,0x60,0x99,0x68,0x08,0x21,0x99,0x60,0x00,0x22,0xD9,0x68,0xDA,0x60, 0x19,0x6C,0x80,0x21,0xC9,0x01,0x19,0x64,0x19,0x69,0x44,0x49,0x19,0x61,0x44,0x4B, 0x44,0x49,0x00,0xE0,0x04,0xC3,0x8B,0x42,0xFC,0xD3,0x43,0x4B,0x43,0x4A,0x9B,0x0A, 0xDB,0xB2,0x13,0x70,0x42,0x4B,0x43,0x49,0x1B,0x68,0x9B,0x0A,0xDB,0xB2,0x53,0x70, 0x41,0x4B,0x1B,0x68,0x9B,0x0A,0xDB,0xB2,0x93,0x70,0x40,0x4B,0x1B,0x68,0x9B,0x0A, 0xDB,0xB2,0xD3,0x70,0x00,0x23,0x0B,0x70,0x03,0x23,0x08,0xE0,0x58,0x1C,0x15,0x5C, 0xD4,0x5C,0xA5,0x42,0x07,0xD9,0xD4,0x5C,0x01,0x34,0xE4,0xB2,0x0C,0x54,0x01,0x3B, 0xDB,0xB2,0xFF,0x2B,0xF2,0xD1,0x30,0x4A,0x11,0x78,0x35,0x4A,0x11,0x70,0x11,0x1C, 0xFF,0x2B,0x03,0xD1,0x2D,0x4B,0xDB,0x78,0x1E,0x2B,0x04,0xD9,0xFF,0x23,0x4B,0x70, 0x8B,0x70,0xCB,0x70,0x0B,0xE0,0x2A,0x4B,0x1B,0x68,0x1B,0x78,0x53,0x70,0x2A,0x4B, 0x1B,0x68,0x1B,0x78,0x93,0x70,0x29,0x4B,0x1B,0x68,0x1B,0x78,0xD3,0x70,0x28,0x4B, 0xDA,0x78,0xFF,0x2A,0x08,0xD0,0x9A,0x78,0xFF,0x2A,0x05,0xD0,0x5B,0x78,0xFF,0x2B, 0x02,0xD0,0x00,0xF0,0x67,0xF8,0x38,0xBD,0x22,0x4B,0x23,0x4A,0xC0,0x21,0x13,0x60, 0x22,0x4A,0x49,0x00,0x13,0x60,0x22,0x4A,0x22,0x48,0x13,0x60,0x22,0x4A,0x13,0x60, 0x22,0x4B,0x02,0x22,0x5A,0x50,0xC0,0x21,0x91,0x40,0x5C,0x58,0x20,0x40,0x58,0x50, 0x1F,0x49,0x04,0x24,0x08,0x69,0x20,0x43,0x08,0x61,0x62,0xB6,0x1A,0x60,0x80,0x23, 0xDB,0x05,0x1A,0x6C,0x80,0x22,0x12,0x02,0x1A,0x64,0x1A,0x6C,0x80,0x22,0xD2,0x01, 0x1A,0x64,0x9A,0x68,0x80,0x22,0x52,0x00,0x9A,0x60,0xA0,0x22,0xD2,0x05,0x91,0x68, 0x14,0x49,0x91,0x60,0x1A,0x6C,0x00,0x22,0x1A,0x64,0xFE,0xE7,0x10,0x4F,0x00,0x00, 0x00,0x00,0x00,0x20,0x3C,0x00,0x00,0x20,0xFF,0x03,0x00,0x00,0x31,0x00,0x00,0x20, 0x08,0x04,0x00,0x00,0x35,0x00,0x00,0x20,0x0C,0x04,0x00,0x00,0x10,0x04,0x00,0x00, 0x2D,0x00,0x00,0x20,0xF9,0x03,0x00,0x00,0x24,0x00,0x00,0x20,0x18,0x00,0x00,0x20, 0x1C,0x00,0x00,0x20,0xFF,0x00,0xFF,0xFF,0x20,0x00,0x00,0x20,0x00,0xE1,0x00,0xE0, 0x00,0xED,0x00,0xE0,0x00,0x00,0xC8,0x42,0x70,0x47,0xFF,0xFF,0xFF,0xFF,0xFF,0x02, 0x4D,0x31,0x48,0x30,0x43,0x4F,0x34,0x35,0xFF,0x5B,0x00,0x00,0xFF,0x73,0x00,0x00, 0xFF,0x7B,0x00,0x00,0xF0,0xB5,0x85,0xB0,0x03,0xF0,0xF6,0xFB,0x04,0xF0,0x60,0xFF, 0x00,0x20,0x05,0xF0,0xF1,0xFB,0x50,0x4B,0x33,0x33,0x1B,0x78,0x5F,0x42,0x7B,0x41, 0x10,0x27,0xFF,0x1A,0x4D,0x4B,0x1F,0x70,0x4D,0x4B,0x1A,0x68,0x01,0x3A,0x53,0x42, 0x5A,0x41,0x4C,0x4B,0x1A,0x70,0x4C,0x4B,0x1C,0x78,0x00,0x2C,0x22,0xD1,0x4B,0x4A, 0x01,0x25,0x14,0x70,0x1D,0x70,0x00,0xF0,0x21,0xFA,0x49,0x4B,0x28,0x1C,0xDA,0x78, 0x9A,0x70,0x5C,0x70,0x05,0xF0,0xD0,0xFB,0x03,0xF0,0xB2,0xFA,0x01,0xF0,0x28,0xFA, 0x80,0x23,0xDB,0x05,0x1A,0x6C,0x7F,0x21,0x8A,0x43,0x1A,0x64,0x00,0xF0,0x4C,0xFD, 0x02,0xF0,0x7E,0xFE,0x01,0xF0,0x1C,0xFA,0x01,0xF0,0xB6,0xF9,0x3D,0x4B,0x02,0x20, 0x1B,0x68,0x98,0x47,0x3C,0x4C,0x23,0x78,0x00,0x2B,0x03,0xD1,0x3B,0x4B,0x1B,0x78, 0x00,0x2B,0x0F,0xD0,0x23,0x78,0x00,0xF0,0x21,0xFC,0x22,0x78,0x2F,0x4B,0x00,0x2A, 0x01,0xD0,0x1F,0x70,0x01,0xE0,0x0D,0x22,0x1A,0x70,0x33,0x4A,0x00,0x23,0x13,0x70, 0x32,0x4A,0x13,0x70,0x2D,0x4B,0x1B,0x78,0x00,0x2B,0x2C,0xD0,0x30,0x4D,0x2B,0x78, 0x00,0x2B,0x28,0xD0,0x2B,0x4C,0x13,0x20,0x23,0x68,0x98,0x47,0x00,0xF0,0xDE,0xF9, 0x03,0xF0,0x3B,0xFA,0x03,0xF0,0xBE,0xF9,0x2A,0x4B,0x18,0x78,0x00,0xF0,0xBE,0xFF, 0x00,0xF0,0x1E,0xFD,0x28,0x4A,0x01,0x23,0x13,0x70,0x28,0x4A,0x13,0x80,0x02,0xF0, 0x11,0xFF,0x2B,0x78,0x00,0x2B,0xFC,0xD1,0x23,0x68,0x14,0x20,0x98,0x47,0x00,0xF0, 0xC5,0xF9,0x03,0xF0,0x22,0xFA,0x03,0xF0,0xA5,0xF9,0x1E,0x4B,0x18,0x78,0x00,0xF0, 0xA5,0xFF,0x12,0x4B,0x1F,0x70,0x00,0xF0,0xD5,0xFE,0x10,0x4C,0x6A,0x46,0x23,0x78, 0x58,0xB2,0xD3,0x73,0x13,0x28,0x00,0xD9,0x60,0xE1,0x04,0xF0,0xFF,0xFF,0x75,0x00, 0x5F,0x01,0x53,0x01,0x5F,0x01,0x5F,0x01,0x5F,0x01,0x5F,0x01,0x5F,0x01,0x5F,0x01, 0x5F,0x01,0x5F,0x01,0x5F,0x01,0x5F,0x01,0x69,0x00,0x5F,0x01,0x3B,0x00,0x31,0x00, 0x60,0x00,0x5F,0x01,0x5C,0x01,0xC0,0x46,0xB2,0x09,0x00,0x20,0x21,0x03,0x00,0x20, 0x54,0x11,0x00,0x20,0xEF,0x01,0x00,0x20,0xED,0x01,0x00,0x20,0xEE,0x01,0x00,0x20, 0xAE,0x0A,0x00,0x20,0xFC,0x01,0x00,0x20,0xEC,0x01,0x00,0x20,0xEB,0x01,0x00,0x20, 0xE9,0x01,0x00,0x20,0x4C,0x0D,0x00,0x20,0xFA,0x03,0x00,0x20,0x0C,0x03,0x00,0x20, 0x9B,0x4B,0x00,0x22,0x1A,0x70,0x00,0xF0,0xD1,0xFD,0x9A,0x4B,0x1B,0x78,0x00,0x2B, 0x00,0xD0,0x27,0xE1,0x98,0x4C,0x23,0x78,0x00,0x2B,0x03,0xD0,0x00,0x20,0x97,0x49, 0x03,0xF0,0xE8,0xFB,0x23,0x78,0x00,0x2B,0x06,0xD0,0x01,0x21,0x00,0x20,0x94,0x4A, 0x0B,0x1C,0x00,0x90,0x03,0xF0,0x86,0xFB,0x92,0x4B,0x98,0x78,0x03,0xF0,0xA8,0xF9, 0x91,0x4D,0xE8,0x7B,0x02,0xF0,0x82,0xFF,0x90,0x4C,0x20,0x60,0x28,0x7C,0x02,0xF0, 0x7D,0xFF,0x11,0x23,0x60,0x60,0xEB,0x56,0xEA,0x7B,0x53,0x43,0xA3,0x60,0x84,0x4B, 0x00,0x22,0x1A,0x70,0x8A,0x4B,0x1B,0x78,0x8A,0x4B,0x18,0x78,0x00,0xF0,0x2E,0xFF, 0x7F,0x4B,0x87,0x4D,0x00,0x24,0x1C,0x70,0x2B,0x78,0x00,0xF0,0x7D,0xFC,0x03,0xF0, 0xBB,0xFE,0x00,0xF0,0x79,0xFC,0x2C,0x70,0x79,0x4B,0x01,0x24,0x1C,0x70,0x00,0xF0, 0x0F,0xFC,0x81,0x4B,0x1B,0x68,0x9A,0x05,0x13,0xD5,0x80,0x4A,0x80,0x4B,0x04,0x20, 0x1A,0x60,0x80,0x4B,0x19,0x68,0x01,0x43,0x19,0x60,0x19,0x68,0x02,0x20,0x81,0x43, 0x19,0x60,0x19,0x68,0x0C,0x43,0x1C,0x60,0x7B,0x4B,0x00,0x21,0x19,0x60,0x7B,0x4B, 0x1A,0x60,0x7B,0x4C,0x03,0x20,0x23,0x68,0x98,0x47,0x02,0xF0,0x6F,0xFF,0x23,0x68, 0x05,0x20,0x98,0x47,0x02,0xF0,0x14,0xFF,0x76,0x4D,0x77,0x4E,0x01,0x20,0x32,0x1C, 0x40,0x42,0x29,0x1C,0x04,0xF0,0x94,0xFB,0x74,0x4A,0x2B,0x68,0x13,0x80,0x33,0x68, 0x53,0x80,0x61,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0,0x01,0x23,0x02,0x21,0x00,0x93, 0x0C,0x20,0x0B,0x1C,0x03,0xF0,0x1E,0xFB,0x23,0x68,0x06,0x20,0x98,0x47,0x03,0xF0, 0x2D,0xFF,0x04,0xF0,0x9D,0xF8,0x04,0xF0,0xD1,0xFA,0x00,0xF0,0xC3,0xFA,0x04,0xF0, 0x45,0xFC,0x04,0xF0,0xB1,0xFD,0x66,0x4B,0x1B,0x78,0x00,0x2B,0x2A,0xD1,0x23,0x68, 0x07,0x20,0x98,0x47,0x01,0xF0,0x68,0xF9,0x23,0x68,0x08,0x20,0x98,0x47,0x02,0xF0, 0xEB,0xFE,0x02,0xF0,0xF3,0xFE,0x23,0x68,0x09,0x20,0x98,0x47,0x01,0xF0,0x86,0xF9, 0x01,0xF0,0xEE,0xFA,0x23,0x68,0x0A,0x20,0x98,0x47,0x01,0xF0,0x8B,0xFB,0x02,0xF0, 0x7D,0xFA,0x23,0x68,0x0B,0x20,0x98,0x47,0x01,0xF0,0xD5,0xFD,0x01,0xF0,0xF4,0xFE, 0x23,0x68,0x0E,0x20,0x98,0x47,0x01,0xF0,0xA1,0xFF,0x02,0xF0,0x2B,0xF9,0x23,0x68, 0x10,0x20,0x98,0x47,0x00,0xF0,0x02,0xF9,0x49,0x4B,0x0F,0x20,0x1B,0x68,0x98,0x47, 0x4B,0x4B,0x1B,0x78,0x00,0x2B,0x1F,0xD1,0x02,0xF0,0x88,0xF9,0x49,0x4B,0x1A,0x68, 0x49,0x4B,0x00,0x2A,0x04,0xD1,0x49,0x49,0x09,0x68,0x00,0x29,0x00,0xDD,0x1A,0x70, 0x35,0x4A,0x19,0x78,0x32,0x32,0x12,0x78,0x91,0x42,0x01,0xD3,0x00,0x22,0x1A,0x70, 0x1B,0x78,0x00,0x2B,0x04,0xD1,0x42,0x4B,0x1B,0x68,0x98,0x47,0x02,0xF0,0xC8,0xF9, 0x3D,0x4B,0x1A,0x78,0x01,0x32,0x1A,0x70,0x2F,0x4B,0x1B,0x68,0x9A,0x05,0x23,0xD5, 0x31,0x4B,0x18,0x68,0x27,0x4B,0x1A,0x79,0x19,0x78,0x2C,0x4B,0x18,0x1A,0x53,0x1C, 0x98,0x40,0x04,0xF0,0xDD,0xFE,0x20,0x4C,0x2C,0x4D,0x23,0x78,0x28,0x60,0x00,0x2B, 0x03,0xD0,0x00,0x20,0x33,0x49,0x03,0xF0,0xF5,0xFA,0x23,0x78,0x00,0x2B,0x06,0xD0, 0x00,0x20,0x01,0x21,0x2A,0x1C,0x04,0x23,0x00,0x90,0x03,0xF0,0x93,0xFA,0x21,0x4B, 0x01,0x21,0x1A,0x68,0x8A,0x43,0x1A,0x60,0x80,0x23,0xDB,0x05,0x9A,0x6C,0x01,0x21, 0x0A,0x43,0x9A,0x64,0x00,0xF0,0x98,0xFB,0x27,0x4B,0x00,0x20,0x18,0x56,0x00,0xF0, 0x9D,0xFD,0x0F,0xE0,0x01,0x20,0x00,0xF0,0x41,0xFE,0x00,0x20,0x00,0xF0,0x3E,0xFE, 0x13,0x23,0x23,0x70,0x06,0xE0,0x00,0xF0,0x8F,0xFB,0x03,0xE0,0x14,0x4B,0x11,0x20, 0x1B,0x68,0x98,0x47,0x6A,0x46,0x1D,0x4B,0xD2,0x7B,0x1A,0x70,0x14,0xE6,0xC0,0x46, 0xEE,0x01,0x00,0x20,0xE4,0x01,0x00,0x20,0xEF,0x01,0x00,0x20,0x3C,0x57,0x00,0x00, 0xB0,0x0A,0x00,0x20,0xAE,0x0A,0x00,0x20,0xB2,0x09,0x00,0x20,0x00,0x03,0x00,0x20, 0x21,0x03,0x00,0x20,0x4C,0x0D,0x00,0x20,0x58,0x00,0x00,0x20,0xFF,0xFF,0xFF,0x00, 0x14,0xE0,0x00,0xE0,0x10,0xE0,0x00,0xE0,0x18,0xE0,0x00,0xE0,0x00,0x02,0x00,0x20, 0xFC,0x01,0x00,0x20,0x38,0x11,0x00,0x20,0x3C,0x11,0x00,0x20,0x58,0x11,0x00,0x20, 0x4C,0x11,0x00,0x20,0x24,0x01,0x00,0x20,0xCE,0x00,0x00,0x20,0xA0,0x0D,0x00,0x20, 0x04,0x02,0x00,0x20,0x40,0x57,0x00,0x00,0xB7,0x01,0x00,0x20,0x56,0x00,0x00,0x20, 0x08,0xB5,0x01,0xF0,0xE1,0xFC,0x01,0xF0,0xFB,0xFC,0x03,0x4B,0x1B,0x68,0x98,0x47, 0x02,0xF0,0x36,0xF9,0x08,0xBD,0xC0,0x46,0x04,0x02,0x00,0x20,0x10,0xB5,0x04,0xF0, 0x4D,0xFD,0x05,0x4C,0x00,0x20,0x23,0x68,0x98,0x47,0x04,0xF0,0x77,0xFD,0x23,0x68, 0x01,0x20,0x98,0x47,0x10,0xBD,0xC0,0x46,0xFC,0x01,0x00,0x20,0x7F,0xB5,0x17,0x4D, 0x17,0x4B,0x5B,0x1B,0x03,0x93,0x17,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0,0x00,0x20, 0x01,0x21,0x03,0xAA,0x04,0x23,0x00,0x90,0x03,0xF0,0x04,0xFA,0x12,0x4E,0x18,0xE0, 0x14,0x2C,0x00,0xDD,0x14,0x24,0xE1,0xB2,0x08,0x1C,0x03,0xE0,0x01,0x38,0xC0,0xB2, 0x2B,0x5C,0x33,0x54,0x00,0x28,0xF9,0xD1,0x0A,0x4B,0x1B,0x78,0x00,0x2B,0x04,0xD0, 0x09,0x4A,0x01,0x23,0x00,0x90,0x03,0xF0,0xED,0xF9,0x03,0x9B,0x2D,0x19,0x1B,0x1B, 0x03,0x93,0x03,0x9C,0x00,0x2C,0xE3,0xD1,0x7F,0xBD,0xC0,0x46,0x0C,0x1E,0x00,0x20, 0x00,0x20,0x00,0x20,0xEF,0x01,0x00,0x20,0x58,0x11,0x00,0x20,0xF0,0xB5,0xB0,0x4B, 0x85,0xB0,0x04,0x33,0xDB,0x7F,0x00,0x22,0xAE,0x48,0x0A,0x21,0x09,0xE0,0x01,0x3B, 0xDB,0xB2,0x0C,0x1C,0x5C,0x43,0x04,0x19,0x3C,0x25,0x64,0x5F,0x00,0x2C,0x00,0xD0, 0x01,0x22,0x00,0x2B,0xF3,0xD1,0xA8,0x4B,0xA8,0x49,0x1B,0x78,0x07,0xE0,0x01,0x3B, 0xDB,0xB2,0x18,0x1D,0x40,0x00,0x40,0x5E,0x00,0x28,0x00,0xD0,0x01,0x22,0x00,0x2B, 0xF5,0xD1,0xA3,0x49,0x00,0x2A,0x04,0xD1,0x0B,0x68,0xA2,0x48,0x83,0x42,0x01,0xD0, 0x01,0x33,0x0B,0x60,0xA0,0x49,0x00,0x23,0x0B,0x70,0x9A,0x4B,0x18,0x68,0x98,0x4B, 0x00,0x28,0x60,0xD1,0x99,0x48,0x00,0x68,0x00,0x28,0x5C,0xD1,0x18,0x1C,0x34,0x30, 0x04,0x78,0x9A,0x4E,0x00,0x2C,0x25,0xD1,0x99,0x4D,0x28,0x78,0x01,0x28,0x0B,0xD1, 0x98,0x4B,0x08,0x70,0x1C,0x70,0x98,0x4B,0x34,0x70,0x18,0x70,0x01,0xF0,0x44,0xFC, 0x01,0xF0,0x5E,0xFC,0x2C,0x70,0x10,0xE1,0x18,0x1C,0x94,0x4D,0x3C,0x30,0x00,0x78, 0x2D,0x68,0x85,0x42,0x0E,0xDB,0x92,0x48,0x3D,0x33,0x05,0x68,0x01,0x35,0x05,0x60, 0x1B,0x78,0x9D,0x42,0x06,0xDB,0x8B,0x4B,0x04,0x60,0x1C,0x70,0x8A,0x4B,0x1C,0x70, 0x02,0x23,0x0B,0x70,0x8B,0x49,0x89,0x4B,0x0C,0x68,0x00,0x20,0x18,0x60,0x30,0x70, 0x0B,0x1C,0x84,0x42,0x0E,0xDD,0x01,0x3C,0x0C,0x60,0x82,0x42,0x00,0xD0,0x08,0x60, 0x1A,0x68,0x01,0x2A,0x00,0xD0,0xD2,0xE0,0x00,0x22,0x1A,0x60,0x7A,0x4B,0x03,0x22, 0x1A,0x70,0xE2,0xE0,0x80,0x4B,0x81,0x4A,0x04,0x33,0xDB,0x8F,0x93,0x42,0x00,0xD1, 0xC5,0xE0,0x7F,0x4A,0x12,0x68,0x9A,0x42,0x00,0xDA,0xC0,0xE0,0x6C,0x4B,0x70,0x48, 0x1A,0x1C,0x3E,0x32,0x12,0x78,0x00,0x68,0x90,0x42,0x00,0xDA,0xB7,0xE0,0x3F,0x33, 0x1B,0x78,0x0B,0x60,0xB3,0xE0,0x04,0x33,0xD8,0x7F,0x00,0x23,0x1A,0x1C,0x75,0x49, 0x31,0xE0,0x01,0x38,0xC0,0xB2,0x0A,0x24,0x44,0x43,0x62,0x4F,0x3D,0x19,0x3C,0x26, 0xAD,0x5F,0x00,0x2D,0x27,0xDD,0x0C,0x19,0x3C,0x27,0xE4,0x5F,0x00,0x2C,0x22,0xDD, 0x44,0x00,0x0D,0x19,0xAF,0x88,0x5B,0x4D,0x3E,0xB2,0x2C,0x19,0xA4,0x88,0x25,0xB2, 0x76,0x1B,0x02,0xD4,0x3C,0x1B,0xA4,0xB2,0x01,0xE0,0xE4,0x1B,0xA4,0xB2,0x05,0x1C, 0x64,0x4E,0x54,0x4F,0x10,0x35,0x6D,0x00,0xA2,0x18,0xAC,0x5B,0xED,0x5B,0x27,0xB2, 0x2E,0xB2,0x92,0xB2,0xBF,0x1B,0x02,0xD4,0x64,0x1B,0xA4,0xB2,0x01,0xE0,0x2C,0x1B, 0xA4,0xB2,0xE3,0x18,0x9B,0xB2,0x00,0x28,0xCB,0xD1,0x56,0x49,0x08,0x60,0x52,0x49, 0x0C,0x78,0x47,0x49,0x00,0x2C,0x35,0xD0,0x34,0x31,0x0B,0x78,0x00,0x2B,0x6E,0xD1, 0x53,0x4C,0x55,0x4A,0x23,0x68,0x13,0x80,0x54,0x4B,0x1B,0x68,0x53,0x80,0x54,0x4B, 0x1B,0x78,0x00,0x2B,0x05,0xD0,0x01,0x23,0x02,0x21,0x00,0x93,0x0B,0x1C,0x03,0xF0, 0xF1,0xF8,0x3B,0x49,0x20,0x68,0x4A,0x8F,0x40,0x4B,0x90,0x42,0x12,0xDA,0x46,0x4A, 0x4A,0x48,0x45,0x32,0x12,0x78,0x00,0x68,0x90,0x42,0x0B,0xDA,0x1B,0x78,0x00,0x2B, 0x4D,0xD1,0x3E,0x4B,0x3C,0x31,0x1A,0x68,0x09,0x78,0x8A,0x42,0x47,0xDA,0x01,0x32, 0x1A,0x60,0x44,0xE0,0x01,0x22,0x1A,0x70,0x38,0x4A,0x00,0x23,0x13,0x60,0x38,0x4A, 0x13,0x60,0x3C,0xE0,0x08,0x1C,0x34,0x30,0x00,0x78,0x00,0x28,0x37,0xD1,0x38,0x48, 0x09,0x8F,0x00,0x68,0x88,0x42,0x09,0xDB,0x33,0x49,0x38,0x48,0x45,0x31,0x09,0x78, 0x00,0x68,0x88,0x42,0x02,0xDB,0x29,0x49,0x01,0x20,0x08,0x70,0x29,0x49,0x09,0x78, 0x00,0x29,0x08,0xD1,0x1E,0x49,0x08,0x8F,0x2C,0x49,0x88,0x42,0x1F,0xD0,0x23,0x49, 0x09,0x78,0x00,0x29,0x1B,0xD0,0x1B,0x49,0x09,0x68,0x01,0x29,0x05,0xDC,0x18,0x49, 0xC9,0x8E,0x8A,0x42,0x01,0xD8,0x8B,0x42,0x0E,0xD9,0x1E,0x4B,0x00,0x22,0x1E,0x49, 0x1A,0x70,0x01,0x23,0x0B,0x70,0x19,0x49,0x0A,0x70,0x17,0x4A,0x13,0x70,0x01,0xF0, 0x4B,0xFB,0x01,0xF0,0x65,0xFB,0x02,0xE0,0x15,0x4B,0x01,0x22,0x1A,0x70,0x0C,0x4B, 0x34,0x33,0x1B,0x78,0x00,0x2B,0x10,0xD0,0x12,0x4B,0x1A,0x78,0x00,0x2A,0x0C,0xD0, 0x0D,0x4A,0x00,0x21,0x51,0x56,0x03,0x29,0x07,0xD0,0x0F,0x49,0x09,0x78,0x48,0x42, 0x41,0x41,0x01,0x31,0x11,0x70,0x00,0x22,0x1A,0x70,0x05,0xB0,0xF0,0xBD,0xC0,0x46, 0xB2,0x09,0x00,0x20,0xA0,0x0D,0x00,0x20,0x80,0x09,0x00,0x20,0xE4,0x00,0x00,0x20, 0xCC,0x01,0x00,0x20,0xFF,0xFF,0xFF,0x7F,0xB7,0x01,0x00,0x20,0xD8,0x01,0x00,0x20, 0xB8,0x01,0x00,0x20,0xE0,0x01,0x00,0x20,0xE1,0x01,0x00,0x20,0xDC,0x01,0x00,0x20, 0xD4,0x01,0x00,0x20,0xD0,0x01,0x00,0x20,0x4C,0x0D,0x00,0x20,0xFF,0xFF,0x00,0x00, 0x38,0x11,0x00,0x20,0x24,0x03,0x00,0x20,0x58,0x11,0x00,0x20,0x3C,0x11,0x00,0x20, 0xEF,0x01,0x00,0x20,0x13,0xB5,0x1E,0x4B,0x1B,0x78,0x00,0x2B,0x37,0xD0,0x1D,0x4C, 0x00,0x23,0x23,0x70,0x1C,0x4B,0x04,0x20,0x1B,0x68,0x98,0x47,0x1B,0x4B,0x1C,0x4A, 0x59,0x68,0x1B,0x68,0x11,0x80,0x53,0x80,0x1A,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0, 0x01,0x23,0x02,0x21,0x00,0x93,0x18,0x20,0x0B,0x1C,0x03,0xF0,0x33,0xF8,0x23,0x78, 0x15,0x4C,0x00,0x2B,0x1A,0xD0,0x13,0x4B,0x1B,0x78,0x00,0x2B,0x03,0xD0,0x00,0x20, 0x12,0x49,0x03,0xF0,0x7F,0xF8,0x12,0x4A,0x01,0x23,0x13,0x70,0x22,0x68,0x02,0x2A, 0x04,0xDC,0xD2,0x18,0x22,0x60,0x0F,0x4A,0x13,0x70,0x08,0xE0,0xFF,0xF7,0xE8,0xFD, 0x0D,0x4B,0x0D,0x22,0x1A,0x70,0x00,0x23,0x23,0x60,0x00,0xE0,0x23,0x60,0x13,0xBD, 0x20,0x03,0x00,0x20,0x41,0x11,0x00,0x20,0xFC,0x01,0x00,0x20,0x74,0x01,0x00,0x20, 0x58,0x11,0x00,0x20,0xEF,0x01,0x00,0x20,0x88,0x01,0x00,0x20,0x2C,0x57,0x00,0x00, 0x4C,0x11,0x00,0x20,0x18,0x09,0x00,0x20,0x21,0x03,0x00,0x20,0x10,0xB5,0x4C,0x4B, 0x1B,0x78,0x00,0x2B,0x0A,0xD0,0x4B,0x4B,0x1B,0x68,0x98,0x47,0x01,0xF0,0xA4,0xFA, 0x01,0xF0,0xBE,0xFA,0x01,0xF0,0xFC,0xFE,0x02,0xF0,0x36,0xFB,0x46,0x4A,0x02,0x21, 0x13,0x68,0x8B,0x43,0x13,0x60,0x11,0x68,0x80,0x23,0xDB,0x05,0x98,0x68,0x99,0x60, 0x11,0x68,0x08,0x20,0x81,0x43,0x11,0x60,0x11,0x68,0x98,0x68,0x99,0x60,0x11,0x68, 0x04,0x20,0x81,0x43,0x11,0x60,0x11,0x68,0x98,0x68,0x99,0x60,0x38,0x49,0x09,0x78, 0x00,0x29,0x29,0xD0,0x39,0x49,0x80,0x20,0x0C,0x68,0x40,0x00,0x20,0x43,0x08,0x60, 0x08,0x68,0xA0,0x21,0xC9,0x05,0x8C,0x68,0x88,0x60,0x10,0x68,0x34,0x49,0x01,0x40, 0x11,0x60,0x12,0x68,0x99,0x68,0x9A,0x60,0x32,0x4A,0x01,0x21,0x11,0x70,0x19,0x68, 0x80,0x22,0x52,0x04,0x0A,0x43,0x1A,0x60,0xC0,0x46,0xC0,0x46,0xC0,0x46,0xC0,0x46, 0x62,0xB6,0x2D,0x4A,0x19,0x68,0x0A,0x40,0x1A,0x60,0xBF,0xF3,0x6F,0x8F,0xFA,0x20, 0xC0,0x00,0x02,0xF0,0x1F,0xFC,0x0C,0xE0,0x28,0x48,0x02,0xF0,0x1B,0xFC,0x28,0x4B, 0x1B,0x78,0x00,0x2B,0x05,0xD1,0x27,0x4B,0x1B,0x78,0x00,0x2B,0x01,0xD1,0x02,0xF0, 0x0F,0xFE,0x1D,0x4B,0x02,0x21,0x1A,0x68,0x0A,0x43,0x1A,0x60,0x19,0x68,0x80,0x22, 0xD2,0x05,0x90,0x68,0x91,0x60,0x20,0x49,0x01,0x31,0xC8,0x7F,0x08,0x21,0x00,0x28, 0x06,0xD0,0x18,0x68,0x01,0x43,0x19,0x60,0x19,0x68,0x90,0x68,0x91,0x60,0x05,0xE0, 0x18,0x68,0x88,0x43,0x18,0x60,0x19,0x68,0x90,0x68,0x91,0x60,0x1A,0x68,0x04,0x21, 0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0xFA,0x20,0x99,0x68,0xC0,0x00, 0x9A,0x60,0x02,0xF0,0xE7,0xFB,0x06,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0,0x0F,0x4C, 0x0D,0x20,0x23,0x68,0x98,0x47,0x23,0x68,0x12,0x20,0x98,0x47,0x10,0xBD,0xC0,0x46, 0xEC,0x01,0x00,0x20,0x6C,0x00,0x00,0x20,0x14,0x00,0x00,0x20,0x0C,0x00,0x00,0x20, 0xFF,0xFE,0xFF,0xFF,0x2C,0x00,0x00,0x20,0xFF,0xFF,0xFF,0xFE,0x40,0x42,0x0F,0x00, 0xE9,0x01,0x00,0x20,0xE8,0x01,0x00,0x20,0xB2,0x09,0x00,0x20,0xFC,0x01,0x00,0x20, 0x10,0xB5,0x25,0x4B,0x02,0x24,0x19,0x78,0x24,0x4B,0x4A,0xB2,0x1B,0x78,0x00,0x2B, 0x25,0xD0,0x23,0x4B,0x1B,0x78,0x00,0x2B,0x21,0xD1,0x22,0x4B,0x1B,0x78,0x00,0x2B, 0x1D,0xD1,0x21,0x4B,0xA2,0x42,0x07,0xD0,0x20,0x48,0x80,0x7B,0x00,0x28,0x03,0xD1, 0x1F,0x48,0x00,0x68,0x00,0x28,0x03,0xD0,0x00,0x21,0x19,0x60,0x01,0x24,0x0E,0xE0, 0x1C,0x4A,0x18,0x68,0x92,0x68,0x90,0x42,0x01,0xDA,0x01,0x30,0x18,0x60,0x00,0x29, 0x1E,0xD0,0x15,0x4B,0x00,0x24,0x1B,0x68,0x93,0x42,0x0E,0xDA,0x18,0xE0,0x63,0xB2, 0x93,0x42,0x15,0xD0,0x01,0x2B,0x0D,0xD0,0x02,0x2B,0x02,0xD0,0x00,0x2B,0x04,0xD0, 0x0C,0xE0,0x00,0x20,0x02,0xF0,0x3C,0xFB,0x08,0xE0,0x0E,0x4B,0x58,0x68,0x02,0xF0, 0x37,0xFB,0x03,0xE0,0x0B,0x4B,0x18,0x68,0x02,0xF0,0x32,0xFB,0x02,0x4B,0x1C,0x70, 0x02,0xF0,0x20,0xFB,0x10,0xBD,0xC0,0x46,0x3C,0x00,0x00,0x20,0x20,0x03,0x00,0x20, 0xE7,0x01,0x00,0x20,0xE6,0x01,0x00,0x20,0x5C,0x00,0x00,0x20,0x74,0x01,0x00,0x20, 0xE4,0x00,0x00,0x20,0x00,0x03,0x00,0x20,0x08,0xB5,0x02,0xF0,0x3B,0xFB,0x08,0xBD, 0x08,0xB5,0x02,0xF0,0x29,0xFB,0x08,0xBD,0x08,0xB5,0x02,0xF0,0xC1,0xFA,0x80,0x23, 0xDB,0x05,0x9A,0x6C,0x01,0x21,0x0A,0x43,0x9A,0x64,0xFF,0xF7,0xF1,0xFF,0x08,0xBD, 0xF0,0xB5,0x87,0xB0,0xFF,0xF7,0xF0,0xFF,0x78,0x4A,0x79,0x4C,0x53,0x78,0x15,0x78, 0x78,0x48,0x10,0xE0,0x01,0x3B,0xDB,0xB2,0x9A,0x1C,0x67,0x46,0xB2,0x18,0x79,0x01, 0x52,0x00,0x12,0x5B,0xC9,0x18,0x4F,0x00,0x3A,0x52,0x73,0x4A,0x00,0x27,0x8F,0x54, 0x00,0x2B,0xEF,0xD1,0x63,0x46,0x5A,0x1E,0xD2,0xB2,0x00,0x2B,0x04,0xD0,0x56,0x1C, 0x2B,0x1C,0xB6,0x01,0x94,0x46,0xF3,0xE7,0x6C,0x4B,0x6D,0x4C,0x1B,0x78,0x6D,0x48, 0x67,0x49,0x6D,0x4A,0x0E,0xE0,0x01,0x3B,0xDB,0xB2,0xE5,0x5C,0xC6,0x5C,0x01,0x35, 0x02,0x36,0xAD,0x01,0xAD,0x19,0x6D,0x00,0x6E,0x5A,0x5D,0x00,0xAE,0x52,0x67,0x4D, 0x00,0x26,0xEE,0x54,0x00,0x2B,0xEE,0xD1,0x65,0x25,0x03,0x95,0x5B,0x4C,0x66,0xE0, 0xFF,0xF7,0xB2,0xFF,0x26,0x78,0x63,0x78,0x05,0x96,0x2D,0xE0,0x01,0x3B,0xDB,0xB2, 0x58,0x4F,0xF0,0x18,0x04,0x9D,0x40,0x00,0x9A,0x1C,0xC0,0x5B,0xAD,0x18,0x54,0x4F, 0x6D,0x00,0xEF,0x5B,0xC7,0x1B,0x04,0xD4,0x51,0x4F,0xED,0x5B,0x45,0x1B,0x02,0x95, 0x03,0xE0,0x4F,0x4F,0xED,0x5B,0x2D,0x1A,0x02,0x95,0x04,0x98,0x87,0x18,0x4C,0x48, 0x7F,0x00,0xC0,0x5B,0x4B,0x4F,0x84,0x46,0xF0,0x18,0x42,0x00,0x15,0x1C,0x62,0x46, 0xEA,0x53,0x49,0x4D,0x2F,0x5C,0x02,0x9D,0xBD,0x42,0x00,0xDA,0x3D,0x1C,0x46,0x4F, 0x3D,0x54,0x00,0x2B,0xD2,0xD1,0x0B,0x1C,0x59,0x1E,0xC9,0xB2,0x00,0x2B,0x05,0xD0, 0x48,0x1C,0x80,0x01,0x05,0x9B,0x4E,0x01,0x04,0x90,0xF2,0xE7,0x3F,0x4B,0x3C,0x4A, 0x1B,0x78,0x22,0xE0,0x3E,0x4D,0x01,0x3B,0xDB,0xB2,0x3E,0x4F,0xEE,0x5C,0x3E,0x48, 0xFD,0x5C,0x59,0x00,0x01,0x36,0x09,0x5A,0x02,0x35,0xB0,0x01,0x40,0x19,0x40,0x00, 0x87,0x5A,0x80,0x5A,0xCF,0x1B,0x01,0xD4,0x09,0x1A,0x00,0xE0,0x41,0x1A,0xB6,0x01, 0x75,0x19,0x2F,0x48,0x6D,0x00,0x46,0x5B,0x33,0x48,0x5D,0x00,0x2E,0x52,0x33,0x48, 0xC5,0x5C,0xA9,0x42,0x00,0xDA,0x29,0x1C,0xC1,0x54,0x00,0x2B,0xDA,0xD1,0x03,0x9B, 0x01,0x3B,0xDB,0xB2,0x03,0x93,0x00,0x2B,0x92,0xD1,0x61,0x78,0x24,0x78,0x24,0x4A, 0x04,0x94,0x1E,0xE0,0x01,0x3B,0xDB,0xB2,0x45,0x01,0xED,0x18,0x21,0x4F,0x6D,0x00, 0xEE,0x5B,0x25,0x88,0xAC,0x46,0x9D,0x1C,0x66,0x45,0x09,0xD9,0x27,0x88,0xF6,0x1B, 0x8F,0x01,0xBC,0x46,0x65,0x44,0x6D,0x00,0xB6,0xB2,0xAF,0x5A,0xAE,0x52,0x05,0xE0, 0x8E,0x01,0x75,0x19,0x6D,0x00,0xAE,0x5A,0x00,0x26,0xAE,0x52,0x00,0x2B,0xE1,0xD1, 0x01,0x1C,0x48,0x1E,0xC0,0xB2,0x00,0x29,0x05,0xD0,0x41,0x1C,0x18,0x4F,0xCC,0x01, 0x04,0x9B,0xE4,0x19,0xF2,0xE7,0x11,0x4B,0x13,0x4F,0x1B,0x78,0x10,0x4E,0x15,0x48, 0x10,0xE0,0x01,0x3B,0xDB,0xB2,0xF5,0x5C,0x13,0x49,0xED,0x01,0x5A,0x00,0x6D,0x18, 0xD4,0x5B,0x29,0x88,0x8C,0x42,0x03,0xD9,0x2D,0x88,0x64,0x1B,0x84,0x52,0x01,0xE0, 0x00,0x25,0x85,0x52,0x00,0x2B,0xEC,0xD1,0x07,0xB0,0xF0,0xBD,0x0E,0x03,0x00,0x20, 0x00,0x40,0x00,0x40,0xFC,0x03,0x00,0x20,0xB7,0x0A,0x00,0x20,0x80,0x09,0x00,0x20, 0x30,0x75,0x00,0x00,0x2A,0x75,0x00,0x00,0x18,0x02,0x00,0x20,0xA8,0x0A,0x00,0x20, 0x02,0x40,0x00,0x40,0x40,0x0D,0x00,0x20,0x82,0x40,0x00,0x40,0xF0,0xB5,0x87,0xB0, 0x02,0xF0,0x26,0xF8,0x02,0xF0,0x3C,0xF9,0x00,0x28,0xFB,0xD1,0x52,0x4B,0x1B,0x78, 0x02,0x2B,0x09,0xD0,0x51,0x4B,0x52,0x49,0x40,0x33,0x1A,0x78,0x53,0x42,0x54,0x18, 0xE0,0x54,0x01,0x33,0x93,0x42,0xFA,0xDD,0x4C,0x4E,0x4E,0x4F,0x33,0x1C,0x40,0x33, 0x1C,0x78,0x64,0x42,0x0C,0xE0,0xFA,0x78,0x80,0x23,0x12,0x19,0xD2,0xB2,0xDB,0x05, 0x1A,0x71,0xFF,0xF7,0xC1,0xFE,0x28,0x78,0x20,0x18,0x03,0xF0,0xE7,0xFD,0x01,0x34, 0x35,0x1C,0x40,0x35,0x2B,0x78,0x9C,0x42,0xED,0xDD,0x00,0x26,0x25,0xE0,0x2C,0x78, 0x2F,0x1C,0x64,0x42,0x40,0x3F,0x1A,0xE0,0x3E,0x4B,0xDA,0x78,0x80,0x23,0x12,0x19, 0xDB,0x05,0xD2,0xB2,0x1A,0x71,0xFF,0xF7,0xA7,0xFE,0x2D,0x78,0x04,0xA9,0x65,0x19, 0x05,0xAA,0x28,0x1C,0x03,0xF0,0xEC,0xFD,0x35,0x49,0x04,0x9B,0x4A,0x5D,0xFF,0x2B, 0x00,0xDD,0xFF,0x23,0x9A,0x42,0x00,0xDA,0x1A,0x1C,0x4A,0x55,0x01,0x34,0x3D,0x1C, 0x40,0x35,0x2B,0x78,0x9C,0x42,0xDF,0xDD,0x01,0x36,0x2F,0x4A,0x2B,0x4D,0x13,0x78, 0x40,0x35,0x9E,0x42,0xD3,0xDB,0x01,0xF0,0xBB,0xFF,0x2C,0x49,0x2A,0x78,0x0D,0x78, 0x2B,0x49,0x27,0x48,0x09,0x78,0x01,0x23,0x03,0x91,0x9B,0x1A,0x00,0x21,0x29,0x4C, 0x10,0x18,0x94,0x46,0x11,0xE0,0xC6,0x18,0x72,0x1E,0x12,0x78,0xC7,0x5C,0x6A,0x43, 0x02,0x92,0x03,0x9A,0x57,0x43,0x02,0x9A,0xD7,0x19,0x72,0x78,0x6A,0x43,0xBA,0x18, 0x94,0x42,0x01,0xDB,0x94,0xB2,0x19,0x1C,0x01,0x33,0x9C,0x45,0xEB,0xDC,0x19,0x4B, 0x1D,0x4C,0xDA,0x78,0x51,0x18,0xC9,0xB2,0x99,0x70,0x13,0x4B,0x18,0x78,0x00,0x28, 0x05,0xD1,0x23,0x78,0x00,0x2B,0x02,0xD0,0x18,0x49,0x02,0xF0,0x93,0xFD,0x23,0x78, 0x00,0x2B,0x0B,0xD0,0x0D,0x4B,0x00,0x20,0x40,0x33,0x19,0x78,0x0C,0x4A,0x49,0x00, 0x01,0x31,0xC9,0xB2,0x01,0x23,0x00,0x90,0x02,0xF0,0x2C,0xFD,0x0E,0x4B,0x1B,0x78, 0x00,0x2B,0x06,0xD0,0x01,0x21,0x00,0x20,0x0D,0x4A,0x0B,0x1C,0x00,0x90,0x02,0xF0, 0x21,0xFD,0x07,0xB0,0xF0,0xBD,0xC0,0x46,0xE4,0x01,0x00,0x20,0x4C,0x0D,0x00,0x20, 0x97,0x01,0x00,0x20,0xAE,0x0A,0x00,0x20,0x8B,0x0D,0x00,0x20,0x54,0x00,0x00,0x20, 0x55,0x00,0x00,0x20,0xFF,0xFF,0x00,0x00,0xEF,0x01,0x00,0x20,0x36,0x57,0x00,0x00, 0xB0,0x0A,0x00,0x20,0x10,0xB5,0x0D,0x4B,0x0D,0x4C,0x1B,0x68,0x00,0x2B,0x07,0xD0, 0xFF,0xF7,0xEC,0xFA,0x23,0x78,0x00,0x2B,0x02,0xD1,0x02,0xF0,0x1B,0xF8,0xFE,0xE7, 0x23,0x78,0x00,0x2B,0x09,0xD0,0x07,0x4C,0x23,0x68,0xDA,0x00,0x05,0xD5,0xFF,0xF7, 0xDD,0xFA,0x22,0x68,0x04,0x4B,0x13,0x40,0x23,0x60,0x10,0xBD,0x0C,0x1E,0x00,0x20, 0xEF,0x01,0x00,0x20,0x58,0x00,0x00,0x20,0xFF,0xFF,0xFF,0xEF,0x10,0xB5,0x02,0x28, 0x04,0xD0,0x03,0x28,0x45,0xD0,0x01,0x28,0x33,0xD1,0x15,0xE0,0xFF,0xF7,0xA8,0xFA, 0x29,0x4B,0x2A,0x4C,0x40,0x33,0x1B,0x78,0x29,0x49,0x50,0x22,0x23,0x70,0x29,0x48, 0x04,0xF0,0xB6,0xF9,0x28,0x4B,0x0D,0x20,0x1B,0x68,0x98,0x47,0xFF,0xF7,0xA6,0xFA, 0x23,0x78,0x10,0x2B,0x1A,0xD1,0x14,0xE0,0xFF,0xF7,0x92,0xFA,0x1E,0x4B,0x1F,0x4C, 0x40,0x33,0x1B,0x78,0x21,0x49,0x50,0x22,0x23,0x70,0x1E,0x48,0x04,0xF0,0xA0,0xF9, 0x1D,0x4B,0x0C,0x20,0x1B,0x68,0x98,0x47,0xFF,0xF7,0x90,0xFA,0x23,0x78,0x10,0x2B, 0x04,0xD1,0x1B,0x4B,0xDA,0x78,0x9A,0x70,0x02,0xF0,0xE7,0xFA,0x02,0xF0,0x6A,0xFA, 0x20,0xE0,0x18,0x4B,0x1A,0x78,0x00,0x2A,0x05,0xD0,0x17,0x4A,0x11,0x68,0x01,0x31, 0x11,0x60,0x00,0x22,0x1A,0x70,0x15,0x4B,0x1A,0x68,0x13,0x2A,0x05,0xDD,0x00,0x22, 0x1A,0x60,0x0A,0x4B,0x10,0x22,0x1A,0x70,0x0C,0xE0,0x0F,0x4B,0x1A,0x68,0x3B,0x2A, 0x08,0xDD,0x00,0x22,0x1A,0x60,0x0E,0x4B,0x01,0x20,0x1B,0x68,0x98,0x47,0x0D,0x4B, 0x01,0x22,0x1A,0x70,0x10,0xBD,0xC0,0x46,0xB2,0x09,0x00,0x20,0x21,0x03,0x00,0x20, 0x4A,0x74,0x00,0x00,0x4C,0x0D,0x00,0x20,0xFC,0x01,0x00,0x20,0x9A,0x74,0x00,0x00, 0xAE,0x0A,0x00,0x20,0xC8,0x01,0x00,0x20,0xC4,0x01,0x00,0x20,0xC0,0x01,0x00,0x20, 0x70,0x00,0x00,0x20,0xEB,0x01,0x00,0x20,0x10,0xB5,0x0C,0x4B,0x01,0x22,0x99,0x79, 0x00,0x23,0x00,0xE0,0x23,0x1C,0x5C,0x1C,0x10,0x1C,0xE4,0xB2,0x98,0x40,0x81,0x42, 0xF8,0xDA,0x07,0x4A,0x07,0x21,0x13,0x71,0x80,0x22,0xD2,0x05,0x0B,0x40,0x19,0x02, 0x10,0x6C,0x04,0x4B,0x03,0x40,0x0B,0x43,0x13,0x64,0x10,0xBD,0x4C,0x0D,0x00,0x20, 0x5C,0x00,0x00,0x20,0xFF,0xF8,0xFF,0xFF,0x06,0x4B,0x07,0x22,0xD9,0x79,0x80,0x23, 0xDB,0x05,0x18,0x6C,0x11,0x40,0x04,0x4A,0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x64, 0x70,0x47,0xC0,0x46,0x4C,0x0D,0x00,0x20,0xFF,0xF8,0xFF,0xFF,0xF0,0xB5,0x8D,0xB0, 0x04,0x90,0xFF,0xF7,0xC9,0xFF,0xC3,0x4B,0xC3,0x48,0xDE,0x78,0x00,0x21,0x05,0x96, 0x9C,0x78,0x07,0xE0,0x01,0x3B,0xDB,0xB2,0xEE,0x18,0x76,0x00,0x31,0x52,0x00,0x2B, 0xF8,0xD1,0x05,0x92,0x05,0x9A,0x05,0x9E,0x01,0x3A,0xD2,0xB2,0x00,0x2E,0x02,0xD0, 0x23,0x1C,0x55,0x01,0xF3,0xE7,0x04,0x9F,0x00,0x2F,0x05,0xD0,0xB7,0x4B,0x05,0x9E, 0x5B,0x7B,0x06,0x96,0x03,0x93,0x04,0xE0,0xB5,0x4B,0x02,0x27,0x9B,0x78,0x06,0x97, 0x03,0x93,0x68,0x46,0x0C,0x21,0x0B,0x56,0xAE,0x4C,0x0B,0x93,0x5B,0x42,0x09,0x93, 0xAA,0xE0,0x6A,0x46,0x18,0x23,0x9A,0x56,0xE6,0x7A,0x27,0x1C,0x02,0x92,0x0D,0xE0, 0x30,0x1C,0x00,0x21,0x2A,0x1C,0x02,0x9B,0x02,0xF0,0x62,0xF9,0x30,0x1C,0x01,0x21, 0x2A,0x1C,0x02,0x9B,0x02,0xF0,0x5C,0xF9,0x01,0x36,0xF6,0xB2,0xBB,0x7A,0xFA,0x7A, 0xD2,0x18,0x3B,0x1C,0x96,0x42,0xEB,0xDB,0x04,0x9E,0x00,0x2E,0x00,0xD1,0x0E,0x3D, 0x68,0x46,0x18,0x21,0x08,0x56,0x5E,0x7B,0x9A,0x4F,0x02,0x90,0x0D,0xE0,0x30,0x1C, 0x00,0x21,0x2A,0x1C,0x02,0x9B,0x02,0xF0,0x43,0xF9,0x30,0x1C,0x01,0x21,0x2A,0x1C, 0x02,0x9B,0x02,0xF0,0x3D,0xF9,0x01,0x36,0xF6,0xB2,0x7A,0x7B,0x3B,0x7B,0xD3,0x18, 0x9E,0x42,0xEC,0xDB,0xFF,0xF7,0xE8,0xFC,0x92,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0, 0x01,0x23,0x18,0x1C,0x19,0x1C,0x0B,0xAA,0x00,0x93,0x02,0xF0,0xC3,0xFB,0x00,0x25, 0x88,0x4E,0x8C,0x4F,0x0E,0xE0,0x3B,0x78,0x00,0x2B,0x09,0xD0,0x8A,0x4B,0xEA,0x01, 0xD2,0x18,0x00,0x23,0xB1,0x78,0x01,0x20,0x00,0x93,0x02,0x23,0x02,0xF0,0xB2,0xFB, 0x01,0x35,0xED,0xB2,0xF3,0x78,0x9D,0x42,0xED,0xD3,0x0B,0x9A,0xB6,0x78,0xD2,0xB2, 0x02,0x96,0x07,0x92,0x7C,0x4D,0x39,0xE0,0x01,0x3B,0xDB,0xB2,0x08,0x9E,0x99,0x1C, 0x71,0x18,0x7E,0x4F,0x49,0x00,0xCE,0x5B,0xD1,0x18,0x48,0x00,0x40,0x5B,0xB7,0xB2, 0xB8,0x42,0x14,0xDC,0xC0,0x1B,0x01,0x1C,0x80,0x31,0x01,0xDA,0x80,0x20,0x40,0x42, 0xD7,0x18,0x7F,0x28,0x00,0xDD,0x7F,0x20,0x75,0x49,0x78,0x54,0xD1,0x18,0x48,0x00, 0x2E,0x52,0x1C,0x27,0x6E,0x46,0x73,0x48,0xBE,0x5D,0x0E,0x54,0x13,0xE0,0x04,0x9E, 0x00,0x2E,0x10,0xD0,0x70,0x4E,0xB0,0x42,0x08,0xD0,0x6D,0x4E,0x8E,0x57,0x80,0x19, 0x87,0x42,0x03,0xDA,0x6B,0x48,0x0E,0x5C,0x01,0x36,0x0E,0x54,0xD1,0x18,0x01,0x27, 0x49,0x00,0x7F,0x42,0x6F,0x52,0x00,0x2B,0xC6,0xD1,0x63,0x46,0x5E,0x1E,0xF6,0xB2, 0x00,0x2B,0x06,0xD0,0x72,0x1C,0x92,0x01,0x08,0x92,0x02,0x9B,0x72,0x01,0xB4,0x46, 0xF1,0xE7,0x0B,0x9B,0x01,0x3B,0x0B,0x93,0x0B,0x9D,0x09,0x9E,0xB5,0x42,0x00,0xDB, 0x4F,0xE7,0x04,0x9F,0x00,0x2F,0x45,0xD0,0xA0,0x78,0xE3,0x78,0x04,0x90,0x61,0x78, 0x52,0x4A,0x06,0x91,0x24,0x78,0x02,0x94,0x11,0x7C,0xD0,0x7A,0x57,0x4C,0x08,0x18, 0xC0,0xB2,0x07,0x90,0x12,0x7B,0x89,0x18,0xC9,0xB2,0x08,0x91,0x51,0x4A,0x28,0xE0, 0x03,0x9E,0x01,0x3B,0xDB,0xB2,0x00,0x2E,0x01,0xD1,0xC7,0x18,0xD6,0x55,0x06,0x9E, 0xB1,0x42,0x02,0xD2,0x02,0x9F,0xBB,0x42,0x0C,0xD3,0xEF,0x18,0xC6,0x18,0x09,0x97, 0x97,0x5D,0xBC,0x46,0x09,0x9F,0xE7,0x5D,0xBC,0x44,0x08,0x9F,0xBC,0x44,0x67,0x46, 0x97,0x55,0x0B,0xE0,0xEF,0x18,0xC6,0x18,0x09,0x97,0x97,0x5D,0xBC,0x46,0x09,0x9F, 0xE7,0x5D,0xBC,0x44,0x07,0x9F,0xBC,0x44,0x67,0x46,0x97,0x55,0x00,0x2B,0xD7,0xD1, 0x0B,0x1C,0x59,0x1E,0xC9,0xB2,0x00,0x2B,0x4D,0xD0,0x26,0x25,0x04,0x9B,0x48,0x01, 0x4D,0x43,0xF3,0xE7,0x63,0x7C,0xE2,0x79,0x07,0x25,0x9A,0x18,0x03,0x92,0x30,0x4A, 0xA0,0x7B,0x02,0x21,0x52,0x5E,0x26,0x79,0xAD,0x1A,0x6D,0x00,0x86,0x19,0xED,0xB2, 0x30,0x49,0x84,0x46,0x09,0xE0,0xB8,0x18,0x44,0x5C,0x01,0x32,0x2C,0x19,0x44,0x54, 0xD2,0xB2,0xB2,0x42,0xF7,0xDB,0x01,0x33,0xDB,0xB2,0x03,0x9A,0x93,0x42,0x02,0xDA, 0x62,0x46,0x5F,0x01,0xF5,0xE7,0x1F,0x4A,0x26,0x49,0x10,0x7C,0xD3,0x7B,0x56,0x79, 0x95,0x79,0x9E,0x19,0x45,0x19,0x84,0x46,0x09,0xE0,0xB8,0x18,0x44,0x5C,0x01,0x32, 0x0E,0x3C,0x44,0x54,0xD2,0xB2,0xAA,0x42,0xF7,0xDB,0x01,0x33,0xDB,0xB2,0xB3,0x42, 0x11,0xDA,0x62,0x46,0x5F,0x01,0xF6,0xE7,0x2B,0x78,0x00,0x2B,0x08,0xD0,0x19,0x4B, 0x72,0x01,0xA1,0x78,0xD2,0x18,0x05,0x20,0x01,0x23,0x00,0x93,0x02,0xF0,0xCA,0xFA, 0x01,0x36,0xF6,0xB2,0x02,0xE0,0x0B,0x4C,0x0E,0x4D,0x05,0x9E,0xE3,0x78,0xB3,0x42, 0xEA,0xD8,0x00,0x21,0x01,0x20,0x0A,0x1C,0x40,0x42,0x02,0x23,0x02,0xF0,0x20,0xF8, 0x01,0x20,0x40,0x42,0x01,0x21,0x00,0x22,0x02,0x23,0x02,0xF0,0x19,0xF8,0xA4,0x78, 0x24,0xE0,0xC0,0x46,0x0E,0x03,0x00,0x20,0xFC,0x03,0x00,0x20,0x4C,0x0D,0x00,0x20, 0x08,0x02,0x00,0x20,0xEF,0x01,0x00,0x20,0x84,0x40,0x00,0x40,0x00,0x40,0x00,0x40, 0x68,0x0E,0x00,0x20,0xB7,0x0A,0x00,0x20,0xFF,0xFF,0x00,0x00,0x36,0x75,0x00,0x00, 0x01,0x3C,0x00,0x21,0xE4,0xB2,0x0A,0x1C,0x20,0x1C,0x01,0x23,0x01,0xF0,0xF8,0xFF, 0x01,0x21,0x20,0x1C,0x00,0x22,0x0B,0x1C,0x01,0xF0,0xF2,0xFF,0x00,0x2C,0xEF,0xD1, 0xFF,0xF7,0x3A,0xFE,0x0D,0xB0,0xF0,0xBD,0x08,0xB5,0x03,0xF0,0xDF,0xFD,0x05,0x4B, 0x01,0x20,0x1B,0x68,0x98,0x47,0x01,0x20,0x04,0xF0,0x0E,0xFA,0x01,0xF0,0xF6,0xFD, 0x08,0xBD,0xC0,0x46,0xFC,0x01,0x00,0x20,0xF7,0xB5,0x2B,0x4A,0x00,0x20,0x10,0x60, 0x2A,0x4A,0x2B,0x4E,0x11,0x8C,0x2B,0x4A,0x11,0x60,0x72,0x1D,0xD2,0x7F,0xF1,0x7D, 0x50,0x1E,0x44,0x42,0x60,0x41,0x28,0x4C,0x08,0x1A,0x00,0x90,0x20,0x60,0xB0,0x1D, 0xC5,0x7F,0x37,0x7E,0x6B,0x1E,0x58,0x42,0x58,0x41,0x3B,0x1A,0x01,0x93,0x63,0x60, 0x01,0x2A,0x02,0xD1,0x00,0x20,0x20,0x81,0x05,0xE0,0x26,0x23,0xF0,0x5E,0x49,0x00, 0x03,0xF0,0xD4,0xFE,0x20,0x81,0x01,0x2D,0x02,0xD1,0x00,0x23,0x63,0x81,0x05,0xE0, 0x28,0x23,0xF0,0x5E,0x79,0x00,0x03,0xF0,0xC9,0xFE,0x60,0x81,0x14,0x4F,0x01,0x9B, 0x28,0x20,0x3E,0x5E,0x59,0x00,0x70,0x00,0x80,0x19,0x03,0xF0,0xBF,0xFE,0x40,0x43, 0x11,0x4C,0x40,0x00,0xE0,0x60,0x20,0x61,0x26,0x20,0x3D,0x5E,0x00,0x9B,0x68,0x00, 0x59,0x00,0x40,0x19,0x03,0xF0,0xB2,0xFE,0x2C,0x37,0x60,0x61,0xA0,0x61,0x3B,0x78, 0x00,0x2B,0x02,0xD1,0xE6,0x61,0x25,0x62,0x01,0xE0,0xE5,0x61,0x26,0x62,0x07,0x4B, 0x01,0x22,0x52,0x42,0x5A,0x60,0xF7,0xBD,0xA0,0x0D,0x00,0x20,0x4C,0x0D,0x00,0x20, 0xB2,0x09,0x00,0x20,0x24,0x02,0x00,0x20,0x28,0x09,0x00,0x20,0xD0,0x00,0x00,0x20, 0xF0,0xB5,0x24,0x4B,0x87,0xB0,0x1E,0x7E,0xDB,0x7D,0x72,0x1C,0xD9,0x1C,0x02,0x33, 0x03,0x93,0x05,0x92,0x00,0x23,0x20,0x4A,0x04,0x91,0x18,0x1C,0x05,0x9C,0xE5,0x1A, 0xEF,0x01,0x01,0x97,0xBC,0x5A,0xB8,0x52,0x04,0x9C,0xAD,0x01,0x29,0x19,0x4F,0x00, 0xBC,0x5A,0x1A,0x4C,0xB8,0x52,0x00,0x27,0x2F,0x55,0x0F,0x55,0x01,0x99,0x18,0x4F, 0x01,0x33,0xCF,0x19,0x02,0x97,0x39,0x88,0x38,0x80,0x03,0x99,0x6F,0x18,0x79,0x00, 0x01,0x91,0x89,0x5A,0x01,0x99,0x88,0x52,0x12,0x49,0x6D,0x18,0x00,0x21,0x29,0x70, 0x39,0x55,0xF7,0x1A,0x0C,0x4D,0x01,0x37,0xD8,0xDA,0x00,0x22,0x01,0x36,0x03,0x9B, 0x11,0x1C,0xB6,0x01,0x58,0x00,0x2F,0x5A,0x2A,0x52,0xF0,0x18,0x47,0x00,0xEC,0x5B, 0xEA,0x53,0x06,0x4F,0xF9,0x54,0x01,0x3B,0x39,0x54,0x01,0x2B,0xF2,0xD1,0x07,0xB0, 0xF0,0xBD,0xC0,0x46,0xB2,0x09,0x00,0x20,0x00,0x40,0x00,0x40,0x00,0x20,0x00,0x40, 0x02,0x40,0x00,0x40,0x01,0x20,0x00,0x40,0xF7,0xB5,0x0D,0x4B,0x19,0x7E,0xDE,0x7D, 0x48,0x1C,0x01,0x36,0x00,0x23,0x01,0x90,0x01,0x9C,0x32,0x1C,0xE7,0x1A,0xBF,0x01, 0x95,0x1C,0xAC,0x46,0xBC,0x44,0x07,0x4C,0x00,0x25,0x60,0x46,0x01,0x3A,0x05,0x55, 0x50,0x1C,0xF5,0xDA,0x01,0x33,0xCA,0x1A,0x01,0x32,0xED,0xDA,0xF7,0xBD,0xC0,0x46, 0xB2,0x09,0x00,0x20,0x00,0x20,0x00,0x40,0x00,0xB5,0x0F,0x4B,0x1B,0x78,0x01,0x2B, 0x18,0xD0,0x0E,0x4B,0x08,0x22,0x9B,0x5E,0x0D,0x4A,0x11,0x1C,0x35,0x31,0x09,0x78, 0x12,0x7F,0x4B,0x43,0x52,0xB2,0x9B,0x11,0x93,0x42,0x00,0xDA,0x13,0x1C,0x09,0x4A, 0x13,0x60,0x80,0x22,0xD2,0x05,0x1B,0x05,0x19,0x09,0x90,0x69,0x06,0x4B,0x03,0x40, 0x0B,0x43,0x93,0x61,0x00,0xBD,0xC0,0x46,0xE3,0x01,0x00,0x20,0x74,0x01,0x00,0x20, 0x4C,0x0D,0x00,0x20,0x3C,0x0D,0x00,0x20,0xFF,0xFF,0x00,0xF0,0xF0,0xB5,0xA9,0x4A, 0xA9,0x48,0x11,0x68,0x07,0x68,0x93,0xB0,0x8C,0x46,0x0D,0x22,0x00,0x21,0x7F,0x25, 0xFF,0x24,0x01,0x97,0x90,0x00,0x83,0x18,0xA4,0x4E,0x5B,0x00,0xF3,0x18,0x99,0x87, 0x00,0x27,0x38,0x33,0x1F,0x72,0x67,0x46,0x39,0x50,0x01,0x3A,0x01,0x9F,0xD2,0xB2, 0x39,0x50,0x00,0x26,0xDD,0x72,0x5D,0x72,0x1C,0x73,0x9C,0x72,0xD9,0x80,0xFF,0x2A, 0xE8,0xD1,0x9B,0x4A,0x9B,0x4B,0x11,0x7E,0x98,0x68,0x9B,0x4C,0x97,0x4D,0x01,0x39, 0x04,0x90,0xA6,0x81,0x2E,0x60,0x88,0x42,0x02,0xDA,0x01,0x30,0x04,0x90,0x98,0x60, 0xDE,0x68,0x11,0x96,0x00,0x2E,0x02,0xDD,0x01,0x3E,0x11,0x96,0xDE,0x60,0xD1,0x7D, 0x1A,0x68,0x01,0x39,0x8A,0x42,0x01,0xDA,0x01,0x32,0x1A,0x60,0x5A,0x68,0x00,0x2A, 0x01,0xDD,0x01,0x3A,0x5A,0x60,0x04,0x9F,0x11,0x98,0x87,0x42,0x00,0xDA,0xA3,0xE0, 0x19,0x68,0x5B,0x68,0x84,0x4A,0x06,0x93,0x88,0x4B,0x12,0x68,0x1B,0x68,0x86,0x4C, 0x0D,0x93,0x80,0x4B,0x10,0x91,0x1B,0x68,0x09,0x92,0x0A,0x93,0xA4,0x89,0x84,0x48, 0x0C,0x94,0x06,0x9D,0x10,0x9E,0xB5,0x42,0x00,0xDD,0x81,0xE0,0x04,0x9A,0x6F,0x46, 0x10,0x21,0x01,0x32,0xCF,0x5D,0x92,0x01,0x33,0x1C,0x02,0x92,0x07,0x97,0x05,0xE0, 0x00,0x27,0x2F,0x54,0x06,0x9F,0x01,0x3B,0x9F,0x42,0x71,0xDC,0x02,0x99,0x9C,0x1C, 0x0D,0x19,0x2A,0x5C,0x77,0x4E,0x69,0x00,0x89,0x5B,0x0E,0x2A,0xF0,0xD8,0x0D,0x9D, 0x49,0x1B,0x00,0x2A,0x00,0xD1,0x71,0xE0,0x01,0x3A,0xD4,0xB2,0x09,0x9E,0x04,0x9F, 0xA2,0x00,0xB5,0x18,0x4F,0x43,0x2E,0x68,0xB4,0x46,0x67,0x44,0x2F,0x60,0x0A,0x9D, 0x0E,0x1C,0xAF,0x18,0x3D,0x68,0x5E,0x43,0xAC,0x46,0x15,0x19,0x6D,0x00,0x01,0x95, 0x62,0x4D,0x66,0x44,0xAC,0x46,0x01,0x9D,0x3E,0x60,0xAC,0x44,0x65,0x46,0xAF,0x8F, 0x38,0x35,0x2E,0x7A,0xCF,0x19,0x03,0x96,0x09,0x26,0xAE,0x57,0xAF,0x80,0x01,0x96, 0x0C,0x9E,0x6F,0x46,0xB4,0x46,0x01,0x26,0xB4,0x44,0x03,0x9E,0x01,0x36,0x03,0x96, 0x66,0x46,0xB6,0xB2,0x0C,0x96,0x0C,0x26,0xF7,0x5D,0x04,0x9E,0x2F,0x72,0x01,0x9F, 0xBE,0x42,0x00,0xDA,0x6E,0x72,0x51,0x4E,0x15,0x19,0x6D,0x00,0x75,0x19,0x38,0x35, 0x0A,0x26,0xAE,0x57,0x04,0x9F,0xB7,0x42,0x00,0xDD,0xAF,0x72,0x4B,0x4E,0x15,0x19, 0x6D,0x00,0x75,0x19,0x38,0x35,0x0B,0x26,0xAE,0x57,0xB3,0x42,0x00,0xDA,0xEB,0x72, 0x15,0x19,0x46,0x4F,0x6D,0x00,0x7D,0x19,0x38,0x35,0x0C,0x26,0xAE,0x57,0xB3,0x42, 0x00,0xDD,0x2B,0x73,0x12,0x19,0x41,0x4C,0x52,0x00,0xA2,0x18,0x3E,0x25,0x54,0x5F, 0x38,0x32,0xA1,0x42,0x8E,0xDD,0x06,0x9F,0x01,0x3B,0xD1,0x80,0x9F,0x42,0x8D,0xDD, 0x04,0x99,0x11,0x9A,0x01,0x39,0x04,0x91,0x91,0x42,0x00,0xDB,0x71,0xE7,0x6B,0x46, 0x30,0x24,0xE4,0x5A,0x38,0x4B,0x9C,0x81,0x13,0xB0,0xF0,0xBD,0x02,0x39,0xCA,0x43, 0xD2,0x17,0x11,0x40,0x03,0x91,0x04,0x9E,0x03,0x9F,0x71,0x43,0x5F,0x43,0x0E,0x91, 0x00,0x25,0xD9,0xB2,0x0F,0x97,0x05,0x91,0x03,0x22,0x01,0x95,0x9C,0x46,0x08,0x94, 0x31,0x4E,0x32,0x4F,0x07,0x9C,0xB1,0x5C,0x05,0x9D,0xBB,0x5C,0x61,0x18,0xEB,0x18, 0x49,0xB2,0x01,0x31,0x5B,0xB2,0x89,0x01,0x02,0x33,0xCB,0x18,0x1C,0x5C,0x65,0xB2, 0x69,0x1E,0x0D,0x29,0x27,0xD8,0x08,0x9B,0x02,0x9F,0x8E,0x00,0xFF,0x18,0x0B,0x97, 0x09,0x9F,0x71,0x18,0xBB,0x19,0x0A,0x9F,0x49,0x00,0xBF,0x19,0x1B,0x4E,0x00,0x97, 0x01,0x9F,0x71,0x18,0x38,0x31,0x00,0x2F,0x1A,0xD1,0xE4,0xB2,0x01,0x94,0x0B,0x9D, 0x0E,0x34,0xE4,0xB2,0x2C,0x54,0x1C,0x68,0x0E,0x9E,0x00,0x9F,0xA4,0x19,0x1C,0x60, 0x3B,0x68,0x0F,0x9C,0x03,0x9D,0x1B,0x19,0x3B,0x60,0x8C,0x88,0x0B,0x7A,0x2C,0x19, 0x01,0x33,0x8C,0x80,0x0B,0x72,0x53,0x1E,0x00,0x2A,0x10,0xD0,0xDA,0xB2,0xBF,0xE7, 0x02,0x9E,0x08,0x99,0x01,0x9C,0x73,0x18,0x1F,0x2C,0xF4,0xD0,0xAC,0x42,0xF2,0xD0, 0x1F,0x25,0x1F,0x26,0x1D,0x54,0x01,0x96,0x53,0x1E,0x00,0x2A,0xEE,0xD1,0x63,0x46, 0x18,0xE7,0xC0,0x46,0x44,0x00,0x00,0x20,0x48,0x00,0x00,0x20,0x28,0x02,0x00,0x20, 0xB2,0x09,0x00,0x20,0xE8,0x10,0x00,0x20,0x74,0x01,0x00,0x20,0x3C,0x0D,0x00,0x20, 0x00,0x20,0x00,0x40,0x00,0x40,0x00,0x40,0xCC,0x57,0x00,0x00,0xC8,0x57,0x00,0x00, 0xF0,0xB5,0x89,0xB0,0x0F,0x23,0x46,0x49,0xFF,0x22,0x02,0xE0,0x58,0x18,0x01,0x38, 0x02,0x70,0x01,0x3B,0x00,0x2B,0xF9,0xD1,0x42,0x4B,0xD8,0x68,0x19,0x68,0x9A,0x68, 0x5B,0x68,0x01,0x90,0x03,0x93,0x40,0x4B,0x02,0x91,0x1B,0x68,0x04,0x93,0x3F,0x4B, 0x5B,0x7F,0x06,0x93,0x68,0xE0,0x07,0x9B,0x88,0x1C,0x3D,0x4A,0x18,0x18,0x83,0x5C, 0x5B,0xB2,0x1F,0x2B,0x5A,0xD1,0x3B,0x4A,0x40,0x00,0x82,0x5A,0x04,0x9D,0x04,0x20, 0x52,0x1B,0x05,0x92,0x38,0x4A,0x01,0x38,0xC0,0xB2,0x14,0x56,0x37,0x4A,0x64,0x44, 0x12,0x56,0x01,0x34,0x8A,0x18,0xA4,0x01,0x02,0x32,0x31,0x4E,0xA2,0x18,0xB4,0x5C, 0x0E,0x2C,0x41,0xD8,0x1F,0x2B,0x3E,0xD0,0xA3,0x42,0x3D,0xD0,0x00,0x2C,0x3B,0xD0, 0x0A,0x27,0x5D,0x1E,0x7D,0x43,0x2E,0x4A,0x2D,0x4E,0x55,0x19,0x62,0x1E,0x7A,0x43, 0xB2,0x18,0x3E,0x27,0xEE,0x5F,0x3E,0x27,0xD5,0x5F,0x1A,0x1C,0xAE,0x42,0x00,0xDD, 0x22,0x1C,0x0A,0x25,0x01,0x3A,0x6A,0x43,0x25,0x4E,0x06,0x9D,0xB2,0x18,0x3E,0x27, 0xD2,0x5F,0x05,0x9E,0x6A,0x43,0x92,0x11,0x96,0x42,0x1D,0xDD,0x9C,0x42,0x02,0xD9, 0x1A,0x1C,0x23,0x1C,0x14,0x1C,0x5E,0x1E,0x15,0x4A,0xF6,0xB2,0x97,0x5D,0x00,0x25, 0x00,0x97,0x6F,0x46,0x7D,0x57,0x01,0x3C,0xE4,0xB2,0x6F,0x1C,0x09,0xD0,0xA5,0x42, 0x03,0xDA,0x6D,0x46,0x2D,0x78,0x15,0x55,0x06,0xE0,0xA5,0x42,0x04,0xDD,0xE4,0xB2, 0x54,0x55,0x94,0x55,0x00,0xE0,0x23,0x1C,0x00,0x28,0xAB,0xD1,0x01,0x39,0x03,0x9E, 0xB1,0x42,0x98,0xDA,0x62,0x46,0x01,0x3A,0x01,0x9F,0xBA,0x42,0x05,0xDB,0x53,0x1C, 0x9B,0x01,0x02,0x99,0x07,0x93,0x94,0x46,0xF1,0xE7,0x09,0xB0,0xF0,0xBD,0xC0,0x46, 0xF0,0x02,0x00,0x20,0xE8,0x10,0x00,0x20,0x3C,0x0D,0x00,0x20,0x4C,0x0D,0x00,0x20, 0x00,0x20,0x00,0x40,0x00,0x40,0x00,0x40,0xCC,0x57,0x00,0x00,0xC8,0x57,0x00,0x00, 0x28,0x02,0x00,0x20,0xF0,0xB5,0xD4,0x4A,0x8D,0xB0,0x11,0x68,0x00,0x23,0xD0,0x18, 0xBE,0x30,0x00,0x24,0x00,0x5F,0x0A,0x3B,0x44,0x1E,0xA0,0x41,0x1D,0x1C,0x09,0x18, 0x8C,0x35,0xF4,0xD1,0xCD,0x4B,0x11,0x60,0x1B,0x68,0xBE,0x32,0x03,0x93,0xCC,0x4B, 0x0E,0x24,0x1B,0x68,0x05,0x93,0xCB,0x4E,0x01,0x3C,0x33,0x57,0x5F,0x1C,0x01,0xD1, 0x73,0xE0,0x03,0x1C,0xC7,0x4D,0xE8,0x56,0x46,0x1C,0xFA,0xD1,0x2B,0x55,0x5F,0x1C, 0x6B,0xD0,0x03,0x98,0x9D,0x00,0x46,0x19,0x37,0x68,0xA0,0x00,0xBC,0x46,0x03,0x9F, 0x3F,0x58,0xBC,0x44,0x67,0x46,0x37,0x60,0x05,0x9E,0x05,0x9F,0x75,0x19,0x2E,0x68, 0x38,0x58,0xB9,0x4F,0x30,0x18,0x0A,0x26,0x28,0x60,0x30,0x1C,0x58,0x43,0x38,0x18, 0x38,0x30,0x09,0x27,0xC7,0x57,0x55,0x79,0xBC,0x46,0x6F,0xB2,0xBC,0x45,0x00,0xDD, 0x45,0x72,0x5E,0x43,0xB0,0x4D,0x90,0x79,0xAE,0x19,0x38,0x36,0x0A,0x27,0xF7,0x57, 0x45,0xB2,0xAF,0x42,0x00,0xDA,0xB0,0x72,0xD6,0x79,0xAB,0x4F,0x06,0x96,0x0A,0x26, 0x30,0x1C,0x58,0x43,0x38,0x18,0x38,0x30,0x0B,0x25,0x45,0x57,0xAC,0x46,0x6D,0x46, 0x18,0x35,0x2D,0x78,0x6D,0xB2,0xAC,0x45,0x03,0xDD,0x6F,0x46,0x18,0x25,0xEF,0x5D, 0xC7,0x72,0x5E,0x43,0xA0,0x4D,0x10,0x7A,0xAF,0x19,0x38,0x37,0x0C,0x26,0xBE,0x57, 0x45,0xB2,0xAE,0x42,0x00,0xDA,0x38,0x73,0x0A,0x20,0x58,0x43,0x56,0x88,0x9A,0x4F, 0x06,0x96,0x38,0x18,0x3E,0x26,0x85,0x5F,0x18,0x26,0xAC,0x46,0x6D,0x46,0x75,0x5F, 0x38,0x30,0x0A,0x26,0xAC,0x45,0x03,0xDA,0x6F,0x46,0x18,0x25,0xEF,0x5B,0xC7,0x80, 0x5E,0x43,0x91,0x48,0x01,0x39,0x87,0x19,0xBB,0x8F,0x10,0x88,0xC3,0x18,0xBB,0x87, 0x38,0x37,0x10,0x79,0x3B,0x7A,0xC3,0x18,0x3B,0x72,0x0A,0x3A,0x00,0x2C,0x00,0xD0, 0x81,0xE7,0x89,0x4F,0x26,0x1C,0x3D,0x1C,0x3C,0x35,0x03,0x95,0x39,0x60,0x25,0x1C, 0x88,0x48,0x00,0x22,0x33,0x18,0x9A,0x56,0x01,0x32,0x19,0xD1,0x1D,0x70,0xB5,0x42, 0x12,0xD0,0x82,0x4B,0xB1,0x00,0x1A,0x68,0xAB,0x00,0x50,0x58,0xD0,0x50,0x80,0x4A, 0x7D,0x48,0x12,0x68,0x51,0x58,0xD1,0x50,0x0A,0x22,0x13,0x1C,0x6B,0x43,0xC0,0x18, 0x3C,0x30,0x03,0x99,0x03,0xF0,0x94,0xFB,0x3B,0x68,0x01,0x35,0x9D,0x42,0x05,0xDA, 0x03,0x99,0x01,0x36,0x0A,0x31,0x03,0x91,0x0E,0x2E,0xD9,0xD1,0x76,0x4B,0x1B,0x68, 0xDA,0x06,0x3B,0xD5,0x75,0x4B,0x1B,0x78,0x00,0x2B,0x03,0xD0,0x04,0x20,0x74,0x49, 0x01,0xF0,0xF0,0xFE,0x00,0x25,0x73,0x4E,0x2C,0xE0,0x69,0x1C,0x89,0x01,0x33,0x68, 0x77,0x68,0x71,0x4A,0x03,0x91,0xA4,0x46,0x12,0xE0,0x03,0x9C,0x99,0x1C,0x61,0x18, 0x88,0x5C,0x40,0xB2,0x44,0x1E,0x0D,0x2C,0x09,0xD8,0x66,0x4C,0x20,0x18,0x01,0x38, 0x00,0x78,0x40,0xB2,0x44,0x1C,0x02,0xD0,0x01,0x30,0xC0,0xB2,0x88,0x54,0x01,0x3B, 0xBB,0x42,0xEA,0xDA,0x61,0x4B,0x64,0x46,0x1B,0x78,0x00,0x2B,0x09,0xD0,0x63,0x4B, 0x63,0x4F,0xAA,0x01,0xD9,0x7D,0xD2,0x19,0x01,0x23,0x04,0x20,0x00,0x93,0x01,0xF0, 0x69,0xFE,0x01,0x35,0x5D,0x4F,0x3B,0x7E,0x9D,0x42,0xCE,0xDB,0x5D,0x4B,0x1B,0x68, 0x00,0x2B,0x10,0xDD,0x5C,0x4B,0x5D,0x4A,0x99,0x89,0x11,0x80,0x1B,0x89,0x53,0x80, 0x52,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0,0x01,0x23,0x02,0x21,0x00,0x93,0x17,0x20, 0x0B,0x1C,0x01,0xF0,0x4F,0xFE,0x48,0x4B,0x55,0x48,0x1D,0x1C,0x40,0xCD,0x4F,0x49, 0x07,0x96,0x47,0x89,0x08,0x97,0x0A,0x8D,0x47,0x68,0x16,0xB2,0x05,0x96,0x86,0x69, 0x09,0x97,0xB7,0xB2,0xD2,0x1B,0x04,0x97,0x92,0xB2,0x31,0x31,0x09,0x78,0x0A,0x92, 0x3E,0x4A,0x00,0x20,0x06,0x91,0x17,0x68,0x03,0x90,0x2F,0xE0,0x03,0x9A,0x0A,0x23, 0x53,0x43,0x01,0xCF,0x05,0x99,0x48,0x43,0x37,0x49,0xCB,0x18,0x3C,0x22,0x99,0x5E, 0x09,0x9B,0x59,0x43,0x03,0xF0,0xAA,0xFA,0x08,0x99,0x42,0x4A,0x08,0x18,0x13,0x78, 0x80,0xB2,0x28,0x80,0x00,0x2B,0x15,0xD1,0x00,0xB2,0xB0,0x42,0x07,0xDA,0x06,0x9B, 0x80,0x1B,0x58,0x43,0x04,0x99,0x80,0x11,0x08,0x18,0x28,0x80,0x0A,0xE0,0x05,0x9A, 0x10,0x1A,0xB0,0x42,0x06,0xDA,0x06,0x9B,0x80,0x1B,0x58,0x43,0x0A,0x99,0x80,0x11, 0x08,0x1A,0x28,0x80,0x03,0x9A,0x02,0x35,0x01,0x32,0x03,0x92,0x03,0x9B,0x07,0x98, 0x83,0x42,0xCB,0xDB,0x20,0x4D,0x2E,0x49,0x2D,0x68,0x28,0x4A,0x05,0x95,0x0E,0x89, 0x0D,0x68,0x07,0x96,0xD3,0x8C,0x08,0x95,0x4D,0x69,0x1F,0xB2,0xAE,0xB2,0x11,0x1C, 0x04,0x97,0x06,0x96,0x2F,0x31,0x09,0x78,0x9B,0x1B,0x9B,0xB2,0x09,0x91,0x30,0x32, 0x12,0x78,0x15,0x4E,0x0B,0x93,0x16,0x4B,0x00,0x20,0x0A,0x92,0x1F,0x68,0x20,0x36, 0x03,0x90,0x50,0xE0,0x03,0x9A,0x0A,0x23,0x53,0x43,0x01,0xCF,0x04,0x99,0x48,0x43, 0x0D,0x49,0x5B,0x18,0x3C,0x22,0x99,0x5E,0x08,0x9B,0x59,0x43,0x03,0xF0,0x56,0xFA, 0x07,0x99,0x18,0x4A,0x08,0x18,0x13,0x78,0x80,0xB2,0x30,0x80,0x00,0x2B,0x36,0xD1, 0x00,0xB2,0xA8,0x42,0x28,0xDA,0x09,0x9B,0x40,0x1B,0x58,0x43,0x06,0x99,0x80,0x11, 0x08,0x18,0x30,0x80,0x2B,0xE0,0xC0,0x46,0x28,0x02,0x00,0x20,0x48,0x00,0x00,0x20, 0x44,0x00,0x00,0x20,0xF0,0x02,0x00,0x20,0x58,0x00,0x00,0x20,0xEF,0x01,0x00,0x20, 0x4D,0x57,0x00,0x00,0xE8,0x10,0x00,0x20,0x00,0x20,0x00,0x40,0xB2,0x09,0x00,0x20, 0x42,0x20,0x00,0x40,0xA0,0x0D,0x00,0x20,0x74,0x01,0x00,0x20,0x58,0x11,0x00,0x20, 0x28,0x09,0x00,0x20,0xE3,0x01,0x00,0x20,0x04,0x9A,0x10,0x1A,0xA8,0x42,0x06,0xDA, 0x0A,0x9B,0x40,0x1B,0x58,0x43,0x0B,0x99,0x80,0x11,0x08,0x1A,0x30,0x80,0x03,0x9A, 0x02,0x36,0x01,0x32,0x03,0x92,0x03,0x9B,0x05,0x98,0x83,0x42,0xAA,0xDB,0x1B,0x4B, 0x1A,0x1C,0x2A,0x32,0x17,0x78,0x1A,0x1C,0x2B,0x32,0x12,0x78,0x28,0x21,0x5E,0x5E, 0x03,0x92,0x26,0x25,0x5A,0x5F,0x2C,0x33,0x04,0x92,0x1B,0x78,0x14,0x49,0x06,0x93, 0x00,0x25,0xB4,0x46,0x1D,0xE0,0x00,0x26,0x8B,0x5F,0x00,0x2B,0x16,0xD0,0x11,0x4A, 0xA8,0x18,0x04,0x23,0xC2,0x5E,0x20,0x26,0x83,0x5F,0x00,0x2F,0x01,0xD0,0x66,0x46, 0xB2,0x1A,0x03,0x9E,0x00,0x2E,0x01,0xD0,0x04,0x9E,0xF3,0x1A,0x06,0x9E,0x00,0x2E, 0x02,0xD0,0x16,0x1C,0x1A,0x1C,0x33,0x1C,0x82,0x80,0x03,0x84,0x01,0x34,0x0A,0x31, 0x02,0x35,0x05,0x9E,0xB4,0x42,0xDE,0xDB,0x0D,0xB0,0xF0,0xBD,0xB2,0x09,0x00,0x20, 0x64,0x02,0x00,0x20,0x28,0x02,0x00,0x20,0x30,0xB5,0x0A,0x4B,0x00,0x21,0x04,0x33, 0xDB,0x7F,0x09,0x4A,0x0A,0x24,0x08,0x1C,0x07,0xE0,0x01,0x3B,0xDB,0xB2,0x25,0x1C, 0x5D,0x43,0x55,0x19,0xA9,0x87,0x05,0x4D,0xE8,0x54,0x00,0x2B,0xF5,0xD1,0x13,0x60, 0x30,0xBD,0xC0,0x46,0xB2,0x09,0x00,0x20,0xA0,0x0D,0x00,0x20,0x68,0x01,0x00,0x20, 0x00,0xB5,0x08,0x4A,0x01,0x23,0x5B,0x42,0x53,0x60,0x07,0x4B,0x00,0x21,0x11,0x60, 0x1B,0x78,0x04,0xE0,0x01,0x3B,0xDB,0xB2,0x18,0x1D,0x40,0x00,0x81,0x52,0x00,0x2B, 0xF8,0xD1,0x00,0xBD,0xE4,0x00,0x00,0x20,0x80,0x09,0x00,0x20,0x49,0x43,0x40,0x43, 0x40,0x18,0x70,0x47,0x70,0x47,0xF0,0xB5,0x83,0x4B,0x00,0x22,0x04,0x33,0xD9,0x7F, 0x87,0xB0,0x0B,0x1C,0x81,0x48,0x0A,0x26,0x15,0x1C,0x07,0xE0,0x01,0x3B,0xDB,0xB2, 0x34,0x1C,0x5C,0x43,0x04,0x19,0xA2,0x87,0x38,0x34,0x25,0x72,0x04,0x1C,0x00,0x2B, 0xF4,0xD1,0x7B,0x4B,0x1A,0x68,0x0B,0x1C,0x91,0x42,0x00,0xDD,0x13,0x1C,0x23,0x60, 0x78,0x48,0x79,0x4A,0x79,0x4B,0x0E,0x24,0xFF,0x21,0x01,0x3C,0xE4,0xB2,0xA5,0x00, 0x01,0x55,0xAB,0x50,0x00,0x2C,0xF8,0xD1,0x6F,0x4B,0x25,0x1C,0x04,0x33,0xDB,0x7F, 0x26,0x1C,0x03,0x93,0x72,0x4B,0x1B,0x69,0x04,0x93,0x6D,0x4B,0x1B,0x68,0x05,0x93, 0x47,0xE0,0x70,0x4C,0x63,0x5D,0x00,0x2B,0x42,0xD0,0x6F,0x4C,0xAB,0x00,0xE3,0x58, 0x04,0x9C,0x1B,0x01,0x1B,0x19,0x01,0x93,0x6C,0x4B,0x6A,0x00,0x01,0x27,0xD3,0x18, 0x00,0x24,0x7F,0x42,0x02,0x93,0x20,0xE0,0x0A,0x23,0x63,0x43,0x60,0x48,0xC3,0x18, 0x3C,0x21,0x5B,0x5E,0x00,0x2B,0x16,0xD0,0x02,0x9A,0x63,0x00,0xC3,0x18,0x98,0x88, 0x93,0x88,0x5B,0x4A,0xC0,0x1A,0x23,0x1C,0x10,0x33,0x5B,0x00,0x99,0x5A,0x02,0x9A, 0x00,0xB2,0x13,0x8B,0xC9,0x1A,0x09,0xB2,0xFF,0xF7,0x98,0xFF,0x01,0x9B,0x98,0x42, 0x01,0xDA,0x27,0x1C,0x01,0x90,0x01,0x34,0xE4,0xB2,0x05,0x98,0x84,0x42,0xDB,0xDB, 0x79,0x1C,0x0D,0xD0,0x4F,0x4B,0x50,0x49,0xD8,0x57,0xBA,0x00,0x01,0x30,0x04,0xD0, 0x88,0x58,0x01,0x9C,0xA0,0x42,0x03,0xDD,0x00,0xE0,0x01,0x9C,0x8C,0x50,0xDD,0x55, 0x01,0x35,0x03,0x9C,0xEB,0xB2,0xA3,0x42,0xB3,0xD3,0x34,0x1C,0x00,0x25,0x44,0x4E, 0x28,0xE0,0x44,0x48,0x47,0x5D,0x7B,0xB2,0x01,0x33,0x21,0xD0,0x69,0x00,0xFF,0xB2, 0x3E,0x4B,0x71,0x18,0x89,0x88,0x7A,0x00,0x9A,0x18,0x91,0x80,0x29,0x1C,0x10,0x31, 0x3A,0x1C,0x49,0x00,0x89,0x5B,0x10,0x32,0x52,0x00,0xD1,0x52,0x0A,0x22,0x10,0x1C, 0x78,0x43,0x11,0x1C,0x69,0x43,0x1B,0x18,0x18,0x1C,0x71,0x18,0x3C,0x30,0x3C,0x31, 0x03,0xF0,0x56,0xF9,0x34,0x4B,0xAA,0x00,0xD2,0x58,0x37,0x4B,0xBF,0x00,0xFA,0x50, 0x01,0x35,0xED,0xB2,0x33,0x68,0x9D,0x42,0xD3,0xDB,0x3D,0xE0,0x2D,0x4E,0x33,0x57, 0x01,0x33,0x36,0xD1,0x0A,0x23,0x63,0x43,0xEB,0x18,0x3C,0x20,0x1B,0x5E,0x00,0x2B, 0x2F,0xD0,0x25,0x4B,0x2E,0x4A,0x04,0x33,0xDF,0x7F,0x00,0x23,0x26,0xE0,0x29,0x4E, 0xF6,0x5C,0x00,0x2E,0x20,0xD1,0x00,0x26,0x90,0x5F,0x00,0x28,0x1C,0xD1,0x21,0x4A, 0x67,0x00,0x11,0x55,0x1E,0x49,0x1D,0x48,0xCF,0x19,0xBF,0x88,0x5A,0x00,0x82,0x18, 0x97,0x80,0x27,0x1C,0x10,0x37,0x1A,0x1C,0x7F,0x00,0x7F,0x5A,0x10,0x32,0x52,0x00, 0x17,0x52,0x0A,0x22,0x53,0x43,0xC0,0x18,0x13,0x1C,0x63,0x43,0xC9,0x18,0x3C,0x31, 0x3C,0x30,0x03,0xF0,0x15,0xF9,0x04,0xE0,0x01,0x33,0x0A,0x32,0xD9,0xB2,0xB9,0x42, 0xD5,0xD3,0x01,0x34,0xE4,0xB2,0x00,0xE0,0x0D,0x4D,0x2B,0x68,0x9C,0x42,0xBD,0xDB, 0x09,0x4B,0x0C,0x49,0x04,0x33,0xDD,0x7F,0x12,0x4B,0xFF,0x20,0x1C,0x1C,0x0E,0x34, 0x1A,0x78,0xAA,0x42,0x02,0xD2,0x8A,0x5C,0x1A,0x70,0x00,0xE0,0x18,0x70,0x01,0x33, 0xA3,0x42,0xF5,0xD1,0x07,0xB0,0xF0,0xBD,0xB2,0x09,0x00,0x20,0xA0,0x0D,0x00,0x20, 0x28,0x02,0x00,0x20,0xEC,0x03,0x00,0x20,0xFC,0x10,0x00,0x20,0xFF,0xFF,0xFF,0x7F, 0x28,0x09,0x00,0x20,0xF0,0x01,0x00,0x20,0xFC,0x00,0x00,0x20,0x84,0x09,0x00,0x20, 0xDC,0x0D,0x00,0x20,0xF0,0x02,0x00,0x20,0xF7,0xB5,0x42,0x4B,0x00,0x21,0x19,0x60, 0x41,0x4B,0x0A,0x24,0x19,0x60,0x41,0x4B,0x08,0x1C,0x04,0x33,0xDB,0x7F,0x40,0x4D, 0x1A,0x1C,0xA4,0x46,0x11,0xE0,0x01,0x3A,0xD2,0xB2,0x26,0x1C,0x56,0x43,0xAE,0x19, 0x38,0x36,0x36,0x7A,0xB0,0x42,0x00,0xDA,0x30,0x1C,0x66,0x46,0x56,0x43,0xAE,0x19, 0x3C,0x27,0xF6,0x5F,0xB1,0x42,0x00,0xDA,0x31,0x1C,0x00,0x2A,0xEB,0xD1,0x32,0x4A, 0x50,0x60,0x11,0x60,0x2F,0x4A,0x0A,0x20,0x11,0x68,0x31,0x4A,0x07,0xE0,0x01,0x3B, 0xDB,0xB2,0x04,0x1C,0x5C,0x43,0x14,0x19,0x38,0x34,0x24,0x7A,0x09,0x19,0x14,0x1C, 0x00,0x2B,0xF4,0xD1,0x27,0x4B,0x19,0x60,0x13,0x68,0x00,0x2B,0x0F,0xDD,0x26,0x4B, 0x28,0x4A,0x5B,0x68,0x11,0x80,0x53,0x80,0x27,0x4B,0x1B,0x78,0x00,0x2B,0x06,0xD0, 0x01,0x23,0x02,0x21,0x00,0x93,0x1D,0x20,0x0B,0x1C,0x01,0xF0,0xAB,0xFB,0x23,0x68, 0x00,0x2B,0x19,0xDD,0x21,0x4A,0x08,0x23,0xD1,0x5E,0x21,0x4B,0x0C,0x24,0x12,0x5F, 0x18,0x1C,0x3D,0x33,0x1B,0x78,0x3C,0x30,0x53,0x43,0x00,0x78,0x9B,0x11,0xC3,0x18, 0x99,0x42,0x09,0xDC,0x18,0x4B,0x1B,0x78,0x00,0x2B,0x03,0xD0,0x00,0x20,0x19,0x49, 0x01,0xF0,0xE8,0xFB,0xFF,0xF7,0x40,0xFE,0x11,0x4B,0x17,0x4A,0x1B,0x68,0x12,0x78, 0x93,0x42,0x12,0xDB,0x0B,0x4B,0x12,0x4A,0x18,0x68,0xD1,0x8E,0x0A,0x4B,0x88,0x42, 0x03,0xDB,0x11,0x8F,0x58,0x68,0x88,0x42,0x03,0xDA,0x52,0x8F,0x5B,0x68,0x93,0x42, 0x07,0xDB,0x0E,0x4B,0x01,0x22,0x1A,0x70,0x03,0xE0,0x00,0x2B,0x01,0xD1,0x0B,0x4A, 0x13,0x70,0xF7,0xBD,0x50,0x11,0x00,0x20,0x10,0x02,0x00,0x20,0xB2,0x09,0x00,0x20, 0xA0,0x0D,0x00,0x20,0x58,0x11,0x00,0x20,0xEF,0x01,0x00,0x20,0x74,0x01,0x00,0x20, 0x4C,0x0D,0x00,0x20,0x55,0x57,0x00,0x00,0x40,0x00,0x00,0x20,0xF9,0x00,0x00,0x20, 0x38,0xB5,0x04,0x1C,0x08,0x1C,0x00,0x2A,0x07,0xD0,0x54,0x43,0x58,0x43,0xD1,0x18, 0x20,0x18,0x4D,0x10,0x40,0x19,0x02,0xF0,0xD1,0xFF,0x38,0xBD,0x10,0xB5,0x43,0x1A, 0xDC,0x17,0x1B,0x19,0x63,0x40,0xFF,0xF7,0xEB,0xFF,0x10,0xBD,0xF0,0xB5,0xB6,0x4A, 0xB6,0x48,0x11,0x1C,0x4E,0x31,0x09,0x78,0x40,0x68,0xB5,0x4B,0x41,0x43,0x85,0xB0, 0x04,0x33,0x89,0x11,0xD7,0x8C,0xDB,0x7F,0x02,0x91,0x12,0x8D,0xB1,0x48,0x03,0x92, 0x0A,0x25,0x00,0x22,0xBC,0x46,0x28,0xE0,0x01,0x3B,0xDB,0xB2,0x29,0x1C,0x59,0x43, 0x41,0x18,0x38,0x31,0x8E,0x88,0x00,0x2E,0x1F,0xD0,0xAB,0x4F,0x36,0xB2,0xFF,0x5C, 0x00,0x2F,0x0E,0xD1,0x67,0x46,0x3C,0xB2,0xA6,0x42,0x03,0xDB,0x09,0x7A,0x02,0x9C, 0xA1,0x42,0x12,0xDA,0x29,0x1C,0x59,0x43,0xA2,0x4E,0x71,0x18,0xCA,0x87,0x38,0x31, 0x05,0xE0,0x6F,0x46,0x0C,0x24,0xE7,0x5F,0xBE,0x42,0x06,0xDA,0xCA,0x80,0x00,0x26, 0x0E,0x72,0x8A,0x80,0x9D,0x49,0x9E,0x00,0x72,0x50,0x00,0x2B,0xD4,0xD1,0x9C,0x4A, 0x03,0x60,0x93,0x73,0x96,0x4B,0x04,0x33,0xDC,0x7F,0xF1,0xE0,0x01,0x3C,0xE4,0xB2, 0x0A,0x23,0x63,0x43,0x93,0x4A,0xD3,0x18,0x9A,0x8F,0x00,0x2A,0x00,0xD1,0xB7,0xE0, 0x94,0x4B,0x18,0x78,0x00,0x28,0x0C,0xD1,0x93,0x49,0x0B,0x68,0x00,0x2C,0x08,0xD1, 0xDE,0x0F,0x06,0x25,0x9D,0x42,0x70,0x41,0xC0,0xB2,0x00,0x28,0x01,0xD0,0x01,0x33, 0x0B,0x60,0x0A,0x21,0x84,0x4B,0x61,0x43,0x1B,0x8D,0x86,0x48,0x12,0xB2,0x41,0x18, 0x18,0xB2,0x12,0x1A,0x52,0x10,0x5B,0x00,0xD3,0x18,0x8B,0x87,0x85,0x4B,0x1A,0x78, 0x83,0x4B,0x00,0x2A,0x14,0xD1,0x9A,0x7B,0x00,0x2A,0x03,0xD1,0x83,0x4A,0x12,0x57, 0x00,0x2A,0x03,0xD0,0x80,0x4A,0x12,0x68,0x05,0x2A,0x09,0xDC,0x80,0x4A,0x01,0x21, 0x11,0x70,0x80,0x22,0xD2,0x05,0x50,0x69,0x00,0x0E,0x00,0x06,0x01,0x43,0x51,0x61, 0x01,0x22,0x9A,0x73,0x7B,0x4F,0x79,0x4B,0x1A,0x57,0x3B,0x78,0x9A,0x42,0x77,0xDB, 0x70,0x4B,0x61,0x00,0x1A,0x68,0x01,0x32,0x1A,0x60,0x5A,0x18,0x04,0x20,0x15,0x5E, 0x75,0x4A,0x51,0x18,0x88,0x88,0x21,0x1C,0x10,0x31,0x49,0x00,0xCE,0x5E,0x70,0x4B, 0x8F,0x5A,0x1A,0x78,0x00,0x2A,0x01,0xD0,0x00,0x22,0x1A,0x70,0x6A,0x4B,0x1B,0x68, 0x02,0x2B,0x03,0xD1,0x67,0x4B,0x1B,0x78,0x00,0x2B,0x1B,0xD0,0x00,0xB2,0x2A,0x1A, 0xD1,0x17,0x3F,0xB2,0xF3,0x1B,0x52,0x18,0x4A,0x40,0xD9,0x17,0x5B,0x18,0x4B,0x40, 0xD3,0x18,0x02,0x93,0x58,0x4B,0x2E,0x21,0x5A,0x5E,0x29,0x1C,0x02,0x9B,0x03,0x92, 0xFF,0xF7,0x26,0xFF,0x31,0x1C,0x05,0x1C,0x03,0x9A,0x38,0x1C,0x02,0x9B,0xFF,0xF7, 0x1F,0xFF,0x06,0x1C,0x52,0x4A,0x13,0x1C,0x2D,0x33,0x1B,0x78,0x11,0x1C,0x5B,0xB2, 0x9D,0x42,0x07,0xDD,0x59,0x4A,0xD2,0x69,0xD0,0x1A,0x85,0x42,0x03,0xDB,0x55,0x1E, 0xED,0x1A,0x00,0xE0,0x1D,0x1C,0x2E,0x23,0xCB,0x56,0x9E,0x42,0x07,0xDD,0x53,0x4A, 0x12,0x6A,0xD1,0x1A,0x8E,0x42,0x03,0xDB,0x56,0x1E,0xF6,0x1A,0x00,0xE0,0x1E,0x1C, 0x44,0x4B,0x62,0x00,0x9A,0x18,0x95,0x80,0x22,0x1C,0x10,0x32,0x52,0x00,0x0A,0x25, 0xD6,0x52,0x65,0x43,0x3C,0x4A,0x30,0x26,0x97,0x5F,0x47,0x4E,0x76,0x19,0x5D,0x19, 0x3C,0x21,0x70,0x5E,0x3C,0x22,0xA9,0x5E,0x3A,0x1C,0xFF,0xF7,0xF7,0xFE,0x38,0x36, 0xA8,0x87,0x38,0x35,0x30,0x7A,0x29,0x7A,0x3A,0x1C,0xFF,0xF7,0xEF,0xFE,0x28,0x72, 0x34,0x4B,0x62,0x00,0x99,0x18,0x3C,0x48,0x89,0x88,0x82,0x18,0x91,0x80,0x22,0x1C, 0x10,0x32,0x52,0x00,0xD1,0x5A,0x11,0x52,0x0A,0x22,0x11,0x1C,0x61,0x43,0x40,0x18, 0x59,0x18,0x0D,0x1C,0x3C,0x30,0x3C,0x31,0x02,0xF0,0x0A,0xFF,0x3C,0x23,0xEA,0x5E, 0x38,0x35,0x2E,0x4B,0x00,0x2A,0x0C,0xD0,0x23,0x49,0x1A,0x5D,0x32,0x31,0x09,0x78, 0x50,0xB2,0x88,0x42,0x0C,0xDA,0x01,0x32,0x1A,0x55,0x01,0x23,0x5B,0x42,0xAB,0x80, 0x06,0xE0,0x1A,0x55,0x00,0x2C,0x00,0xD0,0x10,0xE7,0x23,0x4B,0x1C,0x60,0x02,0xE0, 0x00,0x2C,0x00,0xD0,0x0A,0xE7,0x24,0x4E,0x1A,0x4D,0x32,0x68,0x29,0x68,0x24,0x4B, 0x91,0x42,0x25,0xDA,0x19,0x68,0x14,0x48,0x01,0x31,0x19,0x60,0x3E,0x30,0x00,0x78, 0x40,0xB2,0x81,0x42,0x1C,0xDA,0x12,0x4B,0x2A,0x60,0x04,0x33,0xDC,0x7F,0x14,0xE0, 0x01,0x3C,0xE4,0xB2,0x63,0x00,0xF2,0x18,0x92,0x88,0xEB,0x18,0x9A,0x80,0x23,0x1C, 0x10,0x33,0x5B,0x00,0x9A,0x5B,0x5A,0x53,0x0A,0x22,0x11,0x1C,0x61,0x43,0x68,0x18, 0x71,0x18,0x3C,0x30,0x3C,0x31,0x02,0xF0,0xC3,0xFE,0x00,0x2C,0xE8,0xD1,0x00,0xE0, 0x1C,0x60,0x05,0xB0,0xF0,0xBD,0xC0,0x46,0x4C,0x0D,0x00,0x20,0x10,0x02,0x00,0x20, 0xB2,0x09,0x00,0x20,0xA0,0x0D,0x00,0x20,0xF0,0x01,0x00,0x20,0xFC,0x00,0x00,0x20, 0x74,0x01,0x00,0x20,0xE3,0x01,0x00,0x20,0x64,0x00,0x00,0x20,0x42,0x11,0x00,0x20, 0xE6,0x01,0x00,0x20,0x7E,0x0D,0x00,0x20,0x24,0x03,0x00,0x20,0x28,0x09,0x00,0x20, 0x64,0x01,0x00,0x20,0xF0,0xB5,0x31,0x4B,0x31,0x4D,0x1E,0x78,0x31,0x4B,0x00,0x27, 0x1A,0x1C,0x2F,0x60,0x2B,0x32,0x12,0x78,0x89,0xB0,0x04,0x92,0x50,0x00,0x1A,0x1C, 0x06,0x90,0x32,0x32,0x12,0x78,0x07,0x92,0x30,0x22,0x99,0x5E,0x6B,0x68,0x05,0x91, 0x02,0x93,0x03,0x97,0x42,0xE0,0x01,0x3E,0xF6,0xB2,0x33,0x1D,0x5B,0x00,0x01,0x93, 0xEB,0x5A,0x00,0x2B,0x34,0xD0,0x04,0x98,0x1B,0xB2,0x1B,0x1A,0x06,0x99,0x5B,0x10, 0xCB,0x18,0x01,0x9A,0x20,0x48,0x9B,0xB2,0xAB,0x52,0xF2,0x00,0x81,0x58,0x84,0x18, 0x07,0x98,0x1B,0xB2,0x81,0x42,0x07,0xDA,0x1B,0x48,0x01,0x31,0x81,0x50,0x01,0x99, 0x00,0x22,0x63,0x60,0x6A,0x52,0x21,0xE0,0x60,0x68,0x01,0x37,0x1A,0x1A,0xD1,0x17, 0x84,0x46,0x50,0x18,0x05,0x9A,0x48,0x40,0x11,0x18,0x00,0x90,0x60,0x46,0x42,0x43, 0x94,0x46,0x00,0x9A,0x53,0x43,0x62,0x46,0xD0,0x18,0x4B,0x10,0xC0,0x18,0x02,0xF0, 0xED,0xFD,0x01,0x9B,0x03,0x99,0x60,0x60,0xE8,0x52,0x81,0x42,0x04,0xDB,0x05,0xE0, 0x09,0x48,0xF2,0x00,0x83,0x50,0x01,0xE0,0x02,0x96,0x03,0x90,0x00,0x2E,0xBA,0xD1, 0x02,0x99,0x09,0xB0,0x2F,0x60,0x69,0x60,0xF0,0xBD,0xC0,0x46,0x80,0x09,0x00,0x20, 0xE4,0x00,0x00,0x20,0x4C,0x0D,0x00,0x20,0x4C,0x09,0x00,0x20,0xF7,0xB5,0x27,0x4B, 0x27,0x49,0x04,0x33,0xDB,0x7F,0x27,0x4A,0x27,0x48,0x42,0xE0,0x01,0x3B,0xDB,0xB2, 0x1C,0x1C,0x14,0x34,0x64,0x00,0x04,0x19,0x04,0x25,0x64,0x5F,0x00,0x2C,0x27,0xD0, 0x0A,0x24,0x5C,0x43,0x0C,0x19,0x3C,0x26,0xA4,0x5F,0x00,0x2C,0x20,0xD0,0x5C,0x00, 0x0E,0x19,0xB6,0x88,0x05,0x19,0x37,0xB2,0xBC,0x46,0x04,0x27,0xEF,0x5F,0x65,0x46, 0xED,0x1B,0x6F,0x10,0xBE,0x19,0x14,0x19,0xA6,0x80,0x1C,0x1C,0x10,0x34,0x64,0x00, 0x0E,0x5B,0x1C,0x1C,0x0C,0x34,0x37,0xB2,0x64,0x00,0xBC,0x46,0x25,0x5E,0x67,0x46, 0x7F,0x1B,0x7F,0x10,0xBE,0x19,0xA6,0x52,0x10,0x4C,0x01,0x26,0xE6,0x54,0x10,0xE0, 0x0B,0x4D,0x5C,0x00,0x2E,0x19,0xB6,0x88,0x14,0x19,0xA6,0x80,0x1E,0x1C,0x10,0x36, 0x1C,0x1C,0x76,0x00,0x76,0x5B,0x0C,0x34,0x64,0x00,0x16,0x53,0x07,0x4C,0x00,0x26, 0xE6,0x54,0x00,0x2B,0xBA,0xD1,0x0B,0x68,0x13,0x60,0xF7,0xBD,0xB2,0x09,0x00,0x20, 0xA0,0x0D,0x00,0x20,0x84,0x09,0x00,0x20,0x24,0x01,0x00,0x20,0xF0,0x01,0x00,0x20, 0xF7,0xB5,0x35,0x4A,0x35,0x4B,0x11,0x1C,0x33,0x31,0x34,0x32,0x0E,0x78,0x12,0x78, 0x04,0x33,0xDB,0x7F,0x32,0x49,0x01,0x92,0xB4,0x46,0x32,0x4A,0x4B,0xE0,0x32,0x48, 0x01,0x3B,0xDB,0xB2,0xC4,0x5C,0x01,0x98,0x00,0x2C,0x00,0xD1,0x60,0x46,0x5E,0x00, 0x8D,0x19,0x96,0x19,0x04,0x27,0xF6,0x5F,0xAD,0x88,0x00,0x96,0x00,0x9F,0x2E,0xB2, 0xBE,0x1B,0xF7,0x17,0xF6,0x19,0x7E,0x40,0x86,0x42,0x10,0xDA,0x1E,0x1C,0x0C,0x36, 0x76,0x00,0xB6,0x5E,0x1F,0x1C,0x10,0x37,0x00,0x96,0x7F,0x00,0xCF,0x5F,0x00,0x9E, 0xF7,0x1B,0xFE,0x17,0xBF,0x19,0x77,0x40,0x00,0x97,0x87,0x42,0x18,0xDB,0x58,0x00, 0x10,0x18,0x1E,0x1C,0x85,0x80,0x10,0x36,0x19,0x4D,0x18,0x1C,0x76,0x00,0x0C,0x30, 0x75,0x5B,0x40,0x00,0x15,0x52,0x18,0x1C,0x14,0x30,0x40,0x00,0x10,0x18,0x04,0x27, 0xC0,0x5F,0x00,0x28,0x04,0xDD,0x00,0x2C,0x02,0xD1,0x13,0x48,0x01,0x24,0xC4,0x54, 0x0A,0x24,0x5C,0x43,0x0E,0x4D,0x18,0x1C,0x2C,0x19,0x14,0x30,0x0D,0x4D,0x40,0x00, 0xA4,0x8F,0x28,0x18,0x84,0x80,0x00,0x2B,0xB1,0xD1,0x0A,0x68,0x09,0x4B,0x0B,0x49, 0x1A,0x60,0x0B,0x4B,0x1A,0x78,0x0B,0x4B,0x1A,0x70,0x0B,0x4A,0x0B,0x1C,0x31,0xCA, 0x31,0xC3,0xC0,0xCA,0xC0,0xC3,0xF7,0xBD,0x4C,0x0D,0x00,0x20,0xB2,0x09,0x00,0x20, 0xA0,0x0D,0x00,0x20,0x24,0x01,0x00,0x20,0x68,0x01,0x00,0x20,0xD0,0x00,0x00,0x20, 0xF9,0x00,0x00,0x20,0xF8,0x00,0x00,0x20,0xE4,0x00,0x00,0x20,0xF7,0xB5,0x19,0x48, 0x01,0x23,0x5B,0x42,0x43,0x60,0x18,0x4B,0x1A,0x78,0x18,0x4B,0x19,0x1C,0x2B,0x33, 0x1E,0x78,0x2A,0x31,0x0F,0x78,0x00,0x23,0xB4,0x46,0x1E,0xE0,0x01,0x3A,0xD2,0xB2, 0x13,0x4C,0x51,0x00,0x61,0x5A,0x0E,0xB2,0xF6,0x43,0xF6,0x17,0x0E,0x40,0x11,0x1D, 0x49,0x00,0xB5,0xB2,0x0E,0x52,0x00,0x2D,0x0F,0xD0,0x0E,0x4E,0x2D,0xB2,0x8E,0x5F, 0x00,0x2E,0x04,0xDC,0xBD,0x42,0x07,0xDA,0x00,0x25,0x0D,0x52,0x05,0xE0,0x65,0x45, 0x02,0xDA,0x00,0x26,0x0E,0x52,0x00,0xE0,0x01,0x33,0x00,0x2A,0xDE,0xD1,0x01,0x4A, 0x13,0x60,0xF7,0xBD,0xE4,0x00,0x00,0x20,0x80,0x09,0x00,0x20,0x4C,0x0D,0x00,0x20, 0x40,0x0D,0x00,0x20,0xD0,0x00,0x00,0x20,0xEF,0xF3,0x08,0x80,0x70,0x47,0x00,0xBA, 0x70,0x47,0x40,0xBA,0x70,0x47,0xC0,0xBA,0x70,0x47,0x70,0xB5,0x00,0x28,0x16,0xDA, 0xC0,0xB2,0x0F,0x23,0x03,0x40,0x08,0x3B,0x12,0x4A,0x9B,0x08,0x9B,0x00,0x9B,0x18, 0x03,0x22,0x10,0x40,0x90,0x40,0xFF,0x22,0x5D,0x68,0x14,0x1C,0x84,0x40,0x89,0x01, 0xA5,0x43,0x0A,0x40,0x82,0x40,0x28,0x1C,0x10,0x43,0x58,0x60,0x11,0xE0,0x03,0x24, 0x82,0x08,0x09,0x4B,0x20,0x40,0xC0,0x32,0xA0,0x40,0x92,0x00,0xFF,0x24,0xD5,0x58, 0x26,0x1C,0x86,0x40,0x89,0x01,0xB5,0x43,0x0C,0x40,0x84,0x40,0x28,0x1C,0x20,0x43, 0xD0,0x50,0x70,0xBD,0x18,0xED,0x00,0xE0,0x00,0xE1,0x00,0xE0,0x08,0x4B,0x40,0x22, 0x19,0x68,0x7F,0x20,0x49,0x06,0x49,0x0E,0x11,0x43,0x1A,0x68,0x82,0x43,0x0A,0x43, 0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46, 0x08,0x00,0x00,0x20,0x07,0x4B,0x3F,0x22,0x19,0x68,0x7F,0x20,0x11,0x40,0x1A,0x68, 0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61, 0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20,0x07,0x4B,0x08,0x4A,0x19,0x68,0x18,0x68, 0x89,0x04,0x89,0x0E,0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23, 0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF, 0x08,0x4B,0x40,0x22,0x19,0x68,0x18,0x68,0x49,0x04,0x49,0x0E,0x11,0x43,0x06,0x4A, 0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69, 0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x08,0x4B,0x20,0x22, 0x19,0x68,0x7F,0x20,0x49,0x06,0x49,0x0E,0x11,0x43,0x1A,0x68,0x82,0x43,0x0A,0x43, 0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46, 0x08,0x00,0x00,0x20,0x07,0x4B,0x5F,0x22,0x19,0x68,0x7F,0x20,0x11,0x40,0x1A,0x68, 0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61, 0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20,0x07,0x4B,0xBE,0x21,0x1A,0x68,0xC9,0x01, 0x18,0x68,0x11,0x40,0x05,0x4A,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23, 0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF, 0x08,0x4B,0x20,0x22,0x19,0x68,0x18,0x68,0x49,0x04,0x49,0x0E,0x11,0x43,0x06,0x4A, 0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69, 0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x80,0x23,0xDB,0x05, 0x18,0x6C,0x80,0x00,0xC0,0x0F,0x70,0x47,0x08,0x4B,0x10,0x22,0x19,0x68,0x7F,0x20, 0x49,0x06,0x49,0x0E,0x11,0x43,0x1A,0x68,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68, 0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20, 0x07,0x4B,0x6F,0x22,0x19,0x68,0x7F,0x20,0x11,0x40,0x1A,0x68,0x82,0x43,0x0A,0x43, 0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46, 0x08,0x00,0x00,0x20,0x00,0xB5,0x0B,0x4B,0x19,0x68,0x00,0x28,0x04,0xD0,0x49,0x06, 0x49,0x0E,0x10,0x22,0x11,0x43,0x01,0xE0,0x6F,0x22,0x11,0x40,0x1A,0x68,0x7F,0x20, 0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61, 0x00,0xBD,0xC0,0x46,0x08,0x00,0x00,0x20,0x07,0x4B,0xDE,0x21,0x1A,0x68,0xC9,0x01, 0x18,0x68,0x11,0x40,0x05,0x4A,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23, 0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF, 0x08,0x4B,0x10,0x22,0x19,0x68,0x18,0x68,0x49,0x04,0x49,0x0E,0x11,0x43,0x06,0x4A, 0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69, 0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x80,0x23,0xDB,0x05, 0x18,0x6C,0xC0,0x00,0xC0,0x0F,0x70,0x47,0x08,0x4B,0x01,0x22,0x19,0x68,0x7F,0x20, 0x49,0x06,0x49,0x0E,0x11,0x43,0x1A,0x68,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68, 0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20, 0x07,0x4B,0x7E,0x22,0x19,0x68,0x7F,0x20,0x11,0x40,0x1A,0x68,0x82,0x43,0x0A,0x43, 0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46, 0x08,0x00,0x00,0x20,0x07,0x4B,0xFC,0x21,0x1A,0x68,0xC9,0x01,0x18,0x68,0x11,0x40, 0x05,0x4A,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69, 0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x08,0x4B,0x01,0x22, 0x19,0x68,0x18,0x68,0x49,0x04,0x49,0x0E,0x11,0x43,0x06,0x4A,0x09,0x02,0x02,0x40, 0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47, 0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x80,0x23,0xDB,0x05,0x18,0x6C,0xC0,0x01, 0xC0,0x0F,0x70,0x47,0x08,0x4B,0x02,0x22,0x19,0x68,0x7F,0x20,0x49,0x06,0x49,0x0E, 0x11,0x43,0x1A,0x68,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05, 0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20,0x07,0x4B,0x7D,0x22, 0x19,0x68,0x7F,0x20,0x11,0x40,0x1A,0x68,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68, 0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20, 0x07,0x4B,0xFA,0x21,0x1A,0x68,0xC9,0x01,0x18,0x68,0x11,0x40,0x05,0x4A,0x02,0x40, 0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47, 0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x08,0x4B,0x02,0x22,0x19,0x68,0x18,0x68, 0x49,0x04,0x49,0x0E,0x11,0x43,0x06,0x4A,0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x60, 0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20, 0xFF,0x80,0xFF,0xFF,0x80,0x23,0xDB,0x05,0x18,0x6C,0x80,0x01,0xC0,0x0F,0x70,0x47, 0x08,0x4B,0x04,0x22,0x19,0x68,0x7F,0x20,0x49,0x06,0x49,0x0E,0x11,0x43,0x1A,0x68, 0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61, 0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20,0x07,0x4B,0x7B,0x22,0x19,0x68,0x7F,0x20, 0x11,0x40,0x1A,0x68,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05, 0x19,0x69,0x1A,0x61,0x70,0x47,0xC0,0x46,0x08,0x00,0x00,0x20,0x00,0xB5,0x0B,0x4B, 0x19,0x68,0x00,0x28,0x04,0xD0,0x49,0x06,0x49,0x0E,0x04,0x22,0x11,0x43,0x01,0xE0, 0x7B,0x22,0x11,0x40,0x1A,0x68,0x7F,0x20,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68, 0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x00,0xBD,0xC0,0x46,0x08,0x00,0x00,0x20, 0x07,0x4B,0xF6,0x21,0x1A,0x68,0xC9,0x01,0x18,0x68,0x11,0x40,0x05,0x4A,0x02,0x40, 0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47, 0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x08,0x4B,0x04,0x22,0x19,0x68,0x18,0x68, 0x49,0x04,0x49,0x0E,0x11,0x43,0x06,0x4A,0x09,0x02,0x02,0x40,0x0A,0x43,0x1A,0x60, 0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x70,0x47,0x08,0x00,0x00,0x20, 0xFF,0x80,0xFF,0xFF,0x80,0x23,0xDB,0x05,0x18,0x6C,0x40,0x01,0xC0,0x0F,0x70,0x47, 0x10,0xB5,0x80,0x23,0xDB,0x05,0x04,0x1D,0x98,0x69,0x3F,0x22,0x14,0x40,0x90,0x43, 0x20,0x43,0x01,0x24,0x98,0x61,0x88,0x1C,0x21,0x40,0x41,0x18,0x0A,0x40,0x11,0x02, 0x98,0x69,0x02,0x4A,0x02,0x40,0x0A,0x43,0x9A,0x61,0x10,0xBD,0xFF,0xC0,0xFF,0xFF, 0x06,0x4B,0x7F,0x22,0x19,0x68,0x80,0x23,0xDB,0x05,0x18,0x6C,0x01,0x39,0x90,0x43, 0x11,0x40,0x02,0x1C,0x0A,0x43,0x1A,0x64,0x70,0x47,0xC0,0x46,0x1C,0x09,0x00,0x20, 0x80,0x23,0xDB,0x05,0x1A,0x6C,0x7F,0x21,0x8A,0x43,0x01,0x21,0x0A,0x43,0x1A,0x64, 0x70,0x47,0x80,0x23,0xDB,0x05,0xDA,0x69,0x0F,0x21,0x8A,0x43,0x02,0x21,0x0A,0x43, 0xDA,0x61,0xDA,0x69,0xF0,0x21,0x8A,0x43,0x30,0x21,0x0A,0x43,0xDA,0x61,0x0C,0x4A, 0x11,0x79,0x01,0x39,0xC9,0xB2,0x59,0x77,0xD8,0x69,0x0A,0x49,0x01,0x40,0x80,0x20, 0xC0,0x02,0x01,0x43,0xD9,0x61,0xD8,0x69,0x07,0x49,0x01,0x40,0xA0,0x20,0xC0,0x03, 0x01,0x43,0xD9,0x61,0x92,0x79,0x01,0x3A,0xD2,0xB2,0xDA,0x77,0x70,0x47,0xC0,0x46, 0x08,0x02,0x00,0x20,0xFF,0xFF,0xF0,0xFF,0xFF,0xFF,0x0F,0xFF,0x30,0xB5,0x1A,0x4A, 0x1A,0x4B,0x11,0x88,0x1A,0x4C,0xC9,0x18,0x80,0x23,0xDB,0x05,0x89,0xB2,0x18,0x8C, 0x19,0x84,0x59,0x8C,0x00,0x21,0x59,0x84,0x50,0x88,0x16,0x4D,0x01,0x19,0x89,0xB2, 0x9A,0x8C,0x99,0x84,0x42,0x1E,0xDC,0x8C,0x92,0xB2,0x44,0x19,0xDA,0x84,0xA4,0xB2, 0x1D,0x8D,0x1C,0x85,0x10,0x4C,0x00,0x19,0x80,0xB2,0x5C,0x8D,0x58,0x85,0x98,0x8D, 0x99,0x85,0xD8,0x8D,0xDA,0x85,0x18,0x8E,0x19,0x86,0x58,0x8E,0x5A,0x86,0x98,0x8E, 0x99,0x86,0xD8,0x8E,0xDA,0x86,0x18,0x8F,0x19,0x87,0x58,0x8F,0x5A,0x87,0x98,0x8F, 0x99,0x87,0xD9,0x8F,0xDA,0x87,0x30,0xBD,0x08,0x02,0x00,0x20,0xFF,0x07,0x00,0x00, 0xFF,0x03,0x00,0x00,0xFF,0x05,0x00,0x00,0xFF,0x01,0x00,0x00,0x30,0xB5,0x22,0x4B, 0xEE,0x24,0x1A,0x68,0xE4,0x01,0x14,0x40,0x20,0x48,0x1A,0x68,0x7F,0x21,0x02,0x40, 0x22,0x43,0x1A,0x60,0x1C,0x68,0x80,0x22,0xD2,0x05,0x15,0x69,0x14,0x61,0x1C,0x4C, 0xA4,0x7C,0x00,0x2C,0x16,0xD0,0x1C,0x68,0x04,0x25,0x64,0x04,0x64,0x0E,0x2C,0x43, 0x1D,0x68,0x0C,0x40,0x24,0x02,0x28,0x40,0x20,0x43,0x18,0x60,0x18,0x68,0x14,0x69, 0x10,0x61,0x1C,0x68,0x7B,0x20,0x20,0x40,0x1C,0x68,0x8C,0x43,0x21,0x1C,0x01,0x43, 0x19,0x60,0x15,0xE0,0x1C,0x68,0x04,0x25,0x64,0x06,0x64,0x0E,0x2C,0x43,0x1D,0x68, 0x0C,0x40,0x8D,0x43,0x29,0x1C,0x21,0x43,0x19,0x60,0x19,0x68,0x14,0x69,0x11,0x61, 0x1C,0x68,0xF6,0x21,0xC9,0x01,0x21,0x40,0x1C,0x68,0x20,0x40,0x08,0x43,0x18,0x60, 0x1B,0x68,0x11,0x69,0x13,0x61,0x30,0xBD,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF, 0xB2,0x09,0x00,0x20,0x00,0xB5,0x72,0xB6,0x0F,0x4B,0x01,0x22,0x1A,0x70,0x0F,0x4B, 0x9A,0x7C,0x0F,0x4B,0x00,0x2A,0x07,0xD0,0x1A,0x68,0xF6,0x21,0xC9,0x01,0x11,0x40, 0x18,0x68,0x0C,0x4A,0x02,0x40,0x05,0xE0,0x19,0x68,0x7B,0x22,0x11,0x40,0x1A,0x68, 0x7F,0x20,0x82,0x43,0x0A,0x43,0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69, 0x1A,0x61,0x62,0xB6,0x00,0xBD,0xC0,0x46,0x68,0x00,0x00,0x20,0xB2,0x09,0x00,0x20, 0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF,0x00,0xB5,0x72,0xB6,0x10,0x4B,0x00,0x22, 0x1A,0x70,0x10,0x4B,0x9A,0x7C,0x10,0x4B,0x19,0x68,0x00,0x2A,0x08,0xD0,0x49,0x04, 0x04,0x22,0x49,0x0E,0x11,0x43,0x18,0x68,0x0C,0x4A,0x09,0x02,0x02,0x40,0x06,0xE0, 0x49,0x06,0x04,0x22,0x49,0x0E,0x11,0x43,0x1A,0x68,0x7F,0x20,0x82,0x43,0x0A,0x43, 0x1A,0x60,0x1A,0x68,0x80,0x23,0xDB,0x05,0x19,0x69,0x1A,0x61,0x62,0xB6,0x00,0xBD, 0x68,0x00,0x00,0x20,0xB2,0x09,0x00,0x20,0x08,0x00,0x00,0x20,0xFF,0x80,0xFF,0xFF, 0x01,0x4B,0x18,0x78,0x70,0x47,0xC0,0x46,0x68,0x00,0x00,0x20,0x00,0xB5,0x80,0x23, 0xDB,0x05,0x19,0x6C,0x80,0x22,0xD2,0x01,0x0A,0x43,0x1A,0x64,0x23,0x4A,0x80,0x21, 0x10,0x68,0x49,0x00,0x01,0x43,0x11,0x60,0x12,0x68,0x99,0x68,0x9A,0x60,0x19,0x6C, 0x80,0x22,0x12,0x02,0x0A,0x43,0x1A,0x64,0x19,0x6C,0x1D,0x4A,0x0A,0x40,0x1A,0x64, 0x1C,0x4B,0x7F,0x22,0x59,0x7B,0x1C,0x4B,0x11,0x40,0x18,0x68,0x1B,0x4A,0x09,0x04, 0x02,0x40,0x0A,0x43,0x1A,0x60,0x19,0x68,0xA0,0x22,0xD2,0x05,0x90,0x68,0x91,0x60, 0x18,0x68,0x17,0x49,0x01,0x40,0x84,0x20,0xC0,0x05,0x01,0x43,0x19,0x60,0x19,0x68, 0x90,0x68,0x91,0x60,0x13,0x49,0x09,0x78,0x49,0xB2,0x00,0x29,0x02,0xD0,0x01,0x29, 0x0C,0xD1,0x03,0xE0,0x18,0x68,0x10,0x49,0x01,0x40,0x03,0xE0,0x18,0x68,0x80,0x21, 0x09,0x04,0x01,0x43,0x19,0x60,0x1B,0x68,0x91,0x68,0x93,0x60,0x80,0x23,0xDB,0x05, 0x19,0x6C,0x0A,0x4A,0x0A,0x40,0x1A,0x64,0x00,0xBD,0xC0,0x46,0x14,0x00,0x00,0x20, 0xFF,0x7F,0xFF,0xFF,0xB2,0x09,0x00,0x20,0x0C,0x00,0x00,0x20,0xFF,0xFF,0x80,0xFF, 0xFF,0xFF,0xFF,0x80,0xFE,0x02,0x00,0x20,0xFF,0xFF,0x7F,0xFF,0xFF,0xBF,0xFF,0xFF, 0x04,0x4B,0x01,0x22,0x1A,0x70,0x80,0x23,0xDB,0x05,0x99,0x6C,0x91,0x43,0x99,0x64, 0x1A,0x70,0x70,0x47,0x00,0x00,0x00,0x20,0x03,0x4A,0x01,0x23,0x13,0x70,0x80,0x22, 0xD2,0x05,0x53,0x70,0x70,0x47,0xC0,0x46,0x02,0x00,0x00,0x20,0x00,0xB5,0x06,0x4B, 0x72,0xB6,0x1A,0x78,0x00,0x2A,0x04,0xD0,0xC0,0x46,0xC0,0x46,0x62,0xB6,0x30,0xBF, 0xF6,0xE7,0x62,0xB6,0x00,0xBD,0xC0,0x46,0x02,0x00,0x00,0x20,0x38,0xB5,0x09,0x4B, 0x09,0x49,0x9A,0x78,0x1C,0x79,0x51,0x43,0x08,0x4B,0x05,0x1C,0xC9,0x18,0x08,0x48, 0x02,0xF0,0x74,0xF8,0x06,0x4B,0x29,0x1C,0x01,0x34,0x58,0x43,0xA1,0x40,0x02,0xF0, 0x6D,0xF8,0x38,0xBD,0xAE,0x0A,0x00,0x20,0x44,0xFE,0xFF,0xFF,0xFE,0x24,0x02,0x00, 0x40,0x42,0x0F,0x00,0x05,0x4B,0x19,0x68,0x80,0x23,0xDB,0x05,0x5A,0x69,0x09,0x02, 0x12,0x0E,0x09,0x0A,0x12,0x06,0x0A,0x43,0x5A,0x61,0x70,0x47,0x04,0x00,0x00,0x20, 0x01,0x4B,0x18,0x60,0x70,0x47,0xC0,0x46,0x04,0x00,0x00,0x20,0x05,0x4B,0x01,0x22, 0x1A,0x70,0x80,0x23,0xDB,0x05,0x59,0x69,0x80,0x22,0x52,0x04,0x0A,0x43,0x5A,0x61, 0x70,0x47,0xC0,0x46,0x01,0x00,0x00,0x20,0x00,0xB5,0x05,0x4B,0x72,0xB6,0x1A,0x78, 0x00,0x2A,0x03,0xD0,0xC0,0x46,0xC0,0x46,0x62,0xB6,0xF7,0xE7,0x62,0xB6,0x00,0xBD, 0x00,0x00,0x00,0x20,0x00,0xB5,0x10,0x4B,0x1B,0x68,0x9A,0x05,0x0C,0xD5,0x0F,0x4A, 0x0F,0x4B,0x72,0xB6,0x11,0x78,0x00,0x29,0x02,0xD1,0x19,0x78,0x00,0x29,0x11,0xD0, 0xC0,0x46,0xC0,0x46,0x62,0xB6,0xF4,0xE7,0x08,0x4A,0x09,0x4B,0x72,0xB6,0x11,0x78, 0x00,0x29,0x02,0xD1,0x19,0x78,0x00,0x29,0x04,0xD0,0xC0,0x46,0xC0,0x46,0x62,0xB6, 0x30,0xBF,0xF3,0xE7,0x62,0xB6,0x00,0xBD,0x58,0x00,0x00,0x20,0x01,0x00,0x00,0x20, 0x00,0x00,0x00,0x20,0x70,0xB5,0x13,0x49,0x13,0x4B,0x04,0x24,0x19,0x60,0x13,0x4B, 0x13,0x4D,0x1A,0x68,0x22,0x43,0x1A,0x60,0x1A,0x68,0x02,0x24,0xA2,0x43,0x1A,0x60, 0x1A,0x68,0x01,0x24,0x22,0x43,0x0F,0x4C,0x1A,0x60,0x00,0x22,0x22,0x60,0x0E,0x4A, 0x11,0x60,0x2E,0x78,0x2D,0x79,0x70,0x43,0x01,0x35,0xE8,0x40,0x09,0x1A,0x11,0x60, 0x20,0x68,0x11,0x68,0x88,0x42,0xFB,0xD2,0x1A,0x68,0x01,0x21,0x8A,0x43,0x1A,0x60, 0x70,0xBD,0xC0,0x46,0xFF,0xFF,0xFF,0x00,0x14,0xE0,0x00,0xE0,0x10,0xE0,0x00,0xE0, 0xAE,0x0A,0x00,0x20,0x18,0xE0,0x00,0xE0,0x00,0x02,0x00,0x20,0x00,0xB5,0x00,0x23, 0x06,0x4A,0x98,0x42,0x02,0xDB,0xD3,0x1C,0xDB,0x7F,0x43,0x43,0x02,0x32,0xD2,0x7F, 0x01,0x30,0x52,0xB2,0x90,0x40,0x18,0x18,0x40,0x18,0x00,0xBD,0xB2,0x09,0x00,0x20, 0xF0,0xB5,0x85,0xB0,0x05,0x1C,0x0C,0x1C,0x16,0x1C,0x00,0x29,0x05,0xD0,0x2B,0x4B, 0x02,0x33,0xDB,0x7F,0x5B,0xB2,0x00,0x2B,0x4E,0xD0,0x21,0x1C,0x28,0x1C,0xFF,0xF7, 0xDD,0xFF,0x27,0x49,0x27,0x4F,0x4A,0x7A,0x09,0x7A,0x13,0x19,0x51,0x18,0x02,0x91, 0x41,0x01,0xCF,0x19,0x00,0x22,0x03,0x97,0x84,0x46,0x13,0xE0,0x22,0x48,0xC1,0x56, 0x58,0x1C,0xC0,0xB2,0xCF,0x0F,0x01,0x90,0x7F,0x18,0x03,0x98,0x7F,0x10,0xC7,0x19, 0x08,0x37,0x00,0x97,0x6F,0x46,0x38,0x79,0x00,0x9F,0x02,0x33,0xB8,0x70,0x01,0x27, 0x8F,0x40,0x3A,0x43,0x02,0x98,0x83,0x42,0xE8,0xDB,0x15,0x4B,0x60,0x46,0xDF,0x79, 0x61,0x42,0x61,0x41,0x5B,0x7C,0x79,0x18,0x1C,0x19,0x49,0x10,0x01,0x39,0x01,0x34, 0x89,0x06,0x24,0x05,0x0C,0x43,0x22,0x43,0x0E,0x49,0x10,0x4C,0x40,0x01,0x43,0x18, 0x0F,0x4F,0x01,0x19,0x4C,0x68,0x4A,0x60,0xAA,0x1C,0xD2,0xB2,0xC0,0x19,0x02,0x71, 0x00,0x2E,0x07,0xD0,0x0B,0x4A,0x01,0x21,0x52,0x57,0x91,0x40,0x0A,0x1C,0x99,0x69, 0x9A,0x61,0x01,0xE0,0x9A,0x69,0x9E,0x61,0x05,0xB0,0xF0,0xBD,0xB2,0x09,0x00,0x20, 0x0E,0x03,0x00,0x20,0x00,0x10,0x00,0x40,0x10,0x75,0x00,0x00,0x18,0x10,0x00,0x40, 0x10,0x10,0x00,0x40,0xEA,0x74,0x00,0x00,0x10,0xB5,0x08,0x4B,0x00,0x21,0x1B,0x68, 0x01,0x3B,0x08,0xE0,0x06,0x4C,0x58,0x01,0x09,0x22,0x00,0x19,0x84,0x18,0xA1,0x72, 0x01,0x3A,0xFB,0xD2,0x01,0x3B,0x00,0x2B,0xF4,0xDA,0x10,0xBD,0x1C,0x09,0x00,0x20, 0x00,0x10,0x00,0x40,0x38,0xB5,0xFF,0xF7,0xE7,0xFF,0x00,0x21,0x01,0x20,0x0A,0x1C, 0x40,0x42,0xFF,0xF7,0x75,0xFF,0x01,0x20,0x40,0x42,0x01,0x21,0x00,0x22,0xFF,0xF7, 0x6F,0xFF,0x0A,0x4D,0xAC,0x7B,0x0B,0xE0,0x20,0x1C,0x00,0x21,0x01,0x22,0xFF,0xF7, 0x67,0xFF,0x01,0x21,0x20,0x1C,0x0A,0x1C,0xFF,0xF7,0x62,0xFF,0x01,0x34,0xE4,0xB2, 0xAA,0x7B,0x2B,0x79,0xD3,0x18,0x9C,0x42,0xEE,0xDB,0x38,0xBD,0x0E,0x03,0x00,0x20, 0xF0,0xB5,0x85,0xB0,0x05,0x1C,0x0E,0x1C,0x02,0x92,0x1F,0x1C,0x00,0x29,0x05,0xD0, 0x21,0x4B,0x02,0x33,0xDB,0x7F,0x5B,0xB2,0x00,0x2B,0x3B,0xD0,0x31,0x1C,0x28,0x1C, 0xFF,0xF7,0x34,0xFF,0x1D,0x4A,0xC0,0xB2,0x01,0x90,0x53,0x7A,0x12,0x7A,0xF6,0x18, 0x9A,0x18,0x1B,0x4B,0xB9,0x1E,0x1B,0x7C,0x48,0x1E,0x81,0x41,0x49,0x42,0xF6,0xB2, 0x03,0x91,0x9C,0x46,0x24,0xE0,0x00,0x2F,0x07,0xD1,0x26,0x21,0x71,0x43,0x15,0x4B, 0x49,0x19,0xCC,0x5C,0x64,0x44,0xE4,0xB2,0x08,0xE0,0x01,0x2F,0x04,0xD1,0x73,0x01, 0x11,0x49,0x5B,0x19,0x5C,0x5C,0x01,0xE0,0x03,0x9B,0x1C,0x40,0x0F,0x4B,0x02,0x99, 0x9B,0x57,0x02,0x36,0xD8,0x0F,0xC0,0x18,0x63,0x18,0xDB,0xB2,0x00,0x93,0x01,0x9B, 0x40,0x10,0x59,0x01,0x6B,0x46,0x08,0x18,0x1B,0x78,0x09,0x49,0xF6,0xB2,0x43,0x54, 0x96,0x42,0xD8,0xDB,0x05,0xB0,0xF0,0xBD,0xB2,0x09,0x00,0x20,0x0E,0x03,0x00,0x20, 0x4C,0x0D,0x00,0x20,0x36,0x75,0x00,0x00,0xB7,0x0A,0x00,0x20,0x10,0x75,0x00,0x00, 0x00,0x10,0x00,0x40,0x70,0xB5,0x2A,0x4B,0x2A,0x4A,0x19,0x68,0x80,0x24,0x0A,0x40, 0x1A,0x60,0x1A,0x68,0xE4,0x05,0x28,0x4D,0xA1,0x68,0xA2,0x60,0x69,0x7A,0x03,0x22, 0x18,0x68,0x11,0x40,0x25,0x4A,0x89,0x04,0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68, 0xA1,0x68,0xA2,0x60,0x19,0x68,0x80,0x22,0x52,0x03,0x0A,0x43,0x1A,0x60,0x1A,0x68, 0xA1,0x68,0xA2,0x60,0x29,0x7A,0x18,0x68,0x07,0x26,0x1D,0x4A,0x31,0x40,0x49,0x05, 0x02,0x40,0x0A,0x43,0x1A,0x60,0x1A,0x68,0xA1,0x68,0xA2,0x60,0xA9,0x7B,0x0F,0x29, 0x25,0xD8,0xEA,0x7B,0x0F,0x2A,0x22,0xD8,0x18,0x68,0x09,0x07,0x00,0x01,0x00,0x09, 0x01,0x43,0x19,0x60,0x0F,0x21,0x0A,0x40,0x18,0x68,0x11,0x06,0x11,0x4A,0x02,0x40, 0x0A,0x43,0x1A,0x60,0x1B,0x68,0xA2,0x68,0xA3,0x60,0xFF,0xF7,0x49,0xFC,0x0E,0x4A, 0x63,0x6C,0x13,0x43,0x63,0x64,0xFF,0xF7,0x5C,0xFC,0xFF,0xF7,0x87,0xFC,0xEB,0x79, 0x0A,0x4A,0x1E,0x40,0x33,0x02,0x26,0x6C,0x16,0x40,0x1E,0x43,0x26,0x64,0x70,0xBD, 0x14,0x00,0x00,0x20,0xFF,0xFF,0xFC,0xFF,0x4C,0x0D,0x00,0x20,0xFF,0xFF,0xF3,0xFF, 0xFF,0xFF,0x1F,0xFF,0xFF,0xFF,0xFF,0xF0,0xFF,0xFF,0x0F,0x00,0xFF,0xF8,0xFF,0xFF, 0x00,0xB5,0x80,0x21,0xC9,0x05,0x0B,0x79,0x5A,0x1E,0xD2,0xB2,0x98,0x42,0x09,0xDD, 0x00,0xE0,0x0B,0x71,0x01,0x33,0xDB,0xB2,0x83,0x42,0xFA,0xDD,0x04,0xE0,0x0A,0x71, 0x01,0x3A,0xD2,0xB2,0x82,0x42,0xFA,0xDA,0x00,0xBD,0x38,0xB5,0x17,0x4C,0xA0,0x78, 0xFF,0xF7,0xE6,0xFF,0x80,0x23,0xDB,0x05,0x21,0x79,0x5A,0x68,0xC9,0x07,0x52,0x00, 0x52,0x08,0x0A,0x43,0x5A,0x60,0x60,0x79,0x03,0x22,0x5D,0x68,0x10,0x49,0x10,0x40, 0x80,0x03,0x29,0x40,0x01,0x43,0x59,0x60,0xA0,0x79,0x0E,0x49,0x5D,0x68,0x10,0x40, 0x00,0x03,0x29,0x40,0x01,0x43,0x59,0x60,0xE0,0x79,0x0B,0x49,0x5D,0x68,0x10,0x40, 0x29,0x40,0x80,0x02,0x01,0x43,0x59,0x60,0x21,0x7A,0x58,0x68,0x0A,0x40,0x11,0x02, 0x06,0x4A,0x02,0x40,0x0A,0x43,0x5A,0x60,0x38,0xBD,0xC0,0x46,0xAE,0x0A,0x00,0x20, 0xFF,0x3F,0xFF,0xFF,0xFF,0xCF,0xFF,0xFF,0xFF,0xF3,0xFF,0xFF,0xFF,0xFC,0xFF,0xFF, 0xF8,0xB5,0x80,0x23,0xDB,0x05,0x1A,0x68,0x7A,0x4A,0x00,0x21,0x08,0x20,0x19,0x60, 0x10,0x60,0x14,0x68,0x9D,0x68,0x9C,0x60,0x77,0x4C,0x21,0x60,0x24,0x68,0xDD,0x68, 0xDC,0x60,0xFE,0x25,0x75,0x4C,0xED,0x01,0x25,0x60,0x24,0x68,0x1D,0x69,0x1C,0x61, 0x5C,0x69,0x59,0x61,0x9C,0x69,0x99,0x61,0xDC,0x69,0xD9,0x61,0x1C,0x6C,0x80,0x24, 0xE4,0x01,0x1C,0x64,0x5C,0x6C,0x59,0x64,0x9C,0x6C,0x6D,0x4C,0x99,0x64,0x21,0x60, 0xA0,0x24,0xE4,0x05,0xA5,0x68,0xA1,0x60,0x1C,0x6C,0x6A,0x49,0x21,0x40,0x19,0x64, 0x1C,0x68,0x80,0x21,0x49,0x05,0x21,0x43,0x19,0x60,0x67,0x49,0x01,0x31,0xC9,0x7F, 0x00,0x29,0x03,0xD0,0x11,0x68,0x08,0x43,0x10,0x60,0x02,0xE0,0x11,0x68,0x81,0x43, 0x11,0x60,0x11,0x68,0x98,0x68,0x99,0x60,0x13,0x68,0x04,0x26,0x33,0x43,0x13,0x60, 0x13,0x68,0x80,0x25,0xED,0x05,0xA9,0x68,0xAB,0x60,0x13,0x68,0x02,0x27,0x3B,0x43, 0x13,0x60,0x13,0x68,0xA9,0x68,0xAB,0x60,0x13,0x68,0x01,0x20,0x83,0x43,0x13,0x60, 0x13,0x68,0xAA,0x68,0xAB,0x60,0xFF,0xF7,0xED,0xFE,0x54,0x4B,0x1C,0x22,0x9A,0x56, 0xA9,0x69,0x53,0x4B,0x12,0x05,0xF2,0x40,0x0B,0x40,0x13,0x43,0xAB,0x61,0xFF,0xF7, 0x61,0xFE,0x50,0x4A,0x50,0x4B,0x01,0x21,0x1A,0x60,0x50,0x4B,0x08,0x24,0x1A,0x68, 0x10,0x20,0x32,0x43,0x1A,0x60,0x1A,0x68,0xBA,0x43,0x1A,0x60,0x4C,0x4B,0xC0,0x22, 0x52,0x00,0x99,0x50,0x20,0x21,0x9F,0x50,0x9E,0x50,0x9C,0x50,0x98,0x50,0x99,0x50, 0x40,0x21,0x99,0x50,0xC0,0x22,0xBA,0x40,0x98,0x58,0xFF,0x24,0xA0,0x43,0xC0,0x24, 0x20,0x43,0x98,0x50,0x9C,0x58,0x43,0x48,0x04,0x40,0x9C,0x50,0x9C,0x58,0x42,0x48, 0x20,0x40,0x80,0x24,0x24,0x04,0x04,0x43,0x9C,0x50,0x9C,0x58,0x24,0x02,0x24,0x0A, 0x2C,0x43,0x9C,0x50,0xC1,0x22,0xBA,0x40,0x98,0x58,0x04,0x1C,0xFF,0x20,0x84,0x43, 0x0C,0x43,0x9C,0x50,0x9C,0x58,0x37,0x48,0x20,0x40,0x80,0x24,0x24,0x02,0x20,0x43, 0x98,0x50,0x98,0x58,0x34,0x4C,0x20,0x40,0x98,0x50,0x34,0x4A,0x10,0x69,0x30,0x43, 0x10,0x61,0x62,0xB6,0x08,0x22,0x01,0x20,0x1E,0x60,0x18,0x60,0x1F,0x60,0x1A,0x60, 0x2F,0x4B,0x20,0x20,0x10,0x24,0xDC,0x67,0xD8,0x67,0xD9,0x67,0xFF,0xF7,0x46,0xFC, 0x21,0x4C,0xE0,0x7D,0x21,0x7E,0xFF,0xF7,0xFB,0xFA,0xE3,0x7C,0x00,0x2B,0x26,0xD0, 0x1A,0x4B,0x01,0x21,0x18,0x68,0x27,0x4A,0x40,0x00,0x40,0x0E,0x08,0x43,0x19,0x68, 0x00,0x06,0x11,0x40,0x01,0x43,0x19,0x60,0x19,0x68,0x28,0x69,0x29,0x61,0x19,0x68, 0x49,0x00,0x49,0x0E,0x0F,0x43,0x39,0x06,0x1F,0x68,0x17,0x40,0x0F,0x43,0x1F,0x60, 0x19,0x68,0x28,0x69,0x29,0x61,0x19,0x68,0x49,0x00,0x49,0x0E,0x0E,0x43,0x19,0x68, 0x36,0x06,0x0A,0x40,0x32,0x43,0x1A,0x60,0x1B,0x68,0x2A,0x69,0x2B,0x61,0xFF,0xF7, 0xD4,0xFE,0xFF,0xF7,0xC1,0xF8,0xFF,0xF7,0x0F,0xF9,0xFF,0xF7,0x7D,0xF9,0xFF,0xF7, 0x65,0xFB,0xF8,0xBD,0x14,0x00,0x00,0x20,0x10,0x00,0x00,0x20,0x08,0x00,0x00,0x20, 0x0C,0x00,0x00,0x20,0xFF,0xFF,0x7F,0xFF,0xB2,0x09,0x00,0x20,0x4C,0x0D,0x00,0x20, 0xFF,0xFF,0x00,0xF0,0xFF,0xFF,0xFF,0x00,0x14,0xE0,0x00,0xE0,0x10,0xE0,0x00,0xE0, 0x00,0xE1,0x00,0xE0,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0xFF,0x00,0xED,0x00,0xE0, 0x04,0xE1,0x00,0xE0,0xFF,0xFF,0xFF,0x80,0x08,0xB5,0x0C,0x4A,0x0C,0x4B,0x0D,0x49, 0x01,0xE0,0x01,0xCA,0x01,0xC3,0x8B,0x42,0xFB,0xD3,0x0B,0x4B,0x0B,0x49,0x00,0x22, 0x00,0xE0,0x04,0xC3,0x8B,0x42,0xFC,0xD3,0xFF,0xF7,0x26,0xF8,0x08,0x4B,0x00,0x22, 0x00,0xE0,0x04,0xC3,0x83,0x42,0xFC,0xD3,0x08,0xBD,0xC0,0x46,0xD0,0x57,0x00,0x00, 0x3C,0x00,0x00,0x20,0x5C,0x00,0x00,0x20,0x5C,0x00,0x00,0x20,0xF0,0x11,0x00,0x20, 0x0C,0x1E,0x00,0x20,0x00,0xB5,0x13,0x4B,0x1B,0x68,0x01,0x2B,0x02,0xD0,0x08,0x2B, 0x1E,0xD1,0x0F,0xE0,0x10,0x4B,0x11,0x4A,0x1A,0x60,0x11,0x4A,0x5A,0x60,0x11,0x4A, 0x11,0x4B,0x1A,0x60,0x11,0x4B,0x12,0x4A,0x1A,0x60,0x12,0x4A,0x5A,0x60,0x12,0x4A, 0x9A,0x60,0x0D,0xE0,0x09,0x4B,0x08,0x4A,0x09,0x49,0x13,0x60,0x51,0x60,0x0A,0x4A, 0x13,0x60,0x0A,0x4A,0x13,0x60,0x53,0x60,0x93,0x60,0x0C,0x4B,0x01,0x22,0x1A,0x70, 0x00,0xBD,0xC0,0x46,0x54,0x11,0x00,0x20,0x6C,0x00,0x00,0x20,0xF9,0x03,0x00,0x00, 0xE5,0x3D,0x00,0x00,0x1D,0x3E,0x00,0x00,0x04,0x02,0x00,0x20,0x18,0x00,0x00,0x20, 0x29,0x3F,0x00,0x00,0x11,0x41,0x00,0x00,0x75,0x42,0x00,0x00,0xE8,0x01,0x00,0x20, 0x00,0xB5,0x00,0x23,0xC2,0x5C,0x01,0x33,0x00,0x2A,0xFB,0xD1,0x01,0x3B,0xD8,0xB2, 0x00,0xBD,0xC0,0x46,0xF7,0xB5,0x1C,0x1C,0x08,0xAB,0x1F,0x78,0x26,0x4B,0x0E,0x1C, 0x1B,0x68,0x01,0x21,0x81,0x40,0x0B,0x42,0x44,0xD0,0x00,0x2F,0x07,0xD0,0x04,0x2C, 0x32,0xD8,0x22,0x4B,0x19,0x5D,0x05,0x33,0x00,0x91,0x1F,0x5D,0x08,0xE0,0x04,0x2C, 0x2E,0xD8,0x1E,0x4B,0x19,0x1C,0x0A,0x31,0x09,0x5D,0x0F,0x33,0x1F,0x5D,0x00,0x91, 0x03,0x2C,0x28,0xD0,0x00,0x2C,0x28,0xD0,0x28,0xE0,0x3A,0x20,0x21,0x1C,0x01,0xF0, 0x5D,0xFC,0x86,0x42,0x05,0xDD,0x6B,0x46,0x1B,0x78,0xC0,0xB2,0x2B,0x70,0x68,0x70, 0x02,0xE0,0x2F,0x70,0x30,0x1C,0x6E,0x70,0x36,0x1A,0x60,0x43,0x01,0x99,0x00,0x23, 0x69,0x60,0xAB,0x60,0x09,0x18,0xF6,0xB2,0x01,0x91,0xFF,0xF7,0xE3,0xFA,0xFF,0xF7, 0x37,0xFB,0x00,0x28,0xFB,0xD1,0x0B,0xE0,0x0F,0x23,0x00,0x27,0x00,0x93,0x05,0xE0, 0x0F,0x21,0x00,0x91,0x02,0xE0,0x02,0x24,0x00,0xE0,0x01,0x24,0x04,0x4D,0x01,0x92, 0x00,0x2E,0xD2,0xD1,0xF7,0xBD,0xC0,0x46,0x58,0x00,0x00,0x20,0x5C,0x57,0x00,0x00, 0x74,0x00,0x00,0x20,0x38,0xB5,0x11,0x4B,0x01,0x22,0x1B,0x68,0x82,0x40,0x0D,0x1C, 0x13,0x42,0x19,0xD0,0x0E,0x4C,0x0B,0x23,0x23,0x70,0x08,0x1C,0xFF,0xF7,0x90,0xFF, 0x60,0x70,0x63,0x78,0x07,0x22,0x02,0x33,0x13,0x40,0x93,0x42,0x03,0xD1,0x63,0x78, 0x01,0x3B,0xDB,0xB2,0x63,0x70,0x00,0x23,0x65,0x60,0xA3,0x60,0xFF,0xF7,0xAA,0xFA, 0xFF,0xF7,0xFE,0xFA,0x00,0x28,0xFB,0xD1,0x38,0xBD,0xC0,0x46,0x58,0x00,0x00,0x20, 0x74,0x00,0x00,0x20,0x1F,0xB5,0x0B,0x4C,0x6B,0x46,0xD8,0x73,0x23,0x78,0x00,0x2B, 0x03,0xD0,0x00,0x20,0x08,0x49,0xFF,0xF7,0xCD,0xFF,0x23,0x78,0x00,0x2B,0x07,0xD0, 0x6A,0x46,0x01,0x21,0x00,0x20,0x0F,0x32,0x04,0x23,0x00,0x91,0xFF,0xF7,0x6A,0xFF, 0x1F,0xBD,0xC0,0x46,0xEF,0x01,0x00,0x20,0x70,0x57,0x00,0x00,0xF8,0xB5,0xFF,0xF7, 0xD7,0xFA,0x00,0x28,0x70,0xD1,0x39,0x4B,0x1A,0x68,0x00,0x2A,0x03,0xDC,0x38,0x4B, 0x1B,0x68,0x00,0x2B,0x3E,0xDD,0x37,0x49,0x03,0x23,0x0B,0x70,0x36,0x4B,0x04,0x33, 0xDB,0x7F,0x1C,0x1C,0x9A,0x42,0x00,0xDA,0xD3,0xB2,0x4B,0x70,0x0A,0x21,0x8C,0x46, 0x32,0x4A,0x00,0x23,0x2D,0x49,0x1F,0xE0,0x01,0x33,0x03,0xE0,0x66,0x46,0x5E,0x43, 0x00,0x20,0x76,0x18,0x0A,0x30,0x37,0x18,0x32,0x25,0x7F,0x5F,0x00,0x2F,0xF3,0xD0, 0xA3,0x42,0x13,0xDA,0x58,0x00,0x08,0x18,0x80,0x88,0xDE,0x00,0x10,0x70,0x00,0xB2, 0x00,0x12,0x80,0x19,0x50,0x70,0x18,0x1C,0x10,0x30,0x40,0x00,0x08,0x5A,0x01,0x33, 0x90,0x70,0x00,0x0A,0xD0,0x70,0x04,0x32,0xA3,0x42,0xDF,0xDB,0x1D,0x4B,0x1F,0x4A, 0x5A,0x60,0x00,0x22,0x9A,0x60,0xFF,0xF7,0x3D,0xFA,0xFF,0xF7,0x91,0xFA,0x00,0x28, 0xFB,0xD1,0x29,0xE0,0x1A,0x4A,0x53,0x68,0x01,0x33,0x25,0xD0,0x15,0x4B,0x13,0x21, 0x19,0x70,0x11,0x68,0x94,0x46,0x59,0x70,0x16,0x4B,0x14,0x49,0x1D,0x78,0x03,0x1C, 0x0D,0xE0,0x23,0x1C,0x01,0xE0,0x5E,0x00,0x66,0x44,0x02,0x30,0x34,0x18,0x06,0x22, 0xA7,0x5E,0x5C,0x1C,0x00,0x2F,0xF4,0xD0,0x0B,0x70,0x23,0x1C,0x01,0x31,0x00,0x20, 0xAB,0x42,0xF0,0xDB,0x07,0x4B,0x09,0x4A,0x98,0x60,0x5A,0x60,0xFF,0xF7,0x12,0xFA, 0xFF,0xF7,0x66,0xFA,0x00,0x28,0xFB,0xD1,0xF8,0xBD,0xC0,0x46,0xA0,0x0D,0x00,0x20, 0x24,0x01,0x00,0x20,0x74,0x00,0x00,0x20,0xB2,0x09,0x00,0x20,0xF4,0x09,0x00,0x20, 0xE4,0x00,0x00,0x20,0x80,0x09,0x00,0x20,0x08,0xB5,0x64,0x4B,0x1B,0x88,0x1D,0x2B, 0x47,0xD0,0x1A,0xD8,0x05,0x2B,0x00,0xD1,0x96,0xE0,0x0D,0xD8,0x02,0x2B,0x63,0xD0, 0x03,0xD8,0x01,0x2B,0x00,0xD0,0xB7,0xE0,0x57,0xE0,0x03,0x2B,0x00,0xD1,0x87,0xE0, 0x04,0x2B,0x00,0xD0,0xB0,0xE0,0x8F,0xE0,0x07,0x2B,0x65,0xD0,0x5C,0xD3,0x1B,0x2B, 0x1C,0xD0,0x1C,0x2B,0x00,0xD0,0xA7,0xE0,0x22,0xE0,0x22,0x2B,0x40,0xD0,0x08,0xD8, 0x1F,0x2B,0x5D,0xD0,0x2A,0xD3,0x20,0x2B,0x5E,0xD0,0x21,0x2B,0x00,0xD0,0x9B,0xE0, 0x5E,0xE0,0x41,0x2B,0x64,0xD0,0x03,0xD8,0x40,0x2B,0x00,0xD0,0x94,0xE0,0x5B,0xE0, 0x42,0x2B,0x61,0xD0,0x60,0x2B,0x00,0xD0,0x8E,0xE0,0x72,0xE0,0x48,0x4A,0x49,0x4B, 0x12,0x78,0x01,0x20,0x19,0x68,0x90,0x40,0x02,0x1C,0x0A,0x43,0x1A,0x60,0x83,0xE0, 0x43,0x49,0x44,0x4B,0x09,0x78,0x1A,0x68,0x01,0x20,0x88,0x40,0x82,0x43,0x1A,0x60, 0x7A,0xE0,0x3F,0x4B,0x1A,0x78,0x40,0x4B,0x1A,0x70,0x75,0xE0,0x3C,0x4B,0x0D,0x21, 0x1A,0x78,0x3E,0x4B,0x1A,0x70,0x3C,0x4A,0x11,0x70,0x1A,0x78,0x3C,0x4B,0x00,0x2A, 0x02,0xD0,0x00,0x22,0x5A,0x70,0x67,0xE0,0x3A,0x4A,0x52,0x78,0x5A,0x70,0x63,0xE0, 0x33,0x4B,0x1A,0x78,0x38,0x4B,0x1A,0x70,0x5E,0xE0,0x31,0x4B,0x1A,0x78,0x37,0x4B, 0x1A,0x60,0xFD,0xF7,0xE9,0xFB,0x57,0xE0,0x2D,0x4B,0x1A,0x78,0x34,0x4B,0x9A,0x70, 0x98,0x78,0xFF,0xF7,0x8D,0xFC,0x4F,0xE0,0x29,0x4B,0x1A,0x78,0x30,0x4B,0x9A,0x70, 0x29,0x4B,0x0F,0x22,0x1A,0x70,0x47,0xE0,0x2E,0x4B,0x01,0x22,0x1A,0x70,0x43,0xE0, 0x2D,0x4B,0x01,0x22,0x1A,0x70,0x3F,0xE0,0x0C,0x20,0xFD,0xF7,0x6F,0xF9,0x3B,0xE0, 0x0D,0x20,0xFD,0xF7,0x6B,0xF9,0x37,0xE0,0x28,0x4B,0x01,0x22,0x1A,0x70,0x33,0xE0, 0x27,0x4B,0x01,0x22,0x1A,0x70,0x2F,0xE0,0x26,0x4B,0x01,0x22,0x1A,0x70,0x2B,0xE0, 0x25,0x4B,0x01,0x22,0x1A,0x70,0x27,0xE0,0x24,0x4B,0x01,0x22,0x1A,0x70,0x14,0x4B, 0x1A,0x78,0x23,0x4B,0x1A,0x70,0x1F,0xE0,0x11,0x4B,0x1A,0x78,0x1E,0x4B,0x9A,0x70, 0x1A,0xE0,0x0F,0x4B,0x1A,0x78,0x1F,0x4B,0x1A,0x70,0x1A,0x78,0x10,0x4B,0x01,0x3A, 0x01,0x2A,0x03,0xD8,0x40,0x33,0x0F,0x22,0x1A,0x70,0x0D,0xE0,0x1A,0x4A,0x40,0x33, 0x12,0x78,0x00,0x2A,0x04,0xD0,0x19,0x4A,0x40,0x32,0x12,0x78,0x1A,0x70,0x03,0xE0, 0x08,0x4A,0x40,0x32,0x12,0x78,0x1A,0x70,0x08,0xBD,0xC0,0x46,0x28,0x00,0x00,0x20, 0x0C,0x00,0x00,0x50,0x58,0x00,0x00,0x20,0x21,0x03,0x00,0x20,0xE7,0x01,0x00,0x20, 0x4C,0x0D,0x00,0x20,0x4A,0x74,0x00,0x00,0xE2,0x01,0x00,0x20,0x54,0x11,0x00,0x20, 0xAE,0x0A,0x00,0x20,0xE8,0x01,0x00,0x20,0xE0,0x01,0x00,0x20,0xEC,0x01,0x00,0x20, 0xEB,0x01,0x00,0x20,0xE9,0x01,0x00,0x20,0x8F,0x01,0x00,0x20,0xEA,0x01,0x00,0x20, 0x96,0x01,0x00,0x20,0xE4,0x01,0x00,0x20,0xE1,0x01,0x00,0x20,0x9A,0x74,0x00,0x00, 0x30,0xB5,0x4A,0x4B,0x1B,0x88,0x34,0x2B,0x47,0xD0,0x0C,0xD8,0x2E,0x2B,0x4F,0xD0, 0x04,0xD8,0x00,0x2B,0x14,0xD0,0x1D,0x2B,0x78,0xD1,0x16,0xE0,0x2F,0x2B,0x51,0xD0, 0x30,0x2B,0x73,0xD1,0x56,0xE0,0x38,0x2B,0x66,0xD0,0x04,0xD8,0x35,0x2B,0x39,0xD0, 0x37,0x2B,0x6B,0xD1,0x5B,0xE0,0x39,0x2B,0x63,0xD0,0x86,0x2B,0x66,0xD1,0x09,0xE0, 0x3B,0x4B,0x5A,0x7B,0x3B,0x4B,0x1A,0x70,0x6F,0xE0,0x3B,0x4B,0x1A,0x78,0x39,0x4B, 0x1A,0x70,0x6A,0xE0,0x39,0x49,0x3A,0x4A,0x0B,0x78,0x00,0x2B,0x0F,0xD1,0x10,0x78, 0x34,0x49,0x08,0x70,0x50,0x78,0x37,0x49,0x08,0x70,0x52,0x68,0xD1,0x18,0x36,0x4C, 0x08,0x78,0x19,0x19,0x01,0x33,0x08,0x70,0x06,0x2B,0xF7,0xD1,0x55,0xE0,0x52,0x68, 0x00,0x23,0x08,0x78,0x2B,0x4D,0xC0,0x18,0x02,0x38,0x10,0x18,0x04,0x78,0x58,0x19, 0x01,0x33,0x04,0x70,0x08,0x2B,0xF4,0xD1,0x47,0xE0,0x2C,0x4B,0x1A,0x68,0x25,0x4B, 0x1A,0x60,0x42,0xE0,0x80,0x23,0xDB,0x05,0x1A,0x79,0x22,0x4B,0x1A,0x70,0x3C,0xE0, 0x22,0x4B,0x27,0x4A,0x1B,0x78,0x1F,0x49,0xD3,0x18,0x1A,0x68,0x5B,0x68,0x0A,0x60, 0x4B,0x60,0x32,0xE0,0x1A,0x4B,0x1A,0x1C,0x2C,0x32,0x11,0x78,0x19,0x4A,0x00,0x29, 0x07,0xD1,0x09,0xE0,0x16,0x4B,0x1A,0x1C,0x2C,0x32,0x11,0x78,0x15,0x4A,0x00,0x29, 0x02,0xD1,0xDB,0x8C,0x13,0x80,0x20,0xE0,0x1B,0x8D,0x13,0x80,0x1D,0xE0,0x19,0x4B, 0x1A,0x78,0x10,0x4B,0x1A,0x70,0x18,0xE0,0x17,0x4B,0x1A,0x78,0x0D,0x4B,0x1A,0x70, 0x13,0xE0,0x16,0x4B,0x1A,0x78,0x0B,0x4B,0x1A,0x70,0x0E,0xE0,0x90,0x3B,0x9A,0xB2, 0x13,0x2A,0x0A,0xD8,0x09,0x4A,0x5B,0x01,0x12,0x78,0x06,0x49,0x9B,0x18,0x10,0x4A, 0x9B,0x18,0x1A,0x68,0x5B,0x68,0x0A,0x60,0x4B,0x60,0x30,0xBD,0x28,0x00,0x00,0x20, 0xB2,0x09,0x00,0x20,0x0C,0x00,0x00,0x50,0x21,0x03,0x00,0x20,0x2A,0x00,0x00,0x20, 0x74,0x00,0x00,0x20,0x0D,0x00,0x00,0x50,0x0E,0x00,0x00,0x50,0x20,0x09,0x00,0x20, 0xB5,0x09,0x00,0x20,0xFF,0x5B,0x00,0x00,0xFF,0x73,0x00,0x00,0xFF,0x7B,0x00,0x00, 0xB7,0x0A,0x00,0x20,0x08,0xB5,0x08,0x4B,0x1B,0x88,0x86,0x2B,0x0B,0xD1,0x07,0x4B, 0x9A,0x68,0x01,0x2A,0x02,0xDC,0x9A,0x68,0x01,0x32,0x9A,0x60,0x9B,0x68,0x02,0x2B, 0x01,0xD1,0xFF,0xF7,0x71,0xF8,0x08,0xBD,0x28,0x00,0x00,0x20,0x74,0x00,0x00,0x20, 0x7F,0xB5,0x31,0x4C,0x03,0x90,0x23,0x78,0x0D,0x1C,0x16,0x1C,0x00,0x2B,0x03,0xD0, 0x01,0x20,0x2E,0x49,0xFF,0xF7,0x6E,0xFD,0x23,0x78,0x00,0x2B,0x06,0xD0,0x01,0x21, 0x08,0x1C,0x03,0xAA,0x04,0x23,0x00,0x91,0xFF,0xF7,0x0C,0xFD,0x28,0x4B,0x03,0x99, 0x1B,0x78,0x28,0x4A,0x00,0x2B,0x15,0xD1,0x13,0x1C,0x4A,0x33,0x00,0x20,0x1B,0x5E, 0x8E,0x1B,0x9E,0x42,0x05,0xDC,0x13,0x1C,0x4C,0x33,0x00,0x20,0x1B,0x5E,0x9E,0x42, 0x08,0xDA,0x21,0x48,0x01,0x23,0x03,0x70,0x20,0x48,0x03,0x70,0x20,0x48,0x03,0x70, 0x20,0x48,0x03,0x70,0x53,0x78,0x00,0x2B,0x04,0xD0,0x1F,0x4B,0x5B,0x5D,0x59,0x43, 0x89,0x11,0x03,0x91,0x1D,0x4B,0x6A,0x00,0xD0,0x5A,0x1D,0x4B,0x03,0x99,0xD4,0x5E, 0xC0,0x08,0x14,0x4A,0x89,0xB2,0x04,0x1B,0x64,0x1A,0x56,0x7C,0x24,0xB2,0x19,0x4B, 0xB4,0x42,0x02,0xDC,0x76,0x42,0xB4,0x42,0x02,0xDA,0x00,0x24,0x5C,0x55,0x05,0xE0, 0x5C,0x5D,0x96,0x7C,0xA6,0x42,0x01,0xD0,0x01,0x34,0x5C,0x55,0x43,0x1A,0x9B,0xB2, 0x92,0x7E,0x19,0xB2,0x91,0x42,0x02,0xDB,0x09,0x4A,0x01,0x21,0x11,0x70,0x0C,0x4A, 0x6D,0x00,0xAB,0x52,0x7F,0xBD,0xC0,0x46,0xEF,0x01,0x00,0x20,0x74,0x57,0x00,0x00, 0xE8,0x01,0x00,0x20,0x4C,0x0D,0x00,0x20,0x4C,0x11,0x00,0x20,0x18,0x09,0x00,0x20, 0x34,0x11,0x00,0x20,0xC8,0x01,0x00,0x20,0x92,0x7B,0x00,0x00,0x18,0x02,0x00,0x20, 0x40,0x0D,0x00,0x20,0xA8,0x0A,0x00,0x20,0xF0,0xB5,0x48,0x4B,0x89,0xB0,0x1B,0x78, 0x00,0x2B,0x03,0xD0,0x00,0x20,0x46,0x49,0xFF,0xF7,0xF4,0xFC,0x45,0x4A,0x00,0x23, 0x13,0x70,0x45,0x4A,0x0C,0x20,0x01,0x38,0xC0,0xB2,0x81,0x00,0x8B,0x50,0x00,0x28, 0xF9,0xD1,0x42,0x4B,0x42,0x4A,0x18,0x70,0x01,0x23,0x13,0x70,0x41,0x4A,0x13,0x70, 0x41,0x4B,0x19,0x7E,0x04,0x91,0xDA,0x7D,0x05,0x92,0x1B,0x7D,0x06,0x93,0x0B,0x1C, 0x2D,0xE0,0x01,0x3B,0xDB,0xB2,0x5D,0x1C,0x3C,0x4C,0xEA,0x01,0x12,0x19,0x16,0x88, 0x3B,0x49,0x5A,0x00,0x5C,0x01,0x56,0x52,0xAD,0x01,0x05,0x9A,0x07,0x94,0x9C,0x46, 0x1A,0xE0,0x01,0x3A,0xD2,0xB2,0x93,0x1C,0xEB,0x18,0x36,0x4C,0x5B,0x00,0x19,0x5B, 0x06,0x9B,0x00,0x2B,0x05,0xD0,0xD3,0x1C,0xEB,0x18,0x5B,0x00,0x1B,0x5B,0xC9,0x18, 0x49,0x10,0x07,0x9C,0xA7,0x18,0x7B,0x00,0x1C,0x1C,0x2F,0x4B,0xE1,0x52,0x2F,0x4C, 0x01,0x23,0x89,0x1B,0x3B,0x55,0x40,0x18,0x00,0x2A,0xE2,0xD1,0x63,0x46,0x00,0x2B, 0xCF,0xD1,0x25,0x4B,0x04,0x9C,0xD9,0x7D,0x61,0x43,0x01,0xF0,0xCF,0xF8,0x28,0x4B, 0x05,0x1C,0x58,0x8C,0x27,0x4C,0x00,0x28,0x02,0xD1,0x40,0x23,0x23,0x60,0x07,0xE0, 0x80,0x01,0x29,0x1C,0x01,0xF0,0xC2,0xF8,0x6E,0x28,0x00,0xDD,0x6E,0x20,0x20,0x60, 0x12,0x4C,0x23,0x78,0x00,0x2B,0x03,0xD0,0x00,0x20,0x1F,0x49,0xFF,0xF7,0x8A,0xFC, 0x1B,0x4B,0x1E,0x4A,0x5B,0x8C,0x55,0x80,0x13,0x80,0x23,0x78,0x00,0x2B,0x06,0xD0, 0x01,0x23,0x02,0x21,0x00,0x93,0x00,0x20,0x0B,0x1C,0xFF,0xF7,0x23,0xFC,0x18,0x4B, 0x18,0x48,0x1B,0x78,0x00,0x22,0x18,0x49,0x04,0xE0,0x01,0x3B,0xDB,0xB2,0x5C,0x00, 0xC2,0x54,0x62,0x52,0x00,0x2B,0xF8,0xD1,0x09,0xB0,0xF0,0xBD,0xEF,0x01,0x00,0x20, 0x7A,0x57,0x00,0x00,0x20,0x03,0x00,0x20,0xC0,0x11,0x00,0x20,0xF8,0x10,0x00,0x20, 0x24,0x09,0x00,0x20,0x40,0x11,0x00,0x20,0xB2,0x09,0x00,0x20,0x02,0x40,0x00,0x40, 0x98,0x11,0x00,0x20,0x00,0x40,0x00,0x40,0xFC,0x03,0x00,0x20,0xB7,0x0A,0x00,0x20, 0x4C,0x0D,0x00,0x20,0x7C,0x09,0x00,0x20,0x83,0x57,0x00,0x00,0x58,0x11,0x00,0x20, 0x80,0x09,0x00,0x20,0xA8,0x0A,0x00,0x20,0x18,0x02,0x00,0x20,0xF0,0xB5,0xA0,0x4A, 0x00,0x23,0x13,0x70,0x9F,0x4A,0x85,0xB0,0x13,0x70,0x9F,0x4A,0x13,0x70,0x9F,0x4A, 0x13,0x70,0x9F,0x4B,0x1B,0x78,0x00,0x2B,0x03,0xD0,0x01,0x20,0x9D,0x49,0xFF,0xF7, 0x31,0xFC,0x00,0x24,0x9C,0x4D,0x9A,0x4E,0x11,0xE0,0x33,0x78,0x00,0x2B,0x0C,0xD0, 0xEB,0x7D,0x29,0x7D,0x99,0x48,0xC9,0x18,0xE2,0x01,0x00,0x23,0x12,0x18,0x00,0x93, 0xC9,0xB2,0x01,0x20,0x02,0x23,0xFF,0xF7,0xC5,0xFB,0x01,0x34,0xE4,0xB2,0x29,0x7E, 0x8C,0x42,0xEA,0xD3,0x92,0x4B,0x1B,0x78,0x00,0x2B,0x00,0xD1,0x0D,0xE1,0x91,0x4B, 0x1A,0x78,0x00,0x2A,0x1F,0xD1,0x90,0x4B,0x1B,0x78,0x00,0x2B,0x1B,0xD0,0xEB,0x7D, 0x8E,0x4C,0x07,0xE0,0x01,0x3B,0xDB,0xB2,0x5D,0x01,0x2D,0x18,0x2A,0x55,0x00,0x2B, 0xF8,0xD1,0x03,0x1C,0x58,0x1E,0xC0,0xB2,0x00,0x2B,0x01,0xD0,0x0B,0x1C,0xF6,0xE7, 0x87,0x4A,0x86,0x48,0x12,0x78,0x49,0x01,0x03,0xE0,0x01,0x3A,0xD2,0xB2,0x8C,0x18, 0x23,0x54,0x00,0x2A,0xF9,0xD1,0x80,0x4B,0x7E,0x4A,0x19,0x78,0x1B,0x78,0x11,0x70, 0x00,0x2B,0x70,0xD0,0x78,0x4B,0x1A,0x7E,0xD9,0x7D,0x02,0x92,0x1B,0x7D,0x03,0x93, 0x22,0xE0,0x01,0x3B,0xDB,0xB2,0x59,0x1C,0x89,0x01,0xC8,0x19,0x79,0x4C,0x03,0x9D, 0x40,0x00,0x00,0x5B,0x00,0x2D,0x04,0xD0,0x89,0x19,0x49,0x00,0x09,0x5B,0x40,0x18, 0x40,0x10,0x59,0x01,0x89,0x18,0x74,0x4D,0x4C,0x00,0x65,0x5B,0x6F,0x4C,0xED,0x08, 0x0C,0x5D,0x28,0x1A,0x84,0x42,0x04,0xDA,0xFF,0x28,0x00,0xDD,0xFF,0x20,0x6B,0x4D, 0x68,0x54,0x00,0x2B,0xDD,0xD1,0x11,0x1C,0x4A,0x1E,0xD2,0xB2,0x00,0x29,0x03,0xD0, 0x02,0x9B,0x97,0x1C,0xD6,0x1C,0xF4,0xE7,0x5F,0x4A,0x65,0x4B,0x17,0x7E,0x1B,0x78, 0x62,0x49,0x7F,0x01,0x10,0xE0,0x01,0x3B,0xDB,0xB2,0x64,0x4E,0x5A,0x00,0x94,0x5B, 0xF8,0x18,0x45,0x56,0x26,0xB2,0x2A,0x1C,0xB5,0x42,0x00,0xDA,0x22,0x1C,0x12,0xB2, 0xFF,0x2A,0x00,0xDD,0xFF,0x22,0x42,0x54,0x00,0x2B,0xEC,0xD1,0x50,0x4B,0x1B,0x78, 0x00,0x2B,0x03,0xD0,0x03,0x20,0x5A,0x49,0xFF,0xF7,0x94,0xFB,0x00,0x24,0x4E,0x4D, 0x4B,0x4E,0x0E,0xE0,0x33,0x78,0x00,0x2B,0x09,0xD0,0x50,0x4B,0x62,0x01,0xD2,0x18, 0x00,0x23,0xE9,0x7D,0x03,0x20,0x00,0x93,0x01,0x23,0xFF,0xF7,0x2B,0xFB,0x01,0x34, 0xE4,0xB2,0x2B,0x7E,0xA3,0x42,0xED,0xD8,0x40,0x4A,0x01,0x23,0x13,0x70,0x3D,0x4A, 0x13,0x70,0x3B,0x4A,0x13,0x70,0x3E,0x4B,0x1B,0x78,0x00,0x2B,0x6D,0xD0,0x49,0x4B, 0x1B,0x68,0x58,0x02,0x69,0xD5,0x3C,0x4A,0x80,0x24,0x16,0x7D,0x13,0x7E,0xD2,0x7D, 0x45,0x4D,0xB6,0x18,0xF6,0xB2,0x24,0x06,0xB4,0x46,0x18,0xE0,0x01,0x3B,0xDB,0xB2, 0x42,0x49,0x5A,0x00,0x5F,0x1C,0x56,0x5A,0xBF,0x01,0x62,0x46,0x0D,0xE0,0x01,0x3A, 0xD2,0xB2,0x91,0x1C,0x79,0x18,0x37,0x48,0x49,0x00,0x09,0x5A,0x89,0x1B,0x8C,0x42, 0x00,0xDA,0x0C,0x1C,0x8D,0x42,0x00,0xDD,0x0D,0x1C,0x00,0x2A,0xEF,0xD1,0x00,0x2B, 0xE4,0xD1,0x16,0x20,0x36,0x49,0xFF,0xF7,0x45,0xFB,0x25,0x4B,0x35,0x4A,0x1B,0x78, 0x14,0x80,0x55,0x80,0x00,0x2B,0x06,0xD0,0x01,0x23,0x02,0x21,0x00,0x93,0x16,0x20, 0x0B,0x1C,0xFF,0xF7,0xDF,0xFA,0x26,0x4B,0x80,0x20,0x1B,0x78,0x2A,0x49,0x00,0x06, 0x2D,0x4E,0x2E,0x4D,0x19,0xE0,0x01,0x3B,0xDB,0xB2,0xF7,0x5C,0x7A,0x1C,0x94,0x46, 0x64,0x46,0xEA,0x5C,0xA4,0x01,0xA4,0x46,0x02,0x32,0x62,0x44,0x1D,0x4C,0x52,0x00, 0x12,0x5B,0x22,0x4C,0x7F,0x00,0x94,0x46,0x3A,0x5B,0x64,0x46,0xA2,0x1A,0x90,0x42, 0x00,0xDA,0x10,0x1C,0x91,0x42,0x00,0xDD,0x11,0x1C,0x00,0x2B,0xE3,0xD1,0x0C,0x4B, 0x1C,0x4A,0x1B,0x78,0x10,0x80,0x51,0x80,0x00,0x2B,0x06,0xD0,0x01,0x23,0x02,0x21, 0x00,0x93,0x16,0x20,0x0B,0x1C,0xFF,0xF7,0xAD,0xFA,0x05,0xB0,0xF0,0xBD,0xC0,0x46, 0xB0,0x09,0x00,0x20,0x18,0x09,0x00,0x20,0x34,0x11,0x00,0x20,0x4C,0x11,0x00,0x20, 0xEF,0x01,0x00,0x20,0x94,0x57,0x00,0x00,0xB2,0x09,0x00,0x20,0x84,0x40,0x00,0x40, 0x20,0x03,0x00,0x20,0xE5,0x01,0x00,0x20,0xE7,0x01,0x00,0x20,0x68,0x0E,0x00,0x20, 0x80,0x09,0x00,0x20,0x00,0x40,0x00,0x40,0xFC,0x03,0x00,0x20,0x40,0x0D,0x00,0x20, 0x98,0x57,0x00,0x00,0x58,0x00,0x00,0x20,0xFF,0xFF,0xFF,0x7F,0x98,0x11,0x00,0x20, 0x9E,0x57,0x00,0x00,0x58,0x11,0x00,0x20,0x30,0x75,0x00,0x00,0x2A,0x75,0x00,0x00, 0xF0,0xB5,0xB3,0x4B,0xA5,0xB0,0x1B,0x78,0x00,0x2B,0x00,0xD0,0x01,0xE2,0xB1,0x4A, 0xB1,0x4C,0x12,0x78,0xB1,0x4D,0xB2,0x4E,0x64,0x7C,0x52,0xB2,0x6B,0x60,0x2B,0x60, 0x6B,0x82,0x6B,0x81,0x2B,0x82,0x2B,0x81,0x33,0x60,0xB3,0x60,0x1B,0x92,0xAD,0x4F, 0xFF,0x22,0xAD,0x4B,0x72,0x60,0xF2,0x60,0x11,0x94,0x3F,0x7E,0x1B,0x78,0xA9,0x4C, 0x09,0x97,0x0B,0x93,0xE4,0x7D,0xA4,0x4D,0x08,0x94,0x46,0x23,0xED,0x5E,0xA2,0x4F, 0x0E,0x95,0x48,0x23,0xFF,0x5E,0xA3,0x4C,0x0F,0x97,0x24,0x7D,0x2D,0x23,0x0C,0x94, 0x9D,0x4D,0xA2,0x4E,0x11,0x9F,0x6D,0x78,0x36,0x68,0x7F,0x42,0x9A,0x4C,0x0D,0x95, 0x12,0x96,0x1D,0x97,0xA4,0x7C,0x98,0x4D,0x22,0x94,0xEB,0x5C,0x1B,0x9E,0x13,0x93, 0x10,0x23,0x9B,0x1B,0x1E,0x93,0x18,0x27,0xEF,0x57,0x1C,0x20,0x14,0x97,0x28,0x56, 0x19,0x21,0x18,0x90,0x69,0x56,0x00,0x23,0x00,0x22,0x00,0x24,0x23,0x91,0x05,0x93, 0x00,0x25,0x00,0x26,0x00,0x27,0xFF,0x20,0x00,0x21,0xFF,0x23,0x06,0x92,0x17,0x94, 0x10,0x95,0x1A,0x96,0x15,0x97,0x19,0x90,0x21,0x91,0x1F,0x92,0x16,0x93,0x1C,0x94, 0x09,0x9C,0x00,0x2C,0x00,0xD1,0x27,0xE1,0x09,0x9B,0x89,0x4D,0x01,0x3B,0xDB,0xB2, 0x09,0x93,0x5B,0x00,0x5B,0x5B,0x08,0x9E,0x0A,0x93,0x00,0x2E,0xF0,0xD0,0x09,0x9F, 0x84,0x48,0x01,0x37,0xFB,0x01,0x1B,0x18,0x1B,0x88,0x0A,0x99,0x0E,0x9C,0x5A,0x1A, 0x94,0x42,0x00,0xDA,0x92,0xE1,0x0F,0x9D,0x95,0x42,0x00,0xDD,0x8B,0xE1,0x09,0x9E, 0xBF,0x01,0x01,0x21,0x02,0x25,0x00,0x22,0x70,0x01,0x03,0x97,0x2C,0xE0,0x7A,0x4D, 0x84,0x18,0x64,0x00,0x6E,0x46,0x18,0x27,0x2C,0x5B,0xBD,0x5F,0xE4,0x1A,0xAC,0x42, 0x01,0xDD,0xA7,0xB2,0x06,0x97,0x6E,0x46,0x14,0x27,0xBD,0x5F,0xAC,0x42,0x01,0xDA, 0xA4,0xB2,0x05,0x94,0x82,0x18,0x70,0x4F,0x52,0x00,0xBB,0x52,0x08,0x9A,0xCB,0xB2, 0x9A,0x42,0xBD,0xD9,0x03,0x9A,0x8D,0x1C,0x53,0x19,0x6C,0x4C,0x5B,0x00,0x1B,0x5B, 0x0A,0x9E,0x0E,0x9F,0x0A,0x1C,0x9C,0x1B,0xBC,0x42,0x00,0xDD,0x38,0xE1,0x0F,0x9E, 0x01,0x31,0xB4,0x42,0x00,0xDA,0xD1,0xE0,0x0C,0x9F,0x00,0x2F,0x07,0xD0,0x03,0x9E, 0xD4,0x1C,0x34,0x19,0x61,0x4F,0x64,0x00,0xE4,0x5B,0xE3,0x18,0x5B,0x10,0x0D,0x9C, 0x00,0x2C,0x06,0xD0,0x5E,0x4E,0x84,0x18,0xA4,0x5D,0x12,0x9F,0x63,0x43,0x7B,0x43, 0x1B,0x13,0x0B,0x9C,0x00,0x2C,0xBA,0xD0,0x86,0x18,0x57,0x4F,0x74,0x00,0x3F,0x5B, 0xBC,0x46,0x58,0x4F,0xBC,0x57,0x66,0x46,0xF6,0x08,0x34,0x1B,0x07,0x94,0x6F,0x46, 0x18,0x24,0x04,0x96,0xE7,0x5F,0x07,0x9E,0xF4,0x1A,0xBC,0x42,0x01,0xDD,0xA7,0xB2, 0x06,0x97,0x6E,0x46,0x14,0x27,0xBE,0x5F,0xB4,0x42,0x01,0xDA,0xA6,0xB2,0x05,0x96, 0x11,0x9F,0xBC,0x42,0x5D,0xDD,0x84,0x18,0xA4,0x46,0x4B,0x4C,0x00,0x27,0x66,0x46, 0x37,0x55,0x04,0x9F,0x13,0x9E,0xFC,0x1A,0x00,0x2E,0x08,0xD0,0x1B,0x9F,0x07,0x9C, 0x1E,0x9E,0x7B,0x43,0x74,0x43,0x04,0x9F,0x1C,0x19,0x24,0x11,0x3C,0x1B,0x23,0x1C, 0x7F,0x33,0x17,0xDA,0x3F,0x4E,0x82,0x18,0x80,0x23,0xB3,0x54,0x23,0x9A,0x21,0x9E, 0xA3,0x1A,0xF6,0x18,0x21,0x96,0x1F,0xAF,0x00,0x23,0xFB,0x5E,0x9C,0x42,0x01,0xDC, 0xA4,0xB2,0x1F,0x94,0x03,0x9A,0x35,0x4C,0x55,0x19,0x6D,0x00,0x00,0x27,0x2B,0x5B, 0x2F,0x53,0x83,0xE7,0x83,0x18,0x7E,0x2C,0x36,0xDD,0x32,0x4E,0x7F,0x27,0xF7,0x54, 0x14,0x9F,0xBC,0x42,0x03,0xDB,0x17,0x9E,0xE3,0x1B,0xF6,0x18,0x17,0x96,0x10,0xAF, 0x00,0x23,0xFB,0x5E,0x9C,0x42,0x24,0xDC,0xA3,0xB2,0x18,0x9E,0xB4,0x42,0x11,0xDB, 0x1A,0x9F,0x09,0x9C,0xA7,0x42,0x00,0xDA,0x1A,0x94,0x16,0x9E,0x09,0x9C,0xA6,0x42, 0x00,0xDD,0x16,0x94,0x15,0x9E,0x96,0x42,0x00,0xDA,0x15,0x92,0x19,0x9F,0xBA,0x42, 0x00,0xDA,0x19,0x92,0x03,0x9A,0x1D,0x4C,0x55,0x19,0x6D,0x00,0x2A,0x5B,0x2B,0x53, 0x54,0xE7,0x1D,0x9E,0x87,0x18,0xB4,0x42,0x0E,0xDA,0x1B,0x4C,0x00,0x26,0x3E,0x55, 0x9F,0xE7,0xA3,0xB2,0x10,0x93,0xD8,0xE7,0x16,0x4E,0xF4,0x54,0x00,0x2C,0xC7,0xDA, 0x23,0x9F,0xBC,0x42,0xAF,0xDC,0xA9,0xE7,0x13,0x4E,0x20,0x97,0xBC,0x5D,0x22,0x9E, 0x67,0xB2,0xB7,0x42,0x8D,0xD0,0x20,0x9F,0x0F,0x4E,0x01,0x34,0xBC,0x55,0x88,0xE7, 0xB0,0x09,0x00,0x20,0x4C,0x00,0x00,0x20,0x4C,0x0D,0x00,0x20,0x74,0x01,0x00,0x20, 0xE8,0x10,0x00,0x20,0xB2,0x09,0x00,0x20,0x20,0x03,0x00,0x20,0x7C,0x09,0x00,0x20, 0x98,0x11,0x00,0x20,0x04,0x40,0x00,0x40,0xFC,0x03,0x00,0x20,0x00,0x40,0x00,0x40, 0x12,0x79,0x00,0x00,0x68,0x0E,0x00,0x20,0xB7,0x0A,0x00,0x20,0x09,0x9C,0x01,0x27, 0x1C,0x97,0x00,0x2C,0x00,0xD0,0xD7,0xE6,0x6D,0x46,0x6F,0x46,0x18,0x26,0x14,0x20, 0x76,0x5B,0xC0,0x5B,0x41,0x4D,0x17,0x99,0x10,0xAC,0x2F,0x1C,0x2E,0x82,0x68,0x82, 0x29,0x60,0x25,0x88,0x21,0x9B,0x3C,0x1C,0x3D,0x81,0x1A,0x9E,0x3C,0x4F,0x63,0x60, 0x1F,0xAC,0x25,0x88,0xBE,0x60,0x16,0x98,0x15,0x99,0x19,0x9A,0x37,0x4C,0x0B,0x9E, 0xF8,0x60,0x39,0x60,0x7A,0x60,0x65,0x81,0x00,0x2E,0x24,0xD0,0x35,0x4B,0x1B,0x78, 0x00,0x2B,0x03,0xD0,0x34,0x4B,0x1B,0x68,0x00,0x2B,0x1C,0xDD,0x33,0x4C,0x23,0x78, 0x00,0x2B,0x56,0xD1,0x32,0x4F,0x3B,0x7E,0x00,0x2B,0x14,0xD0,0x31,0x4D,0x09,0x9F, 0x01,0x26,0x23,0x78,0x00,0x2B,0x08,0xD0,0x2D,0x48,0x7A,0x01,0xC1,0x7D,0x52,0x19, 0x03,0x20,0x01,0x23,0x00,0x96,0xFF,0xF7,0xAD,0xF8,0x29,0x49,0x01,0x37,0x0B,0x7E, 0xFF,0xB2,0xBB,0x42,0xED,0xD8,0x26,0x4C,0x23,0x7D,0x00,0x2B,0x13,0xD0,0x22,0x7E, 0xE4,0x7D,0x01,0x3A,0x24,0x49,0xD2,0xB2,0x02,0x34,0x00,0x20,0x53,0x1C,0x9B,0x01, 0x1B,0x19,0x5B,0x00,0x01,0x3A,0x5D,0x5A,0xD2,0xB2,0x5D,0x5A,0x58,0x52,0xF5,0xE7, 0x01,0x26,0x1C,0x96,0x74,0xE6,0x1D,0x4D,0x1D,0x4E,0xAB,0x7E,0x32,0x68,0x13,0x4F, 0x53,0x43,0x08,0x21,0x79,0x5E,0x1B,0x48,0x9B,0x11,0x1B,0x4A,0xCD,0x17,0xDC,0x0F, 0x00,0x78,0x99,0x42,0x65,0x41,0x15,0x70,0x00,0x28,0x0A,0xD1,0x1C,0x9C,0x00,0x2C, 0x07,0xD0,0x01,0x23,0x13,0x70,0x15,0x4A,0x15,0x49,0x13,0x70,0x15,0x4A,0x0B,0x70, 0x13,0x70,0x25,0xB0,0xF0,0xBD,0x01,0x25,0x1C,0x95,0x51,0xE6,0x01,0x24,0x1C,0x94, 0x4E,0xE6,0x03,0x20,0x10,0x49,0xFF,0xF7,0xBD,0xF8,0xA3,0xE7,0x74,0x01,0x00,0x20, 0xE8,0x10,0x00,0x20,0xE2,0x01,0x00,0x20,0x24,0x01,0x00,0x20,0xEF,0x01,0x00,0x20, 0xB2,0x09,0x00,0x20,0x68,0x0E,0x00,0x20,0x00,0x40,0x00,0x40,0x4C,0x0D,0x00,0x20, 0x7C,0x09,0x00,0x20,0xE8,0x01,0x00,0x20,0x18,0x09,0x00,0x20,0x34,0x11,0x00,0x20, 0x4C,0x11,0x00,0x20,0xC8,0x01,0x00,0x20,0xC4,0x57,0x00,0x00,0xF0,0xB5,0x3B,0x4B, 0x87,0xB0,0x1C,0x78,0x68,0x46,0x63,0x00,0x0E,0x33,0xDB,0x08,0xDB,0x00,0xC0,0x1A, 0x02,0xAF,0x85,0x46,0x02,0xAD,0x36,0x4E,0x19,0xE0,0x01,0x3C,0xE4,0xB2,0x35,0x48, 0x33,0x57,0x02,0x57,0x59,0x1C,0x02,0x32,0x89,0x01,0x89,0x18,0x32,0x4A,0x49,0x00, 0x88,0x5A,0x32,0x4A,0x5B,0x00,0x9A,0x5A,0x21,0x1C,0xFF,0xF7,0x01,0xFB,0x30,0x4A, 0x63,0x00,0xD2,0x5A,0x11,0xB2,0xC9,0x43,0xC9,0x17,0x0A,0x40,0x5A,0x53,0x00,0x2C, 0xE3,0xD1,0x2C,0x4B,0x1B,0x78,0x00,0x2B,0x08,0xD0,0x24,0x4B,0x03,0x20,0x19,0x78, 0x01,0x23,0x00,0x93,0x2A,0x1C,0x02,0x23,0xFF,0xF7,0x0C,0xF8,0x26,0x4B,0x18,0x78, 0x99,0x78,0x82,0x1C,0xB9,0x60,0xDD,0x78,0x00,0x23,0xFA,0x60,0x11,0xE0,0x7E,0x68, 0xA4,0x01,0xA4,0x19,0x1C,0x49,0x64,0x00,0x1B,0x4E,0x61,0x5A,0x00,0x21,0xA1,0x53, 0x01,0x32,0x03,0xE0,0xFC,0x68,0x00,0x22,0xE6,0x18,0x7E,0x60,0xAC,0x1A,0xEE,0xD1, 0x01,0x33,0xBE,0x68,0x1A,0x18,0xB2,0x42,0xF4,0xDB,0x17,0x4B,0x58,0x78,0xDD,0x78, 0x41,0x1C,0x01,0x23,0x5B,0x42,0xF9,0x60,0x9E,0x1C,0x00,0x22,0x7E,0x60,0x0B,0xE0, 0xFC,0x68,0x7E,0x68,0xA1,0x18,0x8C,0x01,0xA4,0x19,0x0B,0x49,0x64,0x00,0x0A,0x4E, 0x61,0x5A,0x00,0x21,0xA1,0x53,0x01,0x32,0x14,0x18,0xAC,0x42,0xF0,0xDB,0xBA,0x68, 0x01,0x33,0x93,0x42,0xE8,0xDB,0xBD,0x46,0x05,0xB0,0xF0,0xBD,0x80,0x09,0x00,0x20, 0x30,0x75,0x00,0x00,0x2A,0x75,0x00,0x00,0x00,0x40,0x00,0x40,0x98,0x11,0x00,0x20, 0x40,0x0D,0x00,0x20,0xEF,0x01,0x00,0x20,0x0E,0x03,0x00,0x20,0x30,0xB5,0x0C,0x4B, 0x0C,0x4C,0xDB,0x78,0x0C,0x49,0x10,0xE0,0x01,0x3B,0xDB,0xB2,0x5A,0x1C,0x0B,0x4D, 0xD2,0x01,0x52,0x19,0x45,0x1C,0x03,0xD1,0x15,0x88,0x5A,0x00,0x55,0x52,0x04,0xE0, 0x15,0x88,0x5A,0x01,0x12,0x18,0x52,0x00,0x15,0x53,0x00,0x2B,0xEC,0xD1,0x30,0xBD, 0x0E,0x03,0x00,0x20,0xFC,0x03,0x00,0x20,0x98,0x11,0x00,0x20,0x02,0x40,0x00,0x40, 0xF0,0xB5,0x8D,0xB0,0x0A,0x91,0x0B,0x92,0x5C,0x4B,0x41,0x1C,0x0C,0xD1,0x5C,0x4A, 0x5C,0x49,0x12,0x7E,0x01,0x3A,0x03,0x92,0xDA,0x78,0x5E,0x78,0x54,0x00,0x00,0x23, 0x55,0x1C,0x64,0x18,0x94,0x46,0x0E,0xE0,0xDD,0x7B,0x5A,0x79,0xAA,0x18,0x01,0x3A, 0x10,0xE0,0x55,0x4A,0xE9,0x18,0xC9,0x01,0x89,0x18,0x0A,0x88,0x5F,0x00,0xE2,0x53, 0x0A,0x88,0x00,0x22,0x0A,0x80,0x01,0x3B,0x67,0x46,0xDA,0x19,0xB2,0x42,0xF0,0xDA, 0x03,0x9A,0x00,0x25,0x56,0x01,0x4D,0x4C,0x36,0x18,0x00,0x23,0x76,0x00,0x11,0x1C, 0x08,0x93,0x07,0x93,0x06,0x93,0x05,0x93,0x03,0x94,0x09,0x96,0xAC,0x46,0x55,0xE0, 0x45,0x1C,0x04,0xD1,0x43,0x4D,0x56,0x00,0x75,0x19,0xED,0x5A,0x04,0xE0,0x44,0x4D, 0x09,0x9F,0x7E,0x19,0x5D,0x01,0x75,0x5B,0x4E,0x1C,0x3F,0x4F,0x04,0x96,0xF6,0x01, 0xF6,0x19,0x37,0x88,0x2D,0xB2,0x3E,0xB2,0x3E,0x4F,0xAE,0x1B,0x55,0x00,0xEF,0x19, 0xF5,0x17,0xFE,0x52,0x76,0x19,0x6E,0x40,0x0F,0x1C,0x01,0x25,0xAF,0x43,0xB9,0x42, 0x09,0xD1,0x07,0x9D,0xAD,0x19,0x07,0x95,0xB4,0x42,0x00,0xDD,0x34,0x1C,0x06,0x9F, 0xB7,0x42,0x0B,0xDB,0x0D,0xE0,0x08,0x9D,0x03,0x9F,0xAD,0x19,0x08,0x95,0xB7,0x42, 0x00,0xDD,0x03,0x96,0x05,0x9D,0xB5,0x42,0x02,0xDB,0x02,0xE0,0x06,0x96,0x00,0xE0, 0x05,0x96,0x04,0x9E,0xF5,0x01,0x28,0x4E,0xAD,0x19,0x47,0x1C,0x0E,0xD1,0x2F,0x88, 0x24,0x4E,0x04,0x97,0x57,0x00,0xBE,0x19,0x02,0x96,0x10,0x27,0x6E,0x46,0xBF,0x5B, 0x02,0x9E,0xF7,0x52,0x2E,0x88,0x00,0x26,0x2E,0x80,0x05,0xE0,0x2F,0x88,0x20,0x4E, 0x09,0x9D,0xAE,0x19,0x5D,0x01,0x77,0x53,0x01,0x39,0x02,0x3B,0x61,0x45,0xA7,0xDA, 0x01,0x30,0x0C,0xD1,0x1C,0x4B,0x1B,0x78,0x00,0x2B,0x08,0xD0,0x13,0x4B,0x01,0x20, 0xD9,0x78,0x00,0x23,0x00,0x93,0x13,0x4A,0x02,0x23,0xFE,0xF7,0xFB,0xFE,0x07,0x9E, 0x08,0x9F,0x0A,0x9D,0xF3,0x19,0x2B,0x60,0x05,0x9E,0x03,0x9F,0x06,0x9D,0xF3,0x1B, 0x2C,0x1B,0x9C,0x42,0x00,0xDA,0x1C,0x1C,0x0B,0x9E,0x0F,0x4B,0x34,0x60,0x1B,0x78, 0x00,0x2B,0x08,0xD0,0x06,0x4B,0x0B,0x20,0x19,0x7E,0x01,0x23,0x00,0x93,0x09,0x4A, 0x02,0x23,0xFE,0xF7,0xDF,0xFE,0x0D,0xB0,0xF0,0xBD,0xC0,0x46,0x0E,0x03,0x00,0x20, 0xB2,0x09,0x00,0x20,0x98,0x11,0x00,0x20,0x02,0x40,0x00,0x40,0xFF,0xFF,0x00,0x00, 0xFC,0x03,0x00,0x20,0x58,0x11,0x00,0x20,0xEF,0x01,0x00,0x20,0xF0,0xB5,0xA1,0x4B, 0x85,0xB0,0x1D,0x78,0x00,0x2D,0x29,0xD0,0x9F,0x4B,0xA0,0x4C,0x18,0x78,0xA0,0x4B, 0x46,0xB2,0x19,0x68,0x5B,0x68,0xB2,0x00,0xCB,0x18,0x13,0x51,0x82,0x1D,0xD2,0xB2, 0x00,0x25,0x06,0x23,0x01,0x3B,0xDB,0xB2,0xF1,0x1A,0x00,0xD5,0x0C,0x31,0x89,0x00, 0x09,0x59,0x6D,0x18,0x11,0x1C,0x0B,0x2A,0x01,0xD9,0x0C,0x39,0xC9,0xB2,0x89,0x00, 0x61,0x58,0x01,0x3A,0x6D,0x1A,0xD2,0xB2,0x00,0x2B,0xEB,0xD1,0x01,0x30,0x8E,0x4A, 0xC0,0xB2,0x10,0x70,0x40,0xB2,0x0B,0x28,0x00,0xDD,0x13,0x70,0x8D,0x4B,0x1B,0x78, 0x00,0x2B,0x00,0xD0,0x0C,0xE1,0x8C,0x4B,0x14,0x21,0x5B,0x5E,0x9D,0x42,0x02,0xDA, 0x8A,0x4B,0x01,0x22,0x1A,0x70,0x86,0x4B,0x10,0x22,0x9E,0x5E,0x12,0x24,0x1B,0x5F, 0xF6,0x1A,0x80,0x4B,0x18,0x78,0x00,0x28,0x16,0xD1,0x85,0x4B,0x85,0x4F,0x1B,0x68, 0x85,0x4C,0xBB,0x80,0x23,0x78,0x3E,0x80,0x00,0x2B,0x02,0xD0,0x83,0x49,0xFE,0xF7, 0xD1,0xFE,0x23,0x78,0x00,0x2B,0x07,0xD0,0x01,0x23,0x02,0x21,0x00,0x93,0x00,0x20, 0x3A,0x1C,0x0B,0x1C,0xFE,0xF7,0x6E,0xFE,0x77,0x4B,0x9A,0x7D,0x96,0x42,0x07,0xDC, 0x7B,0x4B,0x1A,0x78,0x51,0xB2,0x02,0x29,0x08,0xDC,0x01,0x32,0x1A,0x70,0x05,0xE0, 0xDB,0x7D,0x9E,0x42,0x02,0xDB,0x76,0x4B,0x00,0x22,0x1A,0x70,0x6C,0x4B,0x71,0x4A, 0x59,0x68,0x1B,0x68,0x15,0x80,0xCB,0x18,0x53,0x80,0x6F,0x4B,0x96,0x80,0x1B,0x78, 0x00,0x2B,0x06,0xD0,0x01,0x23,0x00,0x93,0x19,0x20,0x03,0x21,0x02,0x23,0xFE,0xF7, 0x49,0xFE,0x66,0x4A,0x5F,0x4C,0x13,0x78,0x00,0x2B,0x58,0xD0,0x68,0x4B,0x1B,0x78, 0x00,0x2B,0x04,0xD1,0x21,0x78,0x00,0x29,0x51,0xD0,0x13,0x70,0x4F,0xE0,0x03,0x2B, 0x4D,0xD1,0x61,0x4B,0x1B,0x78,0x00,0x2B,0x03,0xD0,0x00,0x20,0x61,0x49,0xFE,0xF7, 0x89,0xFE,0x21,0x78,0x60,0x4A,0x00,0x29,0x1A,0xD1,0x01,0x23,0x23,0x70,0x13,0x7E, 0xD6,0x7D,0x5E,0x4D,0x5E,0x4A,0x0B,0xE0,0x01,0x3B,0xDB,0xB2,0xF8,0x18,0x44,0x00, 0xA1,0x5A,0xC9,0x00,0xA1,0x52,0x00,0x21,0x41,0x55,0x00,0x2B,0xF4,0xD1,0x63,0x46, 0x59,0x1E,0xC9,0xB2,0x00,0x2B,0x23,0xD0,0x33,0x1C,0x4F,0x01,0x8C,0x46,0xF4,0xE7, 0x13,0x7E,0xD6,0x7D,0x52,0x4A,0x0E,0xE0,0x01,0x3B,0x50,0x4D,0xDB,0xB2,0xFC,0x18, 0x60,0x00,0x64,0x57,0xE4,0x00,0x02,0x94,0x84,0x5A,0x02,0x9D,0x64,0x1B,0x84,0x52, 0x00,0x2B,0xF1,0xD1,0x0B,0x1C,0x59,0x1E,0xC9,0xB2,0x00,0x2B,0x02,0xD0,0x33,0x1C, 0x4F,0x01,0xF5,0xE7,0x39,0x4A,0x11,0x1C,0x30,0x31,0x08,0xC2,0x8A,0x42,0xFC,0xD1, 0x3A,0x4B,0x00,0x22,0x1A,0x70,0x43,0x4B,0x01,0x22,0x1A,0x70,0x60,0xE0,0x22,0x78, 0x41,0x4B,0x00,0x2A,0x06,0xD1,0x3F,0x4A,0x01,0x21,0x11,0x70,0x1A,0x68,0x52,0x18, 0x1A,0x60,0x55,0xE0,0x00,0x22,0x1A,0x60,0x37,0x4B,0x3C,0x48,0x1C,0x7E,0xDB,0x7D, 0x37,0x49,0x02,0x93,0x2C,0x4B,0x9B,0x7C,0x03,0x93,0x11,0xE0,0x01,0x3B,0xDB,0xB2, 0xF2,0x18,0x14,0x56,0x03,0x9D,0xAC,0x42,0x07,0xD1,0x30,0x4D,0x54,0x00,0x57,0x57, 0x65,0x5A,0xEF,0x1B,0x67,0x52,0x00,0x24,0x14,0x54,0x00,0x2B,0xEE,0xD1,0x64,0x46, 0x65,0x1E,0xED,0xB2,0x00,0x2C,0x03,0xD0,0x02,0x9B,0x6E,0x01,0xAC,0x46,0xF4,0xE7, 0x2B,0x4B,0x1B,0x68,0x5D,0x07,0x2B,0xD5,0x1F,0x4B,0x1B,0x78,0x00,0x2B,0x22,0xD0, 0x02,0x20,0x28,0x49,0xFE,0xF7,0x06,0xFE,0x1D,0xE0,0xE9,0x7D,0x62,0x01,0x0B,0x1C, 0x1F,0x48,0x02,0x92,0x08,0xE0,0x01,0x3B,0x02,0x9A,0xDB,0xB2,0xD2,0x18,0x52,0x00, 0x12,0x5A,0x5F,0x00,0xD2,0x08,0xBA,0x53,0x00,0x2B,0xF4,0xD1,0x12,0x4A,0x12,0x78, 0x00,0x2A,0x05,0xD0,0x02,0x20,0x00,0x93,0x0E,0x4A,0x03,0x1C,0xFE,0xF7,0x92,0xFD, 0x01,0x34,0xE4,0xB2,0x01,0xE0,0x10,0x4D,0x0A,0x4E,0x2B,0x7E,0xA3,0x42,0xDC,0xD8, 0x05,0xB0,0xF0,0xBD,0x20,0x03,0x00,0x20,0xF8,0x10,0x00,0x20,0xC0,0x11,0x00,0x20, 0x74,0x01,0x00,0x20,0x18,0x09,0x00,0x20,0x4C,0x0D,0x00,0x20,0x40,0x11,0x00,0x20, 0x38,0x11,0x00,0x20,0x58,0x11,0x00,0x20,0xEF,0x01,0x00,0x20,0xAF,0x57,0x00,0x00, 0x24,0x09,0x00,0x20,0xB6,0x57,0x00,0x00,0xB2,0x09,0x00,0x20,0x68,0x0E,0x00,0x20, 0xFC,0x03,0x00,0x20,0x4C,0x11,0x00,0x20,0xC0,0x01,0x00,0x20,0xB7,0x0A,0x00,0x20, 0x58,0x00,0x00,0x20,0xBF,0x57,0x00,0x00,0xF0,0xB5,0x25,0x4B,0x87,0xB0,0x1B,0x78, 0x00,0x2B,0x2B,0xD1,0x23,0x4A,0x24,0x4B,0x90,0x7C,0x1B,0x78,0x04,0x90,0xD2,0x7E, 0x22,0x4D,0x52,0xB2,0x92,0xB2,0x05,0x92,0x21,0x4A,0x1D,0xE0,0x01,0x3B,0x21,0x4C, 0xDB,0xB2,0xE1,0x5C,0x04,0x9F,0xB9,0x42,0x16,0xD1,0x59,0x00,0x88,0x5A,0x00,0x28, 0x07,0xD0,0x6E,0x5A,0x6F,0x46,0x34,0xB2,0xA4,0x46,0x14,0x24,0xE7,0x5F,0xBC,0x45, 0x05,0xDA,0x59,0x00,0x6E,0x5A,0xF6,0x00,0x80,0x1B,0x50,0x52,0x01,0xE0,0x80,0x1B, 0x88,0x52,0x14,0x4F,0x00,0x21,0xF9,0x54,0x00,0x2B,0xDF,0xD1,0x0E,0x4B,0x12,0x4C, 0x19,0x78,0x0F,0x48,0x0B,0x1C,0x05,0xE0,0x01,0x3B,0xDB,0xB2,0x5A,0x00,0x15,0x5A, 0xED,0x08,0x15,0x53,0x00,0x2B,0xF7,0xD1,0x0C,0x4A,0x12,0x78,0x00,0x2A,0x05,0xD0, 0x02,0x20,0x00,0x93,0x08,0x4A,0x03,0x1C,0xFE,0xF7,0x14,0xFD,0x07,0xB0,0xF0,0xBD, 0x34,0x11,0x00,0x20,0x4C,0x0D,0x00,0x20,0x80,0x09,0x00,0x20,0x40,0x0D,0x00,0x20, 0x18,0x02,0x00,0x20,0xA8,0x0A,0x00,0x20,0x58,0x11,0x00,0x20,0xEF,0x01,0x00,0x20, 0x10,0xB5,0x09,0x49,0x50,0x22,0x09,0x48,0x00,0xF0,0xE2,0xF9,0x08,0x4C,0x09,0x49, 0x20,0x1C,0x42,0x22,0x00,0xF0,0xDC,0xF9,0x07,0x4B,0xA2,0x7B,0x1A,0x60,0xE3,0x7D, 0xE3,0x76,0x23,0x7E,0x23,0x77,0x10,0xBD,0x4A,0x74,0x00,0x00,0x4C,0x0D,0x00,0x20, 0xB2,0x09,0x00,0x20,0x08,0x74,0x00,0x00,0x54,0x11,0x00,0x20,0x08,0xB5,0x04,0x49, 0x04,0x4B,0x41,0x43,0x04,0x48,0xC9,0x18,0x00,0xF0,0x60,0xF9,0xC0,0xB2,0x08,0xBD, 0x44,0xFE,0xFF,0xFF,0xFE,0x24,0x02,0x00,0x40,0x42,0x0F,0x00,0x10,0xB5,0x15,0x4C, 0x00,0x23,0x23,0x71,0x03,0x23,0x63,0x71,0x02,0x23,0x23,0x72,0x12,0x4B,0x98,0x78, 0x02,0x38,0x03,0x28,0x1D,0xD8,0x00,0xF0,0xE7,0xF8,0x0B,0x04,0x02,0x14,0xC7,0x20, 0x00,0xE0,0xD7,0x20,0xE0,0x70,0xFF,0xF7,0xD9,0xFF,0x02,0x23,0x20,0x70,0x0E,0xE0, 0xF4,0x20,0xE0,0x70,0xFF,0xF7,0xD2,0xFF,0x02,0x23,0x20,0x70,0xA3,0x71,0x01,0x23, 0x06,0xE0,0xF4,0x20,0xE0,0x70,0xFF,0xF7,0xC9,0xFF,0x01,0x23,0x20,0x70,0xA3,0x71, 0xE3,0x71,0x10,0xBD,0xAE,0x0A,0x00,0x20,0x4C,0x0D,0x00,0x20,0xF0,0xB5,0x59,0x4B, 0x87,0xB0,0x1A,0x68,0x58,0x4B,0x08,0x2A,0x01,0xD1,0x01,0x22,0x00,0xE0,0x00,0x22, 0x1A,0x70,0x56,0x4B,0x56,0x4C,0x01,0x33,0xDB,0x7F,0x00,0x2B,0x00,0xD1,0xE3,0x71, 0x23,0x78,0x01,0x25,0xA2,0x79,0x28,0x1C,0xD9,0x00,0x90,0x40,0x82,0xB2,0xCB,0x1A, 0x53,0x43,0x50,0x4E,0xDB,0x10,0xDB,0xB2,0x33,0x80,0x22,0x78,0xFA,0x23,0xA0,0x79, 0x9B,0x00,0x53,0x43,0x4C,0x4F,0x29,0x1C,0x81,0x40,0x88,0xB2,0xB9,0x88,0x58,0x43, 0x09,0x01,0x00,0xF0,0xFB,0xF8,0xC1,0xB2,0x71,0x80,0x23,0x78,0x2D,0x22,0xA0,0x79, 0x53,0x43,0x2A,0x1C,0x82,0x40,0x90,0xB2,0x58,0x43,0x6B,0x46,0x19,0x81,0x09,0x01, 0x00,0xF0,0xEC,0xF8,0xC0,0xB2,0xB0,0x80,0x23,0x7A,0xB9,0x79,0xD8,0x00,0x18,0x1A, 0xA9,0x40,0xC0,0x00,0x49,0x19,0xE0,0x30,0x48,0x43,0xA2,0x79,0x6C,0x46,0x08,0x21, 0x61,0x5E,0x90,0x40,0x49,0x01,0x00,0xF0,0x8B,0xF8,0x34,0x4A,0xF0,0x80,0x11,0x7D, 0xD0,0x7D,0x36,0x4B,0x08,0x18,0xC0,0xB2,0x18,0x70,0x17,0x7E,0x5F,0x70,0x56,0x7E, 0x01,0x96,0x96,0x7F,0x01,0x9C,0x66,0x43,0xF4,0xB2,0x20,0x18,0xC0,0xB2,0x98,0x70, 0x02,0x90,0x96,0x7E,0x03,0x96,0x03,0x98,0xD6,0x7F,0x46,0x43,0xF0,0xB2,0xC7,0x19, 0xFF,0xB2,0xDF,0x70,0xD6,0x7E,0xB4,0x46,0x61,0x44,0x61,0x18,0xC9,0xB2,0x19,0x71, 0x16,0x7F,0x80,0x19,0x02,0x9E,0xC0,0xB2,0x74,0x1A,0x3F,0x1A,0xE6,0xB2,0xFF,0xB2, 0x58,0x71,0x9E,0x71,0xDF,0x71,0xBC,0x46,0x57,0x7D,0xEC,0x1B,0x04,0x97,0x27,0x1C, 0x77,0x43,0xFF,0xB2,0x05,0x97,0x9F,0x73,0x97,0x7D,0x64,0x46,0xED,0x1B,0x65,0x43, 0x47,0x43,0x04,0x9C,0x5F,0x74,0x4C,0x43,0x18,0x72,0x6F,0x46,0x14,0x20,0xC7,0x5D, 0xED,0xB2,0xE4,0xB2,0xDD,0x73,0x1C,0x74,0x5D,0x72,0x99,0x72,0xDF,0x72,0x1E,0x73, 0x5C,0x73,0x51,0x7F,0x12,0x4B,0x00,0x29,0x03,0xD0,0x69,0x46,0x09,0x79,0x19,0x70, 0x03,0xE0,0x01,0x9C,0x03,0x9E,0x74,0x43,0x1C,0x70,0x93,0x1C,0x03,0x32,0x02,0x9F, 0xD2,0x7F,0xDB,0x7F,0xBA,0x18,0x5B,0xB2,0x01,0x32,0x9A,0x40,0x09,0x4B,0x07,0xB0, 0x1A,0x60,0xF0,0xBD,0x54,0x11,0x00,0x20,0xFE,0x02,0x00,0x20,0xB2,0x09,0x00,0x20, 0xAE,0x0A,0x00,0x20,0x08,0x02,0x00,0x20,0x4C,0x0D,0x00,0x20,0x0E,0x03,0x00,0x20, 0x80,0x09,0x00,0x20,0x1C,0x09,0x00,0x20,0x02,0xB4,0x71,0x46,0x49,0x08,0x49,0x00, 0x09,0x5C,0x49,0x00,0x8E,0x44,0x02,0xBC,0x70,0x47,0xC0,0x46,0x03,0xB4,0x71,0x46, 0x49,0x08,0x40,0x00,0x49,0x00,0x09,0x5A,0x49,0x00,0x8E,0x44,0x03,0xBC,0x70,0x47, 0x00,0x29,0x34,0xD0,0x01,0x23,0x00,0x22,0x10,0xB4,0x88,0x42,0x2C,0xD3,0x01,0x24, 0x24,0x07,0xA1,0x42,0x04,0xD2,0x81,0x42,0x02,0xD2,0x09,0x01,0x1B,0x01,0xF8,0xE7, 0xE4,0x00,0xA1,0x42,0x04,0xD2,0x81,0x42,0x02,0xD2,0x49,0x00,0x5B,0x00,0xF8,0xE7, 0x88,0x42,0x01,0xD3,0x40,0x1A,0x1A,0x43,0x4C,0x08,0xA0,0x42,0x02,0xD3,0x00,0x1B, 0x5C,0x08,0x22,0x43,0x8C,0x08,0xA0,0x42,0x02,0xD3,0x00,0x1B,0x9C,0x08,0x22,0x43, 0xCC,0x08,0xA0,0x42,0x02,0xD3,0x00,0x1B,0xDC,0x08,0x22,0x43,0x00,0x28,0x03,0xD0, 0x1B,0x09,0x01,0xD0,0x09,0x09,0xE3,0xE7,0x10,0x1C,0x10,0xBC,0x70,0x47,0x00,0x28, 0x01,0xD0,0x00,0x20,0xC0,0x43,0x07,0xB4,0x02,0x48,0x02,0xA1,0x40,0x18,0x02,0x90, 0x03,0xBD,0xC0,0x46,0xD9,0x00,0x00,0x00,0x00,0x29,0xF0,0xD0,0x03,0xB5,0xFF,0xF7, 0xB9,0xFF,0x0E,0xBC,0x42,0x43,0x89,0x1A,0x18,0x47,0xC0,0x46,0x00,0x29,0x41,0xD0, 0x10,0xB4,0x04,0x1C,0x4C,0x40,0xA4,0x46,0x01,0x23,0x00,0x22,0x00,0x29,0x00,0xD5, 0x49,0x42,0x00,0x28,0x00,0xD5,0x40,0x42,0x88,0x42,0x2C,0xD3,0x01,0x24,0x24,0x07, 0xA1,0x42,0x04,0xD2,0x81,0x42,0x02,0xD2,0x09,0x01,0x1B,0x01,0xF8,0xE7,0xE4,0x00, 0xA1,0x42,0x04,0xD2,0x81,0x42,0x02,0xD2,0x49,0x00,0x5B,0x00,0xF8,0xE7,0x88,0x42, 0x01,0xD3,0x40,0x1A,0x1A,0x43,0x4C,0x08,0xA0,0x42,0x02,0xD3,0x00,0x1B,0x5C,0x08, 0x22,0x43,0x8C,0x08,0xA0,0x42,0x02,0xD3,0x00,0x1B,0x9C,0x08,0x22,0x43,0xCC,0x08, 0xA0,0x42,0x02,0xD3,0x00,0x1B,0xDC,0x08,0x22,0x43,0x00,0x28,0x03,0xD0,0x1B,0x09, 0x01,0xD0,0x09,0x09,0xE3,0xE7,0x10,0x1C,0x64,0x46,0x00,0x2C,0x00,0xD5,0x40,0x42, 0x10,0xBC,0x70,0x47,0x00,0x28,0x06,0xD0,0x03,0xDB,0x00,0x20,0xC0,0x43,0x40,0x08, 0x01,0xE0,0x80,0x20,0x00,0x06,0x07,0xB4,0x02,0x48,0x02,0xA1,0x40,0x18,0x02,0x90, 0x03,0xBD,0xC0,0x46,0x19,0x00,0x00,0x00,0x00,0x29,0xEB,0xD0,0x03,0xB5,0xFF,0xF7, 0xA7,0xFF,0x0E,0xBC,0x42,0x43,0x89,0x1A,0x18,0x47,0xC0,0x46,0x70,0x47,0xC0,0x46, 0xF0,0xB5,0x05,0x1C,0x0F,0x2A,0x2F,0xD9,0x0B,0x1C,0x03,0x43,0x05,0x1C,0x9C,0x07, 0x2C,0xD1,0x0C,0x1C,0x03,0x1C,0x15,0x1C,0x26,0x68,0x10,0x3D,0x1E,0x60,0x66,0x68, 0x5E,0x60,0xA6,0x68,0x9E,0x60,0xE6,0x68,0x10,0x34,0xDE,0x60,0x10,0x33,0x0F,0x2D, 0xF2,0xD8,0x13,0x1C,0x10,0x3B,0x1B,0x09,0x01,0x33,0x1B,0x01,0xC5,0x18,0xC9,0x18, 0x0F,0x23,0x1A,0x40,0x03,0x2A,0x0F,0xD9,0x0E,0x1C,0x2C,0x1C,0x13,0x1C,0x80,0xCE, 0x04,0x3B,0x80,0xC4,0x03,0x2B,0xFA,0xD8,0x13,0x1F,0x9B,0x08,0x01,0x33,0x9B,0x00, 0x03,0x24,0x22,0x40,0xC9,0x18,0xED,0x18,0x00,0x2A,0x05,0xD0,0x00,0x23,0xCC,0x5C, 0xEC,0x54,0x01,0x33,0x93,0x42,0xFA,0xD1,0xF0,0xBD,0xC0,0x46,0x50,0x61,0x6C,0x6D, 0x20,0x49,0x6E,0x69,0x74,0x00,0x53,0x70,0x65,0x63,0x74,0x00,0x4F,0x53,0x43,0x00, 0x4C,0x54,0x5F,0x50,0x52,0x4F,0x46,0x49,0x4C,0x49,0x4E,0x47,0x00,0x47,0x2D,0x41, 0x66,0x74,0x65,0x72,0x00,0x3D,0x48,0x6F,0x76,0x6F,0x72,0x00,0x12,0x0E,0x07,0x0D, 0x0A,0x12,0x04,0x06,0x0C,0x09,0x12,0x0F,0x05,0x11,0x08,0x12,0x00,0x01,0x10,0x02, 0x45,0x72,0x72,0x00,0x4B,0x65,0x79,0x20,0x52,0x00,0x52,0x45,0x46,0x20,0x49,0x4E, 0x49,0x54,0x00,0x43,0x6D,0x44,0x65,0x6C,0x74,0x61,0x20,0x52,0x65,0x66,0x2F,0x52, 0x65,0x61,0x6C,0x00,0x52,0x61,0x77,0x00,0x4D,0x41,0x58,0x20,0x49,0x00,0x43,0x4D, 0x5F,0x44,0x45,0x4C,0x54,0x41,0x5F,0x4D,0x41,0x58,0x5F,0x4D,0x49,0x4E,0x00,0x44, 0x49,0x46,0x46,0x2F,0x4E,0x00,0x4E,0x65,0x67,0x2D,0x45,0x64,0x67,0x65,0x00,0x52, 0x65,0x66,0x00,0x00,0x2D,0x49,0x00,0x00,0xFF,0x00,0x00,0x01,0x00,0xFF,0x01,0x00, 0xFF,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xA4,0x0D,0x00,0x20,0x2C,0x02,0x00,0x20, 0x0C,0x00,0x00,0x00,0x58,0x11,0x00,0x20,0x01,0x02,0xFF,0x00,0x01,0x04,0x00,0x04, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x02,0x45, 0x4D,0x31,0x48,0x30,0x50,0x52,0x34,0x35,0x08,0xB5,0x00,0x28,0x02,0xD0,0x01,0x28, 0x20,0xD1,0x03,0xE0,0x10,0x4A,0x11,0x4B,0x1A,0x60,0x1B,0xE0,0x10,0x4B,0x1B,0x68, 0x0C,0x2B,0x15,0xD1,0x0F,0x4A,0x10,0x4B,0x1A,0x60,0x10,0x4A,0x10,0x4B,0x1A,0x60, 0x10,0x4A,0x11,0x4B,0x1A,0x60,0x11,0x4A,0x11,0x4B,0x1A,0x60,0x11,0x4A,0x12,0x4B, 0x1A,0x60,0x12,0x4A,0x12,0x4B,0x1A,0x60,0x12,0x4A,0x13,0x4B,0x1A,0x60,0x01,0xE0, 0xFE,0xF7,0x00,0xF8,0x08,0xBD,0xC0,0x46,0xED,0x62,0x00,0x00,0xFC,0x01,0x00,0x20, 0x54,0x11,0x00,0x20,0x1D,0x5E,0x00,0x00,0x6C,0x00,0x00,0x20,0xCD,0x62,0x00,0x00, 0x70,0x00,0x00,0x20,0xE9,0x64,0x00,0x00,0x04,0x02,0x00,0x20,0x2D,0x69,0x00,0x00, 0x18,0x00,0x00,0x20,0x69,0x5E,0x00,0x00,0x1C,0x00,0x00,0x20,0xAD,0x5D,0x00,0x00, 0x20,0x00,0x00,0x20,0xF1,0x5C,0x00,0x00,0x24,0x00,0x00,0x20,0x70,0xB5,0x10,0x4B, 0x10,0x4A,0x1C,0x68,0x11,0x68,0x8C,0x42,0x17,0xD0,0x1B,0x68,0x16,0x68,0x0E,0x4C, 0xDB,0xB2,0xF6,0xB2,0x06,0x25,0x0F,0x21,0x01,0x30,0x2A,0x1C,0x5A,0x43,0x12,0x19, 0x12,0x78,0x0A,0x40,0x82,0x42,0x09,0xD0,0x5A,0x1C,0xD2,0xB2,0x1D,0x3B,0xDB,0xB2, 0x1D,0x2A,0x00,0xD8,0x13,0x1C,0xB3,0x42,0xEF,0xD1,0x04,0x4B,0x18,0xB2,0x70,0xBD, 0x88,0x00,0x00,0x20,0x84,0x00,0x00,0x20,0xF4,0x09,0x00,0x20,0xFF,0xFF,0x00,0x00, 0xA0,0x23,0xDB,0x05,0x01,0x22,0x1A,0x72,0x08,0x49,0x10,0x22,0x1A,0x72,0x00,0x22, 0x0A,0x70,0x1A,0x72,0x06,0x4B,0x80,0x22,0x19,0x68,0x52,0x00,0x0A,0x43,0x1A,0x60, 0x1A,0x68,0x80,0x23,0xDB,0x05,0x99,0x68,0x9A,0x60,0x70,0x47,0x0C,0x00,0x00,0x20, 0x14,0x00,0x00,0x20,0x08,0xB5,0x03,0x1C,0x50,0x1E,0x06,0x28,0x30,0xD8,0xFF,0xF7, 0xFB,0xFB,0x04,0x0A,0x25,0x1B,0x15,0x25,0x25,0x00,0x16,0x4A,0x01,0x23,0x13,0x70, 0x15,0x4A,0x13,0x70,0x24,0xE0,0x14,0x4A,0x9B,0x01,0x59,0x18,0x02,0x20,0x13,0x4B, 0x10,0x70,0x49,0x00,0x12,0x4A,0xC9,0x18,0x11,0x60,0x19,0xE0,0xFD,0xF7,0x0C,0xFB, 0x0C,0x4B,0x00,0x22,0x1A,0x70,0x13,0xE0,0x0B,0x4A,0x01,0x20,0x10,0x70,0x5B,0x01, 0x0C,0x4A,0xC9,0x18,0x89,0x18,0x0A,0x4A,0x11,0x60,0x09,0xE0,0x06,0x4A,0x02,0x20, 0x5B,0x01,0x10,0x70,0xC9,0x18,0x08,0x4A,0x49,0x00,0x89,0x18,0x04,0x4A,0x11,0x60, 0x08,0xBD,0xC0,0x46,0xE9,0x01,0x00,0x20,0xFA,0x03,0x00,0x20,0x84,0x40,0x00,0x40, 0x38,0x0D,0x00,0x20,0x68,0x0E,0x00,0x20,0xFC,0x03,0x00,0x20,0x08,0xB5,0x11,0x4B, 0x1B,0x88,0xDB,0xB2,0x10,0x2B,0x02,0xD0,0xAF,0x2B,0x19,0xD1,0x16,0xE0,0xFD,0xF7, 0xDB,0xFA,0x0D,0x4A,0x00,0x23,0x13,0x70,0x0C,0x4A,0x11,0x68,0x0C,0x4A,0x12,0x68, 0x91,0x42,0x08,0xD0,0xFA,0x23,0x9B,0x00,0xC0,0x46,0x01,0x3B,0x00,0x2B,0xFB,0xD1, 0xFD,0xF7,0xA0,0xFA,0x04,0xE0,0x07,0x4A,0x13,0x60,0x01,0xE0,0xFD,0xF7,0xC4,0xFA, 0x08,0xBD,0xC0,0x46,0x28,0x00,0x00,0x20,0x2A,0x00,0x00,0x20,0x88,0x00,0x00,0x20, 0x84,0x00,0x00,0x20,0x9C,0x0D,0x00,0x20,0x02,0x4B,0x1A,0x68,0x02,0x4B,0x1A,0x60, 0x70,0x47,0xC0,0x46,0x84,0x00,0x00,0x20,0x88,0x00,0x00,0x20,0x08,0xB5,0xFF,0xF7, 0xF3,0xFF,0x08,0xBD,0x00,0xB5,0x07,0x4A,0x07,0x4B,0x10,0x68,0x19,0x68,0x88,0x42, 0x03,0xDB,0x10,0x68,0x1B,0x68,0xC0,0x1A,0x03,0xE0,0x10,0x68,0x1B,0x68,0x1E,0x30, 0xC0,0x1A,0x00,0xBD,0x84,0x00,0x00,0x20,0x88,0x00,0x00,0x20,0x00,0xB5,0x05,0x4B, 0x1A,0x68,0x01,0x32,0x1A,0x60,0x1A,0x68,0x1D,0x2A,0x02,0xDD,0x1A,0x68,0x1E,0x3A, 0x1A,0x60,0x00,0xBD,0x88,0x00,0x00,0x20,0xF7,0xB5,0xA7,0x4A,0x13,0x88,0x1B,0xB2, 0xAE,0x2B,0x00,0xD1,0xB2,0xE1,0x3B,0xDC,0x0A,0x2B,0x00,0xD1,0xED,0xE0,0x18,0xDC, 0x05,0x2B,0x00,0xD1,0xCE,0xE0,0x08,0xDC,0x03,0x2B,0x00,0xD1,0xB7,0xE0,0x00,0xDD, 0xBE,0xE0,0x02,0x2B,0x00,0xD0,0xE2,0xE1,0xA4,0xE0,0x07,0x2B,0x00,0xD1,0xCC,0xE0, 0x00,0xDA,0xC4,0xE0,0x08,0x2B,0x00,0xD1,0xF7,0xE0,0x09,0x2B,0x00,0xD0,0xD6,0xE1, 0xC8,0xE0,0x10,0x2B,0x00,0xD1,0x7F,0xE0,0x0B,0xDC,0x0C,0x2B,0x00,0xD1,0xD9,0xE0, 0x00,0xDA,0xCF,0xE0,0x0D,0x2B,0x00,0xD1,0xDD,0xE0,0x0F,0x2B,0x00,0xD0,0xC6,0xE1, 0x48,0xE0,0x62,0x2B,0x00,0xD1,0xBE,0xE1,0x03,0xDC,0x61,0x2B,0x00,0xD0,0xBE,0xE1, 0xB4,0xE1,0x64,0x2B,0x00,0xD1,0xAC,0xE1,0xA8,0x2B,0x00,0xD0,0xB7,0xE1,0x98,0xE1, 0xF4,0x2B,0x00,0xD1,0xF4,0xE0,0x19,0xDC,0xEF,0x2B,0x00,0xD1,0x87,0xE1,0x09,0xDC, 0xBF,0x2B,0x00,0xD1,0x8D,0xE1,0xEE,0x2B,0x00,0xD1,0x7C,0xE1,0xAF,0x2B,0x00,0xD0, 0xA5,0xE1,0x6A,0xE1,0xF1,0x2B,0x00,0xD1,0xC8,0xE0,0x00,0xDA,0xC2,0xE0,0xF2,0x2B, 0x00,0xD1,0xCB,0xE0,0xF3,0x2B,0x00,0xD0,0x99,0xE1,0xD0,0xE0,0xF9,0x2B,0x00,0xD1, 0x26,0xE1,0x0B,0xDC,0xF6,0x2B,0x00,0xD1,0x06,0xE1,0x00,0xDA,0xD9,0xE0,0xF7,0x2B, 0x00,0xD1,0x08,0xE1,0xF8,0x2B,0x00,0xD0,0x89,0xE1,0x10,0xE1,0xFB,0x2B,0x00,0xD1, 0x28,0xE1,0x00,0xDA,0x1D,0xE1,0xFC,0x2B,0x00,0xD1,0x2C,0xE1,0xFD,0x2B,0x00,0xD0, 0x7D,0xE1,0x31,0xE1,0xFF,0xF7,0x5E,0xFF,0x68,0x4C,0x20,0x60,0x23,0x68,0x00,0x2B, 0x01,0xD1,0xFD,0xF7,0x01,0xFA,0x23,0x68,0x06,0x22,0x5A,0x43,0x64,0x4B,0x65,0x4C, 0x1A,0x70,0x00,0x25,0x61,0x4E,0x64,0x4F,0x12,0xE0,0x39,0x68,0x06,0x22,0x51,0x43, 0x62,0x4B,0x68,0x46,0xC9,0x18,0xFF,0xF7,0x8B,0xFB,0x00,0x23,0x68,0x46,0x1A,0x5C, 0xE2,0x54,0x01,0x33,0x06,0x2B,0xF9,0xD1,0xFF,0xF7,0x50,0xFF,0x01,0x35,0x06,0x34, 0x33,0x68,0x9D,0x42,0xE9,0xDB,0x52,0xE1,0x59,0x49,0x54,0x4A,0x0C,0x78,0x13,0x68, 0x06,0x20,0x58,0x43,0x00,0x23,0x84,0x42,0x0A,0xDA,0x52,0x4A,0x08,0x78,0x50,0x4D, 0x10,0x18,0xC4,0x5C,0x58,0x19,0x01,0x33,0x04,0x70,0x08,0x2B,0xF6,0xD1,0x3E,0xE1, 0x13,0x60,0x3C,0xE1,0x4F,0x4A,0x0F,0x23,0x26,0x20,0x11,0x5E,0x28,0x25,0x52,0x5F, 0x09,0x11,0x12,0x12,0x99,0x43,0x13,0x40,0x45,0x4A,0xCB,0x18,0x13,0x70,0x42,0x4B, 0x1A,0x88,0x03,0x23,0x12,0xB2,0x9A,0x1A,0x46,0x4B,0x19,0x8D,0x40,0x4B,0xD1,0x54, 0x3D,0x4B,0x1A,0x88,0x04,0x23,0x12,0xB2,0x9A,0x1A,0x42,0x4B,0xD9,0x8C,0x3C,0x4B, 0xD1,0x54,0x1C,0xE1,0x40,0x4B,0xDA,0x8C,0x39,0x4B,0x1A,0x70,0x17,0xE1,0x3E,0x4B, 0x34,0x33,0x1A,0x78,0x36,0x4B,0x1A,0x70,0x11,0xE1,0x3A,0x4B,0xDA,0x7B,0x34,0x4B, 0x1A,0x70,0x0C,0xE1,0x39,0x4B,0x1A,0x78,0x31,0x4B,0x00,0x2A,0x02,0xD0,0x02,0x22, 0x1A,0x70,0x04,0xE1,0x01,0x22,0x1A,0x70,0x01,0xE1,0x35,0x4B,0x1A,0x78,0x2C,0x4B, 0x1A,0x70,0xFC,0xE0,0x12,0x88,0x33,0x4B,0x12,0xB2,0x19,0x78,0x0B,0x23,0x9A,0x1A, 0x27,0x4B,0xD1,0x54,0x24,0x4B,0x1A,0x88,0x2E,0x4B,0x12,0xB2,0x59,0x78,0x0C,0x23, 0x9A,0x1A,0x23,0x4B,0xD1,0x54,0x20,0x4B,0x1A,0x88,0x2B,0x4B,0x12,0xB2,0x19,0x78, 0x0D,0x23,0x9A,0x1A,0x1E,0x4B,0xD1,0x54,0xE1,0xE0,0x23,0x4B,0xDA,0x8D,0x1C,0x4B, 0x1A,0x70,0xDC,0xE0,0x1F,0x4B,0x1A,0x78,0x19,0x4B,0x1A,0x70,0x16,0x4B,0x03,0x21, 0x1A,0x88,0xF1,0x23,0x12,0xB2,0x9A,0x1A,0x15,0x4B,0xD1,0x54,0x12,0x4B,0x1A,0x88, 0x18,0x4B,0x12,0xB2,0x59,0x78,0xF2,0x23,0x9A,0x1A,0x11,0x4B,0xD1,0x54,0x0E,0x4B, 0x1A,0x88,0x1A,0x4B,0x12,0xB2,0x19,0x78,0xF3,0x23,0x9A,0x1A,0x0C,0x4B,0xD1,0x54, 0x09,0x4B,0x1A,0x88,0x16,0x4B,0x12,0xB2,0x19,0x78,0xF4,0x23,0x9A,0x1A,0x08,0x4B, 0xD1,0x54,0x05,0x4B,0x1A,0x88,0x13,0x4B,0x12,0xB2,0x19,0x78,0xF5,0x23,0x9A,0x1A, 0x03,0x4B,0xD1,0x54,0xAB,0xE0,0xC0,0x46,0x28,0x00,0x00,0x20,0x9C,0x0D,0x00,0x20, 0x0C,0x00,0x00,0x50,0x8C,0x00,0x00,0x20,0x88,0x00,0x00,0x20,0xF4,0x09,0x00,0x20, 0x2A,0x00,0x00,0x20,0xB2,0x09,0x00,0x20,0x4C,0x0D,0x00,0x20,0xE1,0x01,0x00,0x20, 0xE3,0x01,0x00,0x20,0x0E,0x03,0x00,0x20,0x80,0x09,0x00,0x20,0xFF,0x5B,0x00,0x00, 0xFF,0x73,0x00,0x00,0xFF,0x7B,0x00,0x00,0x45,0x4B,0x46,0x4A,0x1B,0x78,0xD3,0x18, 0xDA,0x78,0x45,0x4B,0x1A,0x70,0x45,0x4B,0x42,0x49,0x1A,0x88,0x40,0x4B,0x12,0xB2, 0x1B,0x78,0xCB,0x18,0x19,0x79,0xF7,0x23,0x9A,0x1A,0x3F,0x4B,0xD1,0x54,0x3F,0x4B, 0x1A,0x88,0x3C,0x4B,0x12,0xB2,0x59,0x79,0xF8,0x23,0x9A,0x1A,0x3A,0x4B,0xD1,0x54, 0x3A,0x4B,0x1A,0x88,0x37,0x4B,0x12,0xB2,0x99,0x79,0xF9,0x23,0x9A,0x1A,0x36,0x4B, 0xD1,0x54,0x36,0x4B,0x1A,0x88,0x33,0x4B,0x12,0xB2,0xD9,0x79,0xFA,0x23,0x9A,0x1A, 0x31,0x4B,0xD1,0x54,0x31,0x4B,0x1A,0x88,0x2E,0x4B,0x12,0xB2,0x19,0x7A,0xFB,0x23, 0x9A,0x1A,0x2D,0x4B,0xD1,0x54,0x2D,0x4B,0x1A,0x88,0x2A,0x4B,0x12,0xB2,0x59,0x7A, 0xFC,0x23,0x9A,0x1A,0x28,0x4B,0xD1,0x54,0x28,0x4B,0x1A,0x88,0x25,0x4B,0x12,0xB2, 0x99,0x7A,0xFD,0x23,0x9A,0x1A,0x24,0x4B,0xD1,0x54,0x40,0xE0,0x24,0x4B,0x1A,0x78, 0x21,0x4B,0x1A,0x70,0xFD,0xF7,0xC8,0xF8,0x39,0xE0,0x22,0x49,0x1C,0x4A,0x00,0x23, 0x0C,0x68,0x10,0x78,0x1C,0x4D,0x20,0x18,0xC4,0x5C,0x58,0x19,0x01,0x33,0x04,0x70, 0x08,0x2B,0xF5,0xD1,0x2B,0xE0,0x17,0x4B,0x1A,0x7E,0x17,0x4B,0x1A,0x70,0x17,0x4B, 0x1A,0x88,0x14,0x4B,0x12,0xB2,0xD9,0x7D,0xEF,0x23,0x9A,0x1A,0x12,0x4B,0xD1,0x54, 0x1D,0xE0,0x14,0x49,0x0E,0x4A,0x00,0x23,0x0C,0x68,0x10,0x78,0x0E,0x4D,0x20,0x18, 0xC4,0x5C,0x58,0x19,0x01,0x33,0x04,0x70,0x08,0x2B,0xF5,0xD1,0xFD,0xF7,0x9C,0xF8, 0x0D,0xE0,0x0D,0x4B,0x1A,0x78,0x08,0x4B,0x1A,0x70,0x08,0xE0,0x0B,0x4B,0x9A,0x78, 0x05,0x4B,0x1A,0x70,0x03,0xE0,0x09,0x4B,0xDA,0x78,0x03,0x4B,0x1A,0x70,0xF7,0xBD, 0x2A,0x00,0x00,0x20,0xB2,0x09,0x00,0x20,0x0C,0x00,0x00,0x50,0x28,0x00,0x00,0x20, 0xFA,0x03,0x00,0x20,0x38,0x0D,0x00,0x20,0xFF,0x5B,0x00,0x00,0x35,0x00,0x00,0x20, 0x73,0xB5,0x0F,0x4C,0x0F,0x4D,0x00,0x90,0x01,0x91,0x20,0x68,0x1E,0x21,0x1F,0x30, 0x2E,0x68,0xFF,0xF7,0x01,0xFA,0xB1,0x42,0xF7,0xD0,0x20,0x68,0x06,0x22,0x50,0x43, 0x09,0x4B,0x69,0x46,0xC0,0x18,0xFF,0xF7,0x03,0xFA,0x23,0x68,0x01,0x33,0x23,0x60, 0x23,0x68,0x1D,0x2B,0x02,0xDD,0x23,0x68,0x1E,0x3B,0x23,0x60,0x73,0xBD,0xC0,0x46, 0x84,0x00,0x00,0x20,0x88,0x00,0x00,0x20,0xF4,0x09,0x00,0x20,0x07,0xB5,0x6A,0x46, 0x0F,0x23,0x13,0x70,0x00,0x23,0x53,0x70,0x93,0x70,0xD3,0x70,0x53,0x71,0x00,0x98, 0x01,0x99,0xFF,0xF7,0xCD,0xFF,0xFD,0xF7,0x1D,0xF8,0x07,0xBD,0x73,0xB5,0x04,0x38, 0x10,0x28,0x00,0xD9,0xBD,0xE0,0xFF,0xF7,0x17,0xF9,0x09,0xBC,0x18,0x28,0xBC,0x80, 0xBC,0xBC,0xBC,0xBC,0x8B,0x94,0xBC,0xBC,0xBC,0xAB,0xB7,0x00,0x59,0x49,0x00,0x23, 0x0A,0x68,0x9A,0x42,0x06,0xDD,0x49,0x68,0x51,0x18,0x01,0x22,0x78,0x31,0x00,0xDB, 0x1A,0x1C,0x13,0x1C,0x54,0x4A,0x13,0x70,0xA3,0xE0,0x54,0x4B,0x54,0x4C,0x1A,0x78, 0x54,0x4B,0x00,0x2A,0x01,0xD0,0x54,0x4A,0x00,0xE0,0x54,0x4A,0x90,0x7E,0x19,0x68, 0x80,0x01,0xFF,0xF7,0x53,0xF9,0xA0,0x76,0x93,0xE0,0x51,0x4B,0x1B,0x78,0x00,0x2B, 0x00,0xD1,0x8E,0xE0,0x4F,0x4B,0x50,0x4A,0x9B,0x7E,0x91,0x1E,0x01,0x3B,0x5B,0x00, 0x9B,0x18,0x00,0x22,0x05,0xE0,0x00,0x24,0x18,0x5F,0xAA,0x28,0x00,0xDD,0x01,0x22, 0x02,0x3B,0x8B,0x42,0xF7,0xD1,0x49,0x4C,0x00,0x2A,0x06,0xD0,0x62,0x68,0x64,0x23, 0x62,0x2A,0x00,0xDC,0x53,0x1C,0x63,0x60,0x00,0xE0,0x62,0x60,0x63,0x68,0x63,0x2B, 0x04,0xDD,0x01,0x20,0xFF,0xF7,0x9A,0xFF,0x00,0x23,0x63,0x60,0x3C,0x4B,0x1B,0x78, 0x00,0x2B,0x66,0xD0,0x3E,0x4B,0x1B,0x78,0x00,0x2B,0x03,0xD0,0x3D,0x4B,0x1B,0x68, 0x00,0x2B,0x5E,0xDD,0x3C,0x4B,0x1B,0x78,0x00,0x2B,0x08,0xD0,0x3B,0x4A,0x1F,0x23, 0x13,0x80,0x01,0x21,0x03,0x20,0x00,0x23,0x00,0x91,0xFD,0xF7,0x8B,0xFC,0x00,0x24, 0x37,0x4D,0x35,0x4E,0x0D,0xE0,0x33,0x78,0x00,0x2B,0x09,0xD0,0x35,0x4B,0xE2,0x01, 0xD2,0x18,0x01,0x23,0xE9,0x7D,0x03,0x20,0x00,0x93,0x02,0x23,0xFD,0xF7,0x7A,0xFC, 0x01,0x34,0x2B,0x7E,0x9C,0x42,0xEE,0xDB,0x3B,0xE0,0x2F,0x4B,0x1A,0x68,0x2F,0x4B, 0x01,0x2A,0x02,0xD1,0x07,0x22,0x1A,0x60,0x33,0xE0,0x00,0x22,0x1A,0x60,0x30,0xE0, 0x2B,0x4B,0x1B,0x78,0x00,0x2B,0x2C,0xD0,0xFB,0xF7,0x16,0xFF,0xFB,0xF7,0x30,0xFF, 0x27,0xE0,0x16,0x4B,0x1A,0x78,0x22,0x4B,0x00,0x2A,0x03,0xD1,0x25,0x4A,0x12,0x78, 0x00,0x2A,0x06,0xD0,0x1A,0x1C,0x32,0x32,0x01,0x21,0x11,0x70,0x3C,0x22,0xDA,0x73, 0x17,0xE0,0x1A,0x1C,0x32,0x32,0x02,0x21,0x11,0x70,0x78,0x22,0xDA,0x73,0x10,0xE0, 0x0B,0x4B,0x20,0x22,0x9A,0x71,0x05,0x22,0xDA,0x71,0x01,0x22,0x1A,0x72,0x03,0x22, 0x5A,0x72,0x00,0x22,0x1A,0x70,0x04,0xE0,0x05,0x48,0x08,0x49,0x50,0x22,0xFF,0xF7, 0x1F,0xF9,0x73,0xBD,0x74,0x01,0x00,0x20,0x41,0x11,0x00,0x20,0xE1,0x01,0x00,0x20, 0x4C,0x0D,0x00,0x20,0x7C,0x09,0x00,0x20,0x9A,0x74,0x00,0x00,0x4A,0x74,0x00,0x00, 0x20,0x03,0x00,0x20,0x08,0x74,0x00,0x00,0x40,0x0D,0x00,0x20,0xFC,0x08,0x00,0x20, 0xE2,0x01,0x00,0x20,0x24,0x01,0x00,0x20,0xEF,0x01,0x00,0x20,0x58,0x11,0x00,0x20, 0xB2,0x09,0x00,0x20,0x84,0x40,0x00,0x40,0xE4,0x00,0x00,0x20,0x3C,0x0D,0x00,0x20, 0xF9,0x00,0x00,0x20,0xE3,0x01,0x00,0x20,0x07,0xB5,0x06,0x23,0x00,0x90,0x18,0x1C, 0x50,0x43,0x01,0x91,0x03,0x49,0x1A,0x1C,0x40,0x18,0x69,0x46,0xFF,0xF7,0xE8,0xF8, 0x07,0xBD,0xC0,0x46,0xF4,0x09,0x00,0x20,0xF0,0xB5,0xA2,0x4C,0x23,0x23,0xE0,0x5C, 0x89,0xB0,0x00,0x25,0x00,0x28,0x00,0xD1,0xCD,0xE0,0x43,0x1E,0xDB,0xB2,0x9E,0x4C, 0x00,0xE0,0x13,0x1C,0x9A,0x00,0x9D,0x4D,0xD2,0x18,0x52,0x00,0xAA,0x18,0x3C,0x25, 0x51,0x5F,0x5A,0x1E,0x4D,0x1E,0xA9,0x41,0xE1,0x54,0xD2,0xB2,0x00,0x2B,0xF0,0xD1, 0x00,0x25,0x00,0x28,0x00,0xDC,0xB6,0xE0,0x94,0x4F,0x01,0x24,0x3C,0x37,0x00,0x26, 0x03,0x94,0x1D,0xE0,0x08,0xB2,0x05,0x90,0x6C,0x46,0x08,0x20,0x04,0x5F,0x05,0x98, 0x00,0x1B,0xC4,0x17,0x00,0x19,0x60,0x40,0x84,0x46,0x01,0x98,0x60,0x45,0x32,0xDD, 0x2C,0x24,0x1B,0x5F,0x00,0x2B,0x32,0xDD,0x86,0x4C,0x23,0x23,0xE3,0x5C,0x03,0x9C, 0x01,0x35,0x01,0x34,0x03,0x94,0x0A,0x37,0x02,0x36,0xAB,0x42,0x00,0xDC,0x92,0xE0, 0x3A,0x88,0x13,0xB2,0x00,0x2B,0x54,0xDD,0x80,0x4C,0xA1,0x19,0x80,0x4C,0x08,0x8C, 0xA3,0x19,0x04,0x90,0x18,0x20,0x1C,0x5E,0x10,0x20,0xA4,0x46,0x6C,0x46,0x04,0x5F, 0x60,0x46,0x20,0x1A,0x00,0x94,0x7B,0x4C,0x02,0x90,0x34,0x20,0x20,0x5C,0x89,0x88, 0x01,0x90,0x02,0x98,0xC4,0x17,0x00,0x19,0x60,0x40,0x84,0x46,0x01,0x9C,0x98,0x88, 0x02,0x90,0xA4,0x45,0xBE,0xDB,0x74,0x4C,0x64,0x5D,0x00,0x2C,0xC8,0xD0,0x00,0x9C, 0x0B,0xB2,0x1B,0x12,0x20,0x11,0x0F,0x24,0x1C,0x40,0x0F,0x23,0x98,0x43,0x01,0x90, 0x60,0x23,0x03,0x98,0x5B,0x42,0x02,0x94,0x18,0x43,0x3C,0x79,0x02,0x9B,0x84,0x46, 0x01,0x98,0x05,0x94,0x18,0x43,0x06,0xAC,0x13,0xB2,0x02,0x93,0x60,0x70,0x63,0x46, 0xA1,0x70,0x68,0x46,0x10,0x21,0x08,0x5C,0x23,0x70,0x69,0x46,0x14,0x23,0x59,0x5C, 0x02,0x9B,0xE0,0x70,0x21,0x71,0xFF,0x2B,0x00,0xDD,0xFF,0x22,0x62,0x71,0xE8,0xB2, 0xFF,0xF7,0x44,0xFB,0x02,0x1C,0x50,0x1C,0x39,0xD0,0x03,0xCC,0xFF,0xF7,0x54,0xFF, 0x9A,0xE7,0x57,0x49,0x8C,0x19,0xA3,0x8D,0x1A,0xB2,0x00,0x2A,0x94,0xDD,0x05,0x20, 0x20,0x56,0x22,0x8B,0xA4,0x88,0x11,0xB2,0x04,0x94,0x0F,0x24,0x04,0x40,0x09,0x11, 0x0F,0x20,0x81,0x43,0x05,0x91,0x03,0x99,0x20,0x20,0x02,0x94,0x01,0x43,0x8C,0x46, 0x02,0x98,0x05,0x99,0x06,0xAC,0x08,0x43,0x19,0xB2,0x02,0x91,0x61,0x46,0x21,0x70, 0x60,0x70,0x10,0x21,0x68,0x46,0x08,0x5C,0x02,0x99,0xE2,0x70,0x00,0x22,0xA0,0x70, 0x22,0x71,0xFF,0x29,0x00,0xDD,0xFF,0x23,0x63,0x71,0xE8,0xB2,0xFF,0xF7,0x0E,0xFB, 0x02,0x1C,0x03,0xCC,0x53,0x1C,0x4C,0xD0,0xFF,0xF7,0x1E,0xFF,0x64,0xE7,0x03,0xCC, 0xFF,0xF7,0xF6,0xFD,0x60,0xE7,0x3D,0x4E,0x3D,0x4B,0x71,0x68,0x5A,0x68,0x48,0x1C, 0x42,0xD0,0x91,0x42,0x33,0xD0,0x53,0x1C,0x17,0xD0,0x40,0x21,0x01,0x32,0x06,0xAC, 0x00,0x23,0x0A,0x43,0xED,0xB2,0x22,0x70,0x28,0x1C,0x63,0x70,0xA3,0x70,0xE3,0x70, 0x23,0x71,0x63,0x71,0xFF,0xF7,0xEA,0xFA,0x02,0x1C,0x50,0x1C,0x44,0xD0,0x61,0x68, 0x06,0x98,0xFF,0xF7,0xF9,0xFE,0x71,0x68,0x01,0xE0,0xED,0xB2,0x06,0xAC,0x0B,0x1D, 0x5B,0x00,0x40,0x20,0xF2,0x5A,0x40,0x42,0x01,0x31,0x00,0x23,0x01,0x43,0x62,0x71, 0x28,0x1C,0x21,0x70,0x63,0x70,0xA3,0x70,0xE3,0x70,0x23,0x71,0xFF,0xF7,0xCE,0xFA, 0x02,0x1C,0x06,0x98,0x51,0x1C,0x2D,0xD0,0x61,0x68,0xFF,0xF7,0xDD,0xFE,0x21,0x4B, 0x1A,0x68,0x21,0x4B,0x1B,0x68,0x9A,0x42,0x01,0xD0,0xFC,0xF7,0x03,0xFE,0x09,0xB0, 0xF0,0xBD,0xFF,0xF7,0xAD,0xFD,0x17,0xE7,0x53,0x1C,0xF0,0xD0,0x40,0x21,0x01,0x32, 0x00,0x23,0x6C,0x46,0x0A,0x43,0x22,0x76,0xE8,0xB2,0x63,0x76,0xA3,0x76,0xE3,0x76, 0x23,0x77,0x63,0x77,0xFF,0xF7,0xAA,0xFA,0x02,0x1C,0x07,0x99,0x06,0x98,0x55,0x1C, 0x0C,0xD0,0xFF,0xF7,0xB9,0xFE,0xDA,0xE7,0x61,0x68,0x06,0x98,0xFF,0xF7,0x90,0xFD, 0x71,0x68,0xBC,0xE7,0x61,0x68,0xFF,0xF7,0x8B,0xFD,0xD0,0xE7,0xFF,0xF7,0x88,0xFD, 0xCD,0xE7,0xC0,0x46,0xB2,0x09,0x00,0x20,0xF0,0x01,0x00,0x20,0xA0,0x0D,0x00,0x20, 0x24,0x01,0x00,0x20,0x4C,0x0D,0x00,0x20,0x68,0x01,0x00,0x20,0xE4,0x00,0x00,0x20, 0xD0,0x00,0x00,0x20,0x88,0x00,0x00,0x20,0x84,0x00,0x00,0x20,0x38,0xB5,0x50,0x28, 0x05,0xD1,0x54,0x4B,0x01,0x20,0x18,0x60,0xFF,0xF7,0x2E,0xFA,0xA0,0xE0,0x52,0x4B, 0x40,0x28,0x01,0xD1,0x01,0x24,0x1C,0x70,0x1B,0x78,0x00,0x2B,0x00,0xD1,0x97,0xE0, 0x41,0x38,0x0E,0x28,0x00,0xD9,0x93,0xE0,0xFE,0xF7,0xAE,0xFE,0x08,0x12,0x08,0x2D, 0x08,0x47,0x92,0x92,0x92,0x5E,0x64,0x7A,0x92,0x92,0x8D,0x00,0x47,0x4B,0x01,0x22, 0x1A,0x70,0x47,0x4B,0x1A,0x80,0x47,0x4A,0x13,0x60,0xFC,0xF7,0x9B,0xFD,0x7F,0xE0, 0x42,0x48,0x44,0x4B,0xFF,0x2A,0x0B,0xD1,0x43,0x4A,0xC9,0x01,0x12,0x78,0x52,0x00, 0xD2,0xB2,0x02,0x70,0x41,0x4A,0x89,0x18,0x19,0x60,0xFC,0xF7,0x8B,0xFD,0x6F,0xE0, 0x89,0x01,0x8A,0x18,0x3D,0x49,0x52,0x00,0x02,0x24,0x52,0x18,0x04,0x70,0x1A,0x60, 0xFC,0xF7,0x80,0xFD,0x64,0xE0,0x35,0x4C,0x36,0x4B,0x39,0x48,0xFF,0x2A,0x0A,0xD1, 0x35,0x4A,0x89,0x01,0x12,0x78,0x40,0x18,0x52,0x00,0xD2,0xB2,0x22,0x70,0x18,0x60, 0xFC,0xF7,0x70,0xFD,0x54,0xE0,0x49,0x01,0x52,0x18,0x52,0x00,0x02,0x25,0x80,0x18, 0x25,0x70,0x18,0x60,0xFC,0xF7,0x66,0xFD,0x4A,0xE0,0x28,0x4C,0x29,0x4B,0x2D,0x48, 0xFF,0x2A,0x08,0xD1,0x28,0x4A,0x49,0x01,0x92,0x78,0x40,0x18,0x22,0x70,0x18,0x60, 0xFC,0xF7,0x58,0xFD,0x3C,0xE0,0x49,0x01,0x52,0x18,0x01,0x25,0x80,0x18,0x25,0x70, 0x18,0x60,0xFC,0xF7,0x4F,0xFD,0x33,0xE0,0x1C,0x49,0x1E,0x4B,0x22,0x48,0xFF,0x2A, 0x0E,0xD1,0x04,0xE0,0x19,0x49,0x1B,0x4B,0x20,0x48,0xFF,0x2A,0x08,0xD1,0x20,0x4A, 0x12,0x78,0x52,0x00,0xD2,0xB2,0x0A,0x70,0x18,0x60,0xFC,0xF7,0x3B,0xFD,0x1F,0xE0, 0x52,0x00,0x02,0x24,0x80,0x18,0x0C,0x70,0x18,0x60,0xFC,0xF7,0x33,0xFD,0x17,0xE0, 0x0E,0x48,0x10,0x4B,0x17,0x49,0xFF,0x2A,0x06,0xD1,0x15,0x4A,0x12,0x78,0x02,0x70, 0x19,0x60,0xFC,0xF7,0x27,0xFD,0x0B,0xE0,0x01,0x24,0x8A,0x18,0x04,0x70,0x1A,0x60, 0xFC,0xF7,0x20,0xFD,0x04,0xE0,0x10,0x4A,0x00,0x23,0x13,0x70,0x02,0x4A,0x13,0x70, 0x38,0xBD,0xC0,0x46,0x54,0x11,0x00,0x20,0xE9,0x01,0x00,0x20,0xFA,0x03,0x00,0x20, 0x0C,0x03,0x00,0x20,0x38,0x0D,0x00,0x20,0x0E,0x03,0x00,0x20,0x84,0x40,0x00,0x40, 0xFC,0x03,0x00,0x20,0xB7,0x0A,0x00,0x20,0x40,0x0D,0x00,0x20,0x18,0x02,0x00,0x20, 0x80,0x09,0x00,0x20,0xA8,0x0A,0x00,0x20,0x21,0x03,0x00,0x20,0x08,0xB5,0x39,0x4B, 0x1B,0x88,0x0A,0x2B,0x2B,0xD0,0x04,0xD8,0x01,0x2B,0x09,0xD0,0x09,0x2B,0x67,0xD1, 0x0E,0xE0,0xA0,0x2B,0x3C,0xD0,0xB0,0x2B,0x56,0xD0,0x5F,0x2B,0x60,0xD1,0x49,0xE0, 0x31,0x4A,0x11,0x78,0x0E,0x22,0x11,0x42,0x5A,0xD1,0x30,0x4A,0x13,0x70,0x57,0xE0, 0x2F,0x4B,0x34,0x33,0x1B,0x78,0x00,0x2B,0x52,0xD0,0x2B,0x4B,0x1B,0x78,0x01,0x2B, 0x05,0xD1,0x2C,0x4A,0x13,0x70,0x2C,0x4B,0x00,0x22,0x1A,0x70,0x48,0xE0,0x02,0x2B, 0x46,0xD1,0x28,0x4A,0x01,0x23,0x13,0x70,0x27,0x4A,0x13,0x70,0x40,0xE0,0x27,0x4B, 0x1A,0x78,0x00,0x2A,0x11,0xD1,0x01,0x22,0x1A,0x70,0x25,0x4A,0x25,0x4B,0xD1,0x8C, 0x02,0x20,0x05,0x39,0xD9,0x84,0x11,0x7F,0xD2,0x8D,0x02,0x39,0x19,0x77,0x19,0x1C, 0x32,0x31,0x14,0x32,0x08,0x70,0xDA,0x85,0x2A,0xE0,0x00,0x22,0x1A,0x70,0x27,0xE0, 0x15,0x4B,0x1D,0x4A,0x18,0x78,0x1D,0x4B,0x1A,0x28,0x06,0xD1,0x19,0x78,0x1C,0x4B, 0x10,0x78,0x1A,0x78,0xFF,0xF7,0xA6,0xF9,0x1A,0xE0,0x11,0x78,0x1A,0x78,0xFF,0xF7, 0xDD,0xFE,0x15,0xE0,0x0C,0x4B,0x1B,0x78,0x00,0x2B,0x11,0xD0,0x15,0x4B,0x08,0x22, 0x1A,0x60,0xFA,0xF7,0xF1,0xFE,0x0B,0xE0,0x07,0x4B,0x1B,0x78,0x1A,0x2B,0x07,0xD1, 0x0D,0x4B,0x18,0x78,0x0D,0x4B,0x19,0x78,0x0D,0x4B,0x1A,0x78,0xFF,0xF7,0x8A,0xF9, 0x08,0xBD,0xC0,0x46,0x28,0x00,0x00,0x20,0x0C,0x00,0x00,0x50,0xEC,0x01,0x00,0x20, 0xB2,0x09,0x00,0x20,0xE0,0x01,0x00,0x20,0xE1,0x01,0x00,0x20,0xE3,0x01,0x00,0x20, 0x4A,0x74,0x00,0x00,0x4C,0x0D,0x00,0x20,0x0E,0x00,0x00,0x50,0x0D,0x00,0x00,0x50, 0x10,0x00,0x00,0x50,0x54,0x11,0x00,0x20,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x45,0x07, 0x4D,0x31,0x48,0x30,0x50,0x42,0x34,0x35,0x0A,0x31,0x0A,0x4C,0x32,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x48,0x0C,0x78,0x1E,0x0A,0x01,0x01,0x00,0x00,0x00,0x14, 0x0C,0x01,0x03,0x14,0x0C,0x00,0x01,0x00,0x01,0x01,0x00,0x0A,0x00,0x00,0x40,0x06, 0xC0,0x03,0x00,0x00,0x00,0x00,0x00,0x64,0x64,0x64,0x02,0x01,0x00,0x00,0xA0,0x00, 0x32,0x00,0x14,0x00,0x07,0x03,0x32,0x32,0x10,0x00,0x01,0x01,0x04,0x00,0xF4,0x01, 0x14,0x03,0x03,0x02,0x00,0xFF,0x00,0x03,0x05,0x0F,0x00,0x05,0x05,0x00,0x18,0xFC, 0x14,0x1E,0x0A,0xF6,0x0A,0xF6,0x05,0x19,0x2D,0x00,0x80,0x70,0x98,0x01,0x00,0x00, 0x19,0x00,0x0F,0x00,0x1A,0x0F,0x28,0x00,0x3C,0x00,0x14,0x00,0x01,0x01,0x01,0x14, 0x41,0x00,0x41,0x00,0x3C,0x00,0x01,0x01,0x01,0x07,0x0A,0x00,0x4B,0x00,0x0A,0x05, 0xE0,0x04,0x5F,0x00,0x36,0x05,0x5F,0x00,0x01,0x00,0x01,0x00,0x04,0x00,0x90,0x01, 0x30,0x04,0x03,0x03,0x00,0x00,0x00,0x04,0x05,0x0F,0xFF,0x08,0x06,0x00,0x24,0xFA, 0x14,0x1E,0x0A,0xF6,0x07,0xF6,0x08,0x19,0x1E,0x00,0x80,0x70,0x2B,0x02,0x00,0x00, 0x14,0x00,0x0F,0x00,0x0F,0x0A,0x28,0x01,0x50,0x00,0x14,0x00,0x03,0x01,0x01,0x14, 0x46,0x00,0x46,0x00,0x46,0x00,0x01,0x01,0x01,0x07,0x0A,0x00,0x32,0x00,0x0A,0x05, 0x28,0x06,0x64,0x00,0x4B,0x07,0x64,0x00,0x19,0x00,0x0F,0x0E,0x0D,0x0B,0x09,0x07, 0x05,0x03,0x02,0x01,0x10,0x11,0x12,0x14,0x16,0x18,0x1A,0x1C,0x1D,0x1E,0x1F,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x02,0x03,0x04,0x05,0x08,0x09,0x0A,0x0B,0x0E,0x0F,0x10,0x11,0x03,0x0A,0x10,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x14,0x14,0x00,0x00,0x00, 0x01,0x06,0x0A,0x00,0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03,0x02,0x02, 0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04, 0x04,0x04,0x03,0x03,0x03,0x02,0x02,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0xFF, 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03,0x02,0x02,0x02,0x01,0x01,0x01, 0x01,0x01,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03, 0x02,0x02,0x02,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05, 0x04,0x04,0x04,0x03,0x03,0x03,0x02,0x02,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x00, 0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03,0x02,0x02,0x02,0x01, 0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x04, 0x03,0x03,0x03,0x02,0x02,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03,0x02,0x02,0x02,0x01,0x01,0x01,0x01,0x01, 0x01,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03,0x02,0x02, 0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04, 0x04,0x03,0x03,0x03,0x02,0x02,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x01, 0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x03,0x03,0x02,0x02,0x02,0x01,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,0x04,0x04,0x04,0x03,0x03,0x02, 0x02,0x02,0x02,0x02,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x06,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x18,0x1F,0x22,0x26,0x26,0x28,0x2D,0x2D,0x30,0x30,0x31,0x33,0x35,0x34, 0x32,0x32,0x36,0x34,0x34,0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x19,0x1D,0x20,0x24,0x25,0x28,0x2A,0x2D,0x31,0x33,0x34,0x36,0x3C,0x3D, 0x3D,0x3E,0x3D,0x3E,0x3E,0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x18,0x1E,0x20,0x23,0x26,0x26,0x2B,0x2B,0x2C,0x30,0x2F,0x32,0x31,0x31, 0x33,0x31,0x2F,0x36,0x33,0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x18,0x1D,0x20,0x24,0x26,0x29,0x2C,0x2D,0x2F,0x30,0x30,0x31,0x35,0x35, 0x33,0x30,0x31,0x32,0x34,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x1D,0x21,0x24,0x25,0x27,0x2A,0x2B,0x2C,0x2F,0x2E,0x2F,0x32,0x33, 0x30,0x32,0x30,0x31,0x33,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x1D,0x1E,0x22,0x24,0x27,0x2B,0x2C,0x30,0x31,0x31,0x2F,0x34,0x2F, 0x32,0x2F,0x2F,0x2F,0x32,0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x1E,0x20,0x25,0x27,0x28,0x2F,0x30,0x32,0x36,0x38,0x39,0x3D,0x3D, 0x3E,0x3A,0x3E,0x40,0x40,0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x18,0x1D,0x1F,0x22,0x23,0x25,0x2A,0x2B,0x2D,0x2F,0x2F,0x2F,0x30,0x32, 0x2F,0x31,0x30,0x2F,0x2F,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x1D,0x1E,0x22,0x24,0x27,0x2A,0x2B,0x2F,0x2F,0x2F,0x30,0x30,0x2F, 0x31,0x2F,0x2F,0x2F,0x2E,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x1D,0x22,0x23,0x25,0x28,0x29,0x29,0x2D,0x2E,0x2F,0x2E,0x31,0x31, 0x2F,0x2F,0x2F,0x2E,0x2E,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x1D,0x20,0x23,0x26,0x28,0x2E,0x2E,0x30,0x35,0x35,0x36,0x3A,0x3D, 0x3D,0x3A,0x3D,0x3E,0x3D,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x17,0x20,0x24,0x26,0x27,0x2C,0x2D,0x2D,0x32,0x32,0x31,0x31,0x33,0x34, 0x33,0x33,0x32,0x33,0x31,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x40,0x40,0x40,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x45,0x10 };
MikePach/stock_kernel_lge_l2s
drivers/input/touchscreen/L2_R03_V10.c
C
gpl-2.0
162,954
from Screen import Screen from Screens.ChoiceBox import ChoiceBox class ResolutionSelection(Screen): def __init__(self, session, infobar=None): Screen.__init__(self, session) self.session = session xresString = open("/proc/stb/vmpeg/0/xres", "r").read() yresString = open("/proc/stb/vmpeg/0/yres", "r").read() fpsString = open("/proc/stb/vmpeg/0/framerate", "r").read() xres = int(xresString, 16) yres = int(yresString, 16) fps = int(fpsString, 16) fpsFloat = float(fps) fpsFloat = fpsFloat/1000 selection = 0 tlist = [] tlist.append((_("Exit"), "exit")) tlist.append((_("Auto(not available)"), "auto")) tlist.append(("Video: " + str(xres) + "x" + str(yres) + "@" + str(fpsFloat) + "hz", "")) tlist.append(("--", "")) tlist.append(("576i", "576i50")) tlist.append(("576p", "576p50")) tlist.append(("720p", "720p50")) tlist.append(("1080i", "1080i50")) tlist.append(("1080p@23.976hz", "1080p23")) tlist.append(("1080p@24hz", "1080p24")) tlist.append(("1080p@25hz", "1080p25")) keys = ["green", "yellow", "blue", "", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ] mode = open("/proc/stb/video/videomode").read()[:-1] print mode for x in range(len(tlist)): if tlist[x][1] == mode: selection = x self.session.openWithCallback(self.ResolutionSelected, ChoiceBox, title=_("Please select a resolution..."), list = tlist, selection = selection, keys = keys) #return def ResolutionSelected(self, Resolution): if not Resolution is None: if isinstance(Resolution[1], str): if Resolution[1] == "exit": self.ExGreen_toggleGreen() elif Resolution[1] != "auto": open("/proc/stb/video/videomode", "w").write(Resolution[1]) from enigma import gFBDC gFBDC.getInstance().setResolution(-1, -1) self.ExGreen_toggleGreen() return
OpenLD/enigma2-wetek
lib/python/Screens/ResolutionSelection.py
Python
gpl-2.0
1,827
package org.swati.problemSolving.permutations; /* Write a function to compute the maximum length palindromic sub-sequence of an array. A palindrome is a sequence which is equal to its reverse. A sub-sequence of an array is a sequence which can be constructed by removing elements of the array. Ex: Given [4,1,2,3,4,5,6,5,4,3,4,4,4,4,4,4,4] should return 10 (all 4's) */ public class PalindromSubSeq { public static int maxLengthPalindrome(int[] values) { int startSeq = 0; int maxCount = 0; while(startSeq < values.length) { int tempStart = startSeq; for (int endSeq = values.length - 1; endSeq > startSeq; endSeq--) { if (isPalindrome(startSeq, endSeq, values)) { if (maxCount < (endSeq - startSeq + 1)) { maxCount = endSeq - startSeq + 1; } startSeq = endSeq + 1; break; } } if (startSeq == tempStart) { startSeq++; } } return maxCount; } private static boolean isPalindrome(int start, int end, int[] values) { int backCount = end; int size = end - start + 1; for (int i = start; i < start + size/2; i++) { if (values[i] != values[backCount]) { return false; } backCount--; } return true; } public static void main(String args[]) { int[] values = {4, 1, 2, 3, 4, 5, 6, 5, 4, 3, 4, 4, 2, 2, 2, 2, 2, 4, 4}; System.out.println("max length palindrome sub seq is " + maxLengthPalindrome(values)); } }
swatkatz/problem-solving
src/main/java/org/swati/problemSolving/permutations/PalindromSubSeq.java
Java
gpl-2.0
1,687
/* * arch/arm/include/asm/pgtable.h * * Copyright (C) 1995-2002 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _ASMARM_PGTABLE_H #define _ASMARM_PGTABLE_H #include <linux/const.h> #include <asm/proc-fns.h> #ifndef CONFIG_MMU #include <asm-generic/4level-fixup.h> #include <asm/pgtable-nommu.h> #else #include <asm-generic/pgtable-nopud.h> #include <asm/memory.h> #include <asm/pgtable-hwdef.h> #ifdef CONFIG_ARM_LPAE #include <asm/pgtable-3level.h> #else #include <asm/pgtable-2level.h> #endif /* * Just any arbitrary offset to the start of the vmalloc VM area: the * current 8MB value just means that there will be a 8MB "hole" after the * physical memory until the kernel virtual memory starts. That means that * any out-of-bounds memory accesses will hopefully be caught. * The vmalloc() routines leaves a hole of 4kB between each vmalloced * area for the same reason. ;) */ #define VMALLOC_OFFSET (8*1024*1024) #define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)) #define VMALLOC_END 0xff000000UL #define LIBRARY_TEXT_START 0x0c000000 #ifndef __ASSEMBLY__ extern void __pte_error(const char *file, int line, pte_t); extern void __pmd_error(const char *file, int line, pmd_t); extern void __pgd_error(const char *file, int line, pgd_t); #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte) #define pmd_ERROR(pmd) __pmd_error(__FILE__, __LINE__, pmd) #define pgd_ERROR(pgd) __pgd_error(__FILE__, __LINE__, pgd) /* * This is the lowest virtual address we can permit any user space * mapping to be mapped at. This is particularly important for * non-high vector CPUs. */ #define FIRST_USER_ADDRESS (PAGE_SIZE * 2) /* * Use TASK_SIZE as the ceiling argument for free_pgtables() and * free_pgd_range() to avoid freeing the modules pmd when LPAE is enabled (pmd * page shared between user and kernel). */ #ifdef CONFIG_ARM_LPAE #define USER_PGTABLES_CEILING TASK_SIZE #endif /* * The pgprot_* and protection_map entries will be fixed up in runtime * to include the cachable and bufferable bits based on memory policy, * as well as any architecture dependent bits like global/ASID and SMP * shared mapping bits. */ #define _L_PTE_DEFAULT L_PTE_PRESENT | L_PTE_YOUNG extern pgprot_t pgprot_user; extern pgprot_t pgprot_kernel; extern pgprot_t pgprot_hyp_device; extern pgprot_t pgprot_s2; extern pgprot_t pgprot_s2_device; #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b)) #define PAGE_NONE _MOD_PROT(pgprot_user, L_PTE_XN | L_PTE_RDONLY | L_PTE_NONE) #define PAGE_SHARED _MOD_PROT(pgprot_user, L_PTE_USER | L_PTE_XN) #define PAGE_SHARED_EXEC _MOD_PROT(pgprot_user, L_PTE_USER) #define PAGE_COPY _MOD_PROT(pgprot_user, L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) #define PAGE_COPY_EXEC _MOD_PROT(pgprot_user, L_PTE_USER | L_PTE_RDONLY) #define PAGE_READONLY _MOD_PROT(pgprot_user, L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) #define PAGE_READONLY_EXEC _MOD_PROT(pgprot_user, L_PTE_USER | L_PTE_RDONLY) #define PAGE_KERNEL _MOD_PROT(pgprot_kernel, L_PTE_XN) #define PAGE_KERNEL_EXEC pgprot_kernel #define PAGE_HYP _MOD_PROT(pgprot_kernel, L_PTE_HYP) #define PAGE_HYP_DEVICE _MOD_PROT(pgprot_hyp_device, L_PTE_HYP) #define PAGE_S2 _MOD_PROT(pgprot_s2, L_PTE_S2_RDONLY) #define PAGE_S2_DEVICE _MOD_PROT(pgprot_s2_device, L_PTE_USER | L_PTE_S2_RDONLY) #define __PAGE_NONE __pgprot(_L_PTE_DEFAULT | L_PTE_RDONLY | L_PTE_XN | L_PTE_NONE) #define __PAGE_SHARED __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_XN) #define __PAGE_SHARED_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER) #define __PAGE_COPY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) #define __PAGE_COPY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY) #define __PAGE_READONLY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) #define __PAGE_READONLY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY) #define __pgprot_modify(prot,mask,bits) \ __pgprot((pgprot_val(prot) & ~(mask)) | (bits)) #define pgprot_noncached(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED) #define pgprot_writecombine(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE) #define pgprot_cached(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_CACHED) #define pgprot_stronglyordered(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED) #ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE #define pgprot_dmacoherent(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE | L_PTE_XN) #define __HAVE_PHYS_MEM_ACCESS_PROT struct file; extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot); #else #define pgprot_dmacoherent(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED | L_PTE_XN) #endif #endif /* __ASSEMBLY__ */ /* * The table below defines the page protection levels that we insert into our * Linux page table version. These get translated into the best that the * architecture can perform. Note that on most ARM hardware: * 1) We cannot do execute protection * 2) If we could do execute protection, then read is implied * 3) write implies read permissions */ #define __P000 __PAGE_NONE #define __P001 __PAGE_READONLY #define __P010 __PAGE_COPY #define __P011 __PAGE_COPY #define __P100 __PAGE_READONLY_EXEC #define __P101 __PAGE_READONLY_EXEC #define __P110 __PAGE_COPY_EXEC #define __P111 __PAGE_COPY_EXEC #define __S000 __PAGE_NONE #define __S001 __PAGE_READONLY #define __S010 __PAGE_SHARED #define __S011 __PAGE_SHARED #define __S100 __PAGE_READONLY_EXEC #define __S101 __PAGE_READONLY_EXEC #define __S110 __PAGE_SHARED_EXEC #define __S111 __PAGE_SHARED_EXEC #ifndef __ASSEMBLY__ /* * ZERO_PAGE is a global shared page that is always zero: used * for zero-mapped memory areas etc.. */ extern struct page *empty_zero_page; #define ZERO_PAGE(vaddr) (empty_zero_page) extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* to find an entry in a page-table-directory */ #define pgd_index(addr) ((addr) >> PGDIR_SHIFT) #define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr)) /* to find an entry in a kernel page-table-directory */ #define pgd_offset_k(addr) pgd_offset(&init_mm, addr) #define pmd_none(pmd) (!pmd_val(pmd)) #define pmd_present(pmd) (pmd_val(pmd)) static inline pte_t *pmd_page_vaddr(pmd_t pmd) { return __va(pmd_val(pmd) & PHYS_MASK & (s32)PAGE_MASK); } #define pmd_page(pmd) pfn_to_page(__phys_to_pfn(pmd_val(pmd) & PHYS_MASK)) #ifndef CONFIG_HIGHPTE #define __pte_map(pmd) pmd_page_vaddr(*(pmd)) #define __pte_unmap(pte) do { } while (0) #else #define __pte_map(pmd) (pte_t *)kmap_atomic(pmd_page(*(pmd))) #define __pte_unmap(pte) kunmap_atomic(pte) #endif #define pte_index(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) #define pte_offset_kernel(pmd,addr) (pmd_page_vaddr(*(pmd)) + pte_index(addr)) #define pte_offset_map(pmd,addr) (__pte_map(pmd) + pte_index(addr)) #define pte_unmap(pte) __pte_unmap(pte) #define pte_pfn(pte) ((pte_val(pte) & PHYS_MASK) >> PAGE_SHIFT) #define pfn_pte(pfn,prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) #define pte_page(pte) pfn_to_page(pte_pfn(pte)) #define mk_pte(page,prot) pfn_pte(page_to_pfn(page), prot) #define pte_clear(mm,addr,ptep) set_pte_ext(ptep, __pte(0), 0) #define pte_none(pte) (!pte_val(pte)) #define pte_present(pte) (pte_val(pte) & L_PTE_PRESENT) #define pte_write(pte) (!(pte_val(pte) & L_PTE_RDONLY)) #define pte_dirty(pte) (pte_val(pte) & L_PTE_DIRTY) #define pte_young(pte) (pte_val(pte) & L_PTE_YOUNG) #define pte_exec(pte) (!(pte_val(pte) & L_PTE_XN)) #define pte_special(pte) (0) #define pte_present_user(pte) (pte_present(pte) && (pte_val(pte) & L_PTE_USER)) #if __LINUX_ARM_ARCH__ < 6 static inline void __sync_icache_dcache(pte_t pteval) { } #else extern void __sync_icache_dcache(pte_t pteval); #endif static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pteval) { unsigned long ext = 0; if (addr < TASK_SIZE && pte_present_user(pteval)) { __sync_icache_dcache(pteval); ext |= PTE_EXT_NG; } set_pte_ext(ptep, pteval, ext); } #define PTE_BIT_FUNC(fn,op) \ static inline pte_t pte_##fn(pte_t pte) { pte_val(pte) op; return pte; } PTE_BIT_FUNC(wrprotect, |= L_PTE_RDONLY); PTE_BIT_FUNC(mkwrite, &= ~L_PTE_RDONLY); PTE_BIT_FUNC(mkclean, &= ~L_PTE_DIRTY); PTE_BIT_FUNC(mkdirty, |= L_PTE_DIRTY); PTE_BIT_FUNC(mkold, &= ~L_PTE_YOUNG); PTE_BIT_FUNC(mkyoung, |= L_PTE_YOUNG); static inline pte_t pte_mkspecial(pte_t pte) { return pte; } static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) { const pteval_t mask = L_PTE_XN | L_PTE_RDONLY | L_PTE_USER | L_PTE_NONE | L_PTE_VALID; pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); return pte; } /* * Encode and decode a swap entry. Swap entries are stored in the Linux * page tables as follows: * * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 * <--------------- offset ----------------------> < type -> 0 0 0 * * This gives us up to 31 swap files and 64GB per swap file. Note that * the offset field is always non-zero. */ #define __SWP_TYPE_SHIFT 3 #define __SWP_TYPE_BITS 5 #define __SWP_TYPE_MASK ((1 << __SWP_TYPE_BITS) - 1) #define __SWP_OFFSET_SHIFT (__SWP_TYPE_BITS + __SWP_TYPE_SHIFT) #define __swp_type(x) (((x).val >> __SWP_TYPE_SHIFT) & __SWP_TYPE_MASK) #define __swp_offset(x) ((x).val >> __SWP_OFFSET_SHIFT) #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << __SWP_TYPE_SHIFT) | ((offset) << __SWP_OFFSET_SHIFT) }) #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) #define __swp_entry_to_pte(swp) ((pte_t) { (swp).val }) /* * It is an error for the kernel to have more swap files than we can * encode in the PTEs. This ensures that we know when MAX_SWAPFILES * is increased beyond what we presently support. */ #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > __SWP_TYPE_BITS) /* * Encode and decode a file entry. File entries are stored in the Linux * page tables as follows: * * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 * <----------------------- offset ------------------------> 1 0 0 */ #define pte_file(pte) (pte_val(pte) & L_PTE_FILE) #define pte_to_pgoff(x) (pte_val(x) >> 3) #define pgoff_to_pte(x) __pte(((x) << 3) | L_PTE_FILE) #define PTE_FILE_MAX_BITS 29 /* Needs to be defined here and not in linux/mm.h, as it is arch dependent */ /* FIXME: this is not correct */ #define kern_addr_valid(addr) (1) #include <asm-generic/pgtable.h> /* * We provide our own arch_get_unmapped_area to cope with VIPT caches. */ #define HAVE_ARCH_UNMAPPED_AREA #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN /* * remap a physical page `pfn' of size `size' with page protection `prot' * into virtual address `from' */ #define io_remap_pfn_range(vma,from,pfn,size,prot) \ remap_pfn_range(vma, from, pfn, size, prot) #define pgtable_cache_init() do { } while (0) #endif /* !__ASSEMBLY__ */ #endif /* CONFIG_MMU */ #endif /* _ASMARM_PGTABLE_H */
koquantam/android_kernel_oc_vivalto3gvn
arch/arm/include/asm/pgtable.h
C
gpl-2.0
11,370
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * * Copyright (C) 2012 by Dominik Riebeling * * This program 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 * of the License, or (at your option) any later version. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #ifndef TTSSAPI4_H #define TTSSAPI4_H #include "ttsbase.h" #include "ttssapi.h" class TTSSapi4: public TTSSapi { Q_OBJECT public: TTSSapi4(QObject* parent=NULL) : TTSSapi(parent) { m_TTSTemplate = "cscript //nologo \"%exe\" " "/language:%lang /voice:\"%voice\" " "/speed:%speed \"%options\" /sapi4"; m_TTSVoiceTemplate = "cscript //nologo \"%exe\" " "/language:%lang /listvoices /sapi4"; m_TTSType = "sapi4"; } }; #endif
renolui/RenoStudio
Player/rbutil/rbutilqt/base/ttssapi4.h
C
gpl-2.0
1,486
namespace Wpf { using System; using System.Diagnostics; using System.Windows.Input; public sealed class Command<T> : ICommand { readonly Action<T> _execute; readonly Predicate<T> _canExecute; public Command(Action<T> execute) : this(execute, null) { } public Command(Action<T> execute, Predicate<T> canExecute) { if (execute == null) throw new ArgumentNullException("execute"); _execute = execute; _canExecute = canExecute; } [DebuggerStepThrough] public bool CanExecute(T parameter) { return _canExecute == null ? true : _canExecute(parameter); } [DebuggerStepThrough] public bool CanExecute(object parameter) { return parameter == null ? true : CanExecute((T)parameter); } [DebuggerStepThrough] public void Execute(object parameter) { Execute((T)parameter); } [DebuggerStepThrough] public void Execute(T parameter) { _execute(parameter); } public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandManager.RequerySuggested -= value; } } } }
aide-solutions/password-generator
Wpf/Command.cs
C#
gpl-2.0
1,413
#!/bin/bash # Backup all containers # Author: Amro Diab # Date: 04/02/2011 ownership=$1 for i in `cat /var/amrox/scripts/info/${ownership}.lst`; do /var/amrox/scripts/backup/vz.sh $i; sleep 360 done
adiabuk/random_scripts
hosting/scripts/backup/vz_all.sh
Shell
gpl-2.0
206
/***************************************************************** Page : ricoLocale_ua.js Description : ukrainian localization strings Version 0.1 (revisions by Alexey Uvarov,Illiya Gannitskiy) If you would like to include translations for another language, please send them to dowdybrown@yahoo.com ******************************************************************/ RicoTranslate.langCode='ua'; // used in ricoLiveGrid.js RicoTranslate.addPhraseId('bookmarkExact',"Перегляд записів $1 - $2 з $3"); RicoTranslate.addPhraseId('bookmarkAbout',"Перегляд записів $1 - $2 з більш ніж $3"); RicoTranslate.addPhraseId('bookmarkNoRec',"Немає записів"); RicoTranslate.addPhraseId('bookmarkNoMatch',"Немає збігів"); RicoTranslate.addPhraseId('bookmarkLoading',"Завантаження..."); RicoTranslate.addPhraseId('sorting',"Сортування..."); RicoTranslate.addPhraseId('exportStatus',"Експортується запис $1"); RicoTranslate.addPhraseId('filterAll',"(всі)"); RicoTranslate.addPhraseId('filterBlank',"(чистий)"); RicoTranslate.addPhraseId('filterEmpty',"(порожній)"); RicoTranslate.addPhraseId('filterNotEmpty',"(не порожній)"); RicoTranslate.addPhraseId('filterLike',"як: $1"); RicoTranslate.addPhraseId('filterNot',"не: $1"); RicoTranslate.addPhraseId('requestError',"Запит даних повернув помилку:\n$1"); RicoTranslate.addPhraseId('keywordPrompt',"Шукати по ключу (Використовуйте * для всіх записів):"); // used in ricoLiveGridMenu.js RicoTranslate.addPhraseId('gridmenuSortBy',"Сортування по: $1"); RicoTranslate.addPhraseId('gridmenuSortAsc',"Зростаюча"); RicoTranslate.addPhraseId('gridmenuSortDesc',"Убутна"); RicoTranslate.addPhraseId('gridmenuFilterBy',"Фільтрація по: $1"); RicoTranslate.addPhraseId('gridmenuRefresh',"Обновити"); RicoTranslate.addPhraseId('gridmenuChgKeyword',"Змінити ключове слово..."); RicoTranslate.addPhraseId('gridmenuExcludeAlso',"Виключити також це значення"); RicoTranslate.addPhraseId('gridmenuInclude',"Включити тільки це значення"); RicoTranslate.addPhraseId('gridmenuGreaterThan',"Більше або дорівнює даному значенню"); RicoTranslate.addPhraseId('gridmenuLessThan',"Менше або дорівнює даному значенню"); RicoTranslate.addPhraseId('gridmenuContains',"Містить значення..."); RicoTranslate.addPhraseId('gridmenuExclude',"Виключити це значення"); RicoTranslate.addPhraseId('gridmenuRemoveFilter',"Вилучити фільтр"); RicoTranslate.addPhraseId('gridmenuRemoveAll',"Вилучити всі фільтри"); RicoTranslate.addPhraseId('gridmenuExport',"Друк/Експорт""); RicoTranslate.addPhraseId('gridmenuExportVis2Web',"Видимі записи на веб-сторінку"); RicoTranslate.addPhraseId('gridmenuExportAll2Web',"Усі записи на веб-сторінку"); RicoTranslate.addPhraseId('gridmenuExportVis2SS',"Видимі записи в аркуш excel"); RicoTranslate.addPhraseId('gridmenuExportAll2SS',"Усі записи в аркуш excel"); RicoTranslate.addPhraseId('gridmenuHideShow',"Сховати/Показати"); RicoTranslate.addPhraseId('gridmenuChooseCols',"Виберіть колонку..."); RicoTranslate.addPhraseId('gridmenuHide',"Сховати: $1"); RicoTranslate.addPhraseId('gridmenuShow',"Показати: $1"); RicoTranslate.addPhraseId('gridmenuShowAll',"Показати всі"); // used in ricoLiveGridAjax.js RicoTranslate.addPhraseId('sessionExpireMinutes',"хвилин до закінчення сесії"); RicoTranslate.addPhraseId('sessionExpired',"МИНУЛА"); RicoTranslate.addPhraseId('requestTimedOut',"Перевищений інтервал очікування даних!"); RicoTranslate.addPhraseId('waitForData',"Очікування даних..."); RicoTranslate.addPhraseId('httpError',"Отримана HTTP помилка: $1"); RicoTranslate.addPhraseId('invalidResponse',"Сервер повернув неправильну відповідь"); // used in ricoLiveGridCommon.js RicoTranslate.addPhraseId('gridChooseCols',"Вибрати колонку"); RicoTranslate.addPhraseId('exportComplete',"Експорт завершений"); RicoTranslate.addPhraseId('exportInProgress',"Експортування..."); RicoTranslate.addPhraseId('showFilterRow',"Показати відфільтровані записи"); // img alt text RicoTranslate.addPhraseId('hideFilterRow',"Сховати відфільтровані записи"); // img alt text // used in ricoLiveGridForms.js RicoTranslate.addPhraseId('selectNone',"(нічого)"); RicoTranslate.addPhraseId('selectNewVal',"(нове значення)"); RicoTranslate.addPhraseId('record',"запис"); RicoTranslate.addPhraseId('thisRecord',"ця $1"); RicoTranslate.addPhraseId('confirmDelete',"Ви впевнені,що бажаєте видалити $1?"); RicoTranslate.addPhraseId('deleting',"Видалення..."); RicoTranslate.addPhraseId('formPleaseEnter',"Будь ласка, введіть значення для $1"); RicoTranslate.addPhraseId('formInvalidFmt',"Неправильний формат для $1"); RicoTranslate.addPhraseId('formOutOfRange',"Значення знаходиться поза діапазоном для $1"); RicoTranslate.addPhraseId('formNewValue',"нове значення:"); RicoTranslate.addPhraseId('saving',"Збереження..."); RicoTranslate.addPhraseId('clear',"очистити"); RicoTranslate.addPhraseId('close',"Закрити"); RicoTranslate.addPhraseId('saveRecord',"Зберегти $1"); RicoTranslate.addPhraseId('cancel',"Скасування"); RicoTranslate.addPhraseId('editRecord',"Редагувати цю $1"); RicoTranslate.addPhraseId('deleteRecord',"Вилучити цю $1"); RicoTranslate.addPhraseId('cloneRecord',"Копіювати цю $1"); RicoTranslate.addPhraseId('addRecord',"Додати нову $1"); RicoTranslate.addPhraseId('addedSuccessfully',"$1 додана успішно"); RicoTranslate.addPhraseId('deletedSuccessfully',"$1 вилучена успішно"); RicoTranslate.addPhraseId('updatedSuccessfully',"$1 оновлена успішно"); // used in ricoTree.js RicoTranslate.addPhraseId('treeSave',"Зберегти виділення"); RicoTranslate.addPhraseId('treeClear',"Очистити все"); // used in ricoCalendar.js RicoTranslate.addPhraseId('calToday',"Сьогодні $1 $2 $3"); // $1=day, $2=monthabbr, $3=year, $4=month number RicoTranslate.addPhraseId('calWeekHdg',"Тд"); RicoTranslate.addPhraseId('calYearRange',"Рік ($1-$2)"); RicoTranslate.addPhraseId('calInvalidYear',"Неправильний рік"); // Date & number formats RicoTranslate.thouSep="," RicoTranslate.decPoint="." RicoTranslate.dateFmt="dd/mm/yyyy" RicoTranslate.monthNames=['Січень','Лютий','Березень','Квітень','Травень','Червень','Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'] RicoTranslate.dayNames=['Неділя','Понеділок','Вівторок','Середа','Четвер','П'ятниця','Субота']
denys-duchier/Scolar
static/Rico/src/translations/ricoLocale_ua.js
JavaScript
gpl-2.0
7,482
/* * Copyright (C) 2016 SFINA Team * * This program 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 * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package agents.communication; /** * Return Type of function readyToPress() of AbstractCommunicationAgent. * @author Ben */ public enum ProgressType { DO_NOTHING, SKIP_NEXT_ITERATION, DO_NEXT_ITERATION, DO_NEXT_STEP, DO_DEFAULT }
SFINA/SFINA
core/src/agents/communication/ProgressType.java
Java
gpl-2.0
1,010
#!/system/bin/sh #Set governor items echo 378000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq; echo 1512000 > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq; echo 1512000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq; echo $(date) END of post-init.sh
Perseus71/KT747
00post-init.sh
Shell
gpl-2.0
281
app.directive("portfolio", function(socket, upload, ms, filterFilter) { return { restrict: 'E', templateUrl: '/directives/templates/portfolioDirective.html', scope: false, link: function(scope, elements, attrs) { scope.uploads = []; scope.controllerPlaceholder = false; scope.portfolioController = 'Current Projects'; scope.filteredProjects = filterFilter(scope.userData.projects, function(value, index){ if(value.status == 'running'){ //alert('found file' + value.name); return true }; }); if (scope.userData.projects == undefined) { scope.userData.projects = []; } /* if (localStorage['userData']) { var newData = JSON.parse(localStorage['userData']); console.log(" portfolio localStorage exists"); console.log(newData); scope.filteredProjects = filterFilter(scope.userData.projects, function(value, index){ if(value.status == 'running'){ //alert('found file' + value.name); return true }; }); if (scope.userData.projects == undefined) { scope.userData.projects = []; } } else{ console.log(" portfolio localStorage does not exist"); socket.emit('restricted', 'request portfolio', localStorage['token']); };*/ socket.on('restricted', 'recieve portfolio',function(data) { var newData = JSON.parse(data); console.log(newData); scope.userData.projects = newData.projects; scope.filteredProjects = filterFilter(scope.userData.projects, function(value, index){ if(value.status == 'running'){ //alert('found file' + value.name); return true }; }); if (scope.userData.projects == undefined) { scope.userData.projects = []; } console.log(scope.userData.projects); }); socket.on('restricted', 'recieve portfolioUpdate',function(project) { scope.userData.projects.push(project); console.log(scope.userData.projects); var oldData = JSON.parse(localStorage['userData']); oldData.projects = scope.userData.projects; scope.filteredProjects = filterFilter(scope.userData.projects, function(value, index){ if(value.status == 'running'){ //alert('found file' + value.name); return true }; }); localStorage['userData']= JSON.stringify(oldData); console.log('updated portfolio localStorage'); console.log(localStorage['userData']); scope.$root.$broadcast('portfolioCropModalWindowClose'); }); /*Bubbles var chart, render_vis, display_all, display_year, toggle_view, update; chart = null; render_vis = function(csv) { console.log(csv); chart = new BubbleChart(csv); chart.start(); return chart.display_group_all(); }; update = function(csv) { chart.update_vis(csv); chart.start(); return chart.display_group_all(); }; //d3.csv("data/gates_money_current.csv", render_vis); render_vis(scope.userData.projects); */ document.getElementById('portfolioDropZone').addEventListener("drop", function(event){ event.preventDefault(); console.log(event); if ('dataTransfer' in event) { var files = event.dataTransfer.files; } else if('originalTarget' in event){ var files = event.originalTarget.files; }else if('target' in event){ var files = event.target.files; }else{ var files = event.files; }; for(var i=0; i<files.length; i++){ scope.uploads.push([ms.sealer("portfolio" + i, files[i].name), files]); }; }, false); //3 document.getElementById('portfolioDrop').addEventListener("change", function(event){ event.preventDefault(); if ('dataTransfer' in event) { var files = event.dataTransfer.files; } else if('originalTarget' in event){ var files = event.originalTarget.files; }else if('target' in event){ var files = event.target.files; }else{ var files = event.files; }; console.log(files); for(var i=0; i<files.length; i++){ scope.uploads.push([ms.sealer("portfolio" + i, files[i].name), files]); }; }, false); upload.listenOnInput(document.getElementById('portfolioDrop')); upload.listenOnDrop(document.getElementById('portfolioDropZone')); scope.changeData = function(expressionArg) { scope.filteredProjects = filterFilter(scope.userData.projects, function(value, index){ if(value.status == expressionArg){ return true }; }); }; /*scope.changeData = function(value) { if (value == "Current Projects") { d3.csv("data/gates_money_current.csv", update); scope.controllerPlaceholder = false; } else if (value == "Portfolio"){ if (scope.controllerPlaceholder) { chart.display_group_all(); }else{ d3.csv("data/gates_money.csv", update); scope.controllerPlaceholder = true; } } else{ chart.display_by_year(); } };*/ } }; });
DaganRead/huntingApp
public/directives/portfolioDirective.js
JavaScript
gpl-2.0
5,479
<?php //webapplication $args=array( 'post_type'=>'webapp', 'post_per_pages'=>-1, ); $webapp=get_posts($args); ?> <section id="about"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <h2 class="section-heading"><?php the_field('aboutheading','options'); ?></h2> <h3 class="section-subheading text-muted"><?php the_field('aboutsubheading','options')?></h3> </div> </div> <div class="row"> <?php foreach($webapp as $webapps):?> <div class="col-md-6"> <h4><?php echo get_the_title($webapps->ID); ?></h4> <p><?php the_field('web_descritpion',$webapps->ID); ?></p> </div> <div class="col-md-6"> <?php the_field('tech_heading',$webapps->ID);?> <?php if(have_rows('technologies',$webapps->ID)): ?> <?php while(have_rows('technologies',$webapps->ID)):the_row();?> <h6><?php the_sub_field('name',$webapps->ID);?></h6> <div class="progress"> <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%"> <span class="sr-only">100% Complete</span> </div> </div> <?php endwhile; endif;?> </div> <?php endforeach;?> </div> </div> </section>
jabrankhalil/websolution
wp-content/themes/businesstheme/part/about.php
PHP
gpl-2.0
1,651
<?php /** * * @package editor_of_attachments * @copyright (c) 2014 Татьяна5 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * */ namespace tatiana5\editor_of_attachments; /** * Main extension class for this extension. */ class ext extends \phpbb\extension\base { }
Tatiana5/Editor-of-attachments
ext.php
PHP
gpl-2.0
310
<html> <head> <title>NightwatchJS Renderer</title> <script src="../js/nightwatch.js"></script> </head> </html>
vvscode/js--nightwatch-recorder
public/views/nightwatch.html
HTML
gpl-2.0
123
/******************************************************************** KWin - the KDE window manager This file is part of the KDE project. Copyright (C) 2012, 2013 Martin Gräßlin <mgraesslin@kde.org> This program 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 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. *********************************************************************/ #ifndef KWIN_XCB_UTILS_H #define KWIN_XCB_UTILS_H #include <kwinglobals.h> #include "main.h" #include <QRect> #include <QRegion> #include <QScopedPointer> #include <QVector> #include <xcb/xcb.h> #include <xcb/composite.h> #include <xcb/randr.h> #include <xcb/shm.h> class TestXcbSizeHints; namespace KWin { template <typename T> using ScopedCPointer = QScopedPointer<T, QScopedPointerPodDeleter>; namespace Xcb { typedef xcb_window_t WindowId; // forward declaration of methods static void defineCursor(xcb_window_t window, xcb_cursor_t cursor); static void setInputFocus(xcb_window_t window, uint8_t revertTo = XCB_INPUT_FOCUS_POINTER_ROOT, xcb_timestamp_t time = xTime()); static void moveWindow(xcb_window_t window, const QPoint &pos); static void moveWindow(xcb_window_t window, uint32_t x, uint32_t y); static void lowerWindow(xcb_window_t window); static void selectInput(xcb_window_t window, uint32_t events); /** * @brief Variadic template to wrap an xcb request. * * This struct is part of the generic implementation to wrap xcb requests * and fetching their reply. Each request is represented by two templated * elements: WrapperData and Wrapper. * * The WrapperData defines the following types: * @li reply_type of the xcb request * @li cookie_type of the xcb request * @li function pointer type for the xcb request * @li function pointer type for the reply * This uses variadic template arguments thus it can be used to specify any * xcb request. * * As the WrapperData does not specify the actual function pointers one needs * to derive another struct which specifies the function pointer requestFunc and * the function pointer replyFunc as static constexpr of type reply_func and * reply_type respectively. E.g. for the command xcb_get_geometry: * @code * struct GeometryData : public WrapperData< xcb_get_geometry_reply_t, xcb_get_geometry_cookie_t, xcb_drawable_t > * { * static constexpr request_func requestFunc = &xcb_get_geometry_unchecked; * static constexpr reply_func replyFunc = &xcb_get_geometry_reply; * }; * @endcode * * To simplify this definition the macro XCB_WRAPPER_DATA is provided. * For the same xcb command this looks like this: * @code * XCB_WRAPPER_DATA(GeometryData, xcb_get_geometry, xcb_drawable_t) * @endcode * * The derived WrapperData has to be passed as first template argument to Wrapper. The other * template arguments of Wrapper are the same variadic template arguments as passed into * WrapperData. This is ensured at compile time and will cause a compile error in case there * is a mismatch of the variadic template arguments passed to WrapperData and Wrapper. * Passing another type than a struct derived from WrapperData to Wrapper will result in a * compile error. The following code snippets won't compile: * @code * XCB_WRAPPER_DATA(GeometryData, xcb_get_geometry, xcb_drawable_t) * // fails with "static assertion failed: Argument miss-match between Wrapper and WrapperData" * class IncorrectArguments : public Wrapper<GeometryData, uint8_t> * { * public: * IncorrectArguments() = default; * IncorrectArguments(xcb_window_t window) : Wrapper<GeometryData, uint8_t>(window) {} * }; * * // fails with "static assertion failed: Data template argument must be derived from WrapperData" * class WrapperDataDirectly : public Wrapper<WrapperData<xcb_get_geometry_reply_t, xcb_get_geometry_request_t, xcb_drawable_t>, xcb_drawable_t> * { * public: * WrapperDataDirectly() = default; * WrapperDataDirectly(xcb_window_t window) : Wrapper<WrapperData<xcb_get_geometry_reply_t, xcb_get_geometry_request_t, xcb_drawable_t>, xcb_drawable_t>(window) {} * }; * * // fails with "static assertion failed: Data template argument must be derived from WrapperData" * struct FakeWrapperData * { * typedef xcb_get_geometry_reply_t reply_type; * typedef xcb_get_geometry_cookie_t cookie_type; * typedef std::tuple<xcb_drawable_t> argument_types; * typedef cookie_type (*request_func)(xcb_connection_t*, xcb_drawable_t); * typedef reply_type *(*reply_func)(xcb_connection_t*, cookie_type, xcb_generic_error_t**); * static constexpr std::size_t argumentCount = 1; * static constexpr request_func requestFunc = &xcb_get_geometry_unchecked; * static constexpr reply_func replyFunc = &xcb_get_geometry_reply; * }; * class NotDerivedFromWrapperData : public Wrapper<FakeWrapperData, xcb_drawable_t> * { * public: * NotDerivedFromWrapperData() = default; * NotDerivedFromWrapperData(xcb_window_t window) : Wrapper<FakeWrapperData, xcb_drawable_t>(window) {} * }; * @endcode * * The Wrapper provides an easy to use RAII API which calls the WrapperData's requestFunc in * the ctor and fetches the reply the first time it is used. In addition the dtor takes care * of freeing the reply if it got fetched, otherwise it discards the reply. The Wrapper can * be used as if it were the reply_type directly. * * There are several command wrappers defined which either subclass Wrapper to add methods to * simplify the usage of the result_type or use a typedef. To add a new typedef one can use the * macro XCB_WRAPPER which creates the WrapperData struct as XCB_WRAPPER_DATA does and the * typedef. E.g: * @code * XCB_WRAPPER(Geometry, xcb_get_geometry, xcb_drawable_t) * @endcode * * creates a typedef Geometry and the struct GeometryData. * * Overall this allows to simplify the Xcb usage. For example consider the * following xcb code snippet: * @code * xcb_window_t w; // some window * xcb_connection_t *c = connection(); * const xcb_get_geometry_cookie_t cookie = xcb_get_geometry_unchecked(c, w); * // do other stuff * xcb_get_geometry_reply_t *reply = xcb_get_geometry_reply(c, cookie, nullptr); * if (reply) { * reply->x; // do something with the geometry * } * free(reply); * @endcode * * With the help of the Wrapper class this can be simplified to: * @code * xcb_window_t w; // some window * Xcb::Geometry geo(w); * if (!geo.isNull()) { * geo->x; // do something with the geometry * } * @endcode * * @see XCB_WRAPPER_DATA * @see XCB_WRAPPER * @see Wrapper * @see WindowAttributes * @see OverlayWindow * @see WindowGeometry * @see Tree * @see CurrentInput * @see TransientFor */ template <typename Reply, typename Cookie, typename... Args> struct WrapperData { /** * @brief The type returned by the xcb reply function. */ typedef Reply reply_type; /** * @brief The type returned by the xcb request function. */ typedef Cookie cookie_type; /** * @brief Variadic arguments combined as a std::tuple. * @internal Used for verifying the arguments. */ typedef std::tuple<Args...> argument_types; /** * @brief The function pointer definition for the xcb request function. */ typedef Cookie (*request_func)(xcb_connection_t*, Args...); /** * @brief The function pointer definition for the xcb reply function. */ typedef Reply *(*reply_func)(xcb_connection_t*, Cookie, xcb_generic_error_t**); /** * @brief Number of variadic arguments. * @internal Used for verifying the arguments. */ static constexpr std::size_t argumentCount = sizeof...(Args); }; /** * @brief Partial template specialization for WrapperData with no further arguments. * * This will be used for xcb requests just taking the xcb_connection_t* argument. **/ template <typename Reply, typename Cookie> struct WrapperData<Reply, Cookie> { typedef Reply reply_type; typedef Cookie cookie_type; typedef std::tuple<> argument_types; typedef Cookie (*request_func)(xcb_connection_t*); typedef Reply *(*reply_func)(xcb_connection_t*, Cookie, xcb_generic_error_t**); static constexpr std::size_t argumentCount = 0; }; /** * @brief Abstract base class for the wrapper. * * This class contains the complete functionality of the Wrapper. It's only an abstract * base class to provide partial template specialization for more specific constructors. */ template<typename Data> class AbstractWrapper { public: typedef typename Data::cookie_type Cookie; typedef typename Data::reply_type Reply; virtual ~AbstractWrapper() { cleanup(); } inline AbstractWrapper &operator=(const AbstractWrapper &other) { if (this != &other) { // if we had managed a reply, free it cleanup(); // copy members m_retrieved = other.m_retrieved; m_cookie = other.m_cookie; m_window = other.m_window; m_reply = other.m_reply; // take over the responsibility for the reply pointer takeFromOther(const_cast<AbstractWrapper&>(other)); } return *this; } inline const Reply *operator->() { getReply(); return m_reply; } inline bool isNull() { getReply(); return m_reply == NULL; } inline bool isNull() const { const_cast<AbstractWrapper*>(this)->getReply(); return m_reply == NULL; } inline operator bool() { return !isNull(); } inline operator bool() const { return !isNull(); } inline const Reply *data() { getReply(); return m_reply; } inline const Reply *data() const { const_cast<AbstractWrapper*>(this)->getReply(); return m_reply; } inline WindowId window() const { return m_window; } inline bool isRetrieved() const { return m_retrieved; } /** * Returns the value of the reply pointer referenced by this object. The reply pointer of * this object will be reset to null. Calling any method which requires the reply to be valid * will crash. * * Callers of this function take ownership of the pointer. **/ inline Reply *take() { getReply(); Reply *ret = m_reply; m_reply = NULL; m_window = XCB_WINDOW_NONE; return ret; } protected: AbstractWrapper() : m_retrieved(false) , m_window(XCB_WINDOW_NONE) , m_reply(NULL) { m_cookie.sequence = 0; } explicit AbstractWrapper(WindowId window, Cookie cookie) : m_retrieved(false) , m_cookie(cookie) , m_window(window) , m_reply(NULL) { } explicit AbstractWrapper(const AbstractWrapper &other) : m_retrieved(other.m_retrieved) , m_cookie(other.m_cookie) , m_window(other.m_window) , m_reply(NULL) { takeFromOther(const_cast<AbstractWrapper&>(other)); } void getReply() { if (m_retrieved || !m_cookie.sequence) { return; } m_reply = Data::replyFunc(connection(), m_cookie, nullptr); m_retrieved = true; } private: inline void cleanup() { if (!m_retrieved && m_cookie.sequence) { xcb_discard_reply(connection(), m_cookie.sequence); } else if (m_reply) { free(m_reply); } } inline void takeFromOther(AbstractWrapper &other) { if (m_retrieved) { m_reply = other.take(); } else { //ensure that other object doesn't try to get the reply or discards it in the dtor other.m_retrieved = true; other.m_window = XCB_WINDOW_NONE; } } bool m_retrieved; Cookie m_cookie; WindowId m_window; Reply *m_reply; }; /** * @brief Template to compare the arguments of two std::tuple. * * @internal Used by static_assert in Wrapper */ template <typename T1, typename T2, std::size_t I> struct tupleCompare { typedef typename std::tuple_element<I, T1>::type tuple1Type; typedef typename std::tuple_element<I, T2>::type tuple2Type; /** * @c true if both tuple have the same arguments, @c false otherwise. * */ static constexpr bool value = std::is_same< tuple1Type, tuple2Type >::value && tupleCompare<T1, T2, I-1>::value; }; /** * @brief Recursive template case for first tuple element. */ template <typename T1, typename T2> struct tupleCompare<T1, T2, 0> { typedef typename std::tuple_element<0, T1>::type tuple1Type; typedef typename std::tuple_element<0, T2>::type tuple2Type; static constexpr bool value = std::is_same< tuple1Type, tuple2Type >::value; }; /** * @brief Wrapper taking a WrapperData as first template argument and xcb request args as variadic args. */ template<typename Data, typename... Args> class Wrapper : public AbstractWrapper<Data> { public: static_assert(!std::is_same<Data, Xcb::WrapperData<typename Data::reply_type, typename Data::cookie_type, Args...> >::value, "Data template argument must be derived from WrapperData"); static_assert(std::is_base_of<Xcb::WrapperData<typename Data::reply_type, typename Data::cookie_type, Args...>, Data>::value, "Data template argument must be derived from WrapperData"); static_assert(sizeof...(Args) == Data::argumentCount, "Wrapper and WrapperData need to have same template argument count"); static_assert(tupleCompare<std::tuple<Args...>, typename Data::argument_types, sizeof...(Args) - 1>::value, "Argument miss-match between Wrapper and WrapperData"); Wrapper() = default; explicit Wrapper(Args... args) : AbstractWrapper<Data>(XCB_WINDOW_NONE, Data::requestFunc(connection(), args...)) { } explicit Wrapper(xcb_window_t w, Args... args) : AbstractWrapper<Data>(w, Data::requestFunc(connection(), args...)) { } }; /** * @brief Template specialization for xcb_window_t being first variadic argument. **/ template<typename Data, typename... Args> class Wrapper<Data, xcb_window_t, Args...> : public AbstractWrapper<Data> { public: static_assert(!std::is_same<Data, Xcb::WrapperData<typename Data::reply_type, typename Data::cookie_type, xcb_window_t, Args...> >::value, "Data template argument must be derived from WrapperData"); static_assert(std::is_base_of<Xcb::WrapperData<typename Data::reply_type, typename Data::cookie_type, xcb_window_t, Args...>, Data>::value, "Data template argument must be derived from WrapperData"); static_assert(sizeof...(Args) + 1 == Data::argumentCount, "Wrapper and WrapperData need to have same template argument count"); static_assert(tupleCompare<std::tuple<xcb_window_t, Args...>, typename Data::argument_types, sizeof...(Args)>::value, "Argument miss-match between Wrapper and WrapperData"); Wrapper() = default; explicit Wrapper(xcb_window_t w, Args... args) : AbstractWrapper<Data>(w, Data::requestFunc(connection(), w, args...)) { } }; /** * @brief Template specialization for no variadic arguments. * * It's needed to prevent ambiguous constructors being generated. **/ template<typename Data> class Wrapper<Data> : public AbstractWrapper<Data> { public: static_assert(!std::is_same<Data, Xcb::WrapperData<typename Data::reply_type, typename Data::cookie_type> >::value, "Data template argument must be derived from WrapperData"); static_assert(std::is_base_of<Xcb::WrapperData<typename Data::reply_type, typename Data::cookie_type>, Data>::value, "Data template argument must be derived from WrapperData"); static_assert(Data::argumentCount == 0, "Wrapper for no arguments constructed with WrapperData with arguments"); explicit Wrapper() : AbstractWrapper<Data>(XCB_WINDOW_NONE, Data::requestFunc(connection())) { } }; class Atom { public: explicit Atom(const QByteArray &name, bool onlyIfExists = false, xcb_connection_t *c = connection()) : m_connection(c) , m_retrieved(false) , m_cookie(xcb_intern_atom_unchecked(m_connection, onlyIfExists, name.length(), name.constData())) , m_atom(XCB_ATOM_NONE) , m_name(name) { } Atom() = delete; Atom(const Atom &) = delete; ~Atom() { if (!m_retrieved && m_cookie.sequence) { xcb_discard_reply(m_connection, m_cookie.sequence); } } operator xcb_atom_t() const { (const_cast<Atom*>(this))->getReply(); return m_atom; } bool isValid() { getReply(); return m_atom != XCB_ATOM_NONE; } bool isValid() const { (const_cast<Atom*>(this))->getReply(); return m_atom != XCB_ATOM_NONE; } inline const QByteArray &name() const { return m_name; } private: void getReply() { if (m_retrieved || !m_cookie.sequence) { return; } ScopedCPointer<xcb_intern_atom_reply_t> reply(xcb_intern_atom_reply(m_connection, m_cookie, nullptr)); if (!reply.isNull()) { m_atom = reply->atom; } m_retrieved = true; } xcb_connection_t *m_connection; bool m_retrieved; xcb_intern_atom_cookie_t m_cookie; xcb_atom_t m_atom; QByteArray m_name; }; /** * @brief Macro to create the WrapperData subclass. * * Creates a struct with name @p __NAME__ for the xcb request identified by @p __REQUEST__. * The variadic arguments are used to pass as template arguments to the WrapperData. * * The @p __REQUEST__ is the common prefix of the cookie type, reply type, request function and * reply function. E.g. "xcb_get_geometry" is used to create: * @li cookie type xcb_get_geometry_cookie_t * @li reply type xcb_get_geometry_reply_t * @li request function pointer xcb_get_geometry_unchecked * @li reply function pointer xcb_get_geometry_reply * * @param __NAME__ The name of the WrapperData subclass * @param __REQUEST__ The name of the xcb request, e.g. xcb_get_geometry * @param __VA_ARGS__ The variadic template arguments, e.g. xcb_drawable_t * @see XCB_WRAPPER **/ #define XCB_WRAPPER_DATA( __NAME__, __REQUEST__, ... ) \ struct __NAME__ : public WrapperData< __REQUEST__##_reply_t, __REQUEST__##_cookie_t, __VA_ARGS__ > \ { \ static constexpr request_func requestFunc = &__REQUEST__##_unchecked; \ static constexpr reply_func replyFunc = &__REQUEST__##_reply; \ }; /** * @brief Macro to create Wrapper typedef and WrapperData. * * This macro expands the XCB_WRAPPER_DATA macro and creates an additional * typedef for Wrapper with name @p __NAME__. The created WrapperData is also derived * from @p __NAME__ with "Data" as suffix. * * @param __NAME__ The name for the Wrapper typedef * @param __REQUEST__ The name of the xcb request, passed to XCB_WRAPPER_DATA * @param __VA_ARGS__ The variadic template arguments for Wrapper and WrapperData * @see XCB_WRAPPER_DATA **/ #define XCB_WRAPPER( __NAME__, __REQUEST__, ... ) \ XCB_WRAPPER_DATA( __NAME__##Data, __REQUEST__, __VA_ARGS__ ) \ typedef Wrapper< __NAME__##Data, __VA_ARGS__ > __NAME__; XCB_WRAPPER(WindowAttributes, xcb_get_window_attributes, xcb_window_t) XCB_WRAPPER(OverlayWindow, xcb_composite_get_overlay_window, xcb_window_t) XCB_WRAPPER_DATA(GeometryData, xcb_get_geometry, xcb_drawable_t) class WindowGeometry : public Wrapper<GeometryData, xcb_window_t> { public: WindowGeometry() : Wrapper<GeometryData, xcb_window_t>() {} explicit WindowGeometry(xcb_window_t window) : Wrapper<GeometryData, xcb_window_t>(window) {} inline QRect rect() { const xcb_get_geometry_reply_t *geometry = data(); if (!geometry) { return QRect(); } return QRect(geometry->x, geometry->y, geometry->width, geometry->height); } }; XCB_WRAPPER_DATA(TreeData, xcb_query_tree, xcb_window_t) class Tree : public Wrapper<TreeData, xcb_window_t> { public: explicit Tree(WindowId window) : Wrapper<TreeData, xcb_window_t>(window) {} inline WindowId *children() { if (isNull() || data()->children_len == 0) { return nullptr; } return xcb_query_tree_children(data()); } inline xcb_window_t parent() { if (isNull()) return XCB_WINDOW_NONE; return (*this)->parent; } }; XCB_WRAPPER(Pointer, xcb_query_pointer, xcb_window_t) struct CurrentInputData : public WrapperData< xcb_get_input_focus_reply_t, xcb_get_input_focus_cookie_t > { static constexpr request_func requestFunc = &xcb_get_input_focus_unchecked; static constexpr reply_func replyFunc = &xcb_get_input_focus_reply; }; class CurrentInput : public Wrapper<CurrentInputData> { public: CurrentInput() : Wrapper<CurrentInputData>() {} inline xcb_window_t window() { if (isNull()) return XCB_WINDOW_NONE; return (*this)->focus; } }; struct QueryKeymapData : public WrapperData< xcb_query_keymap_reply_t, xcb_query_keymap_cookie_t > { static constexpr request_func requestFunc = &xcb_query_keymap_unchecked; static constexpr reply_func replyFunc = &xcb_query_keymap_reply; }; class QueryKeymap : public Wrapper<QueryKeymapData> { public: QueryKeymap() : Wrapper<QueryKeymapData>() {} }; struct ModifierMappingData : public WrapperData< xcb_get_modifier_mapping_reply_t, xcb_get_modifier_mapping_cookie_t > { static constexpr request_func requestFunc = &xcb_get_modifier_mapping_unchecked; static constexpr reply_func replyFunc = &xcb_get_modifier_mapping_reply; }; class ModifierMapping : public Wrapper<ModifierMappingData> { public: ModifierMapping() : Wrapper<ModifierMappingData>() {} inline xcb_keycode_t *keycodes() { if (isNull()) { return nullptr; } return xcb_get_modifier_mapping_keycodes(data()); } inline int size() { if (isNull()) { return 0; } return xcb_get_modifier_mapping_keycodes_length(data()); } }; XCB_WRAPPER_DATA(PropertyData, xcb_get_property, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t) class Property : public Wrapper<PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t> { public: Property() : Wrapper<PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t>() , m_type(XCB_ATOM_NONE) { } Property(const Property &other) : Wrapper<PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t>(other) , m_type(other.m_type) { } explicit Property(uint8_t _delete, xcb_window_t window, xcb_atom_t property, xcb_atom_t type, uint32_t long_offset, uint32_t long_length) : Wrapper<PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t>(window, _delete, window, property, type, long_offset, long_length) , m_type(type) { } Property &operator=(const Property &other) { Wrapper<PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t>::operator=(other); m_type = other.m_type; return *this; } /** * @brief Overloaded method for convenience. * * Uses the type which got passed into the ctor and derives the format from the sizeof(T). * Note: for the automatic format detection the size of the type T may not vary between * architectures. Thus one needs to use e.g. uint32_t instead of long. In general all xcb * data types can be used, all Xlib data types can not be used. * * @param defaultValue The default value to return in case of error * @param ok Set to @c false in case of error, @c true in case of success * @return The read value or @p defaultValue in error case */ template <typename T> inline typename std::enable_if<!std::is_pointer<T>::value, T>::type value(T defaultValue = T(), bool *ok = nullptr) { return value<T>(sizeof(T) * 8, m_type, defaultValue, ok); } /** * @brief Reads the property as a POD type. * * Returns the first value of the property data. In case of @p format or @p type mismatch * the @p defaultValue is returned. The optional argument @p ok is set * to @c false in case of error and to @c true in case of successful reading of * the property. * * @param format The expected format of the property value, e.g. 32 for XCB_ATOM_CARDINAL * @param type The expected type of the property value, e.g. XCB_ATOM_CARDINAL * @param defaultValue The default value to return in case of error * @param ok Set to @c false in case of error, @c true in case of success * @return The read value or @p defaultValue in error case **/ template <typename T> inline typename std::enable_if<!std::is_pointer<T>::value, T>::type value(uint8_t format, xcb_atom_t type, T defaultValue = T(), bool *ok = nullptr) { T *reply = value<T*>(format, type, nullptr, ok); if (!reply) { return defaultValue; } return reply[0]; } /** * @brief Overloaded method for convenience. * * Uses the type which got passed into the ctor and derives the format from the sizeof(T). * Note: for the automatic format detection the size of the type T may not vary between * architectures. Thus one needs to use e.g. uint32_t instead of long. In general all xcb * data types can be used, all Xlib data types can not be used. * * @param defaultValue The default value to return in case of error * @param ok Set to @c false in case of error, @c true in case of success * @return The read value or @p defaultValue in error case */ template <typename T> inline typename std::enable_if<std::is_pointer<T>::value, T>::type value(T defaultValue = nullptr, bool *ok = nullptr) { return value<T>(sizeof(typename std::remove_pointer<T>::type) * 8, m_type, defaultValue, ok); } /** * @brief Reads the property as an array of T. * * This method is an overload for the case that T is a pointer type. * * Return the property value casted to the pointer type T. In case of @p format * or @p type mismatch the @p defaultValue is returned. Also if the value length * is @c 0 the @p defaultValue is returned. The optional argument @p ok is set * to @c false in case of error and to @c true in case of successful reading of * the property. Ok will always be true if the property exists and has been * successfully read, even in the case the property is empty and its length is 0 * * @param format The expected format of the property value, e.g. 32 for XCB_ATOM_CARDINAL * @param type The expected type of the property value, e.g. XCB_ATOM_CARDINAL * @param defaultValue The default value to return in case of error * @param ok Set to @c false in case of error, @c true in case of success * @return The read value or @p defaultValue in error case **/ template <typename T> inline typename std::enable_if<std::is_pointer<T>::value, T>::type value(uint8_t format, xcb_atom_t type, T defaultValue = nullptr, bool *ok = nullptr) { if (ok) { *ok = false; } const PropertyData::reply_type *reply = data(); if (!reply) { return defaultValue; } if (reply->type != type) { return defaultValue; } if (reply->format != format) { return defaultValue; } if (ok) { *ok = true; } if (xcb_get_property_value_length(reply) == 0) { return defaultValue; } return reinterpret_cast<T>(xcb_get_property_value(reply)); } /** * @brief Reads the property as string and returns a QByteArray. * * In case of error this method returns a null QByteArray. **/ inline QByteArray toByteArray(uint8_t format = 8, xcb_atom_t type = XCB_ATOM_STRING, bool *ok = nullptr) { bool valueOk = false; const char *reply = value<const char*>(format, type, nullptr, &valueOk); if (ok) { *ok = valueOk; } if (valueOk && !reply) { return QByteArray("", 0); // valid, not null, but empty data } else if (!valueOk) { return QByteArray(); // Property not found, data empty and null } return QByteArray(reply, xcb_get_property_value_length(data())); } /** * @brief Overloaded method for convenience. **/ inline QByteArray toByteArray(bool *ok) { return toByteArray(8, m_type, ok); } /** * @brief Reads the property as a boolean value. * * If the property reply length is @c 1 the first element is interpreted as a boolean * value returning @c true for any value unequal to @c 0 and @c false otherwise. * * In case of error this method returns @c false. Thus it is not possible to distinguish * between error case and a read @c false value. Use the optional argument @p ok to * distinguish the error case. * * @param format Expected format. Defaults to 32. * @param type Expected type Defaults to XCB_ATOM_CARDINAL. * @param ok Set to @c false in case of error, @c true in case of success * @return bool The first element interpreted as a boolean value or @c false in error case * @see value */ inline bool toBool(uint8_t format = 32, xcb_atom_t type = XCB_ATOM_CARDINAL, bool *ok = nullptr) { bool *reply = value<bool*>(format, type, nullptr, ok); if (!reply) { return false; } if (data()->value_len != 1) { if (ok) { *ok = false; } return false; } return reply[0] != 0; } /** * @brief Overloaded method for convenience. **/ inline bool toBool(bool *ok) { return toBool(32, m_type, ok); } private: xcb_atom_t m_type; }; class StringProperty : public Property { public: StringProperty() = default; explicit StringProperty(xcb_window_t w, xcb_atom_t p) : Property(false, w, p, XCB_ATOM_STRING, 0, 10000) { } operator QByteArray() { return toByteArray(); } }; class TransientFor : public Property { public: explicit TransientFor(WindowId window) : Property(0, window, XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 0, 1) { } /** * @brief Fill given window pointer with the WM_TRANSIENT_FOR property of a window. * @param prop WM_TRANSIENT_FOR property value. * @returns @c true on success, @c false otherwise **/ inline bool getTransientFor(WindowId *prop) { WindowId *windows = value<WindowId*>(); if (!windows) { return false; } *prop = *windows; return true; } }; class GeometryHints { public: GeometryHints() = default; void init(xcb_window_t window) { Q_ASSERT(window); if (m_window) { // already initialized return; } m_window = window; fetch(); } void fetch() { if (!m_window) { return; } m_sizeHints = nullptr; m_hints = NormalHints(m_window); } void read() { m_sizeHints = m_hints.sizeHints(); } bool hasPosition() const { return testFlag(NormalHints::SizeHints::UserPosition) || testFlag(NormalHints::SizeHints::ProgramPosition); } bool hasSize() const { return testFlag(NormalHints::SizeHints::UserSize) || testFlag(NormalHints::SizeHints::ProgramSize); } bool hasMinSize() const { return testFlag(NormalHints::SizeHints::MinSize); } bool hasMaxSize() const { return testFlag(NormalHints::SizeHints::MaxSize); } bool hasResizeIncrements() const { return testFlag(NormalHints::SizeHints::ResizeIncrements); } bool hasAspect() const { return testFlag(NormalHints::SizeHints::Aspect); } bool hasBaseSize() const { return testFlag(NormalHints::SizeHints::BaseSize); } bool hasWindowGravity() const { return testFlag(NormalHints::SizeHints::WindowGravity); } QSize maxSize() const { if (!hasMaxSize()) { return QSize(INT_MAX, INT_MAX); } return QSize(qMax(m_sizeHints->maxWidth, 1), qMax(m_sizeHints->maxHeight, 1)); } QSize minSize() const { if (!hasMinSize()) { // according to ICCCM 4.1.23 base size should be used as a fallback return baseSize(); } return QSize(m_sizeHints->minWidth, m_sizeHints->minHeight); } QSize baseSize() const { // Note: not using minSize as fallback if (!hasBaseSize()) { return QSize(0, 0); } return QSize(m_sizeHints->baseWidth, m_sizeHints->baseHeight); } QSize resizeIncrements() const { if (!hasResizeIncrements()) { return QSize(1, 1); } return QSize(qMax(m_sizeHints->widthInc, 1), qMax(m_sizeHints->heightInc, 1)); } xcb_gravity_t windowGravity() const { if (!hasWindowGravity()) { return XCB_GRAVITY_NORTH_WEST; } return xcb_gravity_t(m_sizeHints->winGravity); } QSize minAspect() const { if (!hasAspect()) { return QSize(1, INT_MAX); } // prevent devision by zero return QSize(m_sizeHints->minAspect[0], qMax(m_sizeHints->minAspect[1], 1)); } QSize maxAspect() const { if (!hasAspect()) { return QSize(INT_MAX, 1); } // prevent devision by zero return QSize(m_sizeHints->maxAspect[0], qMax(m_sizeHints->maxAspect[1], 1)); } private: /** * NormalHints as specified in ICCCM 4.1.2.3. **/ class NormalHints : public Property { public: struct SizeHints { enum Flags { UserPosition = 1, UserSize = 2, ProgramPosition = 4, ProgramSize = 8, MinSize = 16, MaxSize = 32, ResizeIncrements = 64, Aspect = 128, BaseSize = 256, WindowGravity = 512 }; qint32 flags = 0; qint32 pad[4] = {0, 0, 0, 0}; qint32 minWidth = 0; qint32 minHeight = 0; qint32 maxWidth = 0; qint32 maxHeight = 0; qint32 widthInc = 0; qint32 heightInc = 0; qint32 minAspect[2] = {0, 0}; qint32 maxAspect[2] = {0, 0}; qint32 baseWidth = 0; qint32 baseHeight = 0; qint32 winGravity = 0; }; explicit NormalHints() : Property() {}; explicit NormalHints(WindowId window) : Property(0, window, XCB_ATOM_WM_NORMAL_HINTS, XCB_ATOM_WM_SIZE_HINTS, 0, 18) { } inline SizeHints *sizeHints() { return value<SizeHints*>(32, XCB_ATOM_WM_SIZE_HINTS, nullptr); } }; friend TestXcbSizeHints; bool testFlag(NormalHints::SizeHints::Flags flag) const { if (!m_window || !m_sizeHints) { return false; } return m_sizeHints->flags & flag; } xcb_window_t m_window = XCB_WINDOW_NONE; NormalHints m_hints; NormalHints::SizeHints *m_sizeHints = nullptr; }; class MotifHints { public: MotifHints(xcb_atom_t atom) : m_atom(atom) {} void init(xcb_window_t window) { Q_ASSERT(window); if (m_window) { // already initialized return; } m_window = window; fetch(); } void fetch() { if (!m_window) { return; } m_hints = nullptr; m_prop = Property(0, m_window, m_atom, m_atom, 0, 5); } void read() { m_hints = m_prop.value<MwmHints*>(32, m_atom, nullptr); } bool hasDecoration() const { if (!m_window || !m_hints) { return false; } return m_hints->flags & uint32_t(Hints::Decorations); } bool noBorder() const { if (!hasDecoration()) { return false; } return !m_hints->decorations; } bool resize() const { return testFunction(Functions::Resize); } bool move() const { return testFunction(Functions::Move); } bool minimize() const { return testFunction(Functions::Minimize); } bool maximize() const { return testFunction(Functions::Maximize); } bool close() const { return testFunction(Functions::Close); } private: struct MwmHints { uint32_t flags; uint32_t functions; uint32_t decorations; int32_t input_mode; uint32_t status; }; enum class Hints { Functions = (1L << 0), Decorations = (1L << 1) }; enum class Functions { All = (1L << 0), Resize = (1L << 1), Move = (1L << 2), Minimize = (1L << 3), Maximize = (1L << 4), Close = (1L << 5) }; bool testFunction(Functions flag) const { if (!m_window || !m_hints) { return true; } if (!(m_hints->flags & uint32_t(Hints::Functions))) { return true; } // if MWM_FUNC_ALL is set, other flags say what to turn _off_ const bool set_value = ((m_hints->functions & uint32_t(Functions::All)) == 0); if (m_hints->functions & uint32_t(flag)) { return set_value; } return !set_value; } xcb_window_t m_window = XCB_WINDOW_NONE; Property m_prop; xcb_atom_t m_atom; MwmHints *m_hints = nullptr; }; namespace RandR { XCB_WRAPPER(ScreenInfo, xcb_randr_get_screen_info, xcb_window_t) XCB_WRAPPER_DATA(ScreenResourcesData, xcb_randr_get_screen_resources, xcb_window_t) class ScreenResources : public Wrapper<ScreenResourcesData, xcb_window_t> { public: explicit ScreenResources(WindowId window) : Wrapper<ScreenResourcesData, xcb_window_t>(window) {} inline xcb_randr_crtc_t *crtcs() { if (isNull()) { return nullptr; } return xcb_randr_get_screen_resources_crtcs(data()); } }; XCB_WRAPPER_DATA(CrtcGammaData, xcb_randr_get_crtc_gamma, xcb_randr_crtc_t) class CrtcGamma : public Wrapper<CrtcGammaData, xcb_randr_crtc_t> { public: explicit CrtcGamma(xcb_randr_crtc_t c) : Wrapper<CrtcGammaData, xcb_randr_crtc_t>(c) {} inline uint16_t *red() { return xcb_randr_get_crtc_gamma_red(data()); } inline uint16_t *green() { return xcb_randr_get_crtc_gamma_green(data()); } inline uint16_t *blue() { return xcb_randr_get_crtc_gamma_blue(data()); } }; XCB_WRAPPER_DATA(CrtcInfoData, xcb_randr_get_crtc_info, xcb_randr_crtc_t, xcb_timestamp_t) class CrtcInfo : public Wrapper<CrtcInfoData, xcb_randr_crtc_t, xcb_timestamp_t> { public: CrtcInfo() = default; CrtcInfo(const CrtcInfo&) = default; explicit CrtcInfo(xcb_randr_crtc_t c, xcb_timestamp_t t) : Wrapper<CrtcInfoData, xcb_randr_crtc_t, xcb_timestamp_t>(c, t) {} inline QRect rect() { const CrtcInfoData::reply_type *info = data(); if (!info || info->num_outputs == 0 || info->mode == XCB_NONE || info->status != XCB_RANDR_SET_CONFIG_SUCCESS) { return QRect(); } return QRect(info->x, info->y, info->width, info->height); } }; XCB_WRAPPER_DATA(CurrentResourcesData, xcb_randr_get_screen_resources_current, xcb_window_t) class CurrentResources : public Wrapper<CurrentResourcesData, xcb_window_t> { public: explicit CurrentResources(WindowId window) : Wrapper<CurrentResourcesData, xcb_window_t>(window) {} inline xcb_randr_crtc_t *crtcs() { if (isNull()) { return nullptr; } return xcb_randr_get_screen_resources_current_crtcs(data()); } }; XCB_WRAPPER(SetCrtcConfig, xcb_randr_set_crtc_config, xcb_randr_crtc_t, xcb_timestamp_t, xcb_timestamp_t, int16_t, int16_t, xcb_randr_mode_t, uint16_t, uint32_t, const xcb_randr_output_t*) } class ExtensionData { public: ExtensionData(); int version; int eventBase; int errorBase; int majorOpcode; bool present; QByteArray name; QVector<QByteArray> opCodes; QVector<QByteArray> errorCodes; }; class KWIN_EXPORT Extensions { public: bool isShapeAvailable() const { return m_shape.version > 0; } bool isShapeInputAvailable() const; int shapeNotifyEvent() const; bool hasShape(xcb_window_t w) const; bool isRandrAvailable() const { return m_randr.present; } int randrNotifyEvent() const; bool isDamageAvailable() const { return m_damage.present; } int damageNotifyEvent() const; bool isCompositeAvailable() const { return m_composite.version > 0; } bool isCompositeOverlayAvailable() const; bool isRenderAvailable() const { return m_render.version > 0; } bool isFixesAvailable() const { return m_fixes.version > 0; } int fixesCursorNotifyEvent() const; bool isFixesRegionAvailable() const; bool isSyncAvailable() const { return m_sync.present; } int syncAlarmNotifyEvent() const; QVector<ExtensionData> extensions() const; bool hasGlx() const { return m_glx.present; } int glxEventBase() const { return m_glx.eventBase; } int glxMajorOpcode() const { return m_glx.majorOpcode; } static Extensions *self(); static void destroy(); private: Extensions(); ~Extensions(); void init(); template <typename reply, typename T, typename F> void initVersion(T cookie, F f, ExtensionData *dataToFill); void extensionQueryReply(const xcb_query_extension_reply_t *extension, ExtensionData *dataToFill); ExtensionData m_shape; ExtensionData m_randr; ExtensionData m_damage; ExtensionData m_composite; ExtensionData m_render; ExtensionData m_fixes; ExtensionData m_sync; ExtensionData m_glx; static Extensions *s_self; }; /** * This class is an RAII wrapper for an xcb_window_t. An xcb_window_t hold by an instance of this class * will be freed when the instance gets destroyed. * * Furthermore the class provides wrappers around some xcb methods operating on an xcb_window_t. * * For the cases that one is more interested in wrapping the xcb methods the constructor which takes * an existing window and the @link reset method allow to disable the RAII functionality. **/ class Window { public: /** * Takes over responsibility of @p window. If @p window is not provided an invalid Window is * created. Use @link create to set an xcb_window_t later on. * * If @p destroy is @c true the window will be destroyed together with this object, if @c false * the window will be kept around. This is useful if you are not interested in the RAII capabilities * but still want to use a window like an object. * * @param window The window to manage. * @param destroy Whether the window should be destroyed together with the object. * @see reset **/ Window(xcb_window_t window = XCB_WINDOW_NONE, bool destroy = true); /** * Creates an xcb_window_t and manages it. It's a convenient method to create a window with * depth, class and visual being copied from parent and border being @c 0. * @param geometry The geometry for the window to be created * @param mask The mask for the values * @param values The values to be passed to xcb_create_window * @param parent The parent window **/ Window(const QRect &geometry, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); /** * Creates an xcb_window_t and manages it. It's a convenient method to create a window with * depth and visual being copied from parent and border being @c 0. * @param geometry The geometry for the window to be created * @param class The window class * @param mask The mask for the values * @param values The values to be passed to xcb_create_window * @param parent The parent window **/ Window(const QRect &geometry, uint16_t windowClass, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); Window(const Window &other) = delete; ~Window(); /** * Creates a new window for which the responsibility is taken over. If a window had been managed * before it is freed. * * Depth, class and visual are being copied from parent and border is @c 0. * @param geometry The geometry for the window to be created * @param mask The mask for the values * @param values The values to be passed to xcb_create_window * @param parent The parent window **/ void create(const QRect &geometry, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); /** * Creates a new window for which the responsibility is taken over. If a window had been managed * before it is freed. * * Depth and visual are being copied from parent and border is @c 0. * @param geometry The geometry for the window to be created * @param class The window class * @param mask The mask for the values * @param values The values to be passed to xcb_create_window * @param parent The parent window **/ void create(const QRect &geometry, uint16_t windowClass, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); /** * Frees the existing window and starts to manage the new @p window. * If @p destroy is @c true the new managed window will be destroyed together with this * object or when reset is called again. If @p destroy is @c false the window will not * be destroyed. It is then the responsibility of the caller to destroy the window. **/ void reset(xcb_window_t window = XCB_WINDOW_NONE, bool destroy = true); /** * @returns @c true if a window is managed, @c false otherwise. **/ bool isValid() const; /** * Configures the window with a new geometry. * @param geometry The new window geometry to be used **/ void setGeometry(const QRect &geometry); void setGeometry(uint32_t x, uint32_t y, uint32_t width, uint32_t height); void move(const QPoint &pos); void move(uint32_t x, uint32_t y); void resize(const QSize &size); void resize(uint32_t width, uint32_t height); void raise(); void lower(); void map(); void unmap(); void reparent(xcb_window_t parent, int x = 0, int y = 0); void changeProperty(xcb_atom_t property, xcb_atom_t type, uint8_t format, uint32_t lenght, const void *data, uint8_t mode = XCB_PROP_MODE_REPLACE); void deleteProperty(xcb_atom_t property); void setBorderWidth(uint32_t width); void grabButton(uint8_t pointerMode, uint8_t keyboardmode, uint16_t modifiers = XCB_MOD_MASK_ANY, uint8_t button = XCB_BUTTON_INDEX_ANY, uint16_t eventMask = XCB_EVENT_MASK_BUTTON_PRESS, xcb_window_t confineTo = XCB_WINDOW_NONE, xcb_cursor_t cursor = XCB_CURSOR_NONE, bool ownerEvents = false); void ungrabButton(uint16_t modifiers = XCB_MOD_MASK_ANY, uint8_t button = XCB_BUTTON_INDEX_ANY); /** * Clears the window area. Same as xcb_clear_area with x, y, width, height being @c 0. **/ void clear(); void setBackgroundPixmap(xcb_pixmap_t pixmap); void defineCursor(xcb_cursor_t cursor); void focus(uint8_t revertTo = XCB_INPUT_FOCUS_POINTER_ROOT, xcb_timestamp_t time = XCB_TIME_CURRENT_TIME); void selectInput(uint32_t events); void kill(); operator xcb_window_t() const; private: xcb_window_t doCreate(const QRect &geometry, uint16_t windowClass, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); void destroy(); xcb_window_t m_window; bool m_destroy; }; inline Window::Window(xcb_window_t window, bool destroy) : m_window(window) , m_destroy(destroy) { } inline Window::Window(const QRect &geometry, uint32_t mask, const uint32_t *values, xcb_window_t parent) : m_window(doCreate(geometry, XCB_COPY_FROM_PARENT, mask, values, parent)) , m_destroy(true) { } inline Window::Window(const QRect &geometry, uint16_t windowClass, uint32_t mask, const uint32_t *values, xcb_window_t parent) : m_window(doCreate(geometry, windowClass, mask, values, parent)) , m_destroy(true) { } inline Window::~Window() { destroy(); } inline void Window::destroy() { if (!isValid() || !m_destroy) { return; } xcb_destroy_window(connection(), m_window); m_window = XCB_WINDOW_NONE; } inline bool Window::isValid() const { return m_window != XCB_WINDOW_NONE; } inline Window::operator xcb_window_t() const { return m_window; } inline void Window::create(const QRect &geometry, uint16_t windowClass, uint32_t mask, const uint32_t *values, xcb_window_t parent) { destroy(); m_window = doCreate(geometry, windowClass, mask, values, parent); } inline void Window::create(const QRect &geometry, uint32_t mask, const uint32_t *values, xcb_window_t parent) { create(geometry, XCB_COPY_FROM_PARENT, mask, values, parent); } inline xcb_window_t Window::doCreate(const QRect &geometry, uint16_t windowClass, uint32_t mask, const uint32_t *values, xcb_window_t parent) { xcb_window_t w = xcb_generate_id(connection()); xcb_create_window(connection(), XCB_COPY_FROM_PARENT, w, parent, geometry.x(), geometry.y(), geometry.width(), geometry.height(), 0, windowClass, XCB_COPY_FROM_PARENT, mask, values); return w; } inline void Window::reset(xcb_window_t window, bool shouldDestroy) { destroy(); m_window = window; m_destroy = shouldDestroy; } inline void Window::setGeometry(const QRect &geometry) { setGeometry(geometry.x(), geometry.y(), geometry.width(), geometry.height()); } inline void Window::setGeometry(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { if (!isValid()) { return; } const uint16_t mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT; const uint32_t values[] = { x, y, width, height }; xcb_configure_window(connection(), m_window, mask, values); } inline void Window::move(const QPoint &pos) { move(pos.x(), pos.y()); } inline void Window::move(uint32_t x, uint32_t y) { if (!isValid()) { return; } moveWindow(m_window, x, y); } inline void Window::resize(const QSize &size) { resize(size.width(), size.height()); } inline void Window::resize(uint32_t width, uint32_t height) { if (!isValid()) { return; } const uint16_t mask = XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT; const uint32_t values[] = { width, height }; xcb_configure_window(connection(), m_window, mask, values); } inline void Window::raise() { const uint32_t values[] = { XCB_STACK_MODE_ABOVE }; xcb_configure_window(connection(), m_window, XCB_CONFIG_WINDOW_STACK_MODE, values); } inline void Window::lower() { lowerWindow(m_window); } inline void Window::map() { if (!isValid()) { return; } xcb_map_window(connection(), m_window); } inline void Window::unmap() { if (!isValid()) { return; } xcb_unmap_window(connection(), m_window); } inline void Window::reparent(xcb_window_t parent, int x, int y) { if (!isValid()) { return; } xcb_reparent_window(connection(), m_window, parent, x, y); } inline void Window::changeProperty(xcb_atom_t property, xcb_atom_t type, uint8_t format, uint32_t lenght, const void *data, uint8_t mode) { if (!isValid()) { return; } xcb_change_property(connection(), mode, m_window, property, type, format, lenght, data); } inline void Window::deleteProperty(xcb_atom_t property) { if (!isValid()) { return; } xcb_delete_property(connection(), m_window, property); } inline void Window::setBorderWidth(uint32_t width) { if (!isValid()) { return; } xcb_configure_window(connection(), m_window, XCB_CONFIG_WINDOW_BORDER_WIDTH, &width); } inline void Window::grabButton(uint8_t pointerMode, uint8_t keyboardmode, uint16_t modifiers, uint8_t button, uint16_t eventMask, xcb_window_t confineTo, xcb_cursor_t cursor, bool ownerEvents) { if (!isValid()) { return; } xcb_grab_button(connection(), ownerEvents, m_window, eventMask, pointerMode, keyboardmode, confineTo, cursor, button, modifiers); } inline void Window::ungrabButton(uint16_t modifiers, uint8_t button) { if (!isValid()) { return; } xcb_ungrab_button(connection(), button, m_window, modifiers); } inline void Window::clear() { if (!isValid()) { return; } xcb_clear_area(connection(), false, m_window, 0, 0, 0, 0); } inline void Window::setBackgroundPixmap(xcb_pixmap_t pixmap) { if (!isValid()) { return; } const uint32_t values[] = {pixmap}; xcb_change_window_attributes(connection(), m_window, XCB_CW_BACK_PIXMAP, values); } inline void Window::defineCursor(xcb_cursor_t cursor) { Xcb::defineCursor(m_window, cursor); } inline void Window::focus(uint8_t revertTo, xcb_timestamp_t time) { setInputFocus(m_window, revertTo, time); } inline void Window::selectInput(uint32_t events) { Xcb::selectInput(m_window, events); } inline void Window::kill() { xcb_kill_client(connection(), m_window); } // helper functions static inline void moveResizeWindow(WindowId window, const QRect &geometry) { const uint16_t mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT; const uint32_t values[] = { static_cast<uint32_t>(geometry.x()), static_cast<uint32_t>(geometry.y()), static_cast<uint32_t>(geometry.width()), static_cast<uint32_t>(geometry.height()) }; xcb_configure_window(connection(), window, mask, values); } static inline void moveWindow(xcb_window_t window, const QPoint& pos) { moveWindow(window, pos.x(), pos.y()); } static inline void moveWindow(xcb_window_t window, uint32_t x, uint32_t y) { const uint16_t mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y; const uint32_t values[] = { x, y }; xcb_configure_window(connection(), window, mask, values); } static inline void lowerWindow(xcb_window_t window) { const uint32_t values[] = { XCB_STACK_MODE_BELOW }; xcb_configure_window(connection(), window, XCB_CONFIG_WINDOW_STACK_MODE, values); } static inline WindowId createInputWindow(const QRect &geometry, uint32_t mask, const uint32_t *values) { WindowId window = xcb_generate_id(connection()); xcb_create_window(connection(), 0, window, rootWindow(), geometry.x(), geometry.y(), geometry.width(), geometry.height(), 0, XCB_WINDOW_CLASS_INPUT_ONLY, XCB_COPY_FROM_PARENT, mask, values); return window; } static inline void restackWindows(const QVector<xcb_window_t> &windows) { if (windows.count() < 2) { // only one window, nothing to do return; } for (int i=1; i<windows.count(); ++i) { const uint16_t mask = XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE; const uint32_t stackingValues[] = { windows.at(i-1), XCB_STACK_MODE_BELOW }; xcb_configure_window(connection(), windows.at(i), mask, stackingValues); } } static inline void restackWindowsWithRaise(const QVector<xcb_window_t> &windows) { if (windows.isEmpty()) { return; } const uint32_t values[] = { XCB_STACK_MODE_ABOVE }; xcb_configure_window(connection(), windows.first(), XCB_CONFIG_WINDOW_STACK_MODE, values); restackWindows(windows); } static inline int defaultDepth() { static int depth = 0; if (depth != 0) { return depth; } int screen = Application::x11ScreenNumber(); for (xcb_screen_iterator_t it = xcb_setup_roots_iterator(xcb_get_setup(connection())); it.rem; --screen, xcb_screen_next(&it)) { if (screen == 0) { depth = it.data->root_depth; break; } } return depth; } static inline xcb_rectangle_t fromQt(const QRect &rect) { xcb_rectangle_t rectangle; rectangle.x = rect.x(); rectangle.y = rect.y(); rectangle.width = rect.width(); rectangle.height = rect.height(); return rectangle; } static inline QVector<xcb_rectangle_t> regionToRects(const QRegion &region) { const QVector<QRect> regionRects = region.rects(); QVector<xcb_rectangle_t> rects(regionRects.count()); for (int i=0; i<regionRects.count(); ++i) { rects[i] = Xcb::fromQt(regionRects.at(i)); } return rects; } static inline void defineCursor(xcb_window_t window, xcb_cursor_t cursor) { xcb_change_window_attributes(connection(), window, XCB_CW_CURSOR, &cursor); } static inline void setInputFocus(xcb_window_t window, uint8_t revertTo, xcb_timestamp_t time) { xcb_set_input_focus(connection(), revertTo, window, time); } static inline void setTransientFor(xcb_window_t window, xcb_window_t transient_for_window) { xcb_change_property(connection(), XCB_PROP_MODE_REPLACE, window, XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 32, 1, &transient_for_window); } static inline void sync() { auto *c = connection(); const auto cookie = xcb_get_input_focus(c); xcb_generic_error_t *error = nullptr; ScopedCPointer<xcb_get_input_focus_reply_t> sync(xcb_get_input_focus_reply(c, cookie, &error)); if (error) { free(error); } } void selectInput(xcb_window_t window, uint32_t events) { xcb_change_window_attributes(connection(), window, XCB_CW_EVENT_MASK, &events); } /** * @brief Small helper class to encapsulate SHM related functionality. * */ class Shm { public: Shm(); ~Shm(); int shmId() const; void *buffer() const; xcb_shm_seg_t segment() const; bool isValid() const; uint8_t pixmapFormat() const; private: bool init(); int m_shmId; void *m_buffer; xcb_shm_seg_t m_segment; bool m_valid; uint8_t m_pixmapFormat; }; inline void *Shm::buffer() const { return m_buffer; } inline bool Shm::isValid() const { return m_valid; } inline xcb_shm_seg_t Shm::segment() const { return m_segment; } inline int Shm::shmId() const { return m_shmId; } inline uint8_t Shm::pixmapFormat() const { return m_pixmapFormat; } } // namespace X11 } // namespace KWin #endif // KWIN_X11_UTILS_H
8l/kwin
xcbutils.h
C
gpl-2.0
59,888
(function(a){a.blockUI.defaults.applyPlatformOpacityRules=false;a.blockUI.defaults.css={};a.blockUI.defaults.overlayCSS={};a.blockUI.defaults.growlCSS={}})(jQuery);
cerebrux/ErgoQPM
pub/System/JQueryPlugin/plugins/blockui/jquery.blockUI.init.js
JavaScript
gpl-2.0
164
<?php /** * Javascript-palvelu pelien listaamiseen * * @package SLS-Kirjasto * @license http://opensource.org/licenses/GPL-2.0 * @author Mauri "mos" Sahlberg * @uses globals.php * @uses database.php * @uses games.php * */ require_once("../globals.php"); require_once("$basepath/helpers/common.php"); $a = array("nimi", "bggrank", "bgglinkki", "kesto", "pelaajia", "vuosi"); $g = new SLSGAMES($db); $j = new JsonGames($a, $g); $jason = $j->tableFetch(); header("Content-type: application/json"); echo json_encode($jason); ?>
daFool/slskirjasto
web/json/json_games.php
PHP
gpl-2.0
537
#ifndef _OS_SELECT_H_ #define _OS_SELECT_H_ 1 /* * Overlay the system select call to handle many more FD's than * an fd_set can hold. * David McCullough <david_mccullough@securecomputing.com> */ #include <sys/select.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> /* * allow build system to override the limit easily */ #ifndef OS_FD_SETSIZE #define OS_FD_SETSIZE 8192 #endif #define OS_NFDBITS (8 * sizeof (long int)) #define OS_FDELT(d) ((d) / OS_NFDBITS) #define OS_FDMASK(d) ((long int) 1 << ((d) % OS_NFDBITS)) #define OS_FD_SETCOUNT ((OS_FD_SETSIZE + OS_NFDBITS - 1) / OS_NFDBITS) typedef struct { long int __osfds_bits[OS_FD_SETCOUNT]; } os_fd_set; #define OS_FDS_BITS(set) ((set)->__osfds_bits) #define OS_FD_ZERO(set) \ do { \ unsigned int __i; \ os_fd_set *__arr = (set); \ for (__i = 0; __i < OS_FD_SETCOUNT; __i++) \ OS_FDS_BITS (__arr)[__i] = 0; \ } while(0) #define OS_FD_SET(d, s) (OS_FDS_BITS (s)[OS_FDELT(d)] |= OS_FDMASK(d)) #define OS_FD_CLR(d, s) (OS_FDS_BITS (s)[OS_FDELT(d)] &= ~OS_FDMASK(d)) #define OS_FD_ISSET(d, s) ((OS_FDS_BITS (s)[OS_FDELT(d)] & OS_FDMASK(d)) != 0) #define os_select(max, r, f, e, t) \ select(max, (fd_set *)(r), (fd_set *)(f), (fd_set *)(e), t) #endif /* _OS_SELECT_H_ */
ZHAW-INES/rioxo-uClinux-dist
openswan/include/os_select.h
C
gpl-2.0
1,282
/* Copyright (C) 2002 Paul Davis This program 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 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __ardour_dialog_h__ #define __ardour_dialog_h__ #include <gtkmm/window.h> #include <gtkmm/dialog.h> #include "ardour/session_handle.h" namespace WM { class ProxyTemporary; } /* * This virtual parent class is so that each dialog box uses the * same mechanism to declare its closing. It shares a common * method of connecting and disconnecting from a Session with * all other objects that have a handle on a Session. */ class ArdourDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr { public: ArdourDialog (std::string title, bool modal = false, bool use_separator = false); ArdourDialog (Gtk::Window& parent, std::string title, bool modal = false, bool use_separator = false); ~ArdourDialog(); bool on_focus_in_event (GdkEventFocus*); bool on_focus_out_event (GdkEventFocus*); bool on_delete_event (GdkEventAny*); void on_unmap (); void on_show (); virtual void on_response (int); protected: void pop_splash (); void close_self (); private: WM::ProxyTemporary* proxy; bool _splash_pushed; void init (); static sigc::signal<void> CloseAllDialogs; }; #endif // __ardour_dialog_h__
johannes-mueller/ardour
gtk2_ardour/ardour_dialog.h
C
gpl-2.0
1,874
/* * linux/include/linux/cpufreq.h * * Copyright (C) 2001 Russell King * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _LINUX_CPUFREQ_H #define _LINUX_CPUFREQ_H #include <linux/mutex.h> #include <linux/notifier.h> #include <linux/threads.h> #include <linux/device.h> #include <linux/kobject.h> #include <linux/sysfs.h> #include <linux/completion.h> #include <linux/workqueue.h> #include <linux/cpumask.h> #include <asm/div64.h> #define CPUFREQ_NAME_LEN 16 #ifdef CONFIG_CPU_FREQ_GOV_BADASS_GPU_CONTROL /* Badass gpu state detection */ extern bool gpu_busy_state; #endif /********************************************************************* * CPUFREQ NOTIFIER INTERFACE * *********************************************************************/ #define CPUFREQ_TRANSITION_NOTIFIER (0) #define CPUFREQ_POLICY_NOTIFIER (1) #ifdef CONFIG_CPU_FREQ int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); #else /* CONFIG_CPU_FREQ */ static inline int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list) { return 0; } static inline int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list) { return 0; } #endif /* CONFIG_CPU_FREQ */ /* if (cpufreq_driver->target) exists, the ->governor decides what frequency * within the limits is used. If (cpufreq_driver->setpolicy> exists, these * two generic policies are available: */ #define CPUFREQ_POLICY_POWERSAVE (1) #define CPUFREQ_POLICY_PERFORMANCE (2) /* Frequency values here are CPU kHz so that hardware which doesn't run * with some frequencies can complain without having to guess what per * cent / per mille means. * Maximum transition latency is in nanoseconds - if it's unknown, * CPUFREQ_ETERNAL shall be used. */ struct cpufreq_governor; /* /sys/devices/system/cpu/cpufreq: entry point for global variables */ extern struct kobject *cpufreq_global_kobject; #define CPUFREQ_ETERNAL (-1) struct cpufreq_cpuinfo { unsigned int max_freq; unsigned int min_freq; /* in 10^(-9) s = nanoseconds */ unsigned int transition_latency; }; struct cpufreq_real_policy { unsigned int min; /* in kHz */ unsigned int max; /* in kHz */ unsigned int policy; /* see above */ struct cpufreq_governor *governor; /* see below */ }; struct cpufreq_policy { cpumask_var_t cpus; /* CPUs requiring sw coordination */ cpumask_var_t related_cpus; /* CPUs with any coordination */ unsigned int shared_type; /* ANY or ALL affected CPUs should set cpufreq */ unsigned int cpu; /* cpu nr of registered CPU */ struct cpufreq_cpuinfo cpuinfo;/* see above */ unsigned int min; /* in kHz */ unsigned int max; /* in kHz */ unsigned int cur; /* in kHz, only needed if cpufreq * governors are used */ unsigned int policy; /* see above */ struct cpufreq_governor *governor; /* see below */ struct work_struct update; /* if update_policy() needs to be * called, but you're in IRQ context */ struct cpufreq_real_policy user_policy; struct kobject kobj; struct completion kobj_unregister; }; #define CPUFREQ_ADJUST (0) #define CPUFREQ_INCOMPATIBLE (1) #define CPUFREQ_NOTIFY (2) #define CPUFREQ_START (3) #define CPUFREQ_SHARED_TYPE_NONE (0) /* None */ #define CPUFREQ_SHARED_TYPE_HW (1) /* HW does needed coordination */ #define CPUFREQ_SHARED_TYPE_ALL (2) /* All dependent CPUs should set freq */ #define CPUFREQ_SHARED_TYPE_ANY (3) /* Freq can be set from any dependent CPU*/ /******************** cpufreq transition notifiers *******************/ #define CPUFREQ_PRECHANGE (0) #define CPUFREQ_POSTCHANGE (1) #define CPUFREQ_RESUMECHANGE (8) #define CPUFREQ_SUSPENDCHANGE (9) struct cpufreq_freqs { unsigned int cpu; /* cpu nr */ unsigned int old; unsigned int new; u8 flags; /* flags of cpufreq_driver, see below. */ }; /** * cpufreq_scale - "old * mult / div" calculation for large values (32-bit-arch safe) * @old: old value * @div: divisor * @mult: multiplier * * * new = old * mult / div */ static inline unsigned long cpufreq_scale(unsigned long old, u_int div, u_int mult) { #if BITS_PER_LONG == 32 u64 result = ((u64) old) * ((u64) mult); do_div(result, div); return (unsigned long) result; #elif BITS_PER_LONG == 64 unsigned long result = old * ((u64) mult); result /= div; return result; #endif }; /********************************************************************* * CPUFREQ GOVERNORS * *********************************************************************/ #define CPUFREQ_GOV_START 1 #define CPUFREQ_GOV_STOP 2 #define CPUFREQ_GOV_LIMITS 3 struct cpufreq_governor { char name[CPUFREQ_NAME_LEN]; int (*governor) (struct cpufreq_policy *policy, unsigned int event); ssize_t (*show_setspeed) (struct cpufreq_policy *policy, char *buf); int (*store_setspeed) (struct cpufreq_policy *policy, unsigned int freq); unsigned int max_transition_latency; /* HW must be able to switch to next freq faster than this value in nano secs or we will fallback to performance governor */ struct list_head governor_list; struct module *owner; }; /* * Pass a target to the cpufreq driver. */ extern int cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation); extern int __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation); extern int __cpufreq_driver_getavg(struct cpufreq_policy *policy, unsigned int cpu); int cpufreq_register_governor(struct cpufreq_governor *governor); void cpufreq_unregister_governor(struct cpufreq_governor *governor); int lock_policy_rwsem_write(int cpu); void unlock_policy_rwsem_write(int cpu); /********************************************************************* * CPUFREQ DRIVER INTERFACE * *********************************************************************/ #define CPUFREQ_RELATION_L 0 /* lowest frequency at or above target */ #define CPUFREQ_RELATION_H 1 /* highest frequency below or at target */ struct freq_attr; struct cpufreq_driver { struct module *owner; char name[CPUFREQ_NAME_LEN]; u8 flags; /* needed by all drivers */ int (*init) (struct cpufreq_policy *policy); int (*verify) (struct cpufreq_policy *policy); /* define one out of two */ int (*setpolicy) (struct cpufreq_policy *policy); int (*target) (struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation); /* should be defined, if possible */ unsigned int (*get) (unsigned int cpu); /* optional */ unsigned int (*getavg) (struct cpufreq_policy *policy, unsigned int cpu); int (*bios_limit) (int cpu, unsigned int *limit); int (*exit) (struct cpufreq_policy *policy); int (*suspend) (struct cpufreq_policy *policy); int (*resume) (struct cpufreq_policy *policy); struct freq_attr **attr; }; /* flags */ #define CPUFREQ_STICKY 0x01 /* the driver isn't removed even if * all ->init() calls failed */ #define CPUFREQ_CONST_LOOPS 0x02 /* loops_per_jiffy or other kernel * "constants" aren't affected by * frequency transitions */ #define CPUFREQ_PM_NO_WARN 0x04 /* don't warn on suspend/resume speed * mismatches */ int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); void cpufreq_notify_transition(struct cpufreq_freqs *freqs, unsigned int state); static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy, unsigned int min, unsigned int max) { if (policy->min < min) policy->min = min; if (policy->max < min) policy->max = min; if (policy->min > max) policy->min = max; if (policy->max > max) policy->max = max; if (policy->min > policy->max) policy->min = policy->max; return; } struct freq_attr { struct attribute attr; ssize_t (*show)(struct cpufreq_policy *, char *); ssize_t (*store)(struct cpufreq_policy *, const char *, size_t count); }; #define cpufreq_freq_attr_ro(_name) \ static struct freq_attr _name = \ __ATTR(_name, 0444, show_##_name, NULL) #define cpufreq_freq_attr_ro_perm(_name, _perm) \ static struct freq_attr _name = \ __ATTR(_name, _perm, show_##_name, NULL) #define cpufreq_freq_attr_rw(_name) \ static struct freq_attr _name = \ __ATTR(_name, 0644, show_##_name, store_##_name) struct global_attr { struct attribute attr; ssize_t (*show)(struct kobject *kobj, struct attribute *attr, char *buf); ssize_t (*store)(struct kobject *a, struct attribute *b, const char *c, size_t count); }; #define define_one_global_ro(_name) \ static struct global_attr _name = \ __ATTR(_name, 0444, show_##_name, NULL) #define define_one_global_rw(_name) \ static struct global_attr _name = \ __ATTR(_name, 0644, show_##_name, store_##_name) /********************************************************************* * CPUFREQ 2.6. INTERFACE * *********************************************************************/ int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); int cpufreq_update_policy(unsigned int cpu); #ifdef CONFIG_CPU_FREQ /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ unsigned int cpufreq_get(unsigned int cpu); #else static inline unsigned int cpufreq_get(unsigned int cpu) { return 0; } #endif /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ #ifdef CONFIG_CPU_FREQ unsigned int cpufreq_quick_get(unsigned int cpu); #else static inline unsigned int cpufreq_quick_get(unsigned int cpu) { return 0; } #endif #ifdef CONFIG_SEC_DVFS enum { BOOT_CPU = 0, NON_BOOT_CPU = 1 }; #ifdef CONFIG_MACH_ICON #define MAX_FREQ_LIMIT 1804800 #else #define MAX_FREQ_LIMIT 1024000 #endif #define MIN_FREQ_LIMIT 122880 #define MAX_TOUCH_LIMIT 806400 #define MAX_UNICPU_LIMIT 806400 #define UPDATE_NOW_BITS 0xFF enum { DVFS_NO_ID = 0, /* need to update now */ DVFS_TOUCH_ID = 0x00000001, DVFS_APPS_MIN_ID = 0x00000002, DVFS_APPS_MAX_ID = 0x00000004, DVFS_UNICPU_ID = 0x00000008, /* DO NOT UPDATE NOW */ DVFS_THERMALD_ID = 0x00000100, DVFS_MAX_ID }; #ifdef CONFIG_SEC_DVFS_DUAL void dual_boost(unsigned int boost_on); #endif int set_freq_limit(unsigned long id, unsigned int freq); unsigned int get_min_lock(void); unsigned int get_max_lock(void); void set_min_lock(int freq); void set_max_lock(int freq); #endif /********************************************************************* * CPUFREQ DEFAULT GOVERNOR * *********************************************************************/ /* Performance governor is fallback governor if any other gov failed to auto load due latency restrictions */ #ifdef CONFIG_CPU_FREQ_GOV_PERFORMANCE extern struct cpufreq_governor cpufreq_gov_performance; #endif #ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_performance) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE) extern struct cpufreq_governor cpufreq_gov_powersave; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_powersave) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE) extern struct cpufreq_governor cpufreq_gov_userspace; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_userspace) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND) extern struct cpufreq_governor cpufreq_gov_ondemand; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_ondemand) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE) extern struct cpufreq_governor cpufreq_gov_conservative; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_conservative) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_LAGFREE) extern struct cpufreq_governor cpufreq_gov_lagfree; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_lagfree) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE) extern struct cpufreq_governor cpufreq_gov_interactive; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_interactive) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_LAZY) extern struct cpufreq_governor cpufreq_gov_lazy; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_lazy) #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_BADASS) extern struct cpufreq_governor cpufreq_gov_badass; #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_badass) #endif /********************************************************************* * FREQUENCY TABLE HELPERS * *********************************************************************/ #define CPUFREQ_ENTRY_INVALID ~0 #define CPUFREQ_TABLE_END ~1 struct cpufreq_frequency_table { unsigned int index; /* any */ unsigned int frequency; /* kHz - doesn't need to be in ascending * order */ }; int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table); int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table); int cpufreq_frequency_table_target(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int target_freq, unsigned int relation, unsigned int *index); /* the following 3 funtions are for cpufreq core use only */ struct cpufreq_frequency_table *cpufreq_frequency_get_table(unsigned int cpu); struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu); void cpufreq_cpu_put(struct cpufreq_policy *data); /* the following are really really optional */ extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs; void cpufreq_frequency_table_get_attr(struct cpufreq_frequency_table *table, unsigned int cpu); void cpufreq_frequency_table_put_attr(unsigned int cpu); #endif /* _LINUX_CPUFREQ_H */
bsorensen110/Reverb_ckernel
include/linux/cpufreq.h
C
gpl-2.0
14,176
/* Copyright Statement: * * (C) 2005-2016 MediaTek Inc. All rights reserved. * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors. * Without the prior written permission of MediaTek and/or its licensors, * any reproduction, modification, use or disclosure of MediaTek Software, * and information contained herein, in whole or in part, shall be strictly prohibited. * You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software * if you have agreed to and been bound by the applicable license agreement with * MediaTek ("License Agreement") and been granted explicit permission to do so within * the License Agreement ("Permitted User"). If you are not a Permitted User, * please cease any access or use of MediaTek Software immediately. * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES * THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES * ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR * SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND * CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE, * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. */ #include "hal_uart.h" #ifdef HAL_UART_MODULE_ENABLED #include "hal_pdma_internal.h" #include "hal_nvic.h" #include "hal_clock.h" #include "hal_clock_internal.h" #include "hal_uart_internal.h" #include "hal_uart_internal_platform.h" #ifdef __cplusplus extern "C" { #endif extern UART_REGISTER_T *g_uart_regbase[]; void uart_set_baudrate(UART_REGISTER_T *uartx, uint32_t actual_baudrate) { uint32_t uart_clock, integer, remainder, fraction; uint32_t dll_dlm, sample_count, sample_point, temp_lcr; uint32_t fraction_L_mapping[] = {0x00, 0x00, 0x20, 0x90, 0xa8, 0x54, 0x6c, 0xba, 0xf6, 0xfe}; uint32_t fraction_M_mapping[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01}; uartx->RATEFIX_AD = 0x0; uartx->FRACDIV_L = 0x0; uartx->FRACDIV_M = 0x0; if (is_clk_use_lfosc() == true) { uart_clock = clock_get_freq_lfosc() * 1000; } else { uart_clock = UART_INPUT_CLOCK_DCXO; } integer = uart_clock / (actual_baudrate * 256); remainder = ((uart_clock * 10) / (actual_baudrate * 256)) % 10; if ((remainder != 0) || (integer == 0)) { integer += 1; } dll_dlm = integer; sample_count = uart_clock / (actual_baudrate * dll_dlm); while (sample_count > 256) { dll_dlm++; sample_count = uart_clock / (actual_baudrate * dll_dlm); } fraction = ((uart_clock * 10) / (actual_baudrate * dll_dlm)) % 10; sample_count -= 1; sample_point = (sample_count - 1) >> 1; uartx->HIGHSPEED = UART_HIGHSPEED_SPEED_MODE3; temp_lcr = uartx->LCR; uartx->LCR = temp_lcr | UART_LCR_DLAB_MASK; uartx->RBR_THR_DLL.DLL = dll_dlm & 0x00ff; uartx->IER_DLM.DLM = (dll_dlm >> 8) & 0x00ff; uartx->LCR = temp_lcr; uartx->SAMPLE_COUNT = sample_count; uartx->SAMPLE_POINT = sample_point; uartx->FRACDIV_L = fraction_L_mapping[fraction]; uartx->FRACDIV_M = fraction_M_mapping[fraction]; if (actual_baudrate >= 3000000) { uartx->GUARD = 0x12; /* delay 2 bits per byte. */ } } void uart_set_format(UART_REGISTER_T *uartx, hal_uart_word_length_t word_length, hal_uart_stop_bit_t stop_bit, hal_uart_parity_t parity) { uint16_t byte; /* DLAB start */ byte = uartx->LCR; uartx->LCR = UART_LCR_DLAB_MASK; /* Setup wordlength */ byte &= ~UART_LCR_WORD_MASK; switch (word_length) { case HAL_UART_WORD_LENGTH_5: byte |= UART_LCR_WORD_5BITS; break; case HAL_UART_WORD_LENGTH_6: byte |= UART_LCR_WORD_6BITS; break; case HAL_UART_WORD_LENGTH_7: byte |= UART_LCR_WORD_7BITS; break; case HAL_UART_WORD_LENGTH_8: byte |= UART_LCR_WORD_8BITS; break; default: break; } /* setup stop bit */ byte &= ~UART_LCR_STB_MASK; switch (stop_bit) { case HAL_UART_STOP_BIT_1: byte |= UART_LCR_STB_1; break; case HAL_UART_STOP_BIT_2: byte |= UART_LCR_STB_2; break; default: break; } /* setup parity bit */ byte &= ~UART_LCR_PARITY_MASK; switch (parity) { case HAL_UART_PARITY_NONE: byte &= ~UART_LCR_PEN_MASK; break; case HAL_UART_PARITY_ODD: byte |= UART_LCR_EPS_ODD; break; case HAL_UART_PARITY_EVEN: byte |= UART_LCR_EPS_EVEN; break; default: break; } /* DLAB End */ uartx->LCR = byte; } void uart_put_char_block(UART_REGISTER_T *uartx, uint8_t byte) { uint16_t LSR; while (1) { LSR = uartx->LSR_XON2.LSR; if (LSR & UART_LSR_THRE_MASK) { uartx->RBR_THR_DLL.THR = byte; break; } } } uint8_t uart_get_char_block(UART_REGISTER_T *uartx) { uint16_t LSR; uint8_t byte; while (1) { LSR = uartx->LSR_XON2.LSR; if (LSR & UART_LSR_DR_MASK) { byte = (uint8_t)uartx->RBR_THR_DLL.RBR; break; } } return byte; } void uart_set_hardware_flowcontrol(UART_REGISTER_T *uartx) { uint16_t EFR, LCR; LCR = uartx->LCR; uartx->LCR = 0xbf; EFR = uartx->IIR_FCR_EFR.EFR; EFR |= UART_EFR_AUTO_CTS_MASK | UART_EFR_AUTO_RTS_MASK; uartx->IIR_FCR_EFR.EFR = EFR; uartx->ESCAPE_EN = 0; uartx->LCR = 0x00; uartx->MCR_XON1.MCR = UART_MCR_RTS_MASK; uartx->LCR = LCR; } void uart_set_software_flowcontrol(UART_REGISTER_T *uartx, uint8_t xon, uint8_t xoff, uint8_t escape_character) { uint16_t EFR, LCR; LCR = uartx->LCR; uartx->LCR = 0xbf; uartx->MCR_XON1.XON1 = xon; uartx->XOFF1 = xoff; EFR = uartx->IIR_FCR_EFR.EFR; EFR |= UART_EFR_ENABLE_E_MASK | UART_EFR_SW_FLOW_TX_ON | UART_EFR_SW_FLOW_RX_ON; uartx->IIR_FCR_EFR.EFR = EFR; uartx->ESCAPE_DAT = escape_character; uartx->ESCAPE_EN = UART_ESCAPE_EN_MASK; uartx->LCR = LCR; } void uart_disable_flowcontrol(UART_REGISTER_T *uartx) { uint16_t LCR; LCR = uartx->LCR; uartx->LCR = 0xbf; uartx->IIR_FCR_EFR.EFR = 0x0; uartx->LCR = 0x00; uartx->LCR = LCR; } void uart_set_fifo(UART_REGISTER_T *uartx) { uint16_t EFR, LCR; LCR = uartx->LCR; uartx->LCR = 0xBF; EFR = uartx->IIR_FCR_EFR.EFR; EFR |= UART_EFR_ENABLE_E_MASK; uartx->IIR_FCR_EFR.EFR = EFR; uartx->LCR = 0x00; uartx->IIR_FCR_EFR.FCR = UART_FCR_TXTRIG_1 | UART_FCR_RXTRIG_12 | UART_FCR_CLRT_MASK | UART_FCR_CLRR_MASK | UART_FCR_FIFOE_MASK; uartx->LCR = LCR; } #ifdef HAL_SLEEP_MANAGER_ENABLED void uart_set_sleep_mode(UART_REGISTER_T *uartx) { uartx->SLEEP_EN = 0x01; } void uart_unmask_send_interrupt(UART_REGISTER_T *uartx) { uint16_t IER, LCR; LCR = uartx->LCR; uartx->LCR &= ~UART_LCR_DLAB_MASK; IER = uartx->IER_DLM.IER; IER |= UART_IER_ETBEI_MASK; uartx->IER_DLM.IER = IER; uartx->LCR &= LCR; } #endif void uart_unmask_receive_interrupt(UART_REGISTER_T *uartx) { uint16_t IER, LCR; LCR = uartx->LCR; uartx->LCR &= ~UART_LCR_DLAB_MASK; IER = uartx->IER_DLM.IER; IER |= (UART_IER_ERBFI_MASK | UART_IER_ELSI_MASK); uartx->IER_DLM.IER = IER; uartx->LCR &= LCR; } void uart_purge_fifo(UART_REGISTER_T *uartx, int32_t is_rx) { uint16_t FCR; FCR = UART_FCR_TXTRIG_4 | UART_FCR_RXTRIG_12 | UART_FCR_FIFOE_MASK; if (is_rx) { FCR |= UART_FCR_CLRR_MASK; } else { FCR |= UART_FCR_CLRT_MASK; } uartx->IIR_FCR_EFR.FCR = FCR; } uart_interrupt_type_t uart_query_interrupt_type(UART_REGISTER_T *uartx) { uint16_t IIR, LSR; uart_interrupt_type_t type = UART_INTERRUPT_NONE; IIR = uartx->IIR_FCR_EFR.IIR; if (IIR & UART_IIR_NONE) { return type; } switch (IIR & UART_IIR_ID_MASK) { /* received data and timeout happen */ case UART_IIR_RDT: type = UART_INTERRUPT_RECEIVE_TIMEOUT; break; /* receive line status changed Any of BI/FE/PE/OE becomes set */ case UART_IIR_LSR: LSR = uartx->LSR_XON2.LSR; if (LSR & UART_LSR_BI_MASK) { type = UART_INTERRUPT_RECEIVE_BREAK; } else { type = UART_INTERRUPT_RECEIVE_ERROR; } break; /* TX Holding Register Empty */ case UART_IIR_THRE: type = UART_INTERRUPT_SEND_AVAILABLE; break; default: break; } return type; } int32_t uart_verify_error(UART_REGISTER_T *uartx) { uint16_t LSR; int32_t ret = 0; LSR = uartx->LSR_XON2.LSR; if (!(LSR & (UART_LSR_OE_MASK | UART_LSR_FE_MASK | UART_LSR_PE_MASK))) { ret = -1; } return ret; } void uart_clear_timeout_interrupt(UART_REGISTER_T *uartx) { uint16_t DMA_EN; DMA_EN = uartx->DMA_EN; DMA_EN = DMA_EN; } void uart_reset_default_value(UART_REGISTER_T *uartx) { uartx->LCR = 0xbf; uartx->IIR_FCR_EFR.EFR = 0x10; uartx->MCR_XON1.XON1 = 0x00; uartx->XOFF1 = 0x00; uartx->LCR = 0x80; uartx->RBR_THR_DLL.DLL = 0x00; uartx->IER_DLM.DLM = 0x00; uartx->LCR = 0x00; uartx->IER_DLM.IER = 0x00; uartx->IIR_FCR_EFR.FCR = 0x00; uartx->LCR = 0xbf; uartx->IIR_FCR_EFR.EFR = 0x00; uartx->LCR = 0x00; uartx->MCR_XON1.MCR = 0x00; uartx->SCR_XOFF2.SCR = 0x00; uartx->AUTOBAUD_EN = 0x00; uartx->HIGHSPEED = 0x00; uartx->SAMPLE_COUNT = 0x00; uartx->SAMPLE_POINT = 0x00; uartx->RATEFIX_AD = 0x00; uartx->AUTOBAUDSAMPLE = 0x00; uartx->GUARD = 0x00; uartx->ESCAPE_DAT = 0x00; uartx->ESCAPE_EN = 0x00; uartx->SLEEP_EN = 0x00; uartx->DMA_EN = 0x00; uartx->RATEFIX_AD = 0x00; uartx->FRACDIV_L = 0x00; uartx->FRACDIV_M = 0x00; } void uart_query_empty(UART_REGISTER_T *uartx) { while (!((uartx->LSR_XON2.LSR) & 0x40)); } #ifdef __cplusplus } #endif #endif
flyingcys/rtthread-mtk_iot
bsp/mtk_iot/Libraries/driver/chip/mt2523/src/hal_uart_internal.c
C
gpl-2.0
11,580