blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
c720aac13d9977afcd42b98c62af3e23a7cf99f8
39f9ae6bdbda7f3b42cf4a006fb2a469fb44e4cf
/Farol/AssemblyInfo.cpp
4b46aa567e0d2ef8993d1f2dc527747d40b59ecd
[]
no_license
maochy/farol
30b2af11cf951d128797ec79c0d419883b7bbc11
486928695c3658e7646606d14c3bf6b8bc9d8933
refs/heads/master
2021-01-10T01:17:40.086620
2010-03-12T04:10:39
2010-03-12T04:10:39
38,855,832
0
0
null
null
null
null
UTF-8
C++
false
false
1,326
cpp
#include "stdafx.h" using namespace System; using namespace System::Reflection; using namespace System::Runtime::CompilerServices; using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly:AssemblyTitleAttribute("Farol")]; [assembly:AssemblyDescriptionAttribute("")]; [assembly:AssemblyConfigurationAttribute("")]; [assembly:AssemblyCompanyAttribute("")]; [assembly:AssemblyProductAttribute("Farol")]; [assembly:AssemblyCopyrightAttribute("Copyright (c) 2009")]; [assembly:AssemblyTrademarkAttribute("")]; [assembly:AssemblyCultureAttribute("")]; // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the value or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly:AssemblyVersionAttribute("1.0.*")]; [assembly:ComVisible(false)]; [assembly:CLSCompliantAttribute(true)]; [assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
[ "renanrv@5a151274-b240-11de-8e13-c326f17d7b4c" ]
renanrv@5a151274-b240-11de-8e13-c326f17d7b4c
dfe77ffc7c011ddc24d2762108661b8c81071fe4
7cce0635a50e8d2db92b7b1bf4ad49fc218fb0b8
/郭鑫程序交接/line.2012.06.12/line/line3/WndInstrument.cpp
438876d922050056752ac2b0f34d2e8a04c6096a
[]
no_license
liquanhai/cxm-hitech-matrix428
dcebcacea58123aabcd9541704b42b3491444220
d06042a3de79379a77b0e4e276de42de3c1c6d23
refs/heads/master
2021-01-20T12:06:23.622153
2013-01-24T01:05:10
2013-01-24T01:05:10
54,619,320
2
2
null
null
null
null
GB18030
C++
false
false
3,096
cpp
// WndInstrument.cpp : 实现文件 // #include "stdafx.h" #include "line.h" #include "WndInstrument.h" // CWndInstrument IMPLEMENT_DYNAMIC(CWndInstrument, CBCGPStatic) CWndInstrument::CWndInstrument() { /** 仪器总数*/ m_uiInstrumentCountAll = 0; /** 图形单元间隔X*/ m_iGridX = 50; /** 图形单元间隔Y*/ m_iGridY = 50; /** 图形单元宽度*/ m_iUnitWidth = 32; /** 图形单元高度*/ m_iUnitHight = 32; /** 图形高度X*/ m_iPaperHight = 100; } CWndInstrument::~CWndInstrument() { } BEGIN_MESSAGE_MAP(CWndInstrument, CBCGPStatic) ON_WM_SIZE() ON_WM_PAINT() END_MESSAGE_MAP() // CWndInstrument 消息处理程序 void CWndInstrument::OnSize(UINT nType, int cx, int cy) { CBCGPStatic::OnSize(nType, cx, cy); RedrawWindow(); } void CWndInstrument::OnPaint() { CPaintDC dc(this); GetClientRect(&m_oRect); m_iPaperHight = m_oRect.bottom - m_iGridY; // 画背景 DrawBackground(&dc); // 画连接线 DrawLinkLine(&dc); // 画全部单元图 if(1 < m_uiInstrumentCountAll) { for(unsigned int i = 0; i < m_uiInstrumentCountAll; i++) { DrawUnit(&dc, i); } } } /** * 画背景 * @param CDC* pDC 画图句柄 * @return void */ void CWndInstrument::DrawBackground(CDC* pDC) { CBrush oBrush; CBrush* pOldPenBrush; oBrush.CreateSolidBrush(RGB(255, 255, 255)); pOldPenBrush = pDC->SelectObject(&oBrush); pDC->FillRect(&m_oRect, &oBrush); pDC->SelectObject(pOldPenBrush); } /** * 画连接线 * @param CDC* pDC 画图句柄 * @return void */ void CWndInstrument::DrawLinkLine(CDC* pDC) { CPen oPenLine; CPen* pOldPen; oPenLine.CreatePen(PS_SOLID, 3, RGB(0, 128, 0)); pOldPen = pDC->SelectObject(&oPenLine); CPoint ptStart, ptEnd; ptStart.x = m_iGridX; ptStart.y = m_iPaperHight; ptEnd.x = (m_uiInstrumentCountAll) * m_iGridX; ptEnd.y = m_iPaperHight; pDC->MoveTo(ptStart); pDC->LineTo(ptEnd); pDC->SelectObject(pOldPen); } /** * 函数说明 * @param CDC* pDC 画图句柄 * @param int iIndex 图形单元索引 * @return void */ // 画单元图 void CWndInstrument::DrawUnit(CDC* pDC, int iIndex) { CPen oPenUnit; CPen* pOldPen; CBrush oBrushUnit; CBrush* pOldPenBrush; int iCenterX = m_iGridX + iIndex * m_iGridX; int iCenterY = m_iPaperHight; CRect oRect; oRect.left = iCenterX - m_iUnitWidth / 2; oRect.top = iCenterY - m_iUnitHight / 2; oRect.right = oRect.left + m_iUnitWidth; oRect.bottom = oRect.top + m_iUnitHight; oPenUnit.CreatePen(PS_SOLID, 0, RGB(0, 0, 0)); oBrushUnit.CreateSolidBrush(RGB(0, 255, 0)); // 绿色 pOldPen = pDC->SelectObject(&oPenUnit); pOldPenBrush = pDC->SelectObject(&oBrushUnit); pDC->Ellipse(&oRect); pDC->SelectObject(pOldPen); pDC->SelectObject(pOldPenBrush); } /** * 响应显示迂回道图形视图 * @param unsigned int uiCount 迂回道中仪器数量 * @return void */ void CWndInstrument::OnShowDetourGraphView(unsigned int uiCount) { m_uiInstrumentCountAll = uiCount; RedrawWindow(); }
[ "chengxianming1981@gmail.com" ]
chengxianming1981@gmail.com
131f145dd496b4e3e4b758cf8387a2d1afd82b92
77a1e8b6e3181b097a196bda951ae5ed05115729
/libraries/chain/apply_context.cpp
a72b6732fcc748556bdaaf4bc1194043cf78569a
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
yinchengtsinghua/EOSIOChineseCPP
04888f80cb7a946fb54c2494137868cb86685ff1
dceabf6315ab8c9a064c76e943b2b44037165a85
refs/heads/master
2020-04-18T01:20:58.685186
2019-01-23T04:17:07
2019-01-23T04:17:07
167,115,462
21
11
null
null
null
null
UTF-8
C++
false
false
29,164
cpp
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 yinc13@mails.tsinghua.edu.cn //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 #include <algorithm> #include <eosio/chain/apply_context.hpp> #include <eosio/chain/controller.hpp> #include <eosio/chain/transaction_context.hpp> #include <eosio/chain/exceptions.hpp> #include <eosio/chain/wasm_interface.hpp> #include <eosio/chain/generated_transaction_object.hpp> #include <eosio/chain/authorization_manager.hpp> #include <eosio/chain/resource_limits.hpp> #include <eosio/chain/account_object.hpp> #include <eosio/chain/global_property_object.hpp> #include <boost/container/flat_set.hpp> using boost::container::flat_set; namespace eosio { namespace chain { static inline void print_debug(account_name receiver, const action_trace& ar) { if (!ar.console.empty()) { auto prefix = fc::format_string( "\n[(${a},${n})->${r}]", fc::mutable_variant_object() ("a", ar.act.account) ("n", ar.act.name) ("r", receiver)); dlog(prefix + ": CONSOLE OUTPUT BEGIN =====================\n" + ar.console + prefix + ": CONSOLE OUTPUT END =====================" ); } } void apply_context::exec_one( action_trace& trace ) { auto start = fc::time_point::now(); action_receipt r; r.receiver = receiver; r.act_digest = digest_type::hash(act); trace.trx_id = trx_context.id; trace.block_num = control.pending_block_state()->block_num; trace.block_time = control.pending_block_time(); trace.producer_block_id = control.pending_producer_block_id(); trace.act = act; trace.context_free = context_free; const auto& cfg = control.get_global_properties().configuration; try { try { const auto& a = control.get_account( receiver ); privileged = a.privileged; auto native = control.find_apply_handler( receiver, act.account, act.name ); if( native ) { if( trx_context.enforce_whiteblacklist && control.is_producing_block() ) { control.check_contract_list( receiver ); control.check_action_list( act.account, act.name ); } (*native)( *this ); } if( a.code.size() > 0 && !(act.account == config::system_account_name && act.name == N( setcode ) && receiver == config::system_account_name) ) { if( trx_context.enforce_whiteblacklist && control.is_producing_block() ) { control.check_contract_list( receiver ); control.check_action_list( act.account, act.name ); } try { control.get_wasm_interface().apply( a.code_version, a.code, *this ); } catch( const wasm_exit& ) {} } } FC_RETHROW_EXCEPTIONS( warn, "pending console output: ${console}", ("console", _pending_console_output.str()) ) } catch( fc::exception& e ) { trace.receipt = r; //用已知数据填充 trace.except = e; finalize_trace( trace, start ); throw; } r.global_sequence = next_global_sequence(); r.recv_sequence = next_recv_sequence( receiver ); const auto& account_sequence = db.get<account_sequence_object, by_name>(act.account); r.code_sequence = account_sequence.code_sequence; //可以通过上面的操作执行进行修改 r.abi_sequence = account_sequence.abi_sequence; //可以通过上面的操作执行进行修改 for( const auto& auth : act.authorization ) { r.auth_sequence[auth.actor] = next_auth_sequence( auth.actor ); } trace.receipt = r; trx_context.executed.emplace_back( move(r) ); finalize_trace( trace, start ); if ( control.contracts_console() ) { print_debug(receiver, trace); } } void apply_context::finalize_trace( action_trace& trace, const fc::time_point& start ) { trace.account_ram_deltas = std::move( _account_ram_deltas ); _account_ram_deltas.clear(); trace.console = _pending_console_output.str(); reset_console(); trace.elapsed = fc::time_point::now() - start; } void apply_context::exec( action_trace& trace ) { _notified.push_back(receiver); exec_one( trace ); for( uint32_t i = 1; i < _notified.size(); ++i ) { receiver = _notified[i]; trace.inline_traces.emplace_back( ); exec_one( trace.inline_traces.back() ); } if( _cfa_inline_actions.size() > 0 || _inline_actions.size() > 0 ) { EOS_ASSERT( recurse_depth < control.get_global_properties().configuration.max_inline_action_depth, transaction_exception, "max inline action depth per transaction reached" ); } for( const auto& inline_action : _cfa_inline_actions ) { trace.inline_traces.emplace_back(); trx_context.dispatch_action( trace.inline_traces.back(), inline_action, inline_action.account, true, recurse_depth + 1 ); } for( const auto& inline_action : _inline_actions ) { trace.inline_traces.emplace_back(); trx_context.dispatch_action( trace.inline_traces.back(), inline_action, inline_action.account, false, recurse_depth + 1 ); } } ///执行() bool apply_context::is_account( const account_name& account )const { return nullptr != db.find<account_object,by_name>( account ); } void apply_context::require_authorization( const account_name& account ) { for( uint32_t i=0; i < act.authorization.size(); i++ ) { if( act.authorization[i].actor == account ) { used_authorizations[i] = true; return; } } EOS_ASSERT( false, missing_auth_exception, "missing authority of ${account}", ("account",account)); } bool apply_context::has_authorization( const account_name& account )const { for( const auto& auth : act.authorization ) if( auth.actor == account ) return true; return false; } void apply_context::require_authorization(const account_name& account, const permission_name& permission) { for( uint32_t i=0; i < act.authorization.size(); i++ ) if( act.authorization[i].actor == account ) { if( act.authorization[i].permission == permission ) { used_authorizations[i] = true; return; } } EOS_ASSERT( false, missing_auth_exception, "missing authority of ${account}/${permission}", ("account",account)("permission",permission) ); } bool apply_context::has_recipient( account_name code )const { for( auto a : _notified ) if( a == code ) return true; return false; } void apply_context::require_recipient( account_name recipient ) { if( !has_recipient(recipient) ) { _notified.push_back(recipient); } } /* *这将在检查授权后执行一个操作。内联事务是 *由当前接收器隐式授权(运行代码)。这种方法有重要意义 *考虑了安全因素和几种选择: * * 1。特权账户(由区块生产商标记的账户)可以授权任何行动。 * 2。所有其他行动仅由“接收者”授权,这意味着: *a.用户必须为其帐户设置权限,以允许“接收者”代表其行事。 * *放弃实施:我们曾经允许任何授权当前交易的账户 *隐式授权内联事务。这种方法将允许权限升级和 *使用户与某些合同交互不安全。我们选择了申请 *请求用户允许采取某些操作,而不是使其隐式操作。这种方式的用户 *能够更好地了解安全风险。 **/ void apply_context::execute_inline( action&& a ) { auto* code = control.db().find<account_object, by_name>(a.account); EOS_ASSERT( code != nullptr, action_validate_exception, "inline action's code account ${account} does not exist", ("account", a.account) ); bool enforce_actor_whitelist_blacklist = trx_context.enforce_whiteblacklist && control.is_producing_block(); flat_set<account_name> actors; bool disallow_send_to_self_bypass = false; //最终设置为是否激活了适当的协议功能 bool send_to_self = (a.account == receiver); bool inherit_parent_authorizations = (!disallow_send_to_self_bypass && send_to_self && (receiver == act.account) && control.is_producing_block()); flat_set<permission_level> inherited_authorizations; if( inherit_parent_authorizations ) { inherited_authorizations.reserve( a.authorization.size() ); } for( const auto& auth : a.authorization ) { auto* actor = control.db().find<account_object, by_name>(auth.actor); EOS_ASSERT( actor != nullptr, action_validate_exception, "inline action's authorizing actor ${account} does not exist", ("account", auth.actor) ); EOS_ASSERT( control.get_authorization_manager().find_permission(auth) != nullptr, action_validate_exception, "inline action's authorizations include a non-existent permission: ${permission}", ("permission", auth) ); if( enforce_actor_whitelist_blacklist ) actors.insert( auth.actor ); if( inherit_parent_authorizations && std::find(act.authorization.begin(), act.authorization.end(), auth) != act.authorization.end() ) { inherited_authorizations.insert( auth ); } } if( enforce_actor_whitelist_blacklist ) { control.check_actor_list( actors ); } //如果重放不可逆块或协定是特权的,则无需检查授权 if( !control.skip_auth_check() && !privileged ) { try { control.get_authorization_manager() .check_authorization( {a}, {}, {{receiver, config::eosio_code_name}}, control.pending_block_time() - trx_context.published, std::bind(&transaction_context::checktime, &this->trx_context), false, inherited_authorizations ); //问题:允许延迟了一段时间的事务离开是否明智? //发送一个需要延迟的内联操作,即使决定发送该内联 //在执行延迟事务时采取了可能没有预警的措施? } catch( const fc::exception& e ) { if( disallow_send_to_self_bypass || !send_to_self ) { throw; } else if( control.is_producing_block() ) { subjective_block_production_exception new_exception(FC_LOG_MESSAGE( error, "Authorization failure with inline action sent to self")); for (const auto& log: e.get_log()) { new_exception.append_log(log); } throw new_exception; } } catch( ... ) { if( disallow_send_to_self_bypass || !send_to_self ) { throw; } else if( control.is_producing_block() ) { EOS_THROW(subjective_block_production_exception, "Unexpected exception occurred validating inline action sent to self"); } } } _inline_actions.emplace_back( move(a) ); } void apply_context::execute_context_free_inline( action&& a ) { auto* code = control.db().find<account_object, by_name>(a.account); EOS_ASSERT( code != nullptr, action_validate_exception, "inline action's code account ${account} does not exist", ("account", a.account) ); EOS_ASSERT( a.authorization.size() == 0, action_validate_exception, "context-free actions cannot have authorizations" ); _cfa_inline_actions.emplace_back( move(a) ); } void apply_context::schedule_deferred_transaction( const uint128_t& sender_id, account_name payer, transaction&& trx, bool replace_existing ) { EOS_ASSERT( trx.context_free_actions.size() == 0, cfa_inside_generated_tx, "context free actions are not currently allowed in generated transactions" ); trx.expiration = control.pending_block_time() + fc::microseconds(999'999); //四舍五入到最接近的秒(使到期检查不必要) trx.set_reference_block(control.head_block_id()); //无需Tapos检查 bool enforce_actor_whitelist_blacklist = trx_context.enforce_whiteblacklist && control.is_producing_block() && !control.sender_avoids_whitelist_blacklist_enforcement( receiver ); trx_context.validate_referenced_accounts( trx, enforce_actor_whitelist_blacklist ); //提前收取注销延期交易所需的额外净使用费 //无论是通过成功执行、软故障、硬故障还是过期。 const auto& cfg = control.get_global_properties().configuration; trx_context.add_net_usage( static_cast<uint64_t>(cfg.base_per_transaction_net_usage) + static_cast<uint64_t>(config::transaction_id_net_usage) ); //如果无法支付净使用费,将提前退出。 auto delay = fc::seconds(trx.delay_sec); if( !control.skip_auth_check() && !privileged ) { //如果重放不可逆块或合同具有特权,则不需要检查授权。 if( payer != receiver ) { require_authorization(payer); ///使用付款人的存储 } //最初,如果契约只将操作延迟到自身,则此代码将跳过授权检查。 //其想法是,代码已经可以做任何延迟事务可以做的事情,所以没有必要检查授权。 //但这不是真的。原始实现没有验证允许权限提升的操作的授权。 //这将使向一些不相关的账户开单成为可能。 //此外,即使授权被强制为当前操作授权的一个子集,它仍然会违反预期。 //原始事务的签名者,因为延迟的事务将允许比最大限制计费更多的CPU和网络带宽 //在原始交易记录上指定。 //因此,如果延迟事务不是由特权契约发送的,那么它必须始终通过授权检查。 //但是,必须考虑旧的逻辑,因为在共识协议升级之前,它不能客观地改变。 bool disallow_send_to_self_bypass = false; //最终设置为是否激活了适当的协议功能 auto is_sending_only_to_self = [&trx]( const account_name& self ) { bool send_to_self = true; for( const auto& act : trx.actions ) { if( act.account != self ) { send_to_self = false; break; } } return send_to_self; }; try { control.get_authorization_manager() .check_authorization( trx.actions, {}, {{receiver, config::eosio_code_name}}, delay, std::bind(&transaction_context::checktime, &this->trx_context), false ); } catch( const fc::exception& e ) { if( disallow_send_to_self_bypass || !is_sending_only_to_self(receiver) ) { throw; } else if( control.is_producing_block() ) { subjective_block_production_exception new_exception(FC_LOG_MESSAGE( error, "Authorization failure with sent deferred transaction consisting only of actions to self")); for (const auto& log: e.get_log()) { new_exception.append_log(log); } throw new_exception; } } catch( ... ) { if( disallow_send_to_self_bypass || !is_sending_only_to_self(receiver) ) { throw; } else if( control.is_producing_block() ) { EOS_THROW(subjective_block_production_exception, "Unexpected exception occurred validating sent deferred transaction consisting only of actions to self"); } } } uint32_t trx_size = 0; if ( auto ptr = db.find<generated_transaction_object,by_sender_id>(boost::make_tuple(receiver, sender_id)) ) { EOS_ASSERT( replace_existing, deferred_tx_duplicate, "deferred transaction with the same sender_id and payer already exists" ); //TODO:在用硬分叉修复延迟的TRX替换RAM错误时,删除以下主观检查。 EOS_ASSERT( !control.is_producing_block(), subjective_block_production_exception, "Replacing a deferred transaction is temporarily disabled." ); //TODO:下一行的逻辑需要合并到下一个硬分叉中。 //添加_-ram-usage(ptr->payer-(config::billable_-size_v<generated_-transaction_-object-+ptr->packed_-trx.size()); db.modify<generated_transaction_object>( *ptr, [&]( auto& gtx ) { gtx.sender = receiver; gtx.sender_id = sender_id; gtx.payer = payer; gtx.published = control.pending_block_time(); gtx.delay_until = gtx.published + delay; gtx.expiration = gtx.delay_until + fc::seconds(control.get_global_properties().configuration.deferred_trx_expiration_window); trx_size = gtx.set( trx ); }); } else { db.create<generated_transaction_object>( [&]( auto& gtx ) { gtx.trx_id = trx.id(); gtx.sender = receiver; gtx.sender_id = sender_id; gtx.payer = payer; gtx.published = control.pending_block_time(); gtx.delay_until = gtx.published + delay; gtx.expiration = gtx.delay_until + fc::seconds(control.get_global_properties().configuration.deferred_trx_expiration_window); trx_size = gtx.set( trx ); }); } EOS_ASSERT( control.is_ram_billing_in_notify_allowed() || (receiver == act.account) || (receiver == payer) || privileged, subjective_block_production_exception, "Cannot charge RAM to other accounts during notify." ); add_ram_usage( payer, (config::billable_size_v<generated_transaction_object> + trx_size) ); } bool apply_context::cancel_deferred_transaction( const uint128_t& sender_id, account_name sender ) { auto& generated_transaction_idx = db.get_mutable_index<generated_transaction_multi_index>(); const auto* gto = db.find<generated_transaction_object,by_sender_id>(boost::make_tuple(sender, sender_id)); if ( gto ) { add_ram_usage( gto->payer, -(config::billable_size_v<generated_transaction_object> + gto->packed_trx.size()) ); generated_transaction_idx.remove(*gto); } return gto; } const table_id_object* apply_context::find_table( name code, name scope, name table ) { return db.find<table_id_object, by_code_scope_table>(boost::make_tuple(code, scope, table)); } const table_id_object& apply_context::find_or_create_table( name code, name scope, name table, const account_name &payer ) { const auto* existing_tid = db.find<table_id_object, by_code_scope_table>(boost::make_tuple(code, scope, table)); if (existing_tid != nullptr) { return *existing_tid; } update_db_usage(payer, config::billable_size_v<table_id_object>); return db.create<table_id_object>([&](table_id_object &t_id){ t_id.code = code; t_id.scope = scope; t_id.table = table; t_id.payer = payer; }); } void apply_context::remove_table( const table_id_object& tid ) { update_db_usage(tid.payer, - config::billable_size_v<table_id_object>); db.remove(tid); } vector<account_name> apply_context::get_active_producers() const { const auto& ap = control.active_producers(); vector<account_name> accounts; accounts.reserve( ap.producers.size() ); for(const auto& producer : ap.producers ) accounts.push_back(producer.producer_name); return accounts; } void apply_context::reset_console() { _pending_console_output = std::ostringstream(); _pending_console_output.setf( std::ios::scientific, std::ios::floatfield ); } bytes apply_context::get_packed_transaction() { auto r = fc::raw::pack( static_cast<const transaction&>(trx_context.trx) ); return r; } void apply_context::update_db_usage( const account_name& payer, int64_t delta ) { if( delta > 0 ) { if( !(privileged || payer == account_name(receiver)) ) { EOS_ASSERT( control.is_ram_billing_in_notify_allowed() || (receiver == act.account), subjective_block_production_exception, "Cannot charge RAM to other accounts during notify." ); require_authorization( payer ); } } add_ram_usage(payer, delta); } int apply_context::get_action( uint32_t type, uint32_t index, char* buffer, size_t buffer_size )const { const auto& trx = trx_context.trx; const action* act_ptr = nullptr; if( type == 0 ) { if( index >= trx.context_free_actions.size() ) return -1; act_ptr = &trx.context_free_actions[index]; } else if( type == 1 ) { if( index >= trx.actions.size() ) return -1; act_ptr = &trx.actions[index]; } EOS_ASSERT(act_ptr, action_not_found_exception, "action is not found" ); auto ps = fc::raw::pack_size( *act_ptr ); if( ps <= buffer_size ) { fc::datastream<char*> ds(buffer, buffer_size); fc::raw::pack( ds, *act_ptr ); } return ps; } int apply_context::get_context_free_data( uint32_t index, char* buffer, size_t buffer_size )const { const auto& trx = trx_context.trx; if( index >= trx.context_free_data.size() ) return -1; auto s = trx.context_free_data[index].size(); if( buffer_size == 0 ) return s; auto copy_size = std::min( buffer_size, s ); memcpy( buffer, trx.context_free_data[index].data(), copy_size ); return copy_size; } int apply_context::db_store_i64( uint64_t scope, uint64_t table, const account_name& payer, uint64_t id, const char* buffer, size_t buffer_size ) { return db_store_i64( receiver, scope, table, payer, id, buffer, buffer_size); } int apply_context::db_store_i64( uint64_t code, uint64_t scope, uint64_t table, const account_name& payer, uint64_t id, const char* buffer, size_t buffer_size ) { //需要写锁(作用域); const auto& tab = find_or_create_table( code, scope, table, payer ); auto tableid = tab.id; EOS_ASSERT( payer != account_name(), invalid_table_payer, "must specify a valid account to pay for new record" ); const auto& obj = db.create<key_value_object>( [&]( auto& o ) { o.t_id = tableid; o.primary_key = id; o.value.assign( buffer, buffer_size ); o.payer = payer; }); db.modify( tab, [&]( auto& t ) { ++t.count; }); int64_t billable_size = (int64_t)(buffer_size + config::billable_size_v<key_value_object>); update_db_usage( payer, billable_size); keyval_cache.cache_table( tab ); return keyval_cache.add( obj ); } void apply_context::db_update_i64( int iterator, account_name payer, const char* buffer, size_t buffer_size ) { const key_value_object& obj = keyval_cache.get( iterator ); const auto& table_obj = keyval_cache.get_table( obj.t_id ); EOS_ASSERT( table_obj.code == receiver, table_access_violation, "db access violation" ); //需要写锁(表\obj.scope); const int64_t overhead = config::billable_size_v<key_value_object>; int64_t old_size = (int64_t)(obj.value.size() + overhead); int64_t new_size = (int64_t)(buffer_size + overhead); if( payer == account_name() ) payer = obj.payer; if( account_name(obj.payer) != payer ) { //退还现有付款人 update_db_usage( obj.payer, -(old_size) ); //向新付款人收费 update_db_usage( payer, (new_size)); } else if(old_size != new_size) { //向现有付款人收取/退还差额 update_db_usage( obj.payer, new_size - old_size); } db.modify( obj, [&]( auto& o ) { o.value.assign( buffer, buffer_size ); o.payer = payer; }); } void apply_context::db_remove_i64( int iterator ) { const key_value_object& obj = keyval_cache.get( iterator ); const auto& table_obj = keyval_cache.get_table( obj.t_id ); EOS_ASSERT( table_obj.code == receiver, table_access_violation, "db access violation" ); //需要写锁(表\obj.scope); update_db_usage( obj.payer, -(obj.value.size() + config::billable_size_v<key_value_object>) ); db.modify( table_obj, [&]( auto& t ) { --t.count; }); db.remove( obj ); if (table_obj.count == 0) { remove_table(table_obj); } keyval_cache.remove( iterator ); } int apply_context::db_get_i64( int iterator, char* buffer, size_t buffer_size ) { const key_value_object& obj = keyval_cache.get( iterator ); auto s = obj.value.size(); if( buffer_size == 0 ) return s; auto copy_size = std::min( buffer_size, s ); memcpy( buffer, obj.value.data(), copy_size ); return copy_size; } int apply_context::db_next_i64( int iterator, uint64_t& primary ) { if( iterator < -1 ) return -1; //无法增量超过表的结束迭代器 const auto& obj = keyval_cache.get( iterator ); //检查迭代器!=-1在这个呼叫中发生 const auto& idx = db.get_index<key_value_index, by_scope_primary>(); auto itr = idx.iterator_to( obj ); ++itr; if( itr == idx.end() || itr->t_id != obj.t_id ) return keyval_cache.get_end_iterator_by_table_id(obj.t_id); primary = itr->primary_key; return keyval_cache.add( *itr ); } int apply_context::db_previous_i64( int iterator, uint64_t& primary ) { const auto& idx = db.get_index<key_value_index, by_scope_primary>(); if( iterator < -1 ) //结束迭代器 { auto tab = keyval_cache.find_table_by_end_iterator(iterator); EOS_ASSERT( tab, invalid_table_iterator, "not a valid end iterator" ); auto itr = idx.upper_bound(tab->id); if( idx.begin() == idx.end() || itr == idx.begin() ) return -1; //空表 --itr; if( itr->t_id != tab->id ) return -1; //空表 primary = itr->primary_key; return keyval_cache.add(*itr); } const auto& obj = keyval_cache.get(iterator); //检查迭代器!=-1在这个呼叫中发生 auto itr = idx.iterator_to(obj); if( itr == idx.begin() ) return -1; //不能在表的起始迭代器之后递减 --itr; if( itr->t_id != obj.t_id ) return -1; //不能在表的起始迭代器之后递减 primary = itr->primary_key; return keyval_cache.add(*itr); } int apply_context::db_find_i64( uint64_t code, uint64_t scope, uint64_t table, uint64_t id ) { //需要读锁(code,scope);//冗余? const auto* tab = find_table( code, scope, table ); if( !tab ) return -1; auto table_end_itr = keyval_cache.cache_table( *tab ); const key_value_object* obj = db.find<key_value_object, by_scope_primary>( boost::make_tuple( tab->id, id ) ); if( !obj ) return table_end_itr; return keyval_cache.add( *obj ); } int apply_context::db_lowerbound_i64( uint64_t code, uint64_t scope, uint64_t table, uint64_t id ) { //需要读锁(code,scope);//冗余? const auto* tab = find_table( code, scope, table ); if( !tab ) return -1; auto table_end_itr = keyval_cache.cache_table( *tab ); const auto& idx = db.get_index<key_value_index, by_scope_primary>(); auto itr = idx.lower_bound( boost::make_tuple( tab->id, id ) ); if( itr == idx.end() ) return table_end_itr; if( itr->t_id != tab->id ) return table_end_itr; return keyval_cache.add( *itr ); } int apply_context::db_upperbound_i64( uint64_t code, uint64_t scope, uint64_t table, uint64_t id ) { //需要读锁(code,scope);//冗余? const auto* tab = find_table( code, scope, table ); if( !tab ) return -1; auto table_end_itr = keyval_cache.cache_table( *tab ); const auto& idx = db.get_index<key_value_index, by_scope_primary>(); auto itr = idx.upper_bound( boost::make_tuple( tab->id, id ) ); if( itr == idx.end() ) return table_end_itr; if( itr->t_id != tab->id ) return table_end_itr; return keyval_cache.add( *itr ); } int apply_context::db_end_i64( uint64_t code, uint64_t scope, uint64_t table ) { //需要读锁(code,scope);//冗余? const auto* tab = find_table( code, scope, table ); if( !tab ) return -1; return keyval_cache.cache_table( *tab ); } uint64_t apply_context::next_global_sequence() { const auto& p = control.get_dynamic_global_properties(); db.modify( p, [&]( auto& dgp ) { ++dgp.global_action_sequence; }); return p.global_action_sequence; } uint64_t apply_context::next_recv_sequence( account_name receiver ) { const auto& rs = db.get<account_sequence_object,by_name>( receiver ); db.modify( rs, [&]( auto& mrs ) { ++mrs.recv_sequence; }); return rs.recv_sequence; } uint64_t apply_context::next_auth_sequence( account_name actor ) { const auto& rs = db.get<account_sequence_object,by_name>( actor ); db.modify( rs, [&](auto& mrs ){ ++mrs.auth_sequence; }); return rs.auth_sequence; } void apply_context::add_ram_usage( account_name account, int64_t ram_delta ) { trx_context.add_ram_usage( account, ram_delta ); auto p = _account_ram_deltas.emplace( account, ram_delta ); if( !p.second ) { p.first->delta += ram_delta; } } } } ///EOSIO:链
[ "openaichain" ]
openaichain
ffeeb41db0f671fe7b9c4d4c9afb2d7b78534a72
7a92206984e9007948afaa363adbb95c06897a74
/demo/DesignPatternsTest/Builder.cpp
646c6359c29d5dd56c74ef7a9a828aaebf77ab5d
[]
no_license
fengbingchun/Messy_Test
6a801414a36581bce16edbde122b66ac86b57ddb
b55fcfc4b8adc538f9ac70bf78aa391a50b20241
refs/heads/master
2023-06-26T18:07:59.679346
2023-06-22T06:23:16
2023-06-22T06:23:16
55,020,860
305
171
null
null
null
null
UTF-8
C++
false
false
1,729
cpp
#include "Builder.hpp" #include "director.hpp" // Blog: http://blog.csdn.net/fengbingchun/article/details/22593157 Builder_1::Builder_1() { } Builder_1::~Builder_1() { } ConcreteBuilder::ConcreteBuilder() { } ConcreteBuilder::~ConcreteBuilder() { } void ConcreteBuilder::BuildPartA(const std::string& buildPara) { std::cout << "Step1:Build PartA ..." << buildPara << std::endl; } void ConcreteBuilder::BuildPartB(const std::string& buildPara) { std::cout << "Step1:Build PartB ..." << buildPara << std::endl; } void ConcreteBuilder::BuildPartC(const std::string& buildPara) { std::cout << "Step1:Build PartC ..." << buildPara << std::endl; } Product* ConcreteBuilder::GetProduct() { BuildPartA("pre-defined"); BuildPartB("pre-defined"); BuildPartC("pre-defined"); return new Product(); } int test_Builder1() { Direct* p = new Direct(); Builder* b1 = new ConCreteBuilder1(); Builder* b2 = new ConcreteBuilder2(); p->Construct(b1);//调用第一种方式 Product* pb1 = b1->GetResult(); pb1->Show(); p->Construct(b2);//调用第二种方式 Product* pb2 = b2->GetResult(); pb2->Show(); /* result: one two A B */ return 0; } int test_Builder2() { Person* p = new ThickPerson(); Direct_* d = new Direct_(p); d->Create(); delete d; delete p; /*result: ThickPerson head ThickPerson hand ThickPerson body ThickPerson foot */ return 0; } int test_Builder3() { Director* d = new Director(new ConcreteBuilder()); d->Construct(); /*result: Step1:Build PartA ...user-defined Step1:Build PartB ...user-defined Step1:Build PartC ...user-defined */ return 0; }
[ "fengbingchun@163.com" ]
fengbingchun@163.com
bddfcacada3b737a025fcf7c7eccf3ad326725b3
7d2a0e66f73ff0746f3195566321e39f0b7f13c9
/talk/media/webrtc/webrtcvideoengine.cc
e95e1422d77dc2188aff7e1a87e4d8a3da690326
[]
no_license
jeidee/xmpp_p2p_exported_from_libjingle
7027eb0e5ad2cfb2bdd7edb9c2dfabfa40219ad6
738183945910c66d0de6b55b3fbe2a8e9e1880ea
refs/heads/master
2020-03-27T19:04:57.951621
2016-06-21T12:46:36
2016-06-21T12:46:36
61,092,613
1
0
null
null
null
null
UTF-8
C++
false
false
121,519
cc
/* * libjingle * Copyright 2004 Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifdef HAVE_WEBRTC_VIDEO #include "talk/media/webrtc/webrtcvideoengine.h" #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <math.h> #include <set> #include "talk/base/basictypes.h" #include "talk/base/buffer.h" #include "talk/base/byteorder.h" #include "talk/base/common.h" #include "talk/base/cpumonitor.h" #include "talk/base/logging.h" #include "talk/base/stringutils.h" #include "talk/base/thread.h" #include "talk/base/timeutils.h" #include "talk/media/base/constants.h" #include "talk/media/base/rtputils.h" #include "talk/media/base/streamparams.h" #include "talk/media/base/videoadapter.h" #include "talk/media/base/videocapturer.h" #include "talk/media/base/videorenderer.h" #include "talk/media/devices/filevideocapturer.h" #include "talk/media/webrtc/webrtcvideodecoderfactory.h" #include "talk/media/webrtc/webrtcvideoencoderfactory.h" #include "talk/media/webrtc/webrtcpassthroughrender.h" #include "talk/media/webrtc/webrtcvideocapturer.h" #include "talk/media/webrtc/webrtcvideoframe.h" #include "talk/media/webrtc/webrtcvie.h" #include "talk/media/webrtc/webrtcvoe.h" #include "talk/media/webrtc/webrtcvoiceengine.h" #if !defined(LIBPEERCONNECTION_LIB) #ifndef HAVE_WEBRTC_VIDEO #error Need webrtc video #endif #include "talk/media/webrtc/webrtcmediaengine.h" WRME_EXPORT cricket::MediaEngineInterface* CreateWebRtcMediaEngine( webrtc::AudioDeviceModule* adm, webrtc::AudioDeviceModule* adm_sc, cricket::WebRtcVideoEncoderFactory* encoder_factory, cricket::WebRtcVideoDecoderFactory* decoder_factory) { return new cricket::WebRtcMediaEngine(adm, adm_sc, encoder_factory, decoder_factory); } WRME_EXPORT void DestroyWebRtcMediaEngine(cricket::MediaEngineInterface* media_engine) { delete static_cast<cricket::WebRtcMediaEngine*>(media_engine); } #endif namespace cricket { static const int kDefaultLogSeverity = talk_base::LS_WARNING; static const int kMinVideoBitrate = 50; static const int kStartVideoBitrate = 300; static const int kMaxVideoBitrate = 2000; static const int kDefaultConferenceModeMaxVideoBitrate = 500; static const int kVideoMtu = 1200; static const int kVideoRtpBufferSize = 65536; static const char kVp8PayloadName[] = "VP8"; static const char kRedPayloadName[] = "red"; static const char kFecPayloadName[] = "ulpfec"; static const int kDefaultNumberOfTemporalLayers = 1; // 1:1 static const int kTimestampDeltaInSecondsForWarning = 2; static const int kMaxExternalVideoCodecs = 8; static const int kExternalVideoPayloadTypeBase = 120; // Static allocation of payload type values for external video codec. static int GetExternalVideoPayloadType(int index) { ASSERT(index >= 0 && index < kMaxExternalVideoCodecs); return kExternalVideoPayloadTypeBase + index; } static void LogMultiline(talk_base::LoggingSeverity sev, char* text) { const char* delim = "\r\n"; // TODO(fbarchard): Fix strtok lint warning. for (char* tok = strtok(text, delim); tok; tok = strtok(NULL, delim)) { LOG_V(sev) << tok; } } // Severity is an integer because it comes is assumed to be from command line. static int SeverityToFilter(int severity) { int filter = webrtc::kTraceNone; switch (severity) { case talk_base::LS_VERBOSE: filter |= webrtc::kTraceAll; case talk_base::LS_INFO: filter |= (webrtc::kTraceStateInfo | webrtc::kTraceInfo); case talk_base::LS_WARNING: filter |= (webrtc::kTraceTerseInfo | webrtc::kTraceWarning); case talk_base::LS_ERROR: filter |= (webrtc::kTraceError | webrtc::kTraceCritical); } return filter; } static const int kCpuMonitorPeriodMs = 2000; // 2 seconds. static const bool kNotSending = false; // Extension header for RTP timestamp offset, see RFC 5450 for details: // http://tools.ietf.org/html/rfc5450 static const char kRtpTimestampOffsetHeaderExtension[] = "urn:ietf:params:rtp-hdrext:toffset"; static const int kRtpTimeOffsetExtensionId = 2; // Extension header for absolute send time, see url for details: // http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time static const char kRtpAbsoluteSendTimeHeaderExtension[] = "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; static const int kRtpAbsoluteSendTimeExtensionId = 3; static bool IsNackEnabled(const VideoCodec& codec) { return codec.HasFeedbackParam(FeedbackParam(kRtcpFbParamNack, kParamValueEmpty)); } // Returns true if Receiver Estimated Max Bitrate is enabled. static bool IsRembEnabled(const VideoCodec& codec) { return codec.HasFeedbackParam(FeedbackParam(kRtcpFbParamRemb, kParamValueEmpty)); } struct FlushBlackFrameData : public talk_base::MessageData { FlushBlackFrameData(uint32 s, int64 t) : ssrc(s), timestamp(t) { } uint32 ssrc; int64 timestamp; }; class WebRtcRenderAdapter : public webrtc::ExternalRenderer { public: explicit WebRtcRenderAdapter(VideoRenderer* renderer) : renderer_(renderer), width_(0), height_(0), watermark_enabled_(false) { } virtual ~WebRtcRenderAdapter() { } void set_watermark_enabled(bool enable) { talk_base::CritScope cs(&crit_); watermark_enabled_ = enable; } void SetRenderer(VideoRenderer* renderer) { talk_base::CritScope cs(&crit_); renderer_ = renderer; // FrameSizeChange may have already been called when renderer was not set. // If so we should call SetSize here. // TODO(ronghuawu): Add unit test for this case. Didn't do it now // because the WebRtcRenderAdapter is currently hiding in cc file. No // good way to get access to it from the unit test. if (width_ > 0 && height_ > 0 && renderer_ != NULL) { if (!renderer_->SetSize(width_, height_, 0)) { LOG(LS_ERROR) << "WebRtcRenderAdapter SetRenderer failed to SetSize to: " << width_ << "x" << height_; } } } // Implementation of webrtc::ExternalRenderer. virtual int FrameSizeChange(unsigned int width, unsigned int height, unsigned int /*number_of_streams*/) { talk_base::CritScope cs(&crit_); width_ = width; height_ = height; LOG(LS_INFO) << "WebRtcRenderAdapter frame size changed to: " << width << "x" << height; if (renderer_ == NULL) { LOG(LS_VERBOSE) << "WebRtcRenderAdapter the renderer has not been set. " << "SetSize will be called later in SetRenderer."; return 0; } return renderer_->SetSize(width_, height_, 0) ? 0 : -1; } virtual int DeliverFrame(unsigned char* buffer, int buffer_size, uint32_t time_stamp, int64_t render_time) { talk_base::CritScope cs(&crit_); frame_rate_tracker_.Update(1); if (renderer_ == NULL) { return 0; } WebRtcVideoFrame video_frame; // Convert 90K rtp timestamp to ns timestamp. int64 rtp_time_stamp_in_ns = (time_stamp / 90) * talk_base::kNumNanosecsPerMillisec; // Convert milisecond render time to ns timestamp. int64 render_time_stamp_in_ns = render_time * talk_base::kNumNanosecsPerMillisec; // Send the rtp timestamp to renderer as the VideoFrame timestamp. // and the render timestamp as the VideoFrame elapsed_time. video_frame.Attach(buffer, buffer_size, width_, height_, 1, 1, render_time_stamp_in_ns, rtp_time_stamp_in_ns, 0); // Sanity check on decoded frame size. if (buffer_size != static_cast<int>(VideoFrame::SizeOf(width_, height_))) { LOG(LS_WARNING) << "WebRtcRenderAdapter received a strange frame size: " << buffer_size; } int ret = renderer_->RenderFrame(&video_frame) ? 0 : -1; uint8* buffer_temp; size_t buffer_size_temp; video_frame.Detach(&buffer_temp, &buffer_size_temp); return ret; } unsigned int width() { talk_base::CritScope cs(&crit_); return width_; } unsigned int height() { talk_base::CritScope cs(&crit_); return height_; } int framerate() { talk_base::CritScope cs(&crit_); return static_cast<int>(frame_rate_tracker_.units_second()); } VideoRenderer* renderer() { talk_base::CritScope cs(&crit_); return renderer_; } private: talk_base::CriticalSection crit_; VideoRenderer* renderer_; unsigned int width_; unsigned int height_; talk_base::RateTracker frame_rate_tracker_; bool watermark_enabled_; }; class WebRtcDecoderObserver : public webrtc::ViEDecoderObserver { public: explicit WebRtcDecoderObserver(int video_channel) : video_channel_(video_channel), framerate_(0), bitrate_(0), firs_requested_(0) { } // virtual functions from VieDecoderObserver. virtual void IncomingCodecChanged(const int videoChannel, const webrtc::VideoCodec& videoCodec) {} virtual void IncomingRate(const int videoChannel, const unsigned int framerate, const unsigned int bitrate) { ASSERT(video_channel_ == videoChannel); framerate_ = framerate; bitrate_ = bitrate; } virtual void RequestNewKeyFrame(const int videoChannel) { ASSERT(video_channel_ == videoChannel); ++firs_requested_; } int framerate() const { return framerate_; } int bitrate() const { return bitrate_; } int firs_requested() const { return firs_requested_; } private: int video_channel_; int framerate_; int bitrate_; int firs_requested_; }; class WebRtcEncoderObserver : public webrtc::ViEEncoderObserver { public: explicit WebRtcEncoderObserver(int video_channel) : video_channel_(video_channel), framerate_(0), bitrate_(0) { } // virtual functions from VieEncoderObserver. virtual void OutgoingRate(const int videoChannel, const unsigned int framerate, const unsigned int bitrate) { ASSERT(video_channel_ == videoChannel); framerate_ = framerate; bitrate_ = bitrate; } int framerate() const { return framerate_; } int bitrate() const { return bitrate_; } private: int video_channel_; int framerate_; int bitrate_; }; class WebRtcLocalStreamInfo { public: WebRtcLocalStreamInfo() : width_(0), height_(0), elapsed_time_(-1), time_stamp_(-1) {} size_t width() const { talk_base::CritScope cs(&crit_); return width_; } size_t height() const { talk_base::CritScope cs(&crit_); return height_; } int64 elapsed_time() const { talk_base::CritScope cs(&crit_); return elapsed_time_; } int64 time_stamp() const { talk_base::CritScope cs(&crit_); return time_stamp_; } int framerate() { talk_base::CritScope cs(&crit_); return static_cast<int>(rate_tracker_.units_second()); } void GetLastFrameInfo( size_t* width, size_t* height, int64* elapsed_time) const { talk_base::CritScope cs(&crit_); *width = width_; *height = height_; *elapsed_time = elapsed_time_; } void UpdateFrame(const VideoFrame* frame) { talk_base::CritScope cs(&crit_); width_ = frame->GetWidth(); height_ = frame->GetHeight(); elapsed_time_ = frame->GetElapsedTime(); time_stamp_ = frame->GetTimeStamp(); rate_tracker_.Update(1); } private: mutable talk_base::CriticalSection crit_; size_t width_; size_t height_; int64 elapsed_time_; int64 time_stamp_; talk_base::RateTracker rate_tracker_; DISALLOW_COPY_AND_ASSIGN(WebRtcLocalStreamInfo); }; // WebRtcVideoChannelRecvInfo is a container class with members such as renderer // and a decoder observer that is used by receive channels. // It must exist as long as the receive channel is connected to renderer or a // decoder observer in this class and methods in the class should only be called // from the worker thread. class WebRtcVideoChannelRecvInfo { public: typedef std::map<int, webrtc::VideoDecoder*> DecoderMap; // key: payload type explicit WebRtcVideoChannelRecvInfo(int channel_id) : channel_id_(channel_id), render_adapter_(NULL), decoder_observer_(channel_id) { } int channel_id() { return channel_id_; } void SetRenderer(VideoRenderer* renderer) { render_adapter_.SetRenderer(renderer); } WebRtcRenderAdapter* render_adapter() { return &render_adapter_; } WebRtcDecoderObserver* decoder_observer() { return &decoder_observer_; } void RegisterDecoder(int pl_type, webrtc::VideoDecoder* decoder) { ASSERT(!IsDecoderRegistered(pl_type)); registered_decoders_[pl_type] = decoder; } bool IsDecoderRegistered(int pl_type) { return registered_decoders_.count(pl_type) != 0; } const DecoderMap& registered_decoders() { return registered_decoders_; } void ClearRegisteredDecoders() { registered_decoders_.clear(); } private: int channel_id_; // Webrtc video channel number. // Renderer for this channel. WebRtcRenderAdapter render_adapter_; WebRtcDecoderObserver decoder_observer_; DecoderMap registered_decoders_; }; class WebRtcVideoChannelSendInfo { public: typedef std::map<int, webrtc::VideoEncoder*> EncoderMap; // key: payload type WebRtcVideoChannelSendInfo(int channel_id, int capture_id, webrtc::ViEExternalCapture* external_capture, talk_base::CpuMonitor* cpu_monitor) : channel_id_(channel_id), capture_id_(capture_id), sending_(false), muted_(false), video_capturer_(NULL), encoder_observer_(channel_id), external_capture_(external_capture), capturer_updated_(false), interval_(0), video_adapter_(new CoordinatedVideoAdapter) { // TODO(asapersson): // video_adapter_->SignalCpuAdaptationUnable.connect( // this, &WebRtcVideoChannelSendInfo::OnCpuAdaptationUnable); if (cpu_monitor) { cpu_monitor->SignalUpdate.connect( video_adapter_.get(), &CoordinatedVideoAdapter::OnCpuLoadUpdated); } } int channel_id() const { return channel_id_; } int capture_id() const { return capture_id_; } void set_sending(bool sending) { sending_ = sending; } bool sending() const { return sending_; } void set_muted(bool on) { // TODO(asapersson): add support. // video_adapter_->SetBlackOutput(on); muted_ = on; } bool muted() {return muted_; } WebRtcEncoderObserver* encoder_observer() { return &encoder_observer_; } webrtc::ViEExternalCapture* external_capture() { return external_capture_; } const VideoFormat& video_format() const { return video_format_; } void set_video_format(const VideoFormat& video_format) { video_format_ = video_format; if (video_format_ != cricket::VideoFormat()) { interval_ = video_format_.interval; } video_adapter_->OnOutputFormatRequest(video_format_); } void set_interval(int64 interval) { if (video_format() == cricket::VideoFormat()) { interval_ = interval; } } int64 interval() { return interval_; } void InitializeAdapterOutputFormat(const webrtc::VideoCodec& codec) { VideoFormat format(codec.width, codec.height, VideoFormat::FpsToInterval(codec.maxFramerate), FOURCC_I420); if (video_adapter_->output_format().IsSize0x0()) { video_adapter_->SetOutputFormat(format); } } bool AdaptFrame(const VideoFrame* in_frame, const VideoFrame** out_frame) { *out_frame = NULL; return video_adapter_->AdaptFrame(in_frame, out_frame); } int CurrentAdaptReason() const { return video_adapter_->adapt_reason(); } StreamParams* stream_params() { return stream_params_.get(); } void set_stream_params(const StreamParams& sp) { stream_params_.reset(new StreamParams(sp)); } void ClearStreamParams() { stream_params_.reset(); } bool has_ssrc(uint32 local_ssrc) const { return !stream_params_ ? false : stream_params_->has_ssrc(local_ssrc); } WebRtcLocalStreamInfo* local_stream_info() { return &local_stream_info_; } VideoCapturer* video_capturer() { return video_capturer_; } void set_video_capturer(VideoCapturer* video_capturer) { if (video_capturer == video_capturer_) { return; } capturer_updated_ = true; video_capturer_ = video_capturer; if (video_capturer && !video_capturer->IsScreencast()) { const VideoFormat* capture_format = video_capturer->GetCaptureFormat(); if (capture_format) { // TODO(thorcarpenter): This is broken. Video capturer doesn't have // a capture format until the capturer is started. So, if // the capturer is started immediately after calling set_video_capturer // video adapter may not have the input format set, the interval may // be zero, and all frames may be dropped. // Consider fixing this by having video_adapter keep a pointer to the // video capturer. video_adapter_->SetInputFormat(*capture_format); } } } void ApplyCpuOptions(const VideoOptions& options) { bool cpu_adapt, cpu_smoothing; float low, med, high; if (options.adapt_input_to_cpu_usage.Get(&cpu_adapt)) { video_adapter_->set_cpu_adaptation(cpu_adapt); } if (options.adapt_cpu_with_smoothing.Get(&cpu_smoothing)) { video_adapter_->set_cpu_smoothing(cpu_smoothing); } if (options.process_adaptation_threshhold.Get(&med)) { video_adapter_->set_process_threshold(med); } if (options.system_low_adaptation_threshhold.Get(&low)) { video_adapter_->set_low_system_threshold(low); } if (options.system_high_adaptation_threshhold.Get(&high)) { video_adapter_->set_high_system_threshold(high); } } void ProcessFrame(const VideoFrame& original_frame, bool mute, VideoFrame** processed_frame) { if (!mute) { *processed_frame = original_frame.Copy(); } else { WebRtcVideoFrame* black_frame = new WebRtcVideoFrame(); black_frame->InitToBlack(static_cast<int>(original_frame.GetWidth()), static_cast<int>(original_frame.GetHeight()), 1, 1, original_frame.GetElapsedTime(), original_frame.GetTimeStamp()); *processed_frame = black_frame; } local_stream_info_.UpdateFrame(*processed_frame); } void RegisterEncoder(int pl_type, webrtc::VideoEncoder* encoder) { ASSERT(!IsEncoderRegistered(pl_type)); registered_encoders_[pl_type] = encoder; } bool IsEncoderRegistered(int pl_type) { return registered_encoders_.count(pl_type) != 0; } const EncoderMap& registered_encoders() { return registered_encoders_; } void ClearRegisteredEncoders() { registered_encoders_.clear(); } private: int channel_id_; int capture_id_; bool sending_; bool muted_; VideoCapturer* video_capturer_; WebRtcEncoderObserver encoder_observer_; webrtc::ViEExternalCapture* external_capture_; EncoderMap registered_encoders_; VideoFormat video_format_; talk_base::scoped_ptr<StreamParams> stream_params_; WebRtcLocalStreamInfo local_stream_info_; bool capturer_updated_; int64 interval_; talk_base::scoped_ptr<CoordinatedVideoAdapter> video_adapter_; }; const WebRtcVideoEngine::VideoCodecPref WebRtcVideoEngine::kVideoCodecPrefs[] = { {kVp8PayloadName, 100, 0}, {kRedPayloadName, 116, 1}, {kFecPayloadName, 117, 2}, }; // The formats are sorted by the descending order of width. We use the order to // find the next format for CPU and bandwidth adaptation. const VideoFormatPod WebRtcVideoEngine::kVideoFormats[] = { {1280, 800, FPS_TO_INTERVAL(30), FOURCC_ANY}, {1280, 720, FPS_TO_INTERVAL(30), FOURCC_ANY}, {960, 600, FPS_TO_INTERVAL(30), FOURCC_ANY}, {960, 540, FPS_TO_INTERVAL(30), FOURCC_ANY}, {640, 400, FPS_TO_INTERVAL(30), FOURCC_ANY}, {640, 360, FPS_TO_INTERVAL(30), FOURCC_ANY}, {640, 480, FPS_TO_INTERVAL(30), FOURCC_ANY}, {480, 300, FPS_TO_INTERVAL(30), FOURCC_ANY}, {480, 270, FPS_TO_INTERVAL(30), FOURCC_ANY}, {480, 360, FPS_TO_INTERVAL(30), FOURCC_ANY}, {320, 200, FPS_TO_INTERVAL(30), FOURCC_ANY}, {320, 180, FPS_TO_INTERVAL(30), FOURCC_ANY}, {320, 240, FPS_TO_INTERVAL(30), FOURCC_ANY}, {240, 150, FPS_TO_INTERVAL(30), FOURCC_ANY}, {240, 135, FPS_TO_INTERVAL(30), FOURCC_ANY}, {240, 180, FPS_TO_INTERVAL(30), FOURCC_ANY}, {160, 100, FPS_TO_INTERVAL(30), FOURCC_ANY}, {160, 90, FPS_TO_INTERVAL(30), FOURCC_ANY}, {160, 120, FPS_TO_INTERVAL(30), FOURCC_ANY}, }; const VideoFormatPod WebRtcVideoEngine::kDefaultVideoFormat = {640, 400, FPS_TO_INTERVAL(30), FOURCC_ANY}; static void UpdateVideoCodec(const cricket::VideoFormat& video_format, webrtc::VideoCodec* target_codec) { if ((target_codec == NULL) || (video_format == cricket::VideoFormat())) { return; } target_codec->width = video_format.width; target_codec->height = video_format.height; target_codec->maxFramerate = cricket::VideoFormat::IntervalToFps( video_format.interval); } WebRtcVideoEngine::WebRtcVideoEngine() { Construct(new ViEWrapper(), new ViETraceWrapper(), NULL, new talk_base::CpuMonitor(NULL)); } WebRtcVideoEngine::WebRtcVideoEngine(WebRtcVoiceEngine* voice_engine, ViEWrapper* vie_wrapper, talk_base::CpuMonitor* cpu_monitor) { Construct(vie_wrapper, new ViETraceWrapper(), voice_engine, cpu_monitor); } WebRtcVideoEngine::WebRtcVideoEngine(WebRtcVoiceEngine* voice_engine, ViEWrapper* vie_wrapper, ViETraceWrapper* tracing, talk_base::CpuMonitor* cpu_monitor) { Construct(vie_wrapper, tracing, voice_engine, cpu_monitor); } void WebRtcVideoEngine::Construct(ViEWrapper* vie_wrapper, ViETraceWrapper* tracing, WebRtcVoiceEngine* voice_engine, talk_base::CpuMonitor* cpu_monitor) { LOG(LS_INFO) << "WebRtcVideoEngine::WebRtcVideoEngine"; worker_thread_ = NULL; vie_wrapper_.reset(vie_wrapper); vie_wrapper_base_initialized_ = false; tracing_.reset(tracing); voice_engine_ = voice_engine; initialized_ = false; SetTraceFilter(SeverityToFilter(kDefaultLogSeverity)); render_module_.reset(new WebRtcPassthroughRender()); local_renderer_w_ = local_renderer_h_ = 0; local_renderer_ = NULL; capture_started_ = false; decoder_factory_ = NULL; encoder_factory_ = NULL; cpu_monitor_.reset(cpu_monitor); SetTraceOptions(""); if (tracing_->SetTraceCallback(this) != 0) { LOG_RTCERR1(SetTraceCallback, this); } // Set default quality levels for our supported codecs. We override them here // if we know your cpu performance is low, and they can be updated explicitly // by calling SetDefaultCodec. For example by a flute preference setting, or // by the server with a jec in response to our reported system info. VideoCodec max_codec(kVideoCodecPrefs[0].payload_type, kVideoCodecPrefs[0].name, kDefaultVideoFormat.width, kDefaultVideoFormat.height, VideoFormat::IntervalToFps(kDefaultVideoFormat.interval), 0); if (!SetDefaultCodec(max_codec)) { LOG(LS_ERROR) << "Failed to initialize list of supported codec types"; } // Load our RTP Header extensions. rtp_header_extensions_.push_back( RtpHeaderExtension(kRtpTimestampOffsetHeaderExtension, kRtpTimeOffsetExtensionId)); rtp_header_extensions_.push_back( RtpHeaderExtension(kRtpAbsoluteSendTimeHeaderExtension, kRtpAbsoluteSendTimeExtensionId)); } WebRtcVideoEngine::~WebRtcVideoEngine() { LOG(LS_INFO) << "WebRtcVideoEngine::~WebRtcVideoEngine"; if (initialized_) { Terminate(); } if (encoder_factory_) { encoder_factory_->RemoveObserver(this); } tracing_->SetTraceCallback(NULL); // Test to see if the media processor was deregistered properly. ASSERT(SignalMediaFrame.is_empty()); } bool WebRtcVideoEngine::Init(talk_base::Thread* worker_thread) { LOG(LS_INFO) << "WebRtcVideoEngine::Init"; worker_thread_ = worker_thread; ASSERT(worker_thread_ != NULL); cpu_monitor_->set_thread(worker_thread_); if (!cpu_monitor_->Start(kCpuMonitorPeriodMs)) { LOG(LS_ERROR) << "Failed to start CPU monitor."; cpu_monitor_.reset(); } bool result = InitVideoEngine(); if (result) { LOG(LS_INFO) << "VideoEngine Init done"; } else { LOG(LS_ERROR) << "VideoEngine Init failed, releasing"; Terminate(); } return result; } bool WebRtcVideoEngine::InitVideoEngine() { LOG(LS_INFO) << "WebRtcVideoEngine::InitVideoEngine"; // Init WebRTC VideoEngine. if (!vie_wrapper_base_initialized_) { if (vie_wrapper_->base()->Init() != 0) { LOG_RTCERR0(Init); return false; } vie_wrapper_base_initialized_ = true; } // Log the VoiceEngine version info. char buffer[1024] = ""; if (vie_wrapper_->base()->GetVersion(buffer) != 0) { LOG_RTCERR0(GetVersion); return false; } LOG(LS_INFO) << "WebRtc VideoEngine Version:"; LogMultiline(talk_base::LS_INFO, buffer); // Hook up to VoiceEngine for sync purposes, if supplied. if (!voice_engine_) { LOG(LS_WARNING) << "NULL voice engine"; } else if ((vie_wrapper_->base()->SetVoiceEngine( voice_engine_->voe()->engine())) != 0) { LOG_RTCERR0(SetVoiceEngine); return false; } // Register our custom render module. if (vie_wrapper_->render()->RegisterVideoRenderModule( *render_module_.get()) != 0) { LOG_RTCERR0(RegisterVideoRenderModule); return false; } initialized_ = true; return true; } void WebRtcVideoEngine::Terminate() { LOG(LS_INFO) << "WebRtcVideoEngine::Terminate"; initialized_ = false; if (vie_wrapper_->render()->DeRegisterVideoRenderModule( *render_module_.get()) != 0) { LOG_RTCERR0(DeRegisterVideoRenderModule); } if (vie_wrapper_->base()->SetVoiceEngine(NULL) != 0) { LOG_RTCERR0(SetVoiceEngine); } cpu_monitor_->Stop(); } int WebRtcVideoEngine::GetCapabilities() { return VIDEO_RECV | VIDEO_SEND; } bool WebRtcVideoEngine::SetOptions(int options) { return true; } bool WebRtcVideoEngine::SetDefaultEncoderConfig( const VideoEncoderConfig& config) { return SetDefaultCodec(config.max_codec); } // SetDefaultCodec may be called while the capturer is running. For example, a // test call is started in a page with QVGA default codec, and then a real call // is started in another page with VGA default codec. This is the corner case // and happens only when a session is started. We ignore this case currently. bool WebRtcVideoEngine::SetDefaultCodec(const VideoCodec& codec) { if (!RebuildCodecList(codec)) { LOG(LS_WARNING) << "Failed to RebuildCodecList"; return false; } default_codec_format_ = VideoFormat( video_codecs_[0].width, video_codecs_[0].height, VideoFormat::FpsToInterval(video_codecs_[0].framerate), FOURCC_ANY); return true; } WebRtcVideoMediaChannel* WebRtcVideoEngine::CreateChannel( VoiceMediaChannel* voice_channel) { WebRtcVideoMediaChannel* channel = new WebRtcVideoMediaChannel(this, voice_channel); if (!channel->Init()) { delete channel; channel = NULL; } return channel; } bool WebRtcVideoEngine::SetLocalRenderer(VideoRenderer* renderer) { local_renderer_w_ = local_renderer_h_ = 0; local_renderer_ = renderer; return true; } const std::vector<VideoCodec>& WebRtcVideoEngine::codecs() const { return video_codecs_; } const std::vector<RtpHeaderExtension>& WebRtcVideoEngine::rtp_header_extensions() const { return rtp_header_extensions_; } void WebRtcVideoEngine::SetLogging(int min_sev, const char* filter) { // if min_sev == -1, we keep the current log level. if (min_sev >= 0) { SetTraceFilter(SeverityToFilter(min_sev)); } SetTraceOptions(filter); } int WebRtcVideoEngine::GetLastEngineError() { return vie_wrapper_->error(); } // Checks to see whether we comprehend and could receive a particular codec bool WebRtcVideoEngine::FindCodec(const VideoCodec& in) { for (int i = 0; i < ARRAY_SIZE(kVideoFormats); ++i) { const VideoFormat fmt(kVideoFormats[i]); if ((in.width == 0 && in.height == 0) || (fmt.width == in.width && fmt.height == in.height)) { if (encoder_factory_) { const std::vector<WebRtcVideoEncoderFactory::VideoCodec>& codecs = encoder_factory_->codecs(); for (size_t j = 0; j < codecs.size(); ++j) { VideoCodec codec(GetExternalVideoPayloadType(static_cast<int>(j)), codecs[j].name, 0, 0, 0, 0); if (codec.Matches(in)) return true; } } for (size_t j = 0; j < ARRAY_SIZE(kVideoCodecPrefs); ++j) { VideoCodec codec(kVideoCodecPrefs[j].payload_type, kVideoCodecPrefs[j].name, 0, 0, 0, 0); if (codec.Matches(in)) { return true; } } } } return false; } // Given the requested codec, returns true if we can send that codec type and // updates out with the best quality we could send for that codec. If current is // not empty, we constrain out so that its aspect ratio matches current's. bool WebRtcVideoEngine::CanSendCodec(const VideoCodec& requested, const VideoCodec& current, VideoCodec* out) { if (!out) { return false; } std::vector<VideoCodec>::const_iterator local_max; for (local_max = video_codecs_.begin(); local_max < video_codecs_.end(); ++local_max) { // First match codecs by payload type if (!requested.Matches(*local_max)) { continue; } out->id = requested.id; out->name = requested.name; out->preference = requested.preference; out->params = requested.params; out->framerate = talk_base::_min(requested.framerate, local_max->framerate); out->width = 0; out->height = 0; out->params = requested.params; out->feedback_params = requested.feedback_params; if (0 == requested.width && 0 == requested.height) { // Special case with resolution 0. The channel should not send frames. return true; } else if (0 == requested.width || 0 == requested.height) { // 0xn and nx0 are invalid resolutions. return false; } // Pick the best quality that is within their and our bounds and has the // correct aspect ratio. for (int j = 0; j < ARRAY_SIZE(kVideoFormats); ++j) { const VideoFormat format(kVideoFormats[j]); // Skip any format that is larger than the local or remote maximums, or // smaller than the current best match if (format.width > requested.width || format.height > requested.height || format.width > local_max->width || (format.width < out->width && format.height < out->height)) { continue; } bool better = false; // Check any further constraints on this prospective format if (!out->width || !out->height) { // If we don't have any matches yet, this is the best so far. better = true; } else if (current.width && current.height) { // current is set so format must match its ratio exactly. better = (format.width * current.height == format.height * current.width); } else { // Prefer closer aspect ratios i.e // format.aspect - requested.aspect < out.aspect - requested.aspect better = abs(format.width * requested.height * out->height - requested.width * format.height * out->height) < abs(out->width * format.height * requested.height - requested.width * format.height * out->height); } if (better) { out->width = format.width; out->height = format.height; } } if (out->width > 0) { return true; } } return false; } static void ConvertToCricketVideoCodec( const webrtc::VideoCodec& in_codec, VideoCodec* out_codec) { out_codec->id = in_codec.plType; out_codec->name = in_codec.plName; out_codec->width = in_codec.width; out_codec->height = in_codec.height; out_codec->framerate = in_codec.maxFramerate; out_codec->SetParam(kCodecParamMinBitrate, in_codec.minBitrate); out_codec->SetParam(kCodecParamMaxBitrate, in_codec.maxBitrate); if (in_codec.qpMax) { out_codec->SetParam(kCodecParamMaxQuantization, in_codec.qpMax); } } bool WebRtcVideoEngine::ConvertFromCricketVideoCodec( const VideoCodec& in_codec, webrtc::VideoCodec* out_codec) { bool found = false; int ncodecs = vie_wrapper_->codec()->NumberOfCodecs(); for (int i = 0; i < ncodecs; ++i) { if (vie_wrapper_->codec()->GetCodec(i, *out_codec) == 0 && _stricmp(in_codec.name.c_str(), out_codec->plName) == 0) { found = true; break; } } // If not found, check if this is supported by external encoder factory. if (!found && encoder_factory_) { const std::vector<WebRtcVideoEncoderFactory::VideoCodec>& codecs = encoder_factory_->codecs(); for (size_t i = 0; i < codecs.size(); ++i) { if (_stricmp(in_codec.name.c_str(), codecs[i].name.c_str()) == 0) { out_codec->codecType = codecs[i].type; out_codec->plType = GetExternalVideoPayloadType(static_cast<int>(i)); talk_base::strcpyn(out_codec->plName, sizeof(out_codec->plName), codecs[i].name.c_str(), codecs[i].name.length()); found = true; break; } } } if (!found) { LOG(LS_ERROR) << "invalid codec type"; return false; } if (in_codec.id != 0) out_codec->plType = in_codec.id; if (in_codec.width != 0) out_codec->width = in_codec.width; if (in_codec.height != 0) out_codec->height = in_codec.height; if (in_codec.framerate != 0) out_codec->maxFramerate = in_codec.framerate; // Convert bitrate parameters. int max_bitrate = kMaxVideoBitrate; int min_bitrate = kMinVideoBitrate; int start_bitrate = kStartVideoBitrate; in_codec.GetParam(kCodecParamMinBitrate, &min_bitrate); in_codec.GetParam(kCodecParamMaxBitrate, &max_bitrate); if (max_bitrate < min_bitrate) { return false; } start_bitrate = talk_base::_max(start_bitrate, min_bitrate); start_bitrate = talk_base::_min(start_bitrate, max_bitrate); out_codec->minBitrate = min_bitrate; out_codec->startBitrate = start_bitrate; out_codec->maxBitrate = max_bitrate; // Convert general codec parameters. int max_quantization = 0; if (in_codec.GetParam(kCodecParamMaxQuantization, &max_quantization)) { if (max_quantization < 0) { return false; } out_codec->qpMax = max_quantization; } return true; } void WebRtcVideoEngine::RegisterChannel(WebRtcVideoMediaChannel *channel) { talk_base::CritScope cs(&channels_crit_); channels_.push_back(channel); } void WebRtcVideoEngine::UnregisterChannel(WebRtcVideoMediaChannel *channel) { talk_base::CritScope cs(&channels_crit_); channels_.erase(std::remove(channels_.begin(), channels_.end(), channel), channels_.end()); } bool WebRtcVideoEngine::SetVoiceEngine(WebRtcVoiceEngine* voice_engine) { if (initialized_) { LOG(LS_WARNING) << "SetVoiceEngine can not be called after Init"; return false; } voice_engine_ = voice_engine; return true; } bool WebRtcVideoEngine::EnableTimedRender() { if (initialized_) { LOG(LS_WARNING) << "EnableTimedRender can not be called after Init"; return false; } render_module_.reset(webrtc::VideoRender::CreateVideoRender(0, NULL, false, webrtc::kRenderExternal)); return true; } void WebRtcVideoEngine::SetTraceFilter(int filter) { tracing_->SetTraceFilter(filter); } // See https://sites.google.com/a/google.com/wavelet/ // Home/Magic-Flute--RTC-Engine-/Magic-Flute-Command-Line-Parameters // for all supported command line setttings. void WebRtcVideoEngine::SetTraceOptions(const std::string& options) { // Set WebRTC trace file. std::vector<std::string> opts; talk_base::tokenize(options, ' ', '"', '"', &opts); std::vector<std::string>::iterator tracefile = std::find(opts.begin(), opts.end(), "tracefile"); if (tracefile != opts.end() && ++tracefile != opts.end()) { // Write WebRTC debug output (at same loglevel) to file if (tracing_->SetTraceFile(tracefile->c_str()) == -1) { LOG_RTCERR1(SetTraceFile, *tracefile); } } } static void AddDefaultFeedbackParams(VideoCodec* codec) { const FeedbackParam kFir(kRtcpFbParamCcm, kRtcpFbCcmParamFir); codec->AddFeedbackParam(kFir); const FeedbackParam kNack(kRtcpFbParamNack, kParamValueEmpty); codec->AddFeedbackParam(kNack); const FeedbackParam kRemb(kRtcpFbParamRemb, kParamValueEmpty); codec->AddFeedbackParam(kRemb); } // Rebuilds the codec list to be only those that are less intensive // than the specified codec. bool WebRtcVideoEngine::RebuildCodecList(const VideoCodec& in_codec) { if (!FindCodec(in_codec)) return false; video_codecs_.clear(); bool found = false; std::set<std::string> external_codec_names; if (encoder_factory_) { const std::vector<WebRtcVideoEncoderFactory::VideoCodec>& codecs = encoder_factory_->codecs(); for (size_t i = 0; i < codecs.size(); ++i) { if (!found) found = (in_codec.name == codecs[i].name); VideoCodec codec( GetExternalVideoPayloadType(static_cast<int>(i)), codecs[i].name, codecs[i].max_width, codecs[i].max_height, codecs[i].max_fps, static_cast<int>(codecs.size() + ARRAY_SIZE(kVideoCodecPrefs) - i)); AddDefaultFeedbackParams(&codec); video_codecs_.push_back(codec); external_codec_names.insert(codecs[i].name); } } for (size_t i = 0; i < ARRAY_SIZE(kVideoCodecPrefs); ++i) { const VideoCodecPref& pref(kVideoCodecPrefs[i]); if (!found) found = (in_codec.name == pref.name); bool is_external_codec = external_codec_names.find(pref.name) != external_codec_names.end(); if (found && !is_external_codec) { VideoCodec codec(pref.payload_type, pref.name, in_codec.width, in_codec.height, in_codec.framerate, static_cast<int>(ARRAY_SIZE(kVideoCodecPrefs) - i)); if (_stricmp(kVp8PayloadName, codec.name.c_str()) == 0) { AddDefaultFeedbackParams(&codec); } video_codecs_.push_back(codec); } } ASSERT(found); return true; } // Ignore spammy trace messages, mostly from the stats API when we haven't // gotten RTCP info yet from the remote side. bool WebRtcVideoEngine::ShouldIgnoreTrace(const std::string& trace) { static const char* const kTracesToIgnore[] = { NULL }; for (const char* const* p = kTracesToIgnore; *p; ++p) { if (trace.find(*p) == 0) { return true; } } return false; } int WebRtcVideoEngine::GetNumOfChannels() { talk_base::CritScope cs(&channels_crit_); return static_cast<int>(channels_.size()); } void WebRtcVideoEngine::Print(webrtc::TraceLevel level, const char* trace, int length) { talk_base::LoggingSeverity sev = talk_base::LS_VERBOSE; if (level == webrtc::kTraceError || level == webrtc::kTraceCritical) sev = talk_base::LS_ERROR; else if (level == webrtc::kTraceWarning) sev = talk_base::LS_WARNING; else if (level == webrtc::kTraceStateInfo || level == webrtc::kTraceInfo) sev = talk_base::LS_INFO; else if (level == webrtc::kTraceTerseInfo) sev = talk_base::LS_INFO; // Skip past boilerplate prefix text if (length < 72) { std::string msg(trace, length); LOG(LS_ERROR) << "Malformed webrtc log message: "; LOG_V(sev) << msg; } else { std::string msg(trace + 71, length - 72); if (!ShouldIgnoreTrace(msg) && (!voice_engine_ || !voice_engine_->ShouldIgnoreTrace(msg))) { LOG_V(sev) << "webrtc: " << msg; } } } webrtc::VideoDecoder* WebRtcVideoEngine::CreateExternalDecoder( webrtc::VideoCodecType type) { if (decoder_factory_ == NULL) { return NULL; } return decoder_factory_->CreateVideoDecoder(type); } void WebRtcVideoEngine::DestroyExternalDecoder(webrtc::VideoDecoder* decoder) { ASSERT(decoder_factory_ != NULL); if (decoder_factory_ == NULL) return; decoder_factory_->DestroyVideoDecoder(decoder); } webrtc::VideoEncoder* WebRtcVideoEngine::CreateExternalEncoder( webrtc::VideoCodecType type) { if (encoder_factory_ == NULL) { return NULL; } return encoder_factory_->CreateVideoEncoder(type); } void WebRtcVideoEngine::DestroyExternalEncoder(webrtc::VideoEncoder* encoder) { ASSERT(encoder_factory_ != NULL); if (encoder_factory_ == NULL) return; encoder_factory_->DestroyVideoEncoder(encoder); } bool WebRtcVideoEngine::IsExternalEncoderCodecType( webrtc::VideoCodecType type) const { if (!encoder_factory_) return false; const std::vector<WebRtcVideoEncoderFactory::VideoCodec>& codecs = encoder_factory_->codecs(); std::vector<WebRtcVideoEncoderFactory::VideoCodec>::const_iterator it; for (it = codecs.begin(); it != codecs.end(); ++it) { if (it->type == type) return true; } return false; } void WebRtcVideoEngine::SetExternalDecoderFactory( WebRtcVideoDecoderFactory* decoder_factory) { decoder_factory_ = decoder_factory; } void WebRtcVideoEngine::SetExternalEncoderFactory( WebRtcVideoEncoderFactory* encoder_factory) { if (encoder_factory_ == encoder_factory) return; if (encoder_factory_) { encoder_factory_->RemoveObserver(this); } encoder_factory_ = encoder_factory; if (encoder_factory_) { encoder_factory_->AddObserver(this); } // Invoke OnCodecAvailable() here in case the list of codecs is already // available when the encoder factory is installed. If not the encoder // factory will invoke the callback later when the codecs become available. OnCodecsAvailable(); } void WebRtcVideoEngine::OnCodecsAvailable() { // Rebuild codec list while reapplying the current default codec format. VideoCodec max_codec(kVideoCodecPrefs[0].payload_type, kVideoCodecPrefs[0].name, video_codecs_[0].width, video_codecs_[0].height, video_codecs_[0].framerate, 0); if (!RebuildCodecList(max_codec)) { LOG(LS_ERROR) << "Failed to initialize list of supported codec types"; } } // WebRtcVideoMediaChannel WebRtcVideoMediaChannel::WebRtcVideoMediaChannel( WebRtcVideoEngine* engine, VoiceMediaChannel* channel) : engine_(engine), voice_channel_(channel), vie_channel_(-1), nack_enabled_(true), remb_enabled_(false), render_started_(false), first_receive_ssrc_(0), send_red_type_(-1), send_fec_type_(-1), send_min_bitrate_(kMinVideoBitrate), send_start_bitrate_(kStartVideoBitrate), send_max_bitrate_(kMaxVideoBitrate), sending_(false), ratio_w_(0), ratio_h_(0) { engine->RegisterChannel(this); } bool WebRtcVideoMediaChannel::Init() { const uint32 ssrc_key = 0; return CreateChannel(ssrc_key, MD_SENDRECV, &vie_channel_); } WebRtcVideoMediaChannel::~WebRtcVideoMediaChannel() { const bool send = false; SetSend(send); const bool render = false; SetRender(render); while (!send_channels_.empty()) { if (!DeleteSendChannel(send_channels_.begin()->first)) { LOG(LS_ERROR) << "Unable to delete channel with ssrc key " << send_channels_.begin()->first; ASSERT(false); break; } } // Remove all receive streams and the default channel. while (!recv_channels_.empty()) { RemoveRecvStream(recv_channels_.begin()->first); } // Unregister the channel from the engine. engine()->UnregisterChannel(this); if (worker_thread()) { worker_thread()->Clear(this); } } bool WebRtcVideoMediaChannel::SetRecvCodecs( const std::vector<VideoCodec>& codecs) { receive_codecs_.clear(); for (std::vector<VideoCodec>::const_iterator iter = codecs.begin(); iter != codecs.end(); ++iter) { if (engine()->FindCodec(*iter)) { webrtc::VideoCodec wcodec; if (engine()->ConvertFromCricketVideoCodec(*iter, &wcodec)) { receive_codecs_.push_back(wcodec); } } else { LOG(LS_INFO) << "Unknown codec " << iter->name; return false; } } for (RecvChannelMap::iterator it = recv_channels_.begin(); it != recv_channels_.end(); ++it) { if (!SetReceiveCodecs(it->second)) return false; } return true; } bool WebRtcVideoMediaChannel::SetSendCodecs( const std::vector<VideoCodec>& codecs) { // Match with local video codec list. std::vector<webrtc::VideoCodec> send_codecs; VideoCodec checked_codec; VideoCodec current; // defaults to 0x0 if (sending_) { ConvertToCricketVideoCodec(*send_codec_, &current); } for (std::vector<VideoCodec>::const_iterator iter = codecs.begin(); iter != codecs.end(); ++iter) { if (_stricmp(iter->name.c_str(), kRedPayloadName) == 0) { send_red_type_ = iter->id; } else if (_stricmp(iter->name.c_str(), kFecPayloadName) == 0) { send_fec_type_ = iter->id; } else if (engine()->CanSendCodec(*iter, current, &checked_codec)) { webrtc::VideoCodec wcodec; if (engine()->ConvertFromCricketVideoCodec(checked_codec, &wcodec)) { if (send_codecs.empty()) { nack_enabled_ = IsNackEnabled(checked_codec); remb_enabled_ = IsRembEnabled(checked_codec); } send_codecs.push_back(wcodec); } } else { LOG(LS_WARNING) << "Unknown codec " << iter->name; } } // Fail if we don't have a match. if (send_codecs.empty()) { LOG(LS_WARNING) << "No matching codecs available"; return false; } // Recv protection. for (RecvChannelMap::iterator it = recv_channels_.begin(); it != recv_channels_.end(); ++it) { int channel_id = it->second->channel_id(); if (!SetNackFec(channel_id, send_red_type_, send_fec_type_, nack_enabled_)) { return false; } if (engine_->vie()->rtp()->SetRembStatus(channel_id, kNotSending, remb_enabled_) != 0) { LOG_RTCERR3(SetRembStatus, channel_id, kNotSending, remb_enabled_); return false; } } // Send settings. for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { int channel_id = iter->second->channel_id(); if (!SetNackFec(channel_id, send_red_type_, send_fec_type_, nack_enabled_)) { return false; } if (engine_->vie()->rtp()->SetRembStatus(channel_id, remb_enabled_, remb_enabled_) != 0) { LOG_RTCERR3(SetRembStatus, channel_id, remb_enabled_, remb_enabled_); return false; } } // Select the first matched codec. webrtc::VideoCodec& codec(send_codecs[0]); if (!SetSendCodec( codec, codec.minBitrate, codec.startBitrate, codec.maxBitrate)) { return false; } for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; send_channel->InitializeAdapterOutputFormat(codec); } LogSendCodecChange("SetSendCodecs()"); return true; } bool WebRtcVideoMediaChannel::GetSendCodec(VideoCodec* send_codec) { if (!send_codec_) { return false; } ConvertToCricketVideoCodec(*send_codec_, send_codec); return true; } bool WebRtcVideoMediaChannel::SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) { if (!send_codec_) { LOG(LS_ERROR) << "The send codec has not been set yet."; return false; } WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(ssrc); if (!send_channel) { LOG(LS_ERROR) << "The specified ssrc " << ssrc << " is not in use."; return false; } send_channel->set_video_format(format); return true; } bool WebRtcVideoMediaChannel::SetRender(bool render) { if (render == render_started_) { return true; // no action required } bool ret = true; for (RecvChannelMap::iterator it = recv_channels_.begin(); it != recv_channels_.end(); ++it) { if (render) { if (engine()->vie()->render()->StartRender( it->second->channel_id()) != 0) { LOG_RTCERR1(StartRender, it->second->channel_id()); ret = false; } } else { if (engine()->vie()->render()->StopRender( it->second->channel_id()) != 0) { LOG_RTCERR1(StopRender, it->second->channel_id()); ret = false; } } } if (ret) { render_started_ = render; } return ret; } bool WebRtcVideoMediaChannel::SetSend(bool send) { if (!HasReadySendChannels() && send) { LOG(LS_ERROR) << "No stream added"; return false; } if (send == sending()) { return true; // No action required. } if (send) { // We've been asked to start sending. // SetSendCodecs must have been called already. if (!send_codec_) { return false; } // Start send now. if (!StartSend()) { return false; } } else { // We've been asked to stop sending. if (!StopSend()) { return false; } } sending_ = send; return true; } bool WebRtcVideoMediaChannel::AddSendStream(const StreamParams& sp) { LOG(LS_INFO) << "AddSendStream " << sp.ToString(); if (!IsOneSsrcStream(sp)) { LOG(LS_ERROR) << "AddSendStream: bad local stream parameters"; return false; } uint32 ssrc_key; if (!CreateSendChannelKey(sp.first_ssrc(), &ssrc_key)) { LOG(LS_ERROR) << "Trying to register duplicate ssrc: " << sp.first_ssrc(); return false; } // If the default channel is already used for sending create a new channel // otherwise use the default channel for sending. int channel_id = -1; if (send_channels_[0]->stream_params() == NULL) { channel_id = vie_channel_; } else { if (!CreateChannel(ssrc_key, MD_SEND, &channel_id)) { LOG(LS_ERROR) << "AddSendStream: unable to create channel"; return false; } } WebRtcVideoChannelSendInfo* send_channel = send_channels_[ssrc_key]; // Set the send (local) SSRC. // If there are multiple send SSRCs, we can only set the first one here, and // the rest of the SSRC(s) need to be set after SetSendCodec has been called // (with a codec requires multiple SSRC(s)). if (engine()->vie()->rtp()->SetLocalSSRC(channel_id, sp.first_ssrc()) != 0) { LOG_RTCERR2(SetLocalSSRC, channel_id, sp.first_ssrc()); return false; } // Set RTCP CName. if (engine()->vie()->rtp()->SetRTCPCName(channel_id, sp.cname.c_str()) != 0) { LOG_RTCERR2(SetRTCPCName, channel_id, sp.cname.c_str()); return false; } // At this point the channel's local SSRC has been updated. If the channel is // the default channel make sure that all the receive channels are updated as // well. Receive channels have to have the same SSRC as the default channel in // order to send receiver reports with this SSRC. if (IsDefaultChannel(channel_id)) { for (RecvChannelMap::const_iterator it = recv_channels_.begin(); it != recv_channels_.end(); ++it) { WebRtcVideoChannelRecvInfo* info = it->second; int channel_id = info->channel_id(); if (engine()->vie()->rtp()->SetLocalSSRC(channel_id, sp.first_ssrc()) != 0) { LOG_RTCERR1(SetLocalSSRC, it->first); return false; } } } send_channel->set_stream_params(sp); // Reset send codec after stream parameters changed. if (send_codec_) { if (!SetSendCodec(send_channel, *send_codec_, send_min_bitrate_, send_start_bitrate_, send_max_bitrate_)) { return false; } LogSendCodecChange("SetSendStreamFormat()"); } if (sending_) { return StartSend(send_channel); } return true; } bool WebRtcVideoMediaChannel::RemoveSendStream(uint32 ssrc) { uint32 ssrc_key; if (!GetSendChannelKey(ssrc, &ssrc_key)) { LOG(LS_WARNING) << "Try to remove stream with ssrc " << ssrc << " which doesn't exist."; return false; } WebRtcVideoChannelSendInfo* send_channel = send_channels_[ssrc_key]; int channel_id = send_channel->channel_id(); if (IsDefaultChannel(channel_id) && (send_channel->stream_params() == NULL)) { // Default channel will still exist. However, if stream_params() is NULL // there is no stream to remove. return false; } if (sending_) { StopSend(send_channel); } const WebRtcVideoChannelSendInfo::EncoderMap& encoder_map = send_channel->registered_encoders(); for (WebRtcVideoChannelSendInfo::EncoderMap::const_iterator it = encoder_map.begin(); it != encoder_map.end(); ++it) { if (engine()->vie()->ext_codec()->DeRegisterExternalSendCodec( channel_id, it->first) != 0) { LOG_RTCERR1(DeregisterEncoderObserver, channel_id); } engine()->DestroyExternalEncoder(it->second); } send_channel->ClearRegisteredEncoders(); // The receive channels depend on the default channel, recycle it instead. if (IsDefaultChannel(channel_id)) { SetCapturer(GetDefaultChannelSsrc(), NULL); send_channel->ClearStreamParams(); } else { return DeleteSendChannel(ssrc_key); } return true; } bool WebRtcVideoMediaChannel::AddRecvStream(const StreamParams& sp) { // TODO(zhurunz) Remove this once BWE works properly across different send // and receive channels. // Reuse default channel for recv stream in 1:1 call. if (!InConferenceMode() && first_receive_ssrc_ == 0) { LOG(LS_INFO) << "Recv stream " << sp.first_ssrc() << " reuse default channel #" << vie_channel_; first_receive_ssrc_ = sp.first_ssrc(); if (render_started_) { if (engine()->vie()->render()->StartRender(vie_channel_) !=0) { LOG_RTCERR1(StartRender, vie_channel_); } } return true; } if (recv_channels_.find(sp.first_ssrc()) != recv_channels_.end() || first_receive_ssrc_ == sp.first_ssrc()) { LOG(LS_ERROR) << "Stream already exists"; return false; } // TODO(perkj): Implement recv media from multiple SSRCs per stream. if (sp.ssrcs.size() != 1) { LOG(LS_ERROR) << "WebRtcVideoMediaChannel supports one receiving SSRC per" << " stream"; return false; } // Create a new channel for receiving video data. // In order to get the bandwidth estimation work fine for // receive only channels, we connect all receiving channels // to our master send channel. int channel_id = -1; if (!CreateChannel(sp.first_ssrc(), MD_RECV, &channel_id)) { return false; } // Get the default renderer. VideoRenderer* default_renderer = NULL; if (InConferenceMode()) { // The recv_channels_ size start out being 1, so if it is two here this // is the first receive channel created (vie_channel_ is not used for // receiving in a conference call). This means that the renderer stored // inside vie_channel_ should be used for the just created channel. if (recv_channels_.size() == 2 && recv_channels_.find(0) != recv_channels_.end()) { GetRenderer(0, &default_renderer); } } // The first recv stream reuses the default renderer (if a default renderer // has been set). if (default_renderer) { SetRenderer(sp.first_ssrc(), default_renderer); } LOG(LS_INFO) << "New video stream " << sp.first_ssrc() << " registered to VideoEngine channel #" << channel_id << " and connected to channel #" << vie_channel_; return true; } bool WebRtcVideoMediaChannel::RemoveRecvStream(uint32 ssrc) { RecvChannelMap::iterator it = recv_channels_.find(ssrc); if (it == recv_channels_.end()) { // TODO(perkj): Remove this once BWE works properly across different send // and receive channels. // The default channel is reused for recv stream in 1:1 call. if (first_receive_ssrc_ == ssrc) { first_receive_ssrc_ = 0; // Need to stop the renderer and remove it since the render window can be // deleted after this. if (render_started_) { if (engine()->vie()->render()->StopRender(vie_channel_) !=0) { LOG_RTCERR1(StopRender, it->second->channel_id()); } } recv_channels_[0]->SetRenderer(NULL); return true; } return false; } WebRtcVideoChannelRecvInfo* info = it->second; int channel_id = info->channel_id(); if (engine()->vie()->render()->RemoveRenderer(channel_id) != 0) { LOG_RTCERR1(RemoveRenderer, channel_id); } if (engine()->vie()->network()->DeregisterSendTransport(channel_id) !=0) { LOG_RTCERR1(DeRegisterSendTransport, channel_id); } if (engine()->vie()->codec()->DeregisterDecoderObserver( channel_id) != 0) { LOG_RTCERR1(DeregisterDecoderObserver, channel_id); } const WebRtcVideoChannelRecvInfo::DecoderMap& decoder_map = info->registered_decoders(); for (WebRtcVideoChannelRecvInfo::DecoderMap::const_iterator it = decoder_map.begin(); it != decoder_map.end(); ++it) { if (engine()->vie()->ext_codec()->DeRegisterExternalReceiveCodec( channel_id, it->first) != 0) { LOG_RTCERR1(DeregisterDecoderObserver, channel_id); } engine()->DestroyExternalDecoder(it->second); } info->ClearRegisteredDecoders(); LOG(LS_INFO) << "Removing video stream " << ssrc << " with VideoEngine channel #" << channel_id; if (engine()->vie()->base()->DeleteChannel(channel_id) == -1) { LOG_RTCERR1(DeleteChannel, channel_id); // Leak the WebRtcVideoChannelRecvInfo owned by |it| but remove the channel // from recv_channels_. recv_channels_.erase(it); return false; } // Delete the WebRtcVideoChannelRecvInfo pointed to by it->second. delete info; recv_channels_.erase(it); return true; } bool WebRtcVideoMediaChannel::StartSend() { bool success = true; for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; if (!StartSend(send_channel)) { success = false; } } return success; } bool WebRtcVideoMediaChannel::StartSend( WebRtcVideoChannelSendInfo* send_channel) { const int channel_id = send_channel->channel_id(); if (engine()->vie()->base()->StartSend(channel_id) != 0) { LOG_RTCERR1(StartSend, channel_id); return false; } send_channel->set_sending(true); return true; } bool WebRtcVideoMediaChannel::StopSend() { bool success = true; for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; if (!StopSend(send_channel)) { success = false; } } return success; } bool WebRtcVideoMediaChannel::StopSend( WebRtcVideoChannelSendInfo* send_channel) { const int channel_id = send_channel->channel_id(); if (engine()->vie()->base()->StopSend(channel_id) != 0) { LOG_RTCERR1(StopSend, channel_id); return false; } send_channel->set_sending(false); return true; } bool WebRtcVideoMediaChannel::SendIntraFrame() { bool success = true; for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; const int channel_id = send_channel->channel_id(); if (engine()->vie()->codec()->SendKeyFrame(channel_id) != 0) { LOG_RTCERR1(SendKeyFrame, channel_id); success = false; } } return success; } bool WebRtcVideoMediaChannel::IsOneSsrcStream(const StreamParams& sp) { return (sp.ssrcs.size() == 1 && sp.ssrc_groups.size() == 0); } bool WebRtcVideoMediaChannel::HasReadySendChannels() { return !send_channels_.empty() && ((send_channels_.size() > 1) || (send_channels_[0]->stream_params() != NULL)); } bool WebRtcVideoMediaChannel::GetSendChannelKey(uint32 local_ssrc, uint32* key) { *key = 0; // If a send channel is not ready to send it will not have local_ssrc // registered to it. if (!HasReadySendChannels()) { return false; } // The default channel is stored with key 0. The key therefore does not match // the SSRC associated with the default channel. Check if the SSRC provided // corresponds to the default channel's SSRC. if (local_ssrc == GetDefaultChannelSsrc()) { return true; } if (send_channels_.find(local_ssrc) == send_channels_.end()) { for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; if (send_channel->has_ssrc(local_ssrc)) { *key = iter->first; return true; } } return false; } // The key was found in the above std::map::find call. This means that the // ssrc is the key. *key = local_ssrc; return true; } WebRtcVideoChannelSendInfo* WebRtcVideoMediaChannel::GetSendChannel( VideoCapturer* video_capturer) { for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; if (send_channel->video_capturer() == video_capturer) { return send_channel; } } return NULL; } WebRtcVideoChannelSendInfo* WebRtcVideoMediaChannel::GetSendChannel( uint32 local_ssrc) { uint32 key; if (!GetSendChannelKey(local_ssrc, &key)) { return NULL; } return send_channels_[key]; } bool WebRtcVideoMediaChannel::CreateSendChannelKey(uint32 local_ssrc, uint32* key) { if (GetSendChannelKey(local_ssrc, key)) { // If there is a key corresponding to |local_ssrc|, the SSRC is already in // use. SSRCs need to be unique in a session and at this point a duplicate // SSRC has been detected. return false; } if (send_channels_[0]->stream_params() == NULL) { // key should be 0 here as the default channel should be re-used whenever it // is not used. *key = 0; return true; } // SSRC is currently not in use and the default channel is already in use. Use // the SSRC as key since it is supposed to be unique in a session. *key = local_ssrc; return true; } uint32 WebRtcVideoMediaChannel::GetDefaultChannelSsrc() { WebRtcVideoChannelSendInfo* send_channel = send_channels_[0]; const StreamParams* sp = send_channel->stream_params(); if (sp == NULL) { // This happens if no send stream is currently registered. return 0; } return sp->first_ssrc(); } bool WebRtcVideoMediaChannel::DeleteSendChannel(uint32 ssrc_key) { if (send_channels_.find(ssrc_key) == send_channels_.end()) { return false; } WebRtcVideoChannelSendInfo* send_channel = send_channels_[ssrc_key]; VideoCapturer* capturer = send_channel->video_capturer(); if (capturer != NULL) { capturer->SignalVideoFrame.disconnect(this); send_channel->set_video_capturer(NULL); } int channel_id = send_channel->channel_id(); int capture_id = send_channel->capture_id(); if (engine()->vie()->codec()->DeregisterEncoderObserver( channel_id) != 0) { LOG_RTCERR1(DeregisterEncoderObserver, channel_id); } // Destroy the external capture interface. if (engine()->vie()->capture()->DisconnectCaptureDevice( channel_id) != 0) { LOG_RTCERR1(DisconnectCaptureDevice, channel_id); } if (engine()->vie()->capture()->ReleaseCaptureDevice( capture_id) != 0) { LOG_RTCERR1(ReleaseCaptureDevice, capture_id); } // The default channel is stored in both |send_channels_| and // |recv_channels_|. To make sure it is only deleted once from vie let the // delete call happen when tearing down |recv_channels_| and not here. if (!IsDefaultChannel(channel_id)) { engine_->vie()->base()->DeleteChannel(channel_id); } delete send_channel; send_channels_.erase(ssrc_key); return true; } bool WebRtcVideoMediaChannel::RemoveCapturer(uint32 ssrc) { WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(ssrc); if (!send_channel) { return false; } VideoCapturer* capturer = send_channel->video_capturer(); if (capturer == NULL) { return false; } capturer->SignalVideoFrame.disconnect(this); send_channel->set_video_capturer(NULL); const int64 timestamp = send_channel->local_stream_info()->time_stamp(); if (send_codec_) { QueueBlackFrame(ssrc, timestamp, send_codec_->maxFramerate); } return true; } bool WebRtcVideoMediaChannel::SetRenderer(uint32 ssrc, VideoRenderer* renderer) { if (recv_channels_.find(ssrc) == recv_channels_.end()) { // TODO(perkj): Remove this once BWE works properly across different send // and receive channels. // The default channel is reused for recv stream in 1:1 call. if (first_receive_ssrc_ == ssrc && recv_channels_.find(0) != recv_channels_.end()) { LOG(LS_INFO) << "SetRenderer " << ssrc << " reuse default channel #" << vie_channel_; recv_channels_[0]->SetRenderer(renderer); return true; } return false; } recv_channels_[ssrc]->SetRenderer(renderer); return true; } bool WebRtcVideoMediaChannel::GetStats(VideoMediaInfo* info) { // Get sender statistics and build VideoSenderInfo. unsigned int total_bitrate_sent = 0; unsigned int video_bitrate_sent = 0; unsigned int fec_bitrate_sent = 0; unsigned int nack_bitrate_sent = 0; unsigned int estimated_send_bandwidth = 0; unsigned int target_enc_bitrate = 0; if (send_codec_) { for (SendChannelMap::const_iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; const int channel_id = send_channel->channel_id(); VideoSenderInfo sinfo; const StreamParams* send_params = send_channel->stream_params(); if (send_params == NULL) { // This should only happen if the default vie channel is not in use. // This can happen if no streams have ever been added or the stream // corresponding to the default channel has been removed. Note that // there may be non-default vie channels in use when this happen so // asserting send_channels_.size() == 1 is not correct and neither is // breaking out of the loop. ASSERT(channel_id == vie_channel_); continue; } unsigned int bytes_sent, packets_sent, bytes_recv, packets_recv; if (engine_->vie()->rtp()->GetRTPStatistics(channel_id, bytes_sent, packets_sent, bytes_recv, packets_recv) != 0) { LOG_RTCERR1(GetRTPStatistics, vie_channel_); continue; } WebRtcLocalStreamInfo* channel_stream_info = send_channel->local_stream_info(); sinfo.ssrcs = send_params->ssrcs; sinfo.codec_name = send_codec_->plName; sinfo.bytes_sent = bytes_sent; sinfo.packets_sent = packets_sent; sinfo.packets_cached = -1; sinfo.packets_lost = -1; sinfo.fraction_lost = -1; sinfo.firs_rcvd = -1; sinfo.nacks_rcvd = -1; sinfo.rtt_ms = -1; sinfo.frame_width = static_cast<int>(channel_stream_info->width()); sinfo.frame_height = static_cast<int>(channel_stream_info->height()); sinfo.framerate_input = channel_stream_info->framerate(); sinfo.framerate_sent = send_channel->encoder_observer()->framerate(); sinfo.nominal_bitrate = send_channel->encoder_observer()->bitrate(); sinfo.preferred_bitrate = send_max_bitrate_; sinfo.adapt_reason = send_channel->CurrentAdaptReason(); // Get received RTCP statistics for the sender, if available. // It's not a fatal error if we can't, since RTCP may not have arrived // yet. uint16 r_fraction_lost; unsigned int r_cumulative_lost; unsigned int r_extended_max; unsigned int r_jitter; int r_rtt_ms; if (engine_->vie()->rtp()->GetSentRTCPStatistics( channel_id, r_fraction_lost, r_cumulative_lost, r_extended_max, r_jitter, r_rtt_ms) == 0) { // Convert Q8 to float. sinfo.packets_lost = r_cumulative_lost; sinfo.fraction_lost = static_cast<float>(r_fraction_lost) / (1 << 8); sinfo.rtt_ms = r_rtt_ms; } info->senders.push_back(sinfo); unsigned int channel_total_bitrate_sent = 0; unsigned int channel_video_bitrate_sent = 0; unsigned int channel_fec_bitrate_sent = 0; unsigned int channel_nack_bitrate_sent = 0; if (engine_->vie()->rtp()->GetBandwidthUsage( channel_id, channel_total_bitrate_sent, channel_video_bitrate_sent, channel_fec_bitrate_sent, channel_nack_bitrate_sent) == 0) { total_bitrate_sent += channel_total_bitrate_sent; video_bitrate_sent += channel_video_bitrate_sent; fec_bitrate_sent += channel_fec_bitrate_sent; nack_bitrate_sent += channel_nack_bitrate_sent; } else { LOG_RTCERR1(GetBandwidthUsage, channel_id); } unsigned int estimated_stream_send_bandwidth = 0; if (engine_->vie()->rtp()->GetEstimatedSendBandwidth( channel_id, &estimated_stream_send_bandwidth) == 0) { estimated_send_bandwidth += estimated_stream_send_bandwidth; } else { LOG_RTCERR1(GetEstimatedSendBandwidth, channel_id); } unsigned int target_enc_stream_bitrate = 0; if (engine_->vie()->codec()->GetCodecTargetBitrate( channel_id, &target_enc_stream_bitrate) == 0) { target_enc_bitrate += target_enc_stream_bitrate; } else { LOG_RTCERR1(GetCodecTargetBitrate, channel_id); } } } else { LOG(LS_WARNING) << "GetStats: sender information not ready."; } // Get the SSRC and stats for each receiver, based on our own calculations. unsigned int estimated_recv_bandwidth = 0; for (RecvChannelMap::const_iterator it = recv_channels_.begin(); it != recv_channels_.end(); ++it) { // Don't report receive statistics from the default channel if we have // specified receive channels. if (it->first == 0 && recv_channels_.size() > 1) continue; WebRtcVideoChannelRecvInfo* channel = it->second; unsigned int ssrc; // Get receiver statistics and build VideoReceiverInfo, if we have data. if (engine_->vie()->rtp()->GetRemoteSSRC(channel->channel_id(), ssrc) != 0) continue; unsigned int bytes_sent, packets_sent, bytes_recv, packets_recv; if (engine_->vie()->rtp()->GetRTPStatistics( channel->channel_id(), bytes_sent, packets_sent, bytes_recv, packets_recv) != 0) { LOG_RTCERR1(GetRTPStatistics, channel->channel_id()); return false; } VideoReceiverInfo rinfo; rinfo.ssrcs.push_back(ssrc); rinfo.bytes_rcvd = bytes_recv; rinfo.packets_rcvd = packets_recv; rinfo.packets_lost = -1; rinfo.packets_concealed = -1; rinfo.fraction_lost = -1; // from SentRTCP rinfo.firs_sent = channel->decoder_observer()->firs_requested(); rinfo.nacks_sent = -1; rinfo.frame_width = channel->render_adapter()->width(); rinfo.frame_height = channel->render_adapter()->height(); rinfo.framerate_rcvd = channel->decoder_observer()->framerate(); int fps = channel->render_adapter()->framerate(); rinfo.framerate_decoded = fps; rinfo.framerate_output = fps; // Get sent RTCP statistics. uint16 s_fraction_lost; unsigned int s_cumulative_lost; unsigned int s_extended_max; unsigned int s_jitter; int s_rtt_ms; if (engine_->vie()->rtp()->GetReceivedRTCPStatistics(channel->channel_id(), s_fraction_lost, s_cumulative_lost, s_extended_max, s_jitter, s_rtt_ms) == 0) { // Convert Q8 to float. rinfo.packets_lost = s_cumulative_lost; rinfo.fraction_lost = static_cast<float>(s_fraction_lost) / (1 << 8); } info->receivers.push_back(rinfo); unsigned int estimated_recv_stream_bandwidth = 0; if (engine_->vie()->rtp()->GetEstimatedReceiveBandwidth( channel->channel_id(), &estimated_recv_stream_bandwidth) == 0) { estimated_recv_bandwidth += estimated_recv_stream_bandwidth; } else { LOG_RTCERR1(GetEstimatedReceiveBandwidth, channel->channel_id()); } } // Build BandwidthEstimationInfo. // TODO(zhurunz): Add real unittest for this. BandwidthEstimationInfo bwe; // Calculations done above per send/receive stream. bwe.actual_enc_bitrate = video_bitrate_sent; bwe.transmit_bitrate = total_bitrate_sent; bwe.retransmit_bitrate = nack_bitrate_sent; bwe.available_send_bandwidth = estimated_send_bandwidth; bwe.available_recv_bandwidth = estimated_recv_bandwidth; bwe.target_enc_bitrate = target_enc_bitrate; info->bw_estimations.push_back(bwe); return true; } bool WebRtcVideoMediaChannel::SetCapturer(uint32 ssrc, VideoCapturer* capturer) { ASSERT(ssrc != 0); if (!capturer) { return RemoveCapturer(ssrc); } WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(ssrc); if (!send_channel) { return false; } VideoCapturer* old_capturer = send_channel->video_capturer(); if (old_capturer) { old_capturer->SignalVideoFrame.disconnect(this); } send_channel->set_video_capturer(capturer); capturer->SignalVideoFrame.connect( this, &WebRtcVideoMediaChannel::AdaptAndSendFrame); if (!capturer->IsScreencast() && ratio_w_ != 0 && ratio_h_ != 0) { capturer->UpdateAspectRatio(ratio_w_, ratio_h_); } const int64 timestamp = send_channel->local_stream_info()->time_stamp(); if (send_codec_) { QueueBlackFrame(ssrc, timestamp, send_codec_->maxFramerate); } return true; } bool WebRtcVideoMediaChannel::RequestIntraFrame() { // There is no API exposed to application to request a key frame // ViE does this internally when there are errors from decoder return false; } void WebRtcVideoMediaChannel::OnPacketReceived(talk_base::Buffer* packet) { // Pick which channel to send this packet to. If this packet doesn't match // any multiplexed streams, just send it to the default channel. Otherwise, // send it to the specific decoder instance for that stream. uint32 ssrc = 0; if (!GetRtpSsrc(packet->data(), packet->length(), &ssrc)) return; int which_channel = GetRecvChannelNum(ssrc); if (which_channel == -1) { which_channel = video_channel(); } engine()->vie()->network()->ReceivedRTPPacket( which_channel, packet->data(), static_cast<int>(packet->length())); } void WebRtcVideoMediaChannel::OnRtcpReceived(talk_base::Buffer* packet) { // Sending channels need all RTCP packets with feedback information. // Even sender reports can contain attached report blocks. // Receiving channels need sender reports in order to create // correct receiver reports. uint32 ssrc = 0; if (!GetRtcpSsrc(packet->data(), packet->length(), &ssrc)) { LOG(LS_WARNING) << "Failed to parse SSRC from received RTCP packet"; return; } int type = 0; if (!GetRtcpType(packet->data(), packet->length(), &type)) { LOG(LS_WARNING) << "Failed to parse type from received RTCP packet"; return; } // If it is a sender report, find the channel that is listening. if (type == kRtcpTypeSR) { int which_channel = GetRecvChannelNum(ssrc); if (which_channel != -1 && !IsDefaultChannel(which_channel)) { engine_->vie()->network()->ReceivedRTCPPacket( which_channel, packet->data(), static_cast<int>(packet->length())); } } // SR may continue RR and any RR entry may correspond to any one of the send // channels. So all RTCP packets must be forwarded all send channels. ViE // will filter out RR internally. for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; int channel_id = send_channel->channel_id(); engine_->vie()->network()->ReceivedRTCPPacket( channel_id, packet->data(), static_cast<int>(packet->length())); } } void WebRtcVideoMediaChannel::OnReadyToSend(bool ready) { SetNetworkTransmissionState(ready); } bool WebRtcVideoMediaChannel::MuteStream(uint32 ssrc, bool muted) { WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(ssrc); if (!send_channel) { LOG(LS_ERROR) << "The specified ssrc " << ssrc << " is not in use."; return false; } send_channel->set_muted(muted); return true; } bool WebRtcVideoMediaChannel::SetRecvRtpHeaderExtensions( const std::vector<RtpHeaderExtension>& extensions) { if (receive_extensions_ == extensions) { return true; } receive_extensions_ = extensions; const RtpHeaderExtension* offset_extension = FindHeaderExtension(extensions, kRtpTimestampOffsetHeaderExtension); const RtpHeaderExtension* send_time_extension = FindHeaderExtension(extensions, kRtpAbsoluteSendTimeHeaderExtension); // Loop through all receive channels and enable/disable the extensions. for (RecvChannelMap::iterator channel_it = recv_channels_.begin(); channel_it != recv_channels_.end(); ++channel_it) { int channel_id = channel_it->second->channel_id(); if (!SetHeaderExtension( &webrtc::ViERTP_RTCP::SetReceiveTimestampOffsetStatus, channel_id, offset_extension)) { return false; } if (!SetHeaderExtension( &webrtc::ViERTP_RTCP::SetReceiveAbsoluteSendTimeStatus, channel_id, send_time_extension)) { return false; } } return true; } bool WebRtcVideoMediaChannel::SetSendRtpHeaderExtensions( const std::vector<RtpHeaderExtension>& extensions) { send_extensions_ = extensions; const RtpHeaderExtension* offset_extension = FindHeaderExtension(extensions, kRtpTimestampOffsetHeaderExtension); const RtpHeaderExtension* send_time_extension = FindHeaderExtension(extensions, kRtpAbsoluteSendTimeHeaderExtension); // Loop through all send channels and enable/disable the extensions. for (SendChannelMap::iterator channel_it = send_channels_.begin(); channel_it != send_channels_.end(); ++channel_it) { int channel_id = channel_it->second->channel_id(); if (!SetHeaderExtension( &webrtc::ViERTP_RTCP::SetSendTimestampOffsetStatus, channel_id, offset_extension)) { return false; } if (!SetHeaderExtension( &webrtc::ViERTP_RTCP::SetSendAbsoluteSendTimeStatus, channel_id, send_time_extension)) { return false; } } return true; } bool WebRtcVideoMediaChannel::SetSendBandwidth(bool autobw, int bps) { LOG(LS_INFO) << "WebRtcVideoMediaChanne::SetSendBandwidth"; if (InConferenceMode()) { LOG(LS_INFO) << "Conference mode ignores SetSendBandWidth"; return true; } if (!send_codec_) { LOG(LS_INFO) << "The send codec has not been set up yet"; return true; } int min_bitrate; int start_bitrate; int max_bitrate; if (autobw) { // Use the default values for min bitrate. min_bitrate = kMinVideoBitrate; // Use the default value or the bps for the max max_bitrate = (bps <= 0) ? send_max_bitrate_ : (bps / 1000); // Maximum start bitrate can be kStartVideoBitrate. start_bitrate = talk_base::_min(kStartVideoBitrate, max_bitrate); } else { // Use the default start or the bps as the target bitrate. int target_bitrate = (bps <= 0) ? kStartVideoBitrate : (bps / 1000); min_bitrate = target_bitrate; start_bitrate = target_bitrate; max_bitrate = target_bitrate; } if (!SetSendCodec(*send_codec_, min_bitrate, start_bitrate, max_bitrate)) { return false; } LogSendCodecChange("SetSendBandwidth()"); return true; } bool WebRtcVideoMediaChannel::SetOptions(const VideoOptions &options) { // Always accept options that are unchanged. if (options_ == options) { return true; } // Trigger SetSendCodec to set correct noise reduction state if the option has // changed. bool denoiser_changed = options.video_noise_reduction.IsSet() && (options_.video_noise_reduction != options.video_noise_reduction); bool leaky_bucket_changed = options.video_leaky_bucket.IsSet() && (options_.video_leaky_bucket != options.video_leaky_bucket); bool buffer_latency_changed = options.buffered_mode_latency.IsSet() && (options_.buffered_mode_latency != options.buffered_mode_latency); bool conference_mode_turned_off = false; if (options_.conference_mode.IsSet() && options.conference_mode.IsSet() && options_.conference_mode.GetWithDefaultIfUnset(false) && !options.conference_mode.GetWithDefaultIfUnset(false)) { conference_mode_turned_off = true; } // Save the options, to be interpreted where appropriate. // Use options_.SetAll() instead of assignment so that unset value in options // will not overwrite the previous option value. options_.SetAll(options); // Set CPU options for all send channels. for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; send_channel->ApplyCpuOptions(options_); } // Adjust send codec bitrate if needed. int conf_max_bitrate = kDefaultConferenceModeMaxVideoBitrate; int expected_bitrate = send_max_bitrate_; if (InConferenceMode()) { expected_bitrate = conf_max_bitrate; } else if (conference_mode_turned_off) { // This is a special case for turning conference mode off. // Max bitrate should go back to the default maximum value instead // of the current maximum. expected_bitrate = kMaxVideoBitrate; } if (send_codec_ && (send_max_bitrate_ != expected_bitrate || denoiser_changed)) { // On success, SetSendCodec() will reset send_max_bitrate_ to // expected_bitrate. if (!SetSendCodec(*send_codec_, send_min_bitrate_, send_start_bitrate_, expected_bitrate)) { return false; } LogSendCodecChange("SetOptions()"); } if (leaky_bucket_changed) { bool enable_leaky_bucket = options_.video_leaky_bucket.GetWithDefaultIfUnset(false); for (SendChannelMap::iterator it = send_channels_.begin(); it != send_channels_.end(); ++it) { if (engine()->vie()->rtp()->SetTransmissionSmoothingStatus( it->second->channel_id(), enable_leaky_bucket) != 0) { LOG_RTCERR2(SetTransmissionSmoothingStatus, it->second->channel_id(), enable_leaky_bucket); } } } if (buffer_latency_changed) { int buffer_latency = options_.buffered_mode_latency.GetWithDefaultIfUnset( cricket::kBufferedModeDisabled); for (SendChannelMap::iterator it = send_channels_.begin(); it != send_channels_.end(); ++it) { if (engine()->vie()->rtp()->SetSenderBufferingMode( it->second->channel_id(), buffer_latency) != 0) { LOG_RTCERR2(SetSenderBufferingMode, it->second->channel_id(), buffer_latency); } } for (RecvChannelMap::iterator it = recv_channels_.begin(); it != recv_channels_.end(); ++it) { if (engine()->vie()->rtp()->SetReceiverBufferingMode( it->second->channel_id(), buffer_latency) != 0) { LOG_RTCERR2(SetReceiverBufferingMode, it->second->channel_id(), buffer_latency); } } } return true; } void WebRtcVideoMediaChannel::SetInterface(NetworkInterface* iface) { MediaChannel::SetInterface(iface); // Set the RTP recv/send buffer to a bigger size if (network_interface_) { network_interface_->SetOption(NetworkInterface::ST_RTP, talk_base::Socket::OPT_RCVBUF, kVideoRtpBufferSize); // TODO(sriniv): Remove or re-enable this. // As part of b/8030474, send-buffer is size now controlled through // portallocator flags. // network_interface_->SetOption(NetworkInterface::ST_RTP, // talk_base::Socket::OPT_SNDBUF, // kVideoRtpBufferSize); } } void WebRtcVideoMediaChannel::UpdateAspectRatio(int ratio_w, int ratio_h) { ASSERT(ratio_w != 0); ASSERT(ratio_h != 0); ratio_w_ = ratio_w; ratio_h_ = ratio_h; // For now assume that all streams want the same aspect ratio. // TODO(hellner): remove the need for this assumption. for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; VideoCapturer* capturer = send_channel->video_capturer(); if (capturer) { capturer->UpdateAspectRatio(ratio_w, ratio_h); } } } bool WebRtcVideoMediaChannel::GetRenderer(uint32 ssrc, VideoRenderer** renderer) { RecvChannelMap::const_iterator it = recv_channels_.find(ssrc); if (it == recv_channels_.end()) { if (first_receive_ssrc_ == ssrc && recv_channels_.find(0) != recv_channels_.end()) { LOG(LS_INFO) << " GetRenderer " << ssrc << " reuse default renderer #" << vie_channel_; *renderer = recv_channels_[0]->render_adapter()->renderer(); return true; } return false; } *renderer = it->second->render_adapter()->renderer(); return true; } void WebRtcVideoMediaChannel::AdaptAndSendFrame(VideoCapturer* capturer, const VideoFrame* frame) { if (capturer->IsScreencast()) { // Do not adapt frames that are screencast. SendFrame(capturer, frame); return; } // TODO(thorcarpenter): This is broken. One capturer registered on two ssrc // will not send any video to the second ssrc send channel. We should remove // GetSendChannel(capturer) and pass in an ssrc here. WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(capturer); if (!send_channel) { SendFrame(capturer, frame); return; } const VideoFrame* output_frame = NULL; send_channel->AdaptFrame(frame, &output_frame); if (output_frame) { SendFrame(send_channel, output_frame, capturer->IsScreencast()); } } // TODO(zhurunz): Add unittests to test this function. void WebRtcVideoMediaChannel::SendFrame(VideoCapturer* capturer, const VideoFrame* frame) { // If there's send channel registers to the |capturer|, then only send the // frame to that channel and return. Otherwise send the frame to the default // channel, which currently taking frames from the engine. WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(capturer); if (send_channel) { SendFrame(send_channel, frame, capturer->IsScreencast()); return; } // TODO(hellner): Remove below for loop once the captured frame no longer // come from the engine, i.e. the engine no longer owns a capturer. for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; if (send_channel->video_capturer() == NULL) { SendFrame(send_channel, frame, capturer->IsScreencast()); } } } bool WebRtcVideoMediaChannel::SendFrame( WebRtcVideoChannelSendInfo* send_channel, const VideoFrame* frame, bool is_screencast) { if (!send_channel) { return false; } if (!send_codec_) { // Send codec has not been set. No reason to process the frame any further. return false; } const VideoFormat& video_format = send_channel->video_format(); // If the frame should be dropped. const bool video_format_set = video_format != cricket::VideoFormat(); if (video_format_set && (video_format.width == 0 && video_format.height == 0)) { return true; } // Checks if we need to reset vie send codec. if (!MaybeResetVieSendCodec(send_channel, static_cast<int>(frame->GetWidth()), static_cast<int>(frame->GetHeight()), is_screencast, NULL)) { LOG(LS_ERROR) << "MaybeResetVieSendCodec failed with " << frame->GetWidth() << "x" << frame->GetHeight(); return false; } const VideoFrame* frame_out = frame; talk_base::scoped_ptr<VideoFrame> processed_frame; // Disable muting for screencast. const bool mute = (send_channel->muted() && !is_screencast); send_channel->ProcessFrame(*frame_out, mute, processed_frame.use()); if (processed_frame) { frame_out = processed_frame.get(); } webrtc::ViEVideoFrameI420 frame_i420; // TODO(ronghuawu): Update the webrtc::ViEVideoFrameI420 // to use const unsigned char* frame_i420.y_plane = const_cast<unsigned char*>(frame_out->GetYPlane()); frame_i420.u_plane = const_cast<unsigned char*>(frame_out->GetUPlane()); frame_i420.v_plane = const_cast<unsigned char*>(frame_out->GetVPlane()); frame_i420.y_pitch = frame_out->GetYPitch(); frame_i420.u_pitch = frame_out->GetUPitch(); frame_i420.v_pitch = frame_out->GetVPitch(); frame_i420.width = static_cast<unsigned short>(frame_out->GetWidth()); frame_i420.height = static_cast<unsigned short>(frame_out->GetHeight()); int64 timestamp_ntp_ms = 0; // TODO(justinlin): Reenable after Windows issues with clock drift are fixed. // Currently reverted to old behavior of discarding capture timestamp. #if 0 // If the frame timestamp is 0, we will use the deliver time. const int64 frame_timestamp = frame->GetTimeStamp(); if (frame_timestamp != 0) { if (abs(time(NULL) - frame_timestamp / talk_base::kNumNanosecsPerSec) > kTimestampDeltaInSecondsForWarning) { LOG(LS_WARNING) << "Frame timestamp differs by more than " << kTimestampDeltaInSecondsForWarning << " seconds from " << "current Unix timestamp."; } timestamp_ntp_ms = talk_base::UnixTimestampNanosecsToNtpMillisecs(frame_timestamp); } #endif return send_channel->external_capture()->IncomingFrameI420( frame_i420, timestamp_ntp_ms) == 0; } bool WebRtcVideoMediaChannel::CreateChannel(uint32 ssrc_key, MediaDirection direction, int* channel_id) { // There are 3 types of channels. Sending only, receiving only and // sending and receiving. The sending and receiving channel is the // default channel and there is only one. All other channels that are created // are associated with the default channel which must exist. The default // channel id is stored in |vie_channel_|. All channels need to know about // the default channel to properly handle remb which is why there are // different ViE create channel calls. // For this channel the local and remote ssrc key is 0. However, it may // have a non-zero local and/or remote ssrc depending on if it is currently // sending and/or receiving. if ((vie_channel_ == -1 || direction == MD_SENDRECV) && (!send_channels_.empty() || !recv_channels_.empty())) { ASSERT(false); return false; } *channel_id = -1; if (direction == MD_RECV) { // All rec channels are associated with the default channel |vie_channel_| if (engine_->vie()->base()->CreateReceiveChannel(*channel_id, vie_channel_) != 0) { LOG_RTCERR2(CreateReceiveChannel, *channel_id, vie_channel_); return false; } } else if (direction == MD_SEND) { if (engine_->vie()->base()->CreateChannel(*channel_id, vie_channel_) != 0) { LOG_RTCERR2(CreateChannel, *channel_id, vie_channel_); return false; } } else { ASSERT(direction == MD_SENDRECV); if (engine_->vie()->base()->CreateChannel(*channel_id) != 0) { LOG_RTCERR1(CreateChannel, *channel_id); return false; } } if (!ConfigureChannel(*channel_id, direction, ssrc_key)) { engine_->vie()->base()->DeleteChannel(*channel_id); *channel_id = -1; return false; } return true; } bool WebRtcVideoMediaChannel::ConfigureChannel(int channel_id, MediaDirection direction, uint32 ssrc_key) { const bool receiving = (direction == MD_RECV) || (direction == MD_SENDRECV); const bool sending = (direction == MD_SEND) || (direction == MD_SENDRECV); // Register external transport. if (engine_->vie()->network()->RegisterSendTransport( channel_id, *this) != 0) { LOG_RTCERR1(RegisterSendTransport, channel_id); return false; } // Set MTU. if (engine_->vie()->network()->SetMTU(channel_id, kVideoMtu) != 0) { LOG_RTCERR2(SetMTU, channel_id, kVideoMtu); return false; } // Turn on RTCP and loss feedback reporting. if (engine()->vie()->rtp()->SetRTCPStatus( channel_id, webrtc::kRtcpCompound_RFC4585) != 0) { LOG_RTCERR2(SetRTCPStatus, channel_id, webrtc::kRtcpCompound_RFC4585); return false; } // Enable pli as key frame request method. if (engine_->vie()->rtp()->SetKeyFrameRequestMethod( channel_id, webrtc::kViEKeyFrameRequestPliRtcp) != 0) { LOG_RTCERR2(SetKeyFrameRequestMethod, channel_id, webrtc::kViEKeyFrameRequestPliRtcp); return false; } if (!SetNackFec(channel_id, send_red_type_, send_fec_type_, nack_enabled_)) { // Logged in SetNackFec. Don't spam the logs. return false; } // Note that receiving must always be configured before sending to ensure // that send and receive channel is configured correctly (ConfigureReceiving // assumes no sending). if (receiving) { if (!ConfigureReceiving(channel_id, ssrc_key)) { return false; } } if (sending) { if (!ConfigureSending(channel_id, ssrc_key)) { return false; } } return true; } bool WebRtcVideoMediaChannel::ConfigureReceiving(int channel_id, uint32 remote_ssrc_key) { // Make sure that an SSRC/key isn't registered more than once. if (recv_channels_.find(remote_ssrc_key) != recv_channels_.end()) { return false; } // Connect the voice channel, if there is one. // TODO(perkj): The A/V is synched by the receiving channel. So we need to // know the SSRC of the remote audio channel in order to fetch the correct // webrtc VoiceEngine channel. For now- only sync the default channel used // in 1-1 calls. if (remote_ssrc_key == 0 && voice_channel_) { WebRtcVoiceMediaChannel* voice_channel = static_cast<WebRtcVoiceMediaChannel*>(voice_channel_); if (engine_->vie()->base()->ConnectAudioChannel( vie_channel_, voice_channel->voe_channel()) != 0) { LOG_RTCERR2(ConnectAudioChannel, channel_id, voice_channel->voe_channel()); LOG(LS_WARNING) << "A/V not synchronized"; // Not a fatal error. } } talk_base::scoped_ptr<WebRtcVideoChannelRecvInfo> channel_info( new WebRtcVideoChannelRecvInfo(channel_id)); // Install a render adapter. if (engine_->vie()->render()->AddRenderer(channel_id, webrtc::kVideoI420, channel_info->render_adapter()) != 0) { LOG_RTCERR3(AddRenderer, channel_id, webrtc::kVideoI420, channel_info->render_adapter()); return false; } if (engine_->vie()->rtp()->SetRembStatus(channel_id, kNotSending, remb_enabled_) != 0) { LOG_RTCERR3(SetRembStatus, channel_id, kNotSending, remb_enabled_); return false; } if (!SetHeaderExtension(&webrtc::ViERTP_RTCP::SetReceiveTimestampOffsetStatus, channel_id, receive_extensions_, kRtpTimestampOffsetHeaderExtension)) { return false; } if (!SetHeaderExtension( &webrtc::ViERTP_RTCP::SetReceiveAbsoluteSendTimeStatus, channel_id, receive_extensions_, kRtpAbsoluteSendTimeHeaderExtension)) { return false; } if (remote_ssrc_key != 0) { // Use the same SSRC as our default channel // (so the RTCP reports are correct). unsigned int send_ssrc = 0; webrtc::ViERTP_RTCP* rtp = engine()->vie()->rtp(); if (rtp->GetLocalSSRC(vie_channel_, send_ssrc) == -1) { LOG_RTCERR2(GetLocalSSRC, vie_channel_, send_ssrc); return false; } if (rtp->SetLocalSSRC(channel_id, send_ssrc) == -1) { LOG_RTCERR2(SetLocalSSRC, channel_id, send_ssrc); return false; } } // Else this is the the default channel and we don't change the SSRC. // Disable color enhancement since it is a bit too aggressive. if (engine()->vie()->image()->EnableColorEnhancement(channel_id, false) != 0) { LOG_RTCERR1(EnableColorEnhancement, channel_id); return false; } if (!SetReceiveCodecs(channel_info.get())) { return false; } int buffer_latency = options_.buffered_mode_latency.GetWithDefaultIfUnset( cricket::kBufferedModeDisabled); if (buffer_latency != cricket::kBufferedModeDisabled) { if (engine()->vie()->rtp()->SetReceiverBufferingMode( channel_id, buffer_latency) != 0) { LOG_RTCERR2(SetReceiverBufferingMode, channel_id, buffer_latency); } } if (render_started_) { if (engine_->vie()->render()->StartRender(channel_id) != 0) { LOG_RTCERR1(StartRender, channel_id); return false; } } // Register decoder observer for incoming framerate and bitrate. if (engine()->vie()->codec()->RegisterDecoderObserver( channel_id, *channel_info->decoder_observer()) != 0) { LOG_RTCERR1(RegisterDecoderObserver, channel_info->decoder_observer()); return false; } recv_channels_[remote_ssrc_key] = channel_info.release(); return true; } bool WebRtcVideoMediaChannel::ConfigureSending(int channel_id, uint32 local_ssrc_key) { // The ssrc key can be zero or correspond to an SSRC. // Make sure the default channel isn't configured more than once. if (local_ssrc_key == 0 && send_channels_.find(0) != send_channels_.end()) { return false; } // Make sure that the SSRC is not already in use. uint32 dummy_key; if (GetSendChannelKey(local_ssrc_key, &dummy_key)) { return false; } int vie_capture = 0; webrtc::ViEExternalCapture* external_capture = NULL; // Register external capture. if (engine()->vie()->capture()->AllocateExternalCaptureDevice( vie_capture, external_capture) != 0) { LOG_RTCERR0(AllocateExternalCaptureDevice); return false; } // Connect external capture. if (engine()->vie()->capture()->ConnectCaptureDevice( vie_capture, channel_id) != 0) { LOG_RTCERR2(ConnectCaptureDevice, vie_capture, channel_id); return false; } talk_base::scoped_ptr<WebRtcVideoChannelSendInfo> send_channel( new WebRtcVideoChannelSendInfo(channel_id, vie_capture, external_capture, engine()->cpu_monitor())); send_channel->ApplyCpuOptions(options_); // Register encoder observer for outgoing framerate and bitrate. if (engine()->vie()->codec()->RegisterEncoderObserver( channel_id, *send_channel->encoder_observer()) != 0) { LOG_RTCERR1(RegisterEncoderObserver, send_channel->encoder_observer()); return false; } if (!SetHeaderExtension(&webrtc::ViERTP_RTCP::SetSendTimestampOffsetStatus, channel_id, send_extensions_, kRtpTimestampOffsetHeaderExtension)) { return false; } if (!SetHeaderExtension(&webrtc::ViERTP_RTCP::SetSendAbsoluteSendTimeStatus, channel_id, send_extensions_, kRtpAbsoluteSendTimeHeaderExtension)) { return false; } if (options_.video_leaky_bucket.GetWithDefaultIfUnset(false)) { if (engine()->vie()->rtp()->SetTransmissionSmoothingStatus(channel_id, true) != 0) { LOG_RTCERR2(SetTransmissionSmoothingStatus, channel_id, true); return false; } } int buffer_latency = options_.buffered_mode_latency.GetWithDefaultIfUnset( cricket::kBufferedModeDisabled); if (buffer_latency != cricket::kBufferedModeDisabled) { if (engine()->vie()->rtp()->SetSenderBufferingMode( channel_id, buffer_latency) != 0) { LOG_RTCERR2(SetSenderBufferingMode, channel_id, buffer_latency); } } // The remb status direction correspond to the RTP stream (and not the RTCP // stream). I.e. if send remb is enabled it means it is receiving remote // rembs and should use them to estimate bandwidth. Receive remb mean that // remb packets will be generated and that the channel should be included in // it. If remb is enabled all channels are allowed to contribute to the remb // but only receive channels will ever end up actually contributing. This // keeps the logic simple. if (engine_->vie()->rtp()->SetRembStatus(channel_id, remb_enabled_, remb_enabled_) != 0) { LOG_RTCERR3(SetRembStatus, channel_id, remb_enabled_, remb_enabled_); return false; } if (!SetNackFec(channel_id, send_red_type_, send_fec_type_, nack_enabled_)) { // Logged in SetNackFec. Don't spam the logs. return false; } send_channels_[local_ssrc_key] = send_channel.release(); return true; } bool WebRtcVideoMediaChannel::SetNackFec(int channel_id, int red_payload_type, int fec_payload_type, bool nack_enabled) { bool enable = (red_payload_type != -1 && fec_payload_type != -1 && !InConferenceMode()); if (enable) { if (engine_->vie()->rtp()->SetHybridNACKFECStatus( channel_id, nack_enabled, red_payload_type, fec_payload_type) != 0) { LOG_RTCERR4(SetHybridNACKFECStatus, channel_id, nack_enabled, red_payload_type, fec_payload_type); return false; } LOG(LS_INFO) << "Hybrid NACK/FEC enabled for channel " << channel_id; } else { if (engine_->vie()->rtp()->SetNACKStatus(channel_id, nack_enabled) != 0) { LOG_RTCERR1(SetNACKStatus, channel_id); return false; } LOG(LS_INFO) << "NACK enabled for channel " << channel_id; } return true; } bool WebRtcVideoMediaChannel::SetSendCodec(const webrtc::VideoCodec& codec, int min_bitrate, int start_bitrate, int max_bitrate) { bool ret_val = true; for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; ret_val = SetSendCodec(send_channel, codec, min_bitrate, start_bitrate, max_bitrate) && ret_val; } if (ret_val) { // All SetSendCodec calls were successful. Update the global state // accordingly. send_codec_.reset(new webrtc::VideoCodec(codec)); send_min_bitrate_ = min_bitrate; send_start_bitrate_ = start_bitrate; send_max_bitrate_ = max_bitrate; } else { // At least one SetSendCodec call failed, rollback. for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; if (send_codec_) { SetSendCodec(send_channel, *send_codec_.get(), send_min_bitrate_, send_start_bitrate_, send_max_bitrate_); } } } return ret_val; } bool WebRtcVideoMediaChannel::SetSendCodec( WebRtcVideoChannelSendInfo* send_channel, const webrtc::VideoCodec& codec, int min_bitrate, int start_bitrate, int max_bitrate) { if (!send_channel) { return false; } const int channel_id = send_channel->channel_id(); // Make a copy of the codec webrtc::VideoCodec target_codec = codec; target_codec.startBitrate = start_bitrate; target_codec.minBitrate = min_bitrate; target_codec.maxBitrate = max_bitrate; // Set the default number of temporal layers for VP8. if (webrtc::kVideoCodecVP8 == codec.codecType) { target_codec.codecSpecific.VP8.numberOfTemporalLayers = kDefaultNumberOfTemporalLayers; // Turn off the VP8 error resilience target_codec.codecSpecific.VP8.resilience = webrtc::kResilienceOff; bool enable_denoising = options_.video_noise_reduction.GetWithDefaultIfUnset(false); target_codec.codecSpecific.VP8.denoisingOn = enable_denoising; } // Register external encoder if codec type is supported by encoder factory. if (engine()->IsExternalEncoderCodecType(codec.codecType) && !send_channel->IsEncoderRegistered(target_codec.plType)) { webrtc::VideoEncoder* encoder = engine()->CreateExternalEncoder(codec.codecType); if (encoder) { if (engine()->vie()->ext_codec()->RegisterExternalSendCodec( channel_id, target_codec.plType, encoder, false) == 0) { send_channel->RegisterEncoder(target_codec.plType, encoder); } else { LOG_RTCERR2(RegisterExternalSendCodec, channel_id, target_codec.plName); engine()->DestroyExternalEncoder(encoder); } } } // Resolution and framerate may vary for different send channels. const VideoFormat& video_format = send_channel->video_format(); UpdateVideoCodec(video_format, &target_codec); if (target_codec.width == 0 && target_codec.height == 0) { const uint32 ssrc = send_channel->stream_params()->first_ssrc(); LOG(LS_INFO) << "0x0 resolution selected. Captured frames will be dropped " << "for ssrc: " << ssrc << "."; } else { MaybeChangeStartBitrate(channel_id, &target_codec); if (0 != engine()->vie()->codec()->SetSendCodec(channel_id, target_codec)) { LOG_RTCERR2(SetSendCodec, channel_id, target_codec.plName); return false; } } send_channel->set_interval( cricket::VideoFormat::FpsToInterval(target_codec.maxFramerate)); return true; } static std::string ToString(webrtc::VideoCodecComplexity complexity) { switch (complexity) { case webrtc::kComplexityNormal: return "normal"; case webrtc::kComplexityHigh: return "high"; case webrtc::kComplexityHigher: return "higher"; case webrtc::kComplexityMax: return "max"; default: return "unknown"; } } static std::string ToString(webrtc::VP8ResilienceMode resilience) { switch (resilience) { case webrtc::kResilienceOff: return "off"; case webrtc::kResilientStream: return "stream"; case webrtc::kResilientFrames: return "frames"; default: return "unknown"; } } void WebRtcVideoMediaChannel::LogSendCodecChange(const std::string& reason) { webrtc::VideoCodec vie_codec; if (engine()->vie()->codec()->GetSendCodec(vie_channel_, vie_codec) != 0) { LOG_RTCERR1(GetSendCodec, vie_channel_); return; } LOG(LS_INFO) << reason << " : selected video codec " << vie_codec.plName << "/" << vie_codec.width << "x" << vie_codec.height << "x" << static_cast<int>(vie_codec.maxFramerate) << "fps" << "@" << vie_codec.maxBitrate << "kbps" << " (min=" << vie_codec.minBitrate << "kbps," << " start=" << vie_codec.startBitrate << "kbps)"; LOG(LS_INFO) << "Video max quantization: " << vie_codec.qpMax; if (webrtc::kVideoCodecVP8 == vie_codec.codecType) { LOG(LS_INFO) << "VP8 number of temporal layers: " << static_cast<int>( vie_codec.codecSpecific.VP8.numberOfTemporalLayers); LOG(LS_INFO) << "VP8 options : " << "picture loss indication = " << vie_codec.codecSpecific.VP8.pictureLossIndicationOn << ", feedback mode = " << vie_codec.codecSpecific.VP8.feedbackModeOn << ", complexity = " << ToString(vie_codec.codecSpecific.VP8.complexity) << ", resilience = " << ToString(vie_codec.codecSpecific.VP8.resilience) << ", denoising = " << vie_codec.codecSpecific.VP8.denoisingOn << ", error concealment = " << vie_codec.codecSpecific.VP8.errorConcealmentOn << ", automatic resize = " << vie_codec.codecSpecific.VP8.automaticResizeOn << ", frame dropping = " << vie_codec.codecSpecific.VP8.frameDroppingOn << ", key frame interval = " << vie_codec.codecSpecific.VP8.keyFrameInterval; } } bool WebRtcVideoMediaChannel::SetReceiveCodecs( WebRtcVideoChannelRecvInfo* info) { int red_type = -1; int fec_type = -1; int channel_id = info->channel_id(); for (std::vector<webrtc::VideoCodec>::iterator it = receive_codecs_.begin(); it != receive_codecs_.end(); ++it) { if (it->codecType == webrtc::kVideoCodecRED) { red_type = it->plType; } else if (it->codecType == webrtc::kVideoCodecULPFEC) { fec_type = it->plType; } if (engine()->vie()->codec()->SetReceiveCodec(channel_id, *it) != 0) { LOG_RTCERR2(SetReceiveCodec, channel_id, it->plName); return false; } if (!info->IsDecoderRegistered(it->plType) && it->codecType != webrtc::kVideoCodecRED && it->codecType != webrtc::kVideoCodecULPFEC) { webrtc::VideoDecoder* decoder = engine()->CreateExternalDecoder(it->codecType); if (decoder) { if (engine()->vie()->ext_codec()->RegisterExternalReceiveCodec( channel_id, it->plType, decoder) == 0) { info->RegisterDecoder(it->plType, decoder); } else { LOG_RTCERR2(RegisterExternalReceiveCodec, channel_id, it->plName); engine()->DestroyExternalDecoder(decoder); } } } } // Start receiving packets if at least one receive codec has been set. if (!receive_codecs_.empty()) { if (engine()->vie()->base()->StartReceive(channel_id) != 0) { LOG_RTCERR1(StartReceive, channel_id); return false; } } return true; } int WebRtcVideoMediaChannel::GetRecvChannelNum(uint32 ssrc) { if (ssrc == first_receive_ssrc_) { return vie_channel_; } RecvChannelMap::iterator it = recv_channels_.find(ssrc); return (it != recv_channels_.end()) ? it->second->channel_id() : -1; } // If the new frame size is different from the send codec size we set on vie, // we need to reset the send codec on vie. // The new send codec size should not exceed send_codec_ which is controlled // only by the 'jec' logic. bool WebRtcVideoMediaChannel::MaybeResetVieSendCodec( WebRtcVideoChannelSendInfo* send_channel, int new_width, int new_height, bool is_screencast, bool* reset) { if (reset) { *reset = false; } ASSERT(send_codec_.get() != NULL); webrtc::VideoCodec target_codec = *send_codec_.get(); const VideoFormat& video_format = send_channel->video_format(); UpdateVideoCodec(video_format, &target_codec); // Vie send codec size should not exceed target_codec. int target_width = new_width; int target_height = new_height; if (!is_screencast && (new_width > target_codec.width || new_height > target_codec.height)) { target_width = target_codec.width; target_height = target_codec.height; } // Get current vie codec. webrtc::VideoCodec vie_codec; const int channel_id = send_channel->channel_id(); if (engine()->vie()->codec()->GetSendCodec(channel_id, vie_codec) != 0) { LOG_RTCERR1(GetSendCodec, channel_id); return false; } const int cur_width = vie_codec.width; const int cur_height = vie_codec.height; // Only reset send codec when there is a size change. Additionally, // automatic resize needs to be turned off when screencasting and on when // not screencasting. // Don't allow automatic resizing for screencasting. bool automatic_resize = !is_screencast; // Turn off VP8 frame dropping when screensharing as the current model does // not work well at low fps. bool vp8_frame_dropping = !is_screencast; // Disable denoising for screencasting. bool enable_denoising = options_.video_noise_reduction.GetWithDefaultIfUnset(false); bool denoising = !is_screencast && enable_denoising; bool reset_send_codec = target_width != cur_width || target_height != cur_height || automatic_resize != vie_codec.codecSpecific.VP8.automaticResizeOn || denoising != vie_codec.codecSpecific.VP8.denoisingOn || vp8_frame_dropping != vie_codec.codecSpecific.VP8.frameDroppingOn; if (reset_send_codec) { // Set the new codec on vie. vie_codec.width = target_width; vie_codec.height = target_height; vie_codec.maxFramerate = target_codec.maxFramerate; vie_codec.startBitrate = target_codec.startBitrate; vie_codec.codecSpecific.VP8.automaticResizeOn = automatic_resize; vie_codec.codecSpecific.VP8.denoisingOn = denoising; vie_codec.codecSpecific.VP8.frameDroppingOn = vp8_frame_dropping; // TODO(mflodman): Remove 'is_screencast' check when screen cast settings // are treated correctly in WebRTC. if (!is_screencast) MaybeChangeStartBitrate(channel_id, &vie_codec); if (engine()->vie()->codec()->SetSendCodec(channel_id, vie_codec) != 0) { LOG_RTCERR1(SetSendCodec, channel_id); return false; } if (reset) { *reset = true; } LogSendCodecChange("Capture size changed"); } return true; } void WebRtcVideoMediaChannel::MaybeChangeStartBitrate( int channel_id, webrtc::VideoCodec* video_codec) { if (video_codec->startBitrate < video_codec->minBitrate) { video_codec->startBitrate = video_codec->minBitrate; } else if (video_codec->startBitrate > video_codec->maxBitrate) { video_codec->startBitrate = video_codec->maxBitrate; } // Use a previous target bitrate, if there is one. unsigned int current_target_bitrate = 0; if (engine()->vie()->codec()->GetCodecTargetBitrate( channel_id, &current_target_bitrate) == 0) { // Convert to kbps. current_target_bitrate /= 1000; if (current_target_bitrate > video_codec->maxBitrate) { current_target_bitrate = video_codec->maxBitrate; } if (current_target_bitrate > video_codec->startBitrate) { video_codec->startBitrate = current_target_bitrate; } } } void WebRtcVideoMediaChannel::OnMessage(talk_base::Message* msg) { FlushBlackFrameData* black_frame_data = static_cast<FlushBlackFrameData*>(msg->pdata); FlushBlackFrame(black_frame_data->ssrc, black_frame_data->timestamp); delete black_frame_data; } int WebRtcVideoMediaChannel::SendPacket(int channel, const void* data, int len) { if (!network_interface_) { return -1; } talk_base::Buffer packet(data, len, kMaxRtpPacketLen); return network_interface_->SendPacket(&packet) ? len : -1; } int WebRtcVideoMediaChannel::SendRTCPPacket(int channel, const void* data, int len) { if (!network_interface_) { return -1; } talk_base::Buffer packet(data, len, kMaxRtpPacketLen); return network_interface_->SendRtcp(&packet) ? len : -1; } void WebRtcVideoMediaChannel::QueueBlackFrame(uint32 ssrc, int64 timestamp, int framerate) { if (timestamp) { FlushBlackFrameData* black_frame_data = new FlushBlackFrameData( ssrc, timestamp); const int delay_ms = static_cast<int>( 2 * cricket::VideoFormat::FpsToInterval(framerate) * talk_base::kNumMillisecsPerSec / talk_base::kNumNanosecsPerSec); worker_thread()->PostDelayed(delay_ms, this, 0, black_frame_data); } } void WebRtcVideoMediaChannel::FlushBlackFrame(uint32 ssrc, int64 timestamp) { WebRtcVideoChannelSendInfo* send_channel = GetSendChannel(ssrc); if (!send_channel) { return; } talk_base::scoped_ptr<const VideoFrame> black_frame_ptr; const WebRtcLocalStreamInfo* channel_stream_info = send_channel->local_stream_info(); int64 last_frame_time_stamp = channel_stream_info->time_stamp(); if (last_frame_time_stamp == timestamp) { size_t last_frame_width = 0; size_t last_frame_height = 0; int64 last_frame_elapsed_time = 0; channel_stream_info->GetLastFrameInfo(&last_frame_width, &last_frame_height, &last_frame_elapsed_time); if (!last_frame_width || !last_frame_height) { return; } WebRtcVideoFrame black_frame; // Black frame is not screencast. const bool screencasting = false; const int64 timestamp_delta = send_channel->interval(); if (!black_frame.InitToBlack(send_codec_->width, send_codec_->height, 1, 1, last_frame_elapsed_time + timestamp_delta, last_frame_time_stamp + timestamp_delta) || !SendFrame(send_channel, &black_frame, screencasting)) { LOG(LS_ERROR) << "Failed to send black frame."; } } } void WebRtcVideoMediaChannel::SetNetworkTransmissionState( bool is_transmitting) { LOG(LS_INFO) << "SetNetworkTransmissionState: " << is_transmitting; for (SendChannelMap::iterator iter = send_channels_.begin(); iter != send_channels_.end(); ++iter) { WebRtcVideoChannelSendInfo* send_channel = iter->second; int channel_id = send_channel->channel_id(); engine_->vie()->network()->SetNetworkTransmissionState(channel_id, is_transmitting); } } bool WebRtcVideoMediaChannel::SetHeaderExtension(ExtensionSetterFunction setter, int channel_id, const RtpHeaderExtension* extension) { bool enable = false; int id = 0; if (extension) { enable = true; id = extension->id; } if ((engine_->vie()->rtp()->*setter)(channel_id, enable, id) != 0) { LOG_RTCERR4(*setter, extension->uri, channel_id, enable, id); return false; } return true; } bool WebRtcVideoMediaChannel::SetHeaderExtension(ExtensionSetterFunction setter, int channel_id, const std::vector<RtpHeaderExtension>& extensions, const char header_extension_uri[]) { const RtpHeaderExtension* extension = FindHeaderExtension(extensions, header_extension_uri); return SetHeaderExtension(setter, channel_id, extension); } } // namespace cricket #endif // HAVE_WEBRTC_VIDEO
[ "jeidee@gmail.com" ]
jeidee@gmail.com
b8f59d73669f20e8cc100512e4068fc9582c1a55
706dd85e8712b80bc03a316ca8cdc8a7e3980d05
/ClientDemoDlg.cpp
35634c65250336ba6df56b734257a81493ff9fbb
[]
no_license
yyj8209/HikSyn
fa6be917d125501b1f80eb5959841dbc91cb5561
a2e819e5d3bbae9850b6abc6c27945f42b98f777
refs/heads/master
2021-06-21T14:31:36.296142
2020-04-09T23:07:50
2020-04-09T23:07:50
254,497,210
0
1
null
null
null
null
GB18030
C++
false
false
839,396
cpp
/********************************************************** FileName: ClientDemoDlg.cpp Description: main dialog, show the main function Date: 2008/12/12 Note: the global Macro definition and structure is in "GeneralDef.h", global variable and function is in "ClientDemo.cpp" Modification History: <version> <time> <desc> <1.0 > <2008/12/12> <created> ***********************************************************/ #include "stdafx.h" #include "string.h" #include "ClientDemo.h" #include ".\clientdemodlg.h" #include "DlgAddDevice.h" #include "DlgRemoteCfg.h" #include "math.h" #include "winver.h" #include "DlgDeviceInfo.h" #include "DlgUpgrade.h" #include "DlgFormatHD.h" #include "DlgRemoteKey.h" #include "DlgDeviceState.h" #include "DlgLocalLogConfig.h" #include "DlgJPEGSnatchConfig.h" #include "DlgBroadCast.h" #include "DlgHardDiskCfg.h" #include "DlgRemoteIPAccess.h" #include "DlgVoiceTalk.h" #include "DlgFortify.h" #include "DlgLogSearch.h" #include "DlgDeviceState.h" #include "DlgCheckTime.h" #include "DlgSerialTrans.h" #include "DlgConfigFlash.h" #include "DlgDoTest.h" #include "process.h" #include "DlgAtmFrameFormatV30.h" #include "DlgInquestDvr.h" #include "DlgPtzScope.h" #include "DlgSensorAddPreview.h" #include "DlgHolidayCfg.h" #include "DlgNetServiceCfg.h" #include "DlgCertInfo.h" #include "DlgT1test.h" #include "DlgDevServer.h" #include "DlgProductionTest.h" #include "DlgVedioAudioInCfg.h" #include "DlgProductCfg.h" #include "DlgVCADetionCfg.h" #include "DlgTalkMREx.h" #include "DlgVideoIntercomCall.h" #include "DlgDebug.h" #include "DlgUploadCalibrationFile.h" #include "DlgIperf.h" #include "MimeProtocolParsing.h" #include "cjson/cJSON.h" #include "DlgAlarmInfo.h" #include "DlgAsynloginWait.h" using namespace std; #pragma comment (lib, "version.lib") #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif static unsigned long ulAlarmPic = 0; extern HINSTANCE g_hDSSDK; extern HINSTANCE g_hDllInst; extern HINSTANCE g_hDllCalib; extern HINSTANCE g_hDllCurlLib; CRITICAL_SECTION g_cs; extern void InfoMinorTypeMap(const NET_DVR_LOG_V50 &stLogInfo, CString &szTemp); extern void EventMinorTypeMap(const NET_DVR_LOG_V50 &stLogInfo, CString &szTemp); extern void OperationMinorTypeMap(const NET_DVR_LOG_V50 &stLogInfo, CString &szTemp); extern void ExceptionMinorTypeMap(const NET_DVR_LOG_V50 &stLogInfo, CString &szTemp); extern void AlarmMinorTypeMap(const NET_DVR_LOG_V50 &stLogInfo, CString &szTemp); extern void ParaTypeMap(const NET_DVR_LOG_V50 &stLogInfo, CString &szTemp); int g_iCount = 0; BOOL g_bJSONBroken = FALSE;//JSON Broken flag extern int m_giAsynLoginReturn; extern bool m_gbAsynLogin; extern int m_giErrNo; extern const char* m_gpErrMsg; extern CDlgAsynloginWait* m_gpDlgAsynloginWait; //Alarm host typedef struct tagLOCAL_ALARM_INFO { int iDeviceIndex; LONG lCommand; char sDeviceIP[128]; /* IP地址 */ DWORD dwBufLen; WORD wLinkPort; tagLOCAL_ALARM_INFO() { iDeviceIndex = -1; lCommand = -1; memset(&sDeviceIP, 0, 128); dwBufLen = 0; wLinkPort = 0; } }LOCAL_ALARM_INFO, *LPLOCAL_ALARM_INFO; string UTF82ASCII(const char* cont) { if (NULL == cont) { return string(""); } int num = MultiByteToWideChar(CP_UTF8, NULL, cont, -1, NULL, NULL); wchar_t* buffw = new wchar_t[(unsigned int)num]; MultiByteToWideChar(CP_UTF8, NULL, cont, -1, buffw, num); int len = WideCharToMultiByte(CP_ACP, 0, buffw, num - 1, NULL, NULL, NULL, NULL); char* lpsz = new char[(unsigned int)len + 1]; WideCharToMultiByte(CP_ACP, 0, buffw, num - 1, lpsz, len, NULL, NULL); lpsz[len]='\0'; delete[] buffw; string rtn(lpsz); delete[] lpsz; return rtn ; } /********************************************************* 函数名: A2UTF8 函数描述: 多字节转UTF8 输入参数: cont - 多字节字符串 输出参数: 返回值: UTF8编码的字符串 **********************************************************/ string ASCII2UTF8(const char* cont) { if (NULL == cont) { return string(""); } int num = MultiByteToWideChar(CP_ACP, NULL, cont, -1, NULL, NULL); wchar_t* buffw = new wchar_t[(unsigned int)num]; MultiByteToWideChar(CP_ACP, NULL, cont, -1, buffw, num); int len = WideCharToMultiByte(CP_UTF8, 0, buffw, num - 1, NULL, NULL, NULL, NULL); char* lpsz = new char[(unsigned int)len + 1]; WideCharToMultiByte(CP_UTF8, 0, buffw, num - 1, lpsz, len, NULL, NULL); lpsz[len]='\0'; delete[] buffw; string rtn(lpsz); delete[] lpsz; return rtn; } /********************************************************* Function: g_ExceptionCallBack Desc: exception callback function Input: dwType: message type;lUserID: log-in device ID;lHandle, handle of connected channel ; pUser, user data; Output: Return: **********************************************************/ void CALLBACK g_ExceptionCallBack(DWORD dwType, LONG lUserID, LONG lHandle, void *pUser) { UNREFERENCED_PARAMETER(pUser); if (g_bExitDemo) { return; } int i = 0, j=0; int iDeviceIndex = -1; CString sTemp; // char szTmpBuf[256] = {0}; for (i = 0; i < MAX_DEVICES ; i++) { if (g_struDeviceInfo[i].lLoginID == lUserID) { iDeviceIndex = i; break; } } switch (dwType) { case EXCEPTION_RELOGIN: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "EXCEPTION_RELOGIN"); break; case RELOGIN_SUCCESS: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "RELOGIN_SUCCESS"); break; case EXCEPTION_EXCHANGE://the device is off line g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_EXCHANGE"); break; case RESUME_EXCHANGE://the device is on line g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "RESUME_EXCHANGE"); break; case EXCEPTION_AUDIOEXCHANGE: //network exception while voice talk if (g_lVoiceHandle != -1) { if (lHandle == g_lVoiceHandle) {//sdk do not reconnect, so close the exception thread g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_AUDIOEXCHANGE vt dev[%d],handle[%d]", iDeviceIndex,lHandle); goto ExceptionOut; } } else { for (i = 0; i<MAX_DEVICES; i++) { for (j = 0; j<MAX_AUDIO_V40; j++) { if (g_struDeviceInfo[i].lVoiceCom[j] == lHandle) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AUDIOEXCHANGE mr dev[%d]exception[%d]", iDeviceIndex, dwType); if (NET_DVR_StopVoiceCom(lHandle)) { g_pMainDlg->AddLog(i, OPERATION_SUCC_T, "NET_DVR_StopVoiceCom audioindex[%d]", j); g_struDeviceInfo[i].lVoiceCom[j] = -1; } else { g_pMainDlg->AddLog(i, OPERATION_FAIL_T, "NET_DVR_StopVoiceCom audioindex[%d]", j); } goto ExceptionOut; } } } } if (g_struLocalParam.bBroadCast) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AUDIOEXCHANGE BC dev[%d]handle[%d]exception[%d]", iDeviceIndex, lHandle, dwType); NET_DVR_DelDVR_V30(lHandle); } break; case EXCEPTION_ALARM: //network exception while uploading alarm for (i = 0; i < MAX_DEVICES; i++) { if (g_struDeviceInfo[i].lFortifyHandle >= 0) { if (lHandle == g_struDeviceInfo[i].lFortifyHandle) { // if (NET_DVR_CloseAlarmChan_V30(g_struDeviceInfo[i].lFortifyHandle)) // { g_pMainDlg->AddLog(i, OPERATION_FAIL_T, "alarm fortify exception!"); // g_struDeviceInfo[i].lFortifyHandle = -1; // } // else // { // } goto ExceptionOut; } } } g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "ALARM dev[%d]exception[%d]", iDeviceIndex, dwType); break; case EXCEPTION_PREVIEW: // exception while preview g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "PREVIEW dev[%d]exception[%d]", iDeviceIndex, dwType); for (i = 0; i < MAX_OUTPUTS; i++) { if (lHandle == g_dlgOutput[i].m_lPlayHandle) { g_dlgOutput[i].AddLog(OPERATION_FAIL_T, "preview exception!"); if (g_dlgOutput[i].m_bLocalManualRec) { g_dlgOutput[i].StopLocalRecord(); } g_dlgOutput[i].StopPlay(); g_pMainDlg->ChangePlayBtnState(); goto ExceptionOut; } } break; case EXCEPTION_SERIAL: //exception while connecting in a transparent channel mode g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_SERIAL dev[%d]", iDeviceIndex); for (i = 0; i < MAX_DEVICES ; i++) { if (g_struDeviceInfo[i].lTranHandle >= 0) { if (lHandle == g_struDeviceInfo[i].lTranHandle) { g_pMainDlg->AddLog(i, OPERATION_FAIL_T, "serial transparent exception!!"); goto ExceptionOut; } } } break; case EXCEPTION_RECONNECT: //reconnect while preview g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "preview RECONNECT dev[%d]", iDeviceIndex); for (i = 0; i < MAX_OUTPUTS; i++) { if (lHandle == g_dlgOutput[i].m_lPlayHandle) { g_dlgOutput[i].AddLog(OPERATION_SUCC_T, "preview reconneting!");//reconnect to network while preview goto ExceptionOut; } } break; case PREVIEW_RECONNECTSUCCESS: //reconnect successfully while preview g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "PREVIEW_RECONNECTSUCCESS dev[%d]", iDeviceIndex); break; case EXCEPTION_ALARMRECONNECT://reconnect alarm guard channel g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "ALARMRECONNECT dev[%d]", iDeviceIndex); for (i = 0; i < MAX_DEVICES ; i++) { if (g_struDeviceInfo[i].lFortifyHandle >= 0) { if (lHandle == g_struDeviceInfo[i].lFortifyHandle) { g_pMainDlg->AddLog(i, OPERATION_SUCC_T, "alarm Fortify reconnecting!!"); goto ExceptionOut; } } } break; case ALARM_RECONNECTSUCCESS://reconnect alarm guard channel successfully g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "ALARM_RECONNECTSUCCESS dev[%d]", iDeviceIndex); break; case EXCEPTION_SERIALRECONNECT://reconnect transparent channel g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "SERIALRECONNECT dev[%d]exception[0x%x]", iDeviceIndex, dwType); for (i = 0; i < MAX_DEVICES ; i++) { if (g_struDeviceInfo[i].lLoginID == lUserID) { g_pMainDlg->AddLog(i, OPERATION_SUCC_T, "serial transparent reconnecting!"); goto ExceptionOut; } } break; case EXCEPTION_PLAYBACK: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_PLAYBACK dev[%d] exception[0x%x] error[%d]", iDeviceIndex, dwType, NET_DVR_GetLastError()); break; case EXCEPTION_DISKFMT: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_DISKFMT dev[%d]DISKFMT exception[0x%x]", iDeviceIndex, dwType); break; case EXCEPTION_PASSIVEDECODE: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_PASSIVEDECODE dev[%d]PASSIVEDECODE exception[0x%x]", iDeviceIndex, dwType); //NET_DVR_MatrixStopPassiveDecode(lHandle); break; case SERIAL_RECONNECTSUCCESS: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "SERIAL_RECONNECTSUCCESS dev[%d]", iDeviceIndex); break; case EXCEPTION_LOST_ALARM: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "EXCEPTION_LOST_ALARM"); break; case EXCEPTION_MAX_ALARM_INFO: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "EXCEPTION_MAX_ALARM_INFO"); break; case EXCEPTION_PASSIVEDECODE_RECONNNECT: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_PASSIVEDECODE_RECONNNECT"); break; case EXCEPTION_VIDEO_DOWNLOAD: // [add] by yangzheng 2019/11/09 增加录像文件下载异常 g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "EXCEPTION_VIDEO_DOWNLOAD"); break; default: g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "else exception dev[%d]exception[0x%x]", iDeviceIndex, dwType); break; } ExceptionOut: return; } /********************************************************* Function: AlarmMessage Desc: alarm Input: lCommand,message type; pAlarmer,info of device which upload message;pAlarmInfo, message info content;dwBufLen,message length; Output: Return: **********************************************************/ void AlarmMessage(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD dwBufLen) { UINT iDeviceIndex = 0xffff; UINT i = 0; if (g_pMainDlg == NULL || g_bExitDemo) { TRACE("exit ...\n"); //return; } for (i = 0; i < MAX_DEVICES; i++) {//IP address that client have acquired if (strcmp(g_struDeviceInfo[i].chDeviceIP, pAlarmer->sDeviceIP) == 0) { iDeviceIndex = i; break; } //监听时候的设备IP为sSocketIP if (strcmp(g_struDeviceInfo[i].chDeviceIP, pAlarmer->sSocketIP) == 0) { iDeviceIndex = i; break; } } if (pAlarmer->bJSONBroken) { g_bJSONBroken = 1; } else { g_bJSONBroken = 0; } if (iDeviceIndex >= MAX_DEVICES || iDeviceIndex < 0) { g_pMainDlg->AddLog(-1, ALARM_INFO_T, "alarm host get alarm[%x] from device[%s] port[%d]", lCommand, pAlarmer->sDeviceIP, pAlarmer->wLinkPort); //return; } else { char szDeviceName[NAME_LEN] = { 0 }; if (g_struDeviceInfo[iDeviceIndex].byCharaterEncodeType == ENUM_MEM_CHAR_ENCODE_UNICODE) { TranslateNetWcharToMutilChar(szDeviceName, (unsigned char*)(pAlarmer->sDeviceName), NAME_LEN); } else { strncpy(szDeviceName, pAlarmer->sDeviceName, NAME_LEN); } if (!(pAlarmer->byDeviceNameValid || pAlarmer->byMacAddrValid)) { g_pMainDlg->AddLog(-1, ALARM_INFO_T, "alarm host get alarm[%x] from device[%s] port[%d] serial:%s", \ lCommand, pAlarmer->sDeviceIP, pAlarmer->wLinkPort,pAlarmer->sSerialNumber); } else { g_pMainDlg->AddLog(-1, ALARM_INFO_T, "alarm host get alarm[%x] from device[%s] port[%d] name[%s] mac:%x:%x:%x:%x:%x:%x serial:%s", \ lCommand, pAlarmer->sDeviceIP, pAlarmer->wLinkPort, szDeviceName, pAlarmer->byMacAddr[0], pAlarmer->byMacAddr[1], pAlarmer->byMacAddr[2], \ pAlarmer->byMacAddr[3], pAlarmer->byMacAddr[4], pAlarmer->byMacAddr[5], pAlarmer->sSerialNumber); } } try { char *pAlarmMsg = NULL; if (lCommand == COMM_ALARM_WALL_CONFERNECE) { pAlarmMsg = new char[sizeof(DWORD) + dwBufLen]; if (pAlarmMsg == NULL) { return; } memset(pAlarmMsg, 0, sizeof(DWORD) + dwBufLen); memcpy(pAlarmMsg, &dwBufLen, sizeof(DWORD)); memcpy(pAlarmMsg + sizeof(DWORD), pAlarmInfo, dwBufLen); } else { pAlarmMsg = new char[dwBufLen]; if (pAlarmMsg == NULL) { return; } memset(pAlarmMsg, 0, dwBufLen); memcpy(pAlarmMsg, pAlarmInfo, dwBufLen); } if (lCommand == COMM_ISAPI_ALARM) { ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pAlarmData = new char[((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->dwAlarmDataLen + 1]; memset(((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pAlarmData, 0, ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->dwAlarmDataLen + 1); memcpy(((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pAlarmData, ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->pAlarmData, ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->dwAlarmDataLen); if (((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->byPicturesNumber != 0) { ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData = (NET_DVR_ALARM_ISAPI_PICDATA *)new BYTE[sizeof(NET_DVR_ALARM_ISAPI_PICDATA)* ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->byPicturesNumber]; memset(((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData, 0, sizeof(NET_DVR_ALARM_ISAPI_PICDATA)* ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->byPicturesNumber); memcpy(((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData, ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->pPicPackData, sizeof(NET_DVR_ALARM_ISAPI_PICDATA)* ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->byPicturesNumber); for (int i = 0; i < ((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->byPicturesNumber; i++) { ((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData)[i].pPicData = new BYTE[((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData)[i].dwPicLen]; memset(((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData)[i].pPicData, 0, ((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData)[i].dwPicLen); memcpy(((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData)[i].pPicData, ((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmInfo)->pPicPackData)[i].pPicData, ((NET_DVR_ALARM_ISAPI_PICDATA *)((LPNET_DVR_ALARM_ISAPI_INFO)pAlarmMsg)->pPicPackData)[i].dwPicLen); } } } else if (lCommand == COMM_ALARM_RULE) { ((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pImage = new BYTE[((LPNET_VCA_RULE_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pImage, 0, ((LPNET_VCA_RULE_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pImage, ((LPNET_VCA_RULE_ALARM)pAlarmInfo)->pImage, ((LPNET_VCA_RULE_ALARM)pAlarmMsg)->dwPicDataLen); if (((LPNET_VCA_RULE_ALARM)pAlarmMsg)->byAppendInfoUploadEnabled == 1) { ((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo = new BYTE[sizeof(NET_VCA_APPEND_INFO)]; memset(((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo, 0, sizeof(NET_VCA_APPEND_INFO)); memcpy(((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo, ((LPNET_VCA_RULE_ALARM)pAlarmInfo)->pAppendInfo, sizeof(NET_VCA_APPEND_INFO)); ((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo)->pAppendPicBuff = new BYTE[((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo)->dwAppendPicLen]; memset(((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo)->pAppendPicBuff, 0, ((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo)->dwAppendPicLen); memcpy(((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo)->pAppendPicBuff, ((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmInfo)->pAppendInfo)->pAppendPicBuff, ((LPNET_VCA_APPEND_INFO)((LPNET_VCA_RULE_ALARM)pAlarmMsg)->pAppendInfo)->dwAppendPicLen); } } else if (lCommand == COMM_ALARM_PDC) { ((LPNET_DVR_PDC_ALRAM_INFO)pAlarmMsg)->pXmlBuf = new char[((LPNET_DVR_PDC_ALRAM_INFO)pAlarmMsg)->dwXmlLen]; memset(((LPNET_DVR_PDC_ALRAM_INFO)pAlarmMsg)->pXmlBuf, 0, ((LPNET_DVR_PDC_ALRAM_INFO)pAlarmMsg)->dwXmlLen); memcpy(((LPNET_DVR_PDC_ALRAM_INFO)pAlarmMsg)->pXmlBuf, ((LPNET_DVR_PDC_ALRAM_INFO)pAlarmInfo)->pXmlBuf, ((LPNET_DVR_PDC_ALRAM_INFO)pAlarmMsg)->dwXmlLen); } else if (COMM_ALARM_AID == lCommand) { ((LPNET_DVR_AID_ALARM)pAlarmMsg)->pImage = new BYTE[((LPNET_DVR_AID_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_AID_ALARM)pAlarmMsg)->pImage, 0, ((LPNET_DVR_AID_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_AID_ALARM)pAlarmMsg)->pImage, ((LPNET_DVR_AID_ALARM)pAlarmInfo)->pImage, ((LPNET_DVR_AID_ALARM)pAlarmMsg)->dwPicDataLen); } else if (COMM_ALARM_FACE == lCommand) { ((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->pImage = new BYTE[((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->pImage, 0, ((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->pImage, ((LPNET_DVR_FACEDETECT_ALARM)pAlarmInfo)->pImage, ((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->dwPicDataLen); ((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->pFaceImage = new BYTE[((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->dwFacePicDataLen]; memset(((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->pFaceImage, 0, ((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->dwFacePicDataLen); memcpy(((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->pFaceImage, ((LPNET_DVR_FACEDETECT_ALARM)pAlarmInfo)->pFaceImage, ((LPNET_DVR_FACEDETECT_ALARM)pAlarmMsg)->dwFacePicDataLen); } else if (COMM_UPLOAD_FACESNAP_RESULT == lCommand) { DWORD dwPrePicLen = 0; if (((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->dwFacePicLen > 0) { ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->pBuffer1 = (BYTE*)pAlarmMsg + sizeof(NET_VCA_FACESNAP_RESULT) + dwPrePicLen; dwPrePicLen += ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->dwFacePicLen; } if (((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->dwBackgroundPicLen > 0) { ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->pBuffer2 = (BYTE*)pAlarmMsg + sizeof(NET_VCA_FACESNAP_RESULT) + dwPrePicLen; dwPrePicLen += ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->dwBackgroundPicLen; } if (((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->byUIDLen > 0) { ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->pUIDBuffer = (BYTE*)pAlarmMsg + sizeof(NET_VCA_FACESNAP_RESULT) + dwPrePicLen; dwPrePicLen += ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->byUIDLen; } if (((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->byAddInfo > 0) { ((LPNET_VCA_FACESNAP_RESULT)pAlarmMsg)->pAddInfoBuffer = (BYTE*)pAlarmMsg + sizeof(NET_VCA_FACESNAP_RESULT) + dwPrePicLen; dwPrePicLen += sizeof(NET_VCA_FACESNAP_ADDINFO); } } else if (COMM_ALARM_FACE_DETECTION == lCommand) { ((LPNET_DVR_FACE_DETECTION)pAlarmMsg)->pBackgroundPicpBuffer = new BYTE[((LPNET_DVR_FACE_DETECTION)pAlarmMsg)->dwBackgroundPicLen]; memset(((LPNET_DVR_FACE_DETECTION)pAlarmMsg)->pBackgroundPicpBuffer, 0, ((LPNET_DVR_FACE_DETECTION)pAlarmMsg)->dwBackgroundPicLen); memcpy(((LPNET_DVR_FACE_DETECTION)pAlarmMsg)->pBackgroundPicpBuffer, ((LPNET_DVR_FACE_DETECTION)pAlarmInfo)->pBackgroundPicpBuffer, \ ((LPNET_DVR_FACE_DETECTION)pAlarmMsg)->dwBackgroundPicLen); } else if (COMM_SNAP_MATCH_ALARM == lCommand) { if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwSnapFacePicLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.pBuffer1 = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwSnapFacePicLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.pBuffer1, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwSnapFacePicLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.pBuffer1, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struSnapInfo.pBuffer1, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwSnapFacePicLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwBlackListPicLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pBuffer1 = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwBlackListPicLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pBuffer1, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwBlackListPicLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pBuffer1, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struBlackListInfo.pBuffer1, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwBlackListPicLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwSnapPicLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->pSnapPicBuffer = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwSnapPicLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->pSnapPicBuffer, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwSnapPicLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->pSnapPicBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->pSnapPicBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwSnapPicLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwModelDataLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->pModelDataBuffer = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwModelDataLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->pModelDataBuffer, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwModelDataLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->pModelDataBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->pModelDataBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->dwModelDataLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwUIDLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.pUIDBuffer = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwUIDLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.pUIDBuffer, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwUIDLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.pUIDBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struSnapInfo.pUIDBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struSnapInfo.dwUIDLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwFDIDLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pFDID = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwFDIDLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pFDID, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwFDIDLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pFDID, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struBlackListInfo.pFDID, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwFDIDLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwPIDLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pPID = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwPIDLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pPID, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwPIDLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.pPID, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struBlackListInfo.pPID, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.dwPIDLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFDDescriptionLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFDDescriptionLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFDDescriptionLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFDDescriptionLen); } if (((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen > 0) { ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer = new BYTE[((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen]; memset(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer, 0, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen); memcpy(((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmInfo)->struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer, ((LPNET_VCA_FACESNAP_MATCH_ALARM)pAlarmMsg)->struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen); } } else if (COMM_ALARM_CAPTURE_UPLOAD == lCommand) { ((LPNET_DVR_CAPTURE_UPLOAD)pAlarmMsg)->pBuffer = new BYTE[((LPNET_DVR_CAPTURE_UPLOAD)pAlarmMsg)->dwPicLen]; memset(((LPNET_DVR_CAPTURE_UPLOAD)pAlarmMsg)->pBuffer, 0, ((LPNET_DVR_CAPTURE_UPLOAD)pAlarmMsg)->dwPicLen); memcpy(((LPNET_DVR_CAPTURE_UPLOAD)pAlarmMsg)->pBuffer, ((LPNET_DVR_CAPTURE_UPLOAD)pAlarmInfo)->pBuffer, ((LPNET_DVR_CAPTURE_UPLOAD)pAlarmMsg)->dwPicLen); } else if (COMM_FACESNAP_RAWDATA_ALARM == lCommand) { ((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmMsg)->pJsonBuff = new BYTE[((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmMsg)->dwJsonDataLen]; memset(((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmMsg)->pJsonBuff, 0, ((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmMsg)->dwJsonDataLen); memcpy(((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmMsg)->pJsonBuff, ((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmInfo)->pJsonBuff, ((LPNET_VCA_FACESNAP_RAWDATA_ALARM)pAlarmMsg)->dwJsonDataLen); } else if (COMM_FRAMES_PEOPLE_COUNTING_ALARM == lCommand) { ((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmMsg)->pPicBuffer = new BYTE[((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmMsg)->dwPicLen]; memset(((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmMsg)->pPicBuffer, 0, ((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmMsg)->dwPicLen); memcpy(((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmMsg)->pPicBuffer, ((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmInfo)->pPicBuffer, ((LPNET_DVR_FRAMES_PEOPLE_COUNTING)pAlarmMsg)->dwPicLen); } else if (COMM_FIREDETECTION_ALARM == lCommand) { ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pBuffer = new BYTE[((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pBuffer, 0, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pBuffer, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmInfo)->pBuffer, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->dwPicDataLen); ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pVisiblePicBuf = new BYTE[((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->dwVisiblePicLen]; memset(((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pVisiblePicBuf, 0, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->dwVisiblePicLen); memcpy(((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pVisiblePicBuf, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmInfo)->pVisiblePicBuf, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->dwVisiblePicLen); if (((LPNET_DVR_FIREDETECTION_ALARM)pAlarmInfo)->byAlarmSubType == 1 || ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmInfo)->byAlarmSubType == 2) { ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pSmokeBuf = new BYTE[sizeof(NET_DVR_SMOKEDETECTION_ALARM)]; memset(((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pSmokeBuf, 0, sizeof(NET_DVR_SMOKEDETECTION_ALARM)); memcpy(((LPNET_DVR_FIREDETECTION_ALARM)pAlarmMsg)->pSmokeBuf, ((LPNET_DVR_FIREDETECTION_ALARM)pAlarmInfo)->pSmokeBuf, sizeof(NET_DVR_SMOKEDETECTION_ALARM)); } } else if (COMM_FACE_THERMOMETRY_ALARM == lCommand) { ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->pVisibleLightImage = new BYTE[((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->dwVisibleLightImageLen]; memset(((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->pVisibleLightImage, 0, ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->dwVisibleLightImageLen); memcpy(((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->pVisibleLightImage, ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmInfo)->pVisibleLightImage, ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->dwVisibleLightImageLen); ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->pFaceImage = new BYTE[((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->dwFaceImageLen]; memset(((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->pFaceImage, 0, ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->dwFaceImageLen); memcpy(((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->pFaceImage, ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmInfo)->pFaceImage, ((LPNET_DVR_FACE_THERMOMETRY_ALARM)pAlarmMsg)->dwFaceImageLen); } else if (COMM_ALARM_SHIPSDETECTION == lCommand) { ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->pPicBuffer = new BYTE[((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->dwPicLen]; memset(((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->pPicBuffer, 0, ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->dwPicLen); memcpy(((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->pPicBuffer, ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmInfo)->pPicBuffer, ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->dwPicLen); ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->pThermalPicBuffer = new BYTE[((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->dwThermalPicLen]; memset(((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->pThermalPicBuffer, 0, ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->dwThermalPicLen); memcpy(((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->pThermalPicBuffer, ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmInfo)->pThermalPicBuffer, ((LPNET_DVR_SHIPSDETECTION_ALARM)pAlarmMsg)->dwThermalPicLen); } else if (COMM_VEHICLE_CONTROL_ALARM == lCommand) { ((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmMsg)->pPicData = new char[((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmMsg)->pPicData, 0, ((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmMsg)->pPicData, ((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmInfo)->pPicData, ((LPNET_DVR_VEHICLE_CONTROL_ALARM)pAlarmMsg)->dwPicDataLen); } else if (COMM_THERMOMETRY_ALARM == lCommand) { ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pPicBuff = new char[((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwPicLen]; memset(((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pPicBuff, 0, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwPicLen); memcpy(((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pPicBuff, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmInfo)->pPicBuff, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwPicLen); ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pThermalPicBuff = new char[((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwThermalPicLen]; memset(((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pThermalPicBuff, 0, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwThermalPicLen); memcpy(((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pThermalPicBuff, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmInfo)->pThermalPicBuff, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwThermalPicLen); ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pThermalInfoBuff = new char[((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwThermalInfoLen]; memset(((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pThermalInfoBuff, 0, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwThermalInfoLen); memcpy(((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->pThermalInfoBuff, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmInfo)->pThermalInfoBuff, ((LPNET_DVR_THERMOMETRY_ALARM)pAlarmMsg)->dwThermalInfoLen); } else if (COMM_THERMOMETRY_DIFF_ALARM == lCommand) { ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pPicBuff = new char[((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwPicLen]; memset(((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pPicBuff, 0, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwPicLen); memcpy(((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pPicBuff, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmInfo)->pPicBuff, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwPicLen); ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pThermalPicBuff = new char[((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwThermalPicLen]; memset(((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pThermalPicBuff, 0, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwThermalPicLen); memcpy(((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pThermalPicBuff, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmInfo)->pThermalPicBuff, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwThermalPicLen); ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pThermalInfoBuff = new char[((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwThermalInfoLen]; memset(((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pThermalInfoBuff, 0, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwThermalInfoLen); memcpy(((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->pThermalInfoBuff, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmInfo)->pThermalInfoBuff, ((LPNET_DVR_THERMOMETRY_DIFF_ALARM)pAlarmMsg)->dwThermalInfoLen); } else if (COMM_VEHICLE_RECOG_RESULT == lCommand) { //车辆 ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pVehicleBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwVehicleBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pVehicleBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwVehicleBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pVehicleBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pVehicleBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwVehicleBufferLen); //车牌 ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPlateBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPlateBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPlateBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPlateBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPlateBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pPlateBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPlateBufferLen); //人脸(主驾驶) ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPilotFaceBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPilotFaceBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPilotFaceBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPilotFaceBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPilotFaceBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pPilotFaceBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPilotFaceBufferLen); //人脸(副驾驶) ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pCopilotFaceBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwCopilotFaceBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pCopilotFaceBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwCopilotFaceBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pCopilotFaceBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pCopilotFaceBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwCopilotFaceBufferLen); //安全带(主驾驶) ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPilotSafebeltBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPilotSafebeltBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPilotSafebeltBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPilotSafebeltBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pPilotSafebeltBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pPilotSafebeltBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwPilotSafebeltBufferLen); //安全带(副驾驶) ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pCopilotSafebeltBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwCopilotSafebeltBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pCopilotSafebeltBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwCopilotSafebeltBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pCopilotSafebeltBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pCopilotSafebeltBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwCopilotSafebeltBufferLen); //json ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pJsonBuffer = new BYTE[((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwJsonBufferLen]; memset(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pJsonBuffer, 0, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwJsonBufferLen); memcpy(((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->pJsonBuffer, \ ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmInfo)->pJsonBuffer, ((LPNET_DVR_VEHICLE_RECOG_RESULT)pAlarmMsg)->dwJsonBufferLen); } else if (COMM_ITS_PLATE_RESULT == lCommand) { int i = 0; DWORD dwPrePicLen = 0; int iIllegalInfoLen = 0; for (i = 0; i < 6; i++) { if (((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPicInfo[i].dwDataLen > 0) { ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPicInfo[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_ITS_PLATE_RESULT) + dwPrePicLen; dwPrePicLen += ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPicInfo[i].dwDataLen; } } if (1 == ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->byIllegalFromatType) { ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->pIllegalInfoBuf = (BYTE*)pAlarmMsg + sizeof(NET_ITS_PLATE_RESULT) + dwPrePicLen; iIllegalInfoLen = sizeof(NET_ITS_ILLEGAL_INFO); } if (((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPlateInfo.dwXmlLen > 0) { ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPlateInfo.pXmlBuf = (char*)pAlarmMsg + sizeof(NET_ITS_PLATE_RESULT) + dwPrePicLen + iIllegalInfoLen; }if (((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPlateInfo.byAddInfoFlag > 0) { ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPlateInfo.pAddInfoBuffer = (BYTE*)pAlarmMsg + sizeof(NET_ITS_PLATE_RESULT) + dwPrePicLen + iIllegalInfoLen + ((LPNET_ITS_PLATE_RESULT)pAlarmMsg)->struPlateInfo.dwXmlLen; } } else if (COMM_ALARM_TPS_REAL_TIME == lCommand) { if (((LPNET_DVR_TPS_REAL_TIME_INFO)pAlarmMsg)->byAddInfoFlag > 0) { ((LPNET_DVR_TPS_REAL_TIME_INFO)pAlarmMsg)->pAddInfoBuffer = (BYTE*)pAlarmMsg + sizeof(NET_DVR_TPS_REAL_TIME_INFO); } } else if (COMM_PEOPLE_DETECTION_UPLOAD == lCommand) { int i = 0; DWORD dwPrePicLen = 0; for (i = 0; i < MAX_PEOPLE_DETECTION_NUM; i++) { if (((LPNET_DVR_PEOPLE_DETECTION_RESULT)pAlarmMsg)->struPeopleRegion[i].dwPicLen > 0) { ((LPNET_DVR_PEOPLE_DETECTION_RESULT)pAlarmMsg)->struPeopleRegion[i].pPicBuffer = (char*)pAlarmMsg + sizeof(NET_DVR_PEOPLE_DETECTION_RESULT) + dwPrePicLen; dwPrePicLen += ((LPNET_DVR_PEOPLE_DETECTION_RESULT)pAlarmMsg)->struPeopleRegion[i].dwPicLen; } } } else if (COMM_TME_VEHICLE_INDENTIFICATION == lCommand) { int i = 0; DWORD dwPrePicLen = 0; for (i = 0; i < 4; i++) { if (((LPNET_DVR_TME_VEHICLE_RESULT)pAlarmMsg)->struPicInfo[i].dwDataLen > 0) { ((LPNET_DVR_TME_VEHICLE_RESULT)pAlarmMsg)->struPicInfo[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_DVR_TME_VEHICLE_RESULT) + dwPrePicLen; dwPrePicLen += ((LPNET_DVR_TME_VEHICLE_RESULT)pAlarmMsg)->struPicInfo[i].dwDataLen; } } } else if (COMM_PLATE_RESULT_V50 == lCommand) { int i = 0; DWORD dwPrePicLen = 0; for (i = 0; i < 6; i++) { if (((LPNET_DVR_PLATE_RESULT_V50)pAlarmMsg)->struPicInfo[i].dwDataLen > 0) { ((LPNET_DVR_PLATE_RESULT_V50)pAlarmMsg)->struPicInfo[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_DVR_PLATE_RESULT_V50) + dwPrePicLen; dwPrePicLen += ((LPNET_DVR_PLATE_RESULT_V50)pAlarmMsg)->struPicInfo[i].dwDataLen; } } } else if (COMM_ITS_GATE_VEHICLE == lCommand) { int i = 0; DWORD dwPrePicLen = 0; for (i = 0; i < 4; i++) { if (((LPNET_ITS_GATE_VEHICLE)pAlarmMsg)->struPicInfo[i].dwDataLen > 0) { ((LPNET_ITS_GATE_VEHICLE)pAlarmMsg)->struPicInfo[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_ITS_GATE_VEHICLE) + dwPrePicLen; dwPrePicLen += ((LPNET_ITS_GATE_VEHICLE)pAlarmMsg)->struPicInfo[i].dwDataLen; } } } else if (COMM_ITS_GATE_FACE == lCommand) { ((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.pBuffer1 = new BYTE[((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.dwFacePicLen]; memset(((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.pBuffer1, 0, ((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.dwFacePicLen); memcpy(((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.pBuffer1, ((LPNET_ITS_GATE_FACE)pAlarmInfo)->struFaceInfo.pBuffer1, \ ((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.dwFacePicLen); ((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.pBuffer2 = new BYTE[((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.dwBackgroundPicLen]; memset(((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.pBuffer2, 0, ((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.dwBackgroundPicLen); memcpy(((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.pBuffer2, ((LPNET_ITS_GATE_FACE)pAlarmInfo)->struFaceInfo.pBuffer2, \ ((LPNET_ITS_GATE_FACE)pAlarmMsg)->struFaceInfo.dwBackgroundPicLen); } else if (COMM_ITS_PARK_VEHICLE == lCommand) { int i = 0; DWORD dwPrePicLen = 0; for (i = 0; i < 2; i++) { if (((LPNET_ITS_PARK_VEHICLE)pAlarmMsg)->struPicInfo[i].dwDataLen > 0) { ((LPNET_ITS_PARK_VEHICLE)pAlarmMsg)->struPicInfo[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_ITS_PARK_VEHICLE) + dwPrePicLen; dwPrePicLen += ((LPNET_ITS_PARK_VEHICLE)pAlarmMsg)->struPicInfo[i].dwDataLen; } } } else if (COMM_ALARM_AID_V41 == lCommand) { ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pImage = new BYTE[((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pImage, 0, ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pImage, ((LPNET_DVR_AID_ALARM_V41)pAlarmInfo)->pImage, ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwPicDataLen); ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pXmlBuf = new char[((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwXmlLen]; memset(((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pXmlBuf, 0, ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwXmlLen); memcpy(((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pXmlBuf, ((LPNET_DVR_AID_ALARM_V41)pAlarmInfo)->pXmlBuf, ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwXmlLen); ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pPlateSmallImage = new char[((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwPlateSmallPicDataLen]; memset(((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pPlateSmallImage, 0, ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwPlateSmallPicDataLen); memcpy(((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->pPlateSmallImage, ((LPNET_DVR_AID_ALARM_V41)pAlarmInfo)->pPlateSmallImage, ((LPNET_DVR_AID_ALARM_V41)pAlarmMsg)->dwPlateSmallPicDataLen); } else if (COMM_ALARM_TFS == lCommand) { int i = 0; DWORD dwPrePicLen = 0; for (i = 0; i < 8; i++) { if (((LPNET_DVR_TFS_ALARM)pAlarmMsg)->struPicInfo[i].dwDataLen > 0) { ((LPNET_DVR_TFS_ALARM)pAlarmMsg)->struPicInfo[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_DVR_TFS_ALARM) + dwPrePicLen; dwPrePicLen += ((LPNET_DVR_TFS_ALARM)pAlarmMsg)->struPicInfo[i].dwDataLen; } } } else if (COMM_ALARM_VQD_EX == lCommand) { if (((LPNET_DVR_VQD_ALARM)pAlarmMsg)->dwPicDataLen > 0) { ((LPNET_DVR_VQD_ALARM)pAlarmMsg)->pImage = new BYTE[((LPNET_DVR_VQD_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_VQD_ALARM)pAlarmMsg)->pImage, 0, ((LPNET_DVR_VQD_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_VQD_ALARM)pAlarmMsg)->pImage, ((LPNET_DVR_VQD_ALARM)pAlarmInfo)->pImage, ((LPNET_DVR_VQD_ALARM)pAlarmMsg)->dwPicDataLen); } } else if (COMM_UPLOAD_HEATMAP_RESULT == lCommand || COMM_UPLOAD_HEATMAP_RESULT_DURATION == lCommand || COMM_UPLOAD_HEATMAP_RESULT_INTERSECTION == lCommand) { if ((((LPNET_DVR_HEATMAP_RESULT)pAlarmMsg)->wArrayColumn > 0) || (((LPNET_DVR_HEATMAP_RESULT)pAlarmMsg)->wArrayLine > 0)) { ((LPNET_DVR_HEATMAP_RESULT)pAlarmMsg)->pBuffer = (BYTE *)pAlarmMsg + sizeof(NET_DVR_HEATMAP_RESULT); } } else if (COMM_ALARM_V40 == lCommand) { DWORD dwVerDataNum = 0; switch (((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->struAlarmFixedHeader.dwAlarmType) { case 0: case 23: dwVerDataNum = (((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerAlarmOutNum + \ ((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerRecordChanNum); break; case 1: case 4: case 5: dwVerDataNum = ((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->struAlarmFixedHeader.uStruAlarm.struAlarmHardDisk.dwAlarmHardDiskNum; break; case 2: case 3: case 6: case 9: case 10: case 11: case 13: case 15: case 19: case 28: dwVerDataNum = ((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->struAlarmFixedHeader.uStruAlarm.struAlarmChannel.dwAlarmChanNum; break; default: dwVerDataNum = 0; break; } if (dwVerDataNum != 0) { ((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->pAlarmData = new DWORD[dwVerDataNum]; memset(((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->pAlarmData, 0, dwVerDataNum * sizeof(DWORD)); memcpy(((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->pAlarmData, ((LPNET_DVR_ALARMINFO_V40)pAlarmInfo)->pAlarmData, dwVerDataNum* sizeof(DWORD)); } else { ((LPNET_DVR_ALARMINFO_V40)pAlarmMsg)->pAlarmData = NULL; } } else if (COMM_UPLOAD_VIDEO_INTERCOM_EVENT == lCommand) { LPNET_DVR_VIDEO_INTERCOM_EVENT pVideoIntercomEvent = (LPNET_DVR_VIDEO_INTERCOM_EVENT)pAlarmMsg; if (pVideoIntercomEvent->byEventType == 1 && pVideoIntercomEvent->uEventInfo.struUnlockRecord.dwPicDataLen > 0) { pVideoIntercomEvent->uEventInfo.struUnlockRecord.pImage = new BYTE[pVideoIntercomEvent->uEventInfo.struUnlockRecord.dwPicDataLen]; memcpy(pVideoIntercomEvent->uEventInfo.struUnlockRecord.pImage, ((LPNET_DVR_VIDEO_INTERCOM_EVENT)pAlarmInfo)->uEventInfo.struUnlockRecord.pImage, pVideoIntercomEvent->uEventInfo.struUnlockRecord.dwPicDataLen); } if (pVideoIntercomEvent->byEventType == 3 && pVideoIntercomEvent->uEventInfo.struAuthInfo.dwPicDataLen > 0) { pVideoIntercomEvent->uEventInfo.struAuthInfo.pImage = new BYTE[pVideoIntercomEvent->uEventInfo.struAuthInfo.dwPicDataLen]; memcpy(pVideoIntercomEvent->uEventInfo.struAuthInfo.pImage, ((LPNET_DVR_VIDEO_INTERCOM_EVENT)pAlarmInfo)->uEventInfo.struAuthInfo.pImage, pVideoIntercomEvent->uEventInfo.struAuthInfo.dwPicDataLen); } } else if (lCommand == COMM_UPLOAD_NOTICE_DATA) { for (int i = 0; i < MAX_NOTICE_PIC_NUM; i++) { if (((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].dwPicDataLen > 0) { ((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].pPicData = new BYTE[((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].dwPicDataLen]; memset(((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].pPicData, 0, ((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].dwPicDataLen); memcpy(((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].pPicData, ((LPNET_DVR_NOTICE_DATA)pAlarmInfo)->struNoticePic[i].pPicData, ((LPNET_DVR_NOTICE_DATA)pAlarmMsg)->struNoticePic[i].dwPicDataLen); } } } else if (lCommand == COMM_SWITCH_LAMP_ALARM) { if (((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->pPicData > 0 && ((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmInfo)->pPicData != NULL) { ((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->pPicData = new char[((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->pPicData, 0, ((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->pPicData, ((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmInfo)->pPicData, ((LPNET_DVR_SWITCH_LAMP_ALARM)pAlarmMsg)->dwPicDataLen); } } else if (lCommand == COMM_LOADING_DOCK_OPERATEINFO) //月台作业上传 { if (((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->pBackPicDataBuffer > 0 && ((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmInfo)->pBackPicDataBuffer != NULL) { ((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->pBackPicDataBuffer = new BYTE[((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->dwBackPicDataLength]; memset(((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->pBackPicDataBuffer, 0, ((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->dwBackPicDataLength); memcpy(((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->pBackPicDataBuffer, ((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmInfo)->pBackPicDataBuffer, ((LPNET_LOADING_DOCK_OPERATEINFO)pAlarmMsg)->dwBackPicDataLength); } } else if (lCommand == COMM_ALARM_ACS) { if (((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pPicData > 0 && ((LPNET_DVR_ACS_ALARM_INFO)pAlarmInfo)->pPicData != NULL) { ((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pPicData = new char[((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pPicData, 0, ((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pPicData, ((LPNET_DVR_ACS_ALARM_INFO)pAlarmInfo)->pPicData, ((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->dwPicDataLen); } if (((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pAcsEventInfoExtend > 0 && ((LPNET_DVR_ACS_ALARM_INFO)pAlarmInfo)->pAcsEventInfoExtend != NULL) { ((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pAcsEventInfoExtend = new char[sizeof(NET_DVR_ACS_EVENT_INFO_EXTEND)]; memset(((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pAcsEventInfoExtend, 0, sizeof(NET_DVR_ACS_EVENT_INFO_EXTEND)); memcpy(((LPNET_DVR_ACS_ALARM_INFO)pAlarmMsg)->pAcsEventInfoExtend, ((LPNET_DVR_ACS_ALARM_INFO)pAlarmInfo)->pAcsEventInfoExtend, sizeof(NET_DVR_ACS_EVENT_INFO_EXTEND)); } } else if (lCommand == COMM_ID_INFO_ALARM) { if (((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pPicData > 0 && ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmInfo)->pPicData != NULL) { ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pPicData = new char[((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pPicData, 0, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pPicData, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmInfo)->pPicData, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwPicDataLen); } if ((((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pFingerPrintData > 0) && (((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmInfo)->pFingerPrintData != NULL)) { ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pFingerPrintData = new char[((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwFingerPrintDataLen]; memset(((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pFingerPrintData, 0, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwFingerPrintDataLen); memcpy(((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pFingerPrintData, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmInfo)->pFingerPrintData, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwFingerPrintDataLen); } if ((((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pCapturePicData > 0) && (((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmInfo)->pCapturePicData != NULL)) { ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pCapturePicData = new char[((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwCapturePicDataLen]; memset(((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pCapturePicData, 0, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwCapturePicDataLen); memcpy(((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->pCapturePicData, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmInfo)->pCapturePicData, ((LPNET_DVR_ID_CARD_INFO_ALARM)pAlarmMsg)->dwCapturePicDataLen); } } else if (lCommand == COMM_PASSPORT_ALARM) { if (((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pFaceData > 0 && ((LPNET_DVR_PASSPORT_ALARM)pAlarmInfo)->pFaceData != NULL) { ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pFaceData = new char[((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwFaceDataLen]; memset(((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pFaceData, 0, ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwFaceDataLen); memcpy(((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pFaceData, ((LPNET_DVR_PASSPORT_ALARM)pAlarmInfo)->pFaceData, ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwFaceDataLen); } if ((((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pPicData > 0) && (((LPNET_DVR_PASSPORT_ALARM)pAlarmInfo)->pPicData != NULL)) { ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pPicData = new char[((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwPicDataLen]; memset(((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pPicData, 0, ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwPicDataLen); memcpy(((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pPicData, ((LPNET_DVR_PASSPORT_ALARM)pAlarmInfo)->pPicData, ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwPicDataLen); } if ((((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pCapturePicData > 0) && (((LPNET_DVR_PASSPORT_ALARM)pAlarmInfo)->pCapturePicData != NULL)) { ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pCapturePicData = new char[((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwCapturePicDataLen]; memset(((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pCapturePicData, 0, ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwCapturePicDataLen); memcpy(((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->pCapturePicData, ((LPNET_DVR_PASSPORT_ALARM)pAlarmInfo)->pCapturePicData, ((LPNET_DVR_PASSPORT_ALARM)pAlarmMsg)->dwCapturePicDataLen); } } else if (lCommand == COMM_PANORAMIC_LINKAGE_ALARM) { if (((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->pPicBuff > 0 && ((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmInfo)->pPicBuff != NULL) { ((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->pPicBuff = new char[((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->dwPicLen]; memset(((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->pPicBuff, 0, ((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->dwPicLen); memcpy(((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->pPicBuff, ((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmInfo)->pPicBuff, ((LPNET_DVR_PANORAMIC_LINKAGE)pAlarmMsg)->dwPicLen); } } else if (COMM_UPLOAD_HEATMAP_RESULT_PDC == lCommand) { int iLen = 0; int iArrayUnitType = ((LPNET_DVR_HEATMAP_RESULT_PDC)pAlarmMsg)->byArrayUnitType; for (int i = 0; i < 2; i++) { if ((((LPNET_DVR_HEATMAP_RESULT_PDC)pAlarmMsg)->struSingleHeatMap[i].wArrayColumn > 0) || (((LPNET_DVR_HEATMAP_RESULT_PDC)pAlarmMsg)->struSingleHeatMap[i].wArrayLine > 0)) { ((LPNET_DVR_HEATMAP_RESULT_PDC)pAlarmMsg)->struSingleHeatMap[i].pBuffer = (BYTE*)pAlarmMsg + sizeof(NET_DVR_HEATMAP_RESULT_PDC) + iLen; iLen = ((LPNET_DVR_HEATMAP_RESULT_PDC)pAlarmMsg)->struSingleHeatMap[i].wArrayColumn * ((LPNET_DVR_HEATMAP_RESULT_PDC)pAlarmMsg)->struSingleHeatMap[i].wArrayLine * iArrayUnitType; } } } else if (COMM_VCA_DBD_ALARM == lCommand) { DWORD dwPicLen = ((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.dwPicLen; if (dwPicLen > 0) { ((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.pPicBuf = new char[dwPicLen]; if (((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.pPicBuf != NULL) { memcpy(((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.pPicBuf, ((LPNET_DVR_DBD_ALRAM_INFO)pAlarmInfo)->struPicInfo.pPicBuf, dwPicLen); } } DWORD dwVideoLen = ((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.dwVideoLen; if (dwVideoLen > 0) { ((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.pVideoBuf = new char[dwVideoLen]; if (((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.pVideoBuf != NULL) { memcpy(((LPNET_DVR_DBD_ALRAM_INFO)pAlarmMsg)->struPicInfo.pVideoBuf, ((LPNET_DVR_DBD_ALRAM_INFO)pAlarmInfo)->struPicInfo.pVideoBuf, dwVideoLen); } } } else if (COMM_VCA_ADAS_ALARM == lCommand) { DWORD dwPicLen = ((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.dwPicLen; if (dwPicLen > 0) { ((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.pPicBuf = new char[dwPicLen]; if (((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.pPicBuf != NULL) { memcpy(((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.pPicBuf, ((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmInfo)->struPicInfo.pPicBuf, dwPicLen); } } DWORD dwVideoLen = ((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.dwVideoLen; if (dwVideoLen > 0) { ((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.pVideoBuf = new char[dwVideoLen]; if (((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.pVideoBuf != NULL) { memcpy(((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmMsg)->struPicInfo.pVideoBuf, ((LPNET_DVR_ADAS_ALRAM_INFO)pAlarmInfo)->struPicInfo.pVideoBuf, dwVideoLen); } } } else if (COMM_UPLOAD_AIOP_VIDEO == lCommand) { DWORD dwPrePicLen = 0; if (((LPNET_AIOP_VIDEO_HEAD)pAlarmMsg)->dwAIOPDataSize > 0 && ((LPNET_AIOP_VIDEO_HEAD)pAlarmInfo)->pBufferAIOPData != NULL) { ((LPNET_AIOP_VIDEO_HEAD)pAlarmMsg)->pBufferAIOPData = (BYTE *)pAlarmMsg + sizeof(NET_AIOP_VIDEO_HEAD) + dwPrePicLen; dwPrePicLen += ((LPNET_AIOP_VIDEO_HEAD)pAlarmMsg)->dwAIOPDataSize; } if (((LPNET_AIOP_VIDEO_HEAD)pAlarmMsg)->dwPictureSize > 0 && ((LPNET_AIOP_VIDEO_HEAD)pAlarmInfo)->pBufferPicture != NULL) { ((LPNET_AIOP_VIDEO_HEAD)pAlarmMsg)->pBufferPicture = (BYTE *)pAlarmMsg + sizeof(NET_AIOP_VIDEO_HEAD) + dwPrePicLen; dwPrePicLen += ((LPNET_AIOP_VIDEO_HEAD)pAlarmMsg)->dwPictureSize; } } else if (COMM_UPLOAD_AIOP_PICTURE == lCommand) { if (((LPNET_AIOP_PICTURE_HEAD)pAlarmMsg)->dwAIOPDataSize > 0 && ((LPNET_AIOP_PICTURE_HEAD)pAlarmInfo)->pBufferAIOPData != NULL) { ((LPNET_AIOP_PICTURE_HEAD)pAlarmMsg)->pBufferAIOPData = (BYTE *)pAlarmMsg + sizeof(NET_AIOP_PICTURE_HEAD); } } else if (COMM_UPLOAD_AIOP_POLLING_SNAP == lCommand) { DWORD dwDataLen = 0; if (((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmMsg)->dwAIOPDataSize > 0 && ((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmInfo)->pBufferAIOPData != NULL) { ((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmMsg)->pBufferAIOPData = (BYTE *)pAlarmMsg + sizeof(NET_AIOP_POLLING_SNAP_HEAD) + dwDataLen; dwDataLen += ((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmMsg)->dwAIOPDataSize; } if (((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmMsg)->dwPictureSize > 0 && ((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmInfo)->pBufferPicture != NULL) { ((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmMsg)->pBufferPicture = (BYTE *)pAlarmMsg + sizeof(NET_AIOP_POLLING_SNAP_HEAD) + dwDataLen; dwDataLen += ((LPNET_AIOP_POLLING_SNAP_HEAD)pAlarmMsg)->dwPictureSize; } } else if (COMM_UPLOAD_AIOP_POLLING_VIDEO == lCommand) { DWORD dwDataLen = 0; if (((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmMsg)->dwAIOPDataSize > 0 && ((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmInfo)->pBufferAIOPData != NULL) { ((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmMsg)->pBufferAIOPData = (BYTE*)pAlarmMsg + sizeof(NET_AIOP_POLLING_VIDEO_HEAD) + dwDataLen; dwDataLen += ((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmMsg)->dwAIOPDataSize; } if (((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmMsg)->dwPictureSize > 0 && ((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmInfo)->pBufferPicture != NULL) { ((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmMsg)->pBufferPicture = (BYTE*)pAlarmMsg + sizeof(NET_AIOP_POLLING_VIDEO_HEAD) + dwDataLen; dwDataLen += ((LPNET_AIOP_POLLING_VIDEO_HEAD)pAlarmMsg)->dwPictureSize; } } LPLOCAL_ALARM_INFO pAlarmDev = new LOCAL_ALARM_INFO; if (pAlarmDev == NULL) { delete[] pAlarmMsg; pAlarmMsg = NULL; return; } pAlarmDev->iDeviceIndex = iDeviceIndex; pAlarmDev->lCommand = lCommand; memcpy(pAlarmDev->sDeviceIP, pAlarmer->sDeviceIP, 128); pAlarmDev->dwBufLen = dwBufLen; pAlarmDev->wLinkPort = pAlarmer->wLinkPort; //the memery may be free. //g_pMainDlg->ProcDeviceAlarm((DWORD)pAlarmDev, (LONG)pAlarmMsg); ::PostMessage(g_pMainDlg->m_hWnd, WM_PROC_ALARM, (WPARAM)pAlarmDev, (LPARAM)pAlarmMsg); } catch (...) { OutputDebugString("New Alarm Exception!\n"); } return; } /********************************************************* Function: MessageCallback Desc: alarm, callback functions dealing with the info of card in ATM Input: lCommand,message type; pAlarmer,info of device which upload message;pAlarmInfo, message info content;dwBufLen,message length; pUser, user parameter Output: Return: **********************************************************/ void CALLBACK MessageCallback(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD dwBufLen, void* pUser) { //Sleep(100000); UNREFERENCED_PARAMETER(pUser); AlarmMessage(lCommand, pAlarmer, pAlarmInfo, dwBufLen); } /********************************************************* Function: CClientDemoDlg Desc: Constructor Input: Output: Return: **********************************************************/ IMPLEMENT_DYNAMIC(CClientDemoDlg, CDialog) CClientDemoDlg::CClientDemoDlg(CWnd* pParent /*=NULL*/) : CDialog(CClientDemoDlg::IDD, pParent) , m_iCurDeviceIndex(-1) , m_iCurChanIndex(-1) , m_iCurWndIndex(0)//select current Output , m_iMainType(PREVIEW_T) , m_hCurDeviceItem(NULL) , m_hCurChanItem(NULL) , m_iCurRecDriver(0) , m_pAutoRecTimer(NULL) , m_pChkDevTimer(NULL) , m_pCyclePlayTimer(NULL) , m_pFreeSpaceTimer(NULL) , m_pFileIntervalTimer(NULL) , m_pSysTimer(NULL) , m_iCardChanCount(0) , m_iDriverNum(0) , m_iTreeWidth(0) , m_iRightWidth(0) , m_iFunBtnHeight(0) , m_iListLogHeight(0) , m_bDrag(FALSE) , m_iDragType(0) , m_iDragChanIndex(-1) , m_iDragParentIndex(-1) , m_iCurWndNum(4) , m_bListLogEnlarge(FALSE) , m_bListAlarmEnlarge(FALSE) , m_lListenHandle(-1) , m_fLog(NULL) , m_fAlarm(NULL) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); memset(&m_cHardDriver[0], 0, 26); memset(&m_struOldWndpl, 0, sizeof(WINDOWPLACEMENT)); memset(&m_struSensorAlarm, 0, sizeof(m_struSensorAlarm)); InitializeCriticalSection(&m_struLock); //most thread might use log print function, especially alarm part, needing to add a lock InitializeCriticalSection(&g_cs); m_bSupportChanEx = FALSE; memset(&m_struVcaCtrlInfo, 0, sizeof(m_struVcaCtrlInfo)); memset(&m_struIFrame, 0, sizeof(m_struIFrame)); } /********************************************************* Function: ~CClientDemoDlg Desc: destructor Input: Output: Return: **********************************************************/ CClientDemoDlg::~CClientDemoDlg() { if (m_fLog != NULL) { fclose(m_fLog); } if (m_fAlarm!= NULL) { fclose(m_fAlarm); } m_hIcon = NULL; m_hCurDeviceItem = NULL; m_hCurChanItem = NULL; g_pMainDlg = NULL; delete m_dlgRemoteCfg; delete m_dlgLocalCfg; delete m_dlgIPAccess; delete m_dlgHDConfig; delete m_dlgConfigAll; delete m_dlgOutputCtrl; delete m_dlgPlayBack; //delete m_pStreamIDDlg; delete m_dlgBatchCfg; delete m_dlgProductCfg; for (int i = 0; i < MAX_DEVICES; i++) { if (g_struDeviceInfo[i].pStruChanInfo != NULL) { delete[] g_struDeviceInfo[i].pStruChanInfo; g_struDeviceInfo[i].pStruChanInfo = NULL; } if (g_struDeviceInfo[i].pStruIPParaCfgV40 != NULL) { delete[] g_struDeviceInfo[i].pStruIPParaCfgV40; g_struDeviceInfo[i].pStruIPParaCfgV40 = NULL; } if (g_struDeviceInfo[i].pStruIPAlarmInCfgV40 != NULL) { delete[] g_struDeviceInfo[i].pStruIPAlarmInCfgV40 ; g_struDeviceInfo[i].pStruIPAlarmInCfgV40 = NULL; } if (g_struDeviceInfo[i].pStruIPAlarmOutCfgV40 != NULL) { delete[] g_struDeviceInfo[i].pStruIPAlarmOutCfgV40; g_struDeviceInfo[i].pStruIPAlarmOutCfgV40 = NULL; } } DeleteCriticalSection(&g_cs); DeleteCriticalSection(&m_struLock); } /********************************************************* Function: DoDataExchange Desc: the map between control and variable Input: Output: Return: **********************************************************/ void CClientDemoDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CClientDemoDlg) DDX_Control(pDX, IDC_BTN_PLAY, m_btnPlay); DDX_Control(pDX, IDC_BTN_RECORD, m_btnRecord); DDX_Control(pDX, IDC_TREE_DEVICE_LIST, m_treeDeviceList); DDX_Control(pDX, IDC_COMBO_WNDNUM, m_comboWinNum); DDX_Control(pDX, IDC_COMBO_NETDELAY, m_comboNetDelayBufNum); DDX_Control(pDX, IDC_LIST_ALL_LOG, m_listAllLog); DDX_Control(pDX, IDC_LIST_ALARM_INFO, m_listAlarmInfo); //}}AFX_DATA_MAP } /********************************************************* Function: BEGIN_MESSAGE_MAP Desc: the map between control and function Input: Output: Return: **********************************************************/ BEGIN_MESSAGE_MAP(CClientDemoDlg, CDialog) //{{AFX_MSG_MAP(CClientDemoDlg) ON_WM_TIMER() ON_WM_MOVE() ON_NOTIFY(NM_CLICK, IDC_TREE_DEVICE_LIST, OnNMClickTreeDeviceList) ON_NOTIFY(NM_RCLICK, IDC_TREE_DEVICE_LIST, OnNMRclickTreeDeviceList) ON_NOTIFY(NM_DBLCLK, IDC_TREE_DEVICE_LIST, OnNMDblclkTreeDeviceList) ON_CBN_SELCHANGE(IDC_COMBO_WNDNUM, OnCbnSelchangeComboWndNum) ON_BN_CLICKED(IDC_BTN_CONFIG, OnBnClickedBtnConfig) ON_BN_CLICKED(IDC_BTN_RECORD, OnBnClickedBtnRecord) ON_CBN_SELCHANGE(IDC_COMBO_NETDELAY, OnCbnSelchangeComboNetdelay) ON_BN_CLICKED(IDC_BTN_PLAY_BACK, OnBnClickedBtnPlayback) ON_BN_CLICKED(IDC_BTN_MANAGE, OnBnClickedBtnManage) ON_BN_CLICKED(IDC_BTN_LOG_CLEAR, OnBnClickedBtnLogClear) ON_BN_CLICKED(IDC_BTN_LOG_SAVE, OnBnClickedBtnLogSave) ON_BN_CLICKED(IDC_BTN_MAKE_IFRAME, OnBnClickedBtnMakeIframe) ON_BN_CLICKED(IDC_BTN_LOG_CONFIG, OnBnClickedBtnLogConfig) ON_NOTIFY(NM_CLICK, IDC_LIST_ALL_LOG, OnNMClickListAllLog) ON_BN_CLICKED(IDC_BTN_PREVIEW, OnBnClickedBtnPreview) ON_BN_CLICKED(IDC_BTN_EXIT, OnBnClickedBtnExit) ON_BN_CLICKED(IDC_BTN_PLAY, OnBnClickedBtnPlay) ON_BN_CLICKED(IDC_BTN_PICTURE_SNATCH, OnBnClickedBtnPictureSnatch) ON_BN_CLICKED(IDC_BTN_ELSE, OnBnClickedBtnElse) ON_NOTIFY(NM_DBLCLK, IDC_LIST_ALL_LOG, OnDblclkListAllLog) ON_NOTIFY(NM_DBLCLK, IDC_LIST_ALARM_INFO, OnDblclkListAlarmInfo) ON_NOTIFY(LVN_COLUMNCLICK, IDC_LIST_ALL_LOG, OnColumnclickListAllLog) ON_NOTIFY(LVN_COLUMNCLICK, IDC_LIST_ALARM_INFO, OnColumnclickListAlarmInfo) ON_BN_CLICKED(IDC_BTN_TEST, OnBtnTest) ON_BN_CLICKED(IDC_RADIO_LOCAL_LOG, OnRadioLocalLog) ON_BN_CLICKED(IDC_RADIO_ALARM_INFO, OnRadioAlarmInfo) ON_COMMAND(ID_MENU_SENSOR_ADD_PREVIEW, OnMenuSensorAddPreview) ON_COMMAND(ID_MENU_HOLIDAY_CFG, OnMenuHolidayCfg) ON_COMMAND(ID_MENU_T1Test, OnMENUT1Test) ON_COMMAND(ID_MENU_T1Test, OnMENUT1Test) ON_COMMAND(ID_MENU_PRODUCTION_LINE_TEST, OnMenuProductionLineTest) ON_COMMAND(ID_MEMU_IPERF, OnMenuIperf) ON_WM_HSCROLL() ON_COMMAND(ID_MENU_DEVICE_ADD, OnMenuDeviceAdd) ON_COMMAND(ID_MENU_DEVICE_DELETE, OnMenuDeviceDelete) ON_COMMAND(ID_MENU_LOGOUT, OnMenuLogout) ON_COMMAND(ID_MENU_DEVICE_INFO, OnMenuDeviceInfo) ON_COMMAND(ID_MENU_CHANNEL_INFO, OnMenuChannelInfo) ON_COMMAND(ID_MENU_JPEG_SNATCH_CONFIG, OnMenuJPEGSnatchConfig) ON_COMMAND(ID_MENU_DEVICE_CHECK_TIME, OnMenuCheckTime) ON_COMMAND(ID_MENU_UPGRADE, OnMenuUpgrade) ON_COMMAND(ID_MENU_REBOOT, OnMenuReboot) ON_COMMAND(ID_MENU_HD_FORMAT, OnMenuHDFormat) ON_COMMAND(ID_MENU_POWEROFF, OnMenuPoweroff) ON_COMMAND(ID_MENU_FORTIFY, OnMenuFortify) ON_COMMAND(ID_MENU_VOICE_TALK, OnMenuVoiceTalk) ON_COMMAND(ID_MENU_REMOTE_KEY, OnMenuRemoteKey) ON_COMMAND(ID_MENU_VOICE_BROADCAST, OnMenuBroadCast) ON_COMMAND(ID_MENU_DVR_LOCAL_RECORD, OnMenuDVRRecordStart) ON_COMMAND(ID_MENU_LOG_SEARCH, OnMenuLogSearch) ON_COMMAND(ID_MENU_WORK_STATE, OnMenuWorkState) ON_COMMAND(ID_MENU_CONFIG_RESTORE, OnMenuDefaultConfig) ON_COMMAND(ID_MENU_SERIAL_TRANS, OnMenuSerialTrans) ON_COMMAND(ID_MENU_CONFIG_FLASH, OnMenuConfigFlash) ON_COMMAND(ID_MENU_TALK_MR, OnMenuTalkMR) ON_MESSAGE(WM_PROC_ALARM, OnWMProcAlarm) ON_MESSAGE(WM_CHANGE_CHANNEL_ITEM_IMAGE,ChangeChannelItemImage) ON_MESSAGE(WM_CHANGE_DEVICE_ITEM_IMAGE,ChangeDeviceItemImage) ON_MESSAGE(WM_ADD_LOG, OnWMAddLog) ON_BN_CLICKED(IDC_BUTTON1, OnButton1) ON_COMMAND(ID_MENU_PRODUCTION_LINE_TEST_EN, OnMenuProductionLineTest) ON_COMMAND(IDM_MENU_VCA, OnMenuVca) ON_BN_CLICKED(IDC_BTN_PRODUCT_CFG,OnBtntProductCfg) ON_COMMAND(ID_MENU_COMPLETE_RESTORE, OnMenuCompleteRestore) ON_COMMAND(ID_MENU_DEBUG, OnMenuDebug) ON_COMMAND(ID_MENU_UPLOAD_CALIBRATION_FILE, OnMenuUploadCalibrationFile) //}}AFX_MSG_MAP ON_COMMAND(ID_ALARM_SEARCH, &CClientDemoDlg::OnMenuSearchAlarm) END_MESSAGE_MAP() // CClientDemoDlg message handlers /********************************************************* Function: OnInitDialog Desc: Initialize the dialog Input: Output: Return: **********************************************************/ BOOL CClientDemoDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon //CBrush cbr.CreateSolidBrush(COLORREF(0xffffff));//white // TODO: Add extra initialization here////////////////////////////////////////////////////////////// // //get path of configuration file char szLan[128] = {0}; memset(g_szWorkDir, 0, MAX_PATH); GetCurrentPath(g_szWorkDir); //2012-06-21 先按照默认目录创建,否则当本地配置文件无数据时将无保存目录,此时导出配置文件将失败 g_CreateLocalDir(); ReadLocalConfig(); g_ReadDeviceConfig(); g_ReadLocalReadSensorAdd(); InitGlobalSysInfo(); InitChildWindow(); //initialize main window InitMainWin(); LoadTreeImage(); CreateTree(); //for the demo log and alarm info CreateNewLogFile(g_struLocalParam.bAutoSaveLog); m_iCurRecDriver = m_cHardDriver[g_struLocalParam.iStartRecordDriver]; m_pAutoRecTimer = SetTimer(AUTORECORD_TIMER, 2000, NULL); if (g_struLocalParam.bAutoCheckDeviceTime) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "Start DVR timing, the school time is %06d", g_struLocalParam.lCheckDeviceTime); m_pChkDevTimer = SetTimer(CHECK_DEVICE_TIMER, 1000, NULL); } m_pFreeSpaceTimer = SetTimer(FREESPACE_TIMER, 5000, NULL); m_pFileIntervalTimer = SetTimer(FILEINTERVAL_TIMER, 2000, NULL); m_pSysTimer = SetTimer(SYSTEM_TIMER, 1000, NULL);//refresh time on time //SDK uploads the info such as alarm and log sent from DVR by calling callback function //NET_DVR_SetDVRMessageCallBack_V30(MessageCallback, NULL); //设置NET_DVR_SetDVRMessageCallBack_V51回调后所有json报文默认走新格式返回,如果需要收到老格式json报文,需要调用NET_DVR_SetSDKLocalCfg接口,命令码NET_DVR_LOCAL_CFG_MESSAGE_CALLBACK_V51,设置byVcaAlarmJsonType为老格式回调 //demo默认修改为走老格式回调,改动位置在ClientDemo.cpp文件中 NET_DVR_SetDVRMessageCallBack_V51(0, MessageCallback, NULL); //SDK detects exception and uploads it, such as network disconnect NET_DVR_SetLogToFile(g_struLocalParam.nLogLevel, "c:\\SdkLogTest\\", g_struLocalParam.bCycleWriteLog); AddLog(-1, OPERATION_SUCC_T, "sdk v%x", NET_DVR_GetSDKBuildVersion()); NET_DVR_SetExceptionCallBack_V30(WM_NULL/*WM_MYCOMMAND*/, NULL/*this->m_hWnd*/, g_ExceptionCallBack, NULL); NET_DVR_SetReconnect(5000, g_struLocalParam.bReconnect); if (!NET_DVR_SetShowMode(NORMALMODE, RGB(255, 255, 255))) { AddLog(-1, OPERATION_FAIL_T, "NET_DVR_SetShowMode"); } PlayM4_InitDDrawDevice(); char exeFullPath[MAX_PATH] = { 0 }; // Full path CString strExePath = ""; //获取exe所在路径 GetModuleFileName(NULL, exeFullPath, MAX_PATH); strExePath = exeFullPath; // Get full path of the file int pos = strExePath.ReverseFind('\\'); CString stringXSDPath = strExePath.Left(pos); // Return the directory without the file name stringXSDPath = stringXSDPath + "\\ClientDemoDll\\libxml2.dll"; g_hDllInst = LoadLibraryEx(stringXSDPath ,NULL, LOAD_WITH_ALTERED_SEARCH_PATH); //calib.dll CString stringcalibath = strExePath.Left(pos); // Return the directory without the file name stringcalibath = stringXSDPath + "\\ClientDemoDll\\calib.dll"; g_hDllCalib = LoadLibraryEx(stringcalibath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); //libcurl.dll CString stringCurlPath = strExePath.Left(pos); // Return the directory without the file name stringCurlPath = strExePath.Left(pos) + "\\ClientDemoDll\\libcurl.dll"; g_hDllCurlLib = LoadLibraryEx(stringCurlPath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); return TRUE; // return TRUE unless you set the focus to a control } /********************************************************* Function: RegisterPlayer Desc: register the player or unregister Input: bRegister, TRUE=register, FALSE=unregister; Output: none Return: TRUE/FALSE **********************************************************/ BOOL CClientDemoDlg::RegisterPlayer(BOOL bRegister) { STARTUPINFO si; ZeroMemory(&si, sizeof(si)); si.cb = sizeof STARTUPINFO; char* pCmdLine=new char[4096]; PROCESS_INFORMATION pi; BOOL res = FALSE; char szCurPath[256] = {0}; GetCurrentPath(szCurPath); //sprintf(szCurPath, "%s\\", szCurPath); if (bRegister) { sprintf(pCmdLine, "regsvr32 %s\\PLAYSDK_DefSource.dll /s\ %s\\PLAYSDK_StreamSource.dll /s\ %s\\PLAYSDK_Sample.dll /s\ %s\\PLAYSDK_DefDemux.dll /s\ %s\\PLAYSDK_RFCDemux.dll /s\ %s\\PLAYSDK_MPEG2Source.dll /s\ %s\\PLAYSDK_MPEG2Demux.dll /s\ %s\\PLAYSDK_H264Dec.dll /s\ %s\\PLAYSDK_Mpeg4Dec.dll /s\ %s\\PLAYSDK_G722Dec.dll /s\ %s\\PLAYSDK_G711Dec.dll /s\ %s\\PLAYSDK_VTrans.dll /s\ %s\\PLAYSDK_ARenderer.dll /s\ %s\\PLAYSDK_VRenderer.dll /s\ %s\\PLAYSDK_Image.dll /s",\ szCurPath, szCurPath, szCurPath, szCurPath, szCurPath\ , szCurPath, szCurPath, szCurPath, szCurPath, szCurPath,\ szCurPath, szCurPath, szCurPath, szCurPath, szCurPath); } else { sprintf(pCmdLine, "regsvr32 -u %s\\PLAYSDK_DefSource.dll /s\ -u %s\\PLAYSDK_StreamSource.dll /s\ -u %s\\PLAYSDK_Sample.dll /s\ -u %s\\PLAYSDK_DefDemux.dll /s\ -u %s\\PLAYSDK_RFCDemux.dll /s\ -u %s\\PLAYSDK_MPEG2Source.dll /s\ -u %s\\PLAYSDK_MPEG2Demux.dll /s\ -u %s\\PLAYSDK_H264Dec.dll /s\ -u %s\\PLAYSDK_Mpeg4Dec.dll /s\ -u %s\\PLAYSDK_G722Dec.dll /s\ -u %s\\PLAYSDK_G711Dec.dll /s\ -u %s\\PLAYSDK_VTrans.dll /s\ -u %s\\PLAYSDK_ARenderer.dll /s\ -u %s\\PLAYSDK_VRenderer.dll /s\ -u %s\\PLAYSDK_Image.dll /s",\ szCurPath, szCurPath, szCurPath, szCurPath, szCurPath\ , szCurPath, szCurPath, szCurPath, szCurPath, szCurPath,\ szCurPath, szCurPath, szCurPath, szCurPath, szCurPath); } res = CreateProcess(NULL, pCmdLine, // execute dos command NULL, NULL, NULL, NORMAL_PRIORITY_CLASS,// | CREATE_NO_WINDOW, NULL, NULL, &si, &pi); if (TRUE == res) { CloseHandle(pi.hProcess); CloseHandle(pi.hThread); } else { g_pMainDlg->AddLog(-1, OPERATION_FAIL_T, "register player fail!"); } if (pCmdLine != NULL) { delete [] pCmdLine; } return res; } /********************************************************* Function: OnPaint Desc: refresh dialog Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } // The system calls this to obtain the cursor to display while the szUser drags // the minimized window. /********************************************************* Function: OnQueryDragIcon Desc: drag mouse to initialize function Input: Output: Return: **********************************************************/ HCURSOR CClientDemoDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon; } /********************************************************* Function: InitHardDriver Desc: get pc basic info Input: Output: Return: **********************************************************/ BOOL CClientDemoDlg::InitHardDriver() { DWORD dw=GetLogicalDriveStrings(0,NULL); LPTSTR pAllDrivers=new char[dw]; ::GetLogicalDriveStrings(dw,pAllDrivers); LPTSTR pDriver=pAllDrivers; char tempDriver[26]; DWORD nDriverNum=0; char *pTmp; while (pDriver[0]!=0) { tempDriver[nDriverNum++]=*pDriver; if ( (pTmp = _tcschr(pDriver,0)) != NULL) { pDriver=pTmp+1; //locate to next driver } } //volume information TCHAR lpVolumeNameBuffer[200]; DWORD dwVolumeSerialNumber,dwMaxComLength; DWORD dwFileSystemFlags; TCHAR lpFileSystemNameBuffer[50]; DWORD nHardNum=0; for (DWORD i=0;i<nDriverNum;i++) { CString csRecRootPath; csRecRootPath.Format("%c%s",tempDriver[i],":\\"); if (GetDriveType(csRecRootPath)==DRIVE_FIXED) { if (GetVolumeInformation(csRecRootPath,lpVolumeNameBuffer,sizeof(lpVolumeNameBuffer),&dwVolumeSerialNumber, &dwMaxComLength,&dwFileSystemFlags,lpFileSystemNameBuffer,sizeof(lpFileSystemNameBuffer))) { this->m_cHardDriver[nHardNum++]=tempDriver[i]; } } } m_iDriverNum=nHardNum; delete[] pAllDrivers; return TRUE; } /********************************************************* Function: InitDecodeCard Desc: initialize decode card Input: Output: Return: TRUE,initialization succeed;FALSE,initialization failed; **********************************************************/ BOOL CClientDemoDlg::InitDecodeCard() { SetDecoderVideoExtOutputProc DLINK_SetDecoderVideoExtOutput; SetDisplayRegionProc DLINK_SetDisplayRegion; SetDisplayStandardProc DLINK_SetDisplayStandard; GetDisplayChannelCountProc DLINK_GetDisplayChannelCount; DLINK_SetDecoderVideoExtOutput = (SetDecoderVideoExtOutputProc)GetProcAddress(g_hDSSDK, "SetDecoderVideoExtOutput"); DLINK_SetDisplayRegion = (SetDisplayRegionProc)GetProcAddress(g_hDSSDK, "SetDisplayRegion"); DLINK_SetDisplayStandard = (SetDisplayStandardProc)GetProcAddress(g_hDSSDK, "SetDisplayStandard"); DLINK_GetDisplayChannelCount = (GetDisplayChannelCountProc)GetProcAddress(g_hDSSDK, "GetDisplayChannelCount"); int nDispNum = 0; char szLan[128] = {0}; if (!NET_DVR_InitDDraw_Card(GetDlgItem(IDC_STATIC_PREVIEWBG)->m_hWnd,0xffffff))//dark blue 0xff2200 { AddLog(-1, OPERATION_FAIL_T, "NET_DVR_InitDDraw_Card\n"); return FALSE; } m_iCardChanCount = 0; if (!NET_DVR_InitDevice_Card(&m_iCardChanCount)) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_InitDevice_Card\n"); return FALSE; } AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "Decoder Card Channel Num=%d", m_iCardChanCount); if (m_iCardChanCount <= 0) { g_StringLanType(szLan, "请插入解码卡", "Please Insert Decoder Card"); //AfxMessageBox(szLan); return FALSE; } else if (m_iCardChanCount > 16) { m_iCardChanCount = 16; } if (g_struLocalParam.bNTSC) { nDispNum = DLINK_GetDisplayChannelCount(); if (nDispNum >= 2) { REGION_PARAM struDisplayRegion[MAX_DISPLAY_REGION]; int i; memset(struDisplayRegion, 0, sizeof(struDisplayRegion)); for (i=0; i<MAX_DISPLAY_REGION; i++) struDisplayRegion[i].color = RGB(i, i*8, i*16); for (i=0; i<nDispNum/2; i++) { DLINK_SetDisplayStandard(2*i,StandardNTSC); struDisplayRegion[0].left=0; struDisplayRegion[0].top=0; struDisplayRegion[0].width=352; struDisplayRegion[0].height=240; struDisplayRegion[1].left=352; struDisplayRegion[1].top=0; struDisplayRegion[1].width=352; struDisplayRegion[1].height=240; struDisplayRegion[2].left=0; struDisplayRegion[2].top=240; struDisplayRegion[2].width=352; struDisplayRegion[2].height=240; struDisplayRegion[3].left=352; struDisplayRegion[3].top=240; struDisplayRegion[3].width=352; struDisplayRegion[3].height=240; if (DLINK_SetDisplayRegion(2*i, 4, struDisplayRegion, 0) != HWERR_SUCCESS) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "SetDisplayRegion!"); } DLINK_SetDecoderVideoExtOutput(4*i, 0, 1, 2*i, 0, 0); DLINK_SetDecoderVideoExtOutput(4*i+1, 0, 1, 2*i, 1, 0); DLINK_SetDecoderVideoExtOutput(4*i+2, 0, 1, 2*i, 2, 0); DLINK_SetDecoderVideoExtOutput(4*i+3, 0, 1, 2*i, 3, 0); DLINK_SetDisplayStandard(2*i+1,StandardNTSC); struDisplayRegion[0].left=0; struDisplayRegion[0].top=0; struDisplayRegion[0].width=704; struDisplayRegion[0].height=480; if (DLINK_SetDisplayRegion(2*i+1, 1, struDisplayRegion, 0) != HWERR_SUCCESS) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "SetDisplayRegion failed!"); } DLINK_SetDecoderVideoExtOutput(4*i, 1, 1, 2*i+1, 0, 0); } } } else { nDispNum = DLINK_GetDisplayChannelCount(); if (nDispNum >= 2) { REGION_PARAM struDisplayRegion[MAX_DISPLAY_REGION]; int i; memset(struDisplayRegion, 0, sizeof(struDisplayRegion)); for (i=0; i<MAX_DISPLAY_REGION; i++) struDisplayRegion[i].color = RGB(i, i*8, i*16); for (i=0; i<nDispNum/2; i++) { DLINK_SetDisplayStandard(2*i,StandardPAL); struDisplayRegion[0].left=0; struDisplayRegion[0].top=0; struDisplayRegion[0].width=352; struDisplayRegion[0].height=288; struDisplayRegion[1].left=352; struDisplayRegion[1].top=0; struDisplayRegion[1].width=352; struDisplayRegion[1].height=288; struDisplayRegion[2].left=0; struDisplayRegion[2].top=288; struDisplayRegion[2].width=352; struDisplayRegion[2].height=288; struDisplayRegion[3].left=352; struDisplayRegion[3].top=288; struDisplayRegion[3].width=352; struDisplayRegion[3].height=288; if (DLINK_SetDisplayRegion(2*i, 4, struDisplayRegion, 0) != HWERR_SUCCESS) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "SetDisplayRegion failed!"); } DLINK_SetDecoderVideoExtOutput(4*i, 0, 1, 2*i, 0, 0); DLINK_SetDecoderVideoExtOutput(4*i+1, 0, 1, 2*i, 1, 0); DLINK_SetDecoderVideoExtOutput(4*i+2, 0, 1, 2*i, 2, 0); DLINK_SetDecoderVideoExtOutput(4*i+3, 0, 1, 2*i, 3, 0); DLINK_SetDisplayStandard(2*i+1,StandardPAL); struDisplayRegion[0].left=0; struDisplayRegion[0].top=0; struDisplayRegion[0].width=704; struDisplayRegion[0].height=576; if (DLINK_SetDisplayRegion(2*i+1, 1, struDisplayRegion, 0) != HWERR_SUCCESS) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "SetDisplayRegion failed!"); } DLINK_SetDecoderVideoExtOutput(4*i, 1, 1, 2*i+1, 0, 0); } } } if (m_iCardChanCount==1) { m_iCurWndNum =1; m_comboWinNum.SetCurSel(0); } else if (m_iCardChanCount<=4) { m_iCurWndNum = 4; m_comboWinNum.SetCurSel(1); } else if (m_iCardChanCount<=9) { m_iCurWndNum = 9; m_comboWinNum.SetCurSel(2); } else { m_iCurWndNum = 16; m_comboWinNum.SetCurSel(3); } m_comboWinNum.EnableWindow(FALSE); return TRUE; } /********************************************************* Function: InitGlobalSysInfo Desc: initialize global system info Input: Output: Return: **********************************************************/ void CClientDemoDlg::InitGlobalSysInfo() { InitHardDriver(); g_pMainDlg = this; //initialize hardware decode background g_hPlayHardBgBrush = ::CreateSolidBrush(COLORREF(0xff2200));//dark blue0xff2200 //initialize software decode background g_hPlaySoftBgBrush = ::CreateSolidBrush(COLORREF(0xffffff));//white if (g_struLocalParam.bUseCard) { if (InitDecodeCard()) { g_bCardInit = TRUE; AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "InitDecodeCard success"); } else { g_bCardInit = FALSE; AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "InitDecodeCard fail"); } } //get current system resolution g_iCurScreenWidth = GetSystemMetrics(SM_CXSCREEN); g_iCurScreenHeight = GetSystemMetrics(SM_CYSCREEN); } /********************************************************* Function: GetVersionInfor Desc: get version information Input: Output: Return: **********************************************************/ typedef DWORD (WINAPI *VGetFileVersionInfoSize)(LPSTR lptstrFilename, LPDWORD lpdwHandle); typedef BOOL (WINAPI *VGetFileVersionInfo)(LPSTR lptstrFilename, DWORD dwHandle, DWORD dwLen, LPVOID lpData); typedef BOOL(WINAPI *VVerQueryValue)(const LPVOID pBlock,LPSTR lpSubBlock,LPVOID * lplpBuffer, PUINT puLen); VGetFileVersionInfoSize vgetsize; VGetFileVersionInfo vfileinfo; VVerQueryValue vqureyvalue; void CClientDemoDlg::GetVersionInfor() { DWORD m_dwSize = 0; HMODULE handle = LoadLibrary("version.dll"); //there is no this library on win2000 if (handle == NULL) { return; } vgetsize = (VGetFileVersionInfoSize)GetProcAddress(handle, "GetFileVersionInfoSizeA"); m_dwSize = GetLastError(); vfileinfo = (VGetFileVersionInfo)GetProcAddress(handle, "GetFileVersionInfoA"); vqureyvalue = (VVerQueryValue)GetProcAddress(handle, "VerQueryValueA"); char szInfo[128] = {0}; m_dwSize = vgetsize("HCNetSDK.dll", NULL); if (m_dwSize > 0) { char * m_lpBuffer = new char[m_dwSize]; char *lpSDKVersion = NULL; //Get the versioninformation block BOOL bRet = vfileinfo("HCNetSDK.dll", 0, m_dwSize, m_lpBuffer); struct LANGANDCODEPAGE { WORD wLanguage; WORD wCodePage; } *lpTranslate; DWORD cbTranslate = 0; vqureyvalue(m_lpBuffer, TEXT("\\VarFileInfo\\Translation"), (LPVOID*)&lpTranslate, (PUINT)&cbTranslate); wsprintf(szInfo, TEXT( "\\StringFileInfo\\%04x%04x\\FileVersion"), lpTranslate-> wLanguage, lpTranslate-> wCodePage); bRet = vqureyvalue(m_lpBuffer, szInfo, (void **) &lpSDKVersion, NULL); char * m_lpSDKBuild = NULL; wsprintf(szInfo, TEXT( "\\StringFileInfo\\%04x%04x\\FileDescription"), lpTranslate-> wLanguage, lpTranslate-> wCodePage); bRet = vqureyvalue(m_lpBuffer, szInfo, (void **) &m_lpSDKBuild, NULL); GetDlgItem(IDC_STATIC_DEMO_VERSION)->SetWindowText(m_lpSDKBuild); AddLog(-1, OPERATION_SUCC_T, "FileVersion%s %s", lpSDKVersion, m_lpSDKBuild); delete [] m_lpBuffer; } else { m_dwSize = GetLastError(); } } /********************************************************* Function: InitMainWin Desc: demo main window layout Input: Output: Return: **********************************************************/ void CClientDemoDlg::InitMainWin() { m_iTreeWidth = 165; //device tree width m_iRightWidth = 160; //PTZ pic box width m_iFunBtnHeight = 85; //column height m_iListLogHeight = 110 ;//list log height char szLan[128] = {0}; m_listAlarmInfo.InsertColumn(0,"",LVCFMT_LEFT,0,-1); g_StringLanType(szLan, "时间", "Time"); m_listAlarmInfo.InsertColumn(1, szLan,LVCFMT_LEFT,150); g_StringLanType(szLan, "报警信息", "Alarm Info"); m_listAlarmInfo.InsertColumn(2, szLan,LVCFMT_LEFT,400); g_StringLanType(szLan, "设备信息", "Device Info"); m_listAlarmInfo.InsertColumn(3, szLan,LVCFMT_LEFT,160); m_listAlarmInfo.SetExtendedStyle(m_listAlarmInfo.GetExtendedStyle()|LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT|LVS_EX_SUBITEMIMAGES); m_listAllLog.InsertColumn(0, "", LVCFMT_LEFT, 0, -1); g_StringLanType(szLan, "时间", "Time"); m_listAllLog.InsertColumn(1, szLan, LVCFMT_LEFT, 120); g_StringLanType(szLan, "状态", "State"); m_listAllLog.InsertColumn(2, szLan, LVCFMT_LEFT, 40); g_StringLanType(szLan, "操作", "Operation"); m_listAllLog.InsertColumn(3, szLan, LVCFMT_LEFT, 300); g_StringLanType(szLan, "设备信息", "Device Info"); m_listAllLog.InsertColumn(4,szLan,LVCFMT_LEFT,140); g_StringLanType(szLan, "错误信息", "Error Info"); m_listAllLog.InsertColumn(5,szLan,LVCFMT_LEFT,80); m_listAllLog.SetExtendedStyle(m_listAllLog.GetExtendedStyle()|LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT|LVS_EX_SUBITEMIMAGES); if (g_bInSide) { m_comboWinNum.ResetContent(); m_comboWinNum.AddString("1"); m_comboWinNum.AddString("4"); m_comboWinNum.AddString("9"); m_comboWinNum.AddString("16"); m_comboWinNum.AddString("25"); /* m_comboWinNum.AddString("36"); m_comboWinNum.AddString("49"); m_comboWinNum.AddString("64"); m_comboWinNum.AddString("81"); m_comboWinNum.AddString("100"); m_comboWinNum.AddString("121"); m_comboWinNum.AddString("144"); m_comboWinNum.AddString("169"); m_comboWinNum.AddString("196"); m_comboWinNum.AddString("225"); m_comboWinNum.AddString("256"); */ } m_iSelListType = 0;//local log ((CButton *)GetDlgItem(IDC_RADIO_LOCAL_LOG))->SetCheck(TRUE); ((CButton *)GetDlgItem(IDC_RADIO_ALARM_INFO))->SetCheck(FALSE); OnSelchangeComboListType(); MoveWindow(0, 0, DEMO_FULL_WIDTH, DEMO_FULL_HEIGHT, TRUE); // MoveWindow(0, 0, GetSystemMetrics(SM_CXFULLSCREEN), GetSystemMetrics(SM_CYFULLSCREEN), TRUE); GetVersionInfor(); CString csTemp = _T(""); DWORD dwVersion = NET_DVR_GetSDKBuildVersion(); csTemp.Format("HCNetSDK V%d.%d.%d.%d", (0xff000000 & dwVersion)>>24, (0x00ff0000 & dwVersion)>>16,\ (0x0000ff00 & dwVersion)>>8, (0x000000ff & dwVersion));//%.d,0x0000ff & dwVersion,build NO. do not expose GetDlgItem(IDC_STATIC_SDK_VERSION)->SetWindowText(csTemp); dwVersion = PlayM4_GetSdkVersion(); csTemp.Format("PlayCtrl V%d.%d.%d.%d", (0xff000000 & dwVersion)>>24, (0x00ff0000 & dwVersion)>>16,\ (0x0000ff00 & dwVersion)>>8, (0x000000ff & dwVersion)); GetDlgItem(IDC_STATIC_PLAYM4_VERSION)->SetWindowText(csTemp); InitPreviewRect();//preview window, part of main window } /********************************************************* Function: InitChildWindow Desc: initialize child window Input: Output: Return: **********************************************************/ void CClientDemoDlg::InitChildWindow(void) { for (int i = 0; i < MAX_OUTPUTS; i++) { g_dlgOutput[i].m_iSubWndIndex = i; g_dlgOutput[i].Create(IDD_DLG_OUTPUT,this); } m_dlgRemoteCfg = new CDlgRemoteCfg; m_dlgRemoteCfg->Create(IDD_DLG_REMOTE_CFG,this); m_dlgRemoteCfg->ShowWindow(SW_HIDE); m_dlgLocalCfg = new CDlgLocalConfig; m_dlgLocalCfg->Create(IDD_DLG_LOCAL_CONFIG, this); m_dlgLocalCfg->ShowWindow(SW_HIDE); m_dlgIPAccess = new CDlgRemoteIPAccess; m_dlgIPAccess->Create(IDD_DLG_REMOTE_IP_ACCESS_CFG, this); m_dlgIPAccess->ShowWindow(SW_HIDE); m_dlgHDConfig = new CDlgHardDiskCfg; m_dlgHDConfig->Create(IDD_DLG_HARD_DISK_CFG, this); m_dlgHDConfig->ShowWindow(SW_HIDE); m_dlgConfigAll = new CDlgConfigAll; m_dlgConfigAll->Create(IDD_DLG_CONFIG_ALL, this); m_dlgConfigAll->ShowWindow(SW_HIDE); m_dlgOutputCtrl = new CDlgOutputCtrl; m_dlgOutputCtrl->Create(IDD_DLG_OUTPUT_CTRL, this); m_dlgOutputCtrl->ShowWindow(SW_HIDE); m_dlgPlayBack = new CDlgPlayBack; m_dlgPlayBack->Create(IDD_DLG_PLAY_BACK, this); m_dlgPlayBack->ShowWindow(SW_HIDE); // m_pStreamIDDlg = new CDlgStreamID; // m_pStreamIDDlg->Create(IDD_DLG_STREAM_ID, this); // m_pStreamIDDlg->ShowWindow(SW_HIDE); m_dlgBatchCfg = new CDlgBatchConfig; m_dlgBatchCfg->Create(IDD_DLG_BATCH_CONFIG, this); m_dlgBatchCfg->ShowWindow(SW_HIDE); m_dlgProductCfg = new CDlgProductCfg; m_dlgProductCfg->Create(IDD_DLG_PRODUCT_CFG,this); m_dlgProductCfg->ShowWindow(SW_HIDE); } /********************************************************* Function: CreateTree Desc: create device tree Input: Output: Return: **********************************************************/ void CClientDemoDlg::CreateTree(void) { m_treeDeviceList.DeleteAllItems(); char szLan[128] = {0}; g_StringLanType(szLan, "设备树(右击添加设备)", "Device Tree(Right Click to Add Device)"); HTREEITEM hRoot = m_treeDeviceList.InsertItem(szLan, TREE_ALL, TREE_ALL); CString strTemp =_T(""); CString strChanTmp = _T(""); int i = 0; int j = 0; HTREEITEM hDevice = NULL; HTREEITEM hChan = NULL; for (i = 0; i < MAX_DEVICES; i++) { if (g_struDeviceInfo[i].iDeviceChanNum != -1) { strTemp.Format("%s", g_struDeviceInfo[i].chLocalNodeName); hDevice = m_treeDeviceList.InsertItem(strTemp, g_struDeviceInfo[i].dwImageType, g_struDeviceInfo[i].dwImageType, hRoot); m_treeDeviceList.SetItemData(hDevice, DEVICETYPE*1000 + g_struDeviceInfo[i].iDeviceIndex); for (j=0; j< MAX_CHANNUM_V40; j++) { if (g_struDeviceInfo[i].pStruChanInfo[j].bEnable) { strChanTmp.Format("%s", g_struDeviceInfo[i].pStruChanInfo[j].chChanName); hChan = m_treeDeviceList.InsertItem(strChanTmp, g_struDeviceInfo[i].pStruChanInfo[j].dwImageType, g_struDeviceInfo[i].pStruChanInfo[j].dwImageType, hDevice); m_treeDeviceList.SetItemData(hChan,CHANNELTYPE * 1000 + g_struDeviceInfo[i].pStruChanInfo[j].iChanIndex); } else { g_struDeviceInfo[i].pStruChanInfo[j].iChanIndex = -1; } } if (g_struDeviceInfo[i].lLoginID >= 0) { m_treeDeviceList.Expand(hDevice,TVE_EXPAND); } else { m_treeDeviceList.Expand(hDevice,TVE_COLLAPSE); } } } m_treeDeviceList.Expand(hRoot,TVE_EXPAND); m_treeDeviceList.Expand(m_treeDeviceList.GetRootItem(),TVE_EXPAND); } /********************************************************* Function: OnBnClickedBtnPreview Desc: preview button response, switch to preview interface Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnPreview() { if (m_iMainType != PREVIEW_T) { //modify preview flag m_iMainType = PREVIEW_T; //hide configuration and button control ConfigAllHide(); m_dlgPlayBack->HideAll(); if (g_struLocalParam.bUseCard) { if (!g_bCardInit) { if (InitDecodeCard()) { g_bCardInit = TRUE; } else { g_bCardInit = FALSE; } } } else { if (g_bCardInit) { g_bCardInit = FALSE; NET_DVR_ReleaseDevice_Card(); NET_DVR_ReleaseDDraw_Card(); } } PreviewReferShow(TRUE); } } /********************************************************* Function: LoopSvc Desc: preview loop service Input: none Output: none Return: none **********************************************************/ void *LoopSvc(void *pParam) { int i = 0; while (1) { for (i=0; i<g_struLocalParam.iCycleTime; i++) { Sleep(1000); if (!g_struLocalParam.bCycling) { goto exitsvc; } } g_pMainDlg->CyclePlayAllDevicesLogined(); } exitsvc: g_pMainDlg->StopPlayAll(); g_pMainDlg->ChangePlayBtnState(); return NULL; } /********************************************************* Function: StartPlayAll Desc: play all, only log-in device Input: Output: Return: **********************************************************/ void CClientDemoDlg::StartPlayAll(void) { //stop all play window StopPlayAll(); //get and save all surveillance points that can be previewed int i = 0; int j = 0; int iFirstPlayNum = 0;//first surveillance point int iDeviceIndex = -1; int iChanIndex = -1; int iSurveillanceNumLeft = 0; g_nSurveillanceTotalNum = 0; //get current surveillance to play for (i = 0; i < MAX_DEVICES; i++) { if (g_struDeviceInfo[i].byURL && g_struDeviceInfo[i].lLoginID != -1) { //配置使用URL预览时,在设备没有通道时,使能第一个通道作为预览通道 g_struDeviceInfo[i].pStruChanInfo[0].bEnable = TRUE; if (g_struDeviceInfo[i].pStruChanInfo[0].iChannelNO == -1) { g_struDeviceInfo[i].pStruChanInfo[0].iChannelNO = 1; } } if ((-1 != g_struDeviceInfo[i].iDeviceChanNum || g_struDeviceInfo[i].byURL) && g_struDeviceInfo[i].lLoginID != -1) { for (j = 0; j < MAX_CHANNUM_V30; j++) { if (g_struDeviceInfo[i].pStruChanInfo[j].bEnable) { g_struPlayAllInfo[g_nSurveillanceTotalNum].iDeviceIndex = i;//serial starts from 0 g_struPlayAllInfo[g_nSurveillanceTotalNum].iChanIndex = j; g_nSurveillanceTotalNum ++; } } } } if (g_nSurveillanceTotalNum == 0) { return;//no monitoring points that can be played } AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "StartPlayAll:Total Chan Number= %d", g_nSurveillanceTotalNum); if (g_nSurveillanceTotalNum > m_iCurWndNum) {//first group of mornitoring points iFirstPlayNum = m_iCurWndNum; iSurveillanceNumLeft = g_nSurveillanceTotalNum - m_iCurWndNum; g_iNextSurveillanceIndex = m_iCurWndNum; g_struLocalParam.bNextPage = TRUE; g_struLocalParam.bFrontPage =FALSE ; } else//only one group { iFirstPlayNum = g_nSurveillanceTotalNum; iSurveillanceNumLeft = 0; g_iNextSurveillanceIndex = g_nSurveillanceTotalNum; g_struLocalParam.bFrontPage = FALSE; g_struLocalParam.bNextPage = FALSE; } //preview first group for (i = 0; i < iFirstPlayNum; i++) { iDeviceIndex = g_struPlayAllInfo[i].iDeviceIndex; iChanIndex = g_struPlayAllInfo[i].iChanIndex; //没有通道设置了URL方式预览 if (g_struDeviceInfo[iDeviceIndex].byURL && g_nSurveillanceTotalNum == 1) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[0].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[0].iChanIndex = 0; } g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], GetChanItem(iDeviceIndex, iChanIndex)); Sleep(10); } //cycle play if (g_struLocalParam.bCyclePlay) { if (!g_struLocalParam.bCycling) { g_struLocalParam.bCycling = TRUE; g_struLocalParam.bPaused = FALSE; _beginthread((void (__cdecl *)(void *))LoopSvc, 0, NULL); } // if (g_pCycleTimer == NULL) // { // g_pCycleTimer = SetTimer(CYCLE_PREVIEW_TIMER, g_struLocalParam.iCycleTime*1000, NULL); // } // g_struLocalParam.bCycling = TRUE; // g_struLocalParam.bPaused = FALSE; } if (iSurveillanceNumLeft != 0) { g_struLocalParam.bNextPage = TRUE; } else { g_struLocalParam.bNextPage = FALSE; } g_struLocalParam.bFrontPage = FALSE; g_bPlayAllDevice = TRUE; ChangePlayBtnState(); } /********************************************************* Function: OnBnClickedBtnPlay Desc: play all or stop all Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnPlay() { if (IsPlaying())//stop all playing windows { if (!g_struLocalParam.bCycling) { StopPlayAll(); ChangePlayBtnState(); } g_struLocalParam.bPaused = TRUE; g_bPlayAllDevice = FALSE; g_struLocalParam.bCycling = FALSE; // if (g_pCycleTimer != NULL) // KillTimer(CYCLE_PREVIEW_TIMER); // g_pCycleTimer = NULL; // } return; } StartPlayAll(); } /********************************************************* Function: OnBnClickedBtnMakeIframe Desc: mandatory I frame Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnMakeIframe() { int i = m_iCurWndIndex; if (g_dlgOutput[i].m_lPlayHandle < 0) { return; } int iDeviceIndex = g_dlgOutput[i].m_struChanInfo.iDeviceIndex; int iChanIndex = g_dlgOutput[i].m_struChanInfo.iChanIndex; if (iDeviceIndex == -1 || iChanIndex == -1) { return; } if (iChanIndex < ZERO_CHAN_INDEX) // 500 以上为零通道 { if (((g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].dwProtocol>>31)&0x1) == 0) { //if (!NET_DVR_MakeKeyFrame(g_struDeviceInfo[iDeviceIndex].lLoginID, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].iChannelNO)) memset(&m_struIFrame, 0, sizeof(m_struIFrame)); m_struIFrame.dwSize = sizeof(NET_DVR_I_FRAME); if (g_struDeviceInfo[iDeviceIndex].byMirrorChanNum > 0 && iChanIndex >= MIRROR_CHAN_INDEX) { m_struIFrame.dwChan = g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX].iChannelNO; } else { m_struIFrame.dwChan = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].iChannelNO; } m_struIFrame.byStreamType = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].dwStreamType; if(!NET_DVR_RemoteControl(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_MAKE_I_FRAME, &m_struIFrame, sizeof(m_struIFrame))) { AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_MAKE_I_FRAME"); char szLan[128] = {0}; g_StringLanType(szLan, "强制I帧失败!", "Make I Frame Failed"); AfxMessageBox(szLan); } else { AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_MAKE_I_FRAME"); } } else { //if (!NET_DVR_MakeKeyFrameSub(g_struDeviceInfo[iDeviceIndex].lLoginID, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].iChannelNO)) memset(&m_struIFrame, 0, sizeof(m_struIFrame)); m_struIFrame.dwSize = sizeof(NET_DVR_I_FRAME); if (g_struDeviceInfo[iDeviceIndex].byMirrorChanNum > 0 && iChanIndex >= MIRROR_CHAN_INDEX) { m_struIFrame.dwChan = g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX].iChannelNO; } else { m_struIFrame.dwChan = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].iChannelNO; } m_struIFrame.byStreamType = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].dwStreamType; if(!NET_DVR_RemoteControl(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_MAKE_I_FRAME, &m_struIFrame, sizeof(m_struIFrame))) { AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_MAKE_I_FRAME"); char szLan[128] = {0}; g_StringLanType(szLan, "强制I帧失败!", "Make I Frame Failed"); AfxMessageBox(szLan); } else { AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_MAKE_I_FRAME"); } } } else { int iZeroChannel = iChanIndex - ZERO_CHAN_INDEX + g_struDeviceInfo[iDeviceIndex].iStartChan; if (!NET_DVR_ZeroMakeKeyFrame(g_struDeviceInfo[iDeviceIndex].lLoginID, iChanIndex - ZERO_CHAN_INDEX + g_struDeviceInfo[iDeviceIndex].iStartChan)) { AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_ZeroMakeKeyFrame Chan[%d]", iZeroChannel); } else { AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_ZeroMakeKeyFrame Chan[%d]", iZeroChannel); } } } /********************************************************* Function: PreviewReferShow Desc: display or hide control and dialog related to preview Input: bShow,TRUE,display,FALSE,hide; Output: Return: **********************************************************/ void CClientDemoDlg::PreviewReferShow(BOOL bShow) { int iShowStat = bShow?SW_SHOW:SW_HIDE; if (bShow) { if (g_struLocalParam.bUseCard) { NET_DVR_ClearSurface_Card(); } if (g_struLocalParam.bEnlarged) { ArrangeOutputs(1); } else { ArrangeOutputs(m_iCurWndNum); } } else { if (g_struLocalParam.bUseCard) { NET_DVR_ClearSurface_Card(); } for (int i=0; i<MAX_OUTPUTS; i++) { g_dlgOutput[i].ShowWindow(SW_HIDE); } } GetDlgItem(IDC_STATIC_PREVIEWBG)->ShowWindow(iShowStat); //GetDlgItem(IDC_STATIC_PREVIEWBG)->Invalidate(!bShow); GetDlgItem(IDC_BTN_PLAY)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_RECORD)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_PICTURE_SNATCH)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_MAKE_IFRAME)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_PREVIEW1)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_PREVIEW2)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_PREVIEW3)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_NETDELAY)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_WIN_NUM)->ShowWindow(iShowStat); GetDlgItem(IDC_COMBONETDELAY)->ShowWindow(iShowStat); GetDlgItem(IDC_COMBO_WNDNUM)->ShowWindow(iShowStat); m_dlgOutputCtrl->ShowWindow(iShowStat); } /********************************************************* Function: InitPreviewRect Desc: initialize preview area Input: Output: Return: **********************************************************/ void CClientDemoDlg::InitPreviewRect() { m_rectPreviewBG.top = m_iFunBtnHeight; m_rectPreviewBG.left = m_iTreeWidth; m_rectPreviewBG.right = DEMO_FULL_WIDTH - m_iRightWidth; m_rectPreviewBG.bottom = m_rectPreviewBG.Width()*3/4 + m_iFunBtnHeight+4;//+4 m_rectRightArea.top = m_iFunBtnHeight - 3; m_rectRightArea.left = DEMO_FULL_WIDTH - m_iRightWidth + 5;// m_rectRightArea.right = DEMO_FULL_WIDTH;// m_rectRightArea.bottom = m_rectPreviewBG.Width()*3/4 + m_iFunBtnHeight + 55; //+55button height GetDlgItem(IDC_STATIC_PREVIEWBG)->MoveWindow(&m_rectPreviewBG,TRUE); m_dlgOutputCtrl->MoveWindow(&m_rectRightArea,TRUE); m_dlgOutputCtrl->ShowWindow(SW_SHOW); if (!g_struLocalParam.bUseCard) { m_iCurWndNum = 4;//default window number is 4 m_comboWinNum.SetCurSel(1); } m_comboNetDelayBufNum.SetCurSel(1); //output box layout ArrangeOutputs(m_iCurWndNum);// } /********************************************************* Function: LoadTreeImage Desc: load tree iamge Input: Output: Return: **********************************************************/ #define MAX_BMPS 14 void CClientDemoDlg::LoadTreeImage(void) { CBitmap cBmp[MAX_BMPS]; m_imageTreeList.Create(16,16,ILC_COLOR32 | ILC_MASK,1,1); cBmp[TREE_ALL].LoadBitmap(IDB_BITMAP_TREE); m_imageTreeList.Add(&cBmp[TREE_ALL],RGB(1,1,1)); cBmp[DEVICE_LOGOUT].LoadBitmap(IDB_BITMAP_LOGOUT); m_imageTreeList.Add(&cBmp[DEVICE_LOGOUT],RGB(1,1,1)); cBmp[DEVICE_LOGIN].LoadBitmap(IDB_BITMAP_LOGIN); m_imageTreeList.Add(&cBmp[DEVICE_LOGIN],RGB(1,1,1)); cBmp[DEVICE_FORTIFY].LoadBitmap(IDB_BITMAP_FORTIFY); m_imageTreeList.Add(&cBmp[DEVICE_FORTIFY],RGB(1,1,1)); cBmp[DEVICE_ALARM].LoadBitmap(IDB_BITMAP_DEV_ALARM); m_imageTreeList.Add(&cBmp[DEVICE_ALARM],RGB(1,1,1)); cBmp[DEVICE_FORTIFY_ALARM].LoadBitmap(IDB_BITMAP_FORTIFY_ALARM); m_imageTreeList.Add(&cBmp[DEVICE_FORTIFY_ALARM],RGB(1,1,1)); cBmp[CHAN_ORIGINAL].LoadBitmap(IDB_BITMAP_CAMERA); m_imageTreeList.Add(&cBmp[CHAN_ORIGINAL],RGB(1,1,1)); cBmp[CHAN_PLAY].LoadBitmap(IDB_BITMAP_PLAY); m_imageTreeList.Add(&cBmp[CHAN_PLAY],RGB(1,1,1)); cBmp[CHAN_RECORD].LoadBitmap(IDB_BITMAP_REC); m_imageTreeList.Add(&cBmp[CHAN_RECORD],RGB(1,1,1)); cBmp[CHAN_PLAY_RECORD].LoadBitmap(IDB_BITMAP_PLAYANDREC); m_imageTreeList.Add(&cBmp[CHAN_PLAY_RECORD],RGB(1,1,1)); cBmp[CHAN_ALARM].LoadBitmap(IDB_BITMAP_ALARM); m_imageTreeList.Add(&cBmp[CHAN_ALARM],RGB(1,1,1)); cBmp[CHAN_PLAY_ALARM].LoadBitmap(IDB_BITMAP_PLAY_ALARM); m_imageTreeList.Add(&cBmp[CHAN_PLAY_ALARM],RGB(1,1,1)); cBmp[CHAN_PLAY_RECORD_ALARM].LoadBitmap(IDB_BITMAP_P_R_A); m_imageTreeList.Add(&cBmp[CHAN_PLAY_RECORD_ALARM],RGB(1,1,1)); cBmp[CHAN_OFF_LINE].LoadBitmap(IDB_BITMAP_CHAN_OFF); m_imageTreeList.Add(&cBmp[CHAN_OFF_LINE],RGB(1,1,1)); m_treeDeviceList.SetImageList(&m_imageTreeList, LVSIL_NORMAL); } /********************************************************* Function: IsPlaying Desc: whether any window is previewing Input: Output: Return: **********************************************************/ BOOL CClientDemoDlg::IsPlaying(void) { if (m_iMainType == PREVIEW_T) { for (int i = 0; i < MAX_OUTPUTS; i ++) { if (g_dlgOutput[i].m_lPlayHandle >= 0) { return TRUE; } } } return FALSE; } /********************************************************* Function: ArrangeOutputs Desc: output layout Input: iNumber, current output number Output: Return: **********************************************************/ void CClientDemoDlg::ArrangeOutputs(int iNumber) { if (iNumber == 0) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "ArrangeOutputs number=0!"); return; } int i = 0; CRect crect; int iSqrtNum = 0;//sqrt value of window number int iWidth = 0;//window width int iHeight = 0;//window height iSqrtNum = (int)sqrt((double)iNumber); for (i = 0;i < MAX_OUTPUTS;i++) { g_dlgOutput[i].ShowWindow(SW_HIDE); } if (g_struLocalParam.bMultiScreen) {//muti-window full screen iWidth = (g_iCurScreenWidth - OUTPUT_INTERVAL*(iSqrtNum-1))/iSqrtNum; iHeight = (g_iCurScreenHeight - OUTPUT_INTERVAL*(iSqrtNum-1))/iSqrtNum; for (i = 0; i < iNumber; i++) { g_dlgOutput[i].MoveWindow((i%iSqrtNum)*(iWidth+OUTPUT_INTERVAL),(i/iSqrtNum)*(iHeight+OUTPUT_INTERVAL),iWidth,iHeight,TRUE); g_dlgOutput[i].m_struCardPlayParam.nLeft = (i%iSqrtNum)*(iWidth+OUTPUT_INTERVAL); g_dlgOutput[i].m_struCardPlayParam.nTop = (i/iSqrtNum)*(iHeight+OUTPUT_INTERVAL); g_dlgOutput[i].m_struCardPlayParam.nWidth = iWidth; g_dlgOutput[i].m_struCardPlayParam.nHeight = iHeight; g_dlgOutput[i].ShowWindow(SW_SHOW); } } else { iWidth = (m_rectPreviewBG.Width()-OUTPUT_INTERVAL*(iSqrtNum-1))/iSqrtNum;//a single pic width in partition iHeight = (m_rectPreviewBG.Height()-OUTPUT_INTERVAL*(iSqrtNum-1))/iSqrtNum;//a single pic height in partition int iPlayIndex = 0; for (i = 0; i < iNumber; i++) { if (g_struLocalParam.bEnlarged) {//double click to zoom some pic, iNumber = 1 iPlayIndex = m_iCurWndIndex; } else { iPlayIndex = i; } g_dlgOutput[iPlayIndex].MoveWindow(m_iTreeWidth + (i%iSqrtNum)*(iWidth+OUTPUT_INTERVAL),\ m_iFunBtnHeight+(i/iSqrtNum)*(iHeight+OUTPUT_INTERVAL),iWidth,iHeight,TRUE); g_dlgOutput[iPlayIndex].m_struCardPlayParam.nLeft = (i%iSqrtNum)*(iWidth+OUTPUT_INTERVAL);//m_iTreeWidth+ g_dlgOutput[iPlayIndex].m_struCardPlayParam.nTop = (i/iSqrtNum)*(iHeight+OUTPUT_INTERVAL);//m_iFunBtnHeight+ g_dlgOutput[iPlayIndex].m_struCardPlayParam.nWidth = iWidth; g_dlgOutput[iPlayIndex].m_struCardPlayParam.nHeight = iHeight; g_dlgOutput[iPlayIndex].ShowWindow(SW_SHOW); g_dlgOutput[iPlayIndex].DrawOutputBorder(); } } //hardware decode window set NET_DVR_DISPLAY_PARA struDisPlayParam; if (g_struLocalParam.bUseCard) { //clear and hide previous pic NET_DVR_ClearSurface_Card(); for (i = 0; i < MAX_OUTPUTS; i++) { struDisPlayParam.bToScreen = 0; struDisPlayParam.bToVideoOut = 1; struDisPlayParam.nLeft = g_dlgOutput[i].m_struCardPlayParam.nLeft; struDisPlayParam.nTop = g_dlgOutput[i].m_struCardPlayParam.nTop; struDisPlayParam.nWidth = g_dlgOutput[i].m_struCardPlayParam.nWidth; struDisPlayParam.nHeight = g_dlgOutput[i].m_struCardPlayParam.nHeight; NET_DVR_ResetPara_Card(g_dlgOutput[i].m_lPlayHandle,&struDisPlayParam); } if (g_struLocalParam.bMultiScreen) { for (i = 0; i < m_iCurWndNum; i++) { struDisPlayParam.bToScreen = 1; struDisPlayParam.bToVideoOut = 1; struDisPlayParam.nLeft = g_dlgOutput[i].m_struCardPlayParam.nLeft; struDisPlayParam.nTop = g_dlgOutput[i].m_struCardPlayParam.nTop; struDisPlayParam.nWidth = g_dlgOutput[i].m_struCardPlayParam.nWidth; struDisPlayParam.nHeight = g_dlgOutput[i].m_struCardPlayParam.nHeight; NET_DVR_ResetPara_Card(g_dlgOutput[i].m_lPlayHandle,&struDisPlayParam); } } else { if (iNumber == 1) {//single channel hardware decode or single window zoom struDisPlayParam.bToScreen = 1; struDisPlayParam.bToVideoOut = 1; struDisPlayParam.nLeft = g_dlgOutput[m_iCurWndIndex].m_struCardPlayParam.nLeft; struDisPlayParam.nTop = g_dlgOutput[m_iCurWndIndex].m_struCardPlayParam.nTop; struDisPlayParam.nWidth = g_dlgOutput[m_iCurWndIndex].m_struCardPlayParam.nWidth; struDisPlayParam.nHeight = g_dlgOutput[m_iCurWndIndex].m_struCardPlayParam.nHeight; NET_DVR_ResetPara_Card(g_dlgOutput[m_iCurWndIndex].m_lPlayHandle,&struDisPlayParam); } else {//narrow for (i = 0; i < iNumber; i++) { struDisPlayParam.bToScreen = 1; struDisPlayParam.bToVideoOut = 1; struDisPlayParam.nLeft = g_dlgOutput[i].m_struCardPlayParam.nLeft; struDisPlayParam.nTop = g_dlgOutput[i].m_struCardPlayParam.nTop; struDisPlayParam.nWidth = g_dlgOutput[i].m_struCardPlayParam.nWidth; struDisPlayParam.nHeight = g_dlgOutput[i].m_struCardPlayParam.nHeight; NET_DVR_ResetPara_Card(g_dlgOutput[i].m_lPlayHandle,&struDisPlayParam); } } } } } /********************************************************* Function: FullScreen Desc: display/hide main control while single or multiple pic preview in full screen Input: bFullScreen: TRUE, full screen, hide some control, FALSE, recover display control and previous pic Output: Return: **********************************************************/ void CClientDemoDlg::FullScreen(BOOL bFullScreen) { int iShowStat = bFullScreen?SW_HIDE:SW_SHOW; m_treeDeviceList.ShowWindow(iShowStat); GetDlgItem(IDC_BTN_LOG_SAVE)->ShowWindow(iShowStat); GetDlgItem(IDC_RADIO_LOCAL_LOG)->ShowWindow(iShowStat); GetDlgItem(IDC_RADIO_ALARM_INFO)->ShowWindow(iShowStat); // GetDlgItem(IDC_COMBO_LIST_TYPE)->ShowWindow(iShowStat); // GetDlgItem(IDC_STATIC_LIST_TYPE)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_LOG_CLEAR)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_LOG_CONFIG)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_MAIN)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_CONFIG)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_PREVIEW)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_PLAY_BACK)->ShowWindow(iShowStat); //GetDlgItem(IDC_BTN_MANAGE)->ShowWindow(iShowStat); //GetDlgItem(IDC_BTN_ELSE)->ShowWindow(iShowStat); GetDlgItem(IDC_BTN_EXIT)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_VERSION)->ShowWindow(iShowStat); //GetDlgItem(IDC_STATIC_SYS)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_DEMO_VERSION)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_SDK_VERSION)->ShowWindow(iShowStat); GetDlgItem(IDC_STATIC_PLAYM4_VERSION)->ShowWindow(iShowStat); if (bFullScreen) { //for full screen while backplay GetWindowPlacement(&m_struOldWndpl); CRect rectWholeDlg;//entire client(including title bar) CRect rectClient;//client area(not including title bar) CRect rectFullScreen; GetWindowRect(&rectWholeDlg); RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, &rectClient); ClientToScreen(&rectClient); rectFullScreen.left = rectWholeDlg.left-rectClient.left; rectFullScreen.top = rectWholeDlg.top-rectClient.top; rectFullScreen.right = rectWholeDlg.right+g_iCurScreenWidth - rectClient.right; rectFullScreen.bottom = rectWholeDlg.bottom+g_iCurScreenHeight - rectClient.bottom; //enter into full screen; WINDOWPLACEMENT struWndpl; struWndpl.length = sizeof(WINDOWPLACEMENT); struWndpl.flags = 0; struWndpl.showCmd = SW_SHOWNORMAL; struWndpl.rcNormalPosition = rectFullScreen; SetWindowPlacement(&struWndpl); } else { SetWindowPlacement(&m_struOldWndpl); } if (m_iMainType == PREVIEW_T)//dealing while preview { //refresh backgroud box if (bFullScreen) { GetDlgItem(IDC_STATIC_PREVIEWBG)->MoveWindow(0,0,g_iCurScreenWidth,g_iCurScreenHeight,true); } else { GetDlgItem(IDC_STATIC_PREVIEWBG)->MoveWindow(&m_rectPreviewBG,true); } PreviewReferShow(!bFullScreen); GetDlgItem(IDC_STATIC_PREVIEWBG)->ShowWindow(SW_SHOW); if (g_struLocalParam.bFullScreen) { if (g_struLocalParam.bUseCard) { NET_DVR_DISPLAY_PARA struDisPlayParam; struDisPlayParam.bToVideoOut = 1; struDisPlayParam.bToScreen = 1; struDisPlayParam.nLeft = 0; struDisPlayParam.nTop = 0; struDisPlayParam.nWidth = g_iCurScreenWidth; struDisPlayParam.nHeight = g_iCurScreenHeight; NET_DVR_ResetPara_Card(g_dlgOutput[m_iCurWndIndex].m_lPlayHandle,&struDisPlayParam); g_dlgOutput[m_iCurWndIndex].MoveWindow(0,0,g_iCurScreenWidth, g_iCurScreenHeight, TRUE); g_dlgOutput[m_iCurWndIndex].ShowWindow(SW_SHOW); } else { g_dlgOutput[m_iCurWndIndex].MoveWindow(0,0,g_iCurScreenWidth, g_iCurScreenHeight, TRUE); g_dlgOutput[m_iCurWndIndex].ShowWindow(SW_SHOW); } } } if (bFullScreen) { m_listAlarmInfo.ShowWindow(SW_HIDE); m_listAllLog.ShowWindow(SW_HIDE); } else { OnSelchangeComboListType(); } } /********************************************************* Function: OnNMClickTreeDeviceList Desc: click tree node response function, type of node; device node, log in operation, clear device and its related alarm Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnNMClickTreeDeviceList(NMHDR *pNMHDR, LRESULT *pResult) { //get node handle through mouse position CPoint pt(0,0); GetCursorPos(&pt); CRect rect(0,0,0,0); ScreenToClient(&pt); GetDlgItem(IDC_TREE_DEVICE_LIST)->GetWindowRect(&rect); ScreenToClient(&rect); pt.x = pt.x-rect.left; pt.y = pt.y-rect.top; UINT uFlags = 0; HTREEITEM hSelect = m_treeDeviceList.HitTest(pt,&uFlags); if (hSelect == NULL) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "please click the right node!"); return; } BOOL bLogined = FALSE; DWORD dwNoteData = m_treeDeviceList.GetItemData(hSelect); int iType = dwNoteData/1000; int iIndex = dwNoteData%1000; if (DEVICETYPE == iType) { m_iCurDeviceIndex = iIndex; m_hCurDeviceItem = hSelect; m_iCurChanIndex = -1; m_hCurChanItem = NULL; bLogined = DoLogin(m_iCurDeviceIndex, hSelect); } else if (CHANNELTYPE == iType) { m_iCurChanIndex = iIndex; m_hCurChanItem = hSelect; HTREEITEM hParent = m_treeDeviceList.GetParentItem(hSelect); if (hParent != NULL) { dwNoteData = m_treeDeviceList.GetItemData(hParent); iType = dwNoteData/1000; iIndex = dwNoteData%1000; if (DEVICETYPE == iType) { m_iCurDeviceIndex = iIndex; m_hCurDeviceItem = hParent; bLogined = DoLogin(m_iCurDeviceIndex, hParent); } } } else { m_iCurDeviceIndex = -1; m_hCurDeviceItem = NULL; m_iCurChanIndex = -1; m_hCurChanItem = NULL; } if (m_iMainType == CONFIG_ALL_T) { m_dlgConfigAll->ConfigWndUpdate(); } else if (m_iMainType == PLAY_BACK_T) { m_dlgPlayBack->PlayBackWinUpdate(); } else if (m_iMainType == PRODUCT_RELATE_T) { m_dlgProductCfg->UpdateWindowParam(GetCurDeviceIndex(),GetCurChanIndex()); } //clear alarm status on manual if (bLogined) { ManualClearAlarm(m_iCurDeviceIndex, m_iCurChanIndex); } *pResult = 0; } /********************************************************* Function: OnNMDblclkTreeDeviceList Desc: double click tree node response function, play one channel or whole device Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnNMDblclkTreeDeviceList(NMHDR *pNMHDR, LRESULT *pResult) { HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); if (NULL == hSelect || m_iMainType != PREVIEW_T)//it works to double click device tree only while preview { return; } if (g_bPlayAllDevice)//disable to single designated play while all play { char szLan[128] = {0}; g_StringLanType(szLan, "请先停止全部播放", "Please stop all play first"); AfxMessageBox(szLan); return; } DWORD dwNodeData = (DWORD)m_treeDeviceList.GetItemData(hSelect); HTREEITEM hParent = NULL; int iType = dwNodeData/1000; int iIndex = dwNodeData%1000; int iDeviceIndex = GetCurDeviceIndex(); switch (iType) { case TREE_ALL_T: DblAllTree(); break; case DEVICETYPE: m_iCurDeviceIndex = iIndex; m_hCurDeviceItem = hSelect; m_iCurChanIndex = -1; m_hCurChanItem = NULL; if (GetCurDeviceIndex() != -1) { DblPlayDevice(m_iCurDeviceIndex, m_iCurWndIndex); } m_treeDeviceList.Expand(hSelect, TVE_COLLAPSE);//expend reverse operation // m_treeDeviceList.Expand(hSelect,TVE_EXPAND); break; case CHANNELTYPE: //double click channel m_iCurChanIndex = iIndex; m_hCurChanItem = hSelect; hParent = m_treeDeviceList.GetParentItem(hSelect); if (hParent != NULL) { if (DEVICETYPE == m_treeDeviceList.GetItemData(hParent)/1000) { m_iCurDeviceIndex = m_treeDeviceList.GetItemData(hParent)%1000; m_hCurDeviceItem = hParent; } } if (m_iCurDeviceIndex >= 0) { if (iIndex < MIRROR_CHAN_INDEX) { DblPlayChan(m_iCurDeviceIndex,iIndex,hSelect); } else if (iIndex < ZERO_CHAN_INDEX) { PlayMirrorChan(m_iCurDeviceIndex,iIndex,hSelect); } else { PlayZeroChan(m_iCurDeviceIndex,iIndex,hSelect); } } break; default: { m_iCurChanIndex = -1; m_hCurChanItem = NULL; m_iCurDeviceIndex = -1; m_hCurDeviceItem = NULL; } break; } *pResult = 0; } /********************************************************* Function: OnNMRclickTreeDeviceList Desc: right-click tree node, pop up related menu Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnNMRclickTreeDeviceList(NMHDR *pNMHDR, LRESULT *pResult) { CMenu pMenu; HTREEITEM hParent=NULL; CPoint pt(0,0); GetCursorPos(&pt); HTREEITEM hRoot = m_treeDeviceList.GetRootItem(); if (hRoot == NULL) { if (!pMenu.LoadMenu(IDR_MENU_TREE_ALL)) { return; } } else { CRect rect(0,0,0,0); ScreenToClient(&pt); GetDlgItem(IDC_TREE_DEVICE_LIST)->GetWindowRect(&rect); ScreenToClient(&rect); pt.x = pt.x-rect.left; pt.y = pt.y-rect.top; //while select first node or blank //HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); UINT uFlags = 0; HTREEITEM hSelect = m_treeDeviceList.HitTest(pt,&uFlags); if (hSelect == NULL )//|| m_iMainType != PREVIEW_T { return; } m_treeDeviceList.SelectItem(hSelect); int iType = int(m_treeDeviceList.GetItemData(hSelect) / 1000); switch (iType) { case TREE_ALL_T: // if (!pMenu.LoadMenu(IDR_MENU_TREE_ALL)) // { // return; // } OnMenuDeviceAdd(); return; break; case DEVICETYPE: m_iCurDeviceIndex = int(m_treeDeviceList.GetItemData(hSelect) % 1000); m_hCurDeviceItem = hSelect; m_iCurChanIndex = -1; m_hCurChanItem = NULL; if (!pMenu.LoadMenu(IDR_MENU_DEVICE)) { return; } break; case CHANNELTYPE: m_iCurChanIndex = int(m_treeDeviceList.GetItemData(hSelect) % 1000); m_hCurChanItem = hSelect; hParent = m_treeDeviceList.GetParentItem(hSelect); if (hParent != NULL) { if (DEVICETYPE == m_treeDeviceList.GetItemData(hParent)/1000) { m_iCurDeviceIndex = m_treeDeviceList.GetItemData(hParent)%1000; m_hCurDeviceItem = hParent; } } if (!pMenu.LoadMenu(IDR_MENU_CHANNEL)) { return; } break; default: break; } } //display menu GetCursorPos(&pt); pMenu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN,pt.x ,pt.y,this); *pResult = 0; } /********************************************************* Function: GetAfterItem Desc: get device insert point, make sure new device insert afterword last node Input: hRoot:handle of item tree root Output: Return: **********************************************************/ HTREEITEM CClientDemoDlg::GetAfterItem(HTREEITEM hRoot) { HTREEITEM hReturn = TVI_FIRST; HTREEITEM hChild = m_treeDeviceList.GetChildItem(hRoot); while (hChild) { if (TREE_ALL_T == m_treeDeviceList.GetItemData(hChild) / 1000) //break if it si device tree node { break; } hReturn = hChild; hChild = m_treeDeviceList.GetNextSiblingItem(hChild); } return hReturn; } /********************************************************* Function: OnMenuDeviceAdd Desc: menu,device adding response Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuDeviceAdd() { int i = 0; int j = 0; for (i = 0; i < MAX_DEVICES; i++) { if (-1 == g_struDeviceInfo[i].iDeviceChanNum) { break; } } char szLan[128] = {0}; if (i == MAX_DEVICES) { g_StringLanType(szLan, "所添加的设备已达到最大数", "Added device has reached the maximum number"); AfxMessageBox(szLan); return; } HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); for (i = 0; i < MAX_DEVICES; i++) { if (g_struDeviceInfo[i].iDeviceChanNum == -1) { CDlgAddDevice dlg; dlg.m_iDeviceIndex = i; //memset(&g_struDeviceInfo[i], 0, sizeof(STRU_DEVICE_INFO)); if (dlg.DoModal() == IDOK) { HTREEITEM hDevice = m_treeDeviceList.InsertItem(g_struDeviceInfo[i].chLocalNodeName, DEVICE_LOGIN, DEVICE_LOGIN,hSelect,GetAfterItem(hSelect)); m_treeDeviceList.SetItemData(hDevice, DEVICETYPE * 1000 + g_struDeviceInfo[i].iDeviceIndex);// HTREEITEM hChannel = NULL; //analog channel & IP channel for (j= 0; j < MAX_CHANNUM_V40; j++) { if (g_struDeviceInfo[i].pStruChanInfo[j].iChanIndex != -1 ) { if (g_struDeviceInfo[i].pStruChanInfo[j].bEnable) { hChannel = m_treeDeviceList.InsertItem(g_struDeviceInfo[i].pStruChanInfo[j].chChanName,CHAN_ORIGINAL,CHAN_ORIGINAL,hDevice); } else { hChannel = m_treeDeviceList.InsertItem(g_struDeviceInfo[i].pStruChanInfo[j].chChanName,CHAN_OFF_LINE,CHAN_OFF_LINE,hDevice); } m_treeDeviceList.SetItemData(hChannel, CHANNELTYPE * 1000 + g_struDeviceInfo[i].pStruChanInfo[j].iChanIndex); } } //zero for (j= 0; j < g_struDeviceInfo[i].byZeroChanNum; j++) { hChannel = m_treeDeviceList.InsertItem(g_struDeviceInfo[i].struZeroChan[j].chChanName,CHAN_ORIGINAL,CHAN_ORIGINAL,hDevice); m_treeDeviceList.SetItemData(hChannel, CHANNELTYPE * 1000 + g_struDeviceInfo[i].struZeroChan[j].iChanIndex); } for (j= 0; j < g_struDeviceInfo[i].byMirrorChanNum&&j < 16; j++) { hChannel = m_treeDeviceList.InsertItem(g_struDeviceInfo[i].struMirrorChan[j].chChanName,CHAN_ORIGINAL,CHAN_ORIGINAL,hDevice); m_treeDeviceList.SetItemData(hChannel, CHANNELTYPE * 1000 + g_struDeviceInfo[i].struMirrorChan[j].iChanIndex); } m_iCurDeviceIndex = dlg.m_iDeviceIndex; m_treeDeviceList.Expand(hSelect,TVE_EXPAND); m_treeDeviceList.Expand(hDevice,TVE_EXPAND); ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(hDevice), LPARAM(i)); } return; } } g_StringLanType(szLan, "超过最大设备数", "Exceeds the maximum number of Devices"); AfxMessageBox(szLan); } /********************************************************* Function: DblPlayChan Desc: double click playing channel, stop if it is already playing Input: hChanItem,pic switch wile play status changes;iChanIndex:channel index;hChanItem,channel node pointer; Output: Return: **********************************************************/ void CClientDemoDlg::DblPlayChan(int iDeviceIndex, int iChanIndex,HTREEITEM hChanItem) { if (!DoLogin(iDeviceIndex, m_treeDeviceList.GetParentItem(hChanItem))) { return; } char szLan[128] = {0}; if (g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].lRealHandle < 0) { CHANNEL_INFO pStruChanInfo; if (iChanIndex >= MIRROR_CHAN_INDEX) { memcpy(&pStruChanInfo, &g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex- MIRROR_CHAN_INDEX], sizeof(CHANNEL_INFO)); } else { memcpy(&pStruChanInfo, &g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], sizeof(CHANNEL_INFO)); } if (g_dlgOutput[m_iCurWndIndex].StartPlay(&pStruChanInfo,hChanItem)<0) { g_StringLanType(szLan, "预览失败!", "Preview Failed"); AfxMessageBox(szLan); } ChangePlayBtnState(); return; } //if the channel is already previewed, stop it if (!StopPlayedChan(iDeviceIndex,iChanIndex)) { g_StringLanType(szLan, "停止预览失败!", "Stop previewing Failed"); AfxMessageBox(szLan); } ChangePlayBtnState(); } void CClientDemoDlg::PlayMirrorChan(int iDeviceIndex, int iChanIndex,HTREEITEM hChanItem) { if (!DoLogin(iDeviceIndex, m_treeDeviceList.GetParentItem(hChanItem))) { return; } char szLan[128] = {0}; if (g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX].lRealHandle < 0) { CHANNEL_INFO struMirrorChan; memcpy(&struMirrorChan, &g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX], sizeof(CHANNEL_INFO)); if (g_dlgOutput[m_iCurWndIndex].MirrorStartPlay(&struMirrorChan,hChanItem) <0) { g_StringLanType(szLan, "预览失败!", "Preview Failed"); //AddLog(iDeviceIndex, OPERATION_FAIL_T, "Zero play chan", iChanIndex-ZERO_CHAN_INDEX); AfxMessageBox(szLan); } ChangePlayBtnState(); return; } //if the channel is already previewed, stop it if (!StopPlayedChan(iDeviceIndex,iChanIndex)) { g_StringLanType(szLan, "停止预览失败!", "Stop previewing Failed"); AfxMessageBox(szLan); } ChangePlayBtnState(); } /********************************************************* Function: PlayZeroChan Desc: double click playing channel, stop if it is already playing Input: hChanItem,pic switch wile play status changes;iChanIndex:channel index;hChanItem,channel node pointer; Output: Return: **********************************************************/ void CClientDemoDlg::PlayZeroChan(int iDeviceIndex, int iChanIndex,HTREEITEM hChanItem) { if (!DoLogin(iDeviceIndex, m_treeDeviceList.GetParentItem(hChanItem))) { return; } char szLan[128] = {0}; if (g_struDeviceInfo[iDeviceIndex].struZeroChan[iChanIndex-ZERO_CHAN_INDEX].lRealHandle < 0) { CHANNEL_INFO struZeroChan; memcpy(&struZeroChan, &g_struDeviceInfo[iDeviceIndex].struZeroChan[iChanIndex-ZERO_CHAN_INDEX], sizeof(CHANNEL_INFO)); if (g_dlgOutput[m_iCurWndIndex].ZeroStartPlay(&struZeroChan,hChanItem)<0) { g_StringLanType(szLan, "预览失败!", "Preview Failed"); //AddLog(iDeviceIndex, OPERATION_FAIL_T, "Zero play chan", iChanIndex-ZERO_CHAN_INDEX); AfxMessageBox(szLan); } ChangePlayBtnState(); return; } //if the channel is already previewed, stop it if (!StopPlayedChan(iDeviceIndex,iChanIndex)) { g_StringLanType(szLan, "停止预览失败!", "Stop previewing Failed"); AfxMessageBox(szLan); } ChangePlayBtnState(); } /********************************************************* Function: OnMenuLogout Desc: menu on logout response function Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuLogout() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } HTREEITEM hDeviceItem = m_treeDeviceList.GetSelectedItem(); if (hDeviceItem == NULL) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "CClientDemoDlg::OnMenuLogout: hDeviceItem err\n"); return; } DoLogout(iDeviceIndex, hDeviceItem); ManualClearAlarm(iDeviceIndex, -1); } /********************************************************* Function: DoLogout Desc: logout Input: iDeviceIndex:device serial number;hDeviceItem,device pointer; Output: Return: TRUE,log out successfullyFALSE,log out failed **********************************************************/ BOOL CClientDemoDlg::DoLogout(int iDeviceIndex, HTREEITEM hDeviceItem) { int i = 0; char szLan[128] = {0}; g_StringLanType(szLan, "该设备有通道正在预览或录像", "Some channels of this device is recording or preview"); for (i = 0; i<g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; i++) { if ((g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].lRealHandle >= 0 && i < MAX_CHANNUM_V30*2)|| g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bLocalManualRec ) { AfxMessageBox(szLan); return FALSE; } } // 2011-11-16 silujie g_StringLanType(szLan, "该设备有通道正在被动解码", "some channels of this device is passive decode"); for(i =0; i<256; i++) { if (g_struDeviceInfo[iDeviceIndex].struPassiveDecode[i].lPassiveHandle >=0 || g_struDeviceInfo[iDeviceIndex].struPassiveDecode[i].hFileThread != NULL) { AfxMessageBox(szLan); return FALSE; } } g_StringLanType(szLan, "该设备有通道正在语音对讲", "Some channels of this device is voice talk"); if (g_lVoiceHandle >= 0) { AfxMessageBox(szLan); return FALSE; } if (g_struDeviceInfo[iDeviceIndex].lLoginID >= 0) { //remove guard if (g_struDeviceInfo[iDeviceIndex].lFortifyHandle >= 0) { if (NET_DVR_CloseAlarmChan_V30(g_struDeviceInfo[iDeviceIndex].lFortifyHandle)) { g_struDeviceInfo[iDeviceIndex].lFortifyHandle = -1; } } if (!NET_DVR_Logout_V30(g_struDeviceInfo[iDeviceIndex].lLoginID)) { //g_struDeviceInfo[iDeviceIndex].lLoginID = -1; g_StringLanType(szLan, "注销失败", "Logout Failed"); AfxMessageBox(szLan); ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(hDeviceItem), LPARAM(iDeviceIndex)); return FALSE; } } AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_Logout_V30"); g_struDeviceInfo[iDeviceIndex].lLoginID = -1; g_struDeviceInfo[iDeviceIndex].bPlayDevice = FALSE; for (i = 0; i < g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; i++) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].lRealHandle = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = FALSE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bLocalManualRec = FALSE; } ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(hDeviceItem), LPARAM(iDeviceIndex)); return TRUE; } /********************************************************* Function: OnMenuDeviceDelete Desc: delete devices, and initialize structure Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuDeviceDelete() { char szLan[128] = {0}; g_StringLanType(szLan, "确定要删除该结点", "Sure to delete this node"); if (MessageBox(szLan,"Warning",MB_OKCANCEL) == IDOK) { int iDeviceIndex = GetCurDeviceIndex(); HTREEITEM hDeviceItem = m_treeDeviceList.GetSelectedItem(); if (DoLogout(iDeviceIndex, hDeviceItem))//先注销这个设备 { LOCAL_DEVICE_INFO struDevInfo; //memcpy(&(g_struDeviceInfo[iDeviceIndex]), &struDevInfo, sizeof(LOCAL_DEVICE_INFO)); sprintf(g_struDeviceInfo[iDeviceIndex].chLoginUserName , "%s", _T("")); sprintf(g_struDeviceInfo[iDeviceIndex].chLoginPwd , "%s", _T("")); sprintf(g_struDeviceInfo[iDeviceIndex].chLocalNodeName , "%s", _T("")); sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceIP, "%s", _T("")); // sprintf(g_struDeviceInfo[iDeviceIndex].chDevNetCard1IP, "%s", _T("")); sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceMultiIP , "%s", _T("")); sprintf(g_struDeviceInfo[iDeviceIndex].chSerialNumber , "%s", _T("")); // sprintf(g_struDeviceInfo[iDeviceIndex].chIPServerIP, "%s", _T("")); g_struDeviceInfo[iDeviceIndex].lLoginID = -1; g_struDeviceInfo[iDeviceIndex].iDeviceChanNum = -1; g_struDeviceInfo[iDeviceIndex].lDevicePort = 8000; g_struDeviceInfo[iDeviceIndex].iDeviceType = 0; g_struDeviceInfo[iDeviceIndex].iDeviceLoginType = 0; g_struDeviceInfo[iDeviceIndex].byHttps = 0; g_struDeviceInfo[iDeviceIndex].byLoginMode = 0; g_struDeviceInfo[iDeviceIndex].byLoginModeRes = 0; for (int j = 0; j < g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; j++) { sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[j].chChanName ,"%s", _T("")); g_struDeviceInfo[iDeviceIndex].pStruChanInfo[j].iChanIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[j].dwProtocol = 0; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[j].iDeviceIndex = -1; } m_treeDeviceList.DeleteItem(hDeviceItem); g_SaveDeviceConfig(); } } } /********************************************************* Function: OnMenuDeviceInfo Desc: menu on device info response function Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuDeviceInfo() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1 ) { return; } CDlgDeviceInfo dlgDeviceInfo; dlgDeviceInfo.m_iDeviceIndex = iDeviceIndex; if (IDOK == dlgDeviceInfo.DoModal()) { HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); m_treeDeviceList.SetItemText(hSelect,g_struDeviceInfo[iDeviceIndex].chLocalNodeName); } } /********************************************************* Function: OnMenuJPEGSnatchConfig Desc: local 'jpeg' capture pic configuration Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuJPEGSnatchConfig() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } int iChanIndex = GetCurChanIndex(); if (iChanIndex == -1) { char szLan[128] = {0}; g_StringLanType(szLan, "通道号错误!", "Channel Error"); AfxMessageBox(szLan); return; } if (iChanIndex >= ZERO_CHAN_INDEX) { AfxMessageBox("Zero not support NET_DVR_CaptureJPEGPicture"); } CDlgJPEGSnatchConfig dlg; if (g_struDeviceInfo[iDeviceIndex].byMirrorChanNum > 0 && iChanIndex >= MIRROR_CHAN_INDEX) { dlg.m_pChanInfo = &g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX]; } else { dlg.m_pChanInfo = &g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex]; } dlg.DoModal(); } /********************************************************* Function: OnMenuChannelInfo Desc: menu on channel info response function Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuChannelInfo() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } int iChanIndex = GetCurChanIndex(); if (iChanIndex == -1) { char szLan[128] = {0}; g_StringLanType(szLan, "通道号错误!", "Channel Error"); AfxMessageBox(szLan); return; } CDlgChannelInfo dlgChannelInfo; if (iChanIndex >= ZERO_CHAN_INDEX) { dlgChannelInfo.m_pChanInfo = &g_struDeviceInfo[iDeviceIndex].struZeroChan[iChanIndex - ZERO_CHAN_INDEX]; } else if (iChanIndex >= g_struDeviceInfo[iDeviceIndex].iDeviceChanNum) { dlgChannelInfo.m_pChanInfo = &g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX]; } else if (iChanIndex >= 0 && iChanIndex < g_struDeviceInfo[iDeviceIndex].iDeviceChanNum) { dlgChannelInfo.m_pChanInfo = &g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex]; } if (IDOK == dlgChannelInfo.DoModal() && dlgChannelInfo.m_bChanged) { HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); if (iChanIndex >= ZERO_CHAN_INDEX) { m_treeDeviceList.SetItemText(hSelect,g_struDeviceInfo[iDeviceIndex].struZeroChan[iChanIndex-ZERO_CHAN_INDEX].chChanName); } else if (iChanIndex >= MIRROR_CHAN_INDEX) { m_treeDeviceList.SetItemText(hSelect,g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex-MIRROR_CHAN_INDEX].chChanName); } else { m_treeDeviceList.SetItemText(hSelect,g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].chChanName); } g_SaveDeviceConfig(); } } /********************************************************* Function: ChangeChannelItemImage Desc: change status icon related to channel node, including play, record, alarm status Input: wParam, tree channel pointer;lParam,Pointer to channel structure; Output: Return: 0 succeed **********************************************************/ LRESULT CClientDemoDlg::ChangeChannelItemImage(WPARAM wParam, LPARAM lParam) { int iDeviceIndex = int(wParam); int iChanIndex = int(lParam); if (iDeviceIndex < 0 || iDeviceIndex >MAX_DEVICES\ || iChanIndex > 512 || iChanIndex < 0) { OutputDebugString("dev index and chan num err!\n"); return NULL; } HTREEITEM hChanItem = GetChanItem(iDeviceIndex, iChanIndex); if (NULL == hChanItem) { OutputDebugString("chan item NULL!\n"); return NULL; } int iImage = CHAN_ORIGINAL; CHANNEL_INFO pStruChanInfo; BOOL bPlaying = FALSE; if (iChanIndex >= ZERO_CHAN_INDEX) { memcpy(&pStruChanInfo, &g_struDeviceInfo[iDeviceIndex].struZeroChan[iChanIndex - ZERO_CHAN_INDEX], sizeof(pStruChanInfo)); } else if (iChanIndex >= MIRROR_CHAN_INDEX) { memcpy(&pStruChanInfo, &g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX], sizeof(pStruChanInfo)); } else { memcpy(&pStruChanInfo, &g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], sizeof(pStruChanInfo)); } bPlaying = pStruChanInfo.lRealHandle >= 0? TRUE:FALSE; if (bPlaying && !pStruChanInfo.bLocalManualRec && !pStruChanInfo.bAlarm) { iImage = CHAN_PLAY; } else if ( bPlaying && pStruChanInfo.bLocalManualRec && !pStruChanInfo.bAlarm) { iImage = CHAN_PLAY_RECORD; } else if (!bPlaying && pStruChanInfo.bLocalManualRec && !pStruChanInfo.bAlarm) { iImage = CHAN_RECORD; } else if (!bPlaying && !pStruChanInfo.bLocalManualRec && pStruChanInfo.bAlarm) { iImage = CHAN_ALARM; } else if (bPlaying && !pStruChanInfo.bLocalManualRec && pStruChanInfo.bAlarm) { iImage = CHAN_PLAY_ALARM; } else if (bPlaying && pStruChanInfo.bLocalManualRec && pStruChanInfo.bAlarm) { iImage = CHAN_PLAY_RECORD_ALARM; } else if (!bPlaying && !pStruChanInfo.bLocalManualRec && !pStruChanInfo.bAlarm) { iImage = CHAN_ORIGINAL; } m_treeDeviceList.SetItemImage(hChanItem,iImage,iImage); //modify status!! if (iChanIndex >= ZERO_CHAN_INDEX) { g_struDeviceInfo[pStruChanInfo.iDeviceIndex].struZeroChan[iChanIndex - ZERO_CHAN_INDEX].dwImageType = iImage; } else if (iChanIndex >= MIRROR_CHAN_INDEX) { g_struDeviceInfo[pStruChanInfo.iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX].dwImageType = iImage; } else { g_struDeviceInfo[pStruChanInfo.iDeviceIndex].pStruChanInfo[pStruChanInfo.iChanIndex].dwImageType = iImage; } return 0; } /********************************************************* Function: ChangeDeviceItemImage Desc: 设备节点状态改变的消息函数,维护设备"登陆","布防","告警"等状态 Input: wParam,树设备节点的指针;lParam,设备的序列号; Output: Return: 0 成功 **********************************************************/ LRESULT CClientDemoDlg::ChangeDeviceItemImage(WPARAM wParam, LPARAM lParam) { HTREEITEM hDeviceItem = HTREEITEM(wParam); int iDeviceIndex = int(lParam); if (NULL == hDeviceItem || iDeviceIndex < 0) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "change dev item"); return NULL; } int iImage = DEVICE_LOGOUT; if (g_struDeviceInfo[iDeviceIndex].lLoginID >= 0 \ && g_struDeviceInfo[iDeviceIndex].lFortifyHandle < 0&& !g_struDeviceInfo[iDeviceIndex].bAlarm) { iImage = DEVICE_LOGIN; } else if (g_struDeviceInfo[iDeviceIndex].lLoginID >= 0 \ && g_struDeviceInfo[iDeviceIndex].lFortifyHandle >= 0&& !g_struDeviceInfo[iDeviceIndex].bAlarm) { iImage = DEVICE_FORTIFY; } else if (g_struDeviceInfo[iDeviceIndex].lLoginID >= 0 \ && g_struDeviceInfo[iDeviceIndex].lFortifyHandle >= 0 && g_struDeviceInfo[iDeviceIndex].bAlarm) { iImage = DEVICE_FORTIFY_ALARM; } else if (g_struDeviceInfo[iDeviceIndex].lLoginID >= 0 \ &&g_struDeviceInfo[iDeviceIndex].lFortifyHandle < 0 && g_struDeviceInfo[iDeviceIndex].bAlarm) { iImage = DEVICE_ALARM; } else { iImage = DEVICE_LOGOUT; } m_treeDeviceList.SetItemImage(hDeviceItem,iImage,iImage); g_struDeviceInfo[iDeviceIndex].dwImageType = iImage; return 0; } typedef struct tagLOCAL_LOGIN_PARAM { int iDeviceIndex; HTREEITEM hSelect; BOOL bMsgBox; }LOCAL_LOGIN_PARAM, *LPLOCAL_LOGIN_PARAM; void ClassifyDevClass(char *pDevClass, unsigned long ulDevClassLen, unsigned short wDevClass) { if (pDevClass == NULL) { return; } if (ulDevClassLen < 100) { return; } if ((wDevClass >= 1) && (wDevClass <= 50)) { sprintf(pDevClass, "DVR\n"); } else if ((wDevClass >= 51) && (wDevClass <= 100)) { sprintf(pDevClass, "DVS\n"); } else if ((wDevClass >= 101) && (wDevClass <= 150)) { sprintf(pDevClass, "NVR\n"); } else if ((wDevClass >= 151) && (wDevClass <= 200)) { sprintf(pDevClass, "IPC\n"); } // else if ((wDevClass >= 201) && (wDevClass <= 250)) { sprintf(pDevClass, "CVR\n"); } else if ((wDevClass >= 251) && (wDevClass <= 300)) { sprintf(pDevClass, "Transfer & Display\n"); } else if ((wDevClass >= 301) && (wDevClass <= 350)) { sprintf(pDevClass, "Alarm Host\n"); } else if ((wDevClass >= 351) && (wDevClass <= 400)) { sprintf(pDevClass, "Access Control\n"); } else if ((wDevClass >= 401) && (wDevClass <= 450)) { sprintf(pDevClass, "Video Intercom\n"); } else if ((wDevClass >= 451) && (wDevClass <= 500)) { sprintf(pDevClass, "Ummanned Aerial Vehicle\n"); } else if ((wDevClass >= 501) && (wDevClass <= 550)) { sprintf(pDevClass, "Mobile\n"); } else if ((wDevClass >= 551) && (wDevClass <= 600)) { sprintf(pDevClass, "MObile Vehicle\n"); } //智能分析仪 else if ((wDevClass >= 601) && (wDevClass <= 650)) { sprintf(pDevClass, "Intelligent analyzer\n"); } //智能交通服务器 else if ((wDevClass >= 651) && (wDevClass <= 700)) { sprintf(pDevClass, "Intelligent traffic server \n"); } //NVS else if ((wDevClass >= 701) && (wDevClass <= 750)) { sprintf(pDevClass, "NVS\n"); } //SMART LOCK else if ((wDevClass >= 851) && (wDevClass <= 900)) { sprintf(pDevClass, "Smart Lock\n"); } else { sprintf(pDevClass, "the others\n"); } return; } void CALLBACK LoginResultCallBack(LONG lUserID, DWORD dwResult, LPNET_DVR_DEVICEINFO_V30 lpDeviceInfo, void* pUser) { char strTmp[125] = { 0 }; sprintf(strTmp, "%d\n", dwResult); OutputDebugString(strTmp); if (dwResult == ASYN_LOGIN_SUCC && pUser != NULL) { memcpy(pUser, lpDeviceInfo, sizeof(NET_DVR_DEVICEINFO_V30)); m_giAsynLoginReturn = 1; } else { m_giAsynLoginReturn = 2; } if (m_gpDlgAsynloginWait != NULL) { m_gpDlgAsynloginWait->PostMessageA(WM_CLOSE, NULL, NULL); } m_giErrNo = NET_DVR_GetLastError(); m_gpErrMsg = NET_DVR_GetErrorMsg(); } /********************************************************* Function: DoLogin Desc: check the device has logged in, if not, log in Input: iDeviceIndex,device serial number ;hDeviceItem pointer to device node Output: Return: FALSE,device log in failed;TRUE; logged in; **********************************************************/ void *CClientDemoDlg::DoLoginEx(void *lpParam) { if (lpParam == NULL) { return FALSE; } int iDeviceIndex = ((LPLOCAL_LOGIN_PARAM)lpParam)->iDeviceIndex; HTREEITEM hDeviceItem = ((LPLOCAL_LOGIN_PARAM)lpParam)->hSelect; BOOL bMsgBox = ((LPLOCAL_LOGIN_PARAM)lpParam)->bMsgBox; delete lpParam; lpParam = NULL; NET_DVR_NETCFG_V30* pStruNetCfg = new NET_DVR_NETCFG_V30; NET_DVR_DEVICECFG_V40* pStruDevCfg = new NET_DVR_DEVICECFG_V40; if (pStruNetCfg == NULL || pStruDevCfg == NULL) { return NULL; } memset(pStruNetCfg, 0, sizeof(NET_DVR_NETCFG_V30)); memset(pStruDevCfg, 0, sizeof(NET_DVR_DEVICECFG_V40)); DWORD dwReturned = 0; CString csTemp; int i = 0; if (g_struDeviceInfo[iDeviceIndex].lLoginID < 0) { LONG lUserID = -1; NET_DVR_DEVICEINFO_V30 struDeviceInfo; // char szDeviceSN[SERIALNO_LEN] = {0}; memset(&struDeviceInfo, 0, sizeof(NET_DVR_DEVICEINFO_V30)); m_giAsynLoginReturn = 0; m_giErrNo = 0; m_gpErrMsg = NULL; NET_DVR_USER_LOGIN_INFO struLoginInfo = {0}; NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0}; if (m_gbAsynLogin) { struLoginInfo.bUseAsynLogin = true; struLoginInfo.cbLoginResult = LoginResultCallBack; struLoginInfo.pUser = &struDeviceInfoV40; } else { struLoginInfo.bUseAsynLogin = false; } struLoginInfo.wPort = g_struDeviceInfo[iDeviceIndex].lDevicePort; memcpy(struLoginInfo.sDeviceAddress, g_struDeviceInfo[iDeviceIndex].chDeviceIP, NET_DVR_DEV_ADDRESS_MAX_LEN); memcpy(struLoginInfo.sUserName, g_struDeviceInfo[iDeviceIndex].chLoginUserName, NAME_LEN); memcpy(struLoginInfo.sPassword, g_struDeviceInfo[iDeviceIndex].chLoginPwd, NAME_LEN); struLoginInfo.byProxyType = g_struDeviceInfo[iDeviceIndex].byProxyType; //struLoginInfo.byUseTransport = 1; //struLoginInfo.byRes3[119] = 2; //DEBUG //struLoginInfo.byHttps = 2; //struLoginInfo.byLoginMode = 2; struLoginInfo.byHttps = g_struDeviceInfo[iDeviceIndex].byHttps; struLoginInfo.byLoginMode = g_struDeviceInfo[iDeviceIndex].byLoginMode; //自适应方式 // struLoginInfo.byVerifyMode = 2; lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40); if (m_gbAsynLogin) { m_gpDlgAsynloginWait = new CDlgAsynloginWait(); m_gpDlgAsynloginWait->DoModal(); delete m_gpDlgAsynloginWait; m_gpDlgAsynloginWait = NULL; } if ((m_gbAsynLogin && m_giAsynLoginReturn == 2) || lUserID < 0) { char szLan[1024] = {0}; g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_Login_V30"); if (bMsgBox) { if (NET_DVR_GetLastError() == NET_DVR_PASSWORD_ERROR) { g_StringLanType(szLan, "用户名密码错误!", "user name or password error!"); AfxMessageBox(szLan); if (1 == struDeviceInfoV40.bySupportLock) { sprintf(szLan, "还剩%d尝试机会", struDeviceInfoV40.byRetryLoginTime); AfxMessageBox(szLan); } } else if (NET_DVR_GetLastError() == NET_DVR_USER_LOCKED) { if (1 == struDeviceInfoV40.bySupportLock) { sprintf(szLan, "IP被锁定,剩余锁定时间%d秒", struDeviceInfoV40.dwSurplusLockTime); AfxMessageBox(szLan); } } else { g_StringLanType(szLan, "由于网络原因或DVR忙, 注册失败!", "net error or dvr is busy!"); AfxMessageBox(szLan); } } if (pStruNetCfg != NULL) { delete pStruNetCfg ; pStruNetCfg = NULL; } if (pStruDevCfg != NULL) { delete pStruDevCfg; pStruDevCfg = NULL; } if (lUserID > 0) { NET_DVR_Logout_V30(lUserID); } m_giAsynLoginReturn = 0; return NULL; } else { g_struDeviceInfo[iDeviceIndex].byLoginModeRes = struDeviceInfoV40.byLoginMode; if (struDeviceInfoV40.byLoginMode == 0) { char szLan[128] = { 0 }; g_StringLanType(szLan, "登录成功,采用协议为私有协议", "Login SUCC, Use Private"); //AfxMessageBox(szLan); g_pMainDlg->AddLog(-1, OPERATION_SUCC_T, szLan); } else { char szLan[128] = { 0 }; g_StringLanType(szLan, "登录成功,采用协议为ISAPI", "Login SUCC, Use ISAPI"); //AfxMessageBox(szLan); g_pMainDlg->AddLog(-1, OPERATION_SUCC_T, szLan); } if (1 == struDeviceInfoV40.byPassWordResetLevel) { char szLan[128] = { 0 }; g_StringLanType(szLan, "请修改初始登录密码", "Please change the initial login password"); AfxMessageBox(szLan); } else if (2 == struDeviceInfoV40.byPassWordResetLevel) { char szLan[128] = { 0 }; g_StringLanType(szLan, "请重新设置登录密码", "Please reset your login password"); AfxMessageBox(szLan); } if (1 == struDeviceInfoV40.byPasswordLevel) { char szLan[128] = {0}; g_StringLanType(szLan, "默认密码,请修改", "default password, please change the password"); AfxMessageBox(szLan); } else if (3 == struDeviceInfoV40.byPasswordLevel) { char szLan[128] = {0}; g_StringLanType(szLan, "风险密码,请修改", "risk password, please change the password"); AfxMessageBox(szLan); } if (struDeviceInfoV40.byResidualValidity != 0) { if (struDeviceInfoV40.iResidualValidity <= 3 && struDeviceInfoV40.iResidualValidity >= 0)//密码还有3天到期时,弹窗提示 { char szLan[128] = { 0 }; g_StringLanType(szLan, "您的密码即将到期,请尽快修改密码!", "Your password is about to expire, please change the password as soon as possible!"); AfxMessageBox(szLan); } else if (struDeviceInfoV40.iResidualValidity < 0)//密码已经到期时,弹窗提示 { char szLan[128] = { 0 }; g_StringLanType(szLan, "您的密码已经到期,请尽快修改密码!", "Your password has expired, please change the password as soon as possible!"); AfxMessageBox(szLan); } else { char szLan[128] = { 0 }; g_StringLanType(szLan, "该用户密码剩余有效天数:", "Valid days remaining for this user password:"); //AfxMessageBox(szLan); g_pMainDlg->AddLog(-1, OPERATION_SUCC_T, "%s%d", szLan, struDeviceInfoV40.iResidualValidity); } } memcpy(&struDeviceInfo, &struDeviceInfoV40.struDeviceV30, sizeof(struDeviceInfo)); g_pMainDlg->AddLog(-1, OPERATION_SUCC_T, "NET_DVR_Login_V40, RTSP能力:%d", struDeviceInfoV40.bySupportStreamEncrypt); } m_giAsynLoginReturn = 0; g_struDeviceInfo[iDeviceIndex].byCharaterEncodeType = struDeviceInfoV40.byCharEncodeType; g_struDeviceInfo[iDeviceIndex].byAudioInputChanNum = struDeviceInfo.byVoiceInChanNum; g_struDeviceInfo[iDeviceIndex].byStartAudioInputChanNo = struDeviceInfo.byStartVoiceInChanNo; g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_Login_V30"); LOCAL_DEVICE_INFO temp, temp1; //initialize the information of device memcpy(&temp1, &(g_struDeviceInfo[iDeviceIndex]), sizeof(LOCAL_DEVICE_INFO)); //memcpy(&(g_struDeviceInfo[iDeviceIndex]), &temp, sizeof(LOCAL_DEVICE_INFO)); g_struDeviceInfo[iDeviceIndex].lLoginID = lUserID;// located ID from re-log in g_struDeviceInfo[iDeviceIndex].iDeviceIndex = iDeviceIndex; sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceIP, "%s", temp1.chDeviceIP); //if the device ip is in ipv6 version, change the ':' to '.' , //for ':' is not allowed in Windows OS's file name char sIPV6Addr[130] = {0}; int i = 0; for (;i < sizeof(g_struDeviceInfo[iDeviceIndex].chDeviceIP); i ++) { if(g_struDeviceInfo[iDeviceIndex].chDeviceIP[i] == '\0') { break; } else if(g_struDeviceInfo[iDeviceIndex].chDeviceIP[i] == ':') { sIPV6Addr[i] = '.'; } else { sIPV6Addr[i] = g_struDeviceInfo[iDeviceIndex].chDeviceIP[i]; } } strncpy(g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, sIPV6Addr, sizeof(sIPV6Addr)); sprintf(g_struDeviceInfo[iDeviceIndex].chLocalNodeName, "%s", temp1.chLocalNodeName); g_struDeviceInfo[iDeviceIndex].lDevicePort = temp1.lDevicePort; g_struDeviceInfo[iDeviceIndex].byHttps = temp1.byHttps; g_struDeviceInfo[iDeviceIndex].byLoginMode = temp1.byLoginMode; sprintf(g_struDeviceInfo[iDeviceIndex].chLoginPwd, "%s", temp1.chLoginPwd); sprintf(g_struDeviceInfo[iDeviceIndex].chLoginUserName, "%s", temp1.chLoginUserName); sprintf(g_struDeviceInfo[iDeviceIndex].chLoginUserName, "%s", temp1.chLoginUserName); g_struDeviceInfo[iDeviceIndex].dwImageType = DEVICE_LOGIN; g_struDeviceInfo[iDeviceIndex].lLoginID = lUserID; sprintf(g_struDeviceInfo[iDeviceIndex].chSerialNumber, "%s", struDeviceInfo.sSerialNumber); g_struDeviceInfo[iDeviceIndex].iDeviceType = struDeviceInfo.wDevType; //扩展字段表示类型,原为byDVRType g_struDeviceInfo[iDeviceIndex].iDeviceChanNum = struDeviceInfo.byChanNum + struDeviceInfo.byIPChanNum+ struDeviceInfo.byHighDChanNum *256; g_struDeviceInfo[iDeviceIndex].iStartChan = struDeviceInfo.byStartChan; g_struDeviceInfo[iDeviceIndex].iDiskNum = struDeviceInfo.byDiskNum; g_struDeviceInfo[iDeviceIndex].iAlarmOutNum = struDeviceInfo.byAlarmOutPortNum; g_struDeviceInfo[iDeviceIndex].iAlarmInNum = struDeviceInfo.byAlarmInPortNum; g_struDeviceInfo[iDeviceIndex].iAudioNum = struDeviceInfo.byAudioChanNum; g_struDeviceInfo[iDeviceIndex].iAnalogChanNum = struDeviceInfo.byChanNum; g_struDeviceInfo[iDeviceIndex].iIPChanNum = struDeviceInfo.byIPChanNum + struDeviceInfo.byHighDChanNum*256; g_struDeviceInfo[iDeviceIndex].byZeroChanNum = struDeviceInfo.byZeroChanNum; g_struDeviceInfo[iDeviceIndex].byStartDTalkChan = struDeviceInfo.byStartDTalkChan; g_struDeviceInfo[iDeviceIndex].byLanguageType = struDeviceInfo.byLanguageType; g_struDeviceInfo[iDeviceIndex].byMirrorChanNum = struDeviceInfo.byMirrorChanNum; g_struDeviceInfo[iDeviceIndex].wStartMirrorChanNo = struDeviceInfo.wStartMirrorChanNo; if (struDeviceInfo.bySupport & 0x80) { g_struDeviceInfo[iDeviceIndex].byMainProto = struDeviceInfo.byMainProto + 2; g_struDeviceInfo[iDeviceIndex].bySubProto = struDeviceInfo.bySubProto + 2; } else { g_struDeviceInfo[iDeviceIndex].byMainProto = struDeviceInfo.byMainProto; g_struDeviceInfo[iDeviceIndex].bySubProto = struDeviceInfo.bySubProto; } g_struDeviceInfo[iDeviceIndex].bySupport = struDeviceInfo.bySupport; g_struDeviceInfo[iDeviceIndex].bySupport1 = struDeviceInfo.bySupport1; g_struDeviceInfo[iDeviceIndex].bySupport2 = struDeviceInfo.bySupport2; g_struDeviceInfo[iDeviceIndex].bySupport5 = struDeviceInfo.bySupport5; g_struDeviceInfo[iDeviceIndex].bySupport7 = struDeviceInfo.bySupport7; for (i = 0; i<MAX_CHANNUM_V40; i++) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwProtocol = temp1.pStruChanInfo[i].dwProtocol; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iPicResolution = temp1.pStruChanInfo[i].iPicResolution; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iPicQuality = temp1.pStruChanInfo[i].iPicQuality; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwPreviewMode = temp1.pStruChanInfo[i].dwPreviewMode; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].nPreviewProtocolType = temp1.pStruChanInfo[i].nPreviewProtocolType; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].nVideoCodingType = temp1.pStruChanInfo[i].nVideoCodingType; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = temp1.pStruChanInfo[i].iChannelNO; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].lRealHandle = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = -1; } if (g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_B20_MSU_NP || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_MMC_B20_CLASS || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_B21_MCU_NP_CLASS || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_C20N_VWMS || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_AIOH_MCU_NP || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_Y10_MCU) //B20/B21/C20N主控 { int nAllChanNums = 0; int nPreChanNums = 0; NET_DVR_ALLSUBSYSTEMINFO_V40 struSubSystemInfoV40 = { 0 }; if (NET_DVR_MatrixGetSubSystemInfo_V40(lUserID, &struSubSystemInfoV40)) { for (int nSysCnt = 0; nSysCnt < MAX_SUBSYSTEM_NUM_V40; nSysCnt++) { if (struSubSystemInfoV40.struSubSystemInfo[nSysCnt].bySubSystemType == 2 && struSubSystemInfoV40.struSubSystemInfo[nSysCnt].byBelongBoard != 0xff && struSubSystemInfoV40.struSubSystemInfo[nSysCnt].byInterfaceNums != 0) { for (int nChanCnt = 0; nChanCnt < struSubSystemInfoV40.struSubSystemInfo[nSysCnt].byInterfaceNums; nChanCnt++) { DWORD dwDevNo = 1; DWORD dwBelongBoard = struSubSystemInfoV40.struSubSystemInfo[nSysCnt].byBelongBoard; DWORD dwChanNo = struSubSystemInfoV40.struSubSystemInfo[nSysCnt].byInterfaceStartNum + nChanCnt; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt].iChanIndex = nPreChanNums + nChanCnt; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt].iChanType = DEMO_CHANNEL_TYPE_ANALOG; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt].chChanName, "Camera_%d_%d_%d", dwDevNo, dwBelongBoard, dwChanNo); g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt].iChannelNO = dwDevNo << 24 | dwBelongBoard << 16 | dwChanNo; } nAllChanNums += struSubSystemInfoV40.struSubSystemInfo[nSysCnt].byInterfaceNums; nPreChanNums = nAllChanNums; } } g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_MatrixGetSubSystemInfo_V40"); } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_MatrixGetSubSystemInfo_V40"); char szLan[128] = { 0 }; g_StringLanType(szLan, "获取主板子系统信息失败", "failed to get subsystem information"); AfxMessageBox(szLan); return NULL; } g_struDeviceInfo[iDeviceIndex].iAnalogChanNum = nAllChanNums; if (g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_C20N_VWMS || g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_Y10_MCU || DS_B21_MCU_NP_CLASS) //C20N服务器有预监通道 { int iMinWallNo = 0; int iMaxWallNo = 0; char *pszBuf = new char[XML_BUF]; memset(pszBuf, 0, XML_BUF); if (!NET_DVR_GetDeviceAbility(lUserID, WALL_ABILITY, NULL, 0, pszBuf, XML_BUF)) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GetDeviceAbility WALL_ABILITY"); char szLan[128] = { 0 }; g_StringLanType(szLan, "获取电视墙能力集失败", "failed to get video wall ability"); AfxMessageBox(szLan); return NULL; } char *pStart = strstr(pszBuf, "<wallNo min=\""); if (pStart == NULL) { char szLan[128] = { 0 }; g_StringLanType(szLan, "电视墙能力集中wallNo字段返回有误", "the format of wallNo of video wall ability is error"); AfxMessageBox(szLan); return NULL; } pStart += strlen("<wallNo min=\""); char* pEnd = strstr(pStart, "\""); if (pEnd == NULL) { char szLan[128] = { 0 }; g_StringLanType(szLan, "电视墙能力集中wallNo字段返回有误", "the format of wallNo of video wall ability is error"); AfxMessageBox(szLan); } char sMinWallNo[32] = { 0 }; memcpy(sMinWallNo, pStart, pEnd - pStart); iMinWallNo = atoi(sMinWallNo); //从能力集中解析到电视墙编号的最小值 pStart = strstr(pEnd, "max=\""); if (pStart == NULL) { char szLan[128] = { 0 }; g_StringLanType(szLan, "电视墙能力集中wallNo字段返回有误", "the format of wallNo of video wall ability is error"); AfxMessageBox(szLan); return NULL; } pStart += strlen("max=\""); pEnd = strstr(pStart, "\""); if (pEnd == NULL) { char szLan[128] = { 0 }; g_StringLanType(szLan, "电视墙能力集中wallNo字段返回有误", "the format of wallNo of video wall ability is error"); AfxMessageBox(szLan); return NULL; } char sMaxWallNo[32] = { 0 }; memcpy(sMaxWallNo, pStart, pEnd - pStart); iMaxWallNo = atoi(sMaxWallNo); //从能力集中解析到电视墙编号的最大值 //生成电视墙预监通道 for (int nChanCnt = iMinWallNo; nChanCnt < iMaxWallNo + 1; nChanCnt++) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt - iMinWallNo].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt - iMinWallNo].iChanIndex = nPreChanNums + nChanCnt - iMinWallNo; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt - iMinWallNo].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt - iMinWallNo].iChanType = DEMO_CHANNEL_TYPE_IP; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt - iMinWallNo].chChanName, "PreMonitor_%02d", nChanCnt); g_struDeviceInfo[iDeviceIndex].pStruChanInfo[nPreChanNums + nChanCnt - iMinWallNo].iChannelNO = 0xff000000 | nChanCnt; } nAllChanNums += (iMaxWallNo - iMinWallNo + 1); nPreChanNums = nAllChanNums; g_struDeviceInfo[iDeviceIndex].iIPChanNum = iMaxWallNo - iMinWallNo + 1; } g_struDeviceInfo[iDeviceIndex].iDeviceChanNum = nAllChanNums; } else { for (i = 0; i < g_struDeviceInfo[iDeviceIndex].iAnalogChanNum; i++) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = i; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = i + g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanType = DEMO_CHANNEL_TYPE_ANALOG; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType = CHAN_ORIGINAL; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, ANALOG_C_FORMAT, i+g_struDeviceInfo[iDeviceIndex].iStartChan); } } for (i = 0; i < g_struDeviceInfo[iDeviceIndex].byMirrorChanNum && i < 16; i++) { g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChanIndex = i+MIRROR_CHAN_INDEX; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChannelNO = i + g_struDeviceInfo[iDeviceIndex].wStartMirrorChanNo; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChanType = DEMO_CHANNEL_TYPE_MIRROR; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].dwImageType = CHAN_ORIGINAL; sprintf(g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].chChanName, MIRROR_C_FORMAT, i+g_struDeviceInfo[iDeviceIndex].wStartMirrorChanNo); } if (g_struDeviceInfo[iDeviceIndex].byZeroChanNum > 0) { for (i=0; i<g_struDeviceInfo[iDeviceIndex].byZeroChanNum; i++) { g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iChanIndex = i+ZERO_CHAN_INDEX; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iChannelNO = 0; sprintf(g_struDeviceInfo[iDeviceIndex].struZeroChan[i].chChanName, "ZeroChan%d", i); //analog devices if (1) { g_struDeviceInfo[iDeviceIndex].struZeroChan[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].dwImageType = CHAN_ORIGINAL; // g_struDeviceInfo[iDeviceIndex].iEnableChanNum ++; } else { g_struDeviceInfo[iDeviceIndex].struZeroChan[i].dwImageType = CHAN_OFF_LINE; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].bEnable = FALSE; } } } if (!NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_NETCFG_V30, 0,pStruNetCfg, sizeof(NET_DVR_NETCFG_V30), &dwReturned)) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GET_NETCFG_V30"); } else { //sprintf(g_struDeviceInfo[m_iDeviceIndex].chDevNetCard1IP, "%s", struNetCfg.struEtherNet[0].struDVRIP.sIpV4); if (!g_ValidIPv6((BYTE *)(g_struDeviceInfo[iDeviceIndex].chDeviceIP))) { sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceMultiIP, "%s", pStruNetCfg->struMulticastIpAddr.sIpV4); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "multi-cast ipv4[%s]", pStruNetCfg->struMulticastIpAddr.sIpV4); } else //ipv6 { sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceMultiIP, "%s", pStruNetCfg->struMulticastIpAddr.byIPv6); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "multi-cast ipv6[%s]", pStruNetCfg->struMulticastIpAddr.byIPv6); } #if 0 //IPv6多播测试,临时性地址写死 memset(g_struDeviceInfo[iDeviceIndex].chDeviceMultiIP, 0, sizeof(g_struDeviceInfo[iDeviceIndex].chDeviceMultiIP)); sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceMultiIP, "ff02::1234"); #endif } // string strContent = "<?xml version=\"1.0\"><StorageServer version=\"1.0\"><PCNVRUI>1<PCNVRUI> </StorageServer>"; // NET_DVR_SetTransparentParam(lUserID, (char*)strContent.c_str(), strContent.size()); NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_DEVICECFG_V40, 0, pStruDevCfg, sizeof(NET_DVR_DEVICECFG_V40), &dwReturned); NET_DVR_DEVICEINFO_V40 struDevInfoV40 = { 0 }; if (!NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_DEV_LOGIN_RET_INFO, 0, &struDevInfoV40, sizeof(NET_DVR_DEVICEINFO_V40), &dwReturned)) { int nError = NET_DVR_GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GET_DEV_LOGIN_RET_INFO"); } else { // pStruDevCfg->byDVRType = struDevInfoV40.struDeviceV30.byDVRType; pStruDevCfg->wDevType = struDevInfoV40.struDeviceV30.wDevType; pStruDevCfg->byChanNum = struDevInfoV40.struDeviceV30.byChanNum; pStruDevCfg->byStartChan = struDevInfoV40.struDeviceV30.byStartChan; pStruDevCfg->byIPChanNum = struDevInfoV40.struDeviceV30.byIPChanNum; pStruDevCfg->byZeroChanNum = struDevInfoV40.struDeviceV30.byZeroChanNum; if (g_struDeviceInfo[iDeviceIndex].iDeviceType != (int)pStruDevCfg->wDevType) { char szLan[256] = {0}; char szLanShow[256] = {0}; g_StringLanType(szLan, "登陆返回设备类型值与获取设备参数返回设备类型值不同", "returned device type is different between login and get device config"); sprintf(szLanShow,"%s %d,%d",szLan,g_struDeviceInfo[iDeviceIndex].iDeviceType,pStruDevCfg->wDevType); AfxMessageBox(szLanShow); } sprintf(g_struDeviceInfo[iDeviceIndex].chDeviceName,"%s",pStruDevCfg->byDevTypeName); g_struDeviceInfo[iDeviceIndex].dwDevSoftVer = pStruDevCfg->dwSoftwareVersion; ClassifyDevClass(g_struDeviceInfo[iDeviceIndex].chDeviceClassName, 100, pStruDevCfg->wDevClass); } g_pMainDlg->m_treeDeviceList.Expand(hDeviceItem,TVE_EXPAND); //get the new device resource configure when login device/ if (g_pMainDlg->DoGetDeviceResoureCfg(iDeviceIndex)) { g_pMainDlg->DoGetIPAlarmInCfg(iDeviceIndex); g_pMainDlg->DoGetIPAlarmOutCfg(iDeviceIndex); } g_pMainDlg->RedrawDeviceNode(iDeviceIndex); ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(hDeviceItem), LPARAM(iDeviceIndex)); } //return if already logged in if (pStruNetCfg != NULL) { delete pStruNetCfg; pStruNetCfg = NULL; } if (pStruDevCfg != NULL) { delete pStruDevCfg ; pStruDevCfg = NULL; } return NULL; } /********************************************************* Function: DoLogin Desc: check the device has logged in, if not, log in Input: iDeviceIndex,device serial number ;hDeviceItem pointer to device node Output: Return: FALSE,device log in failed;TRUE; logged in; **********************************************************/ BOOL CClientDemoDlg::DoLogin(int iDeviceIndex, HTREEITEM hDeviceItem) { LPLOCAL_LOGIN_PARAM lpParam = new LOCAL_LOGIN_PARAM; if (lpParam == NULL) { return FALSE; } lpParam->iDeviceIndex = iDeviceIndex; lpParam->hSelect = hDeviceItem; lpParam->bMsgBox = TRUE; DoLoginEx(lpParam); //return if already logged in return TRUE; } /********************************************************* Function: StopPlayedChan Desc: stop one play channel in preview Input: iDeviceIndex, device index, iChanIndex,channel index Output: Return: **********************************************************/ BOOL CClientDemoDlg::StopPlayedChan(int iDeviceIndex, int iChanIndex) { for (int i = 0; i < MAX_OUTPUTS; i ++) { if (g_dlgOutput[i].m_lPlayHandle < 0) { continue; } if (g_dlgOutput[i].m_struChanInfo.iDeviceIndex == iDeviceIndex && \ g_dlgOutput[i].m_struChanInfo.iChanIndex == iChanIndex ) { if (g_dlgOutput[i].m_struChanInfo.iChanIndex < MIRROR_CHAN_INDEX) { return g_dlgOutput[i].StopPlay(); } else if (g_dlgOutput[i].m_struChanInfo.iChanIndex < ZERO_CHAN_INDEX) { return g_dlgOutput[i].MirrorStopPlay(); } else { return g_dlgOutput[i].ZeroStopPlay(); } } } return TRUE; } /********************************************************* Function: CreateNewLogFile Desc: create new log file Input: bCreate, TRUE/FALSE Output: none Return: none **********************************************************/ void CClientDemoDlg::CreateNewLogFile(BOOL bCreate) { CString csLogFile; // if ((LONG *)m_fLog.m_hFile != INVALID_HANDLE_VALUE) // { // TRACE("Close alarm file"); // m_fLog.Close(); // m_fLog.Abort(); // } // // if ((LONG *)m_fAlarm.m_hFile != INVALID_HANDLE_VALUE) // { // TRACE("Close alarm file"); // // m_fAlarm.Close(); // m_fAlarm.Abort(); // } if (m_fLog != NULL) { fclose(m_fLog); } if (m_fAlarm!= NULL) { fclose(m_fAlarm); } if (!bCreate) { return; } COleDateTime dtCurTime = COleDateTime::GetCurrentTime(); csLogFile.Format("%s\\LogFile_%4d%02d%02d.txt",\ g_struLocalParam.chRemoteCfgSavePath, dtCurTime.GetYear(), dtCurTime.GetMonth(),\ dtCurTime.GetDay()); if ((m_fLog = fopen(csLogFile.GetBuffer(0), "a+")) == NULL) { GetDlgItem(IDC_BTN_LOG_SAVE)->EnableWindow(FALSE); g_struLocalParam.bAutoSaveLog = FALSE; } csLogFile.Format("%s\\AlarmInfo_%4d%02d%02d.txt",\ g_struLocalParam.chRemoteCfgSavePath, dtCurTime.GetYear(), dtCurTime.GetMonth(),\ dtCurTime.GetDay()); if ((m_fAlarm = fopen(csLogFile.GetBuffer(0), "a+")) == NULL) { GetDlgItem(IDC_BTN_LOG_SAVE)->EnableWindow(FALSE); g_struLocalParam.bAutoSaveLog = FALSE; } } /********************************************************* Function: OnTimer Desc: timer response function Input: nIDEvent, ID event value Output: Return: **********************************************************/ #if (_MSC_VER >= 1500) //vs2008 void CClientDemoDlg::OnTimer(UINT_PTR nIDEvent) #else void CClientDemoDlg::OnTimer(UINT nIDEvent) #endif { // TODO: Add your message handler code here and/or call default char szLan[128] = {0}; CString csTemp = _T(""); int i = 0; int j = 0; time_t lCurrentTime; CString csRecRootPath; CTime ctCurTime = CTime::GetCurrentTime(); int iWeekday = ctCurTime.GetDayOfWeek() - 1; WORD iNowTime = (WORD)(ctCurTime.GetHour() * 100 + ctCurTime.GetMinute()); NET_DVR_TIME CurTime; CurTime.dwYear = ctCurTime.GetYear(); CurTime.dwMonth = ctCurTime.GetMonth(); CurTime.dwDay = ctCurTime.GetDay(); CurTime.dwHour = ctCurTime.GetHour(); CurTime.dwMinute = ctCurTime.GetMinute(); CurTime.dwSecond = ctCurTime.GetSecond(); switch (nIDEvent) { case SYSTEM_TIMER: if (g_struLocalParam.bAutoSaveLog && ctCurTime.GetHour() == 0\ && ctCurTime.GetMinute() == 0 && ctCurTime.GetSecond() == 0) {//one day CreateNewLogFile(TRUE); } break; case CYCLE_PREVIEW_TIMER: CyclePlayAllDevicesLogined(); break; case FREESPACE_TIMER: csRecRootPath.Format("%c:\\", m_iCurRecDriver); ULARGE_INTEGER FreeSpace,CallerSpace,TotalSpace; GetDiskFreeSpaceEx(csRecRootPath,&CallerSpace,&TotalSpace,&FreeSpace); g_struLocalParam.bAllDiskFull = FALSE; if (CallerSpace.QuadPart < MINSPACE) { csTemp.Format("%4d-%02d-%02d %02d:%02d:%02d HD Partition%c is Full", CurTime.dwYear, CurTime.dwMonth,\ CurTime.dwDay, CurTime.dwHour, CurTime.dwMinute, CurTime.dwSecond, m_iCurRecDriver); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, csTemp.GetBuffer(0)); if (IsDiskFull()) //delete first 8 record files if hard disk is full { if (g_struLocalParam.bCycleRecord) { DeleteClientRecordFile(); } else { for (i = 0; i < MAX_OUTPUTS; i++) { if ((g_dlgOutput[i].m_lPlayHandle >= 0) && (g_dlgOutput[i].m_bLocalManualRec)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "CClientDemoDlg::FREESPACE_TIMER stop"); g_dlgOutput[i].StopLocalRecord(); } } g_StringLanType(szLan, "客户端录像硬盘驱动器已满,无法继续录像", "Client hard disk drive is full, unable to continue record"); g_pMainDlg->AddLog(-1, OPERATION_FAIL_T, szLan); return; } } else { //storage to other partition which is free if (MakeRecDir()) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "switch to Hard disk partition%c", m_iCurRecDriver); for (i = 0; i < MAX_OUTPUTS; i++) { if ((g_dlgOutput[i].m_lPlayHandle >= 0) && (g_dlgOutput[i].m_bLocalManualRec)) { g_dlgOutput[i].ChangeRecordFileName(); } } } } } break; case FILEINTERVAL_TIMER: for (i = 0; i < MAX_OUTPUTS; i++) { if ((g_dlgOutput[i].m_lPlayHandle >= 0) && (g_dlgOutput[i].m_bLocalManualRec)) { lCurrentTime = (time_t)ctCurTime.GetTime(); if (lCurrentTime - g_dlgOutput[i].m_lChangeFileNameTime >= 0) { if (MakeRecDir()) { g_dlgOutput[i].ChangeRecordFileName(); } } } } break; case AUTORECORD_TIMER: if (g_struLocalParam.bCycling) { return; //no record in client while cycle play } if (!g_struLocalParam.bAutoRecord) { return; } for (i = 0; i < 4; i++) { if ((iNowTime >= g_struLocalParam.struLocalRecordTime[iWeekday][i].iStartTime) && (iNowTime < g_struLocalParam.struLocalRecordTime[iWeekday][i].iStopTime)) { //it is time auto record for (j = 0; j < MAX_OUTPUTS; j++) { if (g_dlgOutput[j].m_lPlayHandle >= 0) { if ( !g_dlgOutput[j].m_bLocalManualRec) { if (g_struLocalParam.bAllDiskFull) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "Client Hard Disk is full, pause recording"); return; //no record if client hard disk is full } if (MakeRecDir()) { g_dlgOutput[j].AddLog(OPERATION_SUCC_T, "%02d:%02d start auto record", CurTime.dwHour, CurTime.dwMinute); g_dlgOutput[j].StartLocalRecord(); } } } } break; } else i++; } if (i == 4) { for (j = 0; j < MAX_OUTPUTS; j++) { if (g_dlgOutput[j].m_bLocalManualRec) { g_dlgOutput[j].AddLog(OPERATION_SUCC_T, "%02d:%02d stop auto record", CurTime.dwHour, CurTime.dwMinute); g_dlgOutput[j].StopLocalRecord(); } } } break; case CHECK_DEVICE_TIMER: if (g_struLocalParam.lCheckDeviceTime == (LONG)(CurTime.dwHour*10000 + CurTime.dwMinute*100 + CurTime.dwSecond)) { for (i = 0; i < MAX_DEVICES; i++) { if (g_struDeviceInfo[i].lLoginID >= 0) { if (NET_DVR_SetDVRConfig(g_struDeviceInfo[i].lLoginID, NET_DVR_SET_TIMECFG, 0, &CurTime, sizeof(NET_DVR_TIME))) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_SetDVRConfig"); } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_SetDVRConfig"); } } } } break; default: break; } CDialog::OnTimer(nIDEvent); } /********************************************************* Function: OnCbnSelchangeComboWndNum Desc: change pic number in preview Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnCbnSelchangeComboWndNum() { int iIndex = m_comboWinNum.GetCurSel(); m_iCurWndNum = (int)pow(double(iIndex+1), 2);//current window number if (!IsPlaying()) { m_iCurWndIndex = 0;//initialize current window index while switch window ArrangeOutputs(m_iCurWndNum); GetDlgItem(IDC_STATIC_PREVIEWBG)->Invalidate(TRUE); } else { char szLan[128] = {0}; g_StringLanType(szLan, "请先停止播放", "Please stop previewing"); AfxMessageBox(szLan); } } /********************************************************* Function: OnWMProcAlarm Desc: process alarm information when Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::ProcAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; // int iRet = 0; BOOL bDisk = FALSE; int i = 0; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] ={0}; NET_DVR_ALARMINFO m_struAlarmInfo; memcpy(&m_struAlarmInfo, pAlarmInfo, sizeof(NET_DVR_ALARMINFO)); if (!(g_struDeviceInfo[iDeviceIndex].bAlarm)) { g_struDeviceInfo[iDeviceIndex].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(g_pMainDlg->GetDeviceItem(iDeviceIndex)), LPARAM(iDeviceIndex)); } int iAChanNum = g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].dwAChanNum; switch (m_struAlarmInfo.dwAlarmType) { case 0://signal alarm g_StringLanType(szLan, "信号量报警 报警输入", "Signal alarm input"); sprintf(szInfoBuf,"%s%d", szLan, m_struAlarmInfo.dwAlarmInputNumber+1); g_StringLanType(szLan, ",触发通道录像:", ", Invoke record Channel:"); sprintf(szInfoBuf,"%s%s", szInfoBuf, szLan); for (i=0; i<MAX_CHANNUM; i++) { if (m_struAlarmInfo.dwAlarmRelateChannel[i] == 1) { sprintf(szInfoBuf,"%s %d,", szInfoBuf, i+g_struDeviceInfo[iDeviceIndex].iStartChan); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 1://hard disk full alarm g_StringLanType(szInfoBuf, "硬盘满报警:", "HDD is Full:"); for (i=0; i<MAX_DISKNUM; i++) { if (m_struAlarmInfo.dwDiskNumber[i] == 1) { sprintf(szInfoBuf, "%s HDD%d ", szInfoBuf, i); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 2://video loss alarm g_StringLanType(szInfoBuf, "视频信号丢失报警:", "The video signal lost:"); for (i=0; i<MAX_CHANNUM; i++) { if (m_struAlarmInfo.dwChannel[i] == 1) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 3://motion detection alarm g_StringLanType(szInfoBuf, "移动侦测报警", "motion detection"); for (i=0; i<MAX_CHANNUM_V40; i++) { if (m_struAlarmInfo.dwChannel[i] == 1) { if (g_struDeviceInfo[iDeviceIndex].iStartChan ==0) { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else // 数字通道,i { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-32+iAChanNum].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-32+iAChanNum].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i-32+iAChanNum)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-32+iAChanNum].chChanName); } } else { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i-g_struDeviceInfo[iDeviceIndex].iStartChan+iAChanNum)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-g_struDeviceInfo[iDeviceIndex].iStartChan+iAChanNum].chChanName); } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 4://hard disk unformatted alarm g_StringLanType(szInfoBuf, "硬盘未格式化报警", "HDD not formatted:"); for (i=0; i<MAX_DISKNUM; i++) { if (m_struAlarmInfo.dwDiskNumber[i] == 1) { sprintf(szInfoBuf, "%s HDD%d", szInfoBuf, i); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 5://hard disk alarm for (i=0; i<MAX_DISKNUM; i++) { if (m_struAlarmInfo.dwDiskNumber[i] == 1) { bDisk = TRUE; g_StringLanType(szLan, "读写硬盘出错", "failed to read and write HDD"); sprintf(szInfoBuf, "%sHDD%d ", szLan, i); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } if (bDisk == FALSE) { g_StringLanType(szInfoBuf, "未接硬盘出错报警", "no HDD"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } bDisk = FALSE; break; case 6://mask alarm g_StringLanType(szInfoBuf, "发生遮挡报警", "Mask alarm"); for (i=0; i<MAX_CHANNUM; i++) { if (m_struAlarmInfo.dwChannel[i] == 1) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 7: //type unmatched g_StringLanType(szInfoBuf, "制式不匹配", "input and output video standard not match"); for (i=0; i<MAX_CHANNUM; i++) { if (m_struAlarmInfo.dwChannel[i] == 1) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 8: g_StringLanType(szInfoBuf, "非法访问", "illegal access"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 9: g_StringLanType(szInfoBuf, "视频信号异常", "video exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 10: g_StringLanType(szInfoBuf, "录像异常", "record exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 11: g_StringLanType(szInfoBuf, "智能场景变化", "Vca scene change"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; default: g_StringLanType(szLan, "未知报警类型:", "Unknown Alarm Type:"); sprintf(szInfoBuf, "%s 0x%x", szLan, m_struAlarmInfo.dwAlarmType); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; } } /********************************************************* Function: ProcAlarmV30 Desc: process alarm information for version 30 Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::ProcAlarmV30(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; BOOL bDisk = FALSE; int i = 0; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; if (iDeviceIndex > 512) { return; } char szLan[128] ={0}; NET_DVR_ALARMINFO_V30 m_struAlarmInfoV30; memcpy(&m_struAlarmInfoV30, pAlarmInfo, sizeof(NET_DVR_ALARMINFO_V30)); if (!(g_struDeviceInfo[iDeviceIndex].bAlarm)) { g_struDeviceInfo[iDeviceIndex].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(g_pMainDlg->GetDeviceItem(iDeviceIndex)), LPARAM(iDeviceIndex)); } //模拟通道数 int iAChanNum = g_struDeviceInfo[iDeviceIndex].iAnalogChanNum; //数字通道数 int iDChanNum = g_struDeviceInfo[iDeviceIndex].iIPChanNum; switch (m_struAlarmInfoV30.dwAlarmType) { case 0://signal alarm g_StringLanType(szLan, "信号量报警 报警输入", "Signal alarm input"); sprintf(szInfoBuf,"%s%d", szLan, m_struAlarmInfoV30.dwAlarmInputNumber+1); g_StringLanType(szLan, ",触发通道录像:", "Invoke record Channel:"); sprintf(szInfoBuf,"%s%s", szInfoBuf, szLan); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byAlarmRelateChannel[i] == 1) { // if (i<MAX_ANALOG_CHANNUM) // { sprintf(szInfoBuf,"%s %d,", szInfoBuf, i+g_struDeviceInfo[iDeviceIndex].iStartChan); // } // else // { // sprintf(szInfoBuf,"%s %s%d,", szInfoBuf,"IPChan", i+g_struDeviceInfo[iDeviceIndex].iStartChan); // } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 1://hard disk full alarm g_StringLanType(szInfoBuf, "硬盘满报警", "HD is full:"); for (i=0; i<MAX_DISKNUM_V30; i++) { if (m_struAlarmInfoV30.byDiskNumber[i] == 1) { sprintf(szInfoBuf, "%s HDD%d ", szInfoBuf, i+1); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 2://video loss alarm g_StringLanType(szInfoBuf, "视频信号丢失报警", "The signal lost"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-32+iAChanNum].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-32+iAChanNum].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i-32+iAChanNum)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i-32+iAChanNum].chChanName); } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 3://motion detection alarm g_StringLanType(szInfoBuf, "移动侦测报警", "motion detection"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 4://hard disk unformatted alarm g_StringLanType(szInfoBuf, "硬盘未格式化报警", "not formatted"); for (i=0; i<MAX_DISKNUM_V30; i++) { if (m_struAlarmInfoV30.byDiskNumber[i] == 1) { sprintf(szInfoBuf, "%s HDD%d ", szInfoBuf, i); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 5://hard disk alarm for (i=0; i<MAX_DISKNUM_V30; i++) { if (m_struAlarmInfoV30.byDiskNumber[i] == 1) { bDisk = TRUE; g_StringLanType(szLan, "读写硬盘出错", "failed to read and write HDD"); sprintf(szInfoBuf, "%sHDD%d ", szLan, i+1); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } if (bDisk == FALSE) { g_StringLanType(szInfoBuf, "未接硬盘出错报警", "No HDD"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } bDisk = FALSE; break; case 6://mask alarm g_StringLanType(szInfoBuf, "发生遮挡报警", "Mask alarm"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 7: //type unmatched g_StringLanType(szInfoBuf, "制式不匹配", "input and output video standard not match"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 8: g_StringLanType(szInfoBuf, "非法访问", "illegal access"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 9: g_StringLanType(szInfoBuf, "视频信号异常", "video exception"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 10: g_StringLanType(szInfoBuf, "录像异常", "record exception"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 11: g_StringLanType(szInfoBuf, "智能场景变化", "Vca scene change"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 12: g_StringLanType(szInfoBuf, "阵列异常", "Array exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 13: g_StringLanType(szInfoBuf, "前端/录像分辨率不匹配", "resolution mismatch"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 14: g_StringLanType(szInfoBuf, "申请解码资源失败", "Alloc decoede resource fail"); for (i=0; i<MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+i-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+i-MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 15: g_StringLanType(szInfoBuf, "智能侦测", "VCA Detction"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 16: g_StringLanType(szInfoBuf, "POE供电异常", "POE Power Exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 17: g_StringLanType(szInfoBuf, "闪光灯异常", "Flash anomaly"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 18: g_StringLanType(szInfoBuf, "磁盘满负荷异常", "Disk full load anomaly"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 19: g_StringLanType(szInfoBuf, "音频信号丢失报警", "The audio signal lost"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 23: g_StringLanType(szLan, "脉冲报警 报警输入", "Pulse alarm input"); sprintf(szInfoBuf, "%s%d", szLan, m_struAlarmInfoV30.dwAlarmInputNumber + 1); g_StringLanType(szLan, ",触发通道录像:", "Invoke record Channel:"); sprintf(szInfoBuf, "%s%s", szInfoBuf, szLan); for (i = 0; i < MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byAlarmRelateChannel[i] == 1) { sprintf(szInfoBuf, "%s %d,", szInfoBuf, i + g_struDeviceInfo[iDeviceIndex].iStartChan); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 24: g_StringLanType(szInfoBuf, "人脸库硬盘异常", "FDLib Disk lost alarm"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 25: g_StringLanType(szInfoBuf, "人脸库变更", "FDLib changed"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 26: g_StringLanType(szInfoBuf, "人脸库图片变更", "FDLib picture changed"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 27: g_StringLanType(szInfoBuf, "POC 异常", "POC Exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 28://camera angle anomaly g_StringLanType(szInfoBuf, "相机视角异常", "camera angle anomaly"); for (i = 0; i < MAX_CHANNUM_V30; i++) { if (m_struAlarmInfoV30.byChannel[i] == 1) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else if (iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum + i - MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum + i - MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum + i - MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum + i - MAX_ANALOG_CHANNUM].chChanName); } } } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 30: g_StringLanType(szInfoBuf, "SD卡 拔出", "Lack of SD card"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; default: g_StringLanType(szLan, "未知报警类型:", "Unknown Alarm Type:"); sprintf(szInfoBuf, "%s 0x%x-htonl%d", szLan, m_struAlarmInfoV30.dwAlarmType, ntohl(m_struAlarmInfoV30.dwAlarmType)); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; } } /********************************************************* Function: ProcAlarmV40 Desc: process alarm information for version 40 Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::ProcAlarmV40(WPARAM wParam, LPARAM lParam) { char szInfoBuf[10240] = {0}; BOOL bDisk = FALSE; int i = 0; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; if (MAX_DEVICES < iDeviceIndex || 0 > iDeviceIndex) { return; } char szLan[128] ={0}; NET_DVR_ALARMINFO_V40 m_struAlarmInfoV40 = {0}; memcpy(&m_struAlarmInfoV40, pAlarmInfo, sizeof(NET_DVR_ALARMINFO_V40)); DWORD *pContent = m_struAlarmInfoV40.pAlarmData; if (!(g_struDeviceInfo[iDeviceIndex].bAlarm)) { g_struDeviceInfo[iDeviceIndex].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(g_pMainDlg->GetDeviceItem(iDeviceIndex)), LPARAM(iDeviceIndex)); } //模拟通道数 int iAChanNum = g_struDeviceInfo[iDeviceIndex].iAnalogChanNum; //数字通道数 int iDChanNum = g_struDeviceInfo[iDeviceIndex].iIPChanNum; int dwOffSetLen = 0; DWORD dwTemp = 0; BOOL bAlarmOut = FALSE; //打印时间 char szTimeLog[256] = { 0 }; sprintf(szTimeLog, "%04d-%02d-%02d %02d:%02d:%02d flag(%d)%02d%02d", m_struAlarmInfoV40.struAlarmFixedHeader.struAlarmTime.wYear, m_struAlarmInfoV40.struAlarmFixedHeader.struAlarmTime.byMonth, m_struAlarmInfoV40.struAlarmFixedHeader.struAlarmTime.byDay, m_struAlarmInfoV40.struAlarmFixedHeader.struAlarmTime.byHour, m_struAlarmInfoV40.struAlarmFixedHeader.struAlarmTime.byMinute, m_struAlarmInfoV40.struAlarmFixedHeader.struAlarmTime.bySecond, m_struAlarmInfoV40.struAlarmFixedHeader.byTimeDiffFlag, m_struAlarmInfoV40.struAlarmFixedHeader.cTimeDifferenceH, m_struAlarmInfoV40.struAlarmFixedHeader.cTimeDifferenceM); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szTimeLog); float fTemp = 0.0; switch (m_struAlarmInfoV40.struAlarmFixedHeader.dwAlarmType) { case 0://signal alarm g_StringLanType(szLan, "信号量报警 报警输入号", "Signal alarm input No."); sprintf(szInfoBuf,"%s%d", szLan, m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwAlarmInputNo +1); g_StringLanType(szLan, ",关联报警输出号:", "Invoke Alarm Out:"); sprintf(szInfoBuf,"%s%s", szInfoBuf, szLan); for (i=0; i<m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerAlarmOutNum; i++) { if (*(m_struAlarmInfoV40.pAlarmData + i) != 0xffffffff) { sprintf(szInfoBuf,"%s %d,", szInfoBuf, *(m_struAlarmInfoV40.pAlarmData + i)); } } g_StringLanType(szLan, ",触发通道录像:", "Invoke record Channel:"); sprintf(szInfoBuf,"%s%s", szInfoBuf, szLan); dwOffSetLen += m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerAlarmOutNum; for (i=0; i<m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerRecordChanNum; i++) { if (*(m_struAlarmInfoV40.pAlarmData + dwOffSetLen) != 0xffffffff) { sprintf(szInfoBuf,"%s %d,", szInfoBuf, *(m_struAlarmInfoV40.pAlarmData + dwOffSetLen)); dwOffSetLen++; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 1://hard disk full alarm g_StringLanType(szInfoBuf, "硬盘满报警", "HD is full:"); for (i=0; i<m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struAlarmHardDisk.dwAlarmHardDiskNum; i++) { // if (m_struAlarmInfoV40.dwAlarmData[dwOffSetLen/4] != 0xffffffff ) // { // sprintf(szInfoBuf, "%s HDD%d ", szInfoBuf, m_struAlarmInfoV40.dwAlarmData[dwOffSetLen/4]); // dwOffSetLen ++; // } if (*(m_struAlarmInfoV40.pAlarmData + dwOffSetLen) != 0xffffffff ) { sprintf(szInfoBuf, "%s HDD%d ", szInfoBuf, *(m_struAlarmInfoV40.pAlarmData + dwOffSetLen)); dwOffSetLen ++; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 4://hard disk unformatted alarm g_StringLanType(szInfoBuf, "硬盘未格式化报警", "not formatted"); for (i=0; i<m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struAlarmHardDisk.dwAlarmHardDiskNum; i++) { dwTemp = *(m_struAlarmInfoV40.pAlarmData + dwOffSetLen); if (dwTemp > 0) { sprintf(szInfoBuf, "%s HDD%d ", szInfoBuf,dwTemp); dwOffSetLen++; } else { break; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 5://hard disk alarm for (i=0; i<m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struAlarmHardDisk.dwAlarmHardDiskNum; i++) { dwTemp = *(m_struAlarmInfoV40.pAlarmData + dwOffSetLen); if (dwTemp > 0) { bDisk = TRUE; g_StringLanType(szLan, "读写硬盘出错", "failed to read and write HDD"); sprintf(szInfoBuf, "%sHDD%d ", szLan, dwTemp); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); dwOffSetLen++; } else { break; } } if (bDisk == FALSE) { g_StringLanType(szInfoBuf, "未接硬盘导致出错报警", "No HDD"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } bDisk = FALSE; break; case 2://video loss alarm bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "视频信号丢失报警", "The signal lost"); break; case 3://motion detection alarm bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "移动侦测报警", "motion detection"); break; case 6://mask alarm bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "发生遮挡报警", "Mask alarm"); break; case 9: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "视频信号异常", "video exception"); break; case 10: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "录像异常", "record exception"); break; case 11: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "智能场景变化", "Vca scene change"); break; case 13: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "前端/录像分辨率不匹配", "resolution mismatch"); break; case 7: //type unmatched g_StringLanType(szInfoBuf, "制式不匹配", "input and output video standard not match"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 8: g_StringLanType(szInfoBuf, "非法访问", "illegal access"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 12: g_StringLanType(szInfoBuf, "阵列异常", "Array exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); break; case 14: g_StringLanType(szInfoBuf, "申请解码资源失败", "Alloc decoede resource fail"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 15: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "智能侦测报警", "VCA Detection"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 16: g_StringLanType(szInfoBuf, "热备异常报警", "host record alarm"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 17: g_StringLanType(szInfoBuf, "录播主机报警", "hot spare alarm"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 18: g_StringLanType(szInfoBuf, "语音对讲请求报警", "Talkback requesting alarm"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 19: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "音频信号丢失报警", "The audio signal lost"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 22: g_StringLanType(szInfoBuf, "车辆检测算法异常报警", "Vehicle Detection Algorithm alarm"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 23: g_StringLanType(szLan, "脉冲报警 报警输入号", "Pulse alarm input No."); sprintf(szInfoBuf, "%s%d", szLan, m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwAlarmInputNo + 1); g_StringLanType(szLan, ",关联报警输出号:", "Invoke Alarm Out:"); sprintf(szInfoBuf, "%s%s", szInfoBuf, szLan); for (i = 0; i < m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerAlarmOutNum; i++) { if (*(m_struAlarmInfoV40.pAlarmData + i) != 0xffffffff) { sprintf(szInfoBuf, "%s %d,", szInfoBuf, *(m_struAlarmInfoV40.pAlarmData + i)); } } g_StringLanType(szLan, ",触发通道录像:", "Invoke record Channel:"); sprintf(szInfoBuf, "%s%s", szInfoBuf, szLan); dwOffSetLen += m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerAlarmOutNum; for (i = 0; i < m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struIOAlarm.dwTrigerRecordChanNum; i++) { if (*(m_struAlarmInfoV40.pAlarmData + dwOffSetLen) != 0xffffffff) { sprintf(szInfoBuf, "%s %d,", szInfoBuf, *(m_struAlarmInfoV40.pAlarmData + dwOffSetLen)); dwOffSetLen++; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 24: g_StringLanType(szInfoBuf, "人脸库硬盘异常", "FDLib Disk lost alarm"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 25: g_StringLanType(szInfoBuf, "人脸库变更", "FDLib changed"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 26: g_StringLanType(szInfoBuf, "人脸库图片变更", "FDLib picture changed"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 27: g_StringLanType(szInfoBuf, "POC 异常", "POC Exception"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 28: bAlarmOut = TRUE; g_StringLanType(szInfoBuf, "相机视角异常", "camera angle anomaly"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 30: g_StringLanType(szInfoBuf, "缺少 SD卡", "Lack of SD card"); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case 31: fTemp= m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struVoltageInstable.fVoltageValue; g_StringLanType(szInfoBuf, "电源电压报警", "Lack of SD card"); g_StringLanType(szLan, "电压报警类型", "Voltage Alarm Type"); sprintf(szInfoBuf, "%s:%s[%d]", szInfoBuf, szLan, m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struVoltageInstable.byVoltageAlarmType); g_StringLanType(szLan, "电源电压值", "Voltage Value of Power Supply"); sprintf(szInfoBuf, "%s %s[%0.1f]", szInfoBuf, szLan, m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struVoltageInstable.fVoltageValue); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; default: g_StringLanType(szLan, "未知报警类型:", "Unknown Alarm Type:"); sprintf(szInfoBuf, "%s 0x%x-htonl%d", szLan, m_struAlarmInfoV40.struAlarmFixedHeader.dwAlarmType, ntohl(m_struAlarmInfoV40.struAlarmFixedHeader.dwAlarmType)); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; } if (bAlarmOut && pContent != NULL) { for (i=0; i<m_struAlarmInfoV40.struAlarmFixedHeader.uStruAlarm.struAlarmChannel.dwAlarmChanNum; i++) { dwTemp = *(m_struAlarmInfoV40.pAlarmData + dwOffSetLen); dwTemp = *(pContent + i); sprintf(szInfoBuf, "%s ,AlarmChan[%d]", szInfoBuf, dwTemp); if (dwTemp > 0 && dwTemp < MAX_CHANNUM_V40) { //纯模拟通道或纯数字通道 if (0 == iDChanNum || 0 == iAChanNum) { if (!(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwTemp- 1].bAlarm)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwTemp- 1].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(dwTemp- 1)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwTemp- 1].chChanName); } else if(iAChanNum > 0 && iDChanNum > 0) //混合通道 { //模拟通道 if (i < MAX_ANALOG_CHANNUM) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwTemp- 1].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwTemp- 1].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(dwTemp- 1)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwTemp- 1].chChanName); } else //数字通道 { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+dwTemp- 1-MAX_ANALOG_CHANNUM].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+dwTemp- 1-MAX_ANALOG_CHANNUM].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(iAChanNum+dwTemp- 1-MAX_ANALOG_CHANNUM)); } sprintf(szInfoBuf, "%s %s", szInfoBuf, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iAChanNum+dwTemp- 1-MAX_ANALOG_CHANNUM].chChanName); } } dwOffSetLen++; } else { break; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } if (m_struAlarmInfoV40.pAlarmData != NULL) { delete[](m_struAlarmInfoV40.pAlarmData); m_struAlarmInfoV40.pAlarmData = NULL; } } /********************************************************* Function: Desc: Input: void Output: void Return: 0, same, else-difference **********************************************************/ int CmpIPCfgAndIPCfgV31(LPNET_DVR_IPDEVINFO_V31 lpDevInfoV31, LPNET_DVR_IPDEVINFO lpDevInfo) { if (lpDevInfo->dwEnable != lpDevInfoV31->byEnable) { return -1; } if (lpDevInfo->wDVRPort != lpDevInfoV31->wDVRPort) { return -1; } if (memcmp((char *)(lpDevInfoV31->sPassword), (char *)(lpDevInfoV31->sPassword), PASSWD_LEN) != 0) { return -1; } if (memcmp((char *)(lpDevInfo->sUserName), (char *)(lpDevInfoV31->sUserName), MAX_NAMELEN) != 0) { return -1; } if (memcmp((char *)&(lpDevInfo->struIP), (char *)&(lpDevInfoV31->struIP), sizeof(NET_DVR_IPDEVINFO)) != 0) { return -1; } memset((char *)(lpDevInfoV31->byDomain), 0, MAX_DOMAIN_NAME);//the old ipc parameter change need to clear domain information return 0; } /********************************************************* Function: ProcIPCfgAlarm Desc: process alarm information when Input: void Output: void Return: void **********************************************************/ void CClientDemoDlg::ProcIPCfgAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iRet = 0; int i = 0; NET_DVR_IPALARMINFO struIPAlarmInfo; memcpy(&struIPAlarmInfo, pAlarmInfo, sizeof(NET_DVR_IPALARMINFO)); for (i = 0; i < ARRAY_SIZE(struIPAlarmInfo.struIPChanInfo); i++) { memcpy(&g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struStreamMode[i].uGetStream.struChanInfo, \ &struIPAlarmInfo.struIPChanInfo[i], sizeof(NET_DVR_IPCHANINFO)); } iRet |= memcmp(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].byAnalogChanEnable, struIPAlarmInfo.byAnalogChanEnable, sizeof(struIPAlarmInfo.byAnalogChanEnable)); for (i=0; i < MAX_IP_DEVICE; i++) { iRet |= CmpIPCfgAndIPCfgV31(&(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struIPDevInfo[i]), &(struIPAlarmInfo.struIPDevInfo[i])); } if (iRet != 0) { for (i = 0; i < ARRAY_SIZE(struIPAlarmInfo.struIPChanInfo); i++) { memcpy(&g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struStreamMode[i].uGetStream.struChanInfo, \ &struIPAlarmInfo.struIPChanInfo[i], sizeof(NET_DVR_IPCHANINFO)); } memcpy(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].byAnalogChanEnable, struIPAlarmInfo.byAnalogChanEnable, sizeof(struIPAlarmInfo.byAnalogChanEnable)); memcpy(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struIPDevInfo, struIPAlarmInfo.struIPDevInfo, sizeof(struIPAlarmInfo.struIPDevInfo)); // memcpy(g_struDeviceInfo[iDeviceIndex].struAlarmInCfg.struIPAlarmInInfo, struIPAlarmInfo.struIPAlarmInInfo, MAX_IP_ALARMIN*sizeof(NET_DVR_IPALARMININFO)); // memcpy(g_struDeviceInfo[iDeviceIndex].struAlarmOutCfg.struIPAlarmOutInfo, struIPAlarmInfo.struIPAlarmOutInfo, MAX_IP_ALARMOUT*sizeof(NET_DVR_IPALARMOUTINFO)); g_pMainDlg->RefreshIPDevLocalCfg(iDeviceIndex); g_pMainDlg->RedrawDeviceNode(iDeviceIndex); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "ip parameter is channged!"); } /********************************************************* Function: ProcIPCfgAlarmV31 Desc: process alarm information when Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::ProcIPCfgAlarmV31(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iRet = 0; NET_DVR_IPALARMINFO_V31 struIPAlarmInfo; memcpy(&struIPAlarmInfo, pAlarmInfo, sizeof(NET_DVR_IPALARMINFO_V31)); int i = 0; for (i = 0; i < ARRAY_SIZE(struIPAlarmInfo.struIPChanInfo); i++) { memcpy(&g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struStreamMode[i].uGetStream.struChanInfo, \ &struIPAlarmInfo.struIPChanInfo[i], sizeof(NET_DVR_IPCHANINFO)); } iRet |= memcmp(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].byAnalogChanEnable, struIPAlarmInfo.byAnalogChanEnable, sizeof(struIPAlarmInfo.byAnalogChanEnable)); iRet |= memcmp(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struIPDevInfo, struIPAlarmInfo.struIPDevInfo, sizeof(struIPAlarmInfo.struIPDevInfo));//9000_1.1 need change if (iRet != 0) { for (i = 0; i < ARRAY_SIZE(struIPAlarmInfo.struIPChanInfo); i++) { memcpy(&g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struStreamMode[i].uGetStream.struChanInfo, \ &struIPAlarmInfo.struIPChanInfo[i], sizeof(NET_DVR_IPCHANINFO)); } memcpy(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].byAnalogChanEnable, struIPAlarmInfo.byAnalogChanEnable, sizeof(struIPAlarmInfo.struIPChanInfo)); memcpy(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].struIPDevInfo, struIPAlarmInfo.struIPDevInfo, sizeof(struIPAlarmInfo.struIPDevInfo)); //memcpy(g_struDeviceInfo[iDeviceIndex].struAlarmInCfg.struIPAlarmInInfo, struIPAlarmInfo.struIPAlarmInInfo, MAX_IP_ALARMIN*sizeof(NET_DVR_IPALARMININFO)); //memcpy(g_struDeviceInfo[iDeviceIndex].struAlarmOutCfg.struIPAlarmOutInfo, struIPAlarmInfo.struIPAlarmOutInfo, MAX_IP_ALARMOUT*sizeof(NET_DVR_IPALARMOUTINFO)); g_pMainDlg->RefreshIPDevLocalCfg(iDeviceIndex); g_pMainDlg->RedrawDeviceNode(iDeviceIndex); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "ip parameter v31 is channged!"); } void CClientDemoDlg::ProcPdcAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; NET_DVR_PDC_ALRAM_INFO struPDCAlarmInfo; memset(&struPDCAlarmInfo, 0, sizeof(struPDCAlarmInfo)); CTime time = CTime::GetCurrentTime(); memcpy(&struPDCAlarmInfo, pAlarmInfo, sizeof(struPDCAlarmInfo)); i = struPDCAlarmInfo.byChannel-g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); if (struPDCAlarmInfo.byMode == 0 ) { // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwAbsTime); struAbsTime.dwDay = GET_DAY(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwAbsTime); NET_DVR_TIME struRelativeTime = {0}; struRelativeTime.dwYear = GET_YEAR(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struPDCAlarmInfo.uStatModeParam.struStatFrame.dwRelativeTime); sprintf(szInfoBuf, "Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d flag[%d] %2.2d%2.2d]] Rel[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] \ DevIP:[%s]Port[%d]Channel[%d] IvmsChannel[%d]IvmsChannelEx[%d] \ single frame:Channel[%d]LeaveNum[%d]EnterNum[%d]Passing[%d]Smart[%d] \ BrokenNetHttp[%d] ChildLeaveNum[%d] ChildEnterNum[%d] DuplicatePeople[%d]", struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struPDCAlarmInfo.uStatModeParam.struStatFrame.byTimeDiffFlag, struPDCAlarmInfo.uStatModeParam.struStatFrame.cTimeDifferenceH, struPDCAlarmInfo.uStatModeParam.struStatFrame.cTimeDifferenceM, struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour, struRelativeTime.dwMinute, struRelativeTime.dwSecond, struPDCAlarmInfo.struDevInfo.struDevIP.sIpV4, struPDCAlarmInfo.struDevInfo.wPort, struPDCAlarmInfo.struDevInfo.byChannel, struPDCAlarmInfo.struDevInfo.byIvmsChannel, struPDCAlarmInfo.wDevInfoIvmsChannelEx, struPDCAlarmInfo.byChannel, struPDCAlarmInfo.dwLeaveNum, struPDCAlarmInfo.dwEnterNum, struPDCAlarmInfo.dwPassingNum, struPDCAlarmInfo.bySmart, struPDCAlarmInfo.byBrokenNetHttp, struPDCAlarmInfo.dwChildLeaveNum, struPDCAlarmInfo.dwChildEnterNum, struPDCAlarmInfo.dwDuplicatePeople); } else if (struPDCAlarmInfo.byMode == 1 || struPDCAlarmInfo.byMode == 2) { sprintf(szInfoBuf, "DevIP:[%s]Port[%d]Channel[%d]:time range:Start Y[%d]M[%d]D[%d]H[%d]M[%d]S[%d] \ flag[%d] [%2.2d%2.2d] End Y[%d]M[%d]D[%d]H[%d]M[%d]S[%d] [%2.2d%2.2d]\ IvmsChannel[%d]IvmsChannelEx[%d]Channel[%d]LeaveNum[%d]EnterNum[%d]\ Passing[%d]Smart[%d]BrokenNetHttp[%d]Mode[%d] ChildLeaveNum[%d] \ ChildEnterNum[%d] DuplicatePeople[%d]", struPDCAlarmInfo.struDevInfo.struDevIP.sIpV4, struPDCAlarmInfo.struDevInfo.wPort, struPDCAlarmInfo.struDevInfo.byChannel, struPDCAlarmInfo.uStatModeParam.struStatTime.tmStart.dwYear,struPDCAlarmInfo.uStatModeParam.struStatTime.tmStart.dwMonth,struPDCAlarmInfo.uStatModeParam.struStatTime.tmStart.dwDay, struPDCAlarmInfo.uStatModeParam.struStatTime.tmStart.dwHour,struPDCAlarmInfo.uStatModeParam.struStatTime.tmStart.dwMinute,struPDCAlarmInfo.uStatModeParam.struStatTime.tmStart.dwSecond, struPDCAlarmInfo.uStatModeParam.struStatTime.byTimeDifferenceFlag, struPDCAlarmInfo.uStatModeParam.struStatTime.cStartTimeDifferenceH, struPDCAlarmInfo.uStatModeParam.struStatTime.cStartTimeDifferenceM, struPDCAlarmInfo.uStatModeParam.struStatTime.tmEnd.dwYear,struPDCAlarmInfo.uStatModeParam.struStatTime.tmEnd.dwMonth,struPDCAlarmInfo.uStatModeParam.struStatTime.tmEnd.dwDay, struPDCAlarmInfo.uStatModeParam.struStatTime.tmEnd.dwHour,struPDCAlarmInfo.uStatModeParam.struStatTime.tmEnd.dwMinute,struPDCAlarmInfo.uStatModeParam.struStatTime.tmEnd.dwSecond, struPDCAlarmInfo.uStatModeParam.struStatTime.cStopTimeDifferenceH, struPDCAlarmInfo.uStatModeParam.struStatTime.cStopTimeDifferenceM, struPDCAlarmInfo.struDevInfo.byIvmsChannel, struPDCAlarmInfo.wDevInfoIvmsChannelEx, struPDCAlarmInfo.byChannel, struPDCAlarmInfo.dwLeaveNum, struPDCAlarmInfo.dwEnterNum, struPDCAlarmInfo.dwPassingNum, struPDCAlarmInfo.bySmart, struPDCAlarmInfo.byBrokenNetHttp, struPDCAlarmInfo.byMode, struPDCAlarmInfo.dwChildLeaveNum, struPDCAlarmInfo.dwChildEnterNum, struPDCAlarmInfo.dwDuplicatePeople); } g_pMainDlg->AddLog(iDeviceIndex,ALARM_INFO_T,szInfoBuf); if (struPDCAlarmInfo.dwXmlLen > 0) { char sXMLFileName[256] = { 0 }; int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; sprintf(sXMLFileName, "%s\\%s[%d]_channel[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, struPDCAlarmInfo.byChannel); if (GetFileAttributes(sXMLFileName) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(sXMLFileName, NULL); } SYSTEMTIME tNow = { 0 }; GetLocalTime(&tNow); sprintf(sXMLFileName, "%s\\PDC_XML[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d].xml", sXMLFileName, tNow.wYear, tNow.wMonth, tNow.wDay, tNow.wHour, tNow.wMinute, tNow.wSecond, tNow.wMilliseconds); HANDLE hXMLFile = CreateFile(sXMLFileName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hXMLFile == INVALID_HANDLE_VALUE) { return; } DWORD dwReturn = 0; WriteFile(hXMLFile, struPDCAlarmInfo.pXmlBuf, struPDCAlarmInfo.dwXmlLen, &dwReturn, NULL); CloseHandle(hXMLFile); hXMLFile = NULL; sprintf(szInfoBuf, "PDC XML Block Path:%s", sXMLFileName); szInfoBuf[sizeof(szInfoBuf) - 1] = 0; //防止溢出 g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } if (struPDCAlarmInfo.pXmlBuf != NULL) { delete[](struPDCAlarmInfo.pXmlBuf); struPDCAlarmInfo.pXmlBuf = NULL; } } /********************************************************* Function: ProcRuleAlarm Desc: process behavior alarm information Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::ProcRuleAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; if (iDeviceIndex > 512) { return; } int iPort = pAlarmDev->wLinkPort; NET_VCA_RULE_ALARM struVcaRuleAlarm; CTime time = CTime::GetCurrentTime(); memcpy(&struVcaRuleAlarm, pAlarmInfo, sizeof(NET_VCA_RULE_ALARM)); i = struVcaRuleAlarm.struDevInfo.byIvmsChannel-g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; if (g_pMainDlg != NULL) { ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } char szAlarmBufEx[64] = { 0 }; switch(struVcaRuleAlarm.struRuleInfo.wEventTypeEx) { case ENUM_VCA_EVENT_TRAVERSE_PLANE: sprintf(szAlarmBufEx, "traverse plane detection byDetectionTarget[%d]", struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.byDetectionTarget); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szAlarmBufEx); break; case ENUM_VCA_EVENT_INTRUSION: sprintf(szAlarmBufEx, "field detection byDetectionTarget[%d]", struVcaRuleAlarm.struRuleInfo.uEventParam.struIntrusion.byDetectionTarget); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szAlarmBufEx); break; case ENUM_VCA_EVENT_ENTER_AREA: sprintf(szAlarmBufEx, "enter area detection byDetectionTarget[%d]", struVcaRuleAlarm.struRuleInfo.uEventParam.struArea.byDetectionTarget); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szAlarmBufEx); break; case ENUM_VCA_EVENT_EXIT_AREA: sprintf(szAlarmBufEx, "exit area detection byDetectionTarget[%d]", struVcaRuleAlarm.struRuleInfo.uEventParam.struArea.byDetectionTarget); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szAlarmBufEx); break; default: break; } NET_DVR_TIME struAbsTime = { 0 }; struAbsTime.dwYear = GET_YEAR(struVcaRuleAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struVcaRuleAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struVcaRuleAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struVcaRuleAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struVcaRuleAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struVcaRuleAlarm.dwAbsTime); NET_DVR_TIME struRelativeTime = { 0 }; struRelativeTime.dwYear = GET_YEAR(struVcaRuleAlarm.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struVcaRuleAlarm.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struVcaRuleAlarm.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struVcaRuleAlarm.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struVcaRuleAlarm.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struVcaRuleAlarm.dwRelativeTime); char szTime[128] = {0}; sprintf(szTime, "VCA Alarm time flag[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] relative[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]", struVcaRuleAlarm.byRelativeTimeFlag, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour, struRelativeTime.dwMinute, struRelativeTime.dwSecond); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szTime); char csRuleName[33] = {0}; memcpy(csRuleName, struVcaRuleAlarm.struRuleInfo.byRuleName, 32); //行为分析结果上报结构 sprintf(szInfoBuf, "Smart:[%d] DevIP:[%s]TargetID[%d]RuleID[%d]RuleName[%s]AbsTime[%d]piclen[%d]PicType[%d]RelAlarmPicNum[%d]AlarmID[%d]IvmsChannel[%d]IvmsChannelEx[%d]EventTypeEx[%d]byPicTransType[%d]RECT[X:%f][Y:%f][H:%f][W:%f]bySceneID[%d]", struVcaRuleAlarm.bySmart, struVcaRuleAlarm.struDevInfo.struDevIP.sIpV4,struVcaRuleAlarm.struTargetInfo.dwID, struVcaRuleAlarm.struRuleInfo.byRuleID, csRuleName, struVcaRuleAlarm.dwAbsTime, struVcaRuleAlarm.dwPicDataLen, struVcaRuleAlarm.byPicType,struVcaRuleAlarm.byRelAlarmPicNum,struVcaRuleAlarm.dwAlarmID, struVcaRuleAlarm.struDevInfo.byIvmsChannel, struVcaRuleAlarm.wDevInfoIvmsChannelEx,\ struVcaRuleAlarm.struRuleInfo.wEventTypeEx, struVcaRuleAlarm.byPicTransType, struVcaRuleAlarm.struTargetInfo.struRect.fX, struVcaRuleAlarm.struTargetInfo.struRect.fY, struVcaRuleAlarm.struTargetInfo.struRect.fHeight, struVcaRuleAlarm.struTargetInfo.struRect.fWidth, struVcaRuleAlarm.struRuleInfo.bySceneID); g_pMainDlg->AddLog(iDeviceIndex,ALARM_INFO_T,szInfoBuf); NET_VCA_DEV_INFO tmpDevInfo; memcpy(&tmpDevInfo, &struVcaRuleAlarm.struDevInfo, sizeof(NET_VCA_DEV_INFO)); sprintf(szInfoBuf,"\nNET_VCA_DEV_INFO:DevIP[%s]Port[%d]Channel[%d]\n", tmpDevInfo.struDevIP.sIpV4, tmpDevInfo.wPort, tmpDevInfo.byChannel); OutputDebugString(szInfoBuf); NET_VCA_TARGET_INFO tmpTargetInfo; memcpy(&tmpTargetInfo, &struVcaRuleAlarm.struTargetInfo, sizeof(NET_VCA_TARGET_INFO)); sprintf(szInfoBuf, "NET_VCA_TARGET_INFO:ID[%d]RECT[%f][%f][%f][%f]\n", tmpTargetInfo.dwID, tmpTargetInfo.struRect.fX, tmpTargetInfo.struRect.fY, tmpTargetInfo.struRect.fWidth, tmpTargetInfo.struRect.fHeight); OutputDebugString(szInfoBuf); switch (struVcaRuleAlarm.struRuleInfo.wEventTypeEx) { case ENUM_VCA_EVENT_TRAVERSE_PLANE:// { sprintf(szInfoBuf,"ENUM_VCA_EVENT_TRAVERSE_PLANE:struRul:start[%f][%f]end[%f][%f]\ndwCrossDirection:[%d]bySensitivity[%d]\n" ,struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.struPlaneBottom.struStart.fX, struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.struPlaneBottom.struStart.fY, struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.struPlaneBottom.struEnd.fX, struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.struPlaneBottom.struEnd.fY, struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.dwCrossDirection/*, struVcaRuleAlarm.struRuleInfo.uEventParam.struTraversePlane.bySensitivity*/); OutputDebugString(szInfoBuf); } break; case ENUM_VCA_EVENT_ENTER_AREA: { // sprintf(szInfoBuf,"VCA_ENTER_AREA:Senetity[%d]\nNET_VCA_POLYGON",struVcaRuleAlarm.struRuleInfo.uEventParam.struArea.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struArea.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Enter area"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_EXIT_AREA: { // sprintf(szInfoBuf,"VCA_EXIT_AREA:Senetity[%d]\nNET_VCA_POLYGON",struVcaRuleAlarm.struRuleInfo.uEventParam.struArea.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struArea.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Exit Area"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_INTRUSION: { // sprintf(szInfoBuf,"VCA_INTRUSION:Sensitivity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struIntrusion.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struIntrusion.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Event Intrusion"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_LOITER: { // sprintf(szInfoBuf,"VCA_LOITER:Senetity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struLoiter.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struLoiter.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Loiter"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_LEFT_TAKE: { // sprintf(szInfoBuf,"VCA_LEFT_TAKE:Senetity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Left Take"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_PARKING: { // sprintf(szInfoBuf,"VCA_PARKING:Senetity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struParking.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struParking.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Parking"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_RUN: { // sprintf(szInfoBuf,"VCA_RUN:Senetity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struRun.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struRun.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Run"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_HIGH_DENSITY: { // sprintf(szInfoBuf,"VCA_HIGH_DENSITY:Senetity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensity.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensity.struRegion,sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "High Density"); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_VIOLENT_MOTION: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensity.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Violent Motion"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "[%f][%f]", tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s [%d] bySensitivity[%d] byMode[%d] ", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struViolentMotion.wDuration, struVcaRuleAlarm.struRuleInfo.uEventParam.struViolentMotion.bySensitivity, struVcaRuleAlarm.struRuleInfo.uEventParam.struViolentMotion.byMode); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_GET_UP: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struGetUp.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Get Up:"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "[%f][%f]", tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s [%d] byMode[%d] bySensitivity[%d] ", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struGetUp.wDuration, struVcaRuleAlarm.struRuleInfo.uEventParam.struGetUp.byMode, struVcaRuleAlarm.struRuleInfo.uEventParam.struGetUp.bySensitivity); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_LEAVE_POSITION: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensity.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Leave Position:"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "[%f][%f]", tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s [%d] wStaticDelay[%d] byMode[%d] byPersonType[%d] byOnPosition[%d] ", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struLeavePos.wLeaveDelay, struVcaRuleAlarm.struRuleInfo.uEventParam.struLeavePos.wStaticDelay, struVcaRuleAlarm.struRuleInfo.uEventParam.struLeavePos.byMode, struVcaRuleAlarm.struRuleInfo.uEventParam.struLeavePos.byPersonType, struVcaRuleAlarm.struRuleInfo.uEventParam.struLeavePos.byOnPosition); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_FALL_DOWN: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensity.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Fall Down: "); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "[%f][%f]", tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s [%d] bySensitivity[%d] byHeightThreshold[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struFallDown.wDuration, struVcaRuleAlarm.struRuleInfo.uEventParam.struFallDown.bySensitivity, struVcaRuleAlarm.struRuleInfo.uEventParam.struFallDown.byHeightThreshold); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_TOILET_TARRY: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struToiletTarry.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Toilet Tarry: "); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "[%f][%f]", tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s wDelay[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struToiletTarry.wDelay); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_LECTURE: case VCA_LECTURE: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struLecture.struRegion,sizeof(NET_VCA_POLYGON)); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { if (struVcaRuleAlarm.struRuleInfo.uEventParam.struLecture.byAlarmState == 1) { sprintf(szInfoBuf,"Lecture Event Start[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); } else if (struVcaRuleAlarm.struRuleInfo.uEventParam.struLecture.byAlarmState == 2) { sprintf(szInfoBuf,"Lecture Event End[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); } sprintf(szInfoBuf, "%s ZoomOver[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struLecture.byZoomOver); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex,ALARM_INFO_T,szInfoBuf); } } break; case ENUM_VCA_EVENT_ANSWER: case VCA_ANSWER: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struAnswer.struRegion,sizeof(NET_VCA_POLYGON)); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { if (struVcaRuleAlarm.struRuleInfo.uEventParam.struAnswer.byAlarmState == 1) { sprintf(szInfoBuf,"Answering Questions Event [%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); } else if(struVcaRuleAlarm.struRuleInfo.uEventParam.struAnswer.byAlarmState == 2) { sprintf(szInfoBuf,"Answering Questions Event [%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); } sprintf(szInfoBuf, "%s ZoomOver[%d] AnswerStudent[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struAnswer.byZoomOver, struVcaRuleAlarm.struRuleInfo.uEventParam.struAnswer.byAnswerStudent); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex,ALARM_INFO_T,szInfoBuf); } } break; case ENUM_VCA_EVENT_COMBINED_RULE: { sprintf(szInfoBuf, "Combined Rule, RuleSequence[%d] MinInterval[%d] MaxInterval[%d] RuleID1[%d] RuleID2[%d]", struVcaRuleAlarm.struRuleInfo.uEventParam.struCombinedRule.byRuleSequence,\ struVcaRuleAlarm.struRuleInfo.uEventParam.struCombinedRule.dwMinInterval, struVcaRuleAlarm.struRuleInfo.uEventParam.struCombinedRule.dwMaxInterval, \ struVcaRuleAlarm.struRuleInfo.uEventParam.struCombinedRule.struRule1Raram.byRuleID, struVcaRuleAlarm.struRuleInfo.uEventParam.struCombinedRule.struRule2Raram.byRuleID); OutputDebugString(szInfoBuf); g_pMainDlg->AddLog(iDeviceIndex,ALARM_INFO_T,szInfoBuf); } break; case ENUM_VCA_EVENT_HIGH_DENSITY_STATUS: { // sprintf(szInfoBuf,"VCA_HIGH_DENSITY:Senetity[%d]\nNET_VCA_POLYGON", // struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensity.bySensitivity); // OutputDebugString(szInfoBuf); NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon,&struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensityStatus.struRegion,sizeof(NET_VCA_POLYGON)); for (i = 0; i < (int)tempPolygon.dwPointNum ;i ++) { sprintf(szInfoBuf,"[%f][%f]",tempPolygon.struPos[i].fX,tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } } break; case ENUM_VCA_EVENT_PEOPLENUM_CHANGE: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensityStatus.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "People number change"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); } sprintf(szInfoBuf, "%s byPeopleNumThreshold[%d] byDetectMode[%d] byNoneStateEffective[%d] wDuration[%d] byPeopleNum[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struPeopleNumChange.byPeopleNumThreshold, \ struVcaRuleAlarm.struRuleInfo.uEventParam.struPeopleNumChange.byDetectMode, struVcaRuleAlarm.struRuleInfo.uEventParam.struPeopleNumChange.byNoneStateEffective, \ struVcaRuleAlarm.struRuleInfo.uEventParam.struPeopleNumChange.wDuration, struVcaRuleAlarm.struRuleInfo.uEventParam.struPeopleNumChange.byPeopleNum); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_RUNNING: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensityStatus.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Running:"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s dwSpeed[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struRunning.dwSpeed); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_RETENTION: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struHighDensityStatus.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Retention:"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s wDuration[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struRetention.wDuration); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_SITUATION_ANALYSIS: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struSituationAnalysis.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Situation analysis:"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s wPeopleNum[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struSituationAnalysis.wPeopleNum); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_PLAY_CELLPHONE: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struPlayCellphone.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "Play cellphone:"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s wDuration[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struPlayCellphone.wDuration); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_DURATION: { sprintf(szInfoBuf, "duration:"); sprintf(szInfoBuf, "%s wRelationEventType[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struDruation.wRelationEventType); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_LEFT: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "unattendedBaggage"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s bySensitivity[%d] wDuration[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.bySensitivity, struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.wDuration); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; case ENUM_VCA_EVENT_TAKE: { NET_VCA_POLYGON tempPolygon; memcpy(&tempPolygon, &struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.struRegion, sizeof(NET_VCA_POLYGON)); sprintf(szInfoBuf, "attendedBaggage"); for (i = 0; i < (int)tempPolygon.dwPointNum; i++) { sprintf(szInfoBuf, "%s Point[%d] [%f][%f]", szInfoBuf, i, tempPolygon.struPos[i].fX, tempPolygon.struPos[i].fY); OutputDebugString(szInfoBuf); } sprintf(szInfoBuf, "%s bySensitivity[%d] wDuration[%d]", szInfoBuf, struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.bySensitivity, struVcaRuleAlarm.struRuleInfo.uEventParam.struTakeTeft.wDuration); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } break; default: break; } int appendnum = 0; if (struVcaRuleAlarm.dwPicDataLen > 0 && struVcaRuleAlarm.pImage != NULL) { int num = ulAlarmPic/1000+1; appendnum = num; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d][%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struVcaRuleAlarm.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]TargetID[%d]RuleName[%s]AlarmID[%d]_%d.txt", cFilename, chTime, \ struVcaRuleAlarm.struTargetInfo.dwID, csRuleName, struVcaRuleAlarm.dwAlarmID, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]TargetID[%d]RuleName[%s]AlarmID[%d]_%d.jpg", cFilename, chTime, \ struVcaRuleAlarm.struTargetInfo.dwID, csRuleName, struVcaRuleAlarm.dwAlarmID, rand() % GetTickCount()); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struVcaRuleAlarm.pImage, struVcaRuleAlarm.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struVcaRuleAlarm.byAppendInfoUploadEnabled==1) { NET_VCA_APPEND_INFO struAppendInfo = { 0 }; memset(&struAppendInfo, 0, sizeof(struAppendInfo)); memcpy(&struAppendInfo, struVcaRuleAlarm.pAppendInfo, sizeof(struAppendInfo)); sprintf(szInfoBuf, "append info:append pic type[%d];append pic len[%d];append UID[%s]", struAppendInfo.byAppendPicType, struAppendInfo.dwAppendPicLen, struAppendInfo.byUID); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struAppendInfo.dwAppendPicLen>0 && struAppendInfo.pAppendPicBuff!=NULL) { char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d][%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, appendnum); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_appendPic.jpg", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struAppendInfo.pAppendPicBuff, struAppendInfo.dwAppendPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAppendInfo.pAppendPicBuff != NULL) { delete[](struAppendInfo.pAppendPicBuff); } } if (struVcaRuleAlarm.pImage != NULL) { delete [] (struVcaRuleAlarm.pImage); } if (struVcaRuleAlarm.pAppendInfo != NULL) { delete[](struVcaRuleAlarm.pAppendInfo); } } void CClientDemoDlg::ProcAidAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_AID_ALARM struAidAlarm = {0}; CTime time = CTime::GetCurrentTime(); memcpy(&struAidAlarm, pAlarmInfo, sizeof(struAidAlarm)); i = struAidAlarm.struDevInfo.byIvmsChannel-g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struAidAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struAidAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struAidAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struAidAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struAidAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struAidAlarm.dwAbsTime); CString str = ""; sprintf(szInfoBuf, "Aid Alarm IvmsChan[%d]ID[%d]Name[%s]Type[%d]Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]Dev IP[%s]Port[%d]Chan[%d] \ Direction Start[%0.3f,%0.3f]Stop[%0.3f,%0.3f]", struAidAlarm.struDevInfo.byIvmsChannel, struAidAlarm.struAIDInfo.byRuleID, struAidAlarm.struAIDInfo.byRuleName, struAidAlarm.struAIDInfo.dwAIDType, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struAidAlarm.struDevInfo.struDevIP.sIpV4, struAidAlarm.struDevInfo.wPort, struAidAlarm.struDevInfo.byChannel, struAidAlarm.struAIDInfo.struDirect.struStartPoint.fX, struAidAlarm.struAIDInfo.struDirect.struStartPoint.fY, struAidAlarm.struAIDInfo.struDirect.struEndPoint.fX, struAidAlarm.struAIDInfo.struDirect.struEndPoint.fY); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struAidAlarm.dwPicDataLen > 0 && struAidAlarm.pImage != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s_channel[%d]_AID", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, struAidAlarm.struDevInfo.byChannel); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\AIDAlarm_LocalTime[%s].jpg", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struAidAlarm.pImage, struAidAlarm.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAidAlarm.pImage != NULL) { delete [] (struAidAlarm.pImage); struAidAlarm.pImage = NULL; } } void CClientDemoDlg::ProcTpsAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; unsigned int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_TPS_ALARM struTpsAlarm = {0}; memcpy(&struTpsAlarm, pAlarmInfo, sizeof(struTpsAlarm)); i = struTpsAlarm.struDevInfo.byIvmsChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struTpsAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struTpsAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struTpsAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struTpsAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struTpsAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struTpsAlarm.dwAbsTime); sprintf(szInfoBuf, "Tps alarm Dev ip[%s]port[%d]Chan[%d] IvmsChan[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] LaneNum[%d]" , \ struTpsAlarm.struDevInfo.struDevIP.sIpV4, struTpsAlarm.struDevInfo.wPort, struTpsAlarm.struDevInfo.byChannel,struTpsAlarm.struDevInfo.byIvmsChannel, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (i = 0; i < struTpsAlarm.struTPSInfo.dwLanNum; i++) { sprintf(szInfoBuf, "ID[%d] Name[%s] VaryType[%d] LaneType[%d] Volume[%d] Velocity[%d] TimeHeadway[%d] SpaceHeadway[%d] SpceOccupy[%0.3f]", struTpsAlarm.struTPSInfo.struLaneParam[i].byRuleID, struTpsAlarm.struTPSInfo.struLaneParam[i].byRuleName, struTpsAlarm.struTPSInfo.struLaneParam[i].byVaryType, struTpsAlarm.struTPSInfo.struLaneParam[i].byLaneType, struTpsAlarm.struTPSInfo.struLaneParam[i].dwLaneVolume, struTpsAlarm.struTPSInfo.struLaneParam[i].dwLaneVelocity, struTpsAlarm.struTPSInfo.struLaneParam[i].dwTimeHeadway, struTpsAlarm.struTPSInfo.struLaneParam[i].dwSpaceHeadway, struTpsAlarm.struTPSInfo.struLaneParam[i].fSpaceOccupyRation); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } void CClientDemoDlg::ProcTpsAlarmV41(WPARAM wParam,LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; if (iDeviceIndex < 0 || iDeviceIndex >= MAX_DEVICES) { return; } NET_DVR_TPS_ALARM_V41 struTpsAlarm = {0}; memcpy(&struTpsAlarm, pAlarmInfo, sizeof(struTpsAlarm)); i = struTpsAlarm.struDevInfo.byIvmsChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struTpsAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struTpsAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struTpsAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struTpsAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struTpsAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struTpsAlarm.dwAbsTime); NET_DVR_TIME struStartTime = {0}; struStartTime.dwYear = GET_YEAR(struTpsAlarm.dwStartTime); struStartTime.dwMonth = GET_MONTH(struTpsAlarm.dwStartTime); struStartTime.dwDay = GET_DAY(struTpsAlarm.dwStartTime); struStartTime.dwHour = GET_HOUR(struTpsAlarm.dwStartTime); struStartTime.dwMinute = GET_MINUTE(struTpsAlarm.dwStartTime); struStartTime.dwSecond = GET_SECOND(struTpsAlarm.dwStartTime); NET_DVR_TIME struStopTime = {0}; struStopTime.dwYear = GET_YEAR(struTpsAlarm.dwStopTime); struStopTime.dwMonth = GET_MONTH(struTpsAlarm.dwStopTime); struStopTime.dwDay = GET_DAY(struTpsAlarm.dwStopTime); struStopTime.dwHour = GET_HOUR(struTpsAlarm.dwStopTime); struStopTime.dwMinute = GET_MINUTE(struTpsAlarm.dwStopTime); struStopTime.dwSecond = GET_SECOND(struTpsAlarm.dwStopTime); sprintf(szInfoBuf, "Tps alarm v41 Dev ip[%s]port[%d]Chan[%d] IvmsChan[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] LaneNum[%d]SceneId[%d] MonitoringSiteID[%s] DeviceID[%s] StartTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] StopTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]" , \ struTpsAlarm.struDevInfo.struDevIP.sIpV4, struTpsAlarm.struDevInfo.wPort, struTpsAlarm.struDevInfo.byChannel,struTpsAlarm.struDevInfo.byIvmsChannel, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond,struTpsAlarm.struTPSInfo.dwLanNum, struTpsAlarm.struTPSInfo.dwSceneID, struTpsAlarm.byMonitoringSiteID, struTpsAlarm.byDeviceID, struStartTime.dwYear, struStartTime.dwMonth, struStartTime.dwDay, struStartTime.dwHour, struStartTime.dwMinute, struStartTime.dwSecond, struStopTime.dwYear, struStopTime.dwMonth, struStopTime.dwDay, struStopTime.dwHour, struStopTime.dwMinute, struStopTime.dwSecond); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (i = 0; i < struTpsAlarm.struTPSInfo.dwLanNum; i++) { sprintf(szInfoBuf, "ID[%d] Name[%s] VaryType[%d] LaneType[%d] Volume[%d] Velocity[%d] TimeHeadway[%d] SpaceHeadway[%d] SpaceOccupy[%0.3f] \ TimeOccupy[%.3f] LightVehicle[%d] MidVehicle[%d] HeavyVehicle[%d] OversizeVehicle[%d] TrafficState[%d] LaneQueueHead[%0.3f,%0.3f] LaneQueueTail[%0.3f,%0.3f] \ LaneQueueLength[%d] LaneNo[%d]", struTpsAlarm.struTPSInfo.struLaneParam[i].byRuleID, struTpsAlarm.struTPSInfo.struLaneParam[i].byRuleName, struTpsAlarm.struTPSInfo.struLaneParam[i].dwVaryType, struTpsAlarm.struTPSInfo.struLaneParam[i].byLaneType, struTpsAlarm.struTPSInfo.struLaneParam[i].dwLaneVolume, struTpsAlarm.struTPSInfo.struLaneParam[i].dwLaneVelocity, struTpsAlarm.struTPSInfo.struLaneParam[i].dwTimeHeadway, struTpsAlarm.struTPSInfo.struLaneParam[i].dwSpaceHeadway, struTpsAlarm.struTPSInfo.struLaneParam[i].fSpaceOccupyRation, struTpsAlarm.struTPSInfo.struLaneParam[i].fTimeOccupyRation, struTpsAlarm.struTPSInfo.struLaneParam[i].dwLightVehicle, struTpsAlarm.struTPSInfo.struLaneParam[i].dwMidVehicle, struTpsAlarm.struTPSInfo.struLaneParam[i].dwHeavyVehicle, struTpsAlarm.struTPSInfo.struLaneParam[i].dwOversizeVehicle, struTpsAlarm.struTPSInfo.struLaneParam[i].byTrafficState, struTpsAlarm.struTPSInfo.struLaneParam[i].struLaneQueue.struHead.fX,struTpsAlarm.struTPSInfo.struLaneParam[i].struLaneQueue.struHead.fY, struTpsAlarm.struTPSInfo.struLaneParam[i].struLaneQueue.struTail.fX,struTpsAlarm.struTPSInfo.struLaneParam[i].struLaneQueue.struTail.fY, struTpsAlarm.struTPSInfo.struLaneParam[i].struLaneQueue.dwLength, struTpsAlarm.struTPSInfo.struLaneParam[i].byLaneNo); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } void CClientDemoDlg::ProcAidAlarmV41(WPARAM wParam,LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_AID_ALARM_V41 struAidAlarm = {0}; CTime time = CTime::GetCurrentTime(); memcpy(&struAidAlarm, pAlarmInfo, sizeof(struAidAlarm)); if (iDeviceIndex != -1 && iDeviceIndex <MAX_DEVICES) { i = struAidAlarm.struDevInfo.byIvmsChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struAidAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struAidAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struAidAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struAidAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struAidAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struAidAlarm.dwAbsTime); char szAIDType[32] = { 0 }; if ((struAidAlarm.struAIDInfo.dwAIDType&ROADBLOCK) != 0) { g_StringLanType(szAIDType, "路障", "RoadBlock"); } if ((struAidAlarm.struAIDInfo.dwAIDType&CONSTRUCTION) != 0) { char szAIDTypeTmp[32] = { 0 }; g_StringLanType(szAIDTypeTmp, "施工", "Construction"); sprintf(szAIDType, "%s%s", szAIDType, szAIDTypeTmp); } if ((struAidAlarm.struAIDInfo.dwAIDType&PEDESTRIAN) != 0) { char szAIDTypeTmp[32] = { 0 }; g_StringLanType(szAIDTypeTmp, "行人", "Passengers"); sprintf(szAIDType, "%s%s", szAIDType, szAIDTypeTmp); } if ((struAidAlarm.struAIDInfo.dwAIDType&TFS_MANUAL_TRIGGER) != 0) { char szAIDTypeTmp[32] = { 0 }; g_StringLanType(szAIDTypeTmp, "手动违章取证事件 ", "TFS_MANUAL_TRIGGER"); sprintf(szAIDType, "%s%s", szAIDType, szAIDTypeTmp); } //重新拷贝,解决48个字节时,打印乱码的问题 BYTE tempMonitoringSiteID[MONITORSITE_ID_LEN + 1/*49*/] = { 0 }; memcpy(tempMonitoringSiteID, struAidAlarm.byMonitoringSiteID, sizeof(struAidAlarm.byMonitoringSiteID)); CString str = ""; sprintf(szInfoBuf, "Aid AlarmV41 xmlLen[%d]IvmsChan[%d]ID[%d]Name[%s]Type[%d]VisibilityLevel[%d]newType[%s] TargetType[%d] LaneNo[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]Dev IP[%s]Port[%d]Chan[%d] \ Direction Start[%0.3f,%0.3f]Stop[%0.3f,%0.3f] SceneID[%d] SceneName[%s] Direction[%d] PTZ[%d,%d,%d] MonitoringSiteID[%s] DeviceID[%s] VehicleEnterState[%d] State[%d] ParkingID[%s]", struAidAlarm.dwXmlLen, struAidAlarm.struDevInfo.byIvmsChannel, struAidAlarm.struAIDInfo.byRuleID, struAidAlarm.struAIDInfo.byRuleName, struAidAlarm.struAIDInfo.dwAIDType, struAidAlarm.struAIDInfo.byVisibilityLevel, szAIDType, struAidAlarm.byTargetType, struAidAlarm.byLaneNo, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struAidAlarm.struDevInfo.struDevIP.sIpV4, struAidAlarm.struDevInfo.wPort, struAidAlarm.struDevInfo.byChannel, struAidAlarm.struAIDInfo.struDirect.struStartPoint.fX, struAidAlarm.struAIDInfo.struDirect.struStartPoint.fY, struAidAlarm.struAIDInfo.struDirect.struEndPoint.fX, struAidAlarm.struAIDInfo.struDirect.struEndPoint.fY, struAidAlarm.struSceneInfo.dwSceneID,struAidAlarm.struSceneInfo.bySceneName,struAidAlarm.struSceneInfo.byDirection, struAidAlarm.struSceneInfo.struPtzPos.wPanPos,struAidAlarm.struSceneInfo.struPtzPos.wTiltPos,struAidAlarm.struSceneInfo.struPtzPos.wZoomPos, tempMonitoringSiteID, struAidAlarm.byDeviceID, struAidAlarm.struAIDInfo.byVehicleEnterState, struAidAlarm.struAIDInfo.byState, struAidAlarm.struAIDInfo.byParkingID); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struAidAlarm.dwPicDataLen > 0 && struAidAlarm.pImage != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s_channel[%d]_AID", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, struAidAlarm.struDevInfo.byChannel); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struAidAlarm.byDataType == 0) { sprintf(cFilename, "%s\\AIDPic_LocalTime[%s].jpg", cFilename, chTime); } else if (struAidAlarm.byDataType == 1) { sprintf(cFilename, "%s\\AIDPic_URL_LocalTime[%s].txt", cFilename, chTime); } //sprintf(cFilename, "%s\\LocalTime[%s].jpg",cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struAidAlarm.pImage, struAidAlarm.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAidAlarm.dwXmlLen > 0 && struAidAlarm.pXmlBuf != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\%s_channel[%d]_AID", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, struAidAlarm.struDevInfo.byChannel); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\AIDXml_[%s].txt", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struAidAlarm.pXmlBuf, struAidAlarm.dwXmlLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } //保存车牌子图 if (struAidAlarm.dwPlateSmallPicDataLen > 0 && struAidAlarm.pPlateSmallImage != NULL) { char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\%s_channel[%d]_AID", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, struAidAlarm.struDevInfo.byChannel); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struAidAlarm.byDataType == 0) { sprintf(cFilename, "%s\\AIDPlateSmallPic_LocalTime[%s].jpg", cFilename, chTime); } else if (struAidAlarm.byDataType == 1) { sprintf(cFilename, "%s\\AIDPlateSmallPic_URL_LocalTime[%s].txt", cFilename, chTime); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struAidAlarm.pPlateSmallImage, struAidAlarm.dwPlateSmallPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAidAlarm.pImage != NULL) { delete [] (struAidAlarm.pImage); struAidAlarm.pImage = NULL; } if (struAidAlarm.pXmlBuf != NULL) { delete[](struAidAlarm.pXmlBuf); struAidAlarm.pXmlBuf = NULL; } if (struAidAlarm.pPlateSmallImage != NULL) { delete[](struAidAlarm.pPlateSmallImage); struAidAlarm.pPlateSmallImage = NULL; } } void CClientDemoDlg::ProcTpsStatistics(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; char szInfoBuf[1024] = { 0 }; NET_DVR_TPS_STATISTICS_INFO struTpsStatistics = { 0 }; memcpy(&struTpsStatistics, pAlarmInfo, sizeof(struTpsStatistics)); sprintf(szInfoBuf, "TPS Alarm Start[%d]CMD[%d]DeviceID[%d]TotalLaneNum[%d]DataLen[%d]StartTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d]SamplePeriod[%d]Chan[%d]", \ struTpsStatistics.struTPSStatisticsInfo.byStart, \ struTpsStatistics.struTPSStatisticsInfo.byCMD, struTpsStatistics.struTPSStatisticsInfo.wDeviceID, \ struTpsStatistics.struTPSStatisticsInfo.byTotalLaneNum, struTpsStatistics.struTPSStatisticsInfo.wDataLen, \ struTpsStatistics.struTPSStatisticsInfo.struStartTime.wYear, struTpsStatistics.struTPSStatisticsInfo.struStartTime.byMonth, \ struTpsStatistics.struTPSStatisticsInfo.struStartTime.byDay, struTpsStatistics.struTPSStatisticsInfo.struStartTime.byHour, \ struTpsStatistics.struTPSStatisticsInfo.struStartTime.byMinute, struTpsStatistics.struTPSStatisticsInfo.struStartTime.bySecond, \ struTpsStatistics.struTPSStatisticsInfo.struStartTime.wMilliSec, struTpsStatistics.struTPSStatisticsInfo.dwSamplePeriod, struTpsStatistics.dwChan); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (int i = 0; i < struTpsStatistics.struTPSStatisticsInfo.byTotalLaneNum; i++) { sprintf(szInfoBuf, "LaneNum[%d](Lane[%d]Speed[%d]ArrivalFlow[%d]VehicelNum[%d]LightVehicle[%d]MidVehicle[%d]HeavyVehicle[%d]TimeHeadway[%d]SpaceHeadway[%d]SpaceOccupyRation[%0.3f]TimeOccupyRation[%0.3f])StoppingTimes[%d]Delay[%d],QueueLen[%d]Flag[%d]Nonmotor[%d]", (i + 1), struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].byLane, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].bySpeed,\ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].wArrivalFlow, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].byVehicelNum, \ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].dwLightVehicle, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].dwMidVehicle,\ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].dwHeavyVehicle, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].dwTimeHeadway,\ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].dwSpaceHeadway, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].fSpaceOccupyRation,\ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].fTimeOccupyRation, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].byStoppingTimes, \ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].wDelay, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].byQueueLen, \ struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].byFlag, struTpsStatistics.struTPSStatisticsInfo.struLaneParam[i].dwNonMotor); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } return; } void CClientDemoDlg::ProcTpsRealtime(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; char szInfoBuf[1024] = { 0 }; NET_DVR_TPS_REAL_TIME_INFO struTpsRealtime = { 0 }; memcpy(&struTpsRealtime, pAlarmInfo, sizeof(struTpsRealtime)); sprintf(szInfoBuf, "TPS Real Time Alarm Channel[%d]Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d]Start[%d]CMD[%d]SpaceHeadway[%d]TimeHeadway[%d]DeviceID[%d]DataLen[%d]Lane[%d] \ Speed[%d]LaneState[%d]QueueLen[%d]LoopState[%d]StateMask[%d]DownwardFlow[%d]UpwardFlow[%d]JamLevel[%d]VehicleDirection[%d]JamFlow[%d]", \ struTpsRealtime.dwChan, \ struTpsRealtime.struTime.wYear, struTpsRealtime.struTime.byMonth, struTpsRealtime.struTime.byDay, \ struTpsRealtime.struTime.byHour, struTpsRealtime.struTime.byMinute, struTpsRealtime.struTime.bySecond, \ struTpsRealtime.struTime.wMilliSec, struTpsRealtime.struTPSRealTimeInfo.byStart, \ struTpsRealtime.struTPSRealTimeInfo.byCMD, struTpsRealtime.struTPSRealTimeInfo.wSpaceHeadway, \ struTpsRealtime.struTPSRealTimeInfo.wTimeHeadway, struTpsRealtime.struTPSRealTimeInfo.wDeviceID, \ struTpsRealtime.struTPSRealTimeInfo.wDataLen, struTpsRealtime.struTPSRealTimeInfo.byLane, \ struTpsRealtime.struTPSRealTimeInfo.bySpeed, struTpsRealtime.struTPSRealTimeInfo.byLaneState, \ struTpsRealtime.struTPSRealTimeInfo.byQueueLen, struTpsRealtime.struTPSRealTimeInfo.wLoopState, \ struTpsRealtime.struTPSRealTimeInfo.wStateMask, struTpsRealtime.struTPSRealTimeInfo.dwDownwardFlow, \ struTpsRealtime.struTPSRealTimeInfo.dwUpwardFlow, struTpsRealtime.struTPSRealTimeInfo.byJamLevel, \ struTpsRealtime.struTPSRealTimeInfo.byVehicleDirection, struTpsRealtime.struTPSRealTimeInfo.byJamFlow); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (1 == struTpsRealtime.byAddInfoFlag) { NET_DVR_TPS_ADDINFO struTPSAddInfo = { 0 }; memcpy(&struTPSAddInfo, struTpsRealtime.pAddInfoBuffer, sizeof(NET_DVR_TPS_ADDINFO)); sprintf(szInfoBuf, "AddInfoFlag [%d] First Car:LatitudeType [%d] Degree[%d] Minute[%d] fSec[%f] LongitudeType [%d] Degree[%d] Minute[%d] fSec[%f], \ Last Car:LatitudeType [%d] Degree[%d] Minute[%d] fSec[%f] LongitudeType [%d] Degree[%d] Minute[%d] fSec[%f]", \ struTpsRealtime.byAddInfoFlag, struTPSAddInfo.struFirstLLPos.byLatitudeType, struTPSAddInfo.struFirstLLPos.struLatitude.byDegree, \ struTPSAddInfo.struFirstLLPos.struLatitude.byMinute, struTPSAddInfo.struFirstLLPos.struLatitude.fSec, \ struTPSAddInfo.struFirstLLPos.byLongitudeType, struTPSAddInfo.struFirstLLPos.struLongitude.byDegree, \ struTPSAddInfo.struFirstLLPos.struLongitude.byMinute, struTPSAddInfo.struFirstLLPos.struLongitude.fSec, \ struTPSAddInfo.struLastLLPos.byLatitudeType, struTPSAddInfo.struLastLLPos.struLatitude.byDegree, \ struTPSAddInfo.struLastLLPos.struLatitude.byMinute, struTPSAddInfo.struLastLLPos.struLatitude.fSec, \ struTPSAddInfo.struLastLLPos.byLongitudeType, struTPSAddInfo.struLastLLPos.struLongitude.byDegree, \ struTPSAddInfo.struLastLLPos.struLongitude.byMinute, struTPSAddInfo.struLastLLPos.struLongitude.fSec ); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } return; } void CClientDemoDlg::ProcTfsAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_TFS_ALARM struTfsAlarm = { 0 }; memcpy(&struTfsAlarm, pAlarmInfo, sizeof(struTfsAlarm)); if (iDeviceIndex != -1 && iDeviceIndex < MAX_DEVICES) { i = struTfsAlarm.struDevInfo.byIvmsChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } NET_DVR_TIME struAbsTime = { 0 }; struAbsTime.dwYear = GET_YEAR(struTfsAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struTfsAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struTfsAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struTfsAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struTfsAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struTfsAlarm.dwAbsTime); CString str = ""; char chTfsTime[128] = { 0 }; sprintf(chTfsTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", struTfsAlarm.struTime.wYear, struTfsAlarm.struTime.byMonth, struTfsAlarm.struTime.byDay, \ struTfsAlarm.struTime.byHour, struTfsAlarm.struTime.byMinute, struTfsAlarm.struTime.bySecond, struTfsAlarm.struTime.wMilliSec); //重新拷贝,解决48个字节时,打印乱码的问题 BYTE tempMonitoringSiteID[MONITORSITE_ID_LEN + 1/*49*/] = { 0 }; memcpy(tempMonitoringSiteID, struTfsAlarm.byMonitoringSiteID, sizeof(struTfsAlarm.byMonitoringSiteID)); //demo显示第一次打印,已经显示到最多了,新增的需要在第二次打印增加 sprintf(szInfoBuf, "Tfs Alarm IvmsChan: [%d] RuleID: [%d] RuleName: [%s] AIDType: [%d] AbsTime: [%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevIP: [%s] Port: [%d] Chan: [%d] SpecificVehicleType: [%d]\ LaneNo: [%d] Direction Start: [%0.3f,%0.3f] Stop: [%0.3f,%0.3f] SceneID: [%d] SceneName: [%s] Direction: [%d] PTZ: [%d,%d,%d] IllegalType: [%u] IlleagelDuration: [%d] MonitoringSiteID: [%s]\ DeviceID: [%s] Licence: [%s] Believe: [%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u] Time: [%s] SerialNo: [%d] VehicleAttribute: [%d] PilotSafebelt: [%d] CopilotSafebelt: [%d]\ PilotSunVisor: [%d] CopilotSunVisor: [%d] PilotCall: [%d] IllegalCode: [%s] VehicleEnterState: [%d] Country: [%d] Region: [%d] State:[%d] ParkingID:[%s] CrossLine:[%d] ParkingSerialNO:[%s]\ CrossSpaces:[%d] AngledParking:[%d] AlarmValidity:[%d] DoorStatus:[%d] byVehicleHeadTailStatus:[%d] BeginRecTime:[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] EndRecTime:[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] PlateType:[%d] PlateColor[%d] EntireBelieve[%d]", struTfsAlarm.struDevInfo.byIvmsChannel, struTfsAlarm.struAIDInfo.byRuleID, struTfsAlarm.struAIDInfo.byRuleName, struTfsAlarm.struAIDInfo.dwAIDType, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struTfsAlarm.struDevInfo.struDevIP.sIpV4, struTfsAlarm.struDevInfo.wPort, struTfsAlarm.struDevInfo.byChannel, struTfsAlarm.bySpecificVehicleType, struTfsAlarm.byLaneNo, struTfsAlarm.struAIDInfo.struDirect.struStartPoint.fX, struTfsAlarm.struAIDInfo.struDirect.struStartPoint.fY, struTfsAlarm.struAIDInfo.struDirect.struEndPoint.fX, struTfsAlarm.struAIDInfo.struDirect.struEndPoint.fY, struTfsAlarm.struSceneInfo.dwSceneID, struTfsAlarm.struSceneInfo.bySceneName, struTfsAlarm.struSceneInfo.byDirection, struTfsAlarm.struSceneInfo.struPtzPos.wPanPos, struTfsAlarm.struSceneInfo.struPtzPos.wTiltPos, struTfsAlarm.struSceneInfo.struPtzPos.wZoomPos, struTfsAlarm.dwIllegalType, struTfsAlarm.dwIllegalDuration, tempMonitoringSiteID, struTfsAlarm.byDeviceID, struTfsAlarm.struPlateInfo.sLicense, struTfsAlarm.struPlateInfo.byBelieve[0], struTfsAlarm.struPlateInfo.byBelieve[1], struTfsAlarm.struPlateInfo.byBelieve[2], struTfsAlarm.struPlateInfo.byBelieve[3], struTfsAlarm.struPlateInfo.byBelieve[4], struTfsAlarm.struPlateInfo.byBelieve[5], struTfsAlarm.struPlateInfo.byBelieve[6], struTfsAlarm.struPlateInfo.byBelieve[7], struTfsAlarm.struPlateInfo.byBelieve[8], struTfsAlarm.struPlateInfo.byBelieve[9], struTfsAlarm.struPlateInfo.byBelieve[10], struTfsAlarm.struPlateInfo.byBelieve[11], struTfsAlarm.struPlateInfo.byBelieve[12], struTfsAlarm.struPlateInfo.byBelieve[13], struTfsAlarm.struPlateInfo.byBelieve[14], struTfsAlarm.struPlateInfo.byBelieve[15], chTfsTime, struTfsAlarm.dwSerialNo, struTfsAlarm.byVehicleAttribute, struTfsAlarm.byPilotSafebelt, struTfsAlarm.byCopilotSafebelt, struTfsAlarm.byPilotSunVisor, struTfsAlarm.byCopilotSunVisor, struTfsAlarm.byPilotCall, struTfsAlarm.byIllegalCode, struTfsAlarm.struAIDInfo.byVehicleEnterState, struTfsAlarm.wCountry, struTfsAlarm.byRegion, struTfsAlarm.struAIDInfo.byState, struTfsAlarm.struAIDInfo.byParkingID, struTfsAlarm.byCrossLine, struTfsAlarm.byParkingSerialNO, struTfsAlarm.byCrossSpaces, struTfsAlarm.byAngledParking, struTfsAlarm.byAlarmValidity, struTfsAlarm.byDoorsStatus, struTfsAlarm.byVehicleHeadTailStatus, struTfsAlarm.struBeginRecTime.wYear, struTfsAlarm.struBeginRecTime.byMonth, struTfsAlarm.struBeginRecTime.byDay, struTfsAlarm.struBeginRecTime.byHour, struTfsAlarm.struBeginRecTime.byMinute, struTfsAlarm.struBeginRecTime.bySecond, struTfsAlarm.struEndRecTime.wYear, struTfsAlarm.struEndRecTime.byMonth, struTfsAlarm.struEndRecTime.byDay, struTfsAlarm.struEndRecTime.byHour, struTfsAlarm.struEndRecTime.byMinute, struTfsAlarm.struEndRecTime.bySecond, struTfsAlarm.struPlateInfo.byPlateType, struTfsAlarm.struPlateInfo.byColor, struTfsAlarm.struPlateInfo.byEntireBelieve); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); memset(szInfoBuf, 0, sizeof(szInfoBuf)); //第二次打印 sprintf(szInfoBuf, "Tfs Alarm VehicleIndex:[%d] VehicleType:[%d] ColorDepth:[%d] VehicleColor:[%d] VehicleLogoRecog:[%d] VehicleSubLogoRecog:[%d] VehicleModel:[%d] PicNum:[%d] byIllegalType[%d] byBelieve[%d]", struTfsAlarm.struVehicleInfo.dwIndex,struTfsAlarm.struVehicleInfo.byVehicleType, struTfsAlarm.struVehicleInfo.byColorDepth, struTfsAlarm.struVehicleInfo.byColor, struTfsAlarm.struVehicleInfo.wVehicleLogoRecog, struTfsAlarm.struVehicleInfo.byVehicleSubLogoRecog, struTfsAlarm.struVehicleInfo.byVehicleModel, struTfsAlarm.dwPicNum, struTfsAlarm.struVehicleInfo.byIllegalType, struTfsAlarm.struVehicleInfo.byBelieve); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); memset(szInfoBuf, 0, sizeof(szInfoBuf)); //保存文本 sprintf(szInfoBuf, "Tfs Alarm IvmsChan: [%d]\r\nRuleID: [%d]\r\nRuleName: [%s]\r\nAIDType: [%d]\r\nAbsTime: [%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]\r\nDevIP: [%s]\r\nPort: [%d]\r\nChan: [%d]\r\nSpecificVehicleType: [%d]\ \r\nLaneNo: [%d]\r\nDirection Start: [%0.3f,%0.3f]\r\nStop: [%0.3f,%0.3f]\r\nSceneID: [%d]\r\nSceneName: [%s]\r\nDirection: [%d]\r\nPTZ: [%d,%d,%d]\r\nIllegalType: [%u]\r\nIlleagelDuration: [%d]\r\nMonitoringSiteID: [%s]\ \r\nDeviceID: [%s]\r\nLicence: [%s]\r\nBelieve: [%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u]\r\nTime: [%s]\r\nSerialNo: [%d]\r\nVehicleAttribute: [%d]\r\nPilotSafebelt: [%d]\r\nCopilotSafebelt: [%d]\ \r\nPilotSunVisor: [%d]\r\nCopilotSunVisor: [%d]\r\nPilotCall: [%d]\r\nIllegalCode: [%s]\r\nVehicleEnterState: [%d]\r\nCountry: [%d]\r\nRegion: [%d]\r\nState:[%d]\r\nParkingID:[%s]\r\nCrossLine:[%d]\r\nParkingSerialNO:[%s]\ \r\nCrossSpaces:[%d]\r\nAngledParking:[%d]\r\nAlarmValidity:[%d]\r\nbyVehicleHeadTailStatus:[%d]\r\nBeginRecTime:[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]\r\nEndRecTime:[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]\r\nPlateType:[%d]\r\nPlateColor[%d]\r\nEntireBelieve[%d]\ \r\nVehicleIndex:[%d]\r\nVehicleType:[%d]\r\nColorDepth:[%d]\r\nVehicleColor:[%d]\r\nVehicleLogoRecog:[%d]\r\nVehicleSubLogoRecog:[%d]\r\nVehicleModel:[%d]\r\nPicNum:[%d],\r\nstruVehicleInfo.byIllegalType[%d]\r\nstruVehicleInfo.byBelieve[%d]", struTfsAlarm.struDevInfo.byIvmsChannel, struTfsAlarm.struAIDInfo.byRuleID, struTfsAlarm.struAIDInfo.byRuleName, struTfsAlarm.struAIDInfo.dwAIDType, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struTfsAlarm.struDevInfo.struDevIP.sIpV4, struTfsAlarm.struDevInfo.wPort, struTfsAlarm.struDevInfo.byChannel, struTfsAlarm.bySpecificVehicleType, struTfsAlarm.byLaneNo, struTfsAlarm.struAIDInfo.struDirect.struStartPoint.fX, struTfsAlarm.struAIDInfo.struDirect.struStartPoint.fY, struTfsAlarm.struAIDInfo.struDirect.struEndPoint.fX, struTfsAlarm.struAIDInfo.struDirect.struEndPoint.fY, struTfsAlarm.struSceneInfo.dwSceneID, struTfsAlarm.struSceneInfo.bySceneName, struTfsAlarm.struSceneInfo.byDirection, struTfsAlarm.struSceneInfo.struPtzPos.wPanPos, struTfsAlarm.struSceneInfo.struPtzPos.wTiltPos, struTfsAlarm.struSceneInfo.struPtzPos.wZoomPos, struTfsAlarm.dwIllegalType, struTfsAlarm.dwIllegalDuration, tempMonitoringSiteID, struTfsAlarm.byDeviceID, struTfsAlarm.struPlateInfo.sLicense, struTfsAlarm.struPlateInfo.byBelieve[0], struTfsAlarm.struPlateInfo.byBelieve[1], struTfsAlarm.struPlateInfo.byBelieve[2], struTfsAlarm.struPlateInfo.byBelieve[3], struTfsAlarm.struPlateInfo.byBelieve[4], struTfsAlarm.struPlateInfo.byBelieve[5], struTfsAlarm.struPlateInfo.byBelieve[6], struTfsAlarm.struPlateInfo.byBelieve[7], struTfsAlarm.struPlateInfo.byBelieve[8], struTfsAlarm.struPlateInfo.byBelieve[9], struTfsAlarm.struPlateInfo.byBelieve[10], struTfsAlarm.struPlateInfo.byBelieve[11], struTfsAlarm.struPlateInfo.byBelieve[12], struTfsAlarm.struPlateInfo.byBelieve[13], struTfsAlarm.struPlateInfo.byBelieve[14], struTfsAlarm.struPlateInfo.byBelieve[15], chTfsTime, struTfsAlarm.dwSerialNo, struTfsAlarm.byVehicleAttribute, struTfsAlarm.byPilotSafebelt, struTfsAlarm.byCopilotSafebelt, struTfsAlarm.byPilotSunVisor, struTfsAlarm.byCopilotSunVisor, struTfsAlarm.byPilotCall, struTfsAlarm.byIllegalCode, struTfsAlarm.struAIDInfo.byVehicleEnterState, struTfsAlarm.wCountry, struTfsAlarm.byRegion, struTfsAlarm.struAIDInfo.byState, struTfsAlarm.struAIDInfo.byParkingID, struTfsAlarm.byCrossLine, struTfsAlarm.byParkingSerialNO, struTfsAlarm.byCrossSpaces, struTfsAlarm.byAngledParking, struTfsAlarm.byAlarmValidity,struTfsAlarm.byVehicleHeadTailStatus, struTfsAlarm.struBeginRecTime.wYear, struTfsAlarm.struBeginRecTime.byMonth, struTfsAlarm.struBeginRecTime.byDay, struTfsAlarm.struBeginRecTime.byHour, struTfsAlarm.struBeginRecTime.byMinute, struTfsAlarm.struBeginRecTime.bySecond, struTfsAlarm.struEndRecTime.wYear, struTfsAlarm.struEndRecTime.byMonth, struTfsAlarm.struEndRecTime.byDay, struTfsAlarm.struEndRecTime.byHour, struTfsAlarm.struEndRecTime.byMinute, struTfsAlarm.struEndRecTime.bySecond,struTfsAlarm.struPlateInfo.byPlateType,struTfsAlarm.struPlateInfo.byColor,struTfsAlarm.struPlateInfo.byEntireBelieve, struTfsAlarm.struVehicleInfo.dwIndex, struTfsAlarm.struVehicleInfo.byVehicleType, struTfsAlarm.struVehicleInfo.byColorDepth, struTfsAlarm.struVehicleInfo.byColor, struTfsAlarm.struVehicleInfo.wVehicleLogoRecog, struTfsAlarm.struVehicleInfo.byVehicleSubLogoRecog, struTfsAlarm.struVehicleInfo.byVehicleModel, struTfsAlarm.dwPicNum, struTfsAlarm.struVehicleInfo.byIllegalType, struTfsAlarm.struVehicleInfo.byBelieve); SYSTEMTIME t; GetLocalTime(&t); char dataFilename[256] = { 0 }; char chTime[128] = { 0 }; char txtFilename[256] = { 0 }; char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(dataFilename, "%s\\%s_channel[%d]_TFS", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, struTfsAlarm.struDevInfo.byChannel); if (GetFileAttributes(dataFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(dataFilename, NULL); } sprintf(txtFilename, "%s\\TFSAlarm_%s.txt", dataFilename, chTime); hFile = CreateFile(txtFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, szInfoBuf, strlen(szInfoBuf), &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; for (int i = 0; i < 8; i++) { if (struTfsAlarm.struPicInfo[i].dwDataLen > 0 && struTfsAlarm.struPicInfo[i].pBuffer != NULL) { char cPicType[256] = { 0 }; if (struTfsAlarm.struPicInfo[i].byDataType == 0) { if (0 == struTfsAlarm.struPicInfo[i].byType) { sprintf(cPicType, "License"); } else if (1 == struTfsAlarm.struPicInfo[i].byType) { sprintf(cPicType, "Scene"); } else if (15 == struTfsAlarm.struPicInfo[i].byType) { sprintf(cPicType, "custom"); } sprintf(cFilename, "%s\\%s_LocalTime[%s]_%d.jpg", dataFilename, cPicType, chTime, i); } else if (struTfsAlarm.struPicInfo[i].byDataType == 1) { if (0 == struTfsAlarm.struPicInfo[i].byType) { sprintf(cPicType, "License"); } else if (1 == struTfsAlarm.struPicInfo[i].byType) { sprintf(cPicType, "Scene"); } else if (15 == struTfsAlarm.struPicInfo[i].byType) { sprintf(cPicType, "custom"); } sprintf(cFilename, "%s\\%s_URL_LocalTime[%s]_%d.txt", dataFilename, cPicType, chTime, i); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struTfsAlarm.struPicInfo[i].pBuffer, struTfsAlarm.struPicInfo[i].dwDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } } void CClientDemoDlg::ProcFaceDetectAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; const char *szFaceType[] = { "abn", "nor", "mul", "sgl", "cal" }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_FACEDETECT_ALARM struFaceDetectAlarm = {0}; memcpy(&struFaceDetectAlarm, pAlarmInfo, sizeof(struFaceDetectAlarm)); int i = struFaceDetectAlarm.struDevInfo.byChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struFaceDetectAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struFaceDetectAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struFaceDetectAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struFaceDetectAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struFaceDetectAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struFaceDetectAlarm.dwAbsTime); NET_DVR_TIME struRelativeTime = { 0 }; struRelativeTime.dwYear = GET_YEAR(struFaceDetectAlarm.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struFaceDetectAlarm.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struFaceDetectAlarm.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struFaceDetectAlarm.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struFaceDetectAlarm.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struFaceDetectAlarm.dwRelativeTime); sprintf(szInfoBuf, "Face alarm Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] RelativeTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] RuleName[%s] AlarmPicType[%d] PanelChan[%d] RelAlarmPicNum[%d] AlarmID[%d] IvmsChannel[%d]IvmsChannelEx[%d]", struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour,struRelativeTime.dwMinute, struRelativeTime.dwSecond, struFaceDetectAlarm.byRuleName,struFaceDetectAlarm.byAlarmPicType,struFaceDetectAlarm.byPanelChan, struFaceDetectAlarm.byRelAlarmPicNum,struFaceDetectAlarm.dwAlarmID,\ struFaceDetectAlarm.struDevInfo.byIvmsChannel, struFaceDetectAlarm.wDevInfoIvmsChannelEx); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struFaceDetectAlarm.dwPicDataLen > 0 && struFaceDetectAlarm.pImage != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; if (struFaceDetectAlarm.byAlarmPicType < 0 || struFaceDetectAlarm.byAlarmPicType > 4) { return; } sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]AlarmID[%d]_%d_%s.jpg", cFilename, chTime, struFaceDetectAlarm.dwAlarmID, rand() % GetTickCount(), szFaceType[struFaceDetectAlarm.byAlarmPicType]); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceDetectAlarm.pImage, struFaceDetectAlarm.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceDetectAlarm.dwFacePicDataLen > 0 && struFaceDetectAlarm.pFaceImage != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceDetectAlarm.byAlarmPicType < 0 || struFaceDetectAlarm.byAlarmPicType > 4) { return; } sprintf(cFilename, "%s\\Face_LocalTime[%s]AlarmID[%d]_%d_%s.jpg", cFilename, chTime, struFaceDetectAlarm.dwAlarmID, rand() % GetTickCount(), szFaceType[struFaceDetectAlarm.byAlarmPicType]); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceDetectAlarm.pFaceImage, struFaceDetectAlarm.dwFacePicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceDetectAlarm.pImage != NULL) { delete [] (struFaceDetectAlarm.pImage); struFaceDetectAlarm.pImage = NULL; } if (struFaceDetectAlarm.pFaceImage != NULL) { delete [] (struFaceDetectAlarm.pFaceImage); struFaceDetectAlarm.pFaceImage = NULL; } } void CClientDemoDlg::ProcFaceSnapAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_VCA_FACESNAP_RESULT struFaceSnapAlarm = {0}; memcpy(&struFaceSnapAlarm, pAlarmInfo, sizeof(struFaceSnapAlarm)); if (iDeviceIndex >= 0 && iDeviceIndex < MAX_DEVICES) { int i = struFaceSnapAlarm.struDevInfo.byChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struFaceSnapAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struFaceSnapAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struFaceSnapAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struFaceSnapAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struFaceSnapAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struFaceSnapAlarm.dwAbsTime); NET_DVR_TIME struRelativeTime = { 0 }; struRelativeTime.dwYear = GET_YEAR(struFaceSnapAlarm.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struFaceSnapAlarm.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struFaceSnapAlarm.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struFaceSnapAlarm.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struFaceSnapAlarm.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struFaceSnapAlarm.dwRelativeTime); NET_VCA_FACESNAP_ADDINFO struFaceSnapAddInfo = { 0 }; if (struFaceSnapAlarm.byAddInfo > 0 && struFaceSnapAlarm.pAddInfoBuffer != NULL) { memcpy(&struFaceSnapAddInfo, struFaceSnapAlarm.pAddInfoBuffer, sizeof(struFaceSnapAddInfo)); } sprintf(szInfoBuf, "Face Snap alarm BrokenNetHttp[%d]Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] flag[%d] %2.2d%2.2d] \ Relalative[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] FaceID[%d] Smart[%d] AgeGroup[%d] Sex[%d] EyeGlass[%d] \ StayDuration[%.3f] FaceScore[%d] AlarmEndMark[%d] RepeatTimes[%d]-StorageIP[%s] Storage Port[%d],TargeInfo :IvmsChannel[%d]IvmsChannelEx[%d] \ Age[%d], AgeDeviation[%d] FacePicQuality[%d] UIDLen[%d] Ethnic[%d] Mask[%d] Smile[%d] \ TargeInfo: ID[%d] X[%.3f] Y[%.3f] Height[%.3f] Width[%.3f] \ Rect:X[%.3f] Y[%.3f] Height[%.3f] Width[%.3f] \ AddInfo[%d] FacePicRect:X[%.3f] Y[%.3f] Height[%.3f] Width[%.3f] \ SwingAngle[%d] TiltAngle[%d] PupilDistance[%d] BlockingState[%d] LivenessDetectionStatus[%d] \ FaceExpression[%d] Beard[%d] Race[%d] Hat[%d]\ EnterTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] \ ExitTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]\n", struFaceSnapAlarm.byBrokenNetHttp, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, \ struFaceSnapAlarm.byTimeDiffFlag, struFaceSnapAlarm.cTimeDifferenceH, struFaceSnapAlarm.cTimeDifferenceM, \ struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour, struRelativeTime.dwMinute, struRelativeTime.dwSecond, \ struFaceSnapAlarm.dwFacePicID, struFaceSnapAlarm.bySmart, struFaceSnapAlarm.struFeature.byAgeGroup, struFaceSnapAlarm.struFeature.bySex, \ struFaceSnapAlarm.struFeature.byEyeGlass, struFaceSnapAlarm.fStayDuration, struFaceSnapAlarm.dwFaceScore, struFaceSnapAlarm.byAlarmEndMark, \ struFaceSnapAlarm.byRepeatTimes, struFaceSnapAlarm.sStorageIP, struFaceSnapAlarm.wStoragePort, \ struFaceSnapAlarm.struDevInfo.byIvmsChannel, struFaceSnapAlarm.wDevInfoIvmsChannelEx, struFaceSnapAlarm.struFeature.byAge, struFaceSnapAlarm.struFeature.byAgeDeviation, struFaceSnapAlarm.byFacePicQuality, struFaceSnapAlarm.byUIDLen, \ struFaceSnapAlarm.struFeature.byEthnic, struFaceSnapAlarm.struFeature.byMask, struFaceSnapAlarm.struFeature.bySmile, struFaceSnapAlarm.struTargetInfo.dwID, struFaceSnapAlarm.struTargetInfo.struRect.fX, struFaceSnapAlarm.struTargetInfo.struRect.fY, struFaceSnapAlarm.struTargetInfo.struRect.fHeight, struFaceSnapAlarm.struTargetInfo.struRect.fWidth, struFaceSnapAlarm.struRect.fX, struFaceSnapAlarm.struRect.fY, struFaceSnapAlarm.struRect.fHeight, struFaceSnapAlarm.struRect.fWidth, struFaceSnapAlarm.byAddInfo, struFaceSnapAddInfo.struFacePicRect.fX, struFaceSnapAddInfo.struFacePicRect.fY, \ struFaceSnapAddInfo.struFacePicRect.fHeight, struFaceSnapAddInfo.struFacePicRect.fWidth, struFaceSnapAddInfo.iSwingAngle, struFaceSnapAddInfo.iTiltAngle, struFaceSnapAddInfo.dwPupilDistance, struFaceSnapAddInfo.byBlockingState, \ struFaceSnapAlarm.byLivenessDetectionStatus, struFaceSnapAlarm.struFeature.byFaceExpression,\ struFaceSnapAlarm.struFeature.byBeard, struFaceSnapAlarm.struFeature.byRace, struFaceSnapAlarm.struFeature.byHat, \ struFaceSnapAddInfo.struEnterTime.wYear, struFaceSnapAddInfo.struEnterTime.byMonth, struFaceSnapAddInfo.struEnterTime.byDay, struFaceSnapAddInfo.struEnterTime.byHour, struFaceSnapAddInfo.struEnterTime.byMinute, struFaceSnapAddInfo.struEnterTime.bySecond, \ struFaceSnapAddInfo.struExitTime.wYear, struFaceSnapAddInfo.struExitTime.byMonth, struFaceSnapAddInfo.struExitTime.byDay, struFaceSnapAddInfo.struExitTime.byHour, struFaceSnapAddInfo.struExitTime.byMinute, struFaceSnapAddInfo.struExitTime.bySecond); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); int iPort = pAlarmDev->wLinkPort; if (struFaceSnapAlarm.byUIDLen > 0 && struFaceSnapAlarm.pUIDBuffer != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; sprintf(cFilename, "%s\\%s[%d][%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\SnapUID[%s].txt", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapAlarm.pUIDBuffer, struFaceSnapAlarm.byUIDLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceSnapAlarm.dwFacePicLen > 0 && struFaceSnapAlarm.pBuffer1 != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; sprintf(cFilename, "%s\\%s[%d][%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceSnapAlarm.byUploadEventDataType == 0) { sprintf(cFilename, "%s\\SnapPic[%s].jpg", cFilename, chTime); } else { sprintf(cFilename, "%s\\SnapURL[%s].txt", cFilename, chTime); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapAlarm.pBuffer1, struFaceSnapAlarm.dwFacePicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceSnapAlarm.dwBackgroundPicLen > 0 && struFaceSnapAlarm.pBuffer2 != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; sprintf(cFilename, "%s\\%s[%d][%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceSnapAlarm.byUploadEventDataType == 0) { sprintf(cFilename, "%s\\BackgroundPic[%s].jpg", cFilename, chTime); } else { sprintf(cFilename, "%s\\BackgroundPic[%s].txt", cFilename, chTime); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapAlarm.pBuffer2, struFaceSnapAlarm.dwBackgroundPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } void CClientDemoDlg::ProcFaceDetectionAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szPicFace[1024] = {0}; //char *pPicFace = szPicFace; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_FACE_DETECTION struFaceDetectionAlarm = {0}; memcpy(&struFaceDetectionAlarm, pAlarmInfo, sizeof(struFaceDetectionAlarm)); // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struFaceDetectionAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struFaceDetectionAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struFaceDetectionAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struFaceDetectionAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struFaceDetectionAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struFaceDetectionAlarm.dwAbsTime); NET_DVR_TIME struRelativeTime = {0}; struRelativeTime.dwYear = GET_YEAR(struFaceDetectionAlarm.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struFaceDetectionAlarm.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struFaceDetectionAlarm.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struFaceDetectionAlarm.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struFaceDetectionAlarm.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struFaceDetectionAlarm.dwRelativeTime); for (int i = 0; i < MAX_FACE_PIC_NUM; i++) { if (struFaceDetectionAlarm.struFacePic[i].fHeight != 0 && \ struFaceDetectionAlarm.struFacePic[i].fWidth != 0) // struFaceDetectionAlarm.struFacePic[i].fX != 0 && \ // struFaceDetectionAlarm.struFacePic[i].fY != 0) { sprintf(szPicFace, "[Detection Face Snap alarm]facePic:%d fHeight:%f,fWidth:%f,fX:%f,fY:%f \n", i+1, \ struFaceDetectionAlarm.struFacePic[i].fHeight, struFaceDetectionAlarm.struFacePic[i].fWidth, struFaceDetectionAlarm.struFacePic[i].fX, struFaceDetectionAlarm.struFacePic[i].fY); //pPicFace = pPicFace + strlen(pPicFace); AddLog(m_iCurDeviceIndex, ALARM_INFO_T, szPicFace); } } sprintf(szInfoBuf, "[Detection Face Snap alarm] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d flag[%d] %2.2d%2.2d] RelativeTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] Dev[ip:%s,port:%d,ivmsChan:%d] IvmsChannelEx[%d] UploadEventDataType[%d] \n", \ struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour,struAbsTime.dwMinute, struAbsTime.dwSecond, \ struFaceDetectionAlarm.byTimeDiffFlag, struFaceDetectionAlarm.cTimeDifferenceH, struFaceDetectionAlarm.cTimeDifferenceM, \ struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour,struRelativeTime.dwMinute, struRelativeTime.dwSecond, \ struFaceDetectionAlarm.struDevInfo.struDevIP.sIpV4, struFaceDetectionAlarm.struDevInfo.wPort, struFaceDetectionAlarm.struDevInfo.byIvmsChannel,\ struFaceDetectionAlarm.wDevInfoIvmsChannelEx, struFaceDetectionAlarm.byUploadEventDataType/*szPicFace*/); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struFaceDetectionAlarm.dwBackgroundPicLen > 0 && struFaceDetectionAlarm.pBackgroundPicpBuffer != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); //sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceDetectionAlarm.byUploadEventDataType == 0) { sprintf(cFilename, "%s\\Face Detection BackGround Pic[%s].jpg", cFilename, chTime); } else { sprintf(cFilename, "%s\\Face Detection BackGround Pic[%s].txt", cFilename, chTime); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { delete[](struFaceDetectionAlarm.pBackgroundPicpBuffer); struFaceDetectionAlarm.pBackgroundPicpBuffer = NULL; return; } WriteFile(hFile, struFaceDetectionAlarm.pBackgroundPicpBuffer, struFaceDetectionAlarm.dwBackgroundPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; delete[] (struFaceDetectionAlarm.pBackgroundPicpBuffer); struFaceDetectionAlarm.pBackgroundPicpBuffer = NULL; } } void CClientDemoDlg::ProcTargetLeftRegionAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_TARGET_LEFT_REGION_ALARM struTargetLeftRegionAlarm = {0}; memcpy(&struTargetLeftRegionAlarm, pAlarmInfo, sizeof(struTargetLeftRegionAlarm)); NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struTargetLeftRegionAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struTargetLeftRegionAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struTargetLeftRegionAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struTargetLeftRegionAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struTargetLeftRegionAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struTargetLeftRegionAlarm.dwAbsTime); NET_DVR_TIME struRelativeTime = {0}; struRelativeTime.dwYear = GET_YEAR(struTargetLeftRegionAlarm.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struTargetLeftRegionAlarm.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struTargetLeftRegionAlarm.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struTargetLeftRegionAlarm.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struTargetLeftRegionAlarm.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struTargetLeftRegionAlarm.dwRelativeTime); sprintf(szInfoBuf, "Target Left Region alarm Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] RelativeTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] Dev[ip:%s,port:%d,ivmsChan:%d] TargetType[%d] leftDirection[%d]\n",\ struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour,struAbsTime.dwMinute, struAbsTime.dwSecond, \ struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour,struRelativeTime.dwMinute, struRelativeTime.dwSecond, \ struTargetLeftRegionAlarm.struDevInfo.struDevIP.sIpV4, struTargetLeftRegionAlarm.struDevInfo.wPort, struTargetLeftRegionAlarm.struDevInfo.byIvmsChannel, \ struTargetLeftRegionAlarm.byTargetType, struTargetLeftRegionAlarm.byLeftDirection); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcFaceSnapMatchAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_VCA_FACESNAP_MATCH_ALARM struFaceSnapMatchAlarm = {0}; memcpy(&struFaceSnapMatchAlarm, pAlarmInfo, sizeof(struFaceSnapMatchAlarm)); // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwDay = GET_DAY(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); if (struFaceSnapMatchAlarm.struSnapInfo.dwUIDLen > 0 && struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer != NULL) { FaceSnapMatchAlarmInfo(wParam, lParam); return; } char tempFDID[256] = {0}; if (struFaceSnapMatchAlarm.struBlackListInfo.dwFDIDLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.dwFDIDLen < sizeof(tempFDID) && struFaceSnapMatchAlarm.struBlackListInfo.pFDID != NULL) { memcpy(tempFDID, struFaceSnapMatchAlarm.struBlackListInfo.pFDID, struFaceSnapMatchAlarm.struBlackListInfo.dwFDIDLen); } char temppID[256] = { 0 }; if (struFaceSnapMatchAlarm.struBlackListInfo.dwPIDLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.dwPIDLen < sizeof(temppID) && struFaceSnapMatchAlarm.struBlackListInfo.pPID != NULL) { memcpy(temppID, struFaceSnapMatchAlarm.struBlackListInfo.pPID, struFaceSnapMatchAlarm.struBlackListInfo.dwPIDLen); } char tempFDDesc[256] = { 0 }; if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFDDescriptionLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFDDescriptionLen < sizeof(tempFDDesc) && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer != NULL) { memcpy(tempFDDesc, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFDDescriptionLen); } string strFDDesc = UTF82ASCII(tempFDDesc); char tempFCAddition[256] = { 0 }; if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen < sizeof(tempFCAddition) && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer != NULL) { memcpy(tempFCAddition, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen); } string strFCAddition = UTF82ASCII(tempFCAddition); sprintf(szInfoBuf, "Face Snap Match alarm Channel[%d] IvmsChannel[%d] BrokenNetHttp[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d diff[%2.2d%2.2d] FaceID[%d] BlackList ID[%d] StorageIP[%s]-StoragePort[%d] Sex[%d] Glasses[%d] Age[%d] FacePicQuality[%d]\ StayDuration[%0.3f] MatchPicNum[%d] struRegion[%0.1f, %0.1f, %0.1f, %0.1f] PicTransType[%d] FDID[%s] PID[%s] FDDesc[%s] Similarity[%f] ThresholdValue[%d]\ ListType[%d] ContrastStatus[%d] ModelingStatus[%d] Mask[%d] Smile[%d] FCAddtion[%s] Ethnic[%d] LivenessDetectionStatus[%d] IsNoSaveFDPicture[%d] byRealTimeContrast[%d]\n", struFaceSnapMatchAlarm.struSnapInfo.struDevInfo.byChannel, struFaceSnapMatchAlarm.struSnapInfo.struDevInfo.byIvmsChannel, struFaceSnapMatchAlarm.byBrokenNetHttp, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, \ struFaceSnapMatchAlarm.cTimeDifferenceH, struFaceSnapMatchAlarm.cTimeDifferenceM, \ struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicID, \ struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwRegisterID, \ struFaceSnapMatchAlarm.sStorageIP, struFaceSnapMatchAlarm.wStoragePort, \ struFaceSnapMatchAlarm.struSnapInfo.bySex, struFaceSnapMatchAlarm.struSnapInfo.byGlasses, \ struFaceSnapMatchAlarm.struSnapInfo.byAge, struFaceSnapMatchAlarm.struSnapInfo.byFacePicQuality, struFaceSnapMatchAlarm.struSnapInfo.fStayDuration, struFaceSnapMatchAlarm.byMatchPicNum, \ struFaceSnapMatchAlarm.struRegion.fX, struFaceSnapMatchAlarm.struRegion.fY, struFaceSnapMatchAlarm.struRegion.fWidth, struFaceSnapMatchAlarm.struRegion.fHeight, struFaceSnapMatchAlarm.byPicTransType, tempFDID, temppID, strFDDesc.c_str(), struFaceSnapMatchAlarm.fSimilarity, struFaceSnapMatchAlarm.struBlackListInfo.wThresholdValue, \ struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.byType, struFaceSnapMatchAlarm.byContrastStatus, struFaceSnapMatchAlarm.byModelingStatus, struFaceSnapMatchAlarm.byMask, struFaceSnapMatchAlarm.bySmile, (char*)tempFCAddition, struFaceSnapMatchAlarm.struSnapInfo.byEthnic, struFaceSnapMatchAlarm.byLivenessDetectionStatus, \ struFaceSnapMatchAlarm.struBlackListInfo.byIsNoSaveFDPicture, struFaceSnapMatchAlarm.struBlackListInfo.byRealTimeContrast); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicLen > 0 && struFaceSnapMatchAlarm.struSnapInfo.pBuffer1 != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; // SYSTEMTIME t; // GetLocalTime(&t); // char chTime[128]; // sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceSnapMatchAlarm.byPicTransType) { sprintf(cFilename, "%s\\Match_SnapPic[%s].txt", cFilename, chTime); } else { sprintf(cFilename, "%s\\Match SnapPic[%s].jpg", cFilename, chTime); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.struSnapInfo.pBuffer1, struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.dwBlackListPicLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1 != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; // SYSTEMTIME t; // GetLocalTime(&t); // char chTime[128]; // sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceSnapMatchAlarm.byPicTransType) { sprintf(cFilename, "%s\\Match_BlackList_Pic[%s].txt", cFilename, chTime); } else { sprintf(cFilename, "%s\\Match BlackList Pic[%s].jpg", cFilename, chTime); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1, struFaceSnapMatchAlarm.struBlackListInfo.dwBlackListPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceSnapMatchAlarm.dwSnapPicLen > 0 && struFaceSnapMatchAlarm.pSnapPicBuffer != NULL) { char cFilename[256] = { 0 }; int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; HANDLE hFile; DWORD dwReturn; sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFaceSnapMatchAlarm.byPicTransType) sprintf(cFilename, "%s\\Match_SnapBigPic[%s].txt", cFilename, chTime); else sprintf(cFilename, "%s\\MatchSnapBigPic[%s].jpg", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.pSnapPicBuffer, struFaceSnapMatchAlarm.dwSnapPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend != NULL) { char cFilename[256] = { 0 }; int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; HANDLE hFile; DWORD dwReturn; sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\PersonInfoXML[%s].txt", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struFaceSnapMatchAlarm.struSnapInfo.pBuffer1 != NULL) { delete []struFaceSnapMatchAlarm.struSnapInfo.pBuffer1; struFaceSnapMatchAlarm.struSnapInfo.pBuffer1 = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1 != NULL) { delete []struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1; struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1 = NULL; } if (struFaceSnapMatchAlarm.pSnapPicBuffer != NULL) { delete[]struFaceSnapMatchAlarm.pSnapPicBuffer; struFaceSnapMatchAlarm.pSnapPicBuffer = NULL; } if (struFaceSnapMatchAlarm.pModelDataBuffer != NULL) { delete[]struFaceSnapMatchAlarm.pModelDataBuffer; struFaceSnapMatchAlarm.pModelDataBuffer = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend != NULL) { delete[]struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend; struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend = NULL; } if (struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer != NULL) { delete[]struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer; struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.pFDID != NULL) { delete[]struFaceSnapMatchAlarm.struBlackListInfo.pFDID; struFaceSnapMatchAlarm.struBlackListInfo.pFDID = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.pPID != NULL) { delete[]struFaceSnapMatchAlarm.struBlackListInfo.pPID; struFaceSnapMatchAlarm.struBlackListInfo.pPID = NULL; } } void CClientDemoDlg::FaceSnapMatchAlarmInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_VCA_FACESNAP_MATCH_ALARM struFaceSnapMatchAlarm = { 0 }; memcpy(&struFaceSnapMatchAlarm, pAlarmInfo, sizeof(struFaceSnapMatchAlarm)); char sInfo[5120] = { 0 }; // NET_VCA_FACESNAP_MATCH_ALARM sprintf(sInfo, "NET_VCA_FACESNAP_MATCH_ALARM \r\n"); sprintf(sInfo, "%s fSimilarity=%0.3f \r\n", sInfo, struFaceSnapMatchAlarm.fSimilarity); sprintf(sInfo, "%s byMatchPicNum=%d \r\n", sInfo, struFaceSnapMatchAlarm.byMatchPicNum); sprintf(sInfo, "%s wStoragePort=%d \r\n", sInfo, struFaceSnapMatchAlarm.wStoragePort); sprintf(sInfo, "%s dwSnapPicLen=%d \r\n", sInfo, struFaceSnapMatchAlarm.dwSnapPicLen); sprintf(sInfo, "%s dwModelDataLen=%d \r\n", sInfo, struFaceSnapMatchAlarm.dwModelDataLen); sprintf(sInfo, "%s sStorageIP=%s \r\n", sInfo, struFaceSnapMatchAlarm.sStorageIP); sprintf(sInfo, "%s struRegion[%0.1f, %0.1f, %0.1f, %0.1f] \r\n", sInfo, \ struFaceSnapMatchAlarm.struRegion.fX, struFaceSnapMatchAlarm.struRegion.fY, struFaceSnapMatchAlarm.struRegion.fWidth, struFaceSnapMatchAlarm.struRegion.fHeight); sprintf(sInfo, "%s byLivenessDetectionStatus=%d \r\n", sInfo, struFaceSnapMatchAlarm.byLivenessDetectionStatus); // NET_VCA_FACESNAP_INFO_ALARM sprintf(sInfo, "%sNET_VCA_FACESNAP_INFO_ALARM \r\n", sInfo); sprintf(sInfo, "%s dwRelativeTime=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); sprintf(sInfo, "%s dwAbsTime=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); sprintf(sInfo, "%s dwSnapFacePicID=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicID); sprintf(sInfo, "%s dwSnapFacePicLen=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicLen); sprintf(sInfo, "%s byFaceScore=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byFaceScore); sprintf(sInfo, "%s bySex=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.bySex); sprintf(sInfo, "%s byGlasses=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byGlasses); sprintf(sInfo, "%s byAge=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byAge); sprintf(sInfo, "%s byAgeDeviation=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byAgeDeviation); sprintf(sInfo, "%s byAgeGroup=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byAgeGroup); sprintf(sInfo, "%s byFacePicQuality=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byFacePicQuality); sprintf(sInfo, "%s dwUIDLen=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.dwUIDLen); sprintf(sInfo, "%s fStayDuration=%0.3f \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.fStayDuration); sprintf(sInfo, "%s byEthnic=%d \r\n", sInfo, struFaceSnapMatchAlarm.struSnapInfo.byEthnic); // NET_VCA_BLACKLIST_INFO_ALARM sprintf(sInfo, "%sNET_VCA_BLACKLIST_INFO_ALARM", sInfo); sprintf(sInfo, "%s dwBlackListPicLen=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.dwBlackListPicLen); sprintf(sInfo, "%s byIsNoSaveFDPicture=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.byIsNoSaveFDPicture); sprintf(sInfo, "%s byRealTimeContrast=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.byRealTimeContrast); // NET_VCA_BLACKLIST_INFO sprintf(sInfo, "%sNET_VCA_BLACKLIST_INFO", sInfo); sprintf(sInfo, "%s dwRelativeTime=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwRegisterID); sprintf(sInfo, "%s dwGroupNo=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwGroupNo); sprintf(sInfo, "%s byType=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.byType); sprintf(sInfo, "%s byLevel=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.byLevel); sprintf(sInfo, "%s byRemark=%s \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.byRemark); // NET_VCA_HUMAN_ATTRIBUTE sprintf(sInfo, "%sNET_VCA_HUMAN_ATTRIBUTE\r\n", sInfo); sprintf(sInfo, "%s bySex=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.bySex); sprintf(sInfo, "%s byCertificateType=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.byCertificateType); sprintf(sInfo, "%s byBirthDate=%s \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.byBirthDate); sprintf(sInfo, "%s byName=%s \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.byName); sprintf(sInfo, "%s byCertificateNumber=%s \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.byCertificateNumber); sprintf(sInfo, "%s byAgeGroup=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.byAgeGroup); // NET_DVR_AREAINFOCFG sprintf(sInfo, "%sNET_DVR_AREAINFOCFG \r\n", sInfo); sprintf(sInfo, "%s dwCode=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.struNativePlace.dwCode); sprintf(sInfo, "%s wNationalityID=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.struNativePlace.wNationalityID); sprintf(sInfo, "%s wProvinceID=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.struNativePlace.wProvinceID); sprintf(sInfo, "%s wCityID=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.struNativePlace.wCityID); sprintf(sInfo, "%s wCountyID=%d \r\n", sInfo, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.struNativePlace.wCountyID); // 打印信息 NET_DVR_TIME struAbsTime = { 0 }; struAbsTime.dwYear = GET_YEAR(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwDay = GET_DAY(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struFaceSnapMatchAlarm.struSnapInfo.dwAbsTime); NET_DVR_TIME struRelativeTime = { 0 }; struRelativeTime.dwYear = GET_YEAR(struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struFaceSnapMatchAlarm.struSnapInfo.dwRelativeTime); char tempFDID[256] = { 0 }; if (struFaceSnapMatchAlarm.struBlackListInfo.dwFDIDLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.pFDID != NULL) { memcpy(tempFDID, struFaceSnapMatchAlarm.struBlackListInfo.pFDID, struFaceSnapMatchAlarm.struBlackListInfo.dwFDIDLen); } char temppID[256] = { 0 }; if (struFaceSnapMatchAlarm.struBlackListInfo.dwPIDLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.pPID != NULL) { memcpy(temppID, struFaceSnapMatchAlarm.struBlackListInfo.pPID, struFaceSnapMatchAlarm.struBlackListInfo.dwPIDLen); } char *tempFDDesc = new char[struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFDDescriptionLen]; if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFDDescriptionLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer != NULL) { memcpy(tempFDDesc, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFDDescriptionBuffer, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFDDescriptionLen); } string strFDDesc = UTF82ASCII(tempFDDesc); char *tempFCAddition = new char[struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen]; if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer != NULL) { memcpy(tempFCAddition, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.pFCAdditionInfoBuffer, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwFCAdditionInfoLen); } string strFCAddition = UTF82ASCII(tempFCAddition); sprintf(szInfoBuf, "Face Snap Match alarm Channel[%d] IvmsChannel[%d] BrokenNetHttp[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d diff[%2.2d%2.2d] \ Relate[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] \ FaceID[%d] BlackList ID[%d] StorageIP[%s]-StoragePort[%d] Sex[%d] Glasses[%d] Age[%d] FacePicQuality[%d]\ StayDuration[%0.3f] MatchPicNum[%d] struRegion[%0.1f, %0.1f, %0.1f, %0.1f] PicTransType[%d] FDID[%s] PID[%s] FDDesc[%s] Similarity[%f] ThresholdValue[%d]\ ListType[%d] ContrastStatus[%d] ModelingStatus[%d] Mask[%d] Smile[%d] \ FCAddtion[%s] Ethnic[%d] LivenessDetectionStatus[%d] IsNoSaveFDPicture[%d] byRealTimeContrast[%d]\n", struFaceSnapMatchAlarm.struSnapInfo.struDevInfo.byChannel, struFaceSnapMatchAlarm.struSnapInfo.struDevInfo.byIvmsChannel, struFaceSnapMatchAlarm.byBrokenNetHttp, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, \ struFaceSnapMatchAlarm.cTimeDifferenceH, struFaceSnapMatchAlarm.cTimeDifferenceM, \ struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour, struRelativeTime.dwMinute, struRelativeTime.dwSecond,\ struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicID, \ struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.dwRegisterID, \ struFaceSnapMatchAlarm.sStorageIP, struFaceSnapMatchAlarm.wStoragePort, \ struFaceSnapMatchAlarm.struSnapInfo.bySex, struFaceSnapMatchAlarm.struSnapInfo.byGlasses, \ struFaceSnapMatchAlarm.struSnapInfo.byAge, struFaceSnapMatchAlarm.struSnapInfo.byFacePicQuality, struFaceSnapMatchAlarm.struSnapInfo.fStayDuration, struFaceSnapMatchAlarm.byMatchPicNum, \ struFaceSnapMatchAlarm.struRegion.fX, struFaceSnapMatchAlarm.struRegion.fY, struFaceSnapMatchAlarm.struRegion.fWidth, struFaceSnapMatchAlarm.struRegion.fHeight, struFaceSnapMatchAlarm.byPicTransType, tempFDID, temppID, strFDDesc.c_str(), struFaceSnapMatchAlarm.fSimilarity, struFaceSnapMatchAlarm.struBlackListInfo.wThresholdValue, \ struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.byType, struFaceSnapMatchAlarm.byContrastStatus, struFaceSnapMatchAlarm.byModelingStatus, struFaceSnapMatchAlarm.byMask, struFaceSnapMatchAlarm.bySmile, strFCAddition.c_str(), struFaceSnapMatchAlarm.struSnapInfo.byEthnic, struFaceSnapMatchAlarm.byLivenessDetectionStatus, \ struFaceSnapMatchAlarm.struBlackListInfo.byIsNoSaveFDPicture, struFaceSnapMatchAlarm.struBlackListInfo.byRealTimeContrast); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); delete[] tempFDDesc; tempFDDesc = NULL; delete[] tempFCAddition; tempFCAddition = NULL; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); int iPort = pAlarmDev->wLinkPort; char cFilename[256] = { 0 }; char cFilenameTemp[256] = { 0 }; memset(cFilenameTemp, 0, 256); BYTE cUID[64] = { 0 }; if (struFaceSnapMatchAlarm.struSnapInfo.dwUIDLen > 0 && struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer != NULL) { memcpy(cUID, struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer, struFaceSnapMatchAlarm.struSnapInfo.dwUIDLen - 1); sprintf(cFilename, "%s\\%s[%d][facematch]\\", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { int i = GetLastError(); CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%sAbs_%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d_", cFilename, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, \ struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond); for (int i = 0; i < 17; i++) { if (cUID[i] != '0') { sprintf(cFilename, "%s%c", cFilename, cUID[i]); } } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { int i = GetLastError(); CreateDirectory(cFilename, NULL); } DWORD dwReturn = 0; HANDLE hFile = NULL; sprintf(cFilenameTemp, "%s\\AlarmInfo[%s--fSimilarity=%0.3f].txt", cFilename, chTime, struFaceSnapMatchAlarm.fSimilarity); hFile = CreateFile(cFilenameTemp, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { int i = GetLastError(); return; } WriteFile(hFile, sInfo, 5120, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } else { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d][%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } } memset(cFilenameTemp, 0, 256); if (struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicLen > 0 && struFaceSnapMatchAlarm.struSnapInfo.pBuffer1 != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; HANDLE hFile; DWORD dwReturn; if (struFaceSnapMatchAlarm.byPicTransType) { sprintf(cFilenameTemp, "%s\\Match_SnapPic[%s].txt", cFilename, chTime); } else { sprintf(cFilenameTemp, "%s\\MatchSnapPic[%s].jpg", cFilename, chTime); } hFile = CreateFile(cFilenameTemp, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { int i = GetLastError(); return; } WriteFile(hFile, struFaceSnapMatchAlarm.struSnapInfo.pBuffer1, struFaceSnapMatchAlarm.struSnapInfo.dwSnapFacePicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } memset(cFilenameTemp, 0, 256); if (struFaceSnapMatchAlarm.dwSnapPicLen > 0 && struFaceSnapMatchAlarm.pSnapPicBuffer != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; HANDLE hFile; DWORD dwReturn; if (struFaceSnapMatchAlarm.byPicTransType) { sprintf(cFilenameTemp, "%s\\Match_SnapBigPic[%s].txt", cFilename, chTime); } else { sprintf(cFilenameTemp, "%s\\MatchSnapBigPic[%s].jpg", cFilename, chTime); } hFile = CreateFile(cFilenameTemp, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.pSnapPicBuffer, struFaceSnapMatchAlarm.dwSnapPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } memset(cFilenameTemp, 0, 256); if (struFaceSnapMatchAlarm.struBlackListInfo.dwBlackListPicLen > 0 && struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1 != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; HANDLE hFile; DWORD dwReturn; if (struFaceSnapMatchAlarm.byPicTransType) { sprintf(cFilenameTemp, "%s\\Match_BlackList_Pic[%s].txt", cFilename, chTime); } else { sprintf(cFilenameTemp, "%s\\MatchBlackListPic[%d%d].jpg", cFilename, struFaceSnapMatchAlarm.struBlackListInfo.dwBlackListPicLen, g_iCount); } hFile = CreateFile(cFilenameTemp, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1, struFaceSnapMatchAlarm.struBlackListInfo.dwBlackListPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } memset(cFilenameTemp, 0, 256); if (struFaceSnapMatchAlarm.dwModelDataLen > 0 && struFaceSnapMatchAlarm.pModelDataBuffer != NULL) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; HANDLE hFile; DWORD dwReturn; sprintf(cFilenameTemp, "%s\\MatchBlackLisModelData[%s].txt", cFilename, chTime); hFile = CreateFile(cFilenameTemp, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.pModelDataBuffer, struFaceSnapMatchAlarm.dwModelDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } memset(cFilenameTemp, 0, 256); if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen > 0 && struFaceSnapMatchAlarm.pModelDataBuffer != NULL) { HANDLE hFile; DWORD dwReturn; sprintf(cFilenameTemp, "%s\\MatchBlackListCustomInfoLen[%d%d].txt", cFilename, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen, g_iCount); hFile = CreateFile(cFilenameTemp, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend, struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.dwPersonInfoExtendLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } g_iCount++; if (struFaceSnapMatchAlarm.struSnapInfo.pBuffer1 != NULL) { delete[]struFaceSnapMatchAlarm.struSnapInfo.pBuffer1; struFaceSnapMatchAlarm.struSnapInfo.pBuffer1 = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1 != NULL) { delete[]struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1; struFaceSnapMatchAlarm.struBlackListInfo.pBuffer1 = NULL; } if (struFaceSnapMatchAlarm.pSnapPicBuffer != NULL) { delete[]struFaceSnapMatchAlarm.pSnapPicBuffer; struFaceSnapMatchAlarm.pSnapPicBuffer = NULL; } if (struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer != NULL) { delete[]struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer; struFaceSnapMatchAlarm.struSnapInfo.pUIDBuffer = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend != NULL) { delete[]struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend; struFaceSnapMatchAlarm.struBlackListInfo.struBlackListInfo.struAttribute.pPersonInfoExtend = NULL; } if (struFaceSnapMatchAlarm.pModelDataBuffer != NULL) { delete[]struFaceSnapMatchAlarm.pModelDataBuffer; struFaceSnapMatchAlarm.pModelDataBuffer = NULL; } if (struFaceSnapMatchAlarm.struBlackListInfo.pFDID != NULL) { delete[]struFaceSnapMatchAlarm.struBlackListInfo.pFDID; struFaceSnapMatchAlarm.struBlackListInfo.pFDID = NULL; } } void CClientDemoDlg::ProcRuleInfoUpload(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_RULE_INFO_ALARM struRuleInfo = {0}; memcpy(&struRuleInfo, pAlarmInfo, sizeof(struRuleInfo)); int i = struRuleInfo.struDevInfo.byChannel - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struRuleInfo.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struRuleInfo.dwAbsTime); struAbsTime.dwDay = GET_DAY(struRuleInfo.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struRuleInfo.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struRuleInfo.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struRuleInfo.dwAbsTime); sprintf(szInfoBuf, "Rule info Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] relative[%d] DevInfo ip[%d]port[%d]chan[%d]", struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struRuleInfo.dwRelativeTime, struRuleInfo.struDevInfo.struDevIP.sIpV4, struRuleInfo.struDevInfo.wPort, struRuleInfo.struDevInfo.byChannel); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); NET_DVR_EVENT_INFO struEventInfo = {0}; for ( i = 0; i < struRuleInfo.struEventInfoList.byNum; i++) { memcpy(&struEventInfo, &struRuleInfo.struEventInfoList.struEventInfo[i], sizeof(struEventInfo)); if (VCA_HIGH_DENSITY == struEventInfo.dwEventType) { sprintf(szInfoBuf, "High density RuleID[%d]Name[%s]density[%f]", struEventInfo.byRuleID, struEventInfo.byRuleName, struEventInfo.uEventParam.fCrowdDensity); } else if (VCA_HUMAN_ENTER == struEventInfo.dwEventType) { sprintf(szInfoBuf, "Human enter RuleID[%d]Name[%s]Human enter[%d]",struEventInfo.byRuleID, struEventInfo.byRuleName, struEventInfo.uEventParam.dwHumanIn); } else { sprintf(szInfoBuf, "event info RuleID[%d]Name[%s]", struEventInfo.byRuleID, struEventInfo.byRuleName); } AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } void CClientDemoDlg::ProcSensorAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_SENSOR_ALARM struSensorAlarm = {0}; memcpy(&struSensorAlarm, pAlarmInfo, sizeof(struSensorAlarm)); if (struSensorAlarm.bySensorChannel>48) { AfxMessageBox("模拟量通道号异常"); return; } memcpy(&m_struSensorAlarm[struSensorAlarm.bySensorChannel - 1], &struSensorAlarm, sizeof(struSensorAlarm)); // memcpy(&m_struSensorAlarm, &struSensorAlarm, sizeof(m_struSensorAlarm)); char szLan[1024] = {0}; char szName[33] = { 0 }; strncpy(szName, (char*)struSensorAlarm.byName, NAME_LEN); sprintf(szLan, "Sensor Alarm:AbsTime[%d]Name[%s]SensorChan[%d]Type[%d]AlramType[%d]AlarmMode[%u]Value[%f]", struSensorAlarm.dwAbsTime, szName, struSensorAlarm.bySensorChannel, struSensorAlarm.byType, struSensorAlarm.byAlarmType, struSensorAlarm.byAlarmMode, struSensorAlarm.fValue); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); if (g_pDlgSensor != NULL) { g_pDlgSensor->SetSensorDate(struSensorAlarm); } } void CClientDemoDlg::ProcCVRAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_CVR_ALARM struCVRAlarm = {0}; memcpy(&struCVRAlarm, pAlarmInfo, sizeof(struCVRAlarm)); char szLan[1024] = {0}; sprintf(szLan, "CVR ALARM Time[%04d-%02d-%02d %02d-%02d-%02d] AlarmLevel[%d] Status[%d] FirstType[%s] FirstIndex[%s] SecondType[%s] SecondIndex[%s] \ ThirdType[%s] ThirdIndex[%s] FourthType[%s] FourthIndex[%s]", struCVRAlarm.struTime.dwYear, struCVRAlarm.struTime.dwMonth, struCVRAlarm.struTime.dwDay, struCVRAlarm.struTime.dwHour, struCVRAlarm.struTime.dwMinute, struCVRAlarm.struTime.dwSecond, struCVRAlarm.byAlarmLevel, struCVRAlarm.byStatus, struCVRAlarm.szFirstType, struCVRAlarm.szFirstIndex, struCVRAlarm.szSecondType, struCVRAlarm.szSecondIndex, struCVRAlarm.szThirdType, struCVRAlarm.szThirdIndex, struCVRAlarm.szFourthType, struCVRAlarm.szFourthIndex); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcSensorValueUpload(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_SENSOR_ALARM struSensorValue = {0}; memcpy(&struSensorValue, pAlarmInfo, sizeof(struSensorValue)); if (struSensorValue.bySensorChannel > 48) { AfxMessageBox("模拟量通道号异常"); return; } memcpy(&m_struSensorAlarm[struSensorValue.bySensorChannel - 1], &struSensorValue, sizeof(struSensorValue)); // memcpy(&m_struSensorAlarm, &struSensorValue, sizeof(m_struSensorAlarm)); char szLan[1024] = {0}; sprintf(szLan, "ValueUpload:AbsTime[%d]Name[%s]SensorChan[%d]Type[%d]Value[%f]", struSensorValue.dwAbsTime, struSensorValue.byName, struSensorValue.bySensorChannel, struSensorValue.byType, struSensorValue.fValue); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); if (g_pDlgSensor != NULL) { g_pDlgSensor->SetSensorDate(struSensorValue); } } void CClientDemoDlg::ProcSwitchAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_SWITCH_ALARM struSwitchAlarm = {0}; memcpy(&struSwitchAlarm, pAlarmInfo, sizeof(struSwitchAlarm)); char szLan[1024] = {0}; char szName[33] = {0}; memcpy(szName, struSwitchAlarm.byName, NAME_LEN); //报警 CString tmp; if (struSwitchAlarm.byAlarmType == 0) { tmp = "normal"; } else if (struSwitchAlarm.byAlarmType == 1) { tmp = "short circuit"; } else if (struSwitchAlarm.byAlarmType == 2) { tmp = "broken circuit"; } else if (struSwitchAlarm.byAlarmType == 3) { tmp = "exception"; } else { tmp = "unknown"; } sprintf(szLan, "Switch alarm[%s], Name[%s]AlarmIn[%d]"\ , tmp, szName, struSwitchAlarm.wSwitchChannel); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcAlarmHostException(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMHOST_EXCEPTION_ALARM struAlarmHostException = {0}; memcpy(&struAlarmHostException, pAlarmInfo, sizeof(struAlarmHostException)); CString tmType; // 异常参数 1-设备防拆报警 2-设备防拆后后恢复正常 3-主电源掉电报警 4-主电源掉电后恢复正常 5-内部通信故障报警 // 6-内部通信故障后恢复正常 7-电话线断线 8-电话线断线恢复 9-自检失败报警 10-自检失败后恢复正常 // 11蓄电池欠压 12蓄电池电压恢复正常,13-蓄电池故障;14-MBUS模块掉线;15-MBUS模块掉线恢复;16-键盘掉线; //17-键盘掉线恢复;18-设备被移动;19-设备被移动复位 20-485外设线路断报警 21-485外设线路断后恢复正常 //100-子板1插上,101-子板1拔出, 103-子板2插上,104-子板2拔出 if (struAlarmHostException.dwExceptionType == 1) { tmType = "设备防拆报警"; } else if (struAlarmHostException.dwExceptionType == 2) { tmType = "设备防拆后后恢复正常"; } else if (struAlarmHostException.dwExceptionType == 3) { tmType = "主电源掉电报警"; } else if (struAlarmHostException.dwExceptionType == 4) { tmType = "主电源掉电后恢复正常"; } else if (struAlarmHostException.dwExceptionType == 5) { tmType = "内部通信故障报警"; } else if (struAlarmHostException.dwExceptionType == 6) { tmType = "内部通信故障后恢复正常"; } else if (struAlarmHostException.dwExceptionType == 7) { tmType = "电话线断线"; } else if (struAlarmHostException.dwExceptionType == 8) { tmType = "电话线断线恢复"; } else if (struAlarmHostException.dwExceptionType == 9) { tmType = "自检失败报警"; } else if (struAlarmHostException.dwExceptionType == 10) { tmType = "自检失败后恢复正常"; } else if (struAlarmHostException.dwExceptionType == 11) { tmType = "蓄电池欠压"; } else if (struAlarmHostException.dwExceptionType == 12) { tmType = "蓄电池电压恢复正常"; } else if (struAlarmHostException.dwExceptionType == 13) { tmType = "蓄电池故障"; } else if (struAlarmHostException.dwExceptionType == 14) { tmType = "MBUS模块掉线"; } else if (struAlarmHostException.dwExceptionType == 15) { tmType = "MBUS模块掉线恢复"; } else if (struAlarmHostException.dwExceptionType == 16) { tmType = "键盘掉线"; } else if (struAlarmHostException.dwExceptionType == 17) { tmType = "键盘掉线恢复"; } else if (struAlarmHostException.dwExceptionType == 18) { tmType = "设备被移动"; } else if (struAlarmHostException.dwExceptionType == 19) { tmType = "设备被移动复位"; } else if (struAlarmHostException.dwExceptionType == 20) { tmType = "485外设线路断报警"; } else if (struAlarmHostException.dwExceptionType == 21) { tmType = "485外设线路断后恢复正常"; } else if (struAlarmHostException.dwExceptionType == 22) { tmType = "硬盘满"; } else if (struAlarmHostException.dwExceptionType == 23) { tmType = "硬盘未格式化"; } else if (struAlarmHostException.dwExceptionType == 24) { tmType = "硬盘读写出错"; } else if (struAlarmHostException.dwExceptionType == 25) { tmType = "子板1插上"; } else if (struAlarmHostException.dwExceptionType == 26) { tmType = "子板1拔出"; } else if (struAlarmHostException.dwExceptionType == 27) { tmType = "子板2插上"; } else if (struAlarmHostException.dwExceptionType == 28) { tmType = "子板2拔出"; } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, tmType); } void CClientDemoDlg::ProcDeviceAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); if (COMM_ALARM_DEVICE == pAlarmDev->lCommand) { char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMINFO_DEV struDeviceAlarm = {0}; memcpy(&struDeviceAlarm, pAlarmInfo, sizeof(struDeviceAlarm)); char szLan[1024] = {0}; sprintf(szLan, "Device Alarm(CVR): type[%d], num[%d]", struDeviceAlarm.dwAlarmType, struDeviceAlarm.dwNumber); int iNumber = struDeviceAlarm.dwNumber; WORD *pContent = struDeviceAlarm.pNO; for (int i = 0; i < iNumber && i < 10; i++) { sprintf(szLan, "%s %d", szLan, *(pContent)); pContent = pContent + 1; } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } } void CClientDemoDlg::ProcDeviceV40Alarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); if (COMM_ALARM_DEVICE_V40 == pAlarmDev->lCommand) { char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMINFO_DEV_V40 struDeviceAlarm = {0}; memcpy(&struDeviceAlarm, pAlarmInfo, sizeof(struDeviceAlarm)); char szLan[1024] = {0}; sprintf(szLan, "Device Alarm(COMM_ALARM_DEVICE_V40): type[%d], num[%d],byLevel[%d]", struDeviceAlarm.dwAlarmType, struDeviceAlarm.dwNumber,struDeviceAlarm.uSubAlarmInfo.struResourceUsage.byLevel); int iNumber = struDeviceAlarm.dwNumber; WORD *pContent = struDeviceAlarm.pNO; for (int i = 0; i < iNumber && i < 10; i++) { sprintf(szLan, "%s %d", szLan, *(pContent)); pContent = pContent + 1; } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } } void CClientDemoDlg::ProcAlarmHostSatetyCabinState(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMHOST_SAFETYCABINSTATE struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); char szLan[1024] = {0}; char szLan1[64] = {0}; char szLan2[64] = {0}; char szLan3[64] = {0}; char szLan4[64] = {0}; char szLan5[64] = {0}; char szLan6[64] = {0}; char szLan7[64] = {0}; char szLan8[64] = {0}; char szLan9[64] = {0}; char szLan10[64] = {0}; char szLan11[64] = {0}; char szLan12[64] = {0}; char szLan13[64] = { 0 }; if (1 == struAlarm.byManState) { g_StringLanType(szLan1, "舱内有人; ", "someone in the cabin; "); } else { g_StringLanType(szLan1, "舱内没有人; ", "no one in the cabin; "); } if (1 == struAlarm.byEnterButton) { g_StringLanType(szLan2, "进门按钮: 按下; ", "EnterButton: on; "); } else { g_StringLanType(szLan2, "进门按钮: 不按下; ", "EnterButton: off; "); } if (1 == struAlarm.byExitButton) { g_StringLanType(szLan3, "出门按钮: 按下; ", "ExitButton: on; "); } else { g_StringLanType(szLan3, "出门按钮: 不按下; ", "ExitButton: off; "); } if (1 == struAlarm.byUrgencyButton) { g_StringLanType(szLan4, "紧急按钮: 按下; ", "UrgencyButton: off; "); } else { g_StringLanType(szLan4, "紧急按钮: 不按下; ", "UrgencyButton: off; "); } if (0 == struAlarm.byDoorState) { g_StringLanType(szLan5, "门关; ", "Door: close; "); } else { g_StringLanType(szLan5, "门开; ", "Door: open; "); } if (0 == struAlarm.byLockState) { g_StringLanType(szLan6, "锁关; ", "locker: close; "); } else { g_StringLanType(szLan6, "锁开; ", "locker: open; "); } if (0 == struAlarm.byAbnormal) { g_StringLanType(szLan7, "正常;", "Normal"); } else { g_StringLanType(szLan7, "异常;", "Abnormal"); } if (0 == struAlarm.byFanState) { g_StringLanType(szLan8, "风扇关; ", "Fan: off; "); } else { g_StringLanType(szLan8, "风扇开; ", "Fan: on; "); } if (0 == struAlarm.byLightState) { g_StringLanType(szLan9, "灯光关; ", "Light: off; "); } else { g_StringLanType(szLan9, "灯光开; ", "Light: on; "); } if (0 == struAlarm.byFollow) { g_StringLanType(szLan10, "无尾随", "Follow: no"); } else { g_StringLanType(szLan10, "有尾随", "Follow: yes"); } if (0 == struAlarm.byFaint) { g_StringLanType(szLan11, "无晕倒", "Faint: no"); } else { g_StringLanType(szLan11, "有晕倒", "Faint: yes"); } if (0 == struAlarm.byManyPerson) { g_StringLanType(szLan12, "无多人", "Single"); } else { g_StringLanType(szLan12, "有多人", "ManyPerson"); } if (0 == struAlarm.byFighting) { g_StringLanType(szLan13, "无打斗", "Not fight"); } else { g_StringLanType(szLan13, "有打斗", "Fighting"); } sprintf(szLan, "%s %s %s %s %s %s %s %s %s %s %s %s %s", szLan1, szLan2, szLan3, szLan4, szLan5, szLan6, szLan7, szLan8, szLan9, szLan10, szLan11, szLan12, szLan13); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcAlarmHostAlarmoutStatus(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMHOST_ALARMOUTSTATUS struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); char szLan[1024] = {0}; char szLanCn[1024] = {0}; char szLanEn[1024] = {0}; switch(struAlarm.byAlarmType) { case 1: //报警输出口状态 if(struAlarm.byAlarmStatus == 1) { sprintf(szLanCn, "报警输出口 %d(%s) 报警", struAlarm.wChan, struAlarm.byName); sprintf(szLanEn, "Get Alarm from AlarmOut channel %d(%s)", struAlarm.wChan, struAlarm.byName); g_StringLanType(szLan, szLanCn, szLanEn); } else { sprintf(szLanCn, "报警输出口 %d(%s) 报警取消", struAlarm.wChan, struAlarm.byName); sprintf(szLanEn, "Alarm from AlarmOut channel %d(%s) clean", struAlarm.wChan, struAlarm.byName); g_StringLanType(szLan, szLanCn, szLanEn); } break; case 2: //警号状态 if(struAlarm.byAlarmStatus == 1) { sprintf(szLanCn, "警号 %d(%s) 警号输出", struAlarm.wChan, struAlarm.byName); sprintf(szLanEn, "Get Alarm from siren %d(%s)", struAlarm.wChan, struAlarm.byName); g_StringLanType(szLan, szLanCn, szLanEn); } else { sprintf(szLanCn, "警号 %d(%s) 警号关闭", struAlarm.wChan, struAlarm.byName); sprintf(szLanEn, "Alarm from siren %d(%s) clean", struAlarm.wChan, struAlarm.byName); g_StringLanType(szLan, szLanCn, szLanEn); } break; default: break; } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcAlarmHostCIDAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_CID_ALARM struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); char szLan[1024] = {0}; char szLanCn[1024] = {0}; char szLanEn[1024] = {0}; switch (struAlarm.byReportType) { case NET_DVR_DEFENCE_ALARM: sprintf(szLanCn, "防区报警: "); sprintf(szLanEn, "Zone Alarm: "); break; case NET_DVR_VIDEO_ALARM: sprintf(szLanCn, "视频报警:"); sprintf(szLanEn, "Video Alarm:"); break; case NET_DVR_VIRTUAL_DEFENCE_ALARM: sprintf(szLanCn, "软防区报警:"); sprintf(szLanEn, "Soft Zone Alarm:"); break; case NET_DVR_HOSTAGE_ALARM: sprintf(szLanCn, "挟持报警: "); sprintf(szLanEn, "Hostage Alarm:"); break; case NET_DVR_KNOCK_DOWN_ALARM: sprintf(szLanCn, "防拆报警: "); sprintf(szLanEn, "Tamper Alarm: "); break; case NET_DVR_OPERATE_ALARM: sprintf(szLanCn, "操作:"); sprintf(szLanEn, "Operate:"); break; case NET_DVR_OHTER_ABNORMAL_ALARM: sprintf(szLanCn, "异常:"); sprintf(szLanEn, "Abnormal:"); break; case 0: sprintf(szLanCn, "CID报警:"); sprintf(szLanEn, "CID alarm:"); break; default: g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "Unknown Alarm"); return; } char sTemp1[5] = {0}; char sTemp2[33] = {0}; memcpy(sTemp1, struAlarm.sCIDCode, 4); sprintf(szLanCn, "%sCID事件号:%s", szLanCn, sTemp1); sprintf(szLanEn, "%sCID:%s", szLanEn, sTemp1); if (memcmp((char*)struAlarm.sCIDDescribe, "", NAME_LEN) != 0) { memcpy(sTemp2, struAlarm.sCIDDescribe, NAME_LEN); sprintf(szLanCn, "%s, CID事件名:%s", szLanCn, sTemp2); sprintf(szLanEn, "%s, CID describe:%s", szLanEn, sTemp2); } else { char sTempCn[64] = {0}; char sTempEn[64] = {0}; switch (atoi((char*)struAlarm.sCIDCode)) { case CID_ENTER+CID_ALARM: sprintf(sTempCn, "即时防区报警"); sprintf(sTempEn, "Instant Zone Alarm"); break; case CID_ENTER+CID_FIRE_ALARM: sprintf(sTempCn, "火警报警"); sprintf(sTempEn, "Fire Zone Alarm"); break; case CID_ENTER+CID_ABDUCT_REPORT: sprintf(sTempCn, "挟持报告"); sprintf(sTempEn, "Hostage Report"); break; case CID_ENTER+CID_SILENT_24: sprintf(sTempCn, "24小时无声防区报警"); sprintf(sTempEn, "24 H Non-audio Zone Alarm"); break; case CID_ENTER+CID_AUDIO_24: sprintf(sTempCn, "24小时有声防区报警"); sprintf(sTempEn, "24 H Audio Zone Alarm"); break; case CID_ENTER+CID_AUXILIARY_24: sprintf(sTempCn, "24小时辅助防区报警"); sprintf(sTempEn, "24 H Aux Zone Alarm"); break; case CID_ENTER+CID_SHOCK_24: sprintf(sTempCn, "24小时震动防区报警"); sprintf(sTempEn, "24 H Vib Zone Alarm"); break; case CID_ENTER+CID_PERIMETER_ALARM: sprintf(sTempCn, "周界防区报警"); sprintf(sTempEn, "Perimeter Zone Alarm"); break; case CID_ENTER+CID_INNET_ALARM: sprintf(sTempCn, "内部延时防区报警"); sprintf(sTempEn, "Internal Delay Zone Alarm"); break; case CID_ENTER+CID_ENTER_EXIT: sprintf(sTempCn, "延时防区报警"); sprintf(sTempEn, "Delay Zone Alarm"); break; case CID_ENTER+CID_DEVICE_OPEN: sprintf(sTempCn, "设备防拆"); sprintf(sTempEn, "Device Tampering Alarm"); break; case CID_ENTER+CID_AC_LOSS: sprintf(sTempCn, "交流电掉电"); sprintf(sTempEn, "AC Power Down"); break; case CID_ENTER+CID_LOW_BATT_VOL: sprintf(sTempCn, "蓄电池电压低"); sprintf(sTempEn, "Low Battery Voltage"); break; case CID_ENTER+CID_DEV_RESET: sprintf(sTempCn, "主机复位"); sprintf(sTempEn, "Host Reset"); break; case CID_ENTER+CID_PRINTER_FAIL: sprintf(sTempCn, "打印机掉线"); sprintf(sTempEn, "Printer Disconnected"); break; case CID_ENTER+CID_LINE_LOSS: sprintf(sTempCn, "电话线断开"); sprintf(sTempEn, "Telephone Disconnected"); break; case CID_ENTER+CID_BUS_LOSS: sprintf(sTempCn, "扩展总线模块掉线"); sprintf(sTempEn, "XBUS Module Disconnection"); break; case CID_ENTER+CID_DETECTOR_OPEN: sprintf(sTempCn, "防区感应器被拆"); sprintf(sTempEn, "Zone Sensor Demolishing"); break; case CID_ENTER+CID_GUARD: sprintf(sTempCn, "撤防"); sprintf(sTempEn, "Disarming"); break; case CID_ENTER+CID_GUARD_AUTO: sprintf(sTempCn, "自动撤防"); sprintf(sTempEn, "Auto Disarming"); break; case CID_ENTER+CID_CANCEL_ARM: sprintf(sTempCn, "消警"); sprintf(sTempEn, "Clear"); break; case CID_ENTER+CID_GUARD_IMME: sprintf(sTempCn, "即时撤防"); sprintf(sTempEn, "Instant Disarming"); break; case CID_ENTER+CID_KEY_ZONE_GUARD: sprintf(sTempCn, "钥匙防区撤防"); sprintf(sTempEn, "Key Zone Disarming"); break; case CID_ENTER+CID_GUARD_STAY: sprintf(sTempCn, "留守撤防"); sprintf(sTempEn, "Stay Disarming"); break; case CID_ENTER+CID_AUTOCTRL_TRIG: sprintf(sTempCn, "定时开启触发器"); sprintf(sTempEn, "Activate Trigger by Schedule"); break; case CID_ENTER + CID_ONETOUCH_AWAY_ARMING: sprintf(sTempCn, "一键外出布防"); sprintf(sTempEn, "One-touch away arming"); break; case CID_ENTER + CID_ONETOUCH_STAY_ARMING: sprintf(sTempCn, "一键留守布防"); sprintf(sTempEn, "One-touch stay arming"); break; case CID_ENTER + CID_CARD_ARMING_OR_DISARMING: sprintf(sTempCn, "刷卡撤防"); sprintf(sTempEn, "Card disarming"); break; case CID_ENTER+CID_AUTOGUARD_FAIL: sprintf(sTempCn, "自动布撤防失败"); sprintf(sTempEn, "Failed to automatically arm"); break; case CID_ENTER+CID_AOPEN_TRIG_FAIL: sprintf(sTempCn, "定时开启触发器失败"); sprintf(sTempEn, "Failed to activate the trigger"); break; case CID_ENTER+CID_ACLOSE_TRIG_FAIL: sprintf(sTempCn, "定时关闭触发器失败"); sprintf(sTempEn, "Failed to deactivate the trigger"); break; case CID_ENTER+CID_AUTOUNGUARD_FAIL: sprintf(sTempCn, "自动撤防失败"); sprintf(sTempEn, "Failed to auto disarm"); break; case CID_ENTER+CID_BYPASS: sprintf(sTempCn, "旁路"); sprintf(sTempEn, "Bypass"); break; case CID_ENTER+CID_GROUP_BYPASS: sprintf(sTempCn, "子系统组旁路"); sprintf(sTempEn, "Partition Group Bypass"); break; case CID_ENTER+CID_MANUAL_TEST_RPT: sprintf(sTempCn, "手动测试报告"); sprintf(sTempEn, "Manual Test Report"); break; case CID_ENTER+CID_AUTO_TEST_RPT: sprintf(sTempCn, "定时测试报告"); sprintf(sTempEn, "Timing Test Report"); break; case CID_ENTER+CID_ENTER_PROG: sprintf(sTempCn, "进入编程"); sprintf(sTempEn, "Enter Programming"); break; case CID_ENTER+CID_EXIT_PROG: sprintf(sTempCn, "退出编程"); sprintf(sTempEn, "Exit Programming"); break; case CID_ENTER + CID_FIELD_DETECTION: sprintf(sTempCn, "区域入侵"); sprintf(sTempEn, "Field Detection"); break; case CID_EXIT + CID_FIELD_DETECTION: sprintf(sTempCn, "区域入侵恢复"); sprintf(sTempEn, "Field Detection Reset"); break; case CID_ENTER + CID_LINE_DETECTION: sprintf(sTempCn, "跨界报警"); sprintf(sTempEn, "Line Detection"); break; case CID_EXIT + CID_LINE_DETECTION: sprintf(sTempCn, "跨界报警恢复"); sprintf(sTempEn, "Line Detection Reset"); break; case CID_ENTER + CID_PIR_ALARM: sprintf(sTempCn, "PIR报警"); sprintf(sTempEn, "PIR Alarm"); break; case CID_EXIT + CID_PIR_ALARM: sprintf(sTempCn, "PIR报警恢复"); sprintf(sTempEn, "PIR Alarm Reset"); break; case CID_ENTER + CID_SOUND_INTENSITY_RISE: sprintf(sTempCn, "声强陡升报警"); sprintf(sTempEn, "Sound Intensity Rise"); break; case CID_EXIT + CID_SOUND_INTENSITY_RISE: sprintf(sTempCn, "声强陡升报警恢复"); sprintf(sTempEn, "Sound Intensity Rise Reset"); break; case CID_ENTER + CID_SOUND_INTENSITY_DROP: sprintf(sTempCn, "声强陡降报警"); sprintf(sTempEn, "Sound Intensity Drop"); break; case CID_EXIT + CID_SOUND_INTENSITY_DROP: sprintf(sTempCn, "声强陡降报警恢复"); sprintf(sTempEn, "Sound Intensity Drop Reset"); break; case CID_ENTER + CID_AUDIO_INPUT_EXCEPTION: sprintf(sTempCn, "音频输入异常报警"); sprintf(sTempEn, "Audio Input Exception"); break; case CID_EXIT + CID_AUDIO_INPUT_EXCEPTION: sprintf(sTempCn, "音频输入异常报警恢复"); sprintf(sTempEn, "Audio Input Exception Reset"); break; case CID_ENTER+CID_SOFT_INSTAND: sprintf(sTempCn, "软防区紧急报警"); sprintf(sTempEn, "Soft Zone Emergency Alarm"); break; case CID_ENTER+CID_SOFT_FIRE: sprintf(sTempCn, "软防区火警"); sprintf(sTempEn, "Soft Zone Fire Alarm"); break; case CID_ENTER+CID_SOFT_MOBS: sprintf(sTempCn, "软防区匪警"); sprintf(sTempEn, "Soft Zone Bandit Alarm"); break; case CID_ENTER+CID_KEY_FAIL: sprintf(sTempCn, "键盘掉线"); sprintf(sTempEn, "Keyboard Loss Connection"); break; case CID_ENTER+CID_TRIGGER_FAIL: sprintf(sTempCn, "键盘总线上触发器掉线"); sprintf(sTempEn, "KBUS Trigger Disconnection"); break; case CID_ENTER+CID_GPK_FAIL: sprintf(sTempCn, "键盘总线上GP/K掉线"); sprintf(sTempEn, "KBUS GP/K Disconnection"); break; case CID_ENTER+CID_MODULE_FAIL: sprintf(sTempCn, "键盘总线上MN/K掉线"); sprintf(sTempEn, "KBUS MN/K Disconnection"); break; case CID_ENTER + CID_WIRELESS_DETECTOR_FAIL: sprintf(sTempCn, "无线探测器掉线"); sprintf(sTempEn, "Wireless Detector fail"); break; case CID_ENTER + CID_WIRELESS_DETECTOR_BATTERY_LOW: sprintf(sTempCn, "无线探测器欠压"); sprintf(sTempEn, "Wireless Detector battery low"); break; case CID_ENTER+CID_WRIE_LESS_NET: sprintf(sTempCn, "无线网络异常"); sprintf(sTempEn, "Wireless Network Exception"); break; case CID_ENTER+CID_SIM_FAULT: sprintf(sTempCn, "SIM卡异常"); sprintf(sTempEn, "SIM Card Exception"); break; case CID_ENTER + CID_WIFI_ABNORMAL: sprintf(sTempCn, "WIFI通信异常"); sprintf(sTempEn, "Wifi Abnormal"); break; case CID_ENTER + CID_RF_ABNORMAL: sprintf(sTempCn, "RF信号异常"); sprintf(sTempEn, "Rf signal Abnormal"); break; case CID_ENTER+CID_IPADDR_CONFLICT: sprintf(sTempCn, "IP冲突"); sprintf(sTempEn, "IP Address Conflict"); break; case CID_ENTER+CID_ETHERNET_BROKEN: sprintf(sTempCn, "网线断"); sprintf(sTempEn, "Network Disconnected"); break; case CID_ENTER+CID_MOTION_DECTECT: sprintf(sTempCn, "移动侦测报警开始"); sprintf(sTempEn, "Motion Detection Alarm Started"); break; case CID_ENTER+CID_MASK_ALARM: sprintf(sTempCn, "遮挡报警开始"); sprintf(sTempEn, "Tampering Alarm Started"); break; case CID_ENTER+CID_VI_LOST: sprintf(sTempCn, "视频信号丢失"); sprintf(sTempEn, "Video Signal Loss"); break; case CID_ENTER+CID_VS_MISMATCH: sprintf(sTempCn, "输入/输出视频制式不匹配"); sprintf(sTempEn, "Input/output Format Mismatch"); break; case CID_ENTER+CID_VI_EXCEPTION: sprintf(sTempCn, "视频输入异常"); sprintf(sTempEn, "Video Input Exception"); break; case CID_ENTER+CID_HD_FULL: sprintf(sTempCn, "硬盘满"); sprintf(sTempEn, "Hard disk is full"); break; case CID_ENTER+CID_HD_ERROR: sprintf(sTempCn, "硬盘出错"); sprintf(sTempEn, "Hard Disk Exception"); break; case CID_ENTER+CID_PIC_SEND_FAILED: sprintf(sTempCn, "图片上传失败"); sprintf(sTempEn, "Failed to upload the picture"); break; case CID_ENTER + CID_KEY_LOCKED: sprintf(sTempCn, "键盘锁定"); sprintf(sTempEn, "Keyboard locked"); break; case CID_ENTER+CID_GUARD_SINGLE: sprintf(sTempCn, "单防区撤防"); sprintf(sTempEn, "Single-Zone Disarming"); break; case CID_ENTER + CID_ZONE_ASSOCIATED_DETECTOR: sprintf(sTempCn, "防区添加探测器"); sprintf(sTempEn, "Zone add detector"); break; case CID_EXIT+CID_ALARM: sprintf(sTempCn, "即时防区恢复"); sprintf(sTempEn, "Instant Zone Recovered"); break; case CID_EXIT+CID_FIRE_ALARM: sprintf(sTempCn, "火警报警恢复"); sprintf(sTempEn, "Fire Zone Recovered"); break; case CID_EXIT+CID_SILENT_24: sprintf(sTempCn, "24小时无声防区恢复"); sprintf(sTempEn, "24 H Non-audio Zone Recovered"); break; case CID_EXIT+CID_AUDIO_24: sprintf(sTempCn, "24小时有声防区恢复"); sprintf(sTempEn, "24 H Audio Zone Recovered"); break; case CID_EXIT+CID_AUXILIARY_24: sprintf(sTempCn, "24小时辅助防区恢复"); sprintf(sTempEn, "24 H Aux Zone Recovered"); break; case CID_EXIT+CID_SHOCK_24: sprintf(sTempCn, "24小时震动防区恢复"); sprintf(sTempEn, "24 H Vib Zone Recovered"); break; case CID_EXIT+CID_PERIMETER_ALARM: sprintf(sTempCn, "周界防区恢复"); sprintf(sTempEn, "Perimeter Zone Recovered"); break; case CID_EXIT+CID_INNET_ALARM: sprintf(sTempCn, "内部延时防区恢复"); sprintf(sTempEn, "Internal Delay Zone Recovered"); break; case CID_EXIT+CID_ENTER_EXIT: sprintf(sTempCn, "延时防区恢复"); sprintf(sTempEn, "Delay Zone Recovered"); break; case CID_EXIT+CID_DEVICE_OPEN: sprintf(sTempCn, "设备防拆恢复"); sprintf(sTempEn, "Device Tampering Recovered"); break; case CID_EXIT+CID_AC_LOSS: sprintf(sTempCn, "交流电恢复"); sprintf(sTempEn, "AC Recovered"); break; case CID_EXIT+CID_LOW_BATT_VOL: sprintf(sTempCn, "蓄电池电压正常"); sprintf(sTempEn, "Normal Battery Voltage"); break; case CID_EXIT+CID_PRINTER_FAIL: sprintf(sTempCn, "打印机恢复"); sprintf(sTempEn, "Printer Recovered"); break; case CID_EXIT+CID_LINE_LOSS: sprintf(sTempCn, "电话线连接"); sprintf(sTempEn, "Telephone Connected"); break; case CID_EXIT+CID_BUS_LOSS: sprintf(sTempCn, "扩展总线模块恢复"); sprintf(sTempEn, "XBUS Module Connectioned"); break; case CID_EXIT+CID_DETECTOR_OPEN: sprintf(sTempCn, "防区感应器被拆恢复"); sprintf(sTempEn, "Zone Sensor Recovered"); break; case CID_EXIT+CID_GUARD: sprintf(sTempCn, "布防"); sprintf(sTempEn, "Arming"); break; case CID_EXIT+CID_GUARD_AUTO: sprintf(sTempCn, "自动布防"); sprintf(sTempEn, "Auto Arming"); break; case CID_EXIT+CID_GUARD_IMME: sprintf(sTempCn, "即时布防"); sprintf(sTempEn, "Instant Arming"); break; case CID_EXIT+CID_KEY_ZONE_GUARD: sprintf(sTempCn, "钥匙防区布防"); sprintf(sTempEn, "Key Zone Arming"); break; case CID_EXIT+CID_GUARD_STAY: sprintf(sTempCn, "留守布防"); sprintf(sTempEn, "Stay Arming"); break; case CID_EXIT+CID_FORCED_ARM: sprintf(sTempCn, "强制布防"); sprintf(sTempEn, "Forced Arming"); break; case CID_EXIT+CID_AUTOCTRL_TRIG: sprintf(sTempCn, "定时关闭触发器"); sprintf(sTempEn, "Deactivate Trigger by Schedule"); break; case CID_EXIT + CID_ONETOUCH_AWAY_ARMING: sprintf(sTempCn, "一键外出布防"); sprintf(sTempEn, "One-touch away arming"); break; case CID_EXIT + CID_ONETOUCH_STAY_ARMING: sprintf(sTempCn, "一键留守布防"); sprintf(sTempEn, "One-touch stay arming"); break; case CID_EXIT + CID_CARD_ARMING_OR_DISARMING: sprintf(sTempCn, "刷卡布防"); sprintf(sTempEn, "Card arming"); break; case CID_EXIT+CID_BYPASS: sprintf(sTempCn, "旁路恢复"); sprintf(sTempEn, "Bypass Recovered"); break; case CID_EXIT+CID_GROUP_BYPASS: sprintf(sTempCn, "子系统组旁路恢复"); sprintf(sTempEn, "Partition Group Bypass Recovered"); break; case CID_EXIT+CID_KEY_FAIL: sprintf(sTempCn, "键盘恢复"); sprintf(sTempEn, "Keyboard Recovered"); break; case CID_EXIT+CID_TRIGGER_FAIL: sprintf(sTempCn, "键盘总线上触发器恢复"); sprintf(sTempEn, "KBUS Trigger Recovered"); break; case CID_EXIT+CID_GPK_FAIL: sprintf(sTempCn, "键盘总线上GP/K恢复"); sprintf(sTempEn, "KBUS GP/K Recovered"); break; case CID_EXIT+CID_MODULE_FAIL: sprintf(sTempCn, "键盘总线上MN/K恢复"); sprintf(sTempEn, "KBUS MN/K Recovered"); break; case CID_EXIT + CID_WIRELESS_DETECTOR_FAIL: sprintf(sTempCn, "无线探测器恢复"); sprintf(sTempEn, "Wireless Detector Recovered"); break; case CID_EXIT + CID_WIRELESS_DETECTOR_BATTERY_LOW: sprintf(sTempCn, "无线探测器电量恢复正常"); sprintf(sTempEn, "Wireless Detector battery Recovered"); break; case CID_EXIT+CID_WRIE_LESS_NET: sprintf(sTempCn, "无线网络正常"); sprintf(sTempEn, "Wireless Network Recovered"); break; case CID_EXIT+CID_SIM_FAULT: sprintf(sTempCn, "SIM卡正常"); sprintf(sTempEn, "SIM Card Recovered"); break; case CID_EXIT + CID_WIFI_ABNORMAL: sprintf(sTempCn, "WIFI通信恢复"); sprintf(sTempEn, "Wifi Recovered"); break; case CID_EXIT + CID_RF_ABNORMAL: sprintf(sTempCn, "RF信号恢复"); sprintf(sTempEn, "Rf signal Recovered"); break; case CID_EXIT+CID_IPADDR_CONFLICT: sprintf(sTempCn, "IP正常"); sprintf(sTempEn, "IP address is normal"); break; case CID_EXIT+CID_ETHERNET_BROKEN: sprintf(sTempCn, "网线正常"); sprintf(sTempEn, "Network is normal"); break; case CID_EXIT+CID_MOTION_DECTECT: sprintf(sTempCn, "移动侦测报警结束"); sprintf(sTempEn, "Motion Detection Alarm Stopped"); break; case CID_EXIT+CID_MASK_ALARM: sprintf(sTempCn, "遮挡报警结束"); sprintf(sTempEn, "Tampering Alarm Stopped"); break; case CID_EXIT+CID_VI_LOST: sprintf(sTempCn, "视频信号恢复"); sprintf(sTempEn, "Video Signal Recovered"); break; case CID_EXIT+CID_VS_MISMATCH: sprintf(sTempCn, "输入/输出视频制式恢复正常"); sprintf(sTempEn, "Input/output Format Recovered"); break; case CID_EXIT+CID_VI_EXCEPTION: sprintf(sTempCn, "视频输入恢复正常"); sprintf(sTempEn, "Video Input Recovered"); break; case CID_EXIT+CID_HD_FULL: sprintf(sTempCn, "硬盘空闲"); sprintf(sTempEn, "Hard disk is free"); break; case CID_EXIT+CID_HD_ERROR: sprintf(sTempCn, "硬盘恢复正常"); sprintf(sTempEn, "Hard Disk Recovered"); break; case CID_EXIT + CID_KEY_LOCKED: sprintf(sTempCn, "键盘解锁"); sprintf(sTempEn, "Keyboard locked"); break; case CID_EXIT+CID_GUARD_SINGLE: sprintf(sTempCn, "单防区布防"); sprintf(sTempEn, "Single-Zone Arming"); break; case CID_EXIT + CID_ZONE_ASSOCIATED_DETECTOR: sprintf(sTempCn, "防区删除探测器"); sprintf(sTempEn, "Zone delete associated detector"); break; default: g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "Unknown CID describe"); return; } sprintf(szLanCn, "%s, CID事件名:%s", szLanCn, sTempCn); sprintf(szLanEn, "%s, CID describe:%s", szLanEn, sTempEn); } //中心账号 //if (strcmp((char*)struAlarm.sCenterAccount, "")) { memset(sTemp2, 0, sizeof(sTemp2)); memcpy(sTemp2, struAlarm.sCenterAccount, ACCOUNTNUM_LEN); if (0 == struAlarm.byCenterType || 1 == struAlarm.byCenterType) { memcpy(sTemp2, struAlarm.sCenterAccount, ACCOUNTNUM_LEN); } else if (2 == struAlarm.byCenterType) { memcpy(sTemp2, struAlarm.sCenterAccountV40, ACCOUNTNUM_LEN_V40); } sprintf(szLanCn, "%s, 中心账号:%s", szLanCn, sTemp2); sprintf(szLanEn, "%s, Center account:%s", szLanEn, sTemp2); } //用户名 if (0xff != struAlarm.byUserType) { if (0 == struAlarm.byUserType)//网络用户 { memset(sTemp2, 0, sizeof(sTemp2)); memcpy(sTemp2, struAlarm.sUserName, NAME_LEN); sprintf(szLanCn, "%s,网络用户名:%s", szLanCn, struAlarm.sUserName); sprintf(szLanEn, "%s,Net User Name:%s", szLanEn, struAlarm.sUserName); } else if(1 == struAlarm.byUserType)//键盘用户 { sprintf(szLanCn, "%s, 键盘用户号:%d", szLanCn, struAlarm.wKeyUserNo); sprintf(szLanEn, "%s, Keypad UserID:%d", szLanEn, struAlarm.wKeyUserNo); } else if(2 == struAlarm.byUserType)//手机用户 { memset(sTemp2, 0, sizeof(sTemp2)); memcpy(sTemp2, struAlarm.sUserName, NAME_LEN); sprintf(szLanCn, "%s,手机号:%s", szLanCn, struAlarm.sUserName); sprintf(szLanEn, "%s,Cellphone No:%s", szLanEn, struAlarm.sUserName); } else if(3 == struAlarm.byUserType)//系统用户 { memset(sTemp2, 0, sizeof(sTemp2)); memcpy(sTemp2, struAlarm.sUserName, NAME_LEN); sprintf(szLanCn, "%s,系统用户名:%s", szLanCn, struAlarm.sUserName); sprintf(szLanEn, "%s,System User Name:%s", szLanEn, struAlarm.sUserName); } else { sprintf(szLanCn, "%s, 未知用户类型", szLanCn); sprintf(szLanEn, "%s, Unknown User Type", szLanEn); } } //键盘号 if (0xff != struAlarm.byKeypadNo) { sprintf(szLanCn, "%s, 键盘号:%d", szLanCn, struAlarm.byKeypadNo); sprintf(szLanEn, "%s, KeyPad No:%d", szLanEn, struAlarm.byKeypadNo); } //子系统号 if (0xff != struAlarm.bySubSysNo) { sprintf(szLanCn, "%s, 子系统号:%d", szLanCn, struAlarm.bySubSysNo); sprintf(szLanEn, "%s, Subsystem No:%d", szLanEn, struAlarm.bySubSysNo); } //防区号 if (0xffff != struAlarm.wDefenceNo) { sprintf(szLanCn, "%s, 防区号:%d", szLanCn, struAlarm.wDefenceNo+1); sprintf(szLanEn, "%s, Zone No:%d", szLanEn, struAlarm.wDefenceNo+1); } //视频通道号 if (0xff != struAlarm.byVideoChanNo) { sprintf(szLanCn, "%s, 视频通道号:%d", szLanCn, struAlarm.byVideoChanNo); sprintf(szLanEn, "%s, Viedo Chan No:%d", szLanEn, struAlarm.byVideoChanNo); } //外接的一个视频通道号 if (0 != struAlarm.byRelativeChannel) { sprintf(szLanCn, "%s,关联通道号1:%d", szLanCn, struAlarm.byRelativeChannel); sprintf(szLanEn, "%s,Relative Chanel1 No:%d", szLanEn, struAlarm.byRelativeChannel); } //硬盘号 if (0xff != struAlarm.byDiskNo) { sprintf(szLanCn, "%s, 硬盘号:%d", szLanCn, struAlarm.byDiskNo); sprintf(szLanEn, "%s, HD No:%d", szLanEn, struAlarm.byDiskNo); } //模块地址号 if (0xffff != struAlarm.wModuleAddr) { sprintf(szLanCn, "%s, 模块地址:%d", szLanCn, struAlarm.wModuleAddr); sprintf(szLanEn, "%s, Module Address:%d", szLanEn, struAlarm.wModuleAddr); } //中继器号 if (0 != struAlarm.byRepeaterNo) { sprintf(szLanCn, "%s, 中继器号:%d", szLanCn, struAlarm.byRepeaterNo); sprintf(szLanEn, "%s, Repeater No:%d", szLanEn, struAlarm.byRepeaterNo); } //遥控器用户号 if (0 != struAlarm.wRemoteCtrllerUserNo) { sprintf(szLanCn, "%s, 遥控器用户号:%d", szLanCn, struAlarm.wRemoteCtrllerUserNo); sprintf(szLanEn, "%s, RemoteCtrller User No:%d", szLanEn, struAlarm.wRemoteCtrllerUserNo); } //IOT通道号 if (0 != struAlarm.dwIOTChannelNo) { sprintf(szLanCn, "%s, IOT通道号:%d", szLanCn, struAlarm.dwIOTChannelNo); sprintf(szLanEn, "%s, IOT Chan No:%d", szLanEn, struAlarm.dwIOTChannelNo); } if (memcmp((char*)struAlarm.byDevSerialNo, "", DEV_SERIAL_LEN) != 0) { memset(sTemp2, 0, sizeof(sTemp2)); memcpy(sTemp2, struAlarm.byDevSerialNo, DEV_SERIAL_LEN); sprintf(szLanCn, "%s, 序列号:%s", szLanCn, sTemp2); sprintf(szLanEn, "%s, serial:%s", szLanEn, sTemp2); } //sprintf(szLanCn, "标准CID号%d", struAlarm.standardCIDcode); //sprintf(szLanEn, "standardCIDcode:%d", struAlarm.standardCIDcode); g_StringLanType(szLan, szLanCn, szLanEn); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); memset(szLanCn, 0, sizeof(szLanCn)); memset(szLanEn, 0, sizeof(szLanEn)); memset(szLan, 0, sizeof(szLan)); sprintf(szLanCn, "触发报警时间:%04d-%02d-%02d %02d:%02d:%02d, 上传报警时间:%04d-%02d-%02d %02d:%02d:%02d", struAlarm.struTriggerTime.wYear, struAlarm.struTriggerTime.byMonth, struAlarm.struTriggerTime.byDay, struAlarm.struTriggerTime.byHour, \ struAlarm.struTriggerTime.byMinute, struAlarm.struTriggerTime.bySecond, struAlarm.struUploadTime.wYear, struAlarm.struUploadTime.byMonth, struAlarm.struUploadTime.byDay, struAlarm.struUploadTime.byHour\ , struAlarm.struUploadTime.byMinute, struAlarm.struUploadTime.bySecond); sprintf(szLanEn, "Trigger Time:%d-%d-%d %d:%d:%d, Upload Time:%d-%d-%d %d:%d:%d", struAlarm.struTriggerTime.wYear, struAlarm.struTriggerTime.byMonth, struAlarm.struTriggerTime.byDay, struAlarm.struTriggerTime.byHour, \ struAlarm.struTriggerTime.byMinute, struAlarm.struTriggerTime.bySecond, struAlarm.struUploadTime.wYear, struAlarm.struUploadTime.byMonth, struAlarm.struUploadTime.byDay, struAlarm.struUploadTime.byHour\ , struAlarm.struUploadTime.byMinute, struAlarm.struUploadTime.bySecond); g_StringLanType(szLan, szLanCn, szLanEn); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); memset(szLanCn, 0, sizeof(szLanCn)); memset(szLanEn, 0, sizeof(szLanEn)); memset(szLan, 0, sizeof(szLan)); sprintf(szLanCn, "标准CID号%d", struAlarm.standardCIDcode); sprintf(szLanEn, "standardCIDcode:%d", struAlarm.standardCIDcode); g_StringLanType(szLan, szLanCn, szLanEn); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcessAlarmhostUPSAlarm(char* szLanCn, char* szLanEn, LPNET_DVR_ALARMHOST_UPS_ALARMINFO lpAlarm) { //默认除以10 DWORD dwDivisionCoefficient = 10; switch (lpAlarm->byAlarmType) { case 1: sprintf(szLanCn, "%s", "A相输入电压越限"); break; case 2: sprintf(szLanCn, "%s", "B相输入电压越限"); break; case 3: sprintf(szLanCn, "%s", "C相输入电压越限"); break; case 4: sprintf(szLanCn, "%s", "A相输出电压越限5"); break; case 5: sprintf(szLanCn, "%s", "B相输出电压越限"); break; case 6: sprintf(szLanCn, "%s", "C相输出电压越限"); break; case 7: sprintf(szLanCn, "%s", "A相输入频率越限"); break; case 8: sprintf(szLanCn, "%s", "B相输入频率越限"); break; case 9: sprintf(szLanCn, "%s", "C相输入频率越限"); break; case 10: sprintf(szLanCn, "%s", "整流器电压越限报警"); break; case 11: sprintf(szLanCn, "%s", "过载报警"); break; case 12: sprintf(szLanCn, "%s", "电池电压低报警"); break; case 13: sprintf(szLanCn, "%s", "电池后备时间超低报警"); dwDivisionCoefficient = 1; break; case 14: sprintf(szLanCn, "%s", "电池温度超高报警"); break; case 15: sprintf(szLanCn, "%s", "逆变器关闭报警"); break; case 16: sprintf(szLanCn, "%s", "自动旁路开报警"); break; case 17: sprintf(szLanCn, "%s", "整流器故障报警"); break; case 18: sprintf(szLanCn, "%s", "逆变器故障报警"); break; case 19: sprintf(szLanCn, "%s", "充电器故障报警"); break; case 20: sprintf(szLanCn, "%s", "电池故障报警"); break; case 21: sprintf(szLanCn, "%s", "自动旁路故障报警"); break; default: sprintf(szLanCn, "%s", "未知报警类型"); break; } if (0xffffffff == lpAlarm->iAlarmValue) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo); } else { if (1 == dwDivisionCoefficient) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, lpAlarm->iAlarmValue); } else { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%0.1f", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, (float)lpAlarm->iAlarmValue/dwDivisionCoefficient); } } } void CClientDemoDlg::ProcessAlarmhostSwitchPowerAlarm(char* szLanCn, char* szLanEn, LPNET_DVR_ALARMHOST_SWITCH_POWER_SUPPLY_ALARMINFO lpAlarm) { //默认除以10 DWORD dwDivisionCoefficient = 10; /*报警类型:1-电池测试失败 2-AC-DC转换器故障,3-输入线/相电压AB/A越限,4-输入线/相电压BC/B越限,5-输入线/相电压CA/C越限, 6-输出电流A越限,7-输出电流B越限,8-输出电流C越限,9整流模块故障,10-风扇故障,11-直流电压越限*/ switch (lpAlarm->byAlarmType) { case 1: sprintf(szLanCn, "%s", "电池测试失败"); break; case 2: sprintf(szLanCn, "%s", "AC-DC转换器故障"); break; case 3: sprintf(szLanCn, "%s", "输入线/相电压AB/A越限"); break; case 4: sprintf(szLanCn, "%s", "输入线/相电压BC/B越限"); break; case 5: sprintf(szLanCn, "%s", "输入线/相电压CA/C越限"); break; case 6: sprintf(szLanCn, "%s", "A相输出电流越限"); break; case 7: sprintf(szLanCn, "%s", "B相输出电流越限"); break; case 8: sprintf(szLanCn, "%s", "C相输出电流越限"); break; case 9: sprintf(szLanCn, "%s", "整流模块故障"); break; case 10: sprintf(szLanCn, "%s", "风扇故障"); break; case 11: sprintf(szLanCn, "%s", "直流电压越限"); break; default: sprintf(szLanCn, "%s", "未知报警类型"); break; } if (0xffffffff == lpAlarm->iAlarmValue) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo); } else { if (1 == dwDivisionCoefficient) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, lpAlarm->iAlarmValue); } else { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%0.1f", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, (float)lpAlarm->iAlarmValue/dwDivisionCoefficient); } } } void CClientDemoDlg::ProcessAlarmhostGasDetectAlarm(char* szLanCn, char* szLanEn, LPNET_DVR_ALARMHOST_GAS_DETECT_SYS_ALARMINFO lpAlarm) { //默认除以10 DWORD dwDivisionCoefficient = 10; /*报警类型:1- SF6气体含量异常,2-氧气含量异常,3-温度值异常,4-湿度值异常,5-流量*/ switch (lpAlarm->byAlarmType) { case 1: sprintf(szLanCn, "%s", "SF6气体含量异常"); dwDivisionCoefficient = 1; break; case 2: sprintf(szLanCn, "%s", "氧气含量异常"); break; case 3: sprintf(szLanCn, "%s", "温度值异常"); break; case 4: sprintf(szLanCn, "%s", "湿度值异常"); break; case 5: sprintf(szLanCn, "%s", "流量"); dwDivisionCoefficient = 1; break; default: sprintf(szLanCn, "%s", "未知报警类型"); break; } if (0xffffffff == lpAlarm->iAlarmValue) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo); } else { if (1 == dwDivisionCoefficient) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, lpAlarm->iAlarmValue); } else { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%0.1f", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, (float)lpAlarm->iAlarmValue/dwDivisionCoefficient); } } } void CClientDemoDlg::ProcessAlarmhostTempHumiSensorAlarm(char* szLanCn, char* szLanEn, LPNET_DVR_ALARMHOST_TEMP_HUMIDITY_SENSOR_ALARMINFO lpAlarm) { //默认除以10 DWORD dwDivisionCoefficient = 10; //1-温度异常,2-湿度异常 switch (lpAlarm->byAlarmType) { case 1: sprintf(szLanCn, "%s", "温度异常"); break; case 2: sprintf(szLanCn, "%s", "湿度异常"); break; default: sprintf(szLanCn, "%s", "未知报警类型"); break; } if (0xffffffff == lpAlarm->iAlarmValue) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo); } else { if (1 == dwDivisionCoefficient) { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%d", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, lpAlarm->iAlarmValue); } else { sprintf(szLanCn, "%s, 485通道:%d, 槽位号:%d, 报警值:%0.1f", szLanCn, lpAlarm->byChanNo, lpAlarm->bySlotNo, (float)lpAlarm->iAlarmValue/dwDivisionCoefficient); } } } void CClientDemoDlg::ProcAlarmHostExternalDevAlarm(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_485_EXTERNAL_DEVICE_ALARMINFO struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); char szLan[1024] = {0}; char szLanCn[1024] = {0}; char szLanEn[1024] = {0}; switch (struAlarm.byAlarmType) { case 1: ProcessAlarmhostUPSAlarm(szLanCn, szLanEn, &struAlarm.struAlarmInfo.struUPSAlarm); break; case 2: ProcessAlarmhostSwitchPowerAlarm(szLanCn, szLanEn, &struAlarm.struAlarmInfo.struSwitchPowerAlarm); break; case 3: ProcessAlarmhostGasDetectAlarm(szLanCn, szLanEn, &struAlarm.struAlarmInfo.struGasDetectSystemAlarm); break; case 4: ProcessAlarmhostTempHumiSensorAlarm(szLanCn, szLanEn, &struAlarm.struAlarmInfo.struTempHumiditySensorAlarm); break; default: g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "Unknown Alarm"); return; } g_StringLanType(szLan, szLanCn, szLanEn); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcessAlarmhostPointValue(char* szLanCn, char* szLanEn, LPNET_DVR_ALARMHOST_POINT_VALUE lpAlarm) { //默认除以10 DWORD dwDivisionCoefficient = 1; if (1 == lpAlarm->byPointType) { dwDivisionCoefficient = 1000; } //1-本地模拟量通道,2-本地开关量通道,3-485通道,4-网络通道 switch (lpAlarm->byChanType) { case 1: sprintf(szLanCn, "本地模拟量通道%u,变量号:%u,点号%u 报警值:%0.3f", lpAlarm->dwChanNo, lpAlarm->dwVariableNo, lpAlarm->dwPointNo, (float)((float)(lpAlarm->iValue)/dwDivisionCoefficient)); break; case 2: sprintf(szLanCn, "本地开关量通道%u,变量号:%u,点号%u 报警值:%d", lpAlarm->dwChanNo, lpAlarm->dwVariableNo, lpAlarm->dwPointNo, lpAlarm->iValue); break; case 3: sprintf(szLanCn, "485通道%u槽位%u,变量号:%u,点号%u 报警值:%0.3f", lpAlarm->dwChanNo, lpAlarm->dwSubChanNo, lpAlarm->dwVariableNo, lpAlarm->dwPointNo, (float)((float)(lpAlarm->iValue)/dwDivisionCoefficient)); break; case 4: sprintf(szLanCn, "网络通道%u,变量号:%u,点号%u 报警值:%0.3f", lpAlarm->dwChanNo, lpAlarm->dwVariableNo, lpAlarm->dwPointNo, (float)((float)(lpAlarm->iValue)/dwDivisionCoefficient)); break; default: sprintf(szLanCn, "%s", "未知通道类型"); break; } } void CClientDemoDlg::ProcAlarmHostData(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMHOST_DATA_UPLOAD struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); char szLan[1024] = {0}; char szLanCn[1024] = {0}; char szLanEn[1024] = {0}; switch (struAlarm.byDataType) { case 1: //监测点数据上传 ProcessAlarmhostPointValue(szLanCn, szLanEn, &struAlarm.struAlarmData.struPointValue); break; default: g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "Unknown Alarm"); return; } g_StringLanType(szLan, szLanCn, szLanEn); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcGateAlarmHostData(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_GATE_ALARMINFO struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); sprintf(szInfoBuf, "AlarmType:[%d] DevType[%d] DevStatus[%d] AlarmTime[%d:%d:%d %d:%d:%d]\n",\ struAlarm.byAlarmType, struAlarm.byExternalDevType, struAlarm.byExternalDevStatus, struAlarm.struAlarmTime.wYear, struAlarm.struAlarmTime.byMonth, struAlarm.struAlarmTime.byDay, \ struAlarm.struAlarmTime.byHour, struAlarm.struAlarmTime.byMinute, struAlarm.struAlarmTime.bySecond); if (struAlarm.byAlarmType == 0x01) { sprintf(szInfoBuf, "%s License[%s] VehicleType[%d]", szInfoBuf, struAlarm.uAlarmInfo.struVehicleInfo.sLicense, \ struAlarm.uAlarmInfo.struVehicleInfo.byVehicleType); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcAlarmHostWirelessInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMWIRELESSINFO struAlarm = { 0 }; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); sprintf(szInfoBuf, "deveciID[%s] dataTraffic[%f] signalIntensity[%d]\n", struAlarm.byDeviceID, struAlarm.fDataTraffic, struAlarm.bySignalIntensity); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcExternalControlAlarmHostData(WPARAM wParam, LPARAM lParam)//布防报警(外控报警)2013-06-09 { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_EXTERNAL_CONTROL_ALARM struAlarm = {0}; memcpy(&struAlarm, pAlarmInfo, sizeof(struAlarm)); sprintf(szInfoBuf,"ChannelNo:[%d] Flicker:[%d] IONo:[%d] ParkingIndex:[%d] ExternalBeginTime:[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] \n", struAlarm.dwChannelNo, struAlarm.struLampStateCtrl.byFlicker, struAlarm.struLampStateCtrl.dwIONo, struAlarm.struLampStateCtrl.byParkingIndex ,struAlarm.struExternalBeginTime.dwYear, struAlarm.struExternalBeginTime.dwMonth, struAlarm.struExternalBeginTime.dwDay, struAlarm.struExternalBeginTime.dwHour, struAlarm.struExternalBeginTime.dwMinute,struAlarm.struExternalBeginTime.dwSecond); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcSceneChangeDetection(WPARAM wParam, LPARAM lParam)//2013-07-17场景变更侦测报警 { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_SCENECHANGE_DETECTION_RESULT struSceneChange = {0}; memcpy(&struSceneChange, pAlarmInfo, sizeof(struSceneChange)); g_StringLanType(szLan, "场景变更侦测报警","Scene Change Detection"); sprintf(szInfoBuf, "%s: (Device IP:[%s] Port:[%d] Device Channel:[%d] Ivms Channel:[%d]IvmsChannelEx[%d])\n", szLan, struSceneChange.struDevInfo.struDevIP.sIpV4, struSceneChange.struDevInfo.wPort, struSceneChange.struDevInfo.byChannel, struSceneChange.struDevInfo.byIvmsChannel, struSceneChange.wDevInfoIvmsChannelEx); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcHotSpare(WPARAM wParam, LPARAM lParam)//2013-07-17热备异常报警 { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARM_HOT_SPARE struAlarmHotSpare = {0}; memcpy(&struAlarmHotSpare, pAlarmInfo, sizeof(struAlarmHotSpare)); g_StringLanType(szLan, "热备异常报警","Scene Change Detection"); switch (struAlarmHotSpare.dwExceptionCase) { case 0: sprintf(szInfoBuf, "%s: (网络异常 Device IP:[%s])\n", szLan, struAlarmHotSpare.struDeviceIP.sIpV4); } AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcVehCostItem(WPARAM wParam, LPARAM lParam)//2013-11-19 出入口过车收费明细 { char szInfoBuf1[1024] = {0}; char szInfoBuf2[1024] = {0}; char szInfoBuf3[1024] = {0}; char szInfoBuf4[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_PASSVEHICLE_COST_ITEM struVehCostItem = {0}; memset(&struVehCostItem, 0, sizeof(NET_ITS_PASSVEHICLE_COST_ITEM)); memcpy(&struVehCostItem, pAlarmInfo, sizeof(NET_ITS_PASSVEHICLE_COST_ITEM)); g_StringLanType(szLan, "出入口过车收费明细","Vehicle Cost Item"); sprintf(szInfoBuf4,"%s End: \n", szLan); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf4); sprintf(szInfoBuf3, "Operator Name:[%s]; Vehicle Type:[%d]; Pay Rule ID:[%d]; Free Rule ID:[%d]\n",struVehCostItem.byOperatorName,\ struVehCostItem.byVehicleType, struVehCostItem.dwPayRuleID, struVehCostItem.dwFreeRuleID); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf3); sprintf(szInfoBuf2, "Vehicle ID:[%d]; In Time:[%s]; Out Time:[%s]; Card No:[%s]; Plate No:[%s]; Pay Cost:[%0.2f]\n", struVehCostItem.dwPassVehicleID,\ struVehCostItem.byIntime, struVehCostItem.byOuttime, struVehCostItem.byCardNo, struVehCostItem.byPlateInfo, struVehCostItem.fPayCost); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf2); sprintf(szInfoBuf1,"%s Begin: \n", szLan); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf1); } void CClientDemoDlg::ProcVehHandOver(WPARAM wParam, LPARAM lParam)//2013-11-19 出入口交接班数据 { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_HANDOVER_INFO struHandOverInfo = {0}; memset(&struHandOverInfo, 0, sizeof(NET_ITS_HANDOVER_INFO)); memcpy(&struHandOverInfo, pAlarmInfo, sizeof(NET_ITS_HANDOVER_INFO)); g_StringLanType(szLan, "出入口交接班数据","Vehicle Handover Info"); sprintf(szInfoBuf, "%s(Operator Name:[%s]; Operator Card:[%s]; Start Time:[%s]; End Time:[%s]; Total Pay:[%0.2f]; Total Records:[%d])\n", szLan,\ struHandOverInfo.byOperatorName, struHandOverInfo.byOperatorCard, struHandOverInfo.byStartTime, struHandOverInfo.byEndTime,\ struHandOverInfo.fTotal_Pay, struHandOverInfo.dwTotal_Records); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcDefocus(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char szAlarmType[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_DEFOCUS_ALARM struDefocus = { 0 }; memset(&struDefocus, 0, sizeof(NET_DVR_DEFOCUS_ALARM)); memcpy(&struDefocus, pAlarmInfo, sizeof(NET_DVR_DEFOCUS_ALARM)); NET_DVR_TIME struAbsTime = { 0 }; struAbsTime.dwYear = GET_YEAR(struDefocus.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struDefocus.dwAbsTime); struAbsTime.dwDay = GET_DAY(struDefocus.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struDefocus.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struDefocus.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struDefocus.dwAbsTime); g_StringLanType(szLan, "虚焦报警", "Audio Exception"); sprintf(szInfoBuf, "flag[%d] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d %2.2d%2.2d]%s: IvmsChannel:%d]IvmsChannelEx[%d]\n", \ struDefocus.byTimeDiffFlag, struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, \ struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struDefocus.cTimeDifferenceH, struDefocus.cTimeDifferenceM, \ szLan, struDefocus.struDevInfo.byIvmsChannel, struDefocus.wDevInfoIvmsChannelEx); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcAudioException(WPARAM wParam, LPARAM lParam)//声音异常报警上传 2014-03-21 { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; char szAlarmType[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_AUDIOEXCEPTION_ALARM struAudioException = {0}; memset(&struAudioException, 0, sizeof(NET_DVR_AUDIOEXCEPTION_ALARM)); memcpy(&struAudioException, pAlarmInfo, sizeof(NET_DVR_AUDIOEXCEPTION_ALARM)); switch (struAudioException.byAlarmType) { case 1: g_StringLanType(szAlarmType, "音频输入异常","Audio Input Exception"); break; case 2: g_StringLanType(szAlarmType, "音频输入突变","Audio Input Mutation"); break; case 3: g_StringLanType(szAlarmType, "声强陡降","Audio Decibel Dropped"); break; case 4: g_StringLanType(szAlarmType, "音频丢失","Audio Loss"); break; default: g_StringLanType(szAlarmType, "未知","Unknow"); break; } g_StringLanType(szLan, "声音异常报警","Audio Exception"); sprintf(szInfoBuf, "%s:[AlarmType:%s AudioDecibel:%d IP:%s Port:%d Channel:%d IvmsChannel:%d]IvmsChannelEx[%d]\n", szLan,\ szAlarmType, struAudioException.wAudioDecibel, struAudioException.struDevInfo.struDevIP.sIpV4, struAudioException.struDevInfo.wPort, \ struAudioException.struDevInfo.byChannel, struAudioException.struDevInfo.byIvmsChannel, struAudioException.wDevInfoIvmsChannelEx); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcHeatMapResult(WPARAM wParam, LPARAM lParam)//热度图报警上传 2014-03-21 { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; char szAlarmType[128] = {0}; char cFilename[256] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; NET_DVR_HEATMAP_RESULT struHeatMapResult = {0}; memset(&struHeatMapResult, 0, sizeof(NET_DVR_HEATMAP_RESULT)); memcpy(&struHeatMapResult, pAlarmInfo, sizeof(NET_DVR_HEATMAP_RESULT)); sprintf(cFilename, "No heat map"); if (struHeatMapResult.wArrayColumn > 0 && struHeatMapResult.wArrayLine > 0 && struHeatMapResult.pBuffer != NULL) { sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName,iPort); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\HeatMapValue[%s].txt", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struHeatMapResult.pBuffer, struHeatMapResult.wArrayColumn*struHeatMapResult.wArrayLine*struHeatMapResult.byArrayUnitType, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } g_StringLanType(szLan, "热度图报警","Heat Map Result"); sprintf(szInfoBuf, "%s:[IP:%s Port:%d Channel:%d IvmsChannel:%d StartTime%d-%d-%d %d:%d:%d flag[%d] %2.2d%2.2d] EndTime:%d-%d-%d %d:%d:%d %2.2d%2.2d] ArrayLine:%d ArrayColumn:%d HeatMapPath:%s \ MaxHeatMapValue:%d MinHeatMapValue:%d TimeHeatMapValue:%d DetSceneID:%d BrokenNetHttp:%d]IvmsChannel[%d]IvmsChannelEx[%d] ArrayUnitType[d%]\n", \ szLan, struHeatMapResult.struDevInfo.struDevIP.sIpV4, struHeatMapResult.struDevInfo.wPort, struHeatMapResult.struDevInfo.byChannel,\ struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.struStartTime.wYear, struHeatMapResult.struStartTime.byMonth,\ struHeatMapResult.struStartTime.byDay, struHeatMapResult.struStartTime.byHour, struHeatMapResult.struStartTime.byMinute,\ struHeatMapResult.struStartTime.bySecond, struHeatMapResult.byTimeDiffFlag, struHeatMapResult.cStartTimeDifferenceH, struHeatMapResult.cStartTimeDifferenceM, struHeatMapResult.struEndTime.wYear, struHeatMapResult.struEndTime.byMonth, struHeatMapResult.struEndTime.byDay, \ struHeatMapResult.struEndTime.byHour, struHeatMapResult.struEndTime.byMinute, struHeatMapResult.struEndTime.bySecond, \ struHeatMapResult.cStopTimeDifferenceH, struHeatMapResult.cStopTimeDifferenceM,\ struHeatMapResult.wArrayLine,\ struHeatMapResult.wArrayColumn, cFilename, struHeatMapResult.dwMaxHeatMapValue, struHeatMapResult.dwMinHeatMapValue, struHeatMapResult.dwTimeHeatMapValue,\ struHeatMapResult.byDetSceneID, struHeatMapResult.byBrokenNetHttp, struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.wDevInfoIvmsChannelEx, struHeatMapResult.byArrayUnitType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProVCAAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; LPNET_DVR_DEC_VCA_ALARM pStruVcaAlarm = (LPNET_DVR_DEC_VCA_ALARM)pAlarmInfo; sprintf(szInfoBuf, "COMM_ALARM_DEC_VCA dwDisplayNo[%d] bySubWinNo[%d] dwAlarmPicSize[%d]",\ pStruVcaAlarm->dwDisplayNo, pStruVcaAlarm->bySubWinNo, pStruVcaAlarm->dwAlarmPicSize); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProLCDAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; //char *szAlarmType[] = {"温度异常", "风扇异常", "屏幕离线" }; LPNET_DVR_LCD_ALARM pStruLCDAlarm = (LPNET_DVR_LCD_ALARM)pAlarmInfo; //DWORD dwIndex = (pStruLCDAlarm->byAlarmType-1)%3; // sprintf(szInfoBuf, "COMM_ALARM_LCD dwScreenID[%d], byOnOffLine[%d], byTempState[%d],byFanState[%d],byTemperature[%d] ", // pStruLCDAlarm->dwScreenID, pStruLCDAlarm->byOnOffLine,pStruLCDAlarm->byTempState, pStruLCDAlarm->byFanState, pStruLCDAlarm->byTemperature ); sprintf(szInfoBuf, "COMM_ALARM_LCD dwScreenID[%d]", pStruLCDAlarm->dwScreenID); if (! pStruLCDAlarm->byOnOffLine) //离线 { sprintf(szInfoBuf+strlen(szInfoBuf), ", 屏幕离线"); } else { sprintf(szInfoBuf+strlen(szInfoBuf), ", 屏幕在线"); sprintf(szInfoBuf+strlen(szInfoBuf), ", 板卡温度%s", (pStruLCDAlarm->byTempState==0)?"正常":"异常"); sprintf(szInfoBuf+strlen(szInfoBuf), ", 风扇%s", (pStruLCDAlarm->byFanState==0)?"关":"开"); sprintf(szInfoBuf+strlen(szInfoBuf), ", 板卡温度[%d]", pStruLCDAlarm->byTemperature); switch(pStruLCDAlarm->byFanException) { case 0: sprintf(szInfoBuf+strlen(szInfoBuf), ", 风扇异常状态: 不支持"); break; case 1: sprintf(szInfoBuf+strlen(szInfoBuf), ", 风扇异常状态: 正常"); break; case 2: sprintf(szInfoBuf+strlen(szInfoBuf), ", 风扇异常状态: 异常"); break; default: ; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } //门禁主机报警 2014-07-23 void CClientDemoDlg::ProcAccessCardAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; char szAlarmType[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ACS_ALARM_INFO struAcsAlarmInfo = {0}; memset(&struAcsAlarmInfo, 0, sizeof(struAcsAlarmInfo)); memcpy(&struAcsAlarmInfo,pAlarmInfo, sizeof(struAcsAlarmInfo) ); NET_DVR_LOG_V50 struFileInfo = {0}; struFileInfo.dwMajorType = struAcsAlarmInfo.dwMajor; struFileInfo.dwMinorType = struAcsAlarmInfo.dwMinor; CString csTmp; if (MAJOR_ALARM == struFileInfo.dwMajorType ) { AlarmMinorTypeMap(struFileInfo, csTmp); } else if(MAJOR_OPERATION == struFileInfo.dwMajorType) { OperationMinorTypeMap(struFileInfo, csTmp); } else if(MAJOR_EXCEPTION == struFileInfo.dwMajorType) { ExceptionMinorTypeMap(struFileInfo, csTmp); } else if(MAJOR_EVENT == struFileInfo.dwMajorType) { EventMinorTypeMap(struFileInfo, csTmp); } sprintf(szInfoBuf, "[%s] ", (LPCSTR)csTmp); // strcpy(szInfoBuf, szLan); char szNetUser[sizeof(struAcsAlarmInfo.sNetUser)+1] = {0}; memcpy(szNetUser, struAcsAlarmInfo.sNetUser, sizeof(struAcsAlarmInfo.sNetUser)); //时间 sprintf( szInfoBuf + strlen(szInfoBuf), " %4d-%2d-%d %2d:%2d:%2d [%s](%s) TimeType:%d", struAcsAlarmInfo.struTime.dwYear, struAcsAlarmInfo.struTime.dwMonth ,\ struAcsAlarmInfo.struTime.dwDay, struAcsAlarmInfo.struTime.dwHour, struAcsAlarmInfo.struTime.dwMinute, struAcsAlarmInfo.struTime.dwSecond, \ struAcsAlarmInfo.struRemoteHostAddr.sIpV4, szNetUser, struAcsAlarmInfo.byTimeType); if (struAcsAlarmInfo.struAcsEventInfo.byCardNo[0] != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " CardNo:%s", (char *)struAcsAlarmInfo.struAcsEventInfo.byCardNo); } #ifdef DEMO_LAN_CN const char *szCardType[] = { "未知卡", "普通卡", "残疾人卡", "黑名单卡", "巡更卡", "胁迫卡", "超级卡", "来宾卡", "解除卡" }; #else const char *szCardType[] = { "unknow", "normalcard", "disabledcard", "blacklistcard", "nightwatchcard", "stresscard", "supercard", "guestcard" , "releasecard" }; #endif BYTE byCardType = struAcsAlarmInfo.struAcsEventInfo.byCardType; if (byCardType > 0 && byCardType <= sizeof(szCardType) / sizeof(szCardType[0])) { sprintf(szInfoBuf + strlen(szInfoBuf), " CardType:%s", szCardType[byCardType]); } if (struAcsAlarmInfo.struAcsEventInfo.dwCardReaderNo != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " CardReaderNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwCardReaderNo); } if (struAcsAlarmInfo.struAcsEventInfo.dwDoorNo != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " DoorNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwDoorNo); } if (struAcsAlarmInfo.struAcsEventInfo.dwVerifyNo != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " VerifyNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwVerifyNo); } if (struAcsAlarmInfo.struAcsEventInfo.dwAlarmInNo != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " AlarmInNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwAlarmInNo); } if (struAcsAlarmInfo.struAcsEventInfo.dwAlarmOutNo != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " AlarmOutNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwAlarmOutNo); } if (struAcsAlarmInfo.struAcsEventInfo.dwCaseSensorNo != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " CaseSensorNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwCaseSensorNo); } if (struAcsAlarmInfo.struAcsEventInfo.dwRs485No != 0 ) { sprintf(szInfoBuf + strlen(szInfoBuf), " Rs485No:%d", struAcsAlarmInfo.struAcsEventInfo.dwRs485No); } if (struAcsAlarmInfo.struAcsEventInfo.dwMultiCardGroupNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " MultiCardGroupNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwMultiCardGroupNo); } if (struAcsAlarmInfo.struAcsEventInfo.byCardReaderKind != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " CardReaderKind:%d", struAcsAlarmInfo.struAcsEventInfo.byCardReaderKind); } if (struAcsAlarmInfo.struAcsEventInfo.wAccessChannel >= 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " wAccessChannel:%d", struAcsAlarmInfo.struAcsEventInfo.wAccessChannel); } if (struAcsAlarmInfo.struAcsEventInfo.dwEmployeeNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " EmployeeNo:%d", struAcsAlarmInfo.struAcsEventInfo.dwEmployeeNo); } if (struAcsAlarmInfo.struAcsEventInfo.byDeviceNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " DeviceNo:%d", struAcsAlarmInfo.struAcsEventInfo.byDeviceNo); } if (struAcsAlarmInfo.struAcsEventInfo.byDistractControlNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " DistractControlNo:%d", struAcsAlarmInfo.struAcsEventInfo.byDistractControlNo); } if (struAcsAlarmInfo.struAcsEventInfo.wLocalControllerID >= 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " wLocalControllerID:%d", struAcsAlarmInfo.struAcsEventInfo.wLocalControllerID); } if (struAcsAlarmInfo.struAcsEventInfo.byInternetAccess >= 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " byInternetAccess:%d", struAcsAlarmInfo.struAcsEventInfo.byInternetAccess); } if (struAcsAlarmInfo.struAcsEventInfo.byType >= 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " byType:%d", struAcsAlarmInfo.struAcsEventInfo.byType); } if (struAcsAlarmInfo.struAcsEventInfo.bySwipeCardType != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " bySwipeCardType:%d", struAcsAlarmInfo.struAcsEventInfo.bySwipeCardType); } if (struAcsAlarmInfo.struAcsEventInfo.byChannelControllerID != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " byChannelControllerID:%d", struAcsAlarmInfo.struAcsEventInfo.byChannelControllerID); } if (struAcsAlarmInfo.struAcsEventInfo.byChannelControllerLampID != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " byChannelControllerLampID:%d", struAcsAlarmInfo.struAcsEventInfo.byChannelControllerLampID); } if (struAcsAlarmInfo.struAcsEventInfo.byChannelControllerIRAdaptorID != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " byChannelControllerIRAdaptorID:%d", struAcsAlarmInfo.struAcsEventInfo.byChannelControllerIRAdaptorID); } if (struAcsAlarmInfo.struAcsEventInfo.byChannelControllerIREmitterID != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " byChannelControllerIREmitterID:%d", struAcsAlarmInfo.struAcsEventInfo.byChannelControllerIREmitterID); } if (struAcsAlarmInfo.struAcsEventInfo.byMACAddr[0] != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " MACAddr:%02x:%02x:%02x:%02x:%02x:%02x", struAcsAlarmInfo.struAcsEventInfo.byMACAddr[0], \ struAcsAlarmInfo.struAcsEventInfo.byMACAddr[1], struAcsAlarmInfo.struAcsEventInfo.byMACAddr[2], struAcsAlarmInfo.struAcsEventInfo.byMACAddr[3], \ struAcsAlarmInfo.struAcsEventInfo.byMACAddr[4], struAcsAlarmInfo.struAcsEventInfo.byMACAddr[5]); } if (struAcsAlarmInfo.struAcsEventInfo.dwSerialNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " dwSerialNo:%u", struAcsAlarmInfo.struAcsEventInfo.dwSerialNo); } if (struAcsAlarmInfo.wInductiveEventType != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " wInductiveEventType:%d", struAcsAlarmInfo.wInductiveEventType); } if (struAcsAlarmInfo.dwIOTChannelNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " dwIOTChannelNo:%d", struAcsAlarmInfo.dwIOTChannelNo); } if (struAcsAlarmInfo.byAcsEventInfoExtend == 1) { NET_DVR_ACS_EVENT_INFO_EXTEND struAcsEventInfoExtend = { 0 }; memset(&struAcsEventInfoExtend, 0, sizeof(struAcsEventInfoExtend)); memcpy(&struAcsEventInfoExtend, struAcsAlarmInfo.pAcsEventInfoExtend, sizeof(struAcsEventInfoExtend)); if (struAcsEventInfoExtend.dwFrontSerialNo != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " dwFrontSerialNo:%u", struAcsEventInfoExtend.dwFrontSerialNo); } #ifdef DEMO_LAN_CN const char *szUserType[] = { "未知人", "普通人(主人)", "来宾(访客)", "黑名单人", "管理员" }; #else const char *szUserType[] = { "unknow", "normal", "visitor", "blackList", "administrators" }; #endif BYTE byUserType = struAcsEventInfoExtend.byUserType; if (byUserType > 0 && byUserType < sizeof(szUserType) / sizeof(szUserType[0])) { sprintf(szInfoBuf + strlen(szInfoBuf), " UserType:%s", szUserType[byUserType]); } #ifdef DEMO_LAN_CN const char *szCurrentVerifyMode[] = { "无效", "休眠", "刷卡+密码", "刷卡", "刷卡或密码", "指纹", "指纹+密码", \ "指纹或刷卡", "指纹+刷卡", "指纹+刷卡+密码", "人脸或指纹或刷卡或密码", "人脸+指纹", "人脸+密码", "人脸+刷卡", \ "人脸", "工号+密码", "指纹或密码", "工号+指纹", "工号+指纹+密码", "人脸+指纹+刷卡", "人脸+密码+指纹", \ "工号+人脸", "人脸或人脸+刷卡", "指纹或人脸", "刷卡或人脸或密码", "刷卡或人脸", "刷卡或人脸或指纹", "刷卡或指纹或密码"}; #else const char *szCurrentVerifyMode[] = { "invalid", "sleep", "cardAndPw", "card", "cardOrPw", "fp", "fpAndPw", \ "fpOrCard", "fpAndCard", "fpAndCardAndPw", "faceOrFpOrCardOrPw", "faceAndFp", "faceAndPw", "faceAndCard", \ "face", "employeeNoAndPw", "fpOrPw", "employeeNoAndFp", "employeeNoAndFpAndPw", "faceAndFpAndCard", "faceAndPwAndFp", \ "employeeNoAndFace", "faceOrfaceAndCard", "fpOrface", "cardOrfaceOrPw" , "cardOrFace", "cardOrFaceOrFp", "cardOrFpOrPw"}; #endif BYTE byCurrentVerifyMode = struAcsEventInfoExtend.byCurrentVerifyMode; if (byCurrentVerifyMode > 0 && byCurrentVerifyMode < sizeof(szCurrentVerifyMode) / sizeof(szCurrentVerifyMode[0])) { sprintf(szInfoBuf + strlen(szInfoBuf), " CurrentVerifyMode:%s", szCurrentVerifyMode[byCurrentVerifyMode]); } if (struAcsEventInfoExtend.byCurrentEvent == 1) { sprintf(szInfoBuf + strlen(szInfoBuf), " Real Time Event"); } else if (struAcsEventInfoExtend.byCurrentEvent == 2) { sprintf(szInfoBuf + strlen(szInfoBuf), " Off Line Event"); } if (struAcsEventInfoExtend.byEmployeeNo[0] != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " EmployeeNo:%s", (char *)struAcsEventInfoExtend.byEmployeeNo); } #ifdef DEMO_LAN_CN const char *szAttendanceStatus[] = { "未定义", "上班", "下班", "开始休息", "结束休息", "开始加班", "结束加班" }; #else const char *szAttendanceStatus[] = { "undefined", "checkIn", "checkOut", "breakOut", "breakIn", "overtimeIn", "overtimeOut" }; #endif BYTE byAttendanceStatus = struAcsEventInfoExtend.byAttendanceStatus; if (byAttendanceStatus > 0 && byAttendanceStatus < sizeof(szAttendanceStatus) / sizeof(szAttendanceStatus[0])) { sprintf(szInfoBuf + strlen(szInfoBuf), " AttendanceStatus:%s", szAttendanceStatus[byAttendanceStatus]); sprintf(szInfoBuf + strlen(szInfoBuf), " StatusValue:%d", struAcsEventInfoExtend.byStatusValue); } if (struAcsEventInfoExtend.byUUID[0] != 0) { sprintf(szInfoBuf + strlen(szInfoBuf), " UUID:%s", (char *)struAcsEventInfoExtend.byUUID); } } AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struAcsAlarmInfo.dwPicDataLen > 0 && struAcsAlarmInfo.pPicData != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, struAcsAlarmInfo.struRemoteHostAddr.sIpV4/*g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName*/, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struAcsAlarmInfo.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]Major[%d]Minor[%d]NetUser[%s]_%d.txt", cFilename, chTime, \ struAcsAlarmInfo.dwMajor, struAcsAlarmInfo.dwMinor, struAcsAlarmInfo.sNetUser, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]Major[%d]Minor[%d]NetUser[%s]_%d.png", cFilename, chTime, \ struAcsAlarmInfo.dwMajor, struAcsAlarmInfo.dwMinor, struAcsAlarmInfo.sNetUser, rand() % GetTickCount()); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } AddLog(iDeviceIndex, ALARM_INFO_T, cFilename); WriteFile(hFile, struAcsAlarmInfo.pPicData, struAcsAlarmInfo.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAcsAlarmInfo.pPicData != NULL) { delete [] (struAcsAlarmInfo.pPicData); } } //压线报警暂时不对外开放。 void CClientDemoDlg::ProcCrossLineData(WPARAM wParam, LPARAM lParam)//2013-09-27 压线报警 { char szInfoBuf[1024] = {0}; char szTriggerTime[128] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_CROSSLINE_ALARM struCrossLine = {0}; memcpy(&struCrossLine, pAlarmInfo, sizeof(struCrossLine)); g_StringLanType(szLan, "压线报警","Cross Line"); sprintf(szTriggerTime, "%d-%d-%d %d:%d:%d", struCrossLine.struTriggerTime.wYear, struCrossLine.struTriggerTime.byMonth, struCrossLine.struTriggerTime.byDay, struCrossLine.struTriggerTime.byHour, struCrossLine.struTriggerTime.byMinute, struCrossLine.struTriggerTime.byDay); sprintf(szInfoBuf, "%s: (Trigger Time:[%s] Device IP:[%s] Port:[%d] Device Channel:[%d] Ivms Channel:[%d] Plate Number:[%s] Park Index:[%s])\n", szLan, szTriggerTime, struCrossLine.struDevInfo.struDevIP.sIpV4, struCrossLine.struDevInfo.wPort, struCrossLine.struDevInfo.byChannel, struCrossLine.struDevInfo.byIvmsChannel, struCrossLine.struParkInfo.sPlateNo, struCrossLine.struParkInfo.sParkIndex); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcAuxAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char sAlarmName[33] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_IPC_AUXALARM_RESULT struAuxAlarm = {0}; memcpy(&struAuxAlarm, pAlarmInfo, sizeof(struAuxAlarm)); // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; // ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); // 打印信息 CTime time = CTime::GetCurrentTime(); if (struAuxAlarm.byAlarmType == IPC_AUXALARM_PIR) { memcpy(sAlarmName, struAuxAlarm.struAuxAlarm.struPIRAlarm.byAlarmName, NAME_LEN); } else if (struAuxAlarm.byAlarmType == IPC_AUXALARM_WIRELESS) { memcpy(sAlarmName, struAuxAlarm.struAuxAlarm.struWirelessAlarm.byAlarmName, NAME_LEN); } else { strncpy(sAlarmName, "Call help", NAME_LEN); } sprintf(szInfoBuf, "AuxAlarm Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] Type[%d] AlarmName[%s]\n", time.GetYear(), time.GetMonth(), time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond(), struAuxAlarm.byAlarmType, sAlarmName); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcTMEVehicleAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_TME_VEHICLE_RESULT struTMEVehicle = {0}; memcpy(&struTMEVehicle, pAlarmInfo, sizeof(struTMEVehicle)); sprintf(szInfoBuf, "TME Vehicle Alarm Region[%d]Country[%d]LaneID[%d]CamLaneId[%d]ChanIndex[%d]MonitoringSiteID[%s]DeviceID[%s]Dir[%d]PicNum[%d]License[%s]VehicleLogoRecog[%d]VehicleSubLogoRecog[%d]PassVehicleID[%s]CardNo[%s]SwipeTime[%s]Charge[%d]History[%d]LetPass[%d]", struTMEVehicle.struPlateInfo.byRegion, struTMEVehicle.struPlateInfo.byCountry, struTMEVehicle.wLaneid, struTMEVehicle.byCamLaneId, struTMEVehicle.dwChanIndex, \ struTMEVehicle.byMonitoringSiteID, struTMEVehicle.byDeviceID, \ struTMEVehicle.byDir, struTMEVehicle.dwPicNum,struTMEVehicle.struPlateInfo.sLicense, \ struTMEVehicle.struVehicleInfo.byVehicleLogoRecog, struTMEVehicle.struVehicleInfo.byVehicleSubLogoRecog, \ struTMEVehicle.byPassVehicleID, struTMEVehicle.byCardNo, struTMEVehicle.bySwipeTime, struTMEVehicle.dwCharge,\ struTMEVehicle.byHistory, struTMEVehicle.byLetPass); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (i = 0; i < 4; i++) { if (struTMEVehicle.struPicInfo[i].dwDataLen > 0 && struTMEVehicle.struPicInfo[i].pBuffer != NULL) { sprintf(szInfoBuf, "TME picture[%d]infoType[%d]RedLightTime[%d]AbsTime[%s]CloseUpType[%d]Len[%d]", i+1, struTMEVehicle.struPicInfo[i].byType, struTMEVehicle.struPicInfo[i].dwRedLightTime, struTMEVehicle.struPicInfo[i].byAbsTime, struTMEVehicle.struPicInfo[i].byCloseUpType,\ struTMEVehicle.struPicInfo[i].dwDataLen); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struTMEVehicle.struPicInfo[i].byDataType == 0) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); } else if (struTMEVehicle.struPicInfo[i].byDataType == 1) { sprintf(cFilename, "%s\\URL_LocalTime[%s]_%d.txt",cFilename, chTime,rand() % GetTickCount()); } //sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime, i); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struTMEVehicle.struPicInfo[i].pBuffer, struTMEVehicle.struPicInfo[i].dwDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } } void CClientDemoDlg::ProcITSPlateAlarm(WPARAM wParam, LPARAM lParam) { //有扩展的XML要打印,防止不够 char szInfoBuf[2048 * 2] = {0}; char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; NET_ITS_PLATE_RESULT struPlateResult = {0}; memcpy(&struPlateResult, pAlarmInfo, sizeof(struPlateResult)); //对应通道添加报警图标 if (iDeviceIndex != -1 && iDeviceIndex < 512) { i = struPlateResult.byChanIndexEx * 256 + struPlateResult.byChanIndex - g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } // CString str = ""; //新增区域和国家信息的打印 2015-01-21 char sIllegalInfo[MAX_ILLEGAL_LEN/*64*/] = { 0 }; if (1 == struPlateResult.byIllegalFromatType) { LPNET_ITS_ILLEGAL_INFO pIllegalInfo = (LPNET_ITS_ILLEGAL_INFO)struPlateResult.pIllegalInfoBuf; if (NULL != pIllegalInfo) { memcpy(sIllegalInfo, pIllegalInfo->byIllegalInfo, MAX_ILLEGAL_LEN); } } sprintf(szInfoBuf, "ITS Plate Alarm Channel NO[%d] DriveChan[%d] IllegalFromatType[%d]IllegalInfo[%s]Analysis[%d]YellowLabel[%d]DangerousVeh[%d]MatchNo[%d]IllegalType[%d]IllegalSubType[%s]\ MonitoringSiteID[%s]DeviceID[%s]Dir[%d]CarDirectionType[%d]PicNum[%d] DetSceneID[%d] VehicleType[%d] DetectType[%d] Type[%d] DataType[%d] CloseUpType[%d]", \ struPlateResult.byChanIndexEx * 256 + struPlateResult.byChanIndex, struPlateResult.byDriveChan, \ struPlateResult.byIllegalFromatType, sIllegalInfo, \ struPlateResult.byDataAnalysis, struPlateResult.byYellowLabelCar, struPlateResult.byDangerousVehicles,\ struPlateResult.dwMatchNo, struPlateResult.wIllegalType, struPlateResult.byIllegalSubType, struPlateResult.byMonitoringSiteID, struPlateResult.byDeviceID, struPlateResult.byDir, struPlateResult.byCarDirectionType, struPlateResult.dwPicNum, struPlateResult.byDetSceneID, struPlateResult.byVehicleType, struPlateResult.byDetectType, \ struPlateResult.struPicInfo->byType, struPlateResult.struPicInfo->byDataType, struPlateResult.struPicInfo->byCloseUpType); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); sprintf(szInfoBuf, "ITS Plate Alarm PlateInfo PlateType[%d]Color[%d]Bright[%d]LicenseLen[%d]EntireBelieve[%d]Region[%d]Country[%d]Area[%d]PlateSize[%d]PlateCategory[%s]License[%s]PlateRect[x-%f y-%f w-%f h-%f] \ VehicleInfo:Index[%d]VehicleType[%d] Color[%d] RadarState[%d] Speed[%d] VehicleLogoRecog[%d] VehicleSubLogoRecog[%d] VehicleModel[%d] byIsParking[%d] dwParkingTime[%d] byIllegalType[%d] byBelieve[%d] VehiclePositionControl [%d]", \ struPlateResult.struPlateInfo.byPlateType, struPlateResult.struPlateInfo.byColor, struPlateResult.struPlateInfo.byBright, struPlateResult.struPlateInfo.byLicenseLen, struPlateResult.struPlateInfo.byEntireBelieve, struPlateResult.struPlateInfo.byRegion, struPlateResult.struPlateInfo.byCountry, struPlateResult.struPlateInfo.byArea, struPlateResult.struPlateInfo.byPlateSize, struPlateResult.struPlateInfo.sPlateCategory, struPlateResult.struPlateInfo.sLicense, struPlateResult.struPlateInfo.struPlateRect.fX, struPlateResult.struPlateInfo.struPlateRect.fY, \ struPlateResult.struPlateInfo.struPlateRect.fWidth, struPlateResult.struPlateInfo.struPlateRect.fHeight, struPlateResult.struVehicleInfo.dwIndex,\ struPlateResult.struVehicleInfo.byVehicleType, struPlateResult.struVehicleInfo.byColor, struPlateResult.struVehicleInfo.byRadarState, struPlateResult.struVehicleInfo.wSpeed, \ struPlateResult.struVehicleInfo.wVehicleLogoRecog, struPlateResult.struVehicleInfo.byVehicleSubLogoRecog, \ struPlateResult.struVehicleInfo.byVehicleModel, struPlateResult.struVehicleInfo.byIsParking, \ struPlateResult.struVehicleInfo.dwParkingTime, struPlateResult.struVehicleInfo.byIllegalType, \ struPlateResult.struVehicleInfo.byBelieve, struPlateResult.byVehiclePositionControl); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (i = 0; i < 6; i++) { if (struPlateResult.struPicInfo[i].dwDataLen > 0 && struPlateResult.struPicInfo[i].pBuffer != NULL) { sprintf(szInfoBuf, "ITS picture[%d] info Type[%d] RedLightTime[%d] AbsTime[%s %2.2d%2.2d] flag[%d] CloseUpType[%d]PlateRect[x-%f y-%f w-%f h-%f]PlateRecgRect[x-%f y-%f w-%f h-%f]", i+1, struPlateResult.struPicInfo[i].byType, struPlateResult.struPicInfo[i].dwRedLightTime, struPlateResult.struPicInfo[i].byAbsTime, struPlateResult.struPicInfo[i].cTimeDifferenceH, struPlateResult.struPicInfo[i].cTimeDifferenceM, struPlateResult.struPicInfo[i].byTimeDiffFlag, struPlateResult.struPicInfo[i].byCloseUpType, struPlateResult.struPicInfo[i].struPlateRect.fX, struPlateResult.struPicInfo[i].struPlateRect.fY, struPlateResult.struPicInfo[i].struPlateRect.fWidth, struPlateResult.struPicInfo[i].struPlateRect.fHeight, struPlateResult.struPicInfo[i].struPlateRecgRect.fX, struPlateResult.struPicInfo[i].struPlateRecgRect.fY, struPlateResult.struPicInfo[i].struPlateRecgRect.fWidth, struPlateResult.struPicInfo[i].struPlateRecgRect.fHeight); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%s flag[%d] %2.2d%2.2d", struPlateResult.struPicInfo[i].byAbsTime, struPlateResult.struPicInfo[i].byTimeDiffFlag, struPlateResult.struPicInfo[i].cTimeDifferenceH, struPlateResult.struPicInfo[i].cTimeDifferenceM); if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%d]_channel[%d]_ITS", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, struPlateResult.byChanIndex); } else { sprintf(cFilename, "%s\\%s[%d]_channel[%d]_ITS", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, struPlateResult.byChanIndex); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } char cPicType[256] = {0}; if (struPlateResult.struPicInfo[i].byDataType == 0) { if (0 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"License"); } else if (1 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"Scene"); } sprintf(cFilename, "%s\\%s_LocalTime[%s]_%d.jpg",cFilename, cPicType, chTime,rand() % GetTickCount()); } else if (struPlateResult.struPicInfo[i].byDataType == 1) { if (0 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"License"); } else if (1 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"Scene"); } sprintf(cFilename, "%s\\%s_URL_LocalTime[%s]_%d.txt",cFilename, cPicType, chTime,rand() % GetTickCount()); } //sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime, i); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struPlateResult.struPicInfo[i].pBuffer, struPlateResult.struPicInfo[i].dwDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } if (struPlateResult.struPlateInfo.dwXmlLen > 0) { char sXMLFileName[256] = { 0 }; int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(sXMLFileName, "%s\\%s[%d]_channel[%d]_ITS", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIP, iPort, struPlateResult.byChanIndex); } else { sprintf(sXMLFileName, "%s\\%s[%d]%s_channel[%d]_ITS", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, iPort, struPlateResult.byChanIndex); } if (GetFileAttributes(sXMLFileName) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(sXMLFileName, NULL); } SYSTEMTIME tNow = { 0 }; GetLocalTime(&tNow); sprintf(sXMLFileName, "%s\\ANPR_XML[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d].xml", sXMLFileName, tNow.wYear, tNow.wMonth, tNow.wDay, tNow.wHour, tNow.wMinute, tNow.wSecond, tNow.wMilliseconds); HANDLE hXMLFile = CreateFile(sXMLFileName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hXMLFile == INVALID_HANDLE_VALUE) { return; } DWORD dwReturn = 0; WriteFile(hXMLFile, struPlateResult.struPlateInfo.pXmlBuf, struPlateResult.struPlateInfo.dwXmlLen, &dwReturn, NULL); CloseHandle(hXMLFile); hXMLFile = NULL; sprintf(szInfoBuf, "ANPR XML Block Path:%s", sXMLFileName); szInfoBuf[sizeof(szInfoBuf) - 1] = 0; //防止溢出 g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } if (1 == struPlateResult.struPlateInfo.byAddInfoFlag) { NET_DVR_VEHICLE_ADDINFO struVehicleAddInfo = { 0 }; memcpy(&struVehicleAddInfo, struPlateResult.struPlateInfo.pAddInfoBuffer, sizeof(NET_DVR_VEHICLE_ADDINFO)); sprintf(szInfoBuf, "AddInfoFlag [%d] LatitudeType [%d] Degree[%d] Minute[%d] fSec[%f] \ LongitudeType [%d] Degree[%d] Minute[%d] fSec[%f] VehicleNo[%s] byVehicleMonitorTaskID[%s] byUUID[%s]", struPlateResult.struPlateInfo.byAddInfoFlag, struVehicleAddInfo.struLLPos.byLatitudeType, struVehicleAddInfo.struLLPos.struLatitude.byDegree, struVehicleAddInfo.struLLPos.struLatitude.byMinute, struVehicleAddInfo.struLLPos.struLatitude.fSec, struVehicleAddInfo.struLLPos.byLongitudeType, struVehicleAddInfo.struLLPos.struLongitude.byDegree, struVehicleAddInfo.struLLPos.struLongitude.byMinute, struVehicleAddInfo.struLLPos.struLongitude.fSec, struVehicleAddInfo.sVehicleNo, struVehicleAddInfo.byVehicleMonitorTaskID, struVehicleAddInfo.byUUID); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } void CClientDemoDlg::ProcITSPlateAlarmV50(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; if (iDeviceIndex < 0 || iDeviceIndex >= MAX_DEVICES) { return; } NET_DVR_PLATE_RESULT_V50 struPlateResult = {0}; memcpy(&struPlateResult, pAlarmInfo, sizeof(struPlateResult)); i = struPlateResult.byChanIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); // CString str = ""; //新增区域和国家信息的打印 2015-01-21 sprintf(szInfoBuf, "ITS Plate Alarm V50;IsOverWeight[%d]AxleNum[%d]AxleModel[%d]OverWeight[%f]Weight[%f]LimitWeight[%f]AxleLen[%f]DevDescInfo[%s]\ Region[%d]Country[%d]MatchNo[%d]DriveChan[%d]IllegalType[%d]IllegalSubType[%s]\ MonitoringSiteID[%s]DeviceID[%s]Dir[%d]PicNum[%d]License[%s]VehicleLogoRecog[%d]\ VehicleSubLogoRecog[%d]DetSceneID[%d]VehicleType[%d]DetectType[%d]\ Type[%d]DataType[%d]CloseUpType[%d]", struPlateResult.struWeightResult.byIsOverWeight, struPlateResult.struWeightResult.byAxleNum, struPlateResult.struWeightResult.wAxleModel, struPlateResult.struWeightResult.fOverWeight,struPlateResult.struWeightResult.fWeight, struPlateResult.struWeightResult.fLimitWeight,struPlateResult.struWeightResult.fAxleLen, struPlateResult.struWeightResult.sDevDescInfo, struPlateResult.struPlateInfo.byRegion, struPlateResult.struPlateInfo.byCountry, struPlateResult.dwMatchNo, struPlateResult.byDriveChan, struPlateResult.wIllegalType, struPlateResult.byIllegalSubType, struPlateResult.byMonitoringSiteID, struPlateResult.byDeviceID, struPlateResult.byDir, struPlateResult.dwPicNum,struPlateResult.struPlateInfo.sLicense, \ struPlateResult.struVehicleInfo.byVehicleLogoRecog, struPlateResult.struVehicleInfo.byVehicleSubLogoRecog, \ struPlateResult.byDetSceneID, struPlateResult.byVehicleType, struPlateResult.byDetectType, \ struPlateResult.struPicInfo->byType, struPlateResult.struPicInfo->byDataType, struPlateResult.struPicInfo->byCloseUpType); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); std::string strInfo = "AxleWeight["; for (i = 0; i < ARRAY_SIZE(struPlateResult.struWeightResult.wAxleWeight); ++i) { sprintf(szInfoBuf, " %d", struPlateResult.struWeightResult.wAxleWeight[i]); strInfo += szInfoBuf; } strInfo += "]\nAxleDistance["; for (i = 0; i < ARRAY_SIZE(struPlateResult.struWeightResult.wAxleDistance); ++i) { sprintf(szInfoBuf, " %d", struPlateResult.struWeightResult.wAxleDistance[i]); strInfo += szInfoBuf; } strInfo += "]"; g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, strInfo.c_str()); for (i = 0; i < 6; i++) { if (struPlateResult.struPicInfo[i].dwDataLen > 0 && struPlateResult.struPicInfo[i].pBuffer != NULL) { sprintf(szInfoBuf, "ITS picture[%d] info Type[%d] RedLightTime[%d] AbsTime[%s] CloseUpType[%d]", i+1, struPlateResult.struPicInfo[i].byType, struPlateResult.struPicInfo[i].dwRedLightTime, struPlateResult.struPicInfo[i].byAbsTime, struPlateResult.struPicInfo[i].byCloseUpType); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%s", struPlateResult.struPicInfo[i].byAbsTime); sprintf(cFilename, "%s\\%s_channel[%d]_ITS", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIP, struPlateResult.byChanIndex); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } char cPicType[256] = {0}; if (struPlateResult.struPicInfo[i].byDataType == 0) { if (0 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"License"); } else if (1 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"Scene"); } sprintf(cFilename, "%s\\%s_LocalTime[%s]_%d.jpg",cFilename, cPicType, chTime,rand() % GetTickCount()); } else if (struPlateResult.struPicInfo[i].byDataType == 1) { if (0 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"License"); } else if (1 == struPlateResult.struPicInfo[i].byType) { sprintf(cPicType,"Scene"); } sprintf(cFilename, "%s\\%s_URL_LocalTime[%s]_%d.txt",cFilename, cPicType, chTime,rand() % GetTickCount()); } //sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime, i); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struPlateResult.struPicInfo[i].pBuffer, struPlateResult.struPicInfo[i].dwDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } } void CClientDemoDlg::ProcITSGateVehicle(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_GATE_VEHICLE struGateVehicle = {0}; memcpy(&struGateVehicle, pAlarmInfo, sizeof(struGateVehicle)); sprintf(szInfoBuf, "ITS Gate Vehicle MatchNo[%d] LaneID[%d] CamLaneId[%d] ChanIndex[%d] MonitoringSiteID[%s] DeviceID[%s] Dir[%d] PicNum[%d]",\ struGateVehicle.dwMatchNo, struGateVehicle.wLaneid, struGateVehicle.byCamLaneId, struGateVehicle.dwChanIndex,\ struGateVehicle.byMonitoringSiteID, struGateVehicle.byDeviceID, struGateVehicle.byDir, struGateVehicle.dwPicNum); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (i = 0; i < 4; i++) { if (struGateVehicle.struPicInfo[i].dwDataLen > 0 && struGateVehicle.struPicInfo[i].pBuffer != NULL) { sprintf(szInfoBuf, "ITS picture[%d] info Type[%d] RedLightTime[%d] AbsTime[%s]", i+1, struGateVehicle.struPicInfo[i].byType, struGateVehicle.struPicInfo[i].dwRedLightTime, struGateVehicle.struPicInfo[i].byAbsTime); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%s", struGateVehicle.struPicInfo[i].byAbsTime); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\ITSGateVehicle[%s]_%d.jpg",cFilename, chTime, i); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struGateVehicle.struPicInfo[i].pBuffer, struGateVehicle.struPicInfo[i].dwDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } } void CClientDemoDlg::ProcITSGateFace(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_GATE_FACE struGateFace = {0}; memcpy(&struGateFace, pAlarmInfo, sizeof(struGateFace)); sprintf(szInfoBuf, "ITS Gate Face Laneid[%d] CamLaneId[%d] MonitoringSiteID[%s] DeviceID[%s]",\ struGateFace.wLaneid, struGateFace.byCamLaneId, struGateFace.byMonitoringSiteID, struGateFace.byDeviceID); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struGateFace.struFaceInfo.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struGateFace.struFaceInfo.dwAbsTime); struAbsTime.dwDay = GET_DAY(struGateFace.struFaceInfo.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struGateFace.struFaceInfo.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struGateFace.struFaceInfo.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struGateFace.struFaceInfo.dwAbsTime); sprintf(szInfoBuf, "Face Snap alarm Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] FaceID[%d]\n", struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struGateFace.struFaceInfo.dwFacePicID); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struGateFace.struFaceInfo.dwFacePicLen > 0 && struGateFace.struFaceInfo.pBuffer1 != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\ITSGateFace[%s].jpg",cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struGateFace.struFaceInfo.pBuffer1, struGateFace.struFaceInfo.dwFacePicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struGateFace.struFaceInfo.dwBackgroundPicLen > 0 && struGateFace.struFaceInfo.pBuffer2 != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\BackgroundPic[%s].jpg",cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struGateFace.struFaceInfo.pBuffer2, struGateFace.struFaceInfo.dwBackgroundPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struGateFace.struFaceInfo.pBuffer1 != NULL) { delete []struGateFace.struFaceInfo.pBuffer1; struGateFace.struFaceInfo.pBuffer1 = NULL; } if (struGateFace.struFaceInfo.pBuffer2 != NULL) { delete []struGateFace.struFaceInfo.pBuffer2; struGateFace.struFaceInfo.pBuffer2 = NULL; } } void CClientDemoDlg::ProcITSParkVehicle(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_PARK_VEHICLE struParkVehicle = {0}; memcpy(&struParkVehicle, pAlarmInfo, sizeof(struParkVehicle)); sprintf(szInfoBuf, "ITS Park Vehicle LocationStatus[%d] MonitoringSiteID[%s] DeviceID[%s] PicNum[%d] struPlateRect0[%f,%f,%f,%f] struPlateRect1[%f,%f,%f,%f] CurrentWorkerNumber[%d] CurrentGoodsLoadingRate[%d] DoorsStatus[%d]", \ struParkVehicle.byLocationStatus, struParkVehicle.byMonitoringSiteID, struParkVehicle.byDeviceID, struParkVehicle.dwPicNum, struParkVehicle.struPicInfo[0].struPlateRect.fX, struParkVehicle.struPicInfo[0].struPlateRect.fY, struParkVehicle.struPicInfo[0].struPlateRect.fWidth, struParkVehicle.struPicInfo[0].struPlateRect.fHeight, struParkVehicle.struPicInfo[1].struPlateRect.fX, struParkVehicle.struPicInfo[1].struPlateRect.fY, struParkVehicle.struPicInfo[1].struPlateRect.fWidth, struParkVehicle.struPicInfo[1].struPlateRect.fHeight,struParkVehicle.struVehicleInfo.byCurrentWorkerNumber, struParkVehicle.struVehicleInfo.byCurrentGoodsLoadingRate,struParkVehicle.struVehicleInfo.byDoorsStatus); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (i = 0; i < 2; i++) { if (struParkVehicle.struPicInfo[i].dwDataLen > 0 && struParkVehicle.struPicInfo[i].pBuffer != NULL) { sprintf(szInfoBuf, "ITS picture[%d] info Type[%d] RedLightTime[%d] AbsTime[%s]", i+1, struParkVehicle.struPicInfo[i].byType, struParkVehicle.struPicInfo[i].dwRedLightTime, struParkVehicle.struPicInfo[i].byAbsTime); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%s", struParkVehicle.struPicInfo[i].byAbsTime); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTimeITSParkVehicle[%s]_%d.jpg",cFilename, chTime, i); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struParkVehicle.struPicInfo[i].pBuffer, struParkVehicle.struPicInfo[i].dwDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } } void CClientDemoDlg::ProcITSBalckListInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_ECT_BLACKLIST struBlackList = {0}; memcpy(&struBlackList, pAlarmInfo, sizeof(struBlackList)); sprintf(szInfoBuf, "ITS BLACK LIST INFO Channel[%d] LogicalLaneNo[%d] LaneName[%d] License[%s]",\ struBlackList.dwChannel, struBlackList.bylogicalLaneNo, struBlackList.bylogicalLaneNo, struBlackList.struPlateInfo.sLicense); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcVehicleControlListDS(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "车辆黑白名单数据需要同步报警上传", "Vehicle control list"); NET_DVR_VEHICLE_CONTROL_LIST_DSALARM struVehicleControl; memset(&struVehicleControl, 0, sizeof(struVehicleControl)); memcpy(&struVehicleControl, pAlarmInfo, sizeof(struVehicleControl)); LPNET_DVR_VEHICLE_CONTROL_LIST_DSALARM pVehicle = (LPNET_DVR_VEHICLE_CONTROL_LIST_DSALARM)(pAlarmInfo); sprintf(szInfoBuf, "%s: Data index[%d] sOperateIndex[%s]", \ szLan, pVehicle->dwDataIndex, pVehicle->sOperateIndex); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcVehicleControl(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; char szLan[128] = { 0 }; g_StringLanType(szLan, "黑白名单车辆报警上传", "Vehicle control"); LPNET_DVR_VEHICLE_CONTROL_ALARM pVehicle = (LPNET_DVR_VEHICLE_CONTROL_ALARM)(pAlarmInfo); sprintf(szInfoBuf, "time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d flag[%d] %2.2d%2.2d] %s: byListType[%d] byPlateType[%d] byPlateColor[%d] sLicense[%s] dwChannel[%d]byPicTransType[%d]", \ pVehicle->struAlarmTime.wYear, pVehicle->struAlarmTime.byMonth, pVehicle->struAlarmTime.byDay, pVehicle->struAlarmTime.byHour, pVehicle->struAlarmTime.byMinute, pVehicle->struAlarmTime.bySecond, pVehicle->struAlarmTime.byISO8601, pVehicle->struAlarmTime.cTimeDifferenceH, pVehicle->struAlarmTime.cTimeDifferenceM, szLan, pVehicle->byListType, pVehicle->byPlateType, pVehicle->byPlateColor, pVehicle->sLicense, pVehicle->dwChannel, pVehicle->byPicTransType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (pVehicle->dwPicDataLen > 0 && pVehicle->pPicData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%d][%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, "blackwhitelist"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (pVehicle->byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, pVehicle->pPicData, pVehicle->dwPicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < pVehicle->dwPicDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Plate Picture Wtite to File Fail.System Error:%d, dwPlateBufferLen:%d, dwWrittenBytes:%d ", dwError, pVehicle->dwPicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } //释放图片内存 if (pVehicle->pPicData != NULL) { delete[](pVehicle->pPicData); pVehicle->pPicData = NULL; } } void CClientDemoDlg::ProcITSRoadException(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_ITS_ROADINFO struResult = {0}; memcpy(&struResult, pAlarmInfo, sizeof(struResult)); if (iDeviceIndex>=0 && iDeviceIndex<MAX_DEVICES) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } // CString str = ""; sprintf(szInfoBuf, "ITS Road Exception ChanNo[%d]DeviceNum[%d]", struResult.dwChannel, struResult.dwDeviceNum); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); char sInfo[10240] = {0}; sprintf(sInfo, "NET_ITS_ROADINFO \r\n"); sprintf(sInfo, "%s dwChannel=%d \r\n", sInfo, struResult.dwChannel); sprintf(sInfo, "%s byTriggerMode=%d \r\n", sInfo, struResult.byTriggerMode); sprintf(sInfo, "%s dwDeviceNum=%d \r\n", sInfo, struResult.dwDeviceNum); sprintf(sInfo, "%s byMonitoringSiteID=%s \r\n", sInfo, struResult.byMonitoringSiteID); sprintf(sInfo, "%s byRoadInfo=%s \r\n", sInfo, struResult.byRoadInfo); for (i = 0; i < ITS_MAX_DEVICE_NUM; i++) { sprintf(sInfo, "%s NET_ITS_SINGLE_DEVICE_INFO[i] \r\n", sInfo, i); sprintf(sInfo, "%s dwDeviceType=%d \r\n", sInfo, struResult.struSingleDevice[i].dwDeviceType); sprintf(sInfo, "%s dwDirID=%d \r\n", sInfo, struResult.struSingleDevice[i].dwDirID); sprintf(sInfo, "%s dwLaneID=%d \r\n", sInfo, struResult.struSingleDevice[i].dwLaneID); sprintf(sInfo, "%s dwDeviceState=%d \r\n", sInfo, struResult.struSingleDevice[i].dwDeviceState); sprintf(sInfo, "%s byDeviceName=%s \r\n", sInfo, struResult.struSingleDevice[i].byDeviceName); sprintf(sInfo, "%s byDeviceID=%s \r\n", sInfo, struResult.struSingleDevice[i].byDeviceID); sprintf(sInfo, "%s struTriggerTime=%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d \r\n", sInfo, \ struResult.struSingleDevice[i].struTriggerTime.wYear, struResult.struSingleDevice[i].struTriggerTime.byMonth,\ struResult.struSingleDevice[i].struTriggerTime.byDay, struResult.struSingleDevice[i].struTriggerTime.byHour,\ struResult.struSingleDevice[i].struTriggerTime.byMinute, struResult.struSingleDevice[i].struTriggerTime.bySecond,\ struResult.struSingleDevice[i].struTriggerTime.wMilliSec); sprintf(sInfo, "%s byRelateChan=%d \r\n", sInfo, struResult.struSingleDevice[i].byRelateChan); } char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; HANDLE hFile = NULL; SYSTEMTIME t; GetLocalTime(&t); char chLocalTime[128]; sprintf(chLocalTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[ITSRoadException]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s].txt",cFilename, chLocalTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, sInfo, 10240, &dwWrittenBytes, NULL); CloseHandle(hFile); hFile = NULL; } /********************************************************* Function: OnWMProcAlarm Desc: process alarm information when Input: none Output: none Return: none **********************************************************/ LRESULT CClientDemoDlg::OnWMProcAlarm(WPARAM wParam, LPARAM lParam) { //EnterCriticalSection(&g_cs); LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; if (iDeviceIndex < 0 && iDeviceIndex >= MAX_DEVICES) { delete [] pAlarmInfo; delete pAlarmDev; return NULL; } char szLan[128] ={0}; char szInfoBuf[1024] = {0}; switch (pAlarmDev->lCommand) { case COMM_ISAPI_ALARM: ProcISAPIAlarm(wParam, lParam); break; case COMM_IPC_AUXALARM_RESULT: ProcAuxAlarm(wParam, lParam); break; case COMM_ALARM: ProcAlarm(wParam, lParam); break; case COMM_ALARM_V30: ProcAlarmV30(wParam, lParam); break; case COMM_ALARM_V40: ProcAlarmV40(wParam, lParam); break; case COMM_TRADEINFO: NET_DVR_TRADEINFO m_TradeInfo; memcpy(&m_TradeInfo, pAlarmInfo, sizeof(NET_DVR_TRADEINFO)); g_StringLanType(szLan, "收到卡号信息", "receive trade card number"); sprintf(szInfoBuf, "%s%s", m_TradeInfo.CardNumber); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case COMM_IPCCFG://input parameters modified ProcIPCfgAlarm(wParam, lParam); break; case COMM_IPCCFG_V31: ProcIPCfgAlarmV31(wParam, lParam); break; case COMM_ALARM_RULE: ProcRuleAlarm(wParam, lParam); break; case COMM_ALARM_PDC: ProcPdcAlarm(wParam, lParam); break; case COMM_SENSOR_VALUE_UPLOAD: ProcSensorValueUpload(wParam, lParam); break; case COMM_SENSOR_ALARM: ProcSensorAlarm(wParam, lParam); break; case COMM_ALARM_AID: ProcAidAlarm(wParam, lParam); break; case COMM_ALARM_TPS: ProcTpsAlarm(wParam, lParam); break; case COMM_ALARM_AID_V41: ProcAidAlarmV41(wParam,lParam); break; case COMM_ALARM_TPS_REAL_TIME: ProcTpsRealtime(wParam, lParam); break; case COMM_ALARM_TPS_STATISTICS: ProcTpsStatistics(wParam, lParam); break; case COMM_ALARM_TFS: ProcTfsAlarm(wParam,lParam); break; case COMM_ALARM_TPS_V41: ProcTpsAlarmV41(wParam,lParam); break; case COMM_ALARM_FACE: ProcFaceDetectAlarm(wParam, lParam); break; case COMM_UPLOAD_FACESNAP_RESULT: ProcFaceSnapAlarm(wParam, lParam); break; case COMM_ALARM_FACE_DETECTION: ProcFaceDetectionAlarm(wParam, lParam); break; case COMM_SNAP_MATCH_ALARM: ProcFaceSnapMatchAlarm(wParam, lParam); break; case COMM_ALARM_TARGET_LEFT_REGION: ProcTargetLeftRegionAlarm(wParam, lParam); break; case COMM_RULE_INFO_UPLOAD: ProcRuleInfoUpload(wParam, lParam); break; //2010-06-01 case COMM_ALARM_VIDEOPLATFORM: memset(&m_struVideoPlatform, 0, sizeof(m_struVideoPlatform)); memcpy(&m_struVideoPlatform, pAlarmInfo, sizeof(m_struVideoPlatform)); if (m_struVideoPlatform.byAlarmType == 0) { g_StringLanType(szLan, "收到视频综合平台拔出子板报警,起始槽位号:", "receive videoplatform pull board alarm, start slotnum:"); sprintf(szInfoBuf, "%s%d", szLan, m_struVideoPlatform.bySubSystemChan[0]); } else if (m_struVideoPlatform.byAlarmType == 1) { g_StringLanType(szLan, "收到视频综合平台插入子板报警,起始槽位号:", "receive videoplatform push board alarm, start slotnum:"); sprintf(szInfoBuf, "%s%d", szLan, m_struVideoPlatform.bySubSystemChan[0]); } else if (m_struVideoPlatform.byAlarmType == 2) { g_StringLanType(szLan, "收到视频综合平台温度超上限报警,温度:", "receive videoplatform temperature uplimited alarm, temp:"); sprintf(szInfoBuf, "%s%d.%d", szLan, (m_struVideoPlatform.iTemperature / 100), m_struVideoPlatform.iTemperature % 100); } else if (m_struVideoPlatform.byAlarmType == 3) { g_StringLanType(szLan, "收到视频综合平台温度超下限报警,温度:", "receive videoplatform temperature downlimited alarm, temp:"); sprintf(szInfoBuf, "%s%d.%d", szLan, (m_struVideoPlatform.iTemperature / 100), m_struVideoPlatform.iTemperature % 100); } else if (m_struVideoPlatform.byAlarmType == 4) { g_StringLanType(szLan, "收到视频综合平台风扇状态异常报警,风扇号:", "receive videoplatform fan exception alarm, fan num:"); sprintf(szInfoBuf, "%s", szLan); for (int i = 0; i < 32; i++) { sprintf(&szInfoBuf[i + strlen(szLan)], "%d", m_struVideoPlatform.byFanSequence[i]); } } else if (m_struVideoPlatform.byAlarmType == 5) { g_StringLanType(szLan, "收到视频综合平台子系统异常报警,子系统号:", "receive videoplatform sub system exception alarm, sub system slot:"); sprintf(szInfoBuf, "%s%d", szLan, m_struVideoPlatform.bySubSystemChan[0]); } else if (m_struVideoPlatform.byAlarmType == 6) { g_StringLanType(szLan, "收到视频综合平台非法访问报警", "receive videoplatform illegal visit alarm"); sprintf(szInfoBuf, "%s", szLan); } if (m_struVideoPlatform.byBoardNum != 0xff) { g_StringLanType(szLan, "子板号:", "Board number:"); sprintf(szInfoBuf, "%s%s%d", szInfoBuf, szLan, m_struVideoPlatform.byBoardNum); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); break; case COMM_ALARM_ALARMHOST: //2010-06-30 ProcAlarmHostAlarm(wParam, lParam); break; case COMM_SWITCH_ALARM: ProcSwitchAlarm(wParam, lParam); break; case COMM_ALARMHOST_EXCEPTION: ProcAlarmHostException(wParam, lParam); break; case COMM_ALARM_DEVICE: ProcDeviceAlarm(wParam, lParam); break; case COMM_ALARM_DEVICE_V40: ProcDeviceV40Alarm(wParam, lParam); break; case COMM_ALARM_CVR: ProcCVRAlarm(wParam, lParam); break; case COMM_ALARMHOST_SAFETYCABINSTATE: ProcAlarmHostSatetyCabinState(wParam, lParam); break; case COMM_ALARMHOST_ALARMOUTSTATUS: ProcAlarmHostAlarmoutStatus(wParam, lParam); break; case COMM_ITS_PLATE_RESULT: ProcITSPlateAlarm(wParam, lParam); break; case COMM_TME_VEHICLE_INDENTIFICATION: ProcTMEVehicleAlarm(wParam, lParam); break; case COMM_PLATE_RESULT_V50: ProcITSPlateAlarmV50(wParam, lParam); break; case COMM_ITS_ROAD_EXCEPTION: ProcITSRoadException(wParam, lParam); break; case COMM_ALARMHOST_CID_ALARM: ProcAlarmHostCIDAlarm(wParam, lParam); break; case COMM_ALARMHOST_EXTERNAL_DEVICE_ALARM: ProcAlarmHostExternalDevAlarm(wParam, lParam); break; case COMM_ALARM_VQD: ProcAlarmVQD(wParam,lParam); break; case COMM_ALARM_VQD_EX: ProcAlarmVQDEx(wParam,lParam); break; case COMM_ITS_GATE_VEHICLE: ProcITSGateVehicle(wParam, lParam); break; case COMM_ITS_GATE_FACE: ProcITSGateFace(wParam, lParam); break; case COMM_ITS_PARK_VEHICLE: ProcITSParkVehicle(wParam, lParam); break; case COMM_ITS_BLACKLIST_ALARM: ProcITSBalckListInfo(wParam, lParam); break; case COMM_VEHICLE_CONTROL_LIST_DSALARM: ProcVehicleControlListDS(wParam, lParam); break; case COMM_VEHICLE_CONTROL_ALARM: ProcVehicleControl(wParam, lParam); break; case COMM_ALARMHOST_DATA_UPLOAD: ProcAlarmHostData(wParam, lParam); break; case COMM_ALARM_WIRELESS_INFO: ProcAlarmHostWirelessInfo(wParam, lParam); break; case COMM_ITS_GATE_ALARMINFO: ProcGateAlarmHostData(wParam, lParam); break; case COMM_ITS_EXTERNAL_CONTROL_ALARM://布防报警(外控报警)2013-06-09 ProcExternalControlAlarmHostData(wParam, lParam); break; case COMM_SCENECHANGE_DETECTION_UPLOAD://2013-07-17场景变更侦测报警 ProcSceneChangeDetection(wParam, lParam); break; case COMM_FACECAPTURE_STATISTICS_RESULT://人脸抓拍统计上传 ProcFacecaptureStatistics(wParam, lParam); break; case COMM_VIDEO_PARKING_POLE_ALARM: ProcVideoParkingPoleAlarm(wParam, lParam); break; case COMM_CROSSLINE_ALARM://压线报警 2013-09-27 ProcCrossLineData(wParam, lParam); break; case COMM_ALARM_HOT_SPARE: ProcHotSpare(wParam,lParam); break; //2013-11-19 case COMM_ITS_GATE_COSTITEM://出入口过车收费明细 ProcVehCostItem(wParam, lParam); break; case COMM_ITS_GATE_HANDOVER://出入口交接班数据 ProcVehHandOver(wParam, lParam); break; case COMM_ALARM_AUDIOEXCEPTION://声音异常报警上传 2014-03-21 ProcAudioException(wParam, lParam); break; case COMM_ALARM_DEFOCUS: ProcDefocus(wParam, lParam); break; case COMM_UPLOAD_HEATMAP_RESULT://热度图报警上传 2014-03-21 ProcHeatMapResult(wParam, lParam); break; case COMM_ALARM_ACS: //门禁主机报警 2014-7-23 ProcAccessCardAlarm(wParam, lParam); break; case COMM_ALARM_DEC_VCA: ProVCAAlarm(wParam, lParam); break; case COMM_VEHICLE_RECOG_RESULT://车辆二次识别数据上传2014-11-12 ProVehicleRecogResult(wParam, lParam); break; case COMM_ALARM_LCD: ProLCDAlarm(wParam, lParam); break; case COMM_ALARM_SENSORINFO_UPLOAD: ProSensorInfoAlarm(wParam, lParam); break; case COMM_ALARM_CAPTURE_UPLOAD: ProCaptureAlarm(wParam, lParam); break; case COMM_FIREDETECTION_ALARM: ProFirDetectionAlarm(wParam, lParam); break; case COMM_FACE_THERMOMETRY_ALARM: ProFaceThermometryAlarm(wParam, lParam); break; case COMM_PANORAMIC_LINKAGE_ALARM: ProPicInfoUploadAlarm(wParam, lParam); break; case COMM_GISINFO_UPLOAD: ProGISInfoAlarm(wParam, lParam); break; case COMM_VANDALPROOF_ALARM: ProVandalproofAlarm(wParam, lParam); break; case COMM_UPLOAD_VIDEO_INTERCOM_EVENT: ProcVideoIntercomEvent(wParam,lParam); break; case COMM_ALARM_VIDEO_INTERCOM: ProcVideoIntercomAlarm(wParam,lParam); break; case COMM_UPLOAD_NOTICE_DATA: ProcUploadNoticeData(wParam, lParam); break; case COMM_PEOPLE_DETECTION_UPLOAD: ProcPeopleDetectionUpload(wParam,lParam); break; case COMM_ALARM_FIBER_CONVERT: ProcFiberConvertAlarm(wParam, lParam); break; case COMM_ALARM_SWITCH_CONVERT: ProcNetSwitchAlarm(wParam, lParam); break; case COMM_SWITCH_LAMP_ALARM: ProcSwicthLampAlarm(wParam, lParam); break; case COMM_GATE_CARDINFO_UPLOAD: //出入口卡片信息上传 ProGateCardIndoAlarm(wParam, lParam); break; case COMM_LOADING_DOCK_OPERATEINFO: //月台作业上传 ProLoadingDockOperateInfo(wParam, lParam); break; case COMM_GATE_CHARGEINFO_UPLOAD: ProGateCardChargeAlarm(wParam, lParam); break; case COMM_CONFERENCE_CALL_ALARM: ProConferenceAlarm(wParam, lParam); break; case COMM_ID_INFO_ALARM: ProcIDInfoAlarm(wParam, lParam); break; case COMM_PASSPORT_ALARM: ProcPassportAlarm(wParam, lParam); break; case COMM_PASSNUM_INFO_ALARM: ProcPassNumInfoAlarm(wParam, lParam); break; case COMM_ALARM_STORAGE_DETECTION: ProcStorageDetAlarm(wParam, lParam); break; case COMM_MVM_REGISTER: ProcMVMRegisterInfo(wParam, lParam); break; case COMM_MVM_STATUS_INFO: ProcMVMStatusInfo(wParam, lParam); break; case COMM_ALARM_SHIPSDETECTION: ProcShipsDetAlarm(wParam, lParam); break; case COMM_THERMOMETRY_ALARM: ProThermometryAlarm(wParam, lParam); break; case COMM_BASE_STATION_INFO_ALARM: ProBaseStationInfoAlarm(wParam, lParam); break; case COMM_THERMOMETRY_DIFF_ALARM: ProThermometryDiffAlarm(wParam, lParam); break; case COMM_DIAGNOSIS_UPLOAD: ProDiagnosisUpload(wParam, lParam); break; case COMM_ALARM_WALL_CONFERNECE: ProcessWallConferenceAlarm(wParam, lParam); break; case COMM_GPS_STATUS_ALARM: ProGPSStatusUpload(wParam, lParam); break; case COMM_TAG_INFO_ALARM: ProTagInfoUpload(wParam, lParam); break; case COMM_INQUEST_ALARM: ProcessInquestAlarm(wParam, lParam); break; case COMM_FACESNAP_RAWDATA_ALARM: ProFaceSnapRawData(wParam, lParam); break; case COMM_VCA_ALARM: ProcessEventWithJsonData(wParam, lParam); break; case COMM_ALARM_ALARMGPS: ProcessAlarmGps(wParam, lParam); break; case COMM_FRAMES_PEOPLE_COUNTING_ALARM: ProFramesPeopleCounting(wParam, lParam); break; case COMM_CLUSTER_ALARM: ProcessClusterAlarm(wParam, lParam); break; case COMM_SIGN_ABNORMAL_ALARM: ProcessEventWithJsonData(wParam, lParam); break; case COMM_TAPE_ARCHIVE_ALARM: ProcessEventWithJsonData(wParam, lParam); break; case COMM_HFPD_ALARM: ProcessEventWithJsonData(wParam, lParam); break; case COMM_ALARM_SUBSCRIBE_EVENT: ProcessSubCribeEvent(wParam, lParam); break; case COMM_DEV_STATUS_CHANGED: ProcessEventWithJsonDataNoBoundary(wParam, lParam); break; case COMM_UPLOAD_HEATMAP_RESULT_PDC://热度图按人数统计数据上传事件 2018-07-17 ProcHeatMapResultPDC(wParam, lParam); break; case COMM_UPLOAD_HEATMAP_RESULT_DURATION://热度图按人员停留时间统计数据上传事件 2018-07-17 ProcHeatMapResultDuration(wParam, lParam); break; case COMM_UPLOAD_HEATMAP_RESULT_INTERSECTION://路口分析热度值结果上传 2018-07-17 ProcHeatMapResultIntersection(wParam, lParam); break; case COMM_UPLOAD_AIOP_VIDEO: ProcAIOPVideo(wParam, lParam); break; case COMM_UPLOAD_AIOP_PICTURE: ProcAIOPPicture(wParam, lParam); break; case COMM_ITS_TRAFFIC_COLLECT: ProcTrafficCollect(wParam, lParam); break; case COMM_VCA_DBD_ALARM: ProcessVcaDbdAlarm(wParam, lParam); break; case COMM_VCA_ADAS_ALARM: ProcessVcaAdasAlarm(wParam, lParam); break; case COMM_VEH_REALTIME_INFO: ProcessVehRealtimeInfo(wParam, lParam); break; case COMM_UPLOAD_AIOP_POLLING_SNAP: ProcAIOPPollingSnap(wParam, lParam); break; case COMM_UPLOAD_AIOP_POLLING_VIDEO: ProcAIOPPollingVideo(wParam, lParam); break; default: break; } if (pAlarmInfo != NULL) { delete[] pAlarmInfo; pAlarmInfo = NULL; } if (pAlarmDev != NULL) { delete pAlarmDev; pAlarmDev = NULL; } //LeaveCriticalSection(&g_cs); return NULL; } //the structure of the log information typedef struct tagLOCAL_LOG_INFO { int iLogType; char szTime[64]; char szLogInfo[1024]; char szDevInfo[128]; char szErrInfo[256]; tagLOCAL_LOG_INFO () { iLogType = 0; szTime[0] = '\0'; szLogInfo[0] = '\0'; szDevInfo[0] = '\0'; szErrInfo[0] = '\0'; } }LOCAL_LOG_INFO, *LPLOCAL_LOG_INFO; /********************************************************* Function: OnWMAddLog Desc: responding to the message WM_ADD_LOG Input: wParam, parameter 1;lParam, parameter 2; Output: none Return: result code **********************************************************/ LRESULT CClientDemoDlg::OnWMAddLog(WPARAM wParam, LPARAM lParam) { EnterCriticalSection(&g_cs); LPLOCAL_LOG_INFO pLogInfo = LPLOCAL_LOG_INFO(lParam); if (NULL == pLogInfo) { LeaveCriticalSection(&g_cs); return 0; } char szLogType[32] = "FAIL"; char szTime[64] = {0}; char szLogInfo[1024*5] = {0}; char szDevInfo[128] = {0}; char szErrInfo[256] = {0}; memcpy(szTime, pLogInfo->szTime, 64); memcpy(szLogInfo, pLogInfo->szLogInfo, 1024); memcpy(szDevInfo, pLogInfo->szDevInfo, 128); memcpy(szErrInfo, pLogInfo->szErrInfo, 256); if ( m_listAllLog.GetItemCount() >= 5000) { m_listAllLog.DeleteAllItems(); } if ( m_listAlarmInfo.GetItemCount() >= 5000) { m_listAlarmInfo.DeleteAllItems(); } switch (pLogInfo->iLogType) { case ALARM_INFO_T: sprintf(szLogType, "Alarm"); m_listAlarmInfo.InsertItem(0, "", -1); m_listAlarmInfo.SetItemText(0, 1, szTime); m_listAlarmInfo.SetItemText(0, 2, szLogInfo); m_listAlarmInfo.SetItemText(0, 3, szDevInfo); break; case DDNS_SUCC_T: sprintf(szLogType, "SUCC"); if (g_struLocalParam.bSuccLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; case OPERATION_SUCC_T: sprintf(szLogType, "SUCC"); if (g_struLocalParam.bSuccLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; case OPERATION_FAIL_T: sprintf(szLogType, "FAIL"); if (g_struLocalParam.bFailLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; case PLAY_SUCC_T: sprintf(szLogType, "SUCC"); if (g_struLocalParam.bSuccLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; case DDNS_FAIL_T: sprintf(szLogType, "FAIL"); if (g_struLocalParam.bFailLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; case PLAY_FAIL_T: sprintf(szLogType, "FAIL"); if (g_struLocalParam.bFailLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; default: sprintf(szLogType, "FAIL"); if (g_struLocalParam.bFailLog) { m_listAllLog.InsertItem(0, "", -1); m_listAllLog.SetItemText(0, 1, szTime); m_listAllLog.SetItemText(0, 2, szLogType); m_listAllLog.SetItemText(0, 3, szLogInfo); m_listAllLog.SetItemText(0, 4, szDevInfo); m_listAllLog.SetItemText(0, 5, szErrInfo); } break; } if (pLogInfo != NULL) { delete pLogInfo; pLogInfo = NULL; } LeaveCriticalSection(&g_cs); return 0; } /********************************************************* Function: AddLog Desc: add local log Input: iLogType, log type, 0-alam, 1-operate log, 2-debug info; csLogInfo log info Output: Return: **********************************************************/ void CClientDemoDlg::AddLog(int iDeviceIndex, int iLogType, const char* format, ...) { if (g_bExitDemo) { return; } CTime cTime = CTime::GetCurrentTime(); int iLen = 0; char szTime[64] = {0}; char szLogType[32] = "FAIL"; char szLogInfo[1024*5] = {0}; char szDevInfo[256] = {0}; char szErrInfo[256] = {0}; char szLog[1024*5] = {0}; va_list arglist; va_start(arglist,format); vsprintf(szLogInfo,format,arglist); va_end(arglist); sprintf(szTime, "%s", cTime.Format("%y-%m-%d %H:%M:%S").GetBuffer(0)); if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(szDevInfo, "[%s]-[%s]", g_struDeviceInfo[iDeviceIndex].chDeviceIP, g_struDeviceInfo[iDeviceIndex].chLocalNodeName); } switch (iLogType) { case OPERATION_SUCC_T: case PLAY_SUCC_T: sprintf(szErrInfo, ""); sprintf(szLogType, "SUCC"); break; case PLAY_FAIL_T: sprintf(szErrInfo, "PLAY_M4 Eorror!!!"); break; case OPERATION_FAIL_T: default: if (m_giAsynLoginReturn != 0) { sprintf(szErrInfo, "err[%d:%s]", m_giErrNo, m_gpErrMsg); } else { sprintf(szErrInfo, "err[%d:%s]", NET_DVR_GetLastError(), NET_DVR_GetErrorMsg()); } break; } //sprintf(szErrInfo, "err[%d:%s]", NET_DVR_GetLastError(), NET_DVR_GetErrorMsg()); if (iLogType == ALARM_INFO_T ) { iLen = sprintf(szLog, "%s %s %s\n", szTime, szLogInfo, szDevInfo); if (m_fAlarm != NULL && g_struLocalParam.bAutoSaveLog) { if (fwrite(szLog, 1, iLen, m_fAlarm) != (unsigned)iLen) { OutputDebugString("write err"); } } } else { iLen = sprintf(szLog, "%s %s %s %s %s\n", szTime, szLogType, szLogInfo, szDevInfo, szErrInfo); if (m_fLog != NULL && g_struLocalParam.bAutoSaveLog) { if (fwrite(szLog, 1, iLen, m_fLog) != (unsigned)iLen) { OutputDebugString("write err"); } } } if (g_struLocalParam.bOutputDebugString) { OutputDebugString(szLog); } if (!g_struLocalParam.bSuccLog && !g_struLocalParam.bFailLog && (iLogType != ALARM_INFO_T )) { return; } LPLOCAL_LOG_INFO pLogInfo = NULL; try { pLogInfo = new LOCAL_LOG_INFO; memset(pLogInfo, 0, sizeof(LOCAL_LOG_INFO)); if (pLogInfo == NULL) { return; } pLogInfo->iLogType = iLogType; memcpy(pLogInfo->szTime, szTime, 64); memcpy(pLogInfo->szLogInfo, szLogInfo, 1024); memcpy(pLogInfo->szDevInfo, szDevInfo, 128); memcpy(pLogInfo->szErrInfo, szErrInfo, 256); ::PostMessage(g_pMainDlg->m_hWnd, WM_ADD_LOG, iDeviceIndex, (LPARAM)pLogInfo); } catch (...) { if (pLogInfo != NULL) { return; } OutputDebugString("New Log Exception!!\n"); } } /************************************************* Function: DblAllTree Description: preview all device if some are not previewed, or stop all previewing devices Input: iDeviceIndex, device index; iStartOutputIndex, preview start index; Return: 无 *************************************************/ void CClientDemoDlg::DblAllTree() { HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); int i=0; int iDevIndex = 0; hSelect = m_treeDeviceList.GetChildItem(hSelect); for (i=0; i<MAX_DEVICES; i++) { //shut down all play channel if (g_struDeviceInfo[i].lLoginID < 0) {//play the window that is not previewed iDevIndex = m_treeDeviceList.GetItemData(hSelect)%1000; /*LPLOCAL_LOGIN_PARAM lpParam = new LOCAL_LOGIN_PARAM; lpParam->iDeviceIndex = iDevIndex; lpParam->hSelect = hSelect; lpParam->bMsgBox = FALSE;*/ // _beginthread((void (__cdecl *)(void *))DoLoginEx, 0, lpParam); // Sleep(200); LONG lReturn = DoLogin(iDevIndex, hSelect); hSelect = m_treeDeviceList.GetNextSiblingItem(hSelect); if (hSelect == NULL) { break; } } } } /************************************************* Function: DblPlayDevice Description: preview all device if some are not previewed, or stop all previewing devices Input: iDeviceIndex, device index; iStartOutputIndex, preview start index; Return: 无 *************************************************/ void CClientDemoDlg::DblPlayDevice(int iDeviceIndex, int iStartOutputIndex) { HTREEITEM hSelect = m_treeDeviceList.GetSelectedItem(); if (!DoLogin(iDeviceIndex, hSelect)) { return; } int i=0; int iChanIndex = 0; HTREEITEM hChannel = m_treeDeviceList.GetChildItem(hSelect); //既未配置URL方式预览时又无通道 if (hChannel == NULL && !g_struDeviceInfo[iDeviceIndex].byURL) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "there is no channels!!"); return; } if (g_struDeviceInfo[iDeviceIndex].bPlayDevice) { g_struDeviceInfo[iDeviceIndex].bPlayDevice = FALSE; //StopPlayAll(); for (i=0; i< m_iCurWndNum; i++) { if (g_dlgOutput[i].m_struChanInfo.iDeviceIndex == iDeviceIndex) { g_dlgOutput[i].StopPlay(); } } } else { for (i=0; i<m_iCurWndNum; i++) { //shut down all play channel if (g_dlgOutput[i].m_struChanInfo.iDeviceIndex == iDeviceIndex) { g_dlgOutput[i].StopPlay(); } if (g_dlgOutput[i].m_lPlayHandle < 0) {//play the window that is not previewed //没有通道配置了URL预览,此时要收到设置通道号(虚假的通道,用于后续代码逻辑复用有通道的设备) if (g_struDeviceInfo[iDeviceIndex].byURL && hChannel == NULL) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[0].iChannelNO = 1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[0].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[0].iChanIndex = 0; LONG lReturn = g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].pStruChanInfo[0], hChannel); break; } else { iChanIndex = m_treeDeviceList.GetItemData(hChannel) % 1000; if ((g_struDeviceInfo[iDeviceIndex].wStartMirrorChanNo != 0) && (iChanIndex >= MIRROR_CHAN_INDEX)) { LONG lReturn = g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex - MIRROR_CHAN_INDEX], hChannel); } else { LONG lReturn = g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], hChannel); } hChannel = m_treeDeviceList.GetNextSiblingItem(hChannel); if (hChannel == NULL) { break; } } } } g_struDeviceInfo[iDeviceIndex].bPlayDevice = TRUE; } ChangePlayBtnState(); } /********************************************************* Function: StopPlayAll Desc: stop all playing windows Input: Output: Return: **********************************************************/ void CClientDemoDlg::StopPlayAll(void) { int i = 0; for (i = 0; i < MAX_OUTPUTS; i ++) { if (g_dlgOutput[i].m_lPlayHandle < 0) { continue; } g_dlgOutput[i].StopPlay(); } } /********************************************************* Function: ChangePlayBtnState Desc: change 'play' button text state Input: Output: Return: **********************************************************/ void CClientDemoDlg::ChangePlayBtnState(void) { int i = 0; char szLan[32] = {0}; if (m_iMainType == PREVIEW_T) { for (i = 0; i < MAX_OUTPUTS; i++) { if (g_dlgOutput[i].m_lPlayHandle < 0) { if (!g_bPlayAllDevice && i == m_iCurWndIndex) {//change network delay m_comboNetDelayBufNum.EnableWindow(TRUE); } continue; } if (i == m_iCurWndIndex) { m_comboNetDelayBufNum.EnableWindow(FALSE); } m_comboWinNum.EnableWindow(FALSE); g_StringLanType(szLan, "停止", "Stop"); GetDlgItem(IDC_BTN_PLAY)->SetWindowText(szLan); return; } } m_comboWinNum.EnableWindow(TRUE); g_StringLanType(szLan, "播放", "Play"); g_bPlayAllDevice = FALSE; GetDlgItem(IDC_BTN_PLAY)->SetWindowText(szLan); } /********************************************************* Function: GetChanItem Desc: get channel item and its structure Input: iDeviceIndex,device serial number;iChanIndex,channel index; Output: Return: **********************************************************/ HTREEITEM CClientDemoDlg::GetChanItem(int iDeviceIndex, int iChanIndex) { HTREEITEM hRoot = m_treeDeviceList.GetRootItem(); if (hRoot == NULL) { return NULL; } int iChanData = 0; HTREEITEM hChannel = NULL; HTREEITEM hDevItem = m_treeDeviceList.GetChildItem(hRoot); while (hDevItem != NULL) { if (DEVICETYPE == (int)m_treeDeviceList.GetItemData(hDevItem)/1000) { if (iDeviceIndex == (int)m_treeDeviceList.GetItemData(hDevItem)%1000) { hChannel = m_treeDeviceList.GetChildItem(hDevItem); if (hChannel == NULL) { return NULL; } iChanData = m_treeDeviceList.GetItemData(hChannel); while (iChanData%1000 != iChanIndex) { hChannel = m_treeDeviceList.GetNextSiblingItem(hChannel); if (hChannel == NULL) { AddLog(iDeviceIndex, OPERATION_FAIL_T, "don't find chanindex[%d] node!!!", iChanIndex); return NULL; } else { iChanData = m_treeDeviceList.GetItemData(hChannel); } } return hChannel; } } hDevItem = m_treeDeviceList.GetNextVisibleItem(hDevItem); }//end while return NULL; } /********************************************************* Function: GetDeviceItem Desc: get device item and its structure Input: iDeviceIndex, device index Output: Return: **********************************************************/ HTREEITEM CClientDemoDlg::GetDeviceItem(int iDeviceIndex) { HTREEITEM hRoot = m_treeDeviceList.GetRootItem(); if (hRoot == NULL) { return NULL; } HTREEITEM hItem = m_treeDeviceList.GetChildItem(hRoot); while (hItem) { if (DEVICETYPE == m_treeDeviceList.GetItemData(hItem)/1000) { if (iDeviceIndex == (int)m_treeDeviceList.GetItemData(hItem)%1000) { return hItem; } }//end else if hItem = m_treeDeviceList.GetNextVisibleItem(hItem); }//end while return NULL; } /********************************************************* Function: GetCurDeviceIndex Desc: check the channel, return device index related to this channel Input: Output: Return: **********************************************************/ int CClientDemoDlg::GetCurDeviceIndex() { if (m_iCurDeviceIndex < MAX_DEVICES && m_iCurDeviceIndex >= 0) { return m_iCurDeviceIndex; } AddLog(-1, OPERATION_SUCC_T, "please select a device at first!"); return -1; } /********************************************************* Function: GetCurChanIndex Desc: Get current channel serial number. When channel number < 64, this function is used. Input: Output: Return: **********************************************************/ int CClientDemoDlg::GetCurChanIndex() { if (m_iCurChanIndex >= 0 && m_iCurChanIndex < 512) { return m_iCurChanIndex; } //AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "please select a camera at first!"); return -1; } int CClientDemoDlg::GetCurChanIndexInTree() { if (m_iCurChanIndex >= 0 && m_iCurChanIndex < 512) { return m_iCurChanIndex; } //AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "please select a camera at first!"); return -1; } /********************************************************* Function: OnBnClickedBtnElse Desc: other operation Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnElse() { CMenu pMenu; CRect rectBtnElse(0,0,0,0); GetDlgItem(IDC_BTN_ELSE)->GetWindowRect(&rectBtnElse); // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex == -1) // { // AfxMessageBox("请选中对应的设备!"); // return; // } if (!pMenu.LoadMenu(IDR_MENU_ELSE)) { return; } // if (g_struDeviceInfo[iDeviceIndex].iDiskNum > 0) // {//device local record on disk or other store devices // pMenu.GetSubMenu(0)->EnableMenuItem(5, MF_BYPOSITION | MF_ENABLED); // } // else // { // pMenu.GetSubMenu(0)->EnableMenuItem(5, MF_BYPOSITION | MF_DISABLED | MF_GRAYED); // } pMenu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN, rectBtnElse.left,rectBtnElse.bottom,this); } /********************************************************* Function: OnMenuRemoteKey Desc: menu on remote key response function Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuRemoteKey() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgRemoteKey dlgRemoteKey; dlgRemoteKey.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlgRemoteKey.DoModal(); } /********************************************************* Function: OnMenuCheckTime Desc: menu on time checking response function Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuCheckTime() { CDlgCheckTime dlg; dlg.DoModal(); } /********************************************************* Function: OnMenuWorkState Desc: get device work sate Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnMenuWorkState() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgDeviceState dlg; dlg.m_lLoginID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.DoModal(); } /********************************************************* Function: OnMenuLogSearch Desc: dvr log search Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnMenuLogSearch() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgLogSearch dlg; dlg.m_lLoginID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.DoModal(); } /********************************************************* Function: OnMenuDVRRecordStart Desc: DVR local record Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuDVRRecordStart() { int iDeviceIndex = GetCurDeviceIndex(); int iChanIndex = GetCurChanIndex(); int iChanShowNum = 1; int i= 0; CString sTemp; if (iDeviceIndex == -1) { return; } NET_DVR_WORKSTATE_V40 *pStruWorkStateV40 = new NET_DVR_WORKSTATE_V40; if (pStruWorkStateV40 == NULL) { char szLan[128] = {0}; g_StringLanType(szLan, "申请内存失败", "alloc memory error"); AfxMessageBox(szLan); return; } NET_DVR_GETWORKSTATE_COND struWorkStateCond = {0}; struWorkStateCond.dwSize = sizeof(NET_DVR_GETWORKSTATE_COND); struWorkStateCond.byFindChanByCond = 0; struWorkStateCond.byFindHardByCond = 0; DWORD dwStatusChanIndex = 0; DWORD dwList = 0; if (!NET_DVR_GetDeviceConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_GET_WORK_STATUS,1,\ &struWorkStateCond,sizeof(NET_DVR_GETWORKSTATE_COND),&dwList,pStruWorkStateV40, sizeof(NET_DVR_WORKSTATE_V40)) ||(dwList != 0)) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GET_WORK_STATUS"); return; } if (iChanIndex == -1) // All Cameras { for (i=0; i<MAX_CHANNUM_V40; i++) { if (!g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable) { continue; } int iChannelNO = -1; if (g_struDeviceInfo[iDeviceIndex].byMirrorChanNum&&iChanIndex >= MIRROR_CHAN_INDEX) { iChannelNO = g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChannelNO; } else { iChannelNO = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO; } for (int j = 0;j<MAX_CHANNUM_V40;j++) { if (iChannelNO == pStruWorkStateV40->struChanStatic[j].dwChannelNo) { dwStatusChanIndex = j; break; } } if (pStruWorkStateV40->struChanStatic[dwStatusChanIndex].byRecordStatic == 0) // { if (NET_DVR_StartDVRRecord(g_struDeviceInfo[iDeviceIndex].lLoginID, iChannelNO, 0)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_StartDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_StartDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } } else if(pStruWorkStateV40->struChanStatic[dwStatusChanIndex].byRecordStatic == 1) // { if (NET_DVR_StopDVRRecord(g_struDeviceInfo[iDeviceIndex].lLoginID, iChannelNO)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_StopDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_StopDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); } } } } else { i = iChanIndex; if (g_struDeviceInfo[iDeviceIndex].byMirrorChanNum&&iChanIndex >= MIRROR_CHAN_INDEX) { iChanShowNum = g_struDeviceInfo[iDeviceIndex].struMirrorChan[iChanIndex].iChannelNO; } else { iChanShowNum = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].iChannelNO; } for (int j = 0;j<MAX_CHANNUM_V40;j++) { if (iChanShowNum == pStruWorkStateV40->struChanStatic[j].dwChannelNo) { dwStatusChanIndex = j; break; } } if (pStruWorkStateV40->struChanStatic[dwStatusChanIndex].byRecordStatic == 0) { if (NET_DVR_StartDVRRecord(g_struDeviceInfo[iDeviceIndex].lLoginID, iChanShowNum, 0)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_StartDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].chChanName); char szLan[128] = {0}; g_StringLanType(szLan, "开始DVR本地录像成功", "Start Local Record successfully"); AfxMessageBox(szLan); } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_StartDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].chChanName); } } else if (pStruWorkStateV40->struChanStatic[dwStatusChanIndex].byRecordStatic == 1) { if (NET_DVR_StopDVRRecord(g_struDeviceInfo[iDeviceIndex].lLoginID, iChanShowNum)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_StopDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].chChanName); char szLan[128] = {0}; g_StringLanType(szLan, "停止DVR本地录像成功", "Stop Local Record successfully"); AfxMessageBox(szLan); } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_StopDVRRecord %s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].chChanName); } } } if (pStruWorkStateV40 != NULL) { delete pStruWorkStateV40 ; pStruWorkStateV40 = NULL; } } /********************************************************* Function: ConfigAllHide Desc: hide all configure box Input: Output: Return: **********************************************************/ void CClientDemoDlg::ConfigAllHide() { m_dlgConfigAll->ShowWindow(SW_HIDE); m_dlgRemoteCfg->ShowWindow(SW_HIDE); m_dlgLocalCfg->ShowWindow(SW_HIDE); m_dlgIPAccess->ShowWindow(SW_HIDE); m_dlgHDConfig->ShowWindow(SW_HIDE); // m_pStreamIDDlg->ShowWindow(SW_HIDE); m_dlgBatchCfg->ShowWindow(SW_HIDE); m_dlgProductCfg->ShowWindow(SW_HIDE); m_dlgPlayBack->ShowWindow(SW_HIDE); } /********************************************************* Function: OnCbnSelchangeComboNetdelay Desc: set current network delay Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnCbnSelchangeComboNetdelay() { UpdateData(TRUE); int iTmp = m_comboNetDelayBufNum.GetCurSel(); switch (iTmp) { case 0: g_dlgOutput[m_iCurWndIndex].m_iNetDelayBufNum = 1; break; case 1: g_dlgOutput[m_iCurWndIndex].m_iNetDelayBufNum = 3; break; case 2: g_dlgOutput[m_iCurWndIndex].m_iNetDelayBufNum = 6; break; case 3: g_dlgOutput[m_iCurWndIndex].m_iNetDelayBufNum = 15; break; default: g_dlgOutput[m_iCurWndIndex].m_iNetDelayBufNum= 1; break; } } /********************************************************* Function: CyclePlayAllDevicesLogined Desc: 循环播放已经登陆的设备 Input: Output: Return: **********************************************************/ void CClientDemoDlg::CyclePlayAllDevicesLogined() { int i = 0; int iPlayNum = 0;//current monitoring points that will be played int iFirstIndex = -1;//current first monitoring point index int iDeviceIndex = -1; int iChanIndex = -1; int iSurveillanceNumLeft = 0; if (g_nSurveillanceTotalNum<=m_iCurWndNum) { return; } if (g_nSurveillanceTotalNum == g_iNextSurveillanceIndex) //turn to first page while cycle to last page { iPlayNum = m_iCurWndNum; iFirstIndex = 0; } else { iPlayNum = g_nSurveillanceTotalNum - g_iNextSurveillanceIndex; if (iPlayNum > m_iCurWndNum) { iPlayNum = m_iCurWndNum; } iFirstIndex = g_iNextSurveillanceIndex; } //stop all the windows which is playing StopPlayAll(); for (i = 0; i < iPlayNum; i++) { if (i+iFirstIndex < MAX_PREVIEWS) { iDeviceIndex = g_struPlayAllInfo[i+iFirstIndex].iDeviceIndex; iChanIndex = g_struPlayAllInfo[i+iFirstIndex].iChanIndex; g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], GetChanItem(iDeviceIndex, iChanIndex)); } } iSurveillanceNumLeft = g_nSurveillanceTotalNum - g_iNextSurveillanceIndex; if (iSurveillanceNumLeft == 0)//restart afer a cycle { g_iNextSurveillanceIndex = m_iCurWndNum; g_struLocalParam.bFrontPage = FALSE; g_struLocalParam.bNextPage = TRUE; } else if (iSurveillanceNumLeft <= m_iCurWndNum)//last several monitoring points { g_iNextSurveillanceIndex = g_nSurveillanceTotalNum; g_struLocalParam.bNextPage = FALSE; g_struLocalParam.bFrontPage = TRUE; } else { g_struLocalParam.bFrontPage = TRUE; g_struLocalParam.bNextPage = TRUE; g_iNextSurveillanceIndex += m_iCurWndNum; } //UpdateData(FALSE); } /********************************************************* Function: PlayNextPage Desc: preview next pic in play list Input: Output: Return: **********************************************************/ void CClientDemoDlg::PlayNextPage() { int iPlayNum = 0; int i = 0; int iDeviceIndex = -1; int iChanIndex = -1; int iSurveillanceLeftNum = 0; if ((g_struLocalParam.bEnlarged)||(g_struLocalParam.bFullScreen)) { if (g_struLocalParam.bFullScreen) { g_struLocalParam.bFullScreen = FALSE; FullScreen(g_struLocalParam.bFullScreen); } g_struLocalParam.bEnlarged = FALSE; ArrangeOutputs(m_iCurWndNum); } iSurveillanceLeftNum = g_nSurveillanceTotalNum - g_iNextSurveillanceIndex; if (iSurveillanceLeftNum > m_iCurWndNum) {// left monitoring points surpass current playing windows number iPlayNum = m_iCurWndNum; g_struLocalParam.bNextPage = TRUE; } else { iPlayNum = iSurveillanceLeftNum; g_struLocalParam.bNextPage = FALSE; } StopPlayAll();//shut down previous page preview for (i=0;i<iPlayNum;i++) { if (i+g_iNextSurveillanceIndex < MAX_PREVIEWS) { iDeviceIndex = g_struPlayAllInfo[i+g_iNextSurveillanceIndex].iDeviceIndex; iChanIndex = g_struPlayAllInfo[i+g_iNextSurveillanceIndex].iChanIndex; g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], GetChanItem(iDeviceIndex, iChanIndex)); Sleep(100); } } g_iNextSurveillanceIndex += iPlayNum; g_struLocalParam.bFrontPage = TRUE; ChangePlayBtnState(); UpdateData(FALSE); } /********************************************************* Function: PlayFrontPage Desc: play front group of monitoring points Input: Output: Return: **********************************************************/ void CClientDemoDlg::PlayFrontPage() { int iPlayIndex = 0; int i = 0; int iDeviceIndex = -1; int iChanIndex = -1; if (g_iNextSurveillanceIndex <= m_iCurWndNum || m_iCurWndNum == 0) { return; } if ((g_struLocalParam.bEnlarged) || (g_struLocalParam.bFullScreen)) { if (g_struLocalParam.bFullScreen) { g_struLocalParam.bFullScreen = FALSE; FullScreen(g_struLocalParam.bFullScreen); } g_struLocalParam.bEnlarged = FALSE; ArrangeOutputs(m_iCurWndNum); //while windos is zoomed, turn to next pic and restore original window number } if (g_iNextSurveillanceIndex < 2*m_iCurWndNum) { iPlayIndex = 0;//if front page is first index, set play index as 0 } else { i = g_iNextSurveillanceIndex % m_iCurWndNum; if (i == 0) { iPlayIndex = g_iNextSurveillanceIndex - 2*m_iCurWndNum ; } else { iPlayIndex = g_iNextSurveillanceIndex - m_iCurWndNum - i; } } StopPlayAll();//stop all preview for (i=0;i<m_iCurWndNum;i++) { if (i+iPlayIndex < MAX_PREVIEWS) { iDeviceIndex = g_struPlayAllInfo[i+iPlayIndex].iDeviceIndex; iChanIndex = g_struPlayAllInfo[i+iPlayIndex].iChanIndex; g_dlgOutput[i].StartPlay(&g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex], GetChanItem(iDeviceIndex, iChanIndex)); Sleep(100); } } if (g_iNextSurveillanceIndex <= 2*m_iCurWndNum) { g_iNextSurveillanceIndex = m_iCurWndNum; g_struLocalParam.bFrontPage = FALSE; //no front page } else { i = g_iNextSurveillanceIndex % m_iCurWndNum; if (i == 0) { g_iNextSurveillanceIndex -= m_iCurWndNum; } else { g_iNextSurveillanceIndex -= i; } g_struLocalParam.bFrontPage = TRUE; } g_struLocalParam.bNextPage = TRUE; } /********************************************************* Function: CyclePause Desc: suspend or continue cycle Input: Output: Return: **********************************************************/ void CClientDemoDlg::CyclePause() { if (!g_struLocalParam.bPaused) { g_struLocalParam.bPaused = TRUE; if (g_pCycleTimer != NULL) { KillTimer(CYCLE_PREVIEW_TIMER); g_pCycleTimer = NULL; } } else//continue cycle { CyclePlayAllDevicesLogined(); if (g_pCycleTimer == NULL) { g_pCycleTimer = SetTimer(CYCLE_PREVIEW_TIMER, g_struLocalParam.iCycleTime*1000,NULL); } g_struLocalParam.bPaused = FALSE; } ChangePlayBtnState(); } /********************************************************* Function: OnMove Desc: dealing with preview and backplay in double screen Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMove(int x, int y) { CDialog::OnMove(x, y); GetWindowRect(&g_rcWindow); if (g_rcWindow.left < 0) { return; } int iTmpMonitorNum = 0; int i=0; //#if (WINVER > 0x0400) DWORD dwNewDeviceNum = 0; LONG lTmpHandle = -1; if (((DWORD)g_rcWindow.right + (DWORD)g_rcWindow.left > (DWORD)2 * g_iCurScreenWidth )||((DWORD)g_rcWindow.top + (DWORD)g_rcWindow.bottom > (DWORD)2 * g_iCurScreenHeight)) { dwNewDeviceNum = 1; } else { dwNewDeviceNum = 0; } if (dwNewDeviceNum != g_dwOldDeviceNum) { if (m_iMainType == PREVIEW_T) { int iPlayNum = 0; // if (g_nSurveillanceTotalNum == 0) // { // return; // } if (g_nSurveillanceTotalNum < m_iCurWndNum) { iPlayNum = g_nSurveillanceTotalNum; } else { iPlayNum = g_nSurveillanceTotalNum; } iTmpMonitorNum = PlayM4_GetDDrawDeviceTotalNums(); if (iTmpMonitorNum >= 1) { for (i=0; i<m_iCurWndNum; i++) { if (g_dlgOutput[i].m_lPlayHandle>=0) { LONG lPort = -1; if (g_dlgOutput[i].m_lPort >= 0) { lPort = g_dlgOutput[i].m_lPort; } else { lPort = NET_DVR_GetRealPlayerIndex(g_dlgOutput[i].m_lPlayHandle); } if (lPort < 0) { return; } if (PlayM4_SetDDrawDevice(lPort, dwNewDeviceNum + 1))// { AddLog(m_iCurDeviceIndex, PLAY_SUCC_T, "PlayM4_SetDDrawDevice output[%d]", i); } else { AddLog(m_iCurDeviceIndex, PLAY_FAIL_T, "PlayM4_SetDDrawDevice output[%d] err[%d]", i, PlayM4_GetLastError(NET_DVR_GetRealPlayerIndex(g_dlgOutput[i].m_lPlayHandle))); } } } } } else if (m_iMainType == PLAY_BACK_T) { switch (m_dlgPlayBack->m_iPlayBackType) { case 0://remote file if (m_dlgPlayBack->m_dlgPlayRemoteFile.m_nPlayHandle == -1) { return; } iTmpMonitorNum = PlayM4_GetDDrawDeviceTotalNums(); lTmpHandle = NET_DVR_GetPlayBackPlayerIndex(m_dlgPlayBack->m_dlgPlayRemoteFile.m_nPlayHandle); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "lTmpHandle is %d", lTmpHandle); PlayM4_SetDDrawDevice(lTmpHandle, dwNewDeviceNum + 1); g_dwOldDeviceNum = dwNewDeviceNum; break; case 1://local iTmpMonitorNum = PlayM4_GetDDrawDeviceTotalNums(); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "iTmpMonitorNum is %d", iTmpMonitorNum); PlayM4_SetDDrawDevice(99, dwNewDeviceNum + 1); break; case 2://play back by time if (m_dlgPlayBack->m_dlgPlayRemoteTime.m_lPlayHandle == -1) { return; } //nVal = NET_DVR_GetDDrawDeviceTotalNums(); iTmpMonitorNum = PlayM4_GetDDrawDeviceTotalNums(); lTmpHandle = NET_DVR_GetPlayBackPlayerIndex(m_dlgPlayBack->m_dlgPlayRemoteTime.m_lPlayHandle); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "lTmpHandle is %d", lTmpHandle); //NET_DVR_SetDDrawDevice(temp, dwNewDeviceNum + 1); PlayM4_SetDDrawDevice(lTmpHandle, dwNewDeviceNum + 1); break; default: break; } } g_dwOldDeviceNum = dwNewDeviceNum; } //#endif if (g_struLocalParam.bUseCard) { NET_DVR_RefreshSurface_Card(); } UpdateWindow(); } /********************************************************* Function: OnBnClickedBtnConfig Desc: configure operation Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnConfig() { if (m_iMainType != CONFIG_ALL_T) { m_iMainType = CONFIG_ALL_T; PreviewReferShow(FALSE); ConfigAllHide(); m_dlgPlayBack->HideAll(); InitConfigAllRefer(); } } /********************************************************* Function: InitConfigAllRefer Desc: initialize interface dealing related to configuration Input: Output: Return: **********************************************************/ void CClientDemoDlg::InitConfigAllRefer() { if (!m_dlgConfigAll->IsWindowVisible()) { CRect rectConfig(0,0,0,0); rectConfig.top = m_iFunBtnHeight-2; rectConfig.left = m_iTreeWidth-2;//-2 cover preview box rectConfig.right = DEMO_FULL_WIDTH - m_iRightWidth ; rectConfig.bottom = DEMO_FULL_HEIGHT - m_iListLogHeight;//+4 m_dlgLocalCfg->MoveWindow(&rectConfig,TRUE); m_dlgLocalCfg->ShowWindow(SW_HIDE); m_dlgRemoteCfg->MoveWindow(&rectConfig,TRUE); m_dlgRemoteCfg->ShowWindow(SW_SHOW); m_dlgIPAccess->MoveWindow(&rectConfig,TRUE); m_dlgIPAccess->ShowWindow(SW_SHOW); m_dlgHDConfig->MoveWindow(&rectConfig,TRUE); m_dlgHDConfig->ShowWindow(SW_SHOW); m_dlgBatchCfg->MoveWindow(&rectConfig,TRUE); m_dlgBatchCfg->ShowWindow(SW_SHOW); m_dlgConfigAll->MoveWindow(&m_rectRightArea,TRUE); m_dlgConfigAll->ShowWindow(SW_SHOW); m_dlgConfigAll->ConfigWndUpdate(); } } /********************************************************* Function: OnBnClickedBtnPlayback Desc: switch to backplay interface Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnPlayback() { if (m_iMainType != PLAY_BACK_T) { m_iMainType = PLAY_BACK_T; ListRestore(); PreviewReferShow(FALSE); ConfigAllHide(); InitPlayBackRefer(); } } /********************************************************* Function: InitPlayBackRefer Desc: initialize backplay interface operation Input: Output: Return: **********************************************************/ void CClientDemoDlg::InitPlayBackRefer() { if (!m_dlgPlayBack->IsWindowVisible()) { CRect rectPlayBack(0,0,0,0); rectPlayBack.top = m_iFunBtnHeight-2; rectPlayBack.left = m_iTreeWidth-2;//-2 cover preview box rectPlayBack.right = DEMO_FULL_WIDTH; rectPlayBack.bottom = DEMO_FULL_HEIGHT - m_iListLogHeight;//+4 m_dlgPlayBack->MoveWindow(&rectPlayBack,TRUE); m_dlgPlayBack->PlayBackWinUpdate(); m_dlgPlayBack->ShowWindow(SW_SHOW); } } /********************************************************* Function: OnBnClickedBtnRecord Desc: manually record uner preview interface Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnRecord() { if (g_struLocalParam.bAutoRecord) { OnTimer(AUTORECORD_TIMER); return; } if ((g_dlgOutput[m_iCurWndIndex].m_lPlayHandle >= 0) && (!g_dlgOutput[m_iCurWndIndex].m_bLocalManualRec)) { if (MakeRecDir()) { g_dlgOutput[m_iCurWndIndex].StartLocalRecord(); } NET_DVR_I_FRAME struIFrame; memset(&struIFrame, 0, sizeof(struIFrame)); struIFrame.dwSize = sizeof(NET_DVR_I_FRAME); struIFrame.dwChan = g_dlgOutput[m_iCurWndIndex].m_lChannel; //增加数组最大长度异常判断,解决异常崩溃 if (g_dlgOutput[m_iCurWndIndex].m_lChannel - MIRROR_CHAN_INDEX > 16) { return; } struIFrame.byStreamType = g_struDeviceInfo[g_dlgOutput[m_iCurWndIndex].m_struChanInfo.iDeviceIndex].struMirrorChan[g_dlgOutput[m_iCurWndIndex].m_lChannel - MIRROR_CHAN_INDEX].dwStreamType; if (!NET_DVR_RemoteControl(g_struDeviceInfo[g_dlgOutput[m_iCurWndIndex].m_struChanInfo.iDeviceIndex].lLoginID, NET_DVR_MAKE_I_FRAME, &struIFrame, sizeof(struIFrame))) { g_pMainDlg->AddLog(g_dlgOutput[m_iCurWndIndex].m_struChanInfo.iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_MAKE_I_FRAME %s", g_struDeviceInfo[g_dlgOutput[m_iCurWndIndex].m_struChanInfo.iDeviceIndex].struMirrorChan[g_dlgOutput[m_iCurWndIndex].m_lChannel - MIRROR_CHAN_INDEX].chChanName); } } else if (g_dlgOutput[m_iCurWndIndex].m_bLocalManualRec) { g_dlgOutput[m_iCurWndIndex].StopLocalRecord(); g_dlgOutput[m_iCurWndIndex].m_bSaveHead = FALSE; } } /********************************************************* Function: MakeRecDir Desc: create record directory Input: Output: Return: TRUE,create successful;FALSE,create failed; **********************************************************/ BOOL CClientDemoDlg::MakeRecDir() { CString sTemp; DWORD dwDirAttr; CTime time = CTime::GetCurrentTime(); char szLan[256] = {0}; //m_iCurRecDriver = g_pMainDlg->m_cHardDriver[g_struLocalParam.iStartRecordDriver]; sTemp.Format("%c:\\mpeg4record\\", m_iCurRecDriver); dwDirAttr = GetFileAttributes(sTemp); if ((dwDirAttr == -1) || !(dwDirAttr & FILE_ATTRIBUTE_DIRECTORY)) { if (!CreateDirectory(sTemp, NULL)) { g_StringLanType(szLan, "创建年月日目录失败", "create year-month-day directory failed"); AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, szLan); AfxMessageBox(szLan); return FALSE; } } else { sTemp.Format("%c:\\mpeg4record\\%4d-%02d-%02d\\", m_iCurRecDriver, time.GetYear(), time.GetMonth(), time.GetDay()); dwDirAttr=GetFileAttributes(sTemp); if ((dwDirAttr == -1) || !(dwDirAttr & FILE_ATTRIBUTE_DIRECTORY)) { if (!CreateDirectory(sTemp, NULL)) { g_StringLanType(szLan, "创建年月日目录失败", "create year-month-day directory failed"); AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, szLan); AfxMessageBox(szLan); return FALSE; } else { sprintf(g_struLocalParam.chClientRecordPath, "%s", sTemp.GetBuffer(0)); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "create %c:\\mpeg4record\\%4d-%02d-%02d", m_iCurRecDriver, time.GetYear(), time.GetMonth(), time.GetDay()); return TRUE; } } else { sprintf(g_struLocalParam.chClientRecordPath, "%s", sTemp.GetBuffer(0)); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "create directory:%s", sTemp.GetBuffer(0)); return TRUE; } } sTemp.Format("%c:\\mpeg4record\\%4d-%02d-%02d\\",m_iCurRecDriver, time.GetYear(), time.GetMonth(), time.GetDay()); if (!CreateDirectory(sTemp, NULL)) { return FALSE; } sprintf(g_struLocalParam.chClientRecordPath, "%s", sTemp.GetBuffer(0)); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "create %c:\\mpeg4record first, then create %4d-%02d-%02d", m_iCurRecDriver, time.GetYear(), time.GetMonth(), time.GetDay()); return TRUE; } /********************************************************* Function: IsDiskFull Desc: check disk full Input: Output: Return: TRUE,disk is full;FALSE,disk is not full **********************************************************/ BOOL CClientDemoDlg::IsDiskFull() { int i; ULARGE_INTEGER FreeSpace,CallerSpace,TotalSpace; CString csRecRootPath; for (i = g_struLocalParam.iStartRecordDriver; i < g_struLocalParam.iEndRecordDriver + 1; i++) { csRecRootPath.Format("%c%s",m_cHardDriver[i],":\\"); //start from hard driver GetDiskFreeSpaceEx(csRecRootPath,&CallerSpace,&TotalSpace,&FreeSpace); if (CallerSpace.QuadPart > MINSPACE) { m_iCurRecDriver = m_cHardDriver[i]; g_struLocalParam.bAllDiskFull = FALSE; return FALSE; } } g_struLocalParam.bAllDiskFull = TRUE; return TRUE; } /********************************************************* Function: DeleteClientRecordFile Desc: delete local record file Input: Output: Return: **********************************************************/ void CClientDemoDlg::DeleteClientRecordFile() { CFileFind cFile,cFileMp4; BOOL bFineDir,bFileFind; CString sDeleteDir,sTempDelete; CString sDir; CString sDate; CString sFileName; CTime time,temptime; int i = 0; // int iDelNum = 0; sDeleteDir.Format("0000-00-00"); sTempDelete.Format("3000-00-00"); time=CTime::GetCurrentTime(); for (i = g_struLocalParam.iStartRecordDriver; i < (g_struLocalParam.iEndRecordDriver + 1); i++) { sDir.Format("%c:\\mpeg4record\\*.*",m_cHardDriver[i]); bFineDir=cFile.FindFile(sDir);//judge whether the current directory has files while (bFineDir) { bFineDir=cFile.FindNextFile(); if (cFile.IsDots())//'.'mean current directory, & '..' means up directory. { continue; } if (cFile.IsDirectory()) { if (cFile.GetFileName()==_T("download"))//not download record { continue; } if (cFile.GetFileName()==_T("alarm"))//not alarm record { continue; } sFileName.Format("%c:\\mpeg4record\\%s\\*.mp4", m_cHardDriver[i], cFile.GetFileName().GetBuffer(0)); bFileFind=cFileMp4.FindFile(sFileName); if (!bFileFind) { RemoveDirectory(cFile.GetFilePath()); AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, cFile.GetFilePath().GetBuffer(0)); } while (bFileFind) { bFileFind=cFileMp4.FindNextFile(); if (cFile.IsDots()) { continue; } cFileMp4.GetCreationTime(temptime); if (temptime<time) { time=temptime; sTempDelete.Format("%s",cFileMp4.GetFilePath().GetBuffer(0)); } } } } } sFileName.Format("%s",sTempDelete.GetBuffer(0)); sTempDelete.Format("delete[%s]",sFileName.GetBuffer(0)); if (!DeleteFile(sFileName)) { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T,sTempDelete.GetBuffer(0)); for (i = 0; i < MAX_OUTPUTS; i++) { if ((g_dlgOutput[i].m_lPlayHandle >= 0) || (g_dlgOutput[i].m_bLocalManualRec)) { g_dlgOutput[i].StopLocalRecord(); } } char szLan[128] = {0}; g_StringLanType(szLan, "硬盘容量不足,自动删除文件失败,请清理硬盘后重新开始录像!",\ "Lack of hard drive capacity, automatic delete file failed, please clean up after the hard disk to start record!"); AfxMessageBox(szLan); } else { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, sTempDelete.GetBuffer(0)); //iDelNum++; } } /********************************************************* Function: OnBnClickedBtnManage Desc: advanded management operantion Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnManage() { CMenu pMenu; CRect cRectBtnManage(0,0,0,0); //GetCursorPos(&pt); GetDlgItem(IDC_BTN_MANAGE)->GetWindowRect(&cRectBtnManage); //select first node or blank if (!pMenu.LoadMenu(IDR_MENU_MANAGE)) { return; } pMenu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN,cRectBtnManage.left ,cRectBtnManage.bottom,this); } /********************************************************* Function: OnMenuUpgrade Desc: device upgrade Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuUpgrade() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } int iChanIndex = GetCurChanIndex(); if (iChanIndex < 0) { iChanIndex = 0; } CDlgUpgrade dlgUpgrade; dlgUpgrade.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlgUpgrade.m_lChannel = iChanIndex + g_struDeviceInfo[iDeviceIndex].iStartChan; dlgUpgrade.m_iDeviceIndex = iDeviceIndex; dlgUpgrade.DoModal(); } /********************************************************* Function: OnMenuReboot Desc: device reboot Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuReboot() { int iDeviceIndex = GetCurDeviceIndex(); int i = 0; char szLan[128] = {0}; if (iDeviceIndex == -1) { return; } g_StringLanType(szLan, "确定要重启设备?", "Sure to reboot device?"); if (IDOK!=MessageBox(szLan, "Warning",IDOK)) { return; } if (NET_DVR_RebootDVR(g_struDeviceInfo[iDeviceIndex].lLoginID)) { g_struDeviceInfo[iDeviceIndex].bAlarm = FALSE; g_struDeviceInfo[iDeviceIndex].bPlayDevice = FALSE; g_struDeviceInfo[iDeviceIndex].bVoiceTalk = FALSE; // g_struDeviceInfo[iDeviceIndex].dwImageType = DEVICE_LOGOUT; for (i = 0; i<MAX_CHANNUM_V30; i++) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = FALSE; } AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_RebootDVR"); g_StringLanType(szLan, "设备正在重启", "Device is rebooting"); AfxMessageBox(szLan); } else { AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_RebootDVR"); g_StringLanType(szLan, "设备重启失败", "Reboot device failed"); AfxMessageBox(szLan); } } /********************************************************* Function: OnMenuHDFormat Desc: disk format Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuHDFormat() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgFormatHD dlgFormatDisk; dlgFormatDisk.m_iDeviceIndex = iDeviceIndex; dlgFormatDisk.m_dwDiskNum = g_struDeviceInfo[iDeviceIndex].iDiskNum; dlgFormatDisk.DoModal(); } /********************************************************* Function: OnMenuPoweroff Desc: power off Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuPoweroff() { int iDeviceIndex = GetCurDeviceIndex(); char szLan[128] = {0}; if (iDeviceIndex == -1) { return; } g_StringLanType(szLan, "确定要关闭设备?", "Sure to shut down device?"); if (IDOK!=MessageBox(szLan, "Warning",IDOK)) { return; } if (NET_DVR_ShutDownDVR(g_struDeviceInfo[iDeviceIndex].lLoginID)) { AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_ShutDownDVR"); g_StringLanType(szLan, "设备正在关机", "Device is shutting down"); AfxMessageBox(szLan); } else { AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_ShutDownDVR"); g_StringLanType(szLan, "设备关机失败", "Shut down device failed"); AfxMessageBox(szLan); } } /********************************************************* Function: OnMenuFortify Desc: switch between setting guard and removing guard Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuFortify() { CDlgFortify dlg; int i = 0; dlg.DoModal(); if (dlg.m_bFortify) { for (i=0; i<MAX_DEVICES; i++) { if (g_struDeviceInfo[i].lLoginID >= 0) { ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(GetDeviceItem(i)), LPARAM(i)); } } } } /********************************************************* Function: OnMenuVoiceTalk Desc: start or stop voice talk Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuVoiceTalk() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgVoiceTalk dlg; dlg.m_dwDeviceIndex = iDeviceIndex; dlg.DoModal(); } /********************************************************* Function: OnMenuSerialTrans Desc: transport the data on serial ports Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnMenuSerialTrans() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CTransparentTrans dlg; dlg.m_iDeviceIndex = iDeviceIndex; dlg.DoModal(); } void CClientDemoDlg::OnMenuDebug() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgDebug dlg; dlg.m_iDevIndex = iDeviceIndex; dlg.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.DoModal(); } void CClientDemoDlg::OnMenuUploadCalibrationFile() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex == -1) { return; } CDlgUploadCalibrationFile dlg; dlg.m_iDevIndex = iDeviceIndex; dlg.m_lUserID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.DoModal(); } void CClientDemoDlg::OnMenuIperf() { CDlgIperf dlg; dlg.DoModal(); } void CClientDemoDlg::OnMenuCompleteRestore() { int iDeviceIndex = GetCurDeviceIndex(); char szLan[128] = {0}; if (iDeviceIndex == -1) { return; } int iChanIndex = GetCurChanIndex(); if (iChanIndex < 0) { iChanIndex = 0; } g_StringLanType(szLan, "确定要完全恢复默认参数?", "Sure to Complete restore the default parameters?"); if (IDOK!=MessageBox(szLan, "Warning",IDOK)) { return; } if (g_struDeviceInfo[iDeviceIndex].lLoginID<0) { return; } NET_DVR_COMPLETE_RESTORE_INFO m_struRestoreInfo = {0}; m_struRestoreInfo.dwSize = sizeof(NET_DVR_COMPLETE_RESTORE_INFO); m_struRestoreInfo.dwChannel = iChanIndex + g_struDeviceInfo[iDeviceIndex].iStartChan; if (!NET_DVR_RemoteControl(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_COMPLETE_RESTORE_CTRL, &m_struRestoreInfo, sizeof(NET_DVR_COMPLETE_RESTORE_INFO))) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_RemoteControl NET_DVR_COMPLETE_RESTORE_CTRL "); g_StringLanType(szLan, "恢复默认值失败", "Restore the default parameters failed"); AfxMessageBox(szLan);//DS9000 restore configure, reboot auto } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_RemoteControl NET_DVR_COMPLETE_RESTORE_CTRL"); g_StringLanType(szLan, "恢复默认值成功,请重启", "Restore the default parameters successfully"); AfxMessageBox(szLan); } } /********************************************************* Function: OnMenuDefaultConfig Desc: restore the default configure of the device Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnMenuDefaultConfig() { int iDeviceIndex = GetCurDeviceIndex(); char szLan[128] = {0}; if (iDeviceIndex == -1) { return; } g_StringLanType(szLan, "确定要恢复默认参数?", "Sure to restore the default parameters?"); if (IDOK!=MessageBox(szLan, "Warning",IDOK)) { return; } if (g_struDeviceInfo[iDeviceIndex].lLoginID<0) { return; } if (NET_DVR_RestoreConfig(g_struDeviceInfo[iDeviceIndex].lLoginID)) { AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_RestoreConfig"); g_StringLanType(szLan, "恢复默认值成功,请重启", "Restore the default parameters successfully"); AfxMessageBox(szLan);//DS9000 restore configure, reboot auto } else { AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_RestoreConfig"); g_StringLanType(szLan, "恢复默认值失败", "Restore the default parameters failed"); AfxMessageBox(szLan); } } /********************************************************* Function: OnMenuConfigFlash Desc: set or get the configure file Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnMenuConfigFlash() { CDlgConfigFlash dlg; dlg.DoModal(); } /********************************************************* Function: OnMenuImExportIPCCfgFile Desc: set or get the configure file Input: none Output: none Return: none **********************************************************/ // void CClientDemoDlg::OnMenuImExportIPCCfgFile() // { // DlgImexporIPCCfgFile dlg; // dlg.DoModal(); // } /********************************************************* Function: OnMenuTalkMR Desc: voice media redirect Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnMenuTalkMR() { CDlgTalkMREx dlg; int iDevIndex = GetCurDeviceIndex(); if (iDevIndex < 0) { return; } dlg.m_iDeviceIndex = iDevIndex; dlg.DoModal(); } /********************************************************* Function: OnBnClickedBtnPictureSnatch Desc: capture pic in bmp under preview Input: Output: Return: **********************************************************/ void CClientDemoDlg::PictureSnatchInSide() { int i = m_iCurWndIndex; if (g_dlgOutput[i].m_lPlayHandle < 0) { return; } char cFilename[256]; CString sTemp; CTime time = CTime::GetCurrentTime(); sTemp.Format("%s\\", g_struLocalParam.chPictureSavePath); DWORD dwRet = GetFileAttributes(sTemp); if ((dwRet == -1) || !(dwRet & FILE_ATTRIBUTE_DIRECTORY)) { CreateDirectory(sTemp, NULL); } PCHANNEL_INFO pChanInfo = &(g_dlgOutput[i].m_struChanInfo); sprintf(cFilename, "%s\\Preview_%s_%02d_%4d%02d%02d_%02d%02d%02d_%d.bmp", \ g_struLocalParam.chPictureSavePath, g_struDeviceInfo[pChanInfo->iDeviceIndex].chDeviceIPInFileName, \ g_struDeviceInfo[pChanInfo->iDeviceIndex].iStartChan+pChanInfo->iChanIndex, \ time.GetYear(), time.GetMonth(), time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond(), GetTickCount()); if (g_struLocalParam.bUseCard) { if (NET_DVR_CapturePicture_Card(g_dlgOutput[i].m_lPlayHandle, cFilename)) { CString sTemp; sTemp.Format("Capture picture succeed %s!",cFilename); AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, sTemp.GetBuffer(0)); return; } else { AfxMessageBox("Failed to capture picture!"); } } else { if (NET_DVR_CapturePicture(g_dlgOutput[i].m_lPlayHandle, cFilename)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_CapturePicture[%s]", cFilename); } else if (NET_DVR_GetLastError() == NET_DVR_NONBLOCKING_CAPTURE_NOTSUPPORT) { if (NET_DVR_CapturePictureBlock(g_dlgOutput[i].m_lPlayHandle, cFilename, 500)) { AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "NET_DVR_CapturePictureBlock[%s]", cFilename); } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_CapturePictureBlock[%s]", cFilename); char szLan[128] = { 0 }; g_StringLanType(szLan, "bmp抓图失败", "bmp snatch failed"); AfxMessageBox(szLan); } } else { AddLog(m_iCurDeviceIndex, OPERATION_FAIL_T, "NET_DVR_CapturePicture[%s]", cFilename); char szLan[128] = {0}; g_StringLanType(szLan, "bmp抓图失败", "bmp snatch failed"); AfxMessageBox(szLan); } } } void CClientDemoDlg::OnBnClickedBtnPictureSnatch() { if (g_bInSide) { PictureSnatchInSide(); return; } if (g_struLocalParam.bUseCard) { g_dlgOutput[m_iCurWndIndex].CapturePicture(); } g_bCapPic[m_iCurWndIndex] = TRUE; } /********************************************************* Function: OnMenuBroadCast Desc: audio broadcast deal Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnMenuBroadCast() { CBroadCast dlg; dlg.DoModal(); } /********************************************************* Function: OnBnClickedBtnLogClear Desc: clear up all log items in list Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnLogClear() { char szLan[128] = {0}; g_StringLanType(szLan, "确定清空列表吗?", "Sure to clear list?"); if (IDOK==MessageBox(szLan,"Warning",IDOK)) { if (m_iSelListType == 1) { m_listAlarmInfo.DeleteAllItems(); for (int i = 0; i< MAX_DEVICES; i++) { if (g_struDeviceInfo[i].lFortifyHandle >= 0) { ManualClearAlarm(i, -1); } } } else { m_listAllLog.DeleteAllItems(); } } } /********************************************************* Function: OnBnClickedBtnLogSave Desc: save all the log items in list Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnLogSave() { CString csFileName; CTime time; if (g_struLocalParam.bAutoSaveLog) { return; } int i; CString sTemp; CStdioFile myFile; int iCount = 0; time = CTime::GetCurrentTime(); if (m_iSelListType == 1) { iCount = m_listAlarmInfo.GetItemCount(); csFileName.Format("%s\\AlarmInfo_%4d%02d%02d_%02d%02d%02d.txt",\ g_struLocalParam.chRemoteCfgSavePath, time.GetYear(), time.GetMonth(),\ time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond()); } else { iCount = m_listAllLog.GetItemCount(); csFileName.Format("%s\\LogFile_%4d%02d%02d_%02d%02d%02d.txt",\ g_struLocalParam.chRemoteCfgSavePath, time.GetYear(), time.GetMonth(),\ time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond()); } if (iCount <= 0) { return; } if (myFile.Open(csFileName, CFile::modeCreate|CFile::modeWrite) == FALSE) { char szLan[128] = {0}; g_StringLanType(szLan, "文件创建失败", "create file failed"); AfxMessageBox(szLan); return; } for (i = 0; i < iCount; i++) { if (m_iSelListType == 1) { sTemp.Format("%s\t%s\n", m_listAllLog.GetItemText(i, 1).GetBuffer(0),\ m_listAllLog.GetItemText(i, 2).GetBuffer(0)); } else { sTemp.Format("%s\t%s\t%s\t%s\r\n", m_listAllLog.GetItemText(i, 1).GetBuffer(0),\ m_listAllLog.GetItemText(i, 2).GetBuffer(0), m_listAllLog.GetItemText(i, 3).GetBuffer(0),\ m_listAllLog.GetItemText(i, 4).GetBuffer(0)); } myFile.WriteString(sTemp); } myFile.Close(); } /********************************************************* Function: ManualClearAlarm Desc: clear alarm manually Input: iDeviceIndex,device index; iChanIndex,channel index, -1 clear all channel; Output: Return: **********************************************************/ void CClientDemoDlg::ManualClearAlarm(int iDeviceIndex, int iChanIndex) { CString csTemp; int i=0; if (iChanIndex == -1) {//select device node //give out hints while switch alarm logo if (g_struDeviceInfo[iDeviceIndex].bAlarm) { g_struDeviceInfo[iDeviceIndex].bAlarm = FALSE; ::PostMessage(m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(GetDeviceItem(iDeviceIndex)), LPARAM(iDeviceIndex)); } for (i=0; i<MAX_CHANNUM_V30; i++) { if (g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable && g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = FALSE; AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "ch[%d] clear alarm status", i+g_struDeviceInfo[iDeviceIndex].iStartChan); ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); } } } else { if (g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].bAlarm) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].bAlarm = FALSE; AddLog(m_iCurDeviceIndex, OPERATION_SUCC_T, "ch[%d] clear alarm status", iChanIndex+g_struDeviceInfo[iDeviceIndex].iStartChan); ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(m_iCurDeviceIndex), LPARAM(iChanIndex)); } } } /********************************************************* Function: OnBnClickedBtnLogConfig Desc: local log configuration Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnLogConfig() { CDlgLocalLogConfig dlg; dlg.DoModal(); } /********************************************************* Function: IsCurDevMatDec Desc: check current device is decoder Input: Output: Return: **********************************************************/ BOOL CClientDemoDlg::IsCurDevMatDec(int iDeviceIndex) { BOOL bRet = FALSE; if (iDeviceIndex != -1) { if (DEC == g_struDeviceInfo[iDeviceIndex].iDeviceType||DEC_MAT == g_struDeviceInfo[iDeviceIndex].iDeviceType || \ DS_6504D_B10 == g_struDeviceInfo[iDeviceIndex].iDeviceType||DS630X_D == g_struDeviceInfo[iDeviceIndex].iDeviceType || DS640X_HD == g_struDeviceInfo[iDeviceIndex].iDeviceType \ || DS_B10_XY == g_struDeviceInfo[iDeviceIndex].iDeviceType || DS610X_D == g_struDeviceInfo[iDeviceIndex].iDeviceType) { bRet = TRUE; } } return TRUE; } /********************************************************* Function: IsNeedRebootDevType Desc: some devices(8-ch,16-ch 7000,8000HS_S)need to reboot after modifying resolution Input: Output: Return: **********************************************************/ BOOL CClientDemoDlg::IsNeedRebootDevType(void) { int iDevIndex = GetCurDeviceIndex(); BOOL bRet = FALSE; if (iDevIndex != -1) { if ((DVR_HS_S == g_struDeviceInfo[iDevIndex].iDeviceType)\ ||(( DVR_7000H== g_struDeviceInfo[iDevIndex].iDeviceType) && (g_struDeviceInfo[iDevIndex].iDeviceChanNum == 8))\ ||(( DVR_7000H== g_struDeviceInfo[iDevIndex].iDeviceType) && (g_struDeviceInfo[iDevIndex].iDeviceChanNum == 16))) { bRet = TRUE; } } return bRet; } /********************************************************* Function: OnNMClickListAllLog Desc: Copy the contents to the clipboard Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnNMClickListAllLog(NMHDR *pNMHDR, LRESULT *pResult) { int iItemSel = 0; CString csTxt; POSITION iPos = m_listAllLog.GetFirstSelectedItemPosition(); if (iPos == NULL) { return; } iItemSel = m_listAllLog.GetNextSelectedItem(iPos); csTxt.Format("%s",m_listAllLog.GetItemText(iItemSel,3)); if (OpenClipboard()) { HGLOBAL clipbuffer; char * buffer; EmptyClipboard(); clipbuffer = GlobalAlloc(GMEM_DDESHARE, csTxt.GetLength()+1); buffer = (char*)GlobalLock(clipbuffer); strcpy(buffer, LPCSTR(csTxt)); GlobalUnlock(clipbuffer); SetClipboardData(CF_TEXT,clipbuffer); CloseClipboard(); } *pResult = 0; } /********************************************************* Function: PreTranslateMessage Desc: capture push enter button or esc button Input: none Output: none Return: none **********************************************************/ BOOL CClientDemoDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if (pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_ESCAPE) { if (g_struLocalParam.bFullScreen) { g_struLocalParam.bEnlarged = FALSE; g_struLocalParam.bMultiScreen = FALSE; g_struLocalParam.bFullScreen = FALSE; g_pMainDlg->GetDlgItem(IDC_COMBO_WNDNUM)->EnableWindow(TRUE); g_pMainDlg->FullScreen(g_struLocalParam.bFullScreen); if (g_struLocalParam.bFullScreen) { g_pMainDlg->ArrangeOutputs(g_pMainDlg->m_iCurWndNum); } else//multi-pic zoom { g_pMainDlg->ArrangeOutputs(g_pMainDlg->m_iCurWndNum); g_pMainDlg->GetDlgItem(IDC_STATIC_PREVIEWBG)->Invalidate(TRUE); } } else { GetDlgItem(IDC_BTN_TEST)->ShowWindow(SW_HIDE); } return TRUE; } if (pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_RETURN) { GetDlgItem(IDC_BTN_TEST)->ShowWindow(SW_SHOW); return TRUE; } else { return CDialog::PreTranslateMessage(pMsg); } } /********************************************************* Function: OnBnClickedBtnExit Desc: leave response function, release resource and exit demo Input: Output: Return: **********************************************************/ void CClientDemoDlg::OnBnClickedBtnExit() { char szLan[128] = {0}; g_bExitDemo = TRUE;//make not post message g_StringLanType(szLan, "确定要退出吗?", "Sure to exit?"); if (IDOK != MessageBox(szLan,"Warning",IDOK)) { return; } StopPlayAll();//stop all previews m_dlgPlayBack->FinishAll();//stop all play back if (m_pCyclePlayTimer) { KillTimer(CYCLE_PREVIEW_TIMER); m_pCyclePlayTimer = 0; } if (m_pFreeSpaceTimer) { KillTimer(FREESPACE_TIMER); m_pFreeSpaceTimer = 0; } if (m_pFileIntervalTimer) { KillTimer(FILEINTERVAL_TIMER); m_pFileIntervalTimer = 0; } if (m_pChkDevTimer) { KillTimer(CHECK_DEVICE_TIMER); m_pChkDevTimer = 0; } if (m_pSysTimer) { KillTimer(SYSTEM_TIMER); m_pSysTimer=0; } if (g_struLocalParam.bUseCard) { NET_DVR_ReleaseDevice_Card(); NET_DVR_ReleaseDDraw_Card(); } if (m_lListenHandle > 0) { NET_DVR_StopListen_V30(m_lListenHandle); } if (g_struLocalParam.bBroadCast) { NET_DVR_ClientAudioStop(); } //remove guard, log out int i = 0, j = 0; for (i=0; i<MAX_DEVICES; i++) { if (g_struDeviceInfo[i].lLoginID >= 0) { for (j=0; j<MAX_AUDIO_V40; j++) { if (g_struDeviceInfo[i].lVoiceCom[j] >= 0) { if (NET_DVR_StopVoiceCom(g_struDeviceInfo[i].lVoiceCom[j])) { g_struDeviceInfo[i].lVoiceCom[j] = -1; } } } if (g_struDeviceInfo[i].lFortifyHandle >= 0) { if (NET_DVR_CloseAlarmChan(g_struDeviceInfo[i].lFortifyHandle)) { g_struDeviceInfo[i].lFortifyHandle = -1; } } NET_DVR_Logout_V30(g_struDeviceInfo[i].lLoginID); g_struDeviceInfo[i].lLoginID = -1; } } //2011-11-16退出被动解码 int iPassiveChanIndex = 0; CString csStr; for (i=0; i<MAX_DEVICES; i++) { //64-T解码器被动解码通道为32个 for (int iPassiveChanIndex=0; iPassiveChanIndex<32; iPassiveChanIndex++) { if (g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lRealHandle >= 0) { NET_DVR_SetRealDataCallBack(g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lRealHandle, NULL, iPassiveChanIndex); if (!NET_DVR_StopRealPlay(g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lRealHandle)) { g_pMainDlg->AddLog(i, OPERATION_FAIL_T, "NET_DVR_StopRealPlay FAILED"); } else { g_pMainDlg->AddLog(i, OPERATION_SUCC_T, "NET_DVR_StopRealPlay SUCC"); g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lRealHandle = -1; } } if (g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lUserID >= 0) { if (!NET_DVR_Logout(g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lUserID)) { g_pMainDlg->AddLog(i, OPERATION_FAIL_T, "NET_DVR_Logout FAILED"); } else { g_pMainDlg->AddLog(i, OPERATION_SUCC_T, "NET_DVR_Logout SUCC"); g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lUserID = -1; } } if (g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].hFileThread != NULL) { SetEvent(g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].hExitThread); WaitForSingleObject(g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].hThreadExit, INFINITE); TRACE("### Wait for Thread Exit...\n"); } if (g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lPassiveHandle >= 0) { if (!NET_DVR_MatrixStopPassiveDecode(g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lPassiveHandle)) { g_pMainDlg->AddLog(i, OPERATION_FAIL_T, "NET_DVR_MatrixStopPassiveDecode FAILED"); //return; } else { g_pMainDlg->AddLog(i, OPERATION_SUCC_T, "NET_DVR_MatrixStopPassiveDecode SUCC"); g_struDeviceInfo[i].struPassiveDecode[iPassiveChanIndex].lPassiveHandle = -1; } } } } g_SaveDeviceConfig(); i = 0; OnButton1(); CDialog::OnCancel(); } /********************************************************* Function: OnCancel Desc: shutdown button response deal Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnCancel() { OnBnClickedBtnExit(); } /********************************************************* Function: DoGetDeviceResoureCfg Desc: get input device IP parameters Input: iDeviceIndex, the device index Output: none Return: TRUE/FALSE **********************************************************/ BOOL CClientDemoDlg::DoGetDeviceResoureCfg(int iDeviceIndex, int iGroupNO) { int i = 0; CString csTemp; LPNET_DVR_IPPARACFG_V40 lpIPAccessCfgV40 = &g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[iGroupNO]; DWORD dwReturned = 0; if (lpIPAccessCfgV40 == NULL) { return FALSE; } memset(lpIPAccessCfgV40, 0, sizeof(NET_DVR_IPPARACFG_V40)); //2008-9-15 13:44 ip input configuration g_struDeviceInfo[iDeviceIndex].bIPRet = NET_DVR_GetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_GET_IPPARACFG_V40, iGroupNO, &g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[iGroupNO], sizeof(NET_DVR_IPPARACFG_V40), &dwReturned); if (!g_struDeviceInfo[iDeviceIndex].bIPRet && g_struDeviceInfo[iDeviceIndex].byLoginModeRes == 0) { ///device no support ip access if (g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_B20_MSU_NP || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_MMC_B20_CLASS || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_B21_MCU_NP_CLASS || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_C20N_VWMS || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_AIOH_MCU_NP || \ g_struDeviceInfo[iDeviceIndex].iDeviceType == DS_Y10_MCU) //B20/B21主控 { //这里不需要做任何处理 } else { g_struDeviceInfo[iDeviceIndex].lFirstEnableChanIndex = 0; g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GET_IPPARACFG_V40"); for (i = 0; i < MAX_CHANNUM_V30; i++) { if (i < g_struDeviceInfo[iDeviceIndex].iAnalogChanNum) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = i; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = i + g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanType = DEMO_CHANNEL_TYPE_ANALOG; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, ANALOG_C_FORMAT, i + g_struDeviceInfo[iDeviceIndex].iStartChan); } else//clear the state of other channel { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = FALSE; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, ""); } } g_struDeviceInfo[iDeviceIndex].iGroupNO = -1; } } else { //ISAPI登录时,NET_DVR_GET_IPPARACFG_V40会失败,此时利用登录返回参数刷新数组通道 if (g_struDeviceInfo[iDeviceIndex].byLoginModeRes == 1) { for (i = 0; i < MAX_CHANNUM_V30; i++) { if (i < g_struDeviceInfo[iDeviceIndex].iIPChanNum) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = i; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = i + g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = TRUE; //此处默认显示在线,因为暂时没有获取状态,通过这个获取/ISAPI/ContentMgmt/InputProxy/channels/status g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanType = DEMO_CHANNEL_TYPE_IP; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, DIGITAL_C_FORMAT, i + g_struDeviceInfo[iDeviceIndex].iStartChan); } else//clear the state of other channel { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = FALSE; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, ""); } } lpIPAccessCfgV40->dwDChanNum = g_struDeviceInfo[iDeviceIndex].iIPChanNum; lpIPAccessCfgV40->dwStartDChan = g_struDeviceInfo[iDeviceIndex].iStartChan; } g_struDeviceInfo[iDeviceIndex].iGroupNO = iGroupNO; g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_GET_IPPARACFG_V40"); RefreshIPDevLocalCfg(iDeviceIndex); } if (g_struDeviceInfo[iDeviceIndex].byMirrorChanNum > 0 && g_struDeviceInfo[iDeviceIndex].wStartMirrorChanNo > g_struDeviceInfo[iDeviceIndex].iDeviceChanNum) { for (i=0; i<g_struDeviceInfo[iDeviceIndex].byMirrorChanNum&&i < 16; i++) { if (1) { g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChanIndex = i+MIRROR_CHAN_INDEX; sprintf(g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].chChanName, "MirrorChan%d", i+1); //analog devices if (1) { g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].dwImageType = CHAN_ORIGINAL; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChannelNO = i + g_struDeviceInfo[iDeviceIndex].wStartMirrorChanNo; // g_struDeviceInfo[iDeviceIndex].iEnableChanNum ++; } else { g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].dwImageType = CHAN_OFF_LINE; g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].bEnable = FALSE; } } } } if (g_struDeviceInfo[iDeviceIndex].byZeroChanNum > 0) { for (i=0; i<g_struDeviceInfo[iDeviceIndex].byZeroChanNum; i++) { if (1) { g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iChanIndex = i+ZERO_CHAN_INDEX; sprintf(g_struDeviceInfo[iDeviceIndex].struZeroChan[i].chChanName, "ZeroChan%d", i); //analog devices if (1) { g_struDeviceInfo[iDeviceIndex].struZeroChan[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].dwImageType = CHAN_ORIGINAL; // g_struDeviceInfo[iDeviceIndex].iEnableChanNum ++; } else { g_struDeviceInfo[iDeviceIndex].struZeroChan[i].dwImageType = CHAN_OFF_LINE; g_struDeviceInfo[iDeviceIndex].struZeroChan[i].bEnable = FALSE; } } } } return g_struDeviceInfo[iDeviceIndex].bIPRet; } /********************************************************* Function: DoGetIPAlarmInCfg Desc: get device alarm input configuration Input: iDeviceIndex, the device index bSupportMultiGroup, support multi group GroupNo, group number Output: none Return: TRUE/FALSE **********************************************************/ BOOL CClientDemoDlg::DoGetIPAlarmInCfg(int iDeviceIndex, BOOL bSupportMultiGroup, int GroupNO) { int i = 0; char szTmp[1024*5] = { 0 }; char szTmp1[32] = {0}; DWORD dwReturned = 0; // memset(&g_struDeviceInfo[iDeviceIndex].struAlarmInCfg, 0, sizeof(NET_DVR_IPALARMINCFG)); if (g_struDeviceInfo[iDeviceIndex].pStruIPAlarmInCfgV40 == NULL) { return FALSE; } memset(g_struDeviceInfo[iDeviceIndex].pStruIPAlarmInCfgV40, 0, sizeof(NET_DVR_IPALARMINCFG_V40)); if (bSupportMultiGroup) { g_struDeviceInfo[iDeviceIndex].bIPRet = NET_DVR_GetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_GET_IP_ALARM_IN, GroupNO, &g_struDeviceInfo[iDeviceIndex].struAlarmInCfg, sizeof(NET_DVR_IPALARMINCFG), &dwReturned); } else { g_struDeviceInfo[iDeviceIndex].bIPRet = NET_DVR_GetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_GET_IPALARMINCFG_V40, 0, g_struDeviceInfo[iDeviceIndex].pStruIPAlarmInCfgV40 , sizeof(NET_DVR_IPALARMINCFG_V40), &dwReturned); } if (g_struDeviceInfo[iDeviceIndex].bIPRet) { //8000 device // for (i=0; i< MAX_IP_ALARMIN; i++) // { // if (g_struDeviceInfo[iDeviceIndex].struAlarmInCfg.struIPAlarmInInfo[i].byIPID != 0) // { // sprintf(szTmp1, "%d[%d-%d]", i, g_struDeviceInfo[iDeviceIndex].struAlarmInCfg.struIPAlarmInInfo[i].byIPID, \ // g_struDeviceInfo[iDeviceIndex].struAlarmInCfg.struIPAlarmInInfo[i].byAlarmIn); // strcat(szTmp, szTmp1); // } // } for (i= 0; i < MAX_IP_ALARMIN_V40; i++) { if (g_struDeviceInfo[iDeviceIndex].pStruIPAlarmInCfgV40->struIPAlarmInInfo[i].dwIPID != 0) { sprintf(szTmp1, "%d[%d-%d]", i, g_struDeviceInfo[iDeviceIndex].pStruIPAlarmInCfgV40->struIPAlarmInInfo[i].dwIPID, \ g_struDeviceInfo[iDeviceIndex].pStruIPAlarmInCfgV40->struIPAlarmInInfo[i].dwAlarmIn); strcat(szTmp, szTmp1); } } g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_GET_IPALARMINCFG:%s", szTmp); } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GET_IPALARMINCFG"); } return g_struDeviceInfo[iDeviceIndex].bIPRet; } /********************************************************* Function: DoGetIPAlarmOutCfg Desc: get device output configuration Input: iDeviceIndex, the device index bSupportMultiGroup, support multi group GroupNo, group number Output: none Return: TRUE/FALSE **********************************************************/ BOOL CClientDemoDlg::DoGetIPAlarmOutCfg(int iDeviceIndex, BOOL bSupportMultiGroup, int GroupNO) { int i = 0; char szTmp[1024] = {0}; char szTmp1[32] = {0}; DWORD dwReturned = 0; // memset(&g_struDeviceInfo[iDeviceIndex].struAlarmOutCfg, 0, sizeof(NET_DVR_IPALARMOUTCFG)); if (g_struDeviceInfo[iDeviceIndex].pStruIPAlarmOutCfgV40 == NULL) { return FALSE; } memset(g_struDeviceInfo[iDeviceIndex].pStruIPAlarmOutCfgV40, 0, sizeof(NET_DVR_IPALARMOUTCFG_V40)); if (bSupportMultiGroup) { g_struDeviceInfo[iDeviceIndex].bIPRet = NET_DVR_GetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_GET_IP_ALARM_OUT, GroupNO, &g_struDeviceInfo[iDeviceIndex].struAlarmOutCfg, sizeof(NET_DVR_IPALARMOUTCFG), &dwReturned); } else { g_struDeviceInfo[iDeviceIndex].bIPRet = NET_DVR_GetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_GET_IPALARMOUTCFG_V40, 0, g_struDeviceInfo[iDeviceIndex].pStruIPAlarmOutCfgV40, sizeof(NET_DVR_IPALARMOUTCFG_V40), &dwReturned); } if (g_struDeviceInfo[iDeviceIndex].bIPRet) { //8000 device for (i=0; i< MAX_IP_ALARMOUT_V40; i++) { if (g_struDeviceInfo[iDeviceIndex].pStruIPAlarmOutCfgV40->struIPAlarmOutInfo[i].dwIPID != 0) { sprintf(szTmp1, "%d[%d-%d]", i, g_struDeviceInfo[iDeviceIndex].pStruIPAlarmOutCfgV40->struIPAlarmOutInfo[i].dwIPID, \ g_struDeviceInfo[iDeviceIndex].pStruIPAlarmOutCfgV40->struIPAlarmOutInfo[i].dwAlarmOut); strcat(szTmp, szTmp1); } } g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_GET_IPALARMOUTCFG_V40-%s", szTmp); } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_GET_IPALARMOUTCFG_V40"); } return g_struDeviceInfo[iDeviceIndex].bIPRet; } /********************************************************* Function: DoSetIPAccessCfg Desc: set the ip configure of device/设备ip接入参数 Input: iDeviceIndex, the device index dwGroupNo Group No. Output: none Return: TRUE/FALSE **********************************************************/ BOOL CClientDemoDlg::DoSetIPAccessCfg(int iDeviceIndex, DWORD dwGroupNo) { BOOL bIPRet = FALSE; //2008-9-15 13:44 ip input configuration bIPRet = NET_DVR_SetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, NET_DVR_SET_IPPARACFG_V40, dwGroupNo, &g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[dwGroupNo], sizeof(g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0])); if (bIPRet) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "NET_DVR_SET_IPPARACFG_V40"); RefreshIPDevLocalCfg(iDeviceIndex); } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "NET_DVR_SET_IPPARACFG_V40"); } return bIPRet; } /********************************************************* Function: RefreshIPDevLocalCfg Desc: refresh the ip device configure of local device configure Input: iDeviceIndex, the device index in the local device group Output: none Return: none **********************************************************/ void CClientDemoDlg::RefreshIPDevLocalCfg(int iDeviceIndex) { EnterCriticalSection(&m_struLock); LPNET_DVR_IPPARACFG_V40 lpIPAccessCfgV40 = &g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[g_struDeviceInfo[iDeviceIndex].iGroupNO]; DWORD dwChanShow = 0; int iIPChanIndex = 0; int i = 0; // for (i=0; i<MAX_IP_DEVICE; i++) // { // AddLog(-1, OPERATION_SUCC_T, "IP dev chan[%d] ip=%s name=%s", i,\ // lpIPAccessCfg->struIPDevInfo[i].struIP.sIpV4, lpIPAccessCfg->struIPDevInfo[i].sUserName); // } //Update MAX IP channel number. g_struDeviceInfo[iDeviceIndex].iIPChanNum = lpIPAccessCfgV40->dwDChanNum; int iAnalogChanCount = 0; int iIPChanCount = 0; int iGroupNO = g_struDeviceInfo[iDeviceIndex].iGroupNO; //Group NO. int iGroupNum = lpIPAccessCfgV40->dwGroupNum; int iIPChanNum = g_struDeviceInfo[iDeviceIndex].iIPChanNum; int iMaxGroupDeviceNum = 0; if (0 == iGroupNO) { iMaxGroupDeviceNum = MAX_CHANNUM_V30 + g_struDeviceInfo[iDeviceIndex].iAnalogChanNum; } else { iMaxGroupDeviceNum = MAX_CHANNUM_V30; } for (i = 0; i < iMaxGroupDeviceNum; i++) { //analog channel if (iAnalogChanCount < g_struDeviceInfo[iDeviceIndex].iAnalogChanNum && 0 == iGroupNO) { dwChanShow = iAnalogChanCount + g_struDeviceInfo[iDeviceIndex].iStartChan/* + g_struDeviceInfo[iDeviceIndex].iGroupNO*64*/; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = i; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanType = DEMO_CHANNEL_TYPE_ANALOG; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = dwChanShow; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, ANALOG_C_FORMAT, dwChanShow); //analog devices if (lpIPAccessCfgV40->byAnalogChanEnable[i]) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = TRUE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType = CHAN_ORIGINAL; //g_struDeviceInfo[iDeviceIndex].iEnableChanNum ++; } else { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = FALSE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType = CHAN_OFF_LINE; } iAnalogChanCount++; } //IP channel //(i>=MAX_ANALOG_CHANNUM && i<MAX_ANALOG_CHANNUM+g_struDeviceInfo[iDeviceIndex].iIPChanNum) ) // else if (iGroupNO >= 0 && ((iIPChanCount + iGroupNO * MAX_CHANNUM_V30) < iIPChanNum) && (iIPChanCount < iIPChanNum )) // { // dwChanShow = iIPChanCount + iGroupNO * MAX_CHANNUM_V30 + lpIPAccessCfgV40->dwStartDChan - 1; // // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].iChanType = DEMO_CHANNEL_TYPE_IP; // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].iChannelNO = dwChanShow + 1; // // iIPChanIndex = iIPChanCount; // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].iDeviceIndex = iDeviceIndex; // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].iChanIndex =i + g_struDeviceInfo[iDeviceIndex].iGroupNO*64; // sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i + g_struDeviceInfo[iDeviceIndex].iGroupNO*64].chChanName, DIGITAL_C_FORMAT, iIPChanCount + iGroupNO * MAX_CHANNUM_V30 + 1); // // AddLog(-1, OPERATION_SUCC_T, "IPc%d id%d chan[%d] ", iIPChanIndex,\ // // lpIPAccessCfg->struIPChanInfo[iIPChanIndex].byIPID, lpIPAccessCfg->struIPChanInfo[iIPChanIndex].byChannel); // if (lpIPAccessCfgV40->struStreamMode[iIPChanIndex].uGetStream.struChanInfo.byIPID != 0 && lpIPAccessCfgV40->struStreamMode[iIPChanIndex].uGetStream.struChanInfo.byEnable == TRUE) // { // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].bEnable = TRUE;// // if (lpIPAccessCfgV40->struStreamMode[iIPChanIndex].uGetStream.struChanInfo.byEnable) // { // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].dwImageType = CHAN_ORIGINAL; // } // else // { // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].dwImageType = CHAN_OFF_LINE; // } // // // g_struDeviceInfo[iDeviceIndex].iEnableChanNum ++; // } // else // { // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].dwImageType = CHAN_OFF_LINE; // g_struDeviceInfo[iDeviceIndex].pStruChanInfo[dwChanShow].bEnable = FALSE; // //g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = FALSE; // } // // iIPChanCount++; // } else if (iGroupNO >= 0 && ((iIPChanCount + iGroupNO * MAX_CHANNUM_V30) < iIPChanNum) && (iIPChanCount < iIPChanNum)) { dwChanShow = iIPChanCount + iGroupNO * MAX_CHANNUM_V30 + lpIPAccessCfgV40->dwStartDChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanType = DEMO_CHANNEL_TYPE_IP; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = dwChanShow; iIPChanIndex = iIPChanCount; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = iDeviceIndex; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = i; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, DIGITAL_C_FORMAT, iIPChanCount + iGroupNO * MAX_CHANNUM_V30 + 1); if (g_struDeviceInfo[iDeviceIndex].byLoginModeRes == 1 || (lpIPAccessCfgV40->struStreamMode[iIPChanIndex].uGetStream.struChanInfo.byIPID != 0 && lpIPAccessCfgV40->struStreamMode[iIPChanIndex].uGetStream.struChanInfo.byEnable == TRUE)) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = TRUE;//ISAPI登录需要获取通道是否在线 if (lpIPAccessCfgV40->struStreamMode[iIPChanIndex].uGetStream.struChanInfo.byEnable) { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType = CHAN_ORIGINAL; } else { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType = CHAN_OFF_LINE; } // g_struDeviceInfo[iDeviceIndex].iEnableChanNum ++; } else { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType = CHAN_OFF_LINE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = FALSE; //g_struDeviceInfo[iDeviceIndex].struChanInfo[i].bAlarm = FALSE; } iIPChanCount++; } else { g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iDeviceIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanType = DEMO_CHANNEL_TYPE_INVALID; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChannelNO = -1; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable = FALSE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = FALSE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bLocalManualRec = FALSE; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].lRealHandle = -1; sprintf(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName, ""); } } for (i = 0; i < iMaxGroupDeviceNum; i++) { if (g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable) { g_struDeviceInfo[iDeviceIndex].lFirstEnableChanIndex = i; break; } } if (g_struDeviceInfo[iDeviceIndex].byZeroChanNum > 0) { //get配置 } LeaveCriticalSection(&m_struLock); } /********************************************************* Function: RedrawDeviceNode Desc: redraw the device node on device tree, delete all channels node first, then add new channels Input: iDeviceIndex, the device index in the local device group Output: none Return: none **********************************************************/ void CClientDemoDlg::RedrawDeviceNode(int iDeviceIndex) { HTREEITEM hChanItem = NULL; HTREEITEM hPreItem = NULL; CString csTmp; int i = 0; int iData = 0; int iLoginStat = DEVICE_LOGIN; if (iDeviceIndex >= 1000)//设备序号大于1000时表示只添加不登陆 { iDeviceIndex-=1000; iLoginStat = DEVICE_LOGOUT; } else { iLoginStat = DEVICE_LOGIN; } if (g_bPlayAllDevice || g_struDeviceInfo[iDeviceIndex].bPlayDevice) { return; } HTREEITEM hRoot = m_treeDeviceList.GetRootItem(); if (hRoot == NULL) { return; } HTREEITEM hDevItem = m_treeDeviceList.GetChildItem(hRoot); //find the select device while (hDevItem != NULL) { iData = m_treeDeviceList.GetItemData(hDevItem); if (DEVICETYPE == iData/1000) { if (iDeviceIndex == iData%1000) { HTREEITEM hChanItem = m_treeDeviceList.GetChildItem(hDevItem); while (i < MAX_CHANNUM_V30 * 2 + g_struDeviceInfo[iDeviceIndex].byZeroChanNum && hChanItem != NULL) { hPreItem = hChanItem; hChanItem = m_treeDeviceList.GetNextSiblingItem(hChanItem); if (CHANNELTYPE != (int)m_treeDeviceList.GetItemData(hPreItem)/1000) { AddLog(iDeviceIndex, OPERATION_FAIL_T, "to next channel node error"); break; } i++; } break; } }//end else if hDevItem = m_treeDeviceList.GetNextVisibleItem(hDevItem); }//end while if (hDevItem != NULL) { while(i>0 && hPreItem != NULL) { hChanItem = hPreItem; hPreItem = m_treeDeviceList.GetPrevSiblingItem(hChanItem); if (hPreItem == NULL) { // AddLog(iDeviceIndex, OPERATION_SUCC_T, "del last chan[%d]", m_treeDeviceList.GetItemData(hChanItem)%1000); hPreItem = m_treeDeviceList.GetParentItem(hChanItem); m_treeDeviceList.DeleteItem(hChanItem); if (hPreItem == NULL) { AddLog(-1, OPERATION_FAIL_T, "get the device node err"); break; } if (CHANNELTYPE != (int)m_treeDeviceList.GetItemData(hPreItem)/1000) { // AddLog(iDeviceIndex, OPERATION_SUCC_T, "dev[%d] node all delete", m_treeDeviceList.GetItemData(hPreItem)%1000); break; } } //AddLog(iDeviceIndex, OPERATION_SUCC_T, "del chan[%d]", m_treeDeviceList.GetItemData(hChanItem)%1000); m_treeDeviceList.DeleteItem(hChanItem); i--; } } if (hDevItem == NULL) {//added 9000 devices hDevItem = m_treeDeviceList.InsertItem(g_struDeviceInfo[iDeviceIndex].chLocalNodeName, iLoginStat, iLoginStat, hRoot, GetAfterItem(hRoot)); } //add channel node//g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bEnable || for (i = 0; i< MAX_CHANNUM_V30 * 2; i++) { if (g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex != -1 ) { csTmp.Format("%s", g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].chChanName); hChanItem = m_treeDeviceList.InsertItem(csTmp, g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType, \ g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].dwImageType, hDevItem); m_treeDeviceList.SetItemData(hChanItem, CHANNELTYPE * 1000 + g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].iChanIndex); } } for (i=0; i< g_struDeviceInfo[iDeviceIndex].byZeroChanNum; i++) { if (g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iChanIndex != -1 ) { csTmp.Format("%s", g_struDeviceInfo[iDeviceIndex].struZeroChan[i].chChanName); hChanItem = m_treeDeviceList.InsertItem(csTmp, g_struDeviceInfo[iDeviceIndex].struZeroChan[i].dwImageType, \ g_struDeviceInfo[iDeviceIndex].struZeroChan[i].dwImageType, hDevItem); m_treeDeviceList.SetItemData(hChanItem, CHANNELTYPE * 1000 + g_struDeviceInfo[iDeviceIndex].struZeroChan[i].iChanIndex); } } for (i=0; i< g_struDeviceInfo[iDeviceIndex].byMirrorChanNum && i < 16; i++) { if (g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChanIndex != -1 ) { csTmp.Format("%s", g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].chChanName); hChanItem = m_treeDeviceList.InsertItem(csTmp, g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].dwImageType, \ g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].dwImageType, hDevItem); m_treeDeviceList.SetItemData(hChanItem, CHANNELTYPE * 1000 + g_struDeviceInfo[iDeviceIndex].struMirrorChan[i].iChanIndex); } } } /********************************************************* Function: DoTestElseFunction Desc: test Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::DoTestElseFunction() { int iDevIndex = GetCurDeviceIndex(); CDlgDoTest dlg; dlg.m_iDeviceIndex = iDevIndex; dlg.DoModal(); } /********************************************************* Function: OnDbclkListAllLog Desc: get current device fault info Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnDblclkListAllLog(NMHDR* pNMHDR, LRESULT* pResult) { int iItemSel = 0; CString csTxt; POSITION iPos = m_listAllLog.GetFirstSelectedItemPosition(); if (iPos == NULL) { return; } iItemSel = m_listAllLog.GetNextSelectedItem(iPos);//%s\t%s\tm_listAllLog.GetItemText(iItemSel,1),\m_listAllLog.GetItemText(iItemSel,2) csTxt.Format("%s",m_listAllLog.GetItemText(iItemSel,5)); if (csTxt.GetLength() > 3) { AfxMessageBox(csTxt); } *pResult = 0; } /********************************************************* Function: OnDblclkListAlarmInfo Desc: get current Alarm Info Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnDblclkListAlarmInfo(NMHDR* pNMHDR, LRESULT* pResult) { int iItemSel = 0; CString csTxt; POSITION iPos = m_listAlarmInfo.GetFirstSelectedItemPosition(); if (iPos == NULL) { return; } iItemSel = m_listAlarmInfo.GetNextSelectedItem(iPos); csTxt.Format("%s",m_listAlarmInfo.GetItemText(iItemSel,2)); if (csTxt.GetLength() > 3) { AfxMessageBox(csTxt); } *pResult = 0; } /********************************************************* Function: OnSelchangeComboListType Desc: select the corresponding list, alarm or log Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnSelchangeComboListType() { // TODO: Add your control notification handler code here UpdateData(TRUE); ListRestore(); if (m_iMainType == CONFIG_ALL_T) { m_dlgConfigAll->ConfigWndUpdate(); } else if (m_iMainType == PLAY_BACK_T) { m_dlgPlayBack->ShowWindow(SW_SHOW); m_dlgPlayBack->PlayBackWinUpdate(); } else if (m_iMainType == PREVIEW_T) { PreviewReferShow(TRUE); } switch (m_iSelListType) { case 0: m_listAlarmInfo.ShowWindow(SW_HIDE); m_listAllLog.ShowWindow(SW_SHOW); break; case 1: m_listAllLog.ShowWindow(SW_HIDE); m_listAlarmInfo.ShowWindow(SW_SHOW); break; default: break; } } /********************************************************* Function: OnColumnclickListAllLog Desc: response the Column-click of all log list Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnColumnclickListAllLog(NMHDR* pNMHDR, LRESULT* pResult) { EnlargeList(m_listAllLog, m_bListLogEnlarge); *pResult = 0; } /********************************************************* Function: OnColumnclickListAlarmInfo Desc: response the Column-click of all log list Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnColumnclickListAlarmInfo(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here EnlargeList(m_listAlarmInfo, m_bListAlarmEnlarge); *pResult = 0; } /********************************************************* Function: EnlargeList Desc: enlarge list when click the column Input: list, log or alarm information tree; bEnargeList, TRUE/FALSE; Output: none Return: none **********************************************************/ void CClientDemoDlg::EnlargeList(CListCtrl &list, BOOL &bEnargeList) { CRect rc(0,0,0,0); list.GetWindowRect(&rc); ScreenToClient(&rc); if (!bEnargeList) { rc.top-=LIST_ENLARGE_HIGH;//move top upper, stretch list.MoveWindow(&rc); bEnargeList = TRUE; if (m_iMainType == CONFIG_ALL_T) { m_dlgRemoteCfg->ShowWindow(SW_HIDE); // m_dlgRemoteCfg->ChangeCurConfigWnd(REMOTE_MAT_DEC_CFG_T+1); m_dlgRemoteCfg->ChangeCurConfigWnd(REMOTE_DEVICE_CFG_T); m_dlgLocalCfg->ShowWindow(SW_HIDE); m_dlgIPAccess->ShowWindow(SW_HIDE); m_dlgHDConfig->ShowWindow(SW_HIDE); m_dlgBatchCfg->ShowWindow(SW_HIDE); } else if (m_iMainType == PLAY_BACK_T) { m_dlgPlayBack->ShowWindow(SW_HIDE); // m_dlgPlayBack->m_dlgPlayRemoteFile.ShowWindow(SW_HIDE); // m_dlgPlayBack->m_dlgPlayLocalFile.ShowWindow(SW_HIDE); // m_dlgPlayBack->m_dlgPlayRemoteTime.ShowWindow(SW_HIDE); } else if(m_iMainType == STREAM_ID_T) { // m_pStreamIDDlg->ShowWindow(SW_HIDE); } else if (m_iMainType == PRODUCT_RELATE_T) { m_dlgProductCfg->ShowWindow(SW_HIDE); } else { PreviewReferShow(FALSE); m_dlgOutputCtrl->ShowWindow(SW_SHOW); } } else { rc.top+=LIST_ENLARGE_HIGH;//move top down, compress list.MoveWindow(&rc); bEnargeList = FALSE; if (m_iMainType == CONFIG_ALL_T) { m_dlgConfigAll->ConfigWndUpdate(); } else if (m_iMainType == PLAY_BACK_T) { m_dlgPlayBack->ShowWindow(SW_SHOW); // m_dlgPlayBack->PlayBackWinUpdate(); } else if (m_iMainType == STREAM_ID_T) { //m_pStreamIDDlg->ShowWindow(SW_SHOW); } else if (m_iMainType == PRODUCT_RELATE_T) { m_dlgProductCfg->ShowWindow(SW_SHOW); } else { PreviewReferShow(TRUE); } } if (!g_struLocalParam.bFullScreen) { list.ShowWindow(SW_SHOW); } } void CClientDemoDlg::ProcAlarmHostAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szLan[128] ={0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ALARMHOST_ALARMINFO struAlarmInfo; memset(&struAlarmInfo, 0, sizeof(struAlarmInfo)); CTime time = CTime::GetCurrentTime(); memcpy(&struAlarmInfo, pAlarmInfo, sizeof(struAlarmInfo)); g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); g_StringLanType(szLan, "收到网络报警主机报警", "receive alarmhost alarm"); memcpy(szInfoBuf, szLan, strlen(szLan)); for (i = 0; i < ARRAY_SIZE(struAlarmInfo.byAlarmInputNumber); i++) { sprintf(&szInfoBuf[i + strlen(szLan)], "%d", struAlarmInfo.byAlarmInputNumber[i]); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } /********************************************************* Function: OnBtnTest Desc: for testing the interfaces those are not used usually Input: none Output: none Return: none **********************************************************/ void CClientDemoDlg::OnBtnTest() { // TODO: Add your control notification handler code here DoTestElseFunction(); NET_DVR_SDKSTATE SDKState; NET_DVR_GetSDKState( &SDKState ); g_pMainDlg->AddLog(-1, OPERATION_SUCC_T, "SDKState.dwTotalRealPlayNum %d", SDKState.dwTotalRealPlayNum); return; } void CClientDemoDlg::ListRestore() { CRect rc(0,0,0,0); if (m_bListLogEnlarge) { m_listAllLog.GetWindowRect(&rc); ScreenToClient(&rc); rc.top+=LIST_ENLARGE_HIGH;//move top down, compress m_listAllLog.MoveWindow(&rc); m_bListLogEnlarge = FALSE; } if (m_bListAlarmEnlarge) { m_listAlarmInfo.GetWindowRect(&rc); ScreenToClient(&rc); rc.top+=LIST_ENLARGE_HIGH;//move top down, compress m_listAlarmInfo.MoveWindow(&rc); m_bListAlarmEnlarge = FALSE; } } void CClientDemoDlg::OnRadioLocalLog() { // TODO: Add your control notification handler code here UpdateData(TRUE); m_iSelListType = 0; OnSelchangeComboListType(); UpdateData(FALSE); } void CClientDemoDlg::OnRadioAlarmInfo() { // TODO: Add your control notification handler code here UpdateData(TRUE); m_iSelListType = 1; OnSelchangeComboListType(); UpdateData(FALSE); } void CClientDemoDlg::OnMenuAtmFrameFormat() { // TODO: Add your command handler code here int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex < 0) { return; } int iChanIndex = GetCurChanIndex(); if (iChanIndex < 0) { iChanIndex = 0;//default to config channel one } CDlgAtmFrameFormatV30 dlg; dlg.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.m_iDevIndex = iDeviceIndex; dlg.m_iChannelNum = g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; dlg.DoModal(); } void CClientDemoDlg::OnMenuSensorAddPreview() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex < 0) { return; } CDlgSensorAddPreview dlg; dlg.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.m_iDevIndex = iDeviceIndex; dlg.DoModal(); } void CClientDemoDlg::OnMenuHolidayCfg() { int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex < 0) { return; } CDlgHolidayCfg dlg; dlg.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.m_iDevIndex = iDeviceIndex; dlg.DoModal(); DWORD dwGetCommand = NET_DVR_GET_ALARMOUT_HOLIDAY_HANDLE; DWORD dwSetCommand = NET_DVR_SET_ALARMOUT_HOLIDAY_HANDLE; NET_DVR_HOLIDAY_HANDLE struHolidayHandle = {0}; DWORD dwReturn = 0; if (NET_DVR_GetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, dwGetCommand, 1, &struHolidayHandle, sizeof(struHolidayHandle), &dwReturn)) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "Get Holiday handle"); } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Get Holiday handle"); } memset(&struHolidayHandle, 0, sizeof(struHolidayHandle)); if (NET_DVR_SetDVRConfig(g_struDeviceInfo[iDeviceIndex].lLoginID, dwSetCommand, 1, &struHolidayHandle, sizeof(struHolidayHandle))) { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "Set Holiday handle"); } else { g_pMainDlg->AddLog(iDeviceIndex, OPERATION_SUCC_T, "Set Holiday handle"); } } void CClientDemoDlg::OnButton1() { // TODO: Add your control notification handler code here NET_DVR_Cleanup(); NET_DVR_Init(); NET_DVR_SDKSTATE SDKState; NET_DVR_GetSDKState(&SDKState); } void CClientDemoDlg::ProcAlarmVQD(WPARAM wParam, LPARAM lParam) { LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_VQD_DIAGNOSE_INFO struVQDAlarm = {0}; memcpy(&struVQDAlarm, pAlarmInfo, sizeof(struVQDAlarm)); char szLan[1024] = {0}; char szLanCn[1024] = {0}; char szLanEn[1024] = {0}; if (struVQDAlarm.struVQDDiagnoseExceptionInfo.dwChannelNO <= g_struDeviceInfo[iDeviceIndex].iAnalogChanNum) { sprintf(szLanCn,"Camera%d",struVQDAlarm.struVQDDiagnoseExceptionInfo.dwChannelNO); sprintf(szLanEn,"Camera%d",struVQDAlarm.struVQDDiagnoseExceptionInfo.dwChannelNO); } else { sprintf(szLanCn,"IPCamera%02d",struVQDAlarm.struVQDDiagnoseExceptionInfo.dwChannelNO); sprintf(szLanEn,"IPCamera%02d",struVQDAlarm.struVQDDiagnoseExceptionInfo.dwChannelNO); } switch (struVQDAlarm.struVQDDiagnoseExceptionInfo.dwVQDType) { case VQD_BLUR_FLAG: sprintf(szLanCn,"%s 图像模糊",szLanCn); sprintf(szLanEn,"%s Blur",szLanEn); break; case VQD_LUMA_FLAG: sprintf(szLanCn,"%s 亮度异常",szLanCn); sprintf(szLanEn,"%s Luma",szLanEn); break; case VQD_CHROMA_FLAG: sprintf(szLanCn,"%s 图像偏色",szLanCn); sprintf(szLanEn,"%s Chroma",szLanEn); break; case VQD_SNOW_FLAG: sprintf(szLanCn,"%s 雪花干扰",szLanCn); sprintf(szLanEn,"%s Snow",szLanEn); break; case VQD_STREAK_FLAG: sprintf(szLanCn,"%s 条纹干扰",szLanCn); sprintf(szLanEn,"%s Streak",szLanEn); break; case VQD_FREEZE_FLAG: sprintf(szLanCn,"%s 画面冻结",szLanCn); sprintf(szLanEn,"%s Freeze",szLanEn); break; case VQD_SIGLOSE_FLAG: sprintf(szLanCn,"%s 信号丢失",szLanCn); sprintf(szLanEn,"%s Signal Lose",szLanEn); break; case VQD_PTZ_FLAG: sprintf(szLanCn,"%s 云台失控",szLanCn); sprintf(szLanEn,"%s PTZ",szLanEn); break; default: g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, "Unknown Alarm"); return; } sprintf(szLanCn,"%s %4d-%2d-%2d %2d:%2d:%2d",szLanCn, struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwYear,\ struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwMonth, struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwDay,\ struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwHour, struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwMinute,\ struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwSecond); sprintf(szLanEn,"%s %4d-%2d-%2d %2d:%2d:%2d",szLanEn, struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwYear,\ struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwMonth, struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwDay,\ struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwHour, struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwMinute,\ struVQDAlarm.struVQDDiagnoseExceptionInfo.struDiagnoseTime.dwSecond); g_StringLanType(szLan,szLanCn,szLanEn); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szLan); } void CClientDemoDlg::ProcAlarmVQDEx(WPARAM wParam,LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_VQD_ALARM struVQDAlarm = {0}; CTime time = CTime::GetCurrentTime(); memcpy(&struVQDAlarm, pAlarmInfo, sizeof(struVQDAlarm)); i = struVQDAlarm .struDevInfo.byIvmsChannel-g_struDeviceInfo[iDeviceIndex].iStartChan; g_struDeviceInfo[iDeviceIndex].pStruChanInfo[i].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_CHANNEL_ITEM_IMAGE, WPARAM(iDeviceIndex), LPARAM(i)); NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struVQDAlarm.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struVQDAlarm.dwAbsTime); struAbsTime.dwDay = GET_DAY(struVQDAlarm.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struVQDAlarm.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struVQDAlarm.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struVQDAlarm.dwAbsTime); CString str = ""; sprintf(szInfoBuf, "VQD extended Alarm Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d]Dev IP[%s] Port[%d] Chan[%d] \ EventType[%d],Threshold[%.3f]", struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour, struAbsTime.dwMinute, struAbsTime.dwSecond, struVQDAlarm.struDevInfo.struDevIP.sIpV4, struVQDAlarm.struDevInfo.wPort, struVQDAlarm.struDevInfo.byChannel,struVQDAlarm.dwEventType,struVQDAlarm.fThreshold); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struVQDAlarm.dwPicDataLen > 0 && struVQDAlarm.pImage != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s].jpg",cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struVQDAlarm.pImage, struVQDAlarm.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struVQDAlarm.pImage != NULL) { delete [] (struVQDAlarm.pImage); struVQDAlarm.pImage = NULL; } } // void CClientDemoDlg::OnMenuTs() // { // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex < 0) // { // return; // } // // int iChanIndex = GetCurChanIndex(); // if (iChanIndex < 0) // { // iChanIndex = 0;//default to config channel one // } // // STRU_CHANNEL_INFO *pChannelInfo = &(g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex]); // int iChanShow = pChannelInfo->iChannelNO; // // CDlgTsSeries dlg; // dlg.m_lLoginID = g_struDeviceInfo[iDeviceIndex].lLoginID; // dlg.m_iDeviceIndex = iDeviceIndex; // dlg.m_lChannel = iChanShow; // dlg.DoModal(); // } // void CClientDemoDlg::OnMenuIPIntell() // { // // TODO: Add your command handler code here // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex < 0) // { // return; // } // // // int iChanIndex = GetCurChanIndex(); // if (iChanIndex < 0) // { // iChanIndex = 0;//default to config channel one // } // // CDlgIPCSimpIntellCfg dlg; // dlg.m_lLoginID = g_struDeviceInfo[iDeviceIndex].lLoginID; // dlg.m_iDeviceIndex = iDeviceIndex; // dlg.m_lChannel = iChanIndex + g_struDeviceInfo[iDeviceIndex].iStartChan; // dlg.m_iChanCount = g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; // dlg.m_iAnaChanCount = g_struDeviceInfo[iDeviceIndex].iAnalogChanNum; // dlg.m_iDStartChannel = g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].dwStartDChan; // // dlg.DoModal(); // } // void CClientDemoDlg::OnMenuIpcSpecialex() // { // //2013-06-17 // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex < 0) // { // return; // } // // // int iChanIndex = GetCurChanIndex(); // if (iChanIndex < 0) // { // iChanIndex = 0; // } // // CDlgIPCSpeclalEx dlg; // dlg.m_lLoginID = g_struDeviceInfo[iDeviceIndex].lLoginID; // dlg.m_iDeviceIndex = iDeviceIndex; // dlg.m_lChannel = iChanIndex + g_struDeviceInfo[iDeviceIndex].iStartChan; // dlg.m_iChanCount = g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; // dlg.m_iAnaChanCount = g_struDeviceInfo[iDeviceIndex].iAnalogChanNum; // dlg.m_iDStartChannel = g_struDeviceInfo[iDeviceIndex].pStruIPParaCfgV40[0].dwStartDChan; // // dlg.DoModal(); // } void CClientDemoDlg::OnMENUT1Test() { // TODO: Add your command handler code here CDlgT1test dlg; int iDevIndex = GetCurDeviceIndex(); if (iDevIndex < 0) { return; } dlg.m_iDeviceIndex = iDevIndex; dlg.DoModal(); } // void CClientDemoDlg::OnMenuGBT28181Protocol() // { // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex < 0) // { // return; // } // CDlgGBT28181ProtocolAccess dlg; // dlg.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; // dlg.m_dwAlarmOutNum = g_struDeviceInfo[iDeviceIndex].iAlarmOutNum; // dlg.m_dwDevIndex = iDeviceIndex; // dlg.m_nChannel = g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; // dlg.m_lStartChan = g_struDeviceInfo[iDeviceIndex].iStartChan; // dlg.m_dwAlarmInNum = g_struDeviceInfo[iDeviceIndex].iAlarmInNum; // dlg.DoModal(); // } // void CClientDemoDlg::OnMenuDevServer() // { // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex < 0) // { // return; // } // CDlgDevServer dlg; // dlg.m_lServerID = g_struDeviceInfo[iDeviceIndex].lLoginID; // dlg.m_dwAlarmOutNum = g_struDeviceInfo[iDeviceIndex].iAlarmOutNum; // dlg.m_dwDevIndex = iDeviceIndex; // dlg.m_nChannel = g_struDeviceInfo[iDeviceIndex].iDeviceChanNum; // dlg.m_lStartChan = g_struDeviceInfo[iDeviceIndex].iStartChan; // dlg.m_dwAlarmInNum = g_struDeviceInfo[iDeviceIndex].iAlarmInNum; // dlg.DoModal(); // } void CClientDemoDlg::OnMenuProductionLineTest() { // TODO: Add your command handler code here int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex < 0) { return; } int iChanIndex = GetCurChanIndex(); if (iChanIndex < 0) { iChanIndex = 0; } CDlgProductionTest dlg; dlg.m_lUserID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.m_dwChannel = iChanIndex + g_struDeviceInfo[iDeviceIndex].iStartChan; dlg.m_iDevIndex = iDeviceIndex; dlg.DoModal(); } void CClientDemoDlg::OnMenuVca() { // TODO: Add your command handler code here DlgVCADetionCfg dlg; dlg.DoModal(); } // void CClientDemoDlg::OnMenuItsIoinCfg() // { // // TODO: Add your command handler code here // int iDeviceIndex = GetCurDeviceIndex(); // if (iDeviceIndex < 0) // { // return; // } // int iChanIndex = GetCurChanIndex(); // if (iChanIndex < 0) // { // iChanIndex = 0; // } // CDlgITSIOinCfg dlg; // dlg.m_lUserID = g_struDeviceInfo[iDeviceIndex].lLoginID; // dlg.m_dwChannel = iChanIndex + g_struDeviceInfo[iDeviceIndex].iStartChan; // dlg.m_iDevIndex = iDeviceIndex; // dlg.DoModal(); // } void CClientDemoDlg::OnBtntProductCfg() { CRect rectConfig(0,0,0,0); rectConfig.top = m_iFunBtnHeight-2; rectConfig.left = m_iTreeWidth-2;//-2 cover preview box rectConfig.right = DEMO_FULL_WIDTH - m_iRightWidth ; rectConfig.bottom = DEMO_FULL_HEIGHT - m_iListLogHeight;//+4 if (m_iMainType != PRODUCT_RELATE_T) { m_iMainType = PRODUCT_RELATE_T; PreviewReferShow(FALSE); ConfigAllHide(); // m_dlgPlayBack->HideAll(); //InitConfigAllRefer(); // m_dlgProductCfg->MoveWindow(rectConfig); // m_dlgProductCfg->ShowWindow(SW_SHOW); InitProdouctCfgRefer(); m_dlgProductCfg->UpdateWindowParam(GetCurDeviceIndex(),GetCurChanIndex()); } /* int iDeviceIndex = GetCurDeviceIndex(); if (iDeviceIndex < 0) { return; } if (g_struDeviceInfo[iDeviceIndex].lLoginID < 0) { AddLog(-1, OPERATION_SUCC_T, "device is offline!"); return; } LONG lChannel = -1; int iChanIndex = GetCurChanIndex(); if (iChanIndex >= 0) { lChannel = g_struDeviceInfo[iDeviceIndex].pStruChanInfo[iChanIndex].iChannelNO; } CDlgProductCfg dlg; dlg.m_lUserID = g_struDeviceInfo[iDeviceIndex].lLoginID; dlg.m_lChannel = lChannel; dlg.m_iDevIndex = iDeviceIndex; dlg.DoModal(); */ } void CClientDemoDlg::InitProdouctCfgRefer() { if (!m_dlgProductCfg->IsWindowVisible()) { CRect rectProductCfg(0,0,0,0); rectProductCfg.top = m_iFunBtnHeight-2; rectProductCfg.left = m_iTreeWidth-2;//-2 cover preview box rectProductCfg.right = DEMO_FULL_WIDTH; rectProductCfg.bottom = DEMO_FULL_HEIGHT - m_iListLogHeight;//+4 m_dlgProductCfg->MoveWindow(&rectProductCfg,TRUE); m_dlgProductCfg->ShowWindow(SW_SHOW); } } //车辆二次识别数据上传 void CClientDemoDlg::ProVehicleRecogResult( WPARAM wParam, LPARAM lParam ) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "车辆二次识别数据上传","Upload a secondary vehicle identification data"); NET_DVR_VEHICLE_RECOG_RESULT struVehicleRecogResult; memset(&struVehicleRecogResult, 0, sizeof(struVehicleRecogResult)); memcpy(&struVehicleRecogResult, pAlarmInfo, sizeof(struVehicleRecogResult)); sprintf(szInfoBuf, "%s:PostID[%d] PostTime{wYear[%d] byMonth[%d] byDay[%d] byHour[%d] byMinute[%d] bySecond[%d] wMilliSec[%d]}DataIndex[%s] TaskNo[%d] PlateRect{fX[%f] fY[%f] fWidth[%f] fHeight[%f]} sLicense[%s] VehicleType[%d] ColorDepth[%d] CarColor[%d] \ VehicleLogoRecog[%d] VehicleSubLogoRecog[%d] PilotSafebelt[%d] CopilotSafebelt[%d] PilotSunVisor[%d] CopilotSunVisor[%d] DataType[%d] PicType[%d] \ VehicleModel[%d] VehicleLogoRecogEx[%d] VehicleRect{fX[%f] fY[%f] fWidth[%f] fHeight[%f]} PilotRect{fX[%f] fY[%f] fWidth[%f] fHeight[%f]} CopilotRect{fX[%f] fY[%f] fWidth[%f] fHeight[%f]}", \ szLan, struVehicleRecogResult.dwPostID, struVehicleRecogResult.struPostTime.wYear, struVehicleRecogResult.struPostTime.byMonth, struVehicleRecogResult.struPostTime.byDay, \ struVehicleRecogResult.struPostTime.byHour, struVehicleRecogResult.struPostTime.byMinute, struVehicleRecogResult.struPostTime.bySecond, struVehicleRecogResult.struPostTime.wMilliSec, \ struVehicleRecogResult.sDataIndex, struVehicleRecogResult.wTaskNo, struVehicleRecogResult.struPlateRect.fX, struVehicleRecogResult.struPlateRect.fY, \ struVehicleRecogResult.struPlateRect.fWidth, struVehicleRecogResult.struPlateRect.fHeight, struVehicleRecogResult.sLicense, struVehicleRecogResult.byVehicleType, \ struVehicleRecogResult.byColorDepth, struVehicleRecogResult.byColor, struVehicleRecogResult.byVehicleLogoRecog, struVehicleRecogResult.byVehicleSubLogoRecog, \ struVehicleRecogResult.byPilotSafebelt, struVehicleRecogResult.byCopilotSafebelt, struVehicleRecogResult.byPilotSunVisor, struVehicleRecogResult.byCopilotSunVisor, \ struVehicleRecogResult.byDataType, struVehicleRecogResult.dwPicType, struVehicleRecogResult.byVehicleLogoRecog, struVehicleRecogResult.wVehicleLogoRecog, \ struVehicleRecogResult.struVehicleRect.fX, struVehicleRecogResult.struVehicleRect.fY, struVehicleRecogResult.struVehicleRect.fWidth, struVehicleRecogResult.struVehicleRect.fHeight, \ struVehicleRecogResult.struPilotRect.fX, struVehicleRecogResult.struPilotRect.fY, struVehicleRecogResult.struPilotRect.fWidth, struVehicleRecogResult.struPilotRect.fHeight, \ struVehicleRecogResult.struCopilotRect.fX, struVehicleRecogResult.struCopilotRect.fY, struVehicleRecogResult.struCopilotRect.fWidth, struVehicleRecogResult.struCopilotRect.fHeight); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); if (struVehicleRecogResult.dwVehicleBufferLen > 0 && struVehicleRecogResult.pVehicleBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Vehicle]"); } else { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[Vehicle]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pVehicleBuffer, struVehicleRecogResult.dwVehicleBufferLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwVehicleBufferLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Vehicle Picture Wtite to File Fail.System Error:%d, dwVehicleBufferLen:%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwVehicleBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struVehicleRecogResult.dwPlateBufferLen> 0 && struVehicleRecogResult.pPlateBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Plate]"); } else { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[Plate]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pPlateBuffer, struVehicleRecogResult.dwPlateBufferLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwPlateBufferLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Plate Picture Wtite to File Fail.System Error:%d, dwPlateBufferLen:%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwPlateBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struVehicleRecogResult.dwPilotFaceBufferLen > 0 && struVehicleRecogResult.pPilotFaceBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[PilotFace]"); } else { sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[PilotFace]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pPilotFaceBuffer, struVehicleRecogResult.dwPilotFaceBufferLen , &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwPilotFaceBufferLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "PilotFace Picture Wtite to File Fail.System Error:%d, dwPilotFaceBufferLen:%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwPilotFaceBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struVehicleRecogResult.dwCopilotFaceBufferLen > 0 && struVehicleRecogResult.pCopilotFaceBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[CopilotFace]"); } else { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[CopilotFace]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pCopilotFaceBuffer, struVehicleRecogResult.dwCopilotFaceBufferLen , &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwCopilotFaceBufferLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "CopilotFace Picture Wtite to File Fail.System Error:%d, dwCopilotFaceBufferLen:%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwCopilotFaceBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struVehicleRecogResult.dwPilotSafebeltBufferLen > 0 && struVehicleRecogResult.pPilotSafebeltBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[PilotSafe]"); } else { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[PilotSafe]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pPilotSafebeltBuffer, struVehicleRecogResult.dwPilotSafebeltBufferLen , &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwPilotSafebeltBufferLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "PilotSafe Picture Wtite to File Fail.System Error:%d, dwPilotSafebeltBufferLen:%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwPilotSafebeltBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struVehicleRecogResult.dwCopilotSafebeltBufferLen > 0 && struVehicleRecogResult.pCopilotSafebeltBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[CopilotSafe]"); } else { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[CopilotSafe]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pCopilotSafebeltBuffer, struVehicleRecogResult.dwCopilotSafebeltBufferLen , &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwCopilotSafebeltBufferLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "CopilotSafe Picture Wtite to File Fail.System Error:%d, dwCopilotSafebeltBufferLen:%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwCopilotSafebeltBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struVehicleRecogResult.dwJsonBufferLen > 0 && struVehicleRecogResult.pJsonBuffer != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; if (iDeviceIndex != -1 && iDeviceIndex < 512) { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[JSON]"); } else { sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP, "[JSON]"); } if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struVehicleRecogResult.pJsonBuffer, struVehicleRecogResult.dwJsonBufferLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struVehicleRecogResult.dwJsonBufferLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Json Data Write to File Fail.System Error:%d, dwJsonBufferLen :%d, dwWrittenBytes:%d ", dwError, struVehicleRecogResult.dwJsonBufferLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } //释放图片内存 if (struVehicleRecogResult.pVehicleBuffer != NULL) { delete [] (struVehicleRecogResult.pVehicleBuffer); struVehicleRecogResult.pVehicleBuffer = NULL; } //释放图片内存 if (struVehicleRecogResult.pPlateBuffer != NULL) { delete [] (struVehicleRecogResult.pPlateBuffer); struVehicleRecogResult.pPlateBuffer = NULL; } //释放图片内存 if (struVehicleRecogResult.pPilotFaceBuffer != NULL) { delete [] (struVehicleRecogResult.pPilotFaceBuffer); struVehicleRecogResult.pPilotFaceBuffer = NULL; } //释放图片内存 if (struVehicleRecogResult.pCopilotFaceBuffer != NULL) { delete [] (struVehicleRecogResult.pCopilotFaceBuffer); struVehicleRecogResult.pCopilotFaceBuffer = NULL; } //释放图片内存 if (struVehicleRecogResult.pPilotSafebeltBuffer != NULL) { delete [] (struVehicleRecogResult.pPilotSafebeltBuffer); struVehicleRecogResult.pPilotSafebeltBuffer = NULL; } //释放图片内存 if (struVehicleRecogResult.pCopilotSafebeltBuffer != NULL) { delete [] (struVehicleRecogResult.pCopilotSafebeltBuffer); struVehicleRecogResult.pCopilotSafebeltBuffer = NULL; } //释放JSON内存 if (struVehicleRecogResult.pJsonBuffer != NULL) { delete[](struVehicleRecogResult.pJsonBuffer); struVehicleRecogResult.pJsonBuffer = NULL; } } void CClientDemoDlg::ProSensorInfoAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "传感器信息上传","Sensor Info Upload"); NET_DVR_SENSOR_INFO_UPLOAD struSensorInfo; memset(&struSensorInfo, 0, sizeof(struSensorInfo)); memcpy(&struSensorInfo, pAlarmInfo, sizeof(struSensorInfo)); sprintf(szInfoBuf, "%s: Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d] SensorName[%s] SensorChan[%s] Reboot[%d] PowerSupply[%d] StatusType[%d],\ SensorType[%d] VoltageValue[%f] CurrentValue[%f] ActualValue[%f] Description[%s]", szLan, struSensorInfo.struTime.wYear, struSensorInfo.struTime.byMonth, \ struSensorInfo.struTime.byDay, struSensorInfo.struTime.byHour, struSensorInfo.struTime.byMinute, struSensorInfo.struTime.bySecond, struSensorInfo.struTime.wMilliSec, \ struSensorInfo.szSensorName, struSensorInfo.szSensorChan, struSensorInfo.byReboot, struSensorInfo.byPowerSupply, struSensorInfo.byStatusType, \ struSensorInfo.bySensorType, struSensorInfo.fVoltageValue, struSensorInfo.fCurrentValue, struSensorInfo.fActualValue, struSensorInfo.szDescription); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProCaptureAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "抓拍图片上传","Capture Upload"); NET_DVR_CAPTURE_UPLOAD struCaptureUplad; memset(&struCaptureUplad, 0, sizeof(struCaptureUplad)); memcpy(&struCaptureUplad, pAlarmInfo, sizeof(struCaptureUplad)); sprintf(szInfoBuf, "%s: Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d], Channel[%d], DevName[%s], PicLen[%d]", szLan, struCaptureUplad.struTime.wYear,\ struCaptureUplad.struTime.byMonth, struCaptureUplad.struTime.byDay, struCaptureUplad.struTime.byHour, struCaptureUplad.struTime.byMinute,\ struCaptureUplad.struTime.bySecond, struCaptureUplad.struTime.wMilliSec, struCaptureUplad.dwChannel, struCaptureUplad.szDevName, struCaptureUplad.dwPicLen); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); if (struCaptureUplad.dwPicLen > 0 && struCaptureUplad.pBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Sensor]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struCaptureUplad.pBuffer, struCaptureUplad.dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struCaptureUplad.dwPicLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Vehicle Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struCaptureUplad.dwPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struCaptureUplad.pBuffer != NULL) { delete [] (struCaptureUplad.pBuffer); struCaptureUplad.pBuffer = NULL; } } void CClientDemoDlg::ProFaceThermometryAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "人脸测温报警上传", "Fire Detection"); NET_DVR_FACE_THERMOMETRY_ALARM struFaceThermometry; memset(&struFaceThermometry, 0, sizeof(struFaceThermometry)); memcpy(&struFaceThermometry, pAlarmInfo, sizeof(struFaceThermometry)); sprintf(szInfoBuf, "%s Channel[%d] AlarmRule[%d] RuleID[%d] RuleName[%s]\ RelativeTime[%d] AbsTime[%d] FaceDetectionState[%d] ThermometryUnit[%d]\ AlarmTemperature[%0.1f] RuleTemperature[%0.1f] VisibleLightImageLen[%d] FaceImageLen[%d]\ FaceRect[x:%0.3f y:%0.3f width:%0.3f hight:%0.3f]\ MinTemperature[%0.1f] AverageTemperature[%0.1f]\ MinTemperaturePoint[X:%0.2f Y:%0.2f] MaxTemperaturePoint[X:%0.2f Y:%0.2f] ", szLan, struFaceThermometry.dwChannel,struFaceThermometry.byAlarmRule, struFaceThermometry.byRuleID,struFaceThermometry.byRuleName, struFaceThermometry.dwRelativeTime, struFaceThermometry.dwAbsTime, struFaceThermometry.byFaceDetectionState, struFaceThermometry.byThermometryUnit, struFaceThermometry.fAlarmTemperature, struFaceThermometry.fRuleTemperature, struFaceThermometry.dwVisibleLightImageLen, struFaceThermometry.dwFaceImageLen, struFaceThermometry.struFaceRegion.fX, struFaceThermometry.struFaceRegion.fY, struFaceThermometry.struFaceRegion.fWidth,struFaceThermometry.struFaceRegion.fHeight, struFaceThermometry.fMinTemperature, struFaceThermometry.fAverageTemperature, struFaceThermometry.struMinTemperaturePoint.fX, struFaceThermometry.struMinTemperaturePoint.fY, struFaceThermometry.struMaxTemperaturePoint.fX, struFaceThermometry.struMaxTemperaturePoint.fY); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); char cFilepath[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilepath, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Sensor]"); if (GetFileAttributes(cFilepath) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilepath, NULL); } if (struFaceThermometry.dwVisibleLightImageLen > 0 && struFaceThermometry.pVisibleLightImage != NULL) { char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\FT_Vis[%s].jpg", cFilepath, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struFaceThermometry.pVisibleLightImage, struFaceThermometry.dwVisibleLightImageLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struFaceThermometry.dwVisibleLightImageLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "FaceThermometry vis Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struFaceThermometry.dwVisibleLightImageLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struFaceThermometry.pVisibleLightImage != NULL) { delete[](struFaceThermometry.pVisibleLightImage); struFaceThermometry.pVisibleLightImage = NULL; } if (struFaceThermometry.dwFaceImageLen > 0 && struFaceThermometry.pFaceImage != NULL) { char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\FT_Face[%s].jpg", cFilepath, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struFaceThermometry.pFaceImage, struFaceThermometry.dwFaceImageLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struFaceThermometry.dwFaceImageLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "FaceThermometry face Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struFaceThermometry.dwFaceImageLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struFaceThermometry.pFaceImage != NULL) { delete[](struFaceThermometry.pFaceImage); struFaceThermometry.pFaceImage = NULL; } } void CClientDemoDlg::ProFirDetectionAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szSmokeInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; char szLan[128] = {0}; g_StringLanType(szLan, "火点检测报警上传","Fire Detection"); NET_DVR_FIREDETECTION_ALARM struFireDetection; memset(&struFireDetection, 0, sizeof(struFireDetection)); memcpy(&struFireDetection, pAlarmInfo, sizeof(struFireDetection)); sprintf(szInfoBuf, "flag[%d] %2.2d%2.2d] %s,FireScanWaitMode[%d] VisibleChannel[%d] RelativeTime:%d, AbsTime:%d, PTZ{PanPos:%d, TiltPos:%d, ZoomPos:%d}, PicDataLen:%d, DevInfo{DevIP:%s, Port:%d, Channel:%d, IvmsChannel:%d, IvmsChannelEx:%d}, \ FireMaxTemperature:%d, TargetDistance:%d, fireRectInfo{fX:%f,fY:%f,fWidth%f,fHeight%f}, fireMaxTemperaturePoint{fX:%f,fY:%f}, PTZEx{P:%f,T:%f,Z:%f,F:%d},AlarmSubType:%d", struFireDetection.byTimeDiffFlag, struFireDetection.cTimeDifferenceH, struFireDetection.cTimeDifferenceM, \ szLan, struFireDetection.byFireScanWaitMode, struFireDetection.dwVisibleChannel, struFireDetection.dwRelativeTime, struFireDetection.dwAbsTime, struFireDetection.wPanPos, struFireDetection.wTiltPos, struFireDetection.wZoomPos, \ struFireDetection.dwPicDataLen, struFireDetection.struDevInfo.struDevIP.sIpV4, struFireDetection.struDevInfo.wPort, struFireDetection.struDevInfo.byChannel, \ struFireDetection.struDevInfo.byIvmsChannel, struFireDetection.wDevInfoIvmsChannelEx, \ struFireDetection.wFireMaxTemperature, struFireDetection.wTargetDistance, \ struFireDetection.struRect.fX, struFireDetection.struRect.fY, struFireDetection.struRect.fWidth, struFireDetection.struRect.fHeight, \ struFireDetection.struPoint.fX, struFireDetection.struPoint.fY, \ struFireDetection.struPtzPosEx.fPan, struFireDetection.struPtzPosEx.fTilt, struFireDetection.struPtzPosEx.fZoom, struFireDetection.struPtzPosEx.dwFocus, struFireDetection.byAlarmSubType); if (struFireDetection.byAlarmSubType > 0 && struFireDetection.pSmokeBuf != NULL) { NET_DVR_SMOKEDETECTION_ALARM struSmokeDetection; memset(&struSmokeDetection, 0, sizeof(struSmokeDetection)); memcpy(&struSmokeDetection, struFireDetection.pSmokeBuf, sizeof(struSmokeDetection)); sprintf_s(szSmokeInfoBuf, "SMOKEDELETECTION ALARM INFO: PTZPos{P:%f, T:%f, Z:%f, Focus:%d}, ThermalPTZPos{P:%f, T:%f, Z:%f, Focus:%d}, Latitude{Type:%d, Sec:%f, Degree:%d, Minute:%d}, Longitude{Type:%d, Sec:%f, Degree:%d, Minute:%d}, SmokePos{X:%f, Y:%f, Width:%f, Height:%f}", struSmokeDetection.struPTZPos.fPan, struSmokeDetection.struPTZPos.fTilt, struSmokeDetection.struPTZPos.fZoom, struSmokeDetection.struPTZPos.dwFocus, \ struSmokeDetection.struThermalPTZPos.fPan, struSmokeDetection.struThermalPTZPos.fTilt, struSmokeDetection.struThermalPTZPos.fZoom, struSmokeDetection.struThermalPTZPos.dwFocus, \ struSmokeDetection.struLLPos.byLatitudeType, struSmokeDetection.struLLPos.struLatitude.fSec, struSmokeDetection.struLLPos.struLatitude.byDegree, struSmokeDetection.struLLPos.struLatitude.byMinute, \ struSmokeDetection.struLLPos.byLongitudeType, struSmokeDetection.struLLPos.struLongitude.fSec, struSmokeDetection.struLLPos.struLongitude.byDegree, struSmokeDetection.struLLPos.struLongitude.byMinute, \ struSmokeDetection.struSmokePos.fX, struSmokeDetection.struSmokePos.fY, struSmokeDetection.struSmokePos.fWidth, struSmokeDetection.struSmokePos.fHeight); strcat(szInfoBuf, szSmokeInfoBuf); } AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struFireDetection.pSmokeBuf != NULL) { delete[](struFireDetection.pSmokeBuf); struFireDetection.pSmokeBuf = NULL; } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); if (struFireDetection.dwPicDataLen > 0 && struFireDetection.pBuffer != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%d][%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, "[Sensor]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFireDetection.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struFireDetection.pBuffer, struFireDetection.dwPicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struFireDetection.dwPicDataLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Fire Detection Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struFireDetection.dwPicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struFireDetection.pBuffer != NULL) { delete [] (struFireDetection.pBuffer); struFireDetection.pBuffer = NULL; } if (struFireDetection.dwVisiblePicLen > 0 && struFireDetection.pVisiblePicBuf != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%d][%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, "[Sensor]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struFireDetection.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struFireDetection.pVisiblePicBuf, struFireDetection.dwVisiblePicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struFireDetection.dwVisiblePicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Fire Detection VisiblePicture Wtite to File Fail.System Error:%d, dwVisiblePicLen:%d, pVisibleBuffer:%d ", dwError, struFireDetection.dwVisiblePicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struFireDetection.pVisiblePicBuf != NULL) { delete[](struFireDetection.pVisiblePicBuf); struFireDetection.pVisiblePicBuf = NULL; } } void CClientDemoDlg::ProPicInfoUploadAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "图片信息上传报警", "PicInfo Upload"); NET_DVR_PANORAMIC_LINKAGE struPicInfoUpload; memset(&struPicInfoUpload, 0, sizeof(struPicInfoUpload)); memcpy(&struPicInfoUpload, pAlarmInfo, sizeof(struPicInfoUpload)); sprintf(szInfoBuf, "%s, Channel:%d, Type:%d, MACAddr:%x:%x:%x:%x:%x:%x, PicDataLen:%d", szLan, struPicInfoUpload.dwChannel, struPicInfoUpload.byType, struPicInfoUpload.byMACAddr[0], struPicInfoUpload.byMACAddr[1], struPicInfoUpload.byMACAddr[2], struPicInfoUpload.byMACAddr[3], struPicInfoUpload.byMACAddr[4], struPicInfoUpload.byMACAddr[5], struPicInfoUpload.dwPicLen); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struPicInfoUpload.dwPicLen > 0 && struPicInfoUpload.pPicBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Sensor]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struPicInfoUpload.pPicBuff, struPicInfoUpload.dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struPicInfoUpload.dwPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "PicInfo Upload Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struPicInfoUpload.dwPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struPicInfoUpload.pPicBuff != NULL) { delete[](struPicInfoUpload.pPicBuff); struPicInfoUpload.pPicBuff = NULL; } } void CClientDemoDlg::ProGISInfoAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "GIS信息报警上传","GIS Info"); NET_DVR_GIS_UPLOADINFO struGISInfo; memset(&struGISInfo, 0, sizeof(struGISInfo)); memcpy(&struGISInfo, pAlarmInfo, sizeof(struGISInfo)); sprintf(szInfoBuf, "%s:PtzPos{PanPos:%.1fTiltPos:%.1fZoomPos:%.1f}RelTime:%dAbsTime:%dAzimuth:%fLongitudeType:%dLatitudeType:%dLongitude{Sec:%.6fDegree:%dMinute:%d}Latitude{Sec:%.6fDegree:%dMinute:%d}Horizontal:%fVertical:%fVisibleRadius:%fMaxView:%fSensor{Type:%dWidth:%fWidth:%fFold:%f}DevInfo{DevIP:%sPort:%dChan:%dIvmsChan:%d}", szLan, struGISInfo.struPtzPos.fPanPos, struGISInfo.struPtzPos.fTiltPos, struGISInfo.struPtzPos.fZoomPos, struGISInfo.dwRelativeTime, struGISInfo.dwAbsTime, \ struGISInfo.fAzimuth, struGISInfo.byLongitudeType,\ struGISInfo.byLatitudeType, struGISInfo.struLongitude.fSec, struGISInfo.struLongitude.byDegree, struGISInfo.struLongitude.byMinute,\ struGISInfo.struLatitude.fSec, struGISInfo.struLatitude.byDegree, struGISInfo.struLatitude.byMinute, struGISInfo.fHorizontalValue, struGISInfo.fVerticalValue, struGISInfo.fVisibleRadius, struGISInfo.fMaxViewRadius,\ struGISInfo.struSensorParam.bySensorType, struGISInfo.struSensorParam.fHorWidth, struGISInfo.struSensorParam.fVerWidth, struGISInfo.struSensorParam.fFold,\ struGISInfo.struDevInfo.struDevIP.sIpV4, struGISInfo.struDevInfo.wPort, struGISInfo.struDevInfo.byChannel, struGISInfo.struDevInfo.byIvmsChannel); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProVandalproofAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "防破坏报警上传","Vandalproof Alarm"); NET_DVR_VANDALPROOF_ALARM struVandalproof; memset(&struVandalproof, 0, sizeof(struVandalproof)); memcpy(&struVandalproof, pAlarmInfo, sizeof(struVandalproof)); sprintf(szInfoBuf, "%s: RelativeTime:%d, AbsTime:%d, DevInfo{DevIP:%s, Port:%d, Channel:%d, IvmsChannel:%d}", szLan, struVandalproof.dwRelativeTime, struVandalproof.dwAbsTime, struVandalproof.struDevInfo.struDevIP.sIpV4, \ struVandalproof.struDevInfo.wPort, struVandalproof.struDevInfo.byChannel, struVandalproof.struDevInfo.byIvmsChannel); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcVideoIntercomEvent(WPARAM wParam,LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_VIDEO_INTERCOM_EVENT struVideoIntercomEvent = {0}; CTime time = CTime::GetCurrentTime(); memcpy(&struVideoIntercomEvent, pAlarmInfo, sizeof(struVideoIntercomEvent)); if (struVideoIntercomEvent.byEventType == 3) { sprintf(szInfoBuf, "Video Intercom Event Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] EventType[%d] AuthResult[%d] AuthType[%d] CardNo[%s]", struVideoIntercomEvent.struTime.wYear, struVideoIntercomEvent.struTime.byMonth, struVideoIntercomEvent.struTime.byDay, struVideoIntercomEvent.struTime.byHour, struVideoIntercomEvent.struTime.byMinute, struVideoIntercomEvent.struTime.bySecond, struVideoIntercomEvent.byDevNumber, struVideoIntercomEvent.byEventType, struVideoIntercomEvent.uEventInfo.struAuthInfo.byAuthResult, struVideoIntercomEvent.uEventInfo.struAuthInfo.byAuthType, struVideoIntercomEvent.uEventInfo.struAuthInfo.byCardNo); } else if (struVideoIntercomEvent.byEventType == 4) { sprintf(szInfoBuf, "Video Intercom Event Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] EventType[%d] License[%s] Color[%d]", struVideoIntercomEvent.struTime.wYear, struVideoIntercomEvent.struTime.byMonth, struVideoIntercomEvent.struTime.byDay, struVideoIntercomEvent.struTime.byHour, struVideoIntercomEvent.struTime.byMinute, struVideoIntercomEvent.struTime.bySecond, struVideoIntercomEvent.byDevNumber, struVideoIntercomEvent.byEventType, struVideoIntercomEvent.uEventInfo.struUploadPlateInfo.sLicense, struVideoIntercomEvent.uEventInfo.struUploadPlateInfo.byColor); } else if (struVideoIntercomEvent.byEventType == 1) { sprintf(szInfoBuf, "Video Intercom Event Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] EventType[%d], FloorNumber[%d], RoomNumber[%d], LockID[%d],LockName[%s],EmployeeNo[%s]", struVideoIntercomEvent.struTime.wYear, struVideoIntercomEvent.struTime.byMonth, struVideoIntercomEvent.struTime.byDay, struVideoIntercomEvent.struTime.byHour, struVideoIntercomEvent.struTime.byMinute, struVideoIntercomEvent.struTime.bySecond, struVideoIntercomEvent.byDevNumber, struVideoIntercomEvent.byEventType, struVideoIntercomEvent.uEventInfo.struUnlockRecord.nFloorNumber, struVideoIntercomEvent.uEventInfo.struUnlockRecord.wRoomNumber, struVideoIntercomEvent.uEventInfo.struUnlockRecord.wLockID, struVideoIntercomEvent.uEventInfo.struUnlockRecord.byLockName, struVideoIntercomEvent.uEventInfo.struUnlockRecord.byEmployeeNo); } else if (struVideoIntercomEvent.byEventType == 5 || struVideoIntercomEvent.byEventType == 6) { sprintf(szInfoBuf, "Video Intercom Event Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] EventType[%d] CardNo[%s]", struVideoIntercomEvent.struTime.wYear, struVideoIntercomEvent.struTime.byMonth, struVideoIntercomEvent.struTime.byDay, struVideoIntercomEvent.struTime.byHour, struVideoIntercomEvent.struTime.byMinute, struVideoIntercomEvent.struTime.bySecond, struVideoIntercomEvent.byDevNumber, struVideoIntercomEvent.byEventType, struVideoIntercomEvent.uEventInfo.struSendCardInfo.byCardNo); } else { sprintf(szInfoBuf, "Video Intercom Event Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] EventType[%d]", struVideoIntercomEvent.struTime.wYear, struVideoIntercomEvent.struTime.byMonth, struVideoIntercomEvent.struTime.byDay, struVideoIntercomEvent.struTime.byHour, struVideoIntercomEvent.struTime.byMinute, struVideoIntercomEvent.struTime.bySecond, struVideoIntercomEvent.byDevNumber, struVideoIntercomEvent.byEventType); } if (struVideoIntercomEvent.dwIOTChannelNo != 0) { sprintf(szInfoBuf, "%d IOTChannelNo", struVideoIntercomEvent.dwIOTChannelNo); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struVideoIntercomEvent.byEventType == 1 && struVideoIntercomEvent.uEventInfo.struUnlockRecord.dwPicDataLen > 0) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struVideoIntercomEvent.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struVideoIntercomEvent.uEventInfo.struUnlockRecord.pImage, struVideoIntercomEvent.uEventInfo.struUnlockRecord.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; delete [] struVideoIntercomEvent.uEventInfo.struUnlockRecord.pImage; struVideoIntercomEvent.uEventInfo.struUnlockRecord.pImage = NULL; } if (struVideoIntercomEvent.byEventType == 3 && struVideoIntercomEvent.uEventInfo.struAuthInfo.dwPicDataLen > 0) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; char cFilename[256] = { 0 }; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s].jpg", cFilename, chTime); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struVideoIntercomEvent.uEventInfo.struAuthInfo.pImage, struVideoIntercomEvent.uEventInfo.struAuthInfo.dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; delete[] struVideoIntercomEvent.uEventInfo.struAuthInfo.pImage; struVideoIntercomEvent.uEventInfo.struAuthInfo.pImage = NULL; } } void CClientDemoDlg::ProcVideoIntercomAlarm(WPARAM wParam,LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_VIDEO_INTERCOM_ALARM struVideoIntercomAlarm = {0}; CTime time = CTime::GetCurrentTime(); memcpy(&struVideoIntercomAlarm, pAlarmInfo, sizeof(struVideoIntercomAlarm)); if (struVideoIntercomAlarm.byAlarmType == 1) { sprintf(szInfoBuf, "Video Intercom Alarm Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] AlarmType[%d] ZoneName[%s] ZoneIndex[%d] ZoneType[%d] IOTChannelNo[%d]", struVideoIntercomAlarm.struTime.wYear, struVideoIntercomAlarm.struTime.byMonth, struVideoIntercomAlarm.struTime.byDay, struVideoIntercomAlarm.struTime.byHour, struVideoIntercomAlarm.struTime.byMinute, struVideoIntercomAlarm.struTime.bySecond, struVideoIntercomAlarm.byDevNumber, struVideoIntercomAlarm.byAlarmType, struVideoIntercomAlarm.uAlarmInfo.struZoneAlarm.byZoneName, struVideoIntercomAlarm.uAlarmInfo.struZoneAlarm.dwZonendex, struVideoIntercomAlarm.uAlarmInfo.struZoneAlarm.byZoneType, struVideoIntercomAlarm.dwIOTChannelNo); } else { sprintf(szInfoBuf, "Video Intercom Alarm Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] DevNumber[%s] AlarmType[%d] LockID[%d] IOTChannelNo[%d]", struVideoIntercomAlarm.struTime.wYear, struVideoIntercomAlarm.struTime.byMonth, struVideoIntercomAlarm.struTime.byDay, struVideoIntercomAlarm.struTime.byHour, struVideoIntercomAlarm.struTime.byMinute, struVideoIntercomAlarm.struTime.bySecond, struVideoIntercomAlarm.byDevNumber, struVideoIntercomAlarm.byAlarmType, struVideoIntercomAlarm.wLockID, struVideoIntercomAlarm.dwIOTChannelNo); if (struVideoIntercomAlarm.byAlarmType == 8) { CDlgVideoIntercomCall dlg; dlg.m_iDevIndex = pAlarmDev->iDeviceIndex; dlg.m_lUserID = m_iCardChanCount; dlg.m_byRequestType = 1; dlg.DoModal(); } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcUploadNoticeData(WPARAM wParam, LPARAM lParam) { char szInfoBuf[4096] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_NOTICE_DATA struNoticeData = { 0 }; CTime time = CTime::GetCurrentTime(); memcpy(&struNoticeData, pAlarmInfo, sizeof(struNoticeData)); sprintf(szInfoBuf, "Notice Data Event Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] NoticeNumber[%s] NoticeTheme[%s] NoticeDetail[%s] Level[%d] PicNum[%d]", struNoticeData.struTime.wYear, struNoticeData.struTime.byMonth, struNoticeData.struTime.byDay, struNoticeData.struTime.byHour, struNoticeData.struTime.byMinute, struNoticeData.struTime.bySecond, struNoticeData.byNoticeNumber, struNoticeData.byNoticeTheme, struNoticeData.byNoticeDetail, struNoticeData.byLevel, struNoticeData.byPicNum); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struNoticeData.byPicNum > 0) { int num = ulAlarmPic / 1000 + 1; ulAlarmPic++; char cFileDirectory[256] = { 0 }; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFileDirectory, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFileDirectory) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFileDirectory, NULL); } char cFileName[256] = { 0 }; for (int i = 0; i < MAX_NOTICE_PIC_NUM; i++) { if (struNoticeData.struNoticePic[i].dwPicDataLen > 0) { memset(cFileName, 0, 256); sprintf(cFileName, "%s\\LocalTime[%s]No[%d].jpg", cFileDirectory, chTime, i); hFile = CreateFile(cFileName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struNoticeData.struNoticePic[i].pPicData, struNoticeData.struNoticePic[i].dwPicDataLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; delete[] struNoticeData.struNoticePic[i].pPicData; struNoticeData.struNoticePic[i].pPicData = NULL; } } } } void CClientDemoDlg::ProcPeopleDetectionUpload(WPARAM wParam,LPARAM lParam) { char szInfoBuf[1024] = {0}; // char szAlarmInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_PEOPLE_DETECTION_RESULT struPeopleDetcetion = {0}; memcpy(&struPeopleDetcetion, pAlarmInfo, sizeof(struPeopleDetcetion)); // 打印信息 NET_DVR_TIME struAbsTime = {0}; struAbsTime.dwYear = GET_YEAR(struPeopleDetcetion.dwAbsTime); struAbsTime.dwMonth = GET_MONTH(struPeopleDetcetion.dwAbsTime); struAbsTime.dwDay = GET_DAY(struPeopleDetcetion.dwAbsTime); struAbsTime.dwHour = GET_HOUR(struPeopleDetcetion.dwAbsTime); struAbsTime.dwMinute = GET_MINUTE(struPeopleDetcetion.dwAbsTime); struAbsTime.dwSecond = GET_SECOND(struPeopleDetcetion.dwAbsTime); NET_DVR_TIME struRelativeTime = {0}; struRelativeTime.dwYear = GET_YEAR(struPeopleDetcetion.dwRelativeTime); struRelativeTime.dwMonth = GET_MONTH(struPeopleDetcetion.dwRelativeTime); struRelativeTime.dwDay = GET_DAY(struPeopleDetcetion.dwRelativeTime); struRelativeTime.dwHour = GET_HOUR(struPeopleDetcetion.dwRelativeTime); struRelativeTime.dwMinute = GET_MINUTE(struPeopleDetcetion.dwRelativeTime); struRelativeTime.dwSecond = GET_SECOND(struPeopleDetcetion.dwRelativeTime); // for (i = 0; i < 8; i++) // { // if (struPeopleDetcetion.struPeopleRegion[i].byNumber != 0) // { // sprintf(szAlarmInfoBuf, "RegionID:RegionNumberOfPeople [%d: %d],[%d: %d],[%d: %d],[%d: %d],[%d: %d],[%d: %d],[%d: %d],[%d: %d]", \ // struPeopleDetcetion.struPeopleRegion[0].byID, struPeopleDetcetion.struPeopleRegion[0].byNumber, // struPeopleDetcetion.struPeopleRegion[1].byID, struPeopleDetcetion.struPeopleRegion[1].byNumber, // struPeopleDetcetion.struPeopleRegion[2].byID, struPeopleDetcetion.struPeopleRegion[2].byNumber, // struPeopleDetcetion.struPeopleRegion[3].byID, struPeopleDetcetion.struPeopleRegion[3].byNumber, // struPeopleDetcetion.struPeopleRegion[4].byID, struPeopleDetcetion.struPeopleRegion[4].byNumber, // struPeopleDetcetion.struPeopleRegion[5].byID, struPeopleDetcetion.struPeopleRegion[5].byNumber, // struPeopleDetcetion.struPeopleRegion[6].byID, struPeopleDetcetion.struPeopleRegion[6].byNumber, // struPeopleDetcetion.struPeopleRegion[7].byID, struPeopleDetcetion.struPeopleRegion[7].byNumber); // } // // } char cTempInfo[1024] = {0}; for (i = 0; i < MAX_PEOPLE_DETECTION_NUM; i++) { if (struPeopleDetcetion.struPeopleRegion[i].byNumber != 0) { sprintf(cTempInfo + strlen(cTempInfo), "RegionID[%d] RegionNumberOfPeople[%d] DressType[%d]", \ struPeopleDetcetion.struPeopleRegion[i].byID, struPeopleDetcetion.struPeopleRegion[i].byNumber, struPeopleDetcetion.struPeopleRegion[i].byDressType); //cTempInfo += strlen(cTempInfo); } } sprintf(szInfoBuf, "[people Detection Alarm Time] AlarmInfoBuf[%s] Abs[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] RelativeTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d] Dev[ip:%s,port:%d,ivmsChan:%d] PeopleAlarmType[%d]\n",\ cTempInfo ,struAbsTime.dwYear, struAbsTime.dwMonth, struAbsTime.dwDay, struAbsTime.dwHour,struAbsTime.dwMinute, struAbsTime.dwSecond, \ struRelativeTime.dwYear, struRelativeTime.dwMonth, struRelativeTime.dwDay, struRelativeTime.dwHour,struRelativeTime.dwMinute, struRelativeTime.dwSecond, \ struPeopleDetcetion.struDevInfo.struDevIP.sIpV4, struPeopleDetcetion.struDevInfo.wPort, struPeopleDetcetion.struDevInfo.byIvmsChannel,\ struPeopleDetcetion.byPeopleAlarmType); for (i=0; i<MAX_PEOPLE_DETECTION_NUM; i++) { if (struPeopleDetcetion.struPeopleRegion[i].dwPicLen > 0 && struPeopleDetcetion.struPeopleRegion[i].pPicBuffer != NULL) { int num = ulAlarmPic/1000+1; ulAlarmPic++; char cFilename[256] = {0}; HANDLE hFile; DWORD dwReturn; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); sprintf(cFilename, "%s\\%s[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, num); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\peopleDet_LocalTime[%s]_%d.jpg",cFilename, chTime, i); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struPeopleDetcetion.struPeopleRegion[i].pPicBuffer, struPeopleDetcetion.struPeopleRegion[i].dwPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcFiberConvertAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szAlarmInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iWinIndex = -1; int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_FIBER_CONVERT_ALARM struFiberConvertAlarm = {0}; memcpy(&struFiberConvertAlarm, pAlarmInfo, sizeof(struFiberConvertAlarm)); int iLen = sprintf(szInfoBuf, "[FIBER_CONVERT_ALARM]"); if (struFiberConvertAlarm.dwEventType == 1) { sprintf(szInfoBuf, "%sType:Alarm", szInfoBuf); if (struFiberConvertAlarm.dwEvent == FC_OPTICAL_PORT_LOST) { sprintf(szInfoBuf, "%s Event:Optical port lost", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_ELECTRICAL_PORT_LOST) { sprintf(szInfoBuf, "%s Event:Electrical port lost", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_FUNC_CARD_LOST) { sprintf(szInfoBuf, "%s Event:Function card lost", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_CARD_DISCONNECTED) { sprintf(szInfoBuf, "%s Event:Card disconnected", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_MAX_TEMP_LIMITED) { sprintf(szInfoBuf, "%s Event:Maximum temperature limited", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_MIN_TEMP_LIMITED) { sprintf(szInfoBuf, "%s Event:Minimum temperature limited", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_MAX_VOLTAGE_LIMITED) { sprintf(szInfoBuf, "%s Event:Maximum voltage limited", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_MIN_VOLTAGE_LIMITED) { sprintf(szInfoBuf, "%s Event:Minimum voltage limited", szInfoBuf); } } else if (struFiberConvertAlarm.dwEventType == 2) { sprintf(szInfoBuf, "%sType:Notification", szInfoBuf); if (struFiberConvertAlarm.dwEvent == FC_OPTICAL_PORT_CONNECTED) { sprintf(szInfoBuf, "%s Event:Optical port connected", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_ELECTRICAL_PORT_CONNECTED) { sprintf(szInfoBuf, "%s Event:Electrical port connected", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_FUNC_CARD_INSERT) { sprintf(szInfoBuf, "%s Event:Function card insert", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_CARD_CONNECTED) { sprintf(szInfoBuf, "%s Event:Card connected", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_TEMP_RECOVERY) { sprintf(szInfoBuf, "%s Event:Temperature recovery", szInfoBuf); } else if (struFiberConvertAlarm.dwEvent == FC_VOLTAGE_RECOVERY) { sprintf(szInfoBuf, "%s Event:Voltage recovery", szInfoBuf); } } if (struFiberConvertAlarm.byCardType == 1) { sprintf(szInfoBuf, "%s CardType:NetMgr card", szInfoBuf); } else if (struFiberConvertAlarm.byCardType == 2) { sprintf(szInfoBuf, "%s CardType:Function card", szInfoBuf); } else if (struFiberConvertAlarm.byCardType == 3) { sprintf(szInfoBuf, "%s CardType:Remote send card", szInfoBuf); } else if (struFiberConvertAlarm.byCardType == 4) { sprintf(szInfoBuf, "%s CardType:Device crate", szInfoBuf); } sprintf(szInfoBuf, "%s SlotNum:%d PortNo:%d Temp:%d Voltage:%d", szInfoBuf, struFiberConvertAlarm.bySlotNum, struFiberConvertAlarm.byPortNo, struFiberConvertAlarm.byCurTemperature, struFiberConvertAlarm.wCurVoltage); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcFacecaptureStatistics(WPARAM wParam, LPARAM lParam)//人脸抓拍统计上传 { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_FACECAPTURE_STATISTICS_RESULT struFacecapture = {0}; memcpy(&struFacecapture, pAlarmInfo, sizeof(struFacecapture)); g_StringLanType(szLan, "人脸抓拍统计上传","Face Capture Statistics Upload"); int len = 0,oldlen = 0,sexlen = 0; len = sprintf(szInfoBuf, "%s: (开始时间:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d,结束时间:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d)\n", \ szLan, struFacecapture.struStartTime.wYear,struFacecapture.struStartTime.byMonth,struFacecapture.struStartTime.byDay,struFacecapture.struStartTime.byHour,\ struFacecapture.struStartTime.byMinute,struFacecapture.struStartTime.bySecond,struFacecapture.struEndTime.wYear,\ struFacecapture.struEndTime.byMonth,struFacecapture.struEndTime.byDay,struFacecapture.struEndTime.byHour,struFacecapture.struEndTime.byMinute,\ struFacecapture.struEndTime.bySecond); if ((struFacecapture.byStatType >> 2) & 1) { oldlen = sprintf(szInfoBuf+len,"%s","年龄段有效"); } if ((struFacecapture.byStatType >> 1) & 1) { sexlen = sprintf(szInfoBuf+len+oldlen,"%s","性别有效"); } if (struFacecapture.byStatType & 1) { sprintf(szInfoBuf+len+oldlen+sexlen,"%s","人数有效"); } g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); char szTmpCN[200] = {0}; sprintf(szTmpCN, "统计人数:%d,少年:%d,青年:%d,中年:%d,老年:%d,儿童:%d,青少年:%d,壮年:%d,中老年:%d,男:%d,女:%d", struFacecapture.dwPeopleNum, struFacecapture.struAgeGroupParam.dwTeenage, \ struFacecapture.struAgeGroupParam.dwYouth, struFacecapture.struAgeGroupParam.dwMidLife, struFacecapture.struAgeGroupParam.dwElderly, \ struFacecapture.struAgeGroupParam.dwChild, struFacecapture.struAgeGroupParam.dwAdolescent, struFacecapture.struAgeGroupParam.dwPrime, struFacecapture.struAgeGroupParam.dwMidage,\ struFacecapture.struSexGroupParam.dwMale, struFacecapture.struSexGroupParam.dwFemale); char szTmpEN[200] = {0}; sprintf(szTmpEN, "PeopleNum:%d,Teen:%d, Youth:%d,Midlife:%d, Elderly:%d,Child:%d,Adolescent:%d,Prime:%d,Midage:%d, male:%d,female:%d", struFacecapture.dwPeopleNum, struFacecapture.struAgeGroupParam.dwTeenage, \ struFacecapture.struAgeGroupParam.dwYouth, struFacecapture.struAgeGroupParam.dwMidLife, struFacecapture.struAgeGroupParam.dwElderly,\ struFacecapture.struAgeGroupParam.dwChild, struFacecapture.struAgeGroupParam.dwAdolescent, struFacecapture.struAgeGroupParam.dwPrime, struFacecapture.struAgeGroupParam.dwMidage, \ struFacecapture.struSexGroupParam.dwMale, struFacecapture.struSexGroupParam.dwFemale); g_StringLanType(szInfoBuf, szTmpCN, szTmpEN); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcVideoParkingPoleAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_VIDEO_PARKING_POLE_ALARM struVideoParkingPoleAlarm = { 0 }; memcpy(&struVideoParkingPoleAlarm, pAlarmInfo, sizeof(struVideoParkingPoleAlarm)); g_StringLanType(szLan, "视频桩报警", "Video Parking Pole Alarm"); sprintf(szInfoBuf, "%s: Time[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d],ParkingNum[%s],AlarmType[%d]", szLan, \ struVideoParkingPoleAlarm.struTime.wYear, struVideoParkingPoleAlarm.struTime.byMonth, struVideoParkingPoleAlarm.struTime.byDay, \ struVideoParkingPoleAlarm.struTime.byHour, struVideoParkingPoleAlarm.struTime.byMinute, struVideoParkingPoleAlarm.struTime.bySecond, struVideoParkingPoleAlarm.struTime.wMilliSec, \ struVideoParkingPoleAlarm.byParkingNum, struVideoParkingPoleAlarm.byAlarmType); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcSwicthLampAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "开关灯检测报警上传","Switch Lamp Detection"); NET_DVR_SWITCH_LAMP_ALARM struSwitchLamp = {0}; memset(&struSwitchLamp, 0, sizeof(struSwitchLamp)); memcpy(&struSwitchLamp, pAlarmInfo, sizeof(struSwitchLamp)); sprintf(szInfoBuf, "%s AlarmTime[%04d-%02d-%02d %02d:%02d:%02d], lamp Status:%d, PicDataLen:%d, DevInfo{DevIP:%s, Port:%d, Channel:%d, IvmsChannel:%d}",\ szLan, struSwitchLamp.struTime.wYear,struSwitchLamp.struTime.byMonth,struSwitchLamp.struTime.byDay,struSwitchLamp.struTime.byHour,\ struSwitchLamp.struTime.byMinute,struSwitchLamp.struTime.bySecond,struSwitchLamp.byLampStatus,\ struSwitchLamp.dwPicDataLen, struSwitchLamp.struDevInfo.struDevIP.sIpV4, struSwitchLamp.struDevInfo.wPort, struSwitchLamp.struDevInfo.byChannel,\ struSwitchLamp.struDevInfo.byIvmsChannel); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); if (struSwitchLamp.dwPicDataLen > 0 && struSwitchLamp.pPicData != NULL) { char cFilename[256] = {0}; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[SwitchLamp]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg",cFilename, chTime,rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struSwitchLamp.pPicData, struSwitchLamp.dwPicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struSwitchLamp.dwPicDataLen ) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "SwitchLamp Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struSwitchLamp.dwPicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struSwitchLamp.pPicData != NULL) { delete [] (struSwitchLamp.pPicData); struSwitchLamp.pPicData = NULL; } } void CClientDemoDlg::ProGateCardIndoAlarm( WPARAM wParam, LPARAM lParam ) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "出入口卡片信息上传","Entrance card information upload"); NET_DVR_GATE_CARDINFO struGateCardInfo; memset(&struGateCardInfo, 0, sizeof(struGateCardInfo)); memcpy(&struGateCardInfo, pAlarmInfo, sizeof(struGateCardInfo)); sprintf(szInfoBuf, "%s: DevInfo{DevIP:%s, Port:%d, Channel:%d, IvmsChannel:%d} RelativeTime:%d, AbsTime:%d, CardNo:%s, PassVehicleID:%s, InVehicleID:%s,\ LetPass:%d, CardType:%d",\ szLan, struGateCardInfo.struDevInfo.struDevIP.sIpV4, struGateCardInfo.struDevInfo.wPort, struGateCardInfo.struDevInfo.byChannel,\ struGateCardInfo.struDevInfo.byIvmsChannel, struGateCardInfo.dwRelativeTime, struGateCardInfo.dwAbsTime, struGateCardInfo.szCardNo,\ struGateCardInfo.szPassVehicleID, struGateCardInfo.szInVehicleID, struGateCardInfo.byLetPass, struGateCardInfo.byCardType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } //月台作业上传 void CClientDemoDlg::ProLoadingDockOperateInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "月台作业上传", "loading dock operate information upload"); NET_LOADING_DOCK_OPERATEINFO struLoadingDockOperateInfo; memset(&struLoadingDockOperateInfo, 0, sizeof(struLoadingDockOperateInfo)); memcpy(&struLoadingDockOperateInfo, pAlarmInfo, sizeof(struLoadingDockOperateInfo)); //显示报警信息 sprintf(szInfoBuf, "%s: AbsTime:%s, ParkingNo:%s, dwIndex:%d, sLicense:%s, CurrentWorkerNumber:%d, CurrentGoodsLoadingRate:%d\ byDoorsStatus:%d", \ szLan, struLoadingDockOperateInfo.byAbsTime, struLoadingDockOperateInfo.byParkingNo, struLoadingDockOperateInfo.dwIndex, struLoadingDockOperateInfo.sLicense, struLoadingDockOperateInfo.byCurrentWorkerNumber, struLoadingDockOperateInfo.byCurrentGoodsLoadingRate, \ struLoadingDockOperateInfo.byDoorsStatus); //通道号 if (struLoadingDockOperateInfo.dwChannel > 0) { sprintf(szInfoBuf, "%s, channel:%d", szInfoBuf, struLoadingDockOperateInfo.dwChannel); } AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); //保存图片 SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struLoadingDockOperateInfo.dwBackPicDataLength > 0 && struLoadingDockOperateInfo.pBackPicDataBuffer != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[LoadingDockOperateInfo]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struLoadingDockOperateInfo.pBackPicDataBuffer, struLoadingDockOperateInfo.dwBackPicDataLength, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struLoadingDockOperateInfo.dwBackPicDataLength) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "LoadingDockOperateInfo Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struLoadingDockOperateInfo.dwBackPicDataLength, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struLoadingDockOperateInfo.pBackPicDataBuffer != NULL) { delete[](struLoadingDockOperateInfo.pBackPicDataBuffer); struLoadingDockOperateInfo.pBackPicDataBuffer = NULL; } } void CClientDemoDlg::ProGateCardChargeAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; g_StringLanType(szLan, "出入口收费上传","Entrance Charge information upload"); NET_DVR_GATE_CHARGEINFO struGateChargeInfo; memset(&struGateChargeInfo, 0, sizeof(struGateChargeInfo)); memcpy(&struGateChargeInfo, pAlarmInfo, sizeof(struGateChargeInfo)); sprintf(szInfoBuf, "%s:DevInfo{DevIP:%s,Port:%d,Channel:%d,IvmsChannel:%d}RelativeTime:%d,AbsTime:%d,sLicense:%s,CardNo:%s,\ Entrance:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d,Departure:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d,DepartureID:%s,EntranceID:%s,\ TotalCost:%d,OperateName:%s,ChargeRuleId:%d,VehicleType:%d",\ szLan, struGateChargeInfo.struDevInfo.struDevIP.sIpV4, struGateChargeInfo.struDevInfo.wPort, struGateChargeInfo.struDevInfo.byChannel,\ struGateChargeInfo.struDevInfo.byIvmsChannel, struGateChargeInfo.dwRelativeTime, struGateChargeInfo.dwAbsTime, struGateChargeInfo.sLicense,\ struGateChargeInfo.szCardNo,struGateChargeInfo.struEntranceTime.wYear,struGateChargeInfo.struEntranceTime.byMonth,\ struGateChargeInfo.struEntranceTime.byDay,struGateChargeInfo.struEntranceTime.byHour, struGateChargeInfo.struEntranceTime.byMinute,\ struGateChargeInfo.struEntranceTime.bySecond,struGateChargeInfo.struEntranceTime.wMilliSec,struGateChargeInfo.struDepartureTime.wYear,\ struGateChargeInfo.struDepartureTime.byMonth,struGateChargeInfo.struDepartureTime.byDay,struGateChargeInfo.struDepartureTime.byHour, \ struGateChargeInfo.struDepartureTime.byMinute,struGateChargeInfo.struDepartureTime.bySecond,struGateChargeInfo.struDepartureTime.wMilliSec,\ struGateChargeInfo.szDepartureID,struGateChargeInfo.szEntranceID,struGateChargeInfo.dwTotalCost,struGateChargeInfo.szOperateName,\ struGateChargeInfo.szOperateName,struGateChargeInfo.byChargeRuleId,struGateChargeInfo.byVehicleType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProConferenceAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = {0}; NET_DVR_CONFERENCE_CALL_ALARM struConference = {0}; memcpy(&struConference, pAlarmInfo, sizeof(struConference)); if (struConference.byAlarmType == 1) //会议呼叫 { g_StringLanType(szLan, "会议呼叫告警","Conference Call Alarm"); if (struConference.byCallType == 1) { sprintf(szInfoBuf, "%s: type:point to point, url:%s", szLan, struConference.struCallInfo.struTerminalCallInfo.byTermianlURL); } else if (struConference.byCallType == 2) { sprintf(szInfoBuf, "%s: type:conference call,ID:%s,name:%s,start:%4d-%2d-%2d %2d:%2d:%2d,end:%4d-%2d-%2d %2d:%2d:%2d", szLan,\ struConference.struCallInfo.struConferenceCallInfo.byConferenceID,\ struConference.struCallInfo.struConferenceCallInfo.byConferenceName,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwYear,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwMonth,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwDay,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwHour,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwMinute,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwSecond,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwYear,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwMonth,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwDay, \ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwHour,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwMinute,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwSecond); } } else if (struConference.byAlarmType == 2) //呼叫状态切换 { g_StringLanType(szLan, "呼叫状态切换告警", "Call Answer Alarm"); char szAnswerType[32] = {0}; if (struConference.byCallStatusSwitch == 1) { g_StringLanType(szAnswerType, "开始呼叫", "Start Call"); } else if (struConference.byCallStatusSwitch == 2) { g_StringLanType(szAnswerType, "呼叫成功", "Call succeed"); } else if (struConference.byCallStatusSwitch == 3) { g_StringLanType(szAnswerType, "呼叫结束", "Call over"); } else if (struConference.byCallStatusSwitch == 4) { g_StringLanType(szAnswerType, "对端挂断", "Hang up"); } if (struConference.byCallType == 1) { sprintf(szInfoBuf, "%s[%s]: type:point to point, url:%s", szLan, szAnswerType, struConference.struCallInfo.struTerminalCallInfo.byTermianlURL); } else if (struConference.byCallType == 2) { sprintf(szInfoBuf, "%s[%s]: type:conference call,ID:%s,name:%s,start:%4d-%2d-%2d %2d:%2d:%2d,end:%4d-%2d-%2d %2d:%2d:%2d", szLan, szAnswerType, \ struConference.struCallInfo.struConferenceCallInfo.byConferenceID,\ struConference.struCallInfo.struConferenceCallInfo.byConferenceName,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwYear,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwMonth,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwDay,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwHour,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwMinute,\ struConference.struCallInfo.struConferenceCallInfo.struStartTime.dwSecond,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwYear,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwMonth,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwDay, \ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwHour,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwMinute,\ struConference.struCallInfo.struConferenceCallInfo.struEndTime.dwSecond); } } AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcIDInfoAlarm(WPARAM wParam, LPARAM lParam) { //char szInfoBuf[1024] = {0}; char szTriggerTime[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_ID_CARD_INFO_ALARM struIDCardInfo = {0}; memset(&struIDCardInfo, 0, sizeof(NET_DVR_ID_CARD_INFO_ALARM)); memcpy(&struIDCardInfo, pAlarmInfo, sizeof(NET_DVR_ID_CARD_INFO_ALARM)); g_StringLanType(szLan, "身份证信息上传", "ID Information upload"); CString szTmp = ""; szTmp.Format("%s", struIDCardInfo.struIDCardCfg.byName); string szName = UTF82ASCII(szTmp); szTmp.Format("%s", struIDCardInfo.struIDCardCfg.byAddr); string szAddr = UTF82ASCII(szTmp); szTmp.Format("%s", struIDCardInfo.struIDCardCfg.byIssuingAuthority); string szIssuingAuthority = UTF82ASCII(szTmp); sprintf(szTriggerTime, "%s start,name:%s,\r\nAddr:%s\r\nIssuingAuthority:%s\r\nID:%s,%d-%d-%d\r\nbyCardType:%d", szLan, szName.c_str(), szAddr.c_str(), szIssuingAuthority.c_str(), struIDCardInfo.struIDCardCfg.byIDNum, struIDCardInfo.struIDCardCfg.struStartDate.wYear, struIDCardInfo.struIDCardCfg.struStartDate.byMonth, struIDCardInfo.struIDCardCfg.struStartDate.byDay, struIDCardInfo.byCardType); AddLog(iDeviceIndex, ALARM_INFO_T,szTriggerTime); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime,"%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d",t.wYear,t.wMonth,t.wDay,t.wHour,t.wMinute,t.wSecond,t.wMilliseconds); do { if (struIDCardInfo.dwPicDataLen > 0 && struIDCardInfo.pPicData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "Sensor"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.bin", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } DWORD dwRet = WriteFile(hFile, struIDCardInfo.pPicData, struIDCardInfo.dwPicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struIDCardInfo.dwPicDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "ID Card Info Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struIDCardInfo.dwPicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } // 指纹数据 if (struIDCardInfo.dwFingerPrintDataLen > 0 && struIDCardInfo.pFingerPrintData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "Sensor"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_FingerPrintData_%d.bin", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } DWORD dwRet = WriteFile(hFile, struIDCardInfo.pFingerPrintData, struIDCardInfo.dwFingerPrintDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struIDCardInfo.dwFingerPrintDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "ID Card Info Fingerprint Data Write to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struIDCardInfo.dwFingerPrintDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } //抓拍图片数据 if (struIDCardInfo.dwCapturePicDataLen > 0 && struIDCardInfo.pCapturePicData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "Sensor"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_CapturePic_%d.bin", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } DWORD dwRet = WriteFile(hFile, struIDCardInfo.pCapturePicData, struIDCardInfo.dwCapturePicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struIDCardInfo.dwCapturePicDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "ID Card Info Capture Picture Write to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struIDCardInfo.dwCapturePicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } } while (0); if (struIDCardInfo.pPicData != NULL) { delete[](struIDCardInfo.pPicData); struIDCardInfo.pPicData = NULL; } if (struIDCardInfo.pFingerPrintData != NULL) { delete[](struIDCardInfo.pFingerPrintData); struIDCardInfo.pFingerPrintData = NULL; } if (struIDCardInfo.pCapturePicData != NULL) { delete[](struIDCardInfo.pCapturePicData); struIDCardInfo.pCapturePicData = NULL; } } void CClientDemoDlg::ProcPassportAlarm(WPARAM wParam, LPARAM lParam) { //char szInfoBuf[1024] = {0}; char szTriggerTime[4 * 1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_PASSPORT_ALARM struPassportInfo = { 0 }; memset(&struPassportInfo, 0, sizeof(NET_DVR_PASSPORT_ALARM)); memcpy(&struPassportInfo, pAlarmInfo, sizeof(NET_DVR_PASSPORT_ALARM)); g_StringLanType(szLan, "护照信息上传", "Passport Information upload"); CString szTmp = ""; szTmp.Format("%s", struPassportInfo.struPassportInfo.byName); string szName = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byAddr); string szAddr = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byCountryIssue); string szIssuingAuthority = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byLocalName); string szLocalName = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byPlaceOfBirth); string szPlaceOfBirth = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byJob); string szJob = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byTitle); string szTitle = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byResume); string szResume = UTF82ASCII(szTmp); szTmp.Format("%s", struPassportInfo.struPassportInfo.byMonitoring); string szMonitoring = UTF82ASCII(szTmp); sprintf(szTriggerTime, "%s start,name:%s,%d-%d-%d\r\nAddr:%s\r\nIssuingAuthority:%s\r\nID:%s,%d-%d-%d\r\nbyCardType:%d\r\n\ localName:%s\r\nPlaceOfBirth:%s\r\nJob:%s\r\nTitle:%s\r\nResume:%s\r\nMonitoring:%s\r\n", szLan, szName.c_str(), struPassportInfo.struPassportInfo.struBirth.wYear, struPassportInfo.struPassportInfo.struBirth.byMonth, struPassportInfo.struPassportInfo.struBirth.byDay, szAddr.c_str(), szIssuingAuthority.c_str(), struPassportInfo.struPassportInfo.byPassportNo, struPassportInfo.struPassportInfo.struExpireDate.wYear, struPassportInfo.struPassportInfo.struExpireDate.byMonth, struPassportInfo.struPassportInfo.struExpireDate.byDay, struPassportInfo.byCardType, szLocalName, szPlaceOfBirth, szJob, szTitle, szResume, szMonitoring); AddLog(iDeviceIndex, ALARM_INFO_T, szTriggerTime); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); //人脸数据 do { if (struPassportInfo.dwFaceDataLen > 0 && struPassportInfo.pFaceData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "Sensor"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_FaceData_%d.bin", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } DWORD dwRet = WriteFile(hFile, struPassportInfo.pFaceData, struPassportInfo.dwFaceDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struPassportInfo.dwFaceDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "The Passport Face data Write to File Failed.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struPassportInfo.dwFaceDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } //证件图片数据 if (struPassportInfo.dwPicDataLen > 0 && struPassportInfo.pPicData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "Sensor"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_IdentificationPhoto_%d.bin", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } DWORD dwRet = WriteFile(hFile, struPassportInfo.pPicData, struPassportInfo.dwPicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struPassportInfo.dwPicDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "The Passport Identification Photo Write to File Failed.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struPassportInfo.dwPicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } //抓拍图片数据 if (struPassportInfo.dwCapturePicDataLen > 0 && struPassportInfo.pCapturePicData != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "Sensor"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_CapturePic_%d.bin", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } DWORD dwRet = WriteFile(hFile, struPassportInfo.pCapturePicData, struPassportInfo.dwCapturePicDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struPassportInfo.dwCapturePicDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "The Passport Capture Picture Write to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struPassportInfo.dwCapturePicDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } } while (0); if (struPassportInfo.pPicData != NULL) { delete[](struPassportInfo.pPicData); struPassportInfo.pPicData = NULL; } if (struPassportInfo.pFaceData != NULL) { delete[](struPassportInfo.pFaceData); struPassportInfo.pFaceData = NULL; } if (struPassportInfo.pCapturePicData != NULL) { delete[](struPassportInfo.pCapturePicData); struPassportInfo.pCapturePicData = NULL; } } void CClientDemoDlg::ProcPassNumInfoAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szTriggerTime[128] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_PASSNUM_INFO_ALARM struPassNumInfo = {0}; memcpy(&struPassNumInfo, pAlarmInfo, sizeof(NET_DVR_PASSNUM_INFO_ALARM)); g_StringLanType(szLan, "通行人数上报", "pass number Information upload"); sprintf(szTriggerTime, "%s start,EntryTimes:%d,ExitTimes:%d,TotalTimes:%d", szLan, struPassNumInfo.dwEntryTimes, struPassNumInfo.dwExitTimes, struPassNumInfo.dwTotalTimes); AddLog(iDeviceIndex, ALARM_INFO_T,szTriggerTime); } void CClientDemoDlg::ProcStorageDetAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = {0}; char szLan[128] = {0}; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_STORAGE_DETECTION_ALARM struStorageDet = {0}; memcpy(&struStorageDet, pAlarmInfo, sizeof(NET_DVR_STORAGE_DETECTION_ALARM)); g_StringLanType(szLan, "存储智能检测报警上传", "Storage Detection"); sprintf(szInfoBuf, "%s RelativeTime[%d]AbsTime[%d]DevIP[%s]Port[%d]Channel[%d]CardID[%d]PowerLoss[%d]BadBlocks[%d]HealthState[%d]ResidualLife[%0.1f%]", szLan, \ struStorageDet.dwRelativeTime, struStorageDet.dwAbsTime, struStorageDet.struDevInfo.struDevIP.sIpV4, struStorageDet.struDevInfo.wPort, \ struStorageDet.struDevInfo.byChannel, struStorageDet.dwCardID, struStorageDet.wAbnormalPowerLoss, struStorageDet.wBadBlocks, struStorageDet.byHealthState,struStorageDet.fResidualLife * 100); AddLog(iDeviceIndex, ALARM_INFO_T,szInfoBuf); } void CClientDemoDlg::ProcMVMRegisterInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_MVMRegisterInfo struMVMRegisterInfo = { 0 }; memcpy(&struMVMRegisterInfo, pAlarmInfo, sizeof(NET_DVR_MVMRegisterInfo)); g_StringLanType(szLan, "地磁管理器注册信息", "MVM Register Info"); sprintf(szInfoBuf, "%s DetectorID[%s]ManagerID[%s]Sim[%s]LocalIP[0x%x]LocalIPMask[0x%x]LocalGateway[0x%x]DstIP[0x%x]LocalPort[%d]Firmware[%d-%d-%d]Version[%d.%d]", szLan, \ struMVMRegisterInfo.sDetectorID, struMVMRegisterInfo.sManagerID, struMVMRegisterInfo.sSim, struMVMRegisterInfo.dwLocalIP, struMVMRegisterInfo.dwLocalIPMask, \ struMVMRegisterInfo.dwLocalGateway, struMVMRegisterInfo.dwDstIP, struMVMRegisterInfo.wLocalPort, struMVMRegisterInfo.wFirmwareYear, struMVMRegisterInfo.byFirmwareMonth, \ struMVMRegisterInfo.byFirmwareDay, struMVMRegisterInfo.byMajorVersion, struMVMRegisterInfo.byMinorVersion); sprintf(szInfoBuf, "%sMACAddr[", szInfoBuf); for (int i = 0; i < 6; i++) { sprintf(szInfoBuf, "%s%x", szInfoBuf, struMVMRegisterInfo.byMACAddr[i]); } sprintf(szInfoBuf, "%s]", szInfoBuf); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcMVMStatusInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_SingleMagneticStatus struMagneticStatus = { 0 }; memcpy(&struMagneticStatus, pAlarmInfo, sizeof(NET_DVR_SingleMagneticStatus)); g_StringLanType(szLan, "地磁管理器状态上报", "Magnetic Status Info"); sprintf(szInfoBuf, "%s DetectorID[%s]ManagerID[%s]ParkNum[%s]DetectorTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d]Rssi[%d]ParkinglotState[%d]BatteryState[%d]DeviceState[%d]CMD[%d]", szLan, \ struMagneticStatus.sDetectorID, struMagneticStatus.sManagerID, struMagneticStatus.sParkNum, struMagneticStatus.struDetectorTime.wYear, struMagneticStatus.struDetectorTime.byMonth, \ struMagneticStatus.struDetectorTime.byDay, struMagneticStatus.struDetectorTime.byHour, struMagneticStatus.struDetectorTime.byMinute, struMagneticStatus.struDetectorTime.bySecond, struMagneticStatus.struDetectorTime.wMilliSec, \ struMagneticStatus.dwRssi, struMagneticStatus.byParkinglotState, struMagneticStatus.byBatteryState, struMagneticStatus.byDeviceState, struMagneticStatus.byCMD); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcShipsDetAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; char szLan[128] = { 0 }; g_StringLanType(szLan, "船只检测报警上传", "Ship detection alarm "); NET_DVR_SHIPSDETECTION_ALARM struShipsDetection; memset(&struShipsDetection, 0, sizeof(struShipsDetection)); memcpy(&struShipsDetection, pAlarmInfo, sizeof(struShipsDetection)); LPNET_DVR_SHIPSDETECTION_ALARM pShipsDetection = (LPNET_DVR_SHIPSDETECTION_ALARM)(pAlarmInfo); sprintf(szInfoBuf, "flag[%d] [%2.2d%2.2d]%s: IPv4[%s] IPv6[%s] Port[%d] Channel[%d] IvmsChannel[%d] IvmsChannelEx[%d] RelativeTime[%d] AbsTime[%d] ShipsNum[%d] ShipsNumHead[%d] ShipsNumEnd[%d] SID[%d] sceneName[%s]", \ struShipsDetection.byTimeDiffFlag, struShipsDetection.cTimeDifferenceH, struShipsDetection.cTimeDifferenceM, \ szLan, struShipsDetection.struDevInfo.struDevIP.sIpV4, struShipsDetection.struDevInfo.struDevIP.byIPv6, struShipsDetection.struDevInfo.wPort, \ struShipsDetection.struDevInfo.byChannel, struShipsDetection.struDevInfo.byIvmsChannel, struShipsDetection.wDevInfoIvmsChannelEx,\ struShipsDetection.dwRelativeTime, struShipsDetection.dwAbsTime, \ struShipsDetection.byShipsNum, struShipsDetection.byShipsNumHead, struShipsDetection.byShipsNumEnd, struShipsDetection.bySID, struShipsDetection.szSceneName); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (int i = 0; i < struShipsDetection.byShipsNum; i++) { sprintf(szInfoBuf, "%s: shipsNum[%d] TriggerLineID[%d] ShipsLength[%0.1f] ShipsHeight[%0.1f] ShipsWidth[%0.1f] ShipsSpeed[%0.1f] ShipsDirection[%d] ShipsDetState[%d]", \ szLan, i + 1, struShipsDetection.struShipInfo[i].byTriggerLineID, struShipsDetection.struShipInfo[i].fShipsLength, struShipsDetection.struShipInfo[i].fShipsHeight, struShipsDetection.struShipInfo[i].fShipsWidth, \ struShipsDetection.struShipInfo[i].fShipsSpeed, struShipsDetection.struShipInfo[i].byShipsDirection, struShipsDetection.struShipInfo[i].byShipsDetState); } shipsDetectionToTxt(pShipsDetection, iDeviceIndex); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struShipsDetection.dwPicLen > 0 && struShipsDetection.pPicBuffer != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%d][%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, "VisibleLight"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struShipsDetection.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struShipsDetection.pPicBuffer, struShipsDetection.dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struShipsDetection.dwPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Plate Picture Wtite to File Fail.System Error:%d, dwPlateBufferLen:%d, dwWrittenBytes:%d ", dwError, struShipsDetection.dwPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struShipsDetection.dwThermalPicLen > 0 && struShipsDetection.pThermalPicBuffer != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%d][%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, "ThermalImaging"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struShipsDetection.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struShipsDetection.pThermalPicBuffer, struShipsDetection.dwThermalPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struShipsDetection.dwThermalPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "PilotFace Picture Wtite to File Fail.System Error:%d, dwPilotFaceBufferLen:%d, dwWrittenBytes:%d ", dwError, struShipsDetection.dwThermalPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } //释放图片内存 if (struShipsDetection.pPicBuffer != NULL) { delete[](struShipsDetection.pPicBuffer); struShipsDetection.pPicBuffer = NULL; } //释放图片内存 if (struShipsDetection.pThermalPicBuffer != NULL) { delete[](struShipsDetection.pThermalPicBuffer); struShipsDetection.pThermalPicBuffer = NULL; } } void CClientDemoDlg::shipsDetectionToTxt(LPNET_DVR_SHIPSDETECTION_ALARM pShipsDetection, int iDeviceIndex) { if (NULL == pShipsDetection) { return; } int i = 0; int j = 0; char sInfo[5120] = { 0 }; // NET_DVR_SHIPSDETECTION_ALARM sprintf(sInfo, "NET_DVR_SHIPSDETECTION_ALARM \r\n"); sprintf(sInfo, "%s dwRelativeTime=%d \r\n", sInfo, pShipsDetection->dwRelativeTime); sprintf(sInfo, "%s dwAbsTime=%d \r\n", sInfo, pShipsDetection->dwAbsTime); sprintf(sInfo, "%s byShipsNum=%d \r\n", sInfo, pShipsDetection->byShipsNum); sprintf(sInfo, "%s byShipsNumHead=%d \r\n", sInfo, pShipsDetection->byShipsNumHead); sprintf(sInfo, "%s byShipsNumEnd=%d \r\n", sInfo, pShipsDetection->byShipsNumEnd); sprintf(sInfo, "%s dwPicLen=%d \r\n", sInfo, pShipsDetection->dwPicLen); sprintf(sInfo, "%s dwThermalPicLen=%d \r\n", sInfo, pShipsDetection->dwThermalPicLen); //NET_VCA_DEV_INFO sprintf(sInfo, "%s NET_VCA_DEV_INFO \r\n", sInfo); sprintf(sInfo, "%s wPort=%d \r\n", sInfo, pShipsDetection->struDevInfo.wPort); sprintf(sInfo, "%s byChannel=%d \r\n", sInfo, pShipsDetection->struDevInfo.byChannel); sprintf(sInfo, "%s byIvmsChannel=%d \r\n", sInfo, pShipsDetection->struDevInfo.byIvmsChannel); //NET_DVR_IPADDR sprintf(sInfo, "%s NET_DVR_IPADDR \r\n", sInfo); sprintf(sInfo, "%s sIpV4=%s \r\n", sInfo, pShipsDetection->struDevInfo.struDevIP.sIpV4); sprintf(sInfo, "%s byIPv6=%s \r\n", sInfo, pShipsDetection->struDevInfo.struDevIP.byIPv6); //NET_DVR_SHIPSINFO for (i = 0; i < MAX_SHIPS_NUM; i++) { sprintf(sInfo, "%s NET_DVR_SHIPSINFO Ships Number[%d] \r\n", sInfo, i); sprintf(sInfo, "%s fShipsLength=%0.1f \r\n", sInfo, pShipsDetection->struShipInfo[i].fShipsLength); sprintf(sInfo, "%s fShipsHeight=%0.1f \r\n", sInfo, pShipsDetection->struShipInfo[i].fShipsHeight); sprintf(sInfo, "%s fShipsWidth=%0.1f \r\n", sInfo, pShipsDetection->struShipInfo[i].fShipsWidth); sprintf(sInfo, "%s fShipsSpeed=%0.1f \r\n", sInfo, pShipsDetection->struShipInfo[i].fShipsSpeed); sprintf(sInfo, "%s byShipsDirection=%d \r\n", sInfo, pShipsDetection->struShipInfo[i].byShipsDirection); sprintf(sInfo, "%s byShipsDetState=%d \r\n", sInfo, pShipsDetection->struShipInfo[i].byShipsDetState); //NET_VCA_POLYGON sprintf(sInfo, "%s NET_VCA_POLYGON dwPointNum=%d \r\n", sInfo, pShipsDetection->struShipInfo[i].struShipsRect.dwPointNum); if (pShipsDetection->struShipInfo[i].struShipsRect.dwPointNum > 0 && pShipsDetection->struShipInfo[i].struShipsRect.dwPointNum <= VCA_MAX_POLYGON_POINT_NUM) { for (j = 0; j < pShipsDetection->struShipInfo[i].struShipsRect.dwPointNum; j++) { // NET_VCA_POINT sprintf(sInfo, "%s NET_VCA_POINT fX=%0.3f \r\n", sInfo, pShipsDetection->struShipInfo[i].struShipsRect.struPos[j].fX); sprintf(sInfo, "%s NET_VCA_POINT fY=%0.3f \r\n", sInfo, pShipsDetection->struShipInfo[i].struShipsRect.struPos[j].fY); } } sprintf(sInfo, "%s TriggerLineID=%d \r\n", sInfo, pShipsDetection->struShipInfo[i].byTriggerLineID); } char cFilename[256] = { 0 }; sprintf(cFilename, ""); HANDLE hFile = NULL; DWORD dwReturn = 0; SYSTEMTIME t; GetLocalTime(&t); char chLocalTime[128]; sprintf(chLocalTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); // sprintf(cFilename, "%s\\LocalTime[%s].txt", cFilename, chLocalTime); sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "ShipsInfo"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chLocalTime, rand() % GetTickCount()); hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, sInfo, 5120, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; UpdateData(FALSE); } void CClientDemoDlg::ProThermometryAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "温度报警上传", "Thermometry Alarm"); NET_DVR_THERMOMETRY_ALARM struThermometryAlarm; memset(&struThermometryAlarm, 0, sizeof(struThermometryAlarm)); memcpy(&struThermometryAlarm, pAlarmInfo, sizeof(struThermometryAlarm)); if (0 == struThermometryAlarm.byRuleCalibType) { sprintf(szInfoBuf, "%s: Channel:%d, RuleID:%d,TemperatureSuddenChangeCycle:%d; TemperatureSuddenChangeValue:%f; ToleranceTemperature:%f, AlertFilteringTime:%d, AlarmFilteringTime:%d,ThermometryUnit:%d, PresetNo:%d, RuleTemperature:%.1f, CurrTemperature:%.1f, PTZ Info[Pan:%f, Tilt:%f, Zoom:%f], AlarmLevel:%d, \ AlarmType:%d, AlarmRule:%d, RuleCalibType:%d, Point[x:%f, y:%f], PicLen:%d, ThermalPicLen:%d, ThermalInfoLen:%d", szLan, \ struThermometryAlarm.dwChannel, struThermometryAlarm.byRuleID, struThermometryAlarm.dwTemperatureSuddenChangeCycle, struThermometryAlarm.fTemperatureSuddenChangeValue, struThermometryAlarm.fToleranceTemperature, struThermometryAlarm.dwAlertFilteringTime, struThermometryAlarm.dwAlarmFilteringTime, struThermometryAlarm.byThermometryUnit, struThermometryAlarm.wPresetNo, \ struThermometryAlarm.fRuleTemperature, struThermometryAlarm.fCurrTemperature, \ struThermometryAlarm.struPtzInfo.fPan, struThermometryAlarm.struPtzInfo.fTilt, struThermometryAlarm.struPtzInfo.fZoom, \ struThermometryAlarm.byAlarmLevel, struThermometryAlarm.byAlarmType, struThermometryAlarm.byAlarmRule, struThermometryAlarm.byRuleCalibType, \ struThermometryAlarm.struPoint.fX, struThermometryAlarm.struPoint.fY, struThermometryAlarm.dwPicLen, struThermometryAlarm.dwThermalPicLen, struThermometryAlarm.dwThermalInfoLen); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } else if (1 == struThermometryAlarm.byRuleCalibType || 2 == struThermometryAlarm.byRuleCalibType) { char szRegionInfo[512] = { 0 }; int iPointNum = struThermometryAlarm.struRegion.dwPointNum; for (int i = 0; i < iPointNum; i++) { float fX = struThermometryAlarm.struRegion.struPos[i].fX; float fY = struThermometryAlarm.struRegion.struPos[i].fY; sprintf(szRegionInfo, "%sX%d:%f,Y%d:%f;", szRegionInfo, i + 1, fX, i + 1, fY); } sprintf(szInfoBuf, "%s: Channel:%d, RuleID:%d,TemperatureSuddenChangeCycle:%d; TemperatureSuddenChangeValue:%f; ToleranceTemperature:%f, AlertFilteringTime:%d, AlarmFilteringTime:%d,HighestPoint[x:%f, y:%f],ThermometryUnit:%d, PresetNo:%d, RuleTemperature:%.1f, CurrTemperature:%.1f, PTZ Info[Pan:%f, Tilt:%f, Zoom:%f], AlarmLevel:%d, \ AlarmType:%d, AlarmRule:%d, RuleCalibType:%d, Region[%s], PicLen:%d, ThermalPicLen:%d, ThermalInfoLen:%d", szLan, \ struThermometryAlarm.dwChannel, struThermometryAlarm.byRuleID, struThermometryAlarm.dwTemperatureSuddenChangeCycle, struThermometryAlarm.fTemperatureSuddenChangeValue, struThermometryAlarm.fToleranceTemperature, struThermometryAlarm.dwAlertFilteringTime, struThermometryAlarm.dwAlarmFilteringTime, struThermometryAlarm.struHighestPoint.fX, struThermometryAlarm.struHighestPoint.fY, struThermometryAlarm.byThermometryUnit, struThermometryAlarm.wPresetNo, \ struThermometryAlarm.fRuleTemperature, struThermometryAlarm.fCurrTemperature, struThermometryAlarm.struPtzInfo.fPan, struThermometryAlarm.struPtzInfo.fTilt, struThermometryAlarm.struPtzInfo.fZoom, \ struThermometryAlarm.byAlarmLevel, struThermometryAlarm.byAlarmType, struThermometryAlarm.byAlarmRule, struThermometryAlarm.byRuleCalibType, \ szRegionInfo, struThermometryAlarm.dwPicLen, struThermometryAlarm.dwThermalPicLen, struThermometryAlarm.dwThermalInfoLen); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struThermometryAlarm.dwPicLen > 0 && struThermometryAlarm.pPicBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Thermometry]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struThermometryAlarm.byPicTransType) { sprintf(cFilename, "%s\\Pic[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\Pic[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struThermometryAlarm.pPicBuff, struThermometryAlarm.dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struThermometryAlarm.dwPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Thermometry Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struThermometryAlarm.dwPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struThermometryAlarm.dwThermalPicLen > 0 && struThermometryAlarm.pThermalPicBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Thermometry]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struThermometryAlarm.byPicTransType) { sprintf(cFilename, "%s\\ThermalPic[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\ThermalPic[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struThermometryAlarm.pThermalPicBuff, struThermometryAlarm.dwThermalPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struThermometryAlarm.dwThermalPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Thermometry Thermal Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struThermometryAlarm.dwThermalPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struThermometryAlarm.dwThermalInfoLen > 0 && struThermometryAlarm.pThermalInfoBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[Thermometry]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\ThermalInfo[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struThermometryAlarm.pThermalInfoBuff, struThermometryAlarm.dwThermalInfoLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struThermometryAlarm.dwThermalInfoLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Thermometry Thermal Info Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struThermometryAlarm.dwThermalInfoLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struThermometryAlarm.pPicBuff != NULL) { delete[](struThermometryAlarm.pPicBuff); struThermometryAlarm.pPicBuff = NULL; } if (struThermometryAlarm.pThermalPicBuff != NULL) { delete[](struThermometryAlarm.pThermalPicBuff); struThermometryAlarm.pThermalPicBuff = NULL; } if (struThermometryAlarm.pThermalInfoBuff != NULL) { delete[](struThermometryAlarm.pThermalInfoBuff); struThermometryAlarm.pThermalInfoBuff = NULL; } } void CClientDemoDlg::ProBaseStationInfoAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "基站信息上传", "BaseStationInfo Alarm"); NET_DVR_BASE_STATION_INFO_ALARM struBaseStationInfoAlarm; memset(&struBaseStationInfoAlarm, 0, sizeof(struBaseStationInfoAlarm)); memcpy(&struBaseStationInfoAlarm, pAlarmInfo, sizeof(struBaseStationInfoAlarm)); sprintf(szInfoBuf, "%s: Channel[%d] NetBarWaCode[%s] CollectionEquipmentID[%s] MCC[%s] MNC[%s] LAC[%s] CI[%s] BSCI[%s] BCCH[%s] LEV[%s] CollectionEquipmentLongitude[%s] CollectionEquipmentLatitude[%s] CaptureTime[%s]", szLan, \ struBaseStationInfoAlarm.dwChannel, struBaseStationInfoAlarm.sNetBarWaCode, struBaseStationInfoAlarm.sCollectionEquipmentID, struBaseStationInfoAlarm.sMCC, struBaseStationInfoAlarm.sMNC, struBaseStationInfoAlarm.sLAC, struBaseStationInfoAlarm.sCI, \ struBaseStationInfoAlarm.sBSCI, struBaseStationInfoAlarm.sBCCH, struBaseStationInfoAlarm.sLEV, struBaseStationInfoAlarm.sCollectionEquipmentLongitude, struBaseStationInfoAlarm.sCollectionEquipmentLatitude, struBaseStationInfoAlarm.sCaptureTime); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProThermometryDiffAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "温差报警上传", "Thermometry Difference Alarm"); NET_DVR_THERMOMETRY_DIFF_ALARM struThermometryAlarm; memset(&struThermometryAlarm, 0, sizeof(struThermometryAlarm)); memcpy(&struThermometryAlarm, pAlarmInfo, sizeof(struThermometryAlarm)); if (0 == struThermometryAlarm.byRuleCalibType) { sprintf(szInfoBuf, "%s: Channel:%d, AlarmID1:%d, ToleranceTemperature:%f, AlarmFilteringTime:%d,AlarmID2:%d, PresetNo:%d, RuleTemperatureDiff:%.1f, CurTemperatureDiff:%.1f, \ AlarmLevel:%d, AlarmType:%d, AlarmRule:%d, RuleCalibType:%d, \ Point1[x:%f, y:%f], point2[x:%f, y:%f], PTZ Info[Pan:%f, Tilt:%f, Zoom:%f], PicLen:%d, \ ThermalPicLen:%d, ThermalInfoLen:%d, ThermometryUnit:%d", szLan, \ struThermometryAlarm.dwChannel, struThermometryAlarm.byAlarmID1, struThermometryAlarm.fToleranceTemperature, struThermometryAlarm.dwAlarmFilteringTime, struThermometryAlarm.byAlarmID2, struThermometryAlarm.wPresetNo, \ struThermometryAlarm.fRuleTemperatureDiff, struThermometryAlarm.fCurTemperatureDiff, \ struThermometryAlarm.byAlarmLevel, struThermometryAlarm.byAlarmType, struThermometryAlarm.byAlarmRule, struThermometryAlarm.byRuleCalibType, \ struThermometryAlarm.struPoint[0].fX, struThermometryAlarm.struPoint[0].fY, struThermometryAlarm.struPoint[1].fX, struThermometryAlarm.struPoint[1].fY, \ struThermometryAlarm.struPtzInfo.fPan, struThermometryAlarm.struPtzInfo.fTilt, struThermometryAlarm.struPtzInfo.fZoom, \ struThermometryAlarm.dwPicLen, struThermometryAlarm.dwThermalPicLen, struThermometryAlarm.dwThermalInfoLen, struThermometryAlarm.byThermometryUnit); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } else if (1 == struThermometryAlarm.byRuleCalibType || 2 == struThermometryAlarm.byRuleCalibType) { int i = 0; char szRegionInfo[512] = { 0 }; int iPointNum = struThermometryAlarm.struRegion[0].dwPointNum; for (i = 0; i < iPointNum; i++) { float fX = struThermometryAlarm.struRegion[0].struPos[i].fX; float fY = struThermometryAlarm.struRegion[0].struPos[i].fY; sprintf(szRegionInfo, "%sX%d:%f,Y%d:%f;", szRegionInfo, iPointNum + 1, fX, iPointNum + 1, fY); } char szRegionInfo1[512] = { 0 }; iPointNum = struThermometryAlarm.struRegion[1].dwPointNum; for (i = 0; i < iPointNum; i++) { float fX = struThermometryAlarm.struRegion[1].struPos[i].fX; float fY = struThermometryAlarm.struRegion[1].struPos[i].fY; sprintf(szRegionInfo1, "%sX%d:%f,Y%d:%f;", szRegionInfo1, iPointNum + 1, fX, iPointNum + 1, fY); } sprintf(szInfoBuf, "%s: Channel:%d, AlarmID1:%d, AlarmID2:%d, ToleranceTemperature:%f, AlarmFilteringTime:%d,PresetNo:%d, RuleTemperatureDiff:%.1f, CurTemperatureDiff:%.1f, AlarmLevel:%d, AlarmType:%d, AlarmRule:%d, RuleCalibType:%d, \ Region1[%s], Region2[%s], PTZ Info[Pan:%f, Tilt:%f, Zoom:%f], PicLen:%d, ThermalPicLen:%d, ThermalInfoLen:%d, ThermometryUnit:%d", szLan, \ struThermometryAlarm.dwChannel, struThermometryAlarm.byAlarmID1, struThermometryAlarm.byAlarmID2, struThermometryAlarm.fToleranceTemperature, struThermometryAlarm.dwAlarmFilteringTime, struThermometryAlarm.wPresetNo, \ struThermometryAlarm.fRuleTemperatureDiff, struThermometryAlarm.fCurTemperatureDiff, \ struThermometryAlarm.byAlarmLevel, struThermometryAlarm.byAlarmType, struThermometryAlarm.byAlarmRule, struThermometryAlarm.byRuleCalibType, \ szRegionInfo, szRegionInfo1, \ struThermometryAlarm.struPtzInfo.fPan, struThermometryAlarm.struPtzInfo.fTilt, struThermometryAlarm.struPtzInfo.fZoom, \ struThermometryAlarm.dwPicLen, struThermometryAlarm.dwThermalPicLen, struThermometryAlarm.dwThermalInfoLen, struThermometryAlarm.byThermometryUnit); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struThermometryAlarm.dwPicLen > 0 && struThermometryAlarm.pPicBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[ThermometryDiff]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struThermometryAlarm.byPicTransType) { sprintf(cFilename, "%s\\LocalTime[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\LocalTime[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struThermometryAlarm.pPicBuff, struThermometryAlarm.dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struThermometryAlarm.dwPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Thermometry Difference Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struThermometryAlarm.dwPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struThermometryAlarm.dwThermalPicLen > 0 && struThermometryAlarm.pThermalPicBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[ThermometryDiff]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } if (struThermometryAlarm.byPicTransType) { sprintf(cFilename, "%s\\ThermalPic[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\ThermalPic[%s]_%d.jpg", cFilename, chTime, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struThermometryAlarm.pThermalPicBuff, struThermometryAlarm.dwThermalPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struThermometryAlarm.dwThermalPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Thermometry Difference Thermal Picture Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struThermometryAlarm.dwThermalPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struThermometryAlarm.dwThermalInfoLen > 0 && struThermometryAlarm.pThermalInfoBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, "[ThermometryDiff]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\ThermalInfo[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struThermometryAlarm.pThermalInfoBuff, struThermometryAlarm.dwThermalInfoLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struThermometryAlarm.dwThermalInfoLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Thermometry Difference Thermal Info Wtite to File Fail.System Error:%d, dwPicLen:%d, pBuffer:%d ", dwError, struThermometryAlarm.dwThermalInfoLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } if (struThermometryAlarm.pPicBuff != NULL) { delete[](struThermometryAlarm.pPicBuff); struThermometryAlarm.pPicBuff = NULL; } if (struThermometryAlarm.pThermalPicBuff != NULL) { delete[](struThermometryAlarm.pThermalPicBuff); struThermometryAlarm.pThermalPicBuff = NULL; } if (struThermometryAlarm.pThermalInfoBuff != NULL) { delete[](struThermometryAlarm.pThermalInfoBuff); struThermometryAlarm.pThermalInfoBuff = NULL; } } void CClientDemoDlg::ProDiagnosisUpload(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szTime[128] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_DIAGNOSIS_UPLOAD struDiagnosisUpload = { 0 }; memcpy(&struDiagnosisUpload, pAlarmInfo, sizeof(NET_DVR_DIAGNOSIS_UPLOAD)); g_StringLanType(szLan, "诊断服务器结果信息上传", "Diagnosis Upload"); sprintf(szTime, "%d-%d-%d %d:%d:%d", struDiagnosisUpload.struCheckTime.dwYear, struDiagnosisUpload.struCheckTime.dwMonth, struDiagnosisUpload.struCheckTime.dwDay, struDiagnosisUpload.struCheckTime.dwHour, struDiagnosisUpload.struCheckTime.dwMinute, struDiagnosisUpload.struCheckTime.dwSecond); sprintf(szInfoBuf, "%s StreamID[%s]MonitorIP[%s]ChanIndex[%d]Width[%d]Height[%d]CheckTime[%s]Result[%d]", szLan, \ struDiagnosisUpload.sStreamID, struDiagnosisUpload.sMonitorIP, struDiagnosisUpload.dwChanIndex, struDiagnosisUpload.dwWidth, \ struDiagnosisUpload.dwHeight, szTime, struDiagnosisUpload.byResult); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); sprintf(szInfoBuf, "%s SignalResult[%d]BlurResult[%d]LumaResult[%d]ChromaResult[%d]SnowResult[%d]StreakResult[%d]FreezeResult[%d]PTZResult[%d]NapShotURL[%s]", szLan, \ struDiagnosisUpload.bySignalResult, struDiagnosisUpload.byBlurResult, struDiagnosisUpload.byLumaResult, struDiagnosisUpload.byChromaResult, \ struDiagnosisUpload.bySnowResult, struDiagnosisUpload.byStreakResult, struDiagnosisUpload.byFreezeResult, struDiagnosisUpload.byPTZResult, struDiagnosisUpload.sSNapShotURL); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcessWallConferenceAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szTime[128] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char *pAlarmInfo = (char *)(lParam); DWORD dwLen = *(DWORD*)pAlarmInfo; CFile file; if (!file.Open("C:\\WallConferenceInfo.txt", CFile::modeWrite)) { return; } file.SeekToEnd(); file.Write(pAlarmInfo + sizeof(DWORD), dwLen); file.Close(); g_StringLanType(szLan, "开会的会议信息告警", "Wall Conference Alarm"); CTime time(NULL); sprintf(szTime, "%d-%d-%d %d:%d:%d", time.GetYear(), time.GetMonth(), time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond()); sprintf(szInfoBuf, "%s DeviceIndex[%d] Alarm Time[%s]", szLan, iDeviceIndex, szTime); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProGPSStatusUpload(WPARAM wParam, LPARAM lParam) { char szLan[256] = { 0 }; char szLocateMode[64] = { 0 }; char szGPSTime[128] = { 0 }; char szInfoBuf[1024] = { 0 }; char szDegree[128] = { 0 }; char szUploadBuf[1024] = { 0 }; char szRetransFlag[32] = { 0 }; char szNeedsResponse[32] = { 0 }; char szType[32] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; LPNET_DVR_GPS_STATUS_ALARM pStruGPSStatusAlarm = (LPNET_DVR_GPS_STATUS_ALARM)pAlarmInfo; g_StringLanType(szLan, "GPS状态上传", "GPS Status Upload"); sprintf(szGPSTime, "%d-%d-%d %d:%d:%d", pStruGPSStatusAlarm->struGPSTime.wYear, pStruGPSStatusAlarm->struGPSTime.byMonth, pStruGPSStatusAlarm->struGPSTime.byDay, pStruGPSStatusAlarm->struGPSTime.byHour, pStruGPSStatusAlarm->struGPSTime.byMinute, pStruGPSStatusAlarm->struGPSTime.bySecond); if (pStruGPSStatusAlarm->struGPSInfo.byDirection[0] == 0) { if (pStruGPSStatusAlarm->struGPSInfo.byDirection[1] == 0) { sprintf(szDegree, "%s %d %s %d", "East longitude", pStruGPSStatusAlarm->struGPSInfo.dwLatitude, "North latitude", pStruGPSStatusAlarm->struGPSInfo.dwLongitude); } if (pStruGPSStatusAlarm->struGPSInfo.byDirection[1] == 1) { sprintf(szDegree, "%s %d %s %d", "East longitude", pStruGPSStatusAlarm->struGPSInfo.dwLatitude, "South latitude", pStruGPSStatusAlarm->struGPSInfo.dwLongitude); } } else if (pStruGPSStatusAlarm->struGPSInfo.byDirection[0] == 1) { if (pStruGPSStatusAlarm->struGPSInfo.byDirection[1] == 0) { sprintf(szDegree, "%s %d %s %d", "West longitude", pStruGPSStatusAlarm->struGPSInfo.dwLatitude, "North latitude", pStruGPSStatusAlarm->struGPSInfo.dwLongitude); } if (pStruGPSStatusAlarm->struGPSInfo.byDirection[1] == 1) { sprintf(szDegree, "%s %d %s %d", "West longitude", pStruGPSStatusAlarm->struGPSInfo.dwLatitude, "South latitude", pStruGPSStatusAlarm->struGPSInfo.dwLongitude); } } switch (pStruGPSStatusAlarm->struGPSInfo.byLocateMode) { case 0: g_StringLanType(szLocateMode, "自主定位", "self-localization"); break; case 1: g_StringLanType(szLocateMode, "差分", "difference"); break; case 2: g_StringLanType(szLocateMode, "估算", "estimate"); break; case 3: g_StringLanType(szLocateMode, "数据无效", "data is invalid"); break; default: break; } switch (pStruGPSStatusAlarm->byRetransFlag) { case 0: g_StringLanType(szRetransFlag, "本条 GPS 为实时包", "GPS real-time package"); break; case 1: g_StringLanType(szRetransFlag, "本条 GPS 为重传包", "GPS retransmission package "); break; default: break; } switch (pStruGPSStatusAlarm->byNeedsResponse) { case 0: g_StringLanType(szNeedsResponse, "不需回应包", "no need respond package"); break; case 1: g_StringLanType(szNeedsResponse, "需回应包", "need respond package"); break; default: break; } switch (pStruGPSStatusAlarm->byType) { case 0: g_StringLanType(szType, "无人机", "Unmanned aerial vehicle"); break; default: break; } sprintf(szInfoBuf, "%s: (GPS Time:[%s] GPS Direction:[%s] GPS LocateMode:[%s] HDOP:[%d] Height:[%d] Vehicle Speed:[%d] Vehicle Direction:[%d])\n", szLan, szGPSTime, szDegree, szLocateMode, pStruGPSStatusAlarm->struGPSInfo.wHDOP, pStruGPSStatusAlarm->struGPSInfo.wHeight, pStruGPSStatusAlarm->struGPSInfo.dwVehicleSpeed, pStruGPSStatusAlarm->struGPSInfo.dwVehicleDirection); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); sprintf(szUploadBuf, "%s: (RetransFlag:[%s] NeedsResponse:[%s] Type:[%s] BatteryRemaining:[%d] RollAngle:[%d] PitchAngle:[%d] RelativeHeight:[%d] VerticalSpeed:[%d])\n", szLan, szRetransFlag, szNeedsResponse, szType, pStruGPSStatusAlarm->byBatteryRemaining, pStruGPSStatusAlarm->iRollAngle, pStruGPSStatusAlarm->iPitchAngle, pStruGPSStatusAlarm->wRelativeHeight, pStruGPSStatusAlarm->wVerticalSpeed); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szUploadBuf); } void CClientDemoDlg::ProTagInfoUpload(WPARAM wParam, LPARAM lParam) { char szLan[256] = { 0 }; char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int i = 0; int iDeviceIndex = pAlarmDev->iDeviceIndex; LPNET_DVR_TAG_INFO_ALARM pStruTagInfoAlarm = (LPNET_DVR_TAG_INFO_ALARM)pAlarmInfo; g_StringLanType(szLan, "标签信息上传", "Tag Information Upload"); char szRfidInfo[180] = { 0 }; for (int index = 0; index < sizeof(pStruTagInfoAlarm->byRFIDInfo); ++index) { sprintf(szRfidInfo, "%s0x%02x ", szRfidInfo, pStruTagInfoAlarm->byRFIDInfo[index]); } sprintf(szInfoBuf, "%s Card No:[%s],Rssi:[%d],byIndexCode[%s],AcquisitionTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d],RFIDInfo[%s],RFIDInfoLen[%d],byVoltageLow[%d],byAlarmFlag[%d]\n", szLan, pStruTagInfoAlarm->byCardNo, pStruTagInfoAlarm->iRssi, pStruTagInfoAlarm->byIndexCode, pStruTagInfoAlarm->struAcquisitionTime.wYear, pStruTagInfoAlarm->struAcquisitionTime.byMonth, pStruTagInfoAlarm->struAcquisitionTime.byDay, pStruTagInfoAlarm->struAcquisitionTime.byHour, pStruTagInfoAlarm->struAcquisitionTime.byMinute, pStruTagInfoAlarm->struAcquisitionTime.bySecond, pStruTagInfoAlarm->struAcquisitionTime.wMilliSec, szRfidInfo, pStruTagInfoAlarm->byRFIDInfoLen, pStruTagInfoAlarm->byVoltageLow, pStruTagInfoAlarm->byAlarmFlag); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcessInquestAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szStatus[256] = { 0 }; char szAlarmType[128] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_INQUEST_ALARM struTrayAbnormalAlarm = { 0 }; memcpy(&struTrayAbnormalAlarm, pAlarmInfo, sizeof(NET_DVR_INQUEST_ALARM)); g_StringLanType(szLan, "审讯主机报警上传", "Inquest Alarm Upload"); switch (struTrayAbnormalAlarm.dwAlarmType) { case 0: g_StringLanType(szAlarmType, "光盘满报警", "Tray full"); break; case 1: g_StringLanType(szAlarmType, "光盘错误报警", "Tray error"); break; default: break; } sprintf(szInfoBuf, "%s: (Alarm type:[%s] Tray No.:[%d])\n", szLan, szAlarmType, struTrayAbnormalAlarm.byTrayNo); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProFaceSnapRawData(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_VCA_FACESNAP_RAWDATA_ALARM struFaceSnap = { 0 }; memcpy(&struFaceSnap, pAlarmInfo, sizeof(NET_VCA_FACESNAP_RAWDATA_ALARM)); g_StringLanType(szLan, "人脸Json报警", "Face Json Alarm"); sprintf(szInfoBuf, "%s: IPv4[%s] IPv6[%s] Port[%d] Channel[%d] IvmsChannel[%d] RelativeTime[%d] AbsTime[%d]", \ szLan, struFaceSnap.struDevInfo.struDevIP.sIpV4, struFaceSnap.struDevInfo.struDevIP.byIPv6, struFaceSnap.struDevInfo.wPort, \ struFaceSnap.struDevInfo.byChannel, struFaceSnap.struDevInfo.byIvmsChannel, struFaceSnap.dwRelativeTime, struFaceSnap.dwAbsTime); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struFaceSnap.dwJsonDataLen > 0 && struFaceSnap.pJsonBuff != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\[%s]", g_struLocalParam.chPictureSavePath, "[FaceSnapJson]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\Json[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { delete[] struFaceSnap.pJsonBuff; struFaceSnap.pJsonBuff = NULL; return; } DWORD dwRet = WriteFile(hFile, struFaceSnap.pJsonBuff, struFaceSnap.dwJsonDataLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struFaceSnap.dwJsonDataLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Face Snap Json Info Wtite to File Fail.System Error:%d, dwJsonDataLen:%d, WrittenBytes:%d ", dwError, struFaceSnap.dwJsonDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; delete[] struFaceSnap.pJsonBuff; struFaceSnap.pJsonBuff = NULL; } } void CClientDemoDlg::ProcNetSwitchAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "交换机端口检测报警上传", "Switch port detection"); NET_DVR_SWITCH_CONVERT_ALARM struSwitchAlarm = { 0 }; memset(&struSwitchAlarm, 0, sizeof(struSwitchAlarm)); memcpy(&struSwitchAlarm, pAlarmInfo, sizeof(struSwitchAlarm)); sprintf(szInfoBuf, "%s Port:%d, EventType:%d, Event:%d", szLan, struSwitchAlarm.byPortNo, struSwitchAlarm.dwEventType, struSwitchAlarm.dwEvent); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcessAlarmGps(WPARAM wParam, LPARAM lParam) { char szLan[256] = { 0 }; char szLocateMode[64] = { 0 }; char szGPSTime[512] = { 0 }; char szInfoBuf[1024] = { 0 }; char szDegree[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_GPSALARMINFO struGPSAlarm = { 0 }; memset(&struGPSAlarm, 0, sizeof(struGPSAlarm)); memcpy(&struGPSAlarm, pAlarmInfo, sizeof(struGPSAlarm)); g_StringLanType(szLan, "GPS报警信息上传", "GPS Alarm Information Upload"); sprintf(szGPSTime, "上传时间:%d-%d-%d %d:%d:%d", struGPSAlarm.struGpsTime.wYear, struGPSAlarm.struGpsTime.byMonth, struGPSAlarm.struGpsTime.byDay, struGPSAlarm.struGpsTime.byHour, struGPSAlarm.struGpsTime.byMinute, struGPSAlarm.struGpsTime.bySecond); if (struGPSAlarm.sDirection[0] == 'E') { if (struGPSAlarm.sDirection[1] == 'N') { sprintf(szDegree, "%s %d %s %d", "East longitude", struGPSAlarm.dwLongitude, "North latitude", struGPSAlarm.dwLatitude); } if (struGPSAlarm.sDirection[1] == 'S') { sprintf(szDegree, "%s %d %s %d", "East longitude", struGPSAlarm.dwLongitude, "South latitude", struGPSAlarm.dwLatitude); } } else if (struGPSAlarm.sDirection[0] == 'W') { if (struGPSAlarm.sDirection[1] == 'N') { sprintf(szDegree, "%s %d %s %d", "West longitude", struGPSAlarm.dwLongitude, "North latitude", struGPSAlarm.dwLatitude); } if (struGPSAlarm.sDirection[1] == 'S') { sprintf(szDegree, "%s %d %s %d", "West longitude", struGPSAlarm.dwLongitude, "South latitude", struGPSAlarm.dwLatitude); } } switch (struGPSAlarm.byLocateMode) { case 0: g_StringLanType(szLocateMode, "自主定位", "self-localization"); break; case 1: g_StringLanType(szLocateMode, "差分", "difference"); break; case 2: g_StringLanType(szLocateMode, "估算", "estimate"); break; case 3: g_StringLanType(szLocateMode, "数据无效", "data is invalid"); break; default: break; } sprintf(szInfoBuf, "%s: DeviceID:[%s] GPS Time:[%s] GPS Direction:[%s] GPS LocateMode:[%s] TimeZone:[%d] Vehicle Direction:[%d] Satellites:[%d] Precision:[%d]\ Height:[%d] GPSSeq:[%d] Speed:[%d]", szLan, struGPSAlarm.byDeviceID, szGPSTime, szDegree, szLocateMode, struGPSAlarm.iTimeZone, struGPSAlarm.dwDirection, struGPSAlarm.wSatellites, struGPSAlarm.wPrecision, struGPSAlarm.dwHeight, struGPSAlarm.dwGPSSeq, struGPSAlarm.wSpeed); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcessEventWithJsonData(WPARAM wParam, LPARAM lParam) { char szLan[64] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; DWORD dwBufLen = pAlarmDev->dwBufLen; int iChannelID = 0; if ((iDeviceIndex != -1) && !(g_struDeviceInfo[iDeviceIndex].bAlarm) && iDeviceIndex < MAX_DEVICES) { g_struDeviceInfo[iDeviceIndex].bAlarm = TRUE; ::PostMessage(g_pMainDlg->m_hWnd, WM_CHANGE_DEVICE_ITEM_IMAGE, WPARAM(g_pMainDlg->GetDeviceItem(iDeviceIndex)), LPARAM(iDeviceIndex)); } char szInfoBuf[128] = { 0 }; char* pCBBuf = new char[dwBufLen]; if (pCBBuf == NULL) { sprintf(szLan, "内存申请失败 EventJson dwBufLen:%d", dwBufLen); AddLog(iDeviceIndex, ALARM_INFO_T, szLan); return; } memcpy(pCBBuf, pAlarmInfo, dwBufLen); char *mfd = pCBBuf; //analysisJson(pCBBuf, g_struLocalParam.chPictureSavePath); char* boundary = get_boundary(pCBBuf); int contentLen = 0; int offsetLen = 0; int i = 0; while (1) { char *type, *content; mfd = mutipart_form_data(mfd, boundary, &type, &content, (dwBufLen - offsetLen), contentLen, offsetLen); if (mfd == NULL) { break; } // show //printf("name=\"%s\" content=\"%s\"\n"/*, name*/, content); //printf cJSON *root; root = cJSON_Parse(content); if (!root) { OutputDebugString("get json root failed !\n"); } else { cJSON *eventType = cJSON_GetObjectItem(root, "eventType"); if (!eventType) { OutputDebugString("get json eventType failed !\n"); cJSON *TargetList = cJSON_GetObjectItem(root, "Target"); if (TargetList != NULL) { int iCount = cJSON_GetArraySize(TargetList); /*获取数组长度*/ if (iCount > 0) { cJSON *Target = cJSON_GetArrayItem(TargetList, 0); if (Target != NULL) { cJSON *recognitionType = cJSON_GetObjectItem(Target, "recognitionType"); if (recognitionType != NULL) { sprintf(szInfoBuf, "Json format alarm recognitionType:[%s] Broken:[%d]", recognitionType->valuestring, g_bJSONBroken); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } } } } else { sprintf(szInfoBuf, "Json format alarm eventType:[%s]", eventType->valuestring); g_pMainDlg->AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } cJSON *channelID = cJSON_GetObjectItem(root, "channelID"); if (!channelID) { OutputDebugString("get json channelID failed !\n"); } else { iChannelID = channelID->valueint; } } if (root) { cJSON_Delete(root); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\%s[%d]_channel[%d]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort, iChannelID); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\%s_%d.%s", cFilename, chTime, i, type); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, content, contentLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < contentLen) { DWORD dwError = GetLastError(); //g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Face Snap Json Info Wtite to File Fail.System Error:%d, dwJsonDataLen:%d, WrittenBytes:%d ", dwError, struFaceSnap.dwJsonDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; free(type); free(content); if (mfd == NULL) { break; i = 0; } i++; } if (pCBBuf != NULL) { delete[] pCBBuf; pCBBuf = NULL; } if (boundary != NULL) { delete[] boundary; boundary = NULL; } } void CClientDemoDlg::ProcessEventWithJsonDataNoBoundary(WPARAM wParam, LPARAM lParam) { char szLan[64] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; //将报警内容写入文件 SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\%s.json", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, pAlarmInfo, pAlarmDev->dwBufLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < pAlarmDev->dwBufLen) { DWORD dwError = GetLastError(); //g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Face Snap Json Info Wtite to File Fail.System Error:%d, dwJsonDataLen:%d, WrittenBytes:%d ", dwError, struFaceSnap.dwJsonDataLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; } void CClientDemoDlg::ProFramesPeopleCounting(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_FRAMES_PEOPLE_COUNTING struFramesPeopleCounting = { 0 }; memcpy(&struFramesPeopleCounting, pAlarmInfo, sizeof(NET_DVR_FRAMES_PEOPLE_COUNTING)); g_StringLanType(szLan, "定制 单帧画面人数统计", "Frames People Counting Alarm"); sprintf(szInfoBuf, "%s: IPv4[%s] IPv6[%s] Port[%d] Channel[%d] IvmsChannel[%d] RelativeTime[%d] AbsTime[%d] PeopleCountingNum[%d]", \ szLan, struFramesPeopleCounting.struDevInfo.struDevIP.sIpV4, struFramesPeopleCounting.struDevInfo.struDevIP.byIPv6, struFramesPeopleCounting.struDevInfo.wPort, \ struFramesPeopleCounting.struDevInfo.byChannel, struFramesPeopleCounting.struDevInfo.byIvmsChannel, struFramesPeopleCounting.dwRelativeTime, struFramesPeopleCounting.dwAbsTime, struFramesPeopleCounting.dwPeopleCountingNum); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struFramesPeopleCounting.dwPicLen > 0 && struFramesPeopleCounting.pPicBuffer != NULL) { char cFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\[%s]", g_struLocalParam.chPictureSavePath, "[FramesPeopleCounting]"); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\FramesPeopleCounting[%s]_%d.txt", cFilename, chTime, rand() % GetTickCount()); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, struFramesPeopleCounting.pPicBuffer, struFramesPeopleCounting.dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struFramesPeopleCounting.dwPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Frames People Counting Info Wtite to File Fail.System Error:%d, dwJsonDataLen:%d, WrittenBytes:%d ", dwError, struFramesPeopleCounting.dwPicLen, dwWrittenBytes); } CloseHandle(hFile); hFile = NULL; delete[] struFramesPeopleCounting.pPicBuffer; struFramesPeopleCounting.pPicBuffer = NULL; } } void CClientDemoDlg::ProcessClusterAlarm(WPARAM wParam, LPARAM lParam) { char szLan[64] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; char* pCBBuf = new char[dwBufLen]; if (pCBBuf == NULL) { sprintf(szLan, "内存申请失败 EventCluster dwBufLen:%d", dwBufLen); AddLog(iDeviceIndex, ALARM_INFO_T, szLan); return; } memcpy(pCBBuf, pAlarmInfo, dwBufLen); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\%s.%s", g_struLocalParam.chPictureSavePath, chTime, "xml"); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, pCBBuf, dwBufLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < dwBufLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Cluster alarm Write to File Fail.System Error:%d, dwDataLen:%d, WrittenBytes:%d ", dwError, dwBufLen, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive Cluster Alarm.Check in saved files"); CloseHandle(hFile); hFile = NULL; if (pCBBuf != NULL) { delete[] pCBBuf; pCBBuf = NULL; } } void CClientDemoDlg::ProcISAPIAlarm(WPARAM wParam, LPARAM lParam) { //char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; int iPort = pAlarmDev->wLinkPort; NET_DVR_ALARM_ISAPI_INFO struISAPIAlarm = { 0 }; memcpy(&struISAPIAlarm, pAlarmInfo, sizeof(NET_DVR_ALARM_ISAPI_INFO)); g_StringLanType(szLan, "ISAPI报警上传", "ISAPI Alarm"); AddLog(iDeviceIndex, ALARM_INFO_T, szLan); SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); if (struISAPIAlarm.pAlarmData != NULL) { char cFilename[256] = { 0 }; char cExt[12] = { 0 }; char cSubFilename[256] = { 0 }; DWORD dwWrittenBytes = 0; sprintf(cFilename, "%s\\%s[%s][%d]", g_struLocalParam.chPictureSavePath, "ISAPIAlarmData", g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName, iPort); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } memcpy(cSubFilename, cFilename, 256); if (struISAPIAlarm.byDataType == 2) { sprintf(cExt, "%s", "json"); } else if (struISAPIAlarm.byDataType == 1) { sprintf(cExt, "%s", "xml"); } else { sprintf(cExt, "%s", "txt"); } // sprintf(cFilename, "%s\\ISAPI[%s]_%d.%s", cFilename, chTime, rand() % GetTickCount(), cExt); // // HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); // if (hFile == INVALID_HANDLE_VALUE) // { // return; // } // DWORD dwRet = WriteFile(hFile, struISAPIAlarm.pAlarmData, struISAPIAlarm.dwAlarmDataLen, &dwWrittenBytes, NULL); // if (dwRet == 0 || dwWrittenBytes < struISAPIAlarm.dwAlarmDataLen) // { // DWORD dwError = GetLastError(); // g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Frames People Counting Info Wtite to File Fail.System Error:%d, dwJsonDataLen:%d, WrittenBytes:%d ", dwError, struISAPIAlarm.dwAlarmDataLen, dwWrittenBytes); // } // CloseHandle(hFile); sprintf(cFilename, "%s\\%s.%s", cFilename, "COMM_ISAPI_ALARM", cExt); CFile file; if (!file.Open(cFilename, CFile::modeNoTruncate | CFile::modeCreate | CFile::modeReadWrite)) { return; } file.SeekToEnd(); file.Write(struISAPIAlarm.pAlarmData, struISAPIAlarm.dwAlarmDataLen); char szEnd[3] = { 0 }; szEnd[0] = '\r'; szEnd[1] = '\n'; file.Write(szEnd, strlen(szEnd)); file.Close(); if (struISAPIAlarm.pPicPackData != NULL) { int i = 0; while (i <= struISAPIAlarm.byPicturesNumber - 1) { DWORD dwWrittenBytes = 0; if (1 == ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].byPicType) { sprintf(cFilename, "%s\\PicData[%s]_%s_%d.jpg", cSubFilename, chTime, ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].szFilename, rand() % GetTickCount()); } else { sprintf(cFilename, "%s\\PicData[%s]_%s_%d.dat", cSubFilename, chTime, ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].szFilename, rand() % GetTickCount()); } HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwRet = WriteFile(hFile, ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].pPicData, ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].dwPicLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].dwPicLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Frames People Counting Info Wtite to File Fail.System Error:%d, dwJsonDataLen:%d, WrittenBytes:%d ", dwError, ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].dwPicLen, dwWrittenBytes); } CloseHandle(hFile); delete ((NET_DVR_ALARM_ISAPI_PICDATA *)struISAPIAlarm.pPicPackData)[i].pPicData; i++; } delete struISAPIAlarm.pPicPackData; } delete struISAPIAlarm.pAlarmData; } } void CClientDemoDlg::OnMenuSearchAlarm() { // TODO: 在此添加命令处理程序代码 CDlgAlarmInfo dlg; dlg.m_iDevIndex = GetCurDeviceIndex(); dlg.m_lServerID = g_struDeviceInfo[dlg.m_iDevIndex].lLoginID; dlg.DoModal(); } void CClientDemoDlg::ProcHeatMapResultPDC(WPARAM wParam, LPARAM lParam)//热度图按人数统计数据上传事件 2018-06-05 { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char szAlarmType[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_HEATMAP_RESULT_PDC struHeatMapResult = { 0 }; memset(&struHeatMapResult, 0, sizeof(NET_DVR_HEATMAP_RESULT_PDC)); memcpy(&struHeatMapResult, pAlarmInfo, sizeof(NET_DVR_HEATMAP_RESULT_PDC)); sprintf(cFilename, "No heat map"); int iArrayUnitType = struHeatMapResult.byArrayUnitType; for (int i = 0; i < 2; i++) { if (struHeatMapResult.struSingleHeatMap[i].wArrayColumn > 0 && struHeatMapResult.struSingleHeatMap[i].wArrayLine > 0 && struHeatMapResult.struSingleHeatMap[i].pBuffer != NULL) { sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\HeatMapValue_%d_[%s].txt", cFilename, i, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struHeatMapResult.struSingleHeatMap[i].pBuffer, struHeatMapResult.struSingleHeatMap[i].wArrayColumn*struHeatMapResult.struSingleHeatMap[i].wArrayLine, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } g_StringLanType(szLan, "热度图按人数统计报警", "Heat Map Result PDC"); sprintf(szInfoBuf, "%s:[IP:%s Port:%d Channel:%d IvmsChannel:%d StartTime%d-%d-%d %d:%d:%d EndTime:%d-%d-%d %d:%d:%d BrokenNetHttp:%d] IvmsChannelEx[%d] CurNumber[%d] LeaveNumber[%d] SingleHeatMap[0]:ArrayLine:%d ArrayColumn:%d MaxHeatMapValue:%d MinHeatMapValue:%d TimeHeatMapValue:%d\ SingleHeatMap[1]:ArrayLine:%d ArrayColumn:%d MaxHeatMapValue:%d MinHeatMapValue:%d TimeHeatMapValue:%d ArrayUnitType:%d\n", \ szLan, struHeatMapResult.struDevInfo.struDevIP.sIpV4, struHeatMapResult.struDevInfo.wPort, struHeatMapResult.struDevInfo.byChannel, \ struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.struStartTime.wYear, struHeatMapResult.struStartTime.byMonth, \ struHeatMapResult.struStartTime.byDay, struHeatMapResult.struStartTime.byHour, struHeatMapResult.struStartTime.byMinute, \ struHeatMapResult.struStartTime.bySecond, struHeatMapResult.struEndTime.wYear, struHeatMapResult.struEndTime.byMonth, struHeatMapResult.struEndTime.byDay, \ struHeatMapResult.struEndTime.byHour, struHeatMapResult.struEndTime.byMinute, struHeatMapResult.struEndTime.bySecond, struHeatMapResult.byBrokenNetHttp, struHeatMapResult.wDevInfoIvmsChannelEx, struHeatMapResult.wCurNumber, struHeatMapResult.wLeaveNumber, \ struHeatMapResult.struSingleHeatMap[0].wArrayLine, struHeatMapResult.struSingleHeatMap[0].wArrayColumn, struHeatMapResult.struSingleHeatMap[0].dwMaxHeatMapValue, struHeatMapResult.struSingleHeatMap[0].dwMinHeatMapValue, struHeatMapResult.struSingleHeatMap[0].dwTimeHeatMapValue, \ struHeatMapResult.struSingleHeatMap[1].wArrayLine, struHeatMapResult.struSingleHeatMap[1].wArrayColumn, struHeatMapResult.struSingleHeatMap[1].dwMaxHeatMapValue, struHeatMapResult.struSingleHeatMap[1].dwMinHeatMapValue, struHeatMapResult.struSingleHeatMap[1].dwTimeHeatMapValue, \ struHeatMapResult.byArrayUnitType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcHeatMapResultDuration(WPARAM wParam, LPARAM lParam)//热度图按人员停留时间统计数据上传事件 2018-06-05 { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char szAlarmType[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_HEATMAP_RESULT struHeatMapResult = { 0 }; memset(&struHeatMapResult, 0, sizeof(NET_DVR_HEATMAP_RESULT)); memcpy(&struHeatMapResult, pAlarmInfo, sizeof(NET_DVR_HEATMAP_RESULT)); sprintf(cFilename, "No heat map"); if (struHeatMapResult.wArrayColumn > 0 && struHeatMapResult.wArrayLine > 0 && struHeatMapResult.pBuffer != NULL) { sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\HeatMapValue[%s].txt", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, struHeatMapResult.pBuffer, struHeatMapResult.wArrayColumn*struHeatMapResult.wArrayLine*struHeatMapResult.byArrayUnitType, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } g_StringLanType(szLan, "热度图按人员停留时间报警", "Heat Map Duration Result"); sprintf(szInfoBuf, "%s:[IP:%s Port:%d Channel:%d IvmsChannel:%d StartTime%d-%d-%d %d:%d:%d EndTime:%d-%d-%d %d:%d:%d ArrayLine:%d ArrayColumn:%d HeatMapPath:%s \ MaxHeatMapValue:%d MinHeatMapValue:%d TimeHeatMapValue:%d DetSceneID:%d BrokenNetHttp:%dIvmsChannel[%d]IvmsChannelEx[%d]TotalTime[%d]]ArrayUnitType[%d]n", \ szLan, struHeatMapResult.struDevInfo.struDevIP.sIpV4, struHeatMapResult.struDevInfo.wPort, struHeatMapResult.struDevInfo.byChannel, \ struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.struStartTime.wYear, struHeatMapResult.struStartTime.byMonth, \ struHeatMapResult.struStartTime.byDay, struHeatMapResult.struStartTime.byHour, struHeatMapResult.struStartTime.byMinute, \ struHeatMapResult.struStartTime.bySecond, struHeatMapResult.struEndTime.wYear, struHeatMapResult.struEndTime.byMonth, struHeatMapResult.struEndTime.byDay, \ struHeatMapResult.struEndTime.byHour, struHeatMapResult.struEndTime.byMinute, struHeatMapResult.struEndTime.bySecond, struHeatMapResult.wArrayLine, \ struHeatMapResult.wArrayColumn, cFilename, struHeatMapResult.dwMaxHeatMapValue, struHeatMapResult.dwMinHeatMapValue, struHeatMapResult.dwTimeHeatMapValue, \ struHeatMapResult.byDetSceneID, struHeatMapResult.byBrokenNetHttp, struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.wDevInfoIvmsChannelEx, struHeatMapResult.dwTotalTime, \ struHeatMapResult.byArrayUnitType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcHeatMapResultIntersection(WPARAM wParam, LPARAM lParam)//路口分析热度值结果上传 2018-06-05 { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char szAlarmType[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_DVR_HEATMAP_RESULT struHeatMapResult = { 0 }; memset(&struHeatMapResult, 0, sizeof(NET_DVR_HEATMAP_RESULT)); memcpy(&struHeatMapResult, pAlarmInfo, sizeof(NET_DVR_HEATMAP_RESULT)); if (struHeatMapResult.wArrayColumn > 0 && struHeatMapResult.wArrayLine > 0 && struHeatMapResult.pBuffer != NULL) { char szIntersectionValueBuf[1024] = { 0 }; int iLine = 65; int iColumn = 65; for (int i = 0; i < struHeatMapResult.wArrayLine; i++) { //先在第一行打印A-J if (i == 0) { sprintf(szIntersectionValueBuf, " "); for (int k = 0; k < struHeatMapResult.wArrayColumn; k++) { sprintf(szIntersectionValueBuf, "%s %c ", szIntersectionValueBuf, iLine); iLine++; } sprintf(szIntersectionValueBuf, "%s\r\n", szIntersectionValueBuf); } //打印每一行数据,数据之前会先打印一个字母 for (int j = 0; j < struHeatMapResult.wArrayColumn; j++) { if (j == 0) { sprintf(szIntersectionValueBuf, "%s%c ", szIntersectionValueBuf, iColumn); iColumn++; } sprintf(szIntersectionValueBuf, "%s %d |", szIntersectionValueBuf, *(struHeatMapResult.pBuffer + (i*struHeatMapResult.wArrayColumn + j)*struHeatMapResult.byArrayUnitType)); } sprintf(szIntersectionValueBuf, "%s\r\n", szIntersectionValueBuf); } sprintf(szIntersectionValueBuf, "%s StartTime%d-%d-%d %d:%d:%d EndTime:%d-%d-%d %d:%d:%d", szIntersectionValueBuf, \ struHeatMapResult.struStartTime.wYear, struHeatMapResult.struStartTime.byMonth, struHeatMapResult.struStartTime.byDay, \ struHeatMapResult.struStartTime.byHour, struHeatMapResult.struStartTime.byMinute,struHeatMapResult.struStartTime.bySecond, \ struHeatMapResult.struEndTime.wYear, struHeatMapResult.struEndTime.byMonth, struHeatMapResult.struEndTime.byDay, \ struHeatMapResult.struEndTime.byHour, struHeatMapResult.struEndTime.byMinute, struHeatMapResult.struEndTime.bySecond); sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\HeatMapResultIntersectionValue[%s].txt", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } WriteFile(hFile, szIntersectionValueBuf, sizeof(szIntersectionValueBuf), &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } g_StringLanType(szLan, "路口分析热度值报警", "Heat Map Result Intersection"); sprintf(szInfoBuf, "%s:[IP:%s Port:%d Channel:%d IvmsChannel:%d StartTime%d-%d-%d %d:%d:%d EndTime:%d-%d-%d %d:%d:%d ArrayLine:%d ArrayColumn:%d HeatMapPath:%s \ MaxHeatMapValue:%d MinHeatMapValue:%d TimeHeatMapValue:%d DetSceneID:%d BrokenNetHttp:%dIvmsChannel[%d]IvmsChannelEx[%d]ArrayUnitType[%d]\n", \ szLan, struHeatMapResult.struDevInfo.struDevIP.sIpV4, struHeatMapResult.struDevInfo.wPort, struHeatMapResult.struDevInfo.byChannel, \ struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.struStartTime.wYear, struHeatMapResult.struStartTime.byMonth, \ struHeatMapResult.struStartTime.byDay, struHeatMapResult.struStartTime.byHour, struHeatMapResult.struStartTime.byMinute, \ struHeatMapResult.struStartTime.bySecond, struHeatMapResult.struEndTime.wYear, struHeatMapResult.struEndTime.byMonth, struHeatMapResult.struEndTime.byDay, \ struHeatMapResult.struEndTime.byHour, struHeatMapResult.struEndTime.byMinute, struHeatMapResult.struEndTime.bySecond, struHeatMapResult.wArrayLine, \ struHeatMapResult.wArrayColumn, cFilename, struHeatMapResult.dwMaxHeatMapValue, struHeatMapResult.dwMinHeatMapValue, struHeatMapResult.dwTimeHeatMapValue, \ struHeatMapResult.byDetSceneID, struHeatMapResult.byBrokenNetHttp, struHeatMapResult.struDevInfo.byIvmsChannel, struHeatMapResult.wDevInfoIvmsChannelEx, \ struHeatMapResult.byArrayUnitType); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcAIOPVideo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; NET_AIOP_VIDEO_HEAD struHead = { 0 }; memset(&struHead, 0, sizeof(NET_AIOP_VIDEO_HEAD)); memcpy(&struHead, pAlarmInfo, sizeof(NET_AIOP_VIDEO_HEAD)); g_StringLanType(szLan, "AI开放平台接入,上传视频检测数据", "AIOP_VIDEO"); sprintf(szInfoBuf, "%s:channel:%d,Time:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d, TaskID:%s, AIOPDataSize:%d, PictureSize:%d, MPID[%s] PresetIndex[%d]\n", \ szLan, struHead.dwChannel, struHead.struTime.wYear, struHead.struTime.wMonth, struHead.struTime.wDay, \ struHead.struTime.wHour, struHead.struTime.wMinute, struHead.struTime.wSecond, struHead.struTime.wMilliSec, \ struHead.szTaskID, struHead.dwAIOPDataSize, struHead.dwPictureSize, struHead.szMPID,struHead.dwPresetIndex); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struHead.dwAIOPDataSize > 0 && struHead.pBufferAIOPData != NULL) { sprintf(cFilename, "%s\\%s[AIOPVideo]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_DATA[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferAIOPData, struHead.dwAIOPDataSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwAIOPDataSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPVideo alarm Write to File Fail.System Error:%d, dwAIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwAIOPDataSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_DATA file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } if (struHead.dwPictureSize > 0 && struHead.pBufferPicture != NULL&&struHead.byPictureMode == 0) { sprintf(cFilename, "%s\\%s[AIOPVideo]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_Pic[%s].jpg", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferPicture, struHead.dwPictureSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwPictureSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPVideo alarm Write to File Fail.System Error:%d, PictureSize:%d, WrittenBytes:%d ", dwError, struHead.dwPictureSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_Pic.Check in saved files"); CloseHandle(hFile); hFile = NULL; } else if (struHead.dwPictureSize > 0 && struHead.pBufferPicture != NULL&&struHead.byPictureMode == 1) { sprintf(cFilename, "%s\\%s[AIOPVideo]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOPVideo_URL_PIC[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferPicture, struHead.dwPictureSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwPictureSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingVideo alarm Write to File Fail.System Error:%d, AIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwPictureSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_URL_Pic.Check in saved files"); CloseHandle(hFile); hFile = NULL; } } void CClientDemoDlg::ProcAIOPPicture(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; NET_AIOP_PICTURE_HEAD struHead = { 0 }; memset(&struHead, 0, sizeof(NET_AIOP_PICTURE_HEAD)); memcpy(&struHead, pAlarmInfo, sizeof(NET_AIOP_PICTURE_HEAD)); g_StringLanType(szLan, "AI开放平台接入,上传图片检测数据", "AIOP_PICTURE"); sprintf(szInfoBuf, "%s:Time:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d, AIOPDataSize:%d, Status:%d, MPID:%s PresetIndex[%d]\n", \ szLan, struHead.struTime.wYear, struHead.struTime.wMonth, struHead.struTime.wDay, \ struHead.struTime.wHour, struHead.struTime.wMinute, struHead.struTime.wSecond, struHead.struTime.wMilliSec, \ struHead.dwAIOPDataSize, struHead.byStatus, struHead.szMPID, struHead.dwPresetIndex); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struHead.dwAIOPDataSize > 0 && struHead.pBufferAIOPData != NULL) { sprintf(cFilename, "%s\\%s[AIOPPic]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_DATA[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferAIOPData, struHead.dwAIOPDataSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwAIOPDataSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPicture alarm Write to File Fail.System Error:%d, AIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwAIOPDataSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_DATA file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } } void CClientDemoDlg::ProcTrafficCollect(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char szAlarmType[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; NET_ITS_TRAFFIC_COLLECT struCollect = { 0 }; memset(&struCollect, 0, sizeof(NET_ITS_TRAFFIC_COLLECT)); memcpy(&struCollect, pAlarmInfo, sizeof(NET_ITS_TRAFFIC_COLLECT)); g_StringLanType(szLan, "Traffic Collect", "Traffic Collect"); sprintf(szInfoBuf, "%s:dwSize[%d],byMonitoringSiteID[%s],byDeviceID[%s],byLaneNum[%d],byDir[%d],byDetectType[%d],dwChannel[%d],struStartTime[%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d],dwSamplePeriod[%d]", \ szLan, struCollect.dwSize, struCollect.byMonitoringSiteID, struCollect.byDeviceID, struCollect.byLaneNum, struCollect.byDir, struCollect.byDetectType, struCollect.dwChannel, struCollect.struStartTime.wYear, struCollect.struStartTime.wMonth, struCollect.struStartTime.wDay, struCollect.struStartTime.wHour, struCollect.struStartTime.wMinute, struCollect.struStartTime.wSecond, struCollect.struStartTime.wMilliSec); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); for (int i = 0; i < 6; ++i) { sprintf(szInfoBuf, "struDriveChan[%d]:byDriveChan[%d],wCarFlux[%d],wPasserbyFlux[%d],wShayFlux[%d],fAverOccpancy[%f],wAverSpeed[%d],wAverCarDis[%d]", \ i, struCollect.struDriveChan[i].byDriveChan, struCollect.struDriveChan[i].wCarFlux, struCollect.struDriveChan[i].wPasserbyFlux, struCollect.struDriveChan[i].wShayFlux, struCollect.struDriveChan[i].fAverOccpancy, struCollect.struDriveChan[i].wAverSpeed, struCollect.struDriveChan[i].wAverCarDis); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } } void CClientDemoDlg::ProcessVcaDbdAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "VcaDbdAlarm", "VcaDbdAlarm"); NET_DVR_DBD_ALRAM_INFO struAlarmInfo = { 0 }; memset(&struAlarmInfo, 0, sizeof(struAlarmInfo)); memcpy(&struAlarmInfo, pAlarmInfo, sizeof(struAlarmInfo)); sprintf(szInfoBuf, "%s uSize[%d],byChannel[%d],byLevel[%d],struIpcInfo{struDevIP[%s],wPort[%d],byChannel[%d]},\ struPosInfo{bValid[%d],uLongitude[%d],uLatitude[%d],dwAltitude[%d],uVehicleSpeed[%d],uVehicleDirection[%d]},\ struPicInfo{uPicType[%d],uPicLen[%d],uTime[%d]},\ struAlarmState{bySmoke[%d],byPhone[%d],byTiredDriving[%d],byNoVisualFront[%d],byNoHead[%d],byWithoutBelt[%d],byPickingUpThing[%d],byYawn[%d],byEatOrDrink[%d],byChatting[%d],byTampering[%d],byWithoutUniform[%d]}", szLan, struAlarmInfo.dwSize, struAlarmInfo.byChannel, struAlarmInfo.byLevel, struAlarmInfo.struIpcInfo.struDevIP.sIpV4, struAlarmInfo.struIpcInfo.wPort, struAlarmInfo.struIpcInfo.byChannel, struAlarmInfo.struPosInfo.bValid, struAlarmInfo.struPosInfo.dwLongitude, struAlarmInfo.struPosInfo.dwLatitude, struAlarmInfo.struPosInfo.dwAltitude, struAlarmInfo.struPosInfo.dwVehicleSpeed, struAlarmInfo.struPosInfo.dwVehicleDirection, struAlarmInfo.struPicInfo.dwPicType, struAlarmInfo.struPicInfo.dwPicLen, struAlarmInfo.struPicInfo.dwTime, struAlarmInfo.struAlarmState.bySmoke, struAlarmInfo.struAlarmState.byPhone, struAlarmInfo.struAlarmState.byTiredDriving, struAlarmInfo.struAlarmState.byNoVisualFront, struAlarmInfo.struAlarmState.byNoHead, struAlarmInfo.struAlarmState.byWithoutBelt, struAlarmInfo.struAlarmState.byPickingUpThing, struAlarmInfo.struAlarmState.byYawn, struAlarmInfo.struAlarmState.byEatOrDrink, struAlarmInfo.struAlarmState.byChatting, struAlarmInfo.struAlarmState.byTampering, struAlarmInfo.struAlarmState.byWithoutUniform); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); //保存图片和视频 char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); do{ if (struAlarmInfo.struPicInfo.dwPicLen > 0 && struAlarmInfo.struPicInfo.pPicBuf != NULL) { sprintf(cFilename, "%s\\VCA_DBD[%s].jpg", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } WriteFile(hFile, struAlarmInfo.struPicInfo.pPicBuf, struAlarmInfo.struPicInfo.dwPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAlarmInfo.struPicInfo.dwVideoLen > 0 && struAlarmInfo.struPicInfo.pVideoBuf != NULL) { sprintf(cFilename, "%s\\VCA_DBD[%s].mp4", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } WriteFile(hFile, struAlarmInfo.struPicInfo.pVideoBuf, struAlarmInfo.struPicInfo.dwVideoLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } while (0); if (struAlarmInfo.struPicInfo.pPicBuf != NULL) { delete[]struAlarmInfo.struPicInfo.pPicBuf; struAlarmInfo.struPicInfo.pPicBuf = NULL; } if (struAlarmInfo.struPicInfo.pVideoBuf != NULL) { delete[]struAlarmInfo.struPicInfo.pVideoBuf; struAlarmInfo.struPicInfo.pVideoBuf = NULL; } } void CClientDemoDlg::ProcessVcaAdasAlarm(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "VcaAdasAlarm", "VcaAdasAlarm"); NET_DVR_ADAS_ALRAM_INFO struAlarmInfo = { 0 }; memset(&struAlarmInfo, 0, sizeof(struAlarmInfo)); memcpy(&struAlarmInfo, pAlarmInfo, sizeof(struAlarmInfo)); sprintf(szInfoBuf, "%s uSize[%d],byChannel[%d],struIpcInfo{struDevIP[%s],wPort[%d],byChannel[%d]},\ struPosInfo{bValid[%d],uLongitude[%d],uLatitude[%d],dwAltitude[%d],uVehicleSpeed[%d],uVehicleDirection[%d]},\ struPicInfo{uPicType[%d],uPicLen[%d],uTime[%d]},\ struAlarmState{fcw[%d],ldw[%d],hmw[%d],pcw[%d],bsd[%d]}", szLan, struAlarmInfo.dwSize, struAlarmInfo.byChannel, struAlarmInfo.struIpcInfo.struDevIP.sIpV4, struAlarmInfo.struIpcInfo.wPort, struAlarmInfo.struIpcInfo.byChannel, struAlarmInfo.struPosInfo.dwValid, struAlarmInfo.struPosInfo.dwLongitude, struAlarmInfo.struPosInfo.dwLatitude, struAlarmInfo.struPosInfo.dwAltitude, struAlarmInfo.struPosInfo.dwVehicleSpeed, struAlarmInfo.struPosInfo.dwVehicleDirection, struAlarmInfo.struPicInfo.dwPicType, struAlarmInfo.struPicInfo.dwPicLen, struAlarmInfo.struPicInfo.dwTime, struAlarmInfo.struAlarmState.dwFcw, struAlarmInfo.struAlarmState.dwLdw, struAlarmInfo.struAlarmState.dwHmw, struAlarmInfo.struAlarmState.dwPcw, struAlarmInfo.struAlarmState.dwBsd); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); //保存图片和视频 char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, pAlarmDev->sDeviceIP); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); do{ if (struAlarmInfo.struPicInfo.dwPicLen > 0 && struAlarmInfo.struPicInfo.pPicBuf != NULL) { sprintf(cFilename, "%s\\VCA_ADAS[%s].jpg", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } WriteFile(hFile, struAlarmInfo.struPicInfo.pPicBuf, struAlarmInfo.struPicInfo.dwPicLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } if (struAlarmInfo.struPicInfo.dwVideoLen > 0 && struAlarmInfo.struPicInfo.pVideoBuf != NULL) { sprintf(cFilename, "%s\\VCA_ADAS[%s].mp4", cFilename, chTime); HANDLE hFile; DWORD dwReturn = 0; hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { break; } WriteFile(hFile, struAlarmInfo.struPicInfo.pVideoBuf, struAlarmInfo.struPicInfo.dwVideoLen, &dwReturn, NULL); CloseHandle(hFile); hFile = NULL; } } while (0); if (struAlarmInfo.struPicInfo.pPicBuf != NULL) { delete[]struAlarmInfo.struPicInfo.pPicBuf; struAlarmInfo.struPicInfo.pPicBuf = NULL; } if (struAlarmInfo.struPicInfo.pVideoBuf != NULL) { delete[]struAlarmInfo.struPicInfo.pVideoBuf; struAlarmInfo.struPicInfo.pVideoBuf = NULL; } } void CClientDemoDlg::ProcessVehRealtimeInfo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[2048] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; char szLan[128] = { 0 }; g_StringLanType(szLan, "VehRealtimeInfo", "VehRealtimeInfo"); NET_DVR_VEH_REALTIME_DATA_INFO struVehRealtimeInfo = { 0 }; memset(&struVehRealtimeInfo, 0, sizeof(struVehRealtimeInfo)); memcpy(&struVehRealtimeInfo, pAlarmInfo, sizeof(struVehRealtimeInfo)); sprintf(szInfoBuf, "%s dwSize[%d],dwSpeedValue[%d],dwSpeedPulse[%d],byUpgPercent[%d],dwVideoLostChans[%d]", szLan, struVehRealtimeInfo.dwSize, struVehRealtimeInfo.dwSpeedValue, struVehRealtimeInfo.dwSpeedPulse, struVehRealtimeInfo.byUpgPercent, struVehRealtimeInfo.dwVideoLostChans); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); } void CClientDemoDlg::ProcessSubCribeEvent(WPARAM wParam, LPARAM lParam) { char szLan[64] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); char cFilename[256] = { 0 }; sprintf(cFilename, "%s\\%s", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } sprintf(cFilename, "%s\\%s.xml", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, pAlarmInfo, pAlarmDev->dwBufLen, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < dwBufLen) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "Subscribe failed event info Write to File Fail.System Error:%d, dwDataLen:%d, WrittenBytes:%d ", dwError, dwBufLen, dwWrittenBytes); } g_StringLanType(szLan, "订阅失败信息返回", "Subscribe failed event info"); AddLog(iDeviceIndex, ALARM_INFO_T, szLan); CloseHandle(hFile); hFile = NULL; } void CClientDemoDlg::ProcAIOPPollingSnap(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; NET_AIOP_POLLING_SNAP_HEAD struHead = { 0 }; memset(&struHead, 0, sizeof(NET_AIOP_POLLING_SNAP_HEAD)); memcpy(&struHead, pAlarmInfo, sizeof(NET_AIOP_POLLING_SNAP_HEAD)); g_StringLanType(szLan, "AI开放平台接入,上传轮巡抓图图片检测数据", "AIOP_POLLING_SNAP"); sprintf(szInfoBuf, "%s:Time:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d, channel:%d,TadkID:%s, AIOPDataSize:%d, MPID:%s PresetIndex[%d]\r", \ szLan, struHead.struTime.wYear, struHead.struTime.wMonth, struHead.struTime.wDay, \ struHead.struTime.wHour, struHead.struTime.wMinute, struHead.struTime.wSecond, struHead.struTime.wMilliSec, \ struHead.dwChannel, struHead.szTaskID, struHead.dwAIOPDataSize, struHead.szMPID,struHead.dwPresetIndex); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struHead.dwAIOPDataSize > 0 && struHead.pBufferAIOPData != NULL) { sprintf(cFilename, "%s\\%s[AIOPPollingSnap]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_DATA[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferAIOPData, struHead.dwAIOPDataSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwAIOPDataSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingSnap alarm Write to File Fail.System Error:%d, AIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwAIOPDataSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_DATA file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } if (struHead.dwPictureSize > 0 && struHead.pBufferPicture != NULL&&struHead.byPictureMode==0) { sprintf(cFilename, "%s\\%s[AIOPPollingSnap]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_POLLING_PICTURE[%s].jpg", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferPicture, struHead.dwPictureSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwAIOPDataSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingSnap alarm Write to File Fail.System Error:%d, PictureSize:%d, WrittenBytes:%d ", dwError, struHead.dwPictureSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_POLLING_PICTURE file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } else if (struHead.dwPictureSize > 0 && struHead.pBufferPicture != NULL&&struHead.byPictureMode == 1) { sprintf(cFilename, "%s\\%s[AIOPPollingSnap]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOPPollingSnap_URL_PIC[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferPicture, struHead.dwPictureSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwPictureSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingVideo alarm Write to File Fail.System Error:%d, AIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwPictureSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_POLLING_URL_PICTURE file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } } void CClientDemoDlg::ProcAIOPPollingVideo(WPARAM wParam, LPARAM lParam) { char szInfoBuf[1024] = { 0 }; char szLan[128] = { 0 }; char cFilename[256] = { 0 }; LPLOCAL_ALARM_INFO pAlarmDev = (LPLOCAL_ALARM_INFO)(wParam); char *pAlarmInfo = (char *)(lParam); int iDeviceIndex = pAlarmDev->iDeviceIndex; DWORD dwBufLen = pAlarmDev->dwBufLen; NET_AIOP_POLLING_VIDEO_HEAD struHead = { 0 }; memset(&struHead, 0, sizeof(NET_AIOP_POLLING_VIDEO_HEAD)); memcpy(&struHead, pAlarmInfo, sizeof(NET_AIOP_POLLING_VIDEO_HEAD)); g_StringLanType(szLan, "AI开放平台接入,上传视频轮训检测数据", "AIOP_POLLING_VIDEO"); sprintf(szInfoBuf, "%s:Time:%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d, channel:%d, TaskID:%s,AIOPDataSize:%d, PictureSize:%d, MPID:%s PresetIndex[%d]\n", \ szLan, struHead.struTime.wYear, struHead.struTime.wMonth, struHead.struTime.wDay, \ struHead.struTime.wHour, struHead.struTime.wMinute, struHead.struTime.wSecond, struHead.struTime.wMilliSec, \ struHead.dwChannel, struHead.szTaskID, struHead.dwAIOPDataSize, struHead.dwPictureSize, struHead.szMPID,struHead.dwPresetIndex); AddLog(iDeviceIndex, ALARM_INFO_T, szInfoBuf); if (struHead.dwAIOPDataSize > 0 && struHead.pBufferAIOPData != NULL) { sprintf(cFilename, "%s\\%s[AIOPPollingVideo]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_DATA[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferAIOPData, struHead.dwAIOPDataSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwAIOPDataSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingVideo alarm Write to File Fail.System Error:%d, AIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwAIOPDataSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_DATA file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } if (struHead.dwPictureSize > 0 && struHead.pBufferPicture != NULL&&struHead.byPictureMode==0) { sprintf(cFilename, "%s\\%s[AIOPPollingVideo]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOP_POLLING_VIDEO[%s].jpg", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferPicture, struHead.dwPictureSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwAIOPDataSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingVideo alarm Write to File Fail.System Error:%d, AIOPPollingPictureSize:%d, WrittenBytes:%d ", dwError, struHead.dwPictureSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_POLLING_VIDEO file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } else if (struHead.dwPictureSize > 0 && struHead.pBufferPicture != NULL&&struHead.byPictureMode == 1) { sprintf(cFilename, "%s\\%s[AIOPPollingVideo]", g_struLocalParam.chPictureSavePath, g_struDeviceInfo[iDeviceIndex].chDeviceIPInFileName); if (GetFileAttributes(cFilename) != FILE_ATTRIBUTE_DIRECTORY) { CreateDirectory(cFilename, NULL); } SYSTEMTIME t; GetLocalTime(&t); char chTime[128]; sprintf(chTime, "%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d%3.3d", t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond, t.wMilliseconds); sprintf(cFilename, "%s\\AIOPPollingVideo_URL_PIC[%s].txt", cFilename, chTime); HANDLE hFile = CreateFile(cFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { return; } DWORD dwWrittenBytes = 0; DWORD dwRet = WriteFile(hFile, struHead.pBufferPicture, struHead.dwPictureSize, &dwWrittenBytes, NULL); if (dwRet == 0 || dwWrittenBytes < struHead.dwPictureSize) { DWORD dwError = GetLastError(); g_pMainDlg->AddLog(iDeviceIndex, OPERATION_FAIL_T, "AIOPPollingVideo alarm Write to File Fail.System Error:%d, AIOPDataSize:%d, WrittenBytes:%d ", dwError, struHead.dwPictureSize, dwWrittenBytes); } AddLog(iDeviceIndex, ALARM_INFO_T, "Receive AIOP_DATA file.Check in saved files"); CloseHandle(hFile); hFile = NULL; } }
[ "yyj8209@163.com" ]
yyj8209@163.com
ec8e715cb0a16d43dd690c92d1c69168e966752d
cd4dc874e9b5bcd6a9436ed383dc775af4868380
/CPPProjects/RectangleSum.cpp
1699fbeb6b920c7ffb9a03a33867501ae475e1cd
[ "MIT" ]
permissive
RafiulIslamRafi/ContestNeko
fcd5969f6b7fa9307d5f28ee1505f2210a603eb4
4dd7867e5bae92a3d60569a4aac9b894a4855fba
refs/heads/master
2020-06-12T12:07:13.209347
2018-09-08T06:08:05
2018-09-08T06:08:05
194,293,411
2
0
MIT
2019-06-28T15:10:59
2019-06-28T15:10:58
null
UTF-8
C++
false
false
7,935
cpp
#define LOGLEVEL 0 #define NDEBUG // BEGIN CUT HERE #define LOGLEVEL 1 // END CUT HERE #include <cstdio> #include <algorithm> #include <cstring> #include <cassert> #include <iostream> #include <vector> #include <map> #include <set> #include <cmath> #include <cstdlib> #include <array> #include <type_traits> #include <queue> #include <stack> #include <functional> #include <sstream> #include <unordered_set> #include <unordered_map> #include <deque> #include <climits> #include <cfloat> #include <random> using namespace std; #define LOG(l, x) if (l <= LOGLEVEL) cout << x << endl #define int64 long long #define repeat(x) for (auto repeat_var = 0; repeat_var < x; ++repeat_var) #define for_inc(i, x) for (auto i = 0; i < x; ++i) #define for_dec(i, x) for (auto i = x - 1; i >= 0; --i) #define for_inc_range(i, x, y) for (auto i = x; i <= y; ++i) #define for_dec_range(i, x, y) for (auto i = x; i >= y; --i) #define fill0(x) memset(x, 0, sizeof(x)) #define INT_INF ((int)2E9L) #define INT64_INF ((int64)1E18L) #define MOD 1000000007 template <class T> class RectangleSum { vector<vector<T>> sum; vector<vector<T>> a; bool built; int nRow, nCol; public: RectangleSum(int nRow, int nCol) { this->nRow = nRow; this->nCol = nCol; sum.resize(nRow + 1); for_inc_range(i, 0, nRow) sum[i].resize(nCol + 1); a.resize(nRow + 1); for_inc_range(i, 0, nRow) a[i].resize(nCol + 1); built = false; } void set(int r, int c, T v) { a[r][c] = v; built = false; } void build() { for_inc_range(r, 1, nRow) for_inc_range(c, 1, nCol) { sum[r][c] = sum[r][c - 1] + sum[r - 1][c] - sum[r - 1][c - 1] + a[r][c]; } built = true; } T getSum(int r1, int c1, int r2, int c2) const { assert(built); return sum[r2][c2] - sum[r1 -1][c2] - sum[r2][c1 - 1] + sum[r1 - 1][c1 - 1]; } }; // SRM636 - P1 class ChocolateDividingEasy { public: int findBest( vector <string> a ) { int nRow = (int) a.size(); int nCol = (int) a[0].size(); RectangleSum<int> sum(nRow, nCol); for_inc_range(r, 1, nRow) for_inc_range(c, 1, nCol) sum.set(r, c, a[r - 1][c - 1] - '0'); sum.build(); int best = 0; for_inc_range(cutR1, 1, nRow - 1) { for_inc_range(cutR2, cutR1 + 1, nRow - 1) { for_inc_range(cutC1, 1, nCol - 1) { for_inc_range(cutC2, cutC1 + 1, nCol - 1) { vector<int> r1s = {1, cutR1 + 1, cutR2 + 1}; vector<int> r2s = {cutR1, cutR2, nRow}; vector<int> c1s = {1, cutC1 + 1, cutC2 + 1}; vector<int> c2s = {cutC1, cutC2, nCol}; int ans = INT_INF; for_inc(id1, 3) { for_inc(id2, 3) { int cur = sum.getSum(r1s[id1], c1s[id2], r2s[id1], c2s[id2]); ans = min(ans, cur); } } best = max(best, ans); } } } } return best; } }; // BEGIN CUT HERE #include <cstdio> #include <ctime> #include <iostream> #include <string> #include <vector> namespace moj_harness { using std::string; using std::vector; int run_test_case(int); void run_test(int casenum = -1, bool quiet = false) { if (casenum != -1) { if (run_test_case(casenum) == -1 && !quiet) { std::cerr << "Illegal input! Test case " << casenum << " does not exist." << std::endl; } return; } int correct = 0, total = 0; for (int i=0;; ++i) { int x = run_test_case(i); if (x == -1) { if (i >= 100) break; continue; } correct += x; ++total; } if (total == 0) { std::cerr << "No test cases run." << std::endl; } else if (correct < total) { std::cerr << "Some cases FAILED (passed " << correct << " of " << total << ")." << std::endl; } else { std::cerr << "All " << total << " tests passed!" << std::endl; } } int verify_case(int casenum, const int &expected, const int &received, std::clock_t elapsed) { std::cerr << "Example " << casenum << "... "; string verdict; vector<string> info; char buf[100]; if (elapsed > CLOCKS_PER_SEC / 200) { std::sprintf(buf, "time %.2fs", elapsed * (1.0/CLOCKS_PER_SEC)); info.push_back(buf); } if (expected == received) { verdict = "PASSED"; } else { verdict = "FAILED"; } std::cerr << verdict; if (!info.empty()) { std::cerr << " ("; for (size_t i=0; i<info.size(); ++i) { if (i > 0) std::cerr << ", "; std::cerr << info[i]; } std::cerr << ")"; } std::cerr << std::endl; if (verdict == "FAILED") { std::cerr << " Expected: " << expected << std::endl; std::cerr << " Received: " << received << std::endl; } return verdict == "PASSED"; } int run_test_case(int casenum__) { switch (casenum__) { case 0: { string chocolate[] = { "9768", "6767", "5313" }; int expected__ = 3; std::clock_t start__ = std::clock(); int received__ = ChocolateDividingEasy().findBest(vector <string>(chocolate, chocolate + (sizeof chocolate / sizeof chocolate[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } case 1: { string chocolate[] = { "36753562", "91270936", "06261879", "20237592", "28973612", "93194784" }; int expected__ = 15; std::clock_t start__ = std::clock(); int received__ = ChocolateDividingEasy().findBest(vector <string>(chocolate, chocolate + (sizeof chocolate / sizeof chocolate[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } case 2: { string chocolate[] = { "012", "345", "678" }; int expected__ = 0; std::clock_t start__ = std::clock(); int received__ = ChocolateDividingEasy().findBest(vector <string>(chocolate, chocolate + (sizeof chocolate / sizeof chocolate[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } // custom cases /* case 3: { string chocolate[] = ; int expected__ = ; std::clock_t start__ = std::clock(); int received__ = ChocolateDividingEasy().findBest(vector <string>(chocolate, chocolate + (sizeof chocolate / sizeof chocolate[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); }*/ /* case 4: { string chocolate[] = ; int expected__ = ; std::clock_t start__ = std::clock(); int received__ = ChocolateDividingEasy().findBest(vector <string>(chocolate, chocolate + (sizeof chocolate / sizeof chocolate[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); }*/ /* case 5: { string chocolate[] = ; int expected__ = ; std::clock_t start__ = std::clock(); int received__ = ChocolateDividingEasy().findBest(vector <string>(chocolate, chocolate + (sizeof chocolate / sizeof chocolate[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); }*/ default: return -1; } } } #include <cstdlib> int main(int argc, char *argv[]) { if (argc == 1) { moj_harness::run_test(); } else { for (int i=1; i<argc; ++i) moj_harness::run_test(std::atoi(argv[i])); } } // END CUT HERE
[ "ducnm0@gmail.com" ]
ducnm0@gmail.com
a00ab0642d22ffd0b62a967a91bcec20b63cf7c3
b26964bc265d51da810be3f3b874faeedcfd2056
/observer/Observable.cpp
20315d88d4d8c80de6f9f2330f5168419fda7389
[]
no_license
Preant/design-pattern-workshop
b1aaf03f097bfe77ce237f94c3c25fc7e00fe433
3bcfb7f542b0f4c575cf4fc499ea4b4cf6d58628
refs/heads/master
2023-04-11T08:24:09.840142
2021-04-16T12:56:56
2021-04-16T12:56:56
356,162,762
0
0
null
null
null
null
UTF-8
C++
false
false
306
cpp
/* ** EPITECH PROJECT, 2020 ** hub ** File description: ** Observable.cpp */ #include "Observable.hpp" void Observable::notify(std::string data) const { /*to do*/ } bool Observable::subscribe(IObserver *observer) { /*to do*/ } bool Observable::unsubscribe(IObserver *observer) { /*to do*/ }
[ "paolo.reant-hamadi@epitech.eu" ]
paolo.reant-hamadi@epitech.eu
161d728fc2a9b1ec2679cf5f0fcc7bc98a00a132
83f1ae33762440d2246fbe2bf5d965d749074d09
/PAT/1011.cpp
da47c8826bf09a216f4b6e853eb91367c1d379a1
[]
no_license
Zendq1998/program_practice
aacef80d3f89ae08c3b740bd0cbf4926806919a8
850818ee75abe3511c4951e961e1bf2e821543c8
refs/heads/master
2021-07-19T13:23:41.498743
2018-12-07T14:18:09
2018-12-07T14:18:09
105,018,306
0
0
null
null
null
null
UTF-8
C++
false
false
697
cpp
// // main.cpp // 1011A+B和C // // Created by 1 on 2017/12/5. // Copyright © 2017年 zendq1998. All rights reserved. // #include <iostream> #include <stdlib.h> using namespace std; struct ABC { long A; long B; long C; bool greater = false; }; int main() { int T; cin>>T; ABC test[T]; for(int i=0;i<T;i++) { cin>>test[i].A; cin>>test[i].B; cin>>test[i].C; if(test[i].A + test[i].B > test[i].C) { test[i].greater = true; } } for(int i=0;i<T;i++) { cout<<"Case #"<<i+1<<": "<<(test[i].greater?"true":"false"); if(i != T - 1) { cout<<endl; } } return 0; }
[ "a1@1deMacBook-Pro.local" ]
a1@1deMacBook-Pro.local
8e81e2bfad6995aae369f5e14963ff71a22c6eeb
191bf92db1a9f6df7c30e37a8f0a14d1c220a3bd
/LEETCODEMAYDAY4.cpp
34059017d376f22d774aaba2e120d28bf9834c1e
[]
no_license
doomsday861/Allofit
958fa379296e1a4c9a78b25ab0fd7c222bb1f81a
94d644e52a64ff2949ea731c569478e721fc71bf
refs/heads/master
2023-01-04T12:35:10.447467
2022-12-28T09:30:18
2022-12-28T09:30:18
250,110,669
0
1
null
2021-01-11T09:20:21
2020-03-25T22:59:54
C++
UTF-8
C++
false
false
614
cpp
class Solution { public: long long findComplement(int num) { if(num==2) return 1; vector<int> com(33); int i=0; while(num) { com[i] = num%2; num /=2; i++; } string s=""; for(int j=i-1;j>=0;j--) { // cout<<com[j]; if(com[j]) com[j] = 0; else com[j]=1; //char c = itoa(com[j]); s +=com[j]+'0'; } // cout<<endl; // cout<<s<<endl; int ans = stoi(s,0,2); return ans; } };
[ "kartikeyasrivastava861@gmail.com" ]
kartikeyasrivastava861@gmail.com
4277d7e725dcae1ee05b89d4f024b5a4c1139927
4769bb26031102e53e0f15a46c45946f38b90214
/CPU_STACK 1.1/CPU.cpp
3dd670b7f4d0ec78bbc5f7158805212bb4bb1a42
[]
no_license
eduardgorbunov/edscorp
9233d33bbef107e3da236139237f10f943690f58
4b6a45234cc022c0cc8c9fd58cffd0291cbe125c
refs/heads/master
2016-08-11T08:37:03.616267
2015-06-04T20:36:35
2015-06-04T20:36:35
36,892,705
0
0
null
null
null
null
ISO-8859-10
C++
false
false
14,837
cpp
#include <string.h> #include <conio.h> #include <locale.h> #include <ctype.h> #include "Stack_Instructions.cpp" #define assert_cpu(cond) if (!cond) {CPU_info(cp);\ printf("ERROR in the line number %d\n", __LINE__); assert(cond);} #define NUMBER_OF_COMANDS 30 struct EDCPU_t { double ax; double bx; double cx; double dx; EDStack_t Stack; }; enum Commands_t { #define DEF_CMD_(name, num, code) name = num, #include "Comands.h" #undef DEF_CMD_ CMD_MAX }; ERRORS CPU_popr (EDCPU_t* cp, int nreg); ERRORS CPU_ok (EDCPU_t* cp); void CPU_info (EDCPU_t* cp); ERRORS CPU_add (EDCPU_t* cp); ERRORS CPU_mul (EDCPU_t* cp); ERRORS CPU_outr (EDCPU_t* cp, int nreg); ERRORS CPU_in (EDCPU_t* cp, int nreg); ERRORS CPU_div (EDCPU_t* cp); ERRORS CPU_pow (EDCPU_t* cp, double exponent); void ReadFileInBuffer (char** buf, int* len, FILE* f); int CountOf (char* buf, char a, int length); void CreateArrayOfPointersToStr (char*** str, int* AmountOfStr, char* buf, int len); ERRORS CPU_pushr(EDCPU_t* cp, int nreg); int main (int argc, const char* argv[]) { EDCPU_t cp = {}; FILE *f = fopen ((argv[1]? argv[1] : "FIBO.TXT"), "r"); Stack_construct(&(cp.Stack)); assert(f != NULL); char* buf = NULL; int len = POISON; ReadFileInBuffer (&buf, &len, f); char** str = NULL; int AmountOfStr = POISON; CreateArrayOfPointersToStr(&str, &AmountOfStr, buf, len); #include "assembler.h" #include "disassembler.h" EDStack_t CallStack = {}; Stack_construct(&(CallStack)); int i = 0; double value = POISON; //it's a pocket for Comands.h assert(i == 0); while (i < NumOfCellIncmds) { if (0 <= (int) cmds[i] && (int) cmds[i] <= 9) { i++; } else { #define DEF_CMD_(name, num, code) case num: code; break; switch ((int) cmds[i]) { #include "Comands.h" default: printf("WRONG ASSERT IN ASSEMBLER.H"); assert(0); break; } #undef DEF_CMD_ } } Stack_destruct(&(cp.Stack)); Stack_destruct(&(CallStack)); fclose(f); free(buf); free(str); free(cmds); free(labels); if (argv[1]) { printf("\n"); printf("Write something\n"); double forMain = 0; scanf("%lg", &forMain); } return 0; } //{================================================================================== //! CPU_popr - program which take the last element from stack and push it in register //! //! @param stk - Pointer to a structure //! @param nreg - The number of register //! //! @return Number of an error //}================================================================================== ERRORS CPU_popr (EDCPU_t* cp, int nreg) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); assert(0 < nreg && nreg < 5); switch (nreg) { case 1: Stack_pop(&(cp->Stack), &(cp->ax)); break; case 2: Stack_pop(&(cp->Stack), &(cp->bx)); break; case 3: Stack_pop(&(cp->Stack), &(cp->cx)); break; case 4: Stack_pop(&(cp->Stack), &(cp->dx)); break; default: printf("FAILURE IN MATRIX: WRONG ASSERT"); break; } nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); return nerrorcp; } //{================================================================================= //! CPU_ok - program which check cpu for errors //! //! @param stk - Pointer to a cpu //! //! @return Number of an error //}================================================================================= ERRORS CPU_ok (EDCPU_t* cp) { ERRORS nerrorcp = OK; if (cp != NULL) { nerrorcp = Stack_ok(&(cp->Stack)); if (nerrorcp == OK) { if (&(cp->ax) == NULL) nerrorcp = NULL_POINTER_ON_REGISTER_ax; if (&(cp->bx) == NULL) nerrorcp = NULL_POINTER_ON_REGISTER_bx; if (&(cp->cx) == NULL) nerrorcp = NULL_POINTER_ON_REGISTER_cx; if (&(cp->dx) == NULL) nerrorcp = NULL_POINTER_ON_REGISTER_dx; } } else nerrorcp = NULL_POINTER_ON_CPU; return nerrorcp; } //{================================================================================= //! CPU_info - program which print some useful information about cpu //! //! @param stk - Pointer to a structure //}================================================================================= void CPU_info (EDCPU_t* cp) { printf("================================================================================\n"); printf("The list of ERRORS:\n"); printf("OK = 0: stack is normal\n"); printf("BAD_PUSH = 1: stack has elements in zero cell\n"); printf("BAD_NTOP = 2: the number of the last element in stack is more\n"); printf(" than the maximum allowable number or it's less\n"); printf(" than zero\n"); printf("STRERROR = 3: NULL pointer on the body of stack\n"); printf("BAD_INPUT = 4: bad parameters were transmitted to function\n"); printf("NULL_POINTER_ON_STACK = 5: null pointer on structure\n"); printf("NULL_POINTER_ON_REGISTER_ax = 6: null pointer on register ax\n"); printf("NULL_POINTER_ON_REGISTER_bx = 7: null pointer on register bx\n"); printf("NULL_POINTER_ON_REGISTER_cx = 8: null pointer on register cx\n"); printf("NULL_POINTER_ON_REGISTER_dx = 9: null pointer on register dx\n"); printf("NULL_POINTER_ON_CPU = 10: null pointer on cpu\n"); printf("BAD_ZERO_CELL = 11: there is not a POISON = %d in zero cell\n", POISON); printf("--------------------------------------------------------------------------------\n"); ERRORS nerrorcp = CPU_ok(cp); printf("EDCPU_t (%d) [%p]\n", nerrorcp, cp); if (nerrorcp != NULL_POINTER_ON_CPU) { if (nerrorcp != NULL_POINTER_ON_REGISTER_ax) printf("Register ax = %lg\n", cp->ax); if (nerrorcp != NULL_POINTER_ON_REGISTER_bx) printf("Register bx = %lg\n", cp->bx); if (nerrorcp != NULL_POINTER_ON_REGISTER_cx) printf("Register cx = %lg\n", cp->cx); if (nerrorcp != NULL_POINTER_ON_REGISTER_dx) printf("Register dx = %lg\n", cp->dx); ERRORS nerror = Stack_ok(&(cp->Stack)); if (nerror != NULL_POINTER_ON_STACK) { printf(" {\n"); printf(" ntop = %d\n", (cp->Stack).ntop); printf(" body [%d] [%p]\n", (cp->Stack).maxntop, (cp->Stack).body); printf(" {\n"); printf(" [0] = %lg *\n", (cp->Stack).body[0]); int i = 0; for (i = 1; i <= (cp->Stack).ntop; i++) printf(" [%d] = %lg\n", i, (cp->Stack).body[i]); for (i = (cp->Stack).ntop + 1; i <= (cp->Stack).maxntop; i++) printf(" [%d] = %lg *\n", i, (cp->Stack).body[i]); printf(" }\n"); printf(" }\n"); } } printf("================================================================================\n"); } //{================================================================================= //! CPU_add - program which add two last elements in stack //! //! @param cp - Pointer to a cpu //! //! @return Number of an error //}================================================================================= ERRORS CPU_add (EDCPU_t* cp) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); if ((cp->Stack).ntop < 2) { nerrorcp = BAD_INPUT; assert_cpu(nerrorcp == OK); } else { (cp->Stack).body[(cp->Stack).ntop - 1] = (cp->Stack).body[(cp->Stack).ntop - 1] + (cp->Stack).body[(cp->Stack).ntop]; (cp->Stack).body[(cp->Stack).ntop] = POISON; (cp->Stack).ntop--; nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); } return nerrorcp; } //{================================================================================= //! CPU_mul - program which multiple two last elements in stack //! //! @param cp - Pointer to a cpu //! //! @return Number of an error //}================================================================================= ERRORS CPU_mul (EDCPU_t* cp) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); if ((cp->Stack).ntop < 2) { nerrorcp = BAD_INPUT; assert_cpu(nerrorcp == OK); } else { (cp->Stack).body[(cp->Stack).ntop - 1] = (cp->Stack).body[(cp->Stack).ntop - 1] * (cp->Stack).body[(cp->Stack).ntop]; (cp->Stack).body[(cp->Stack).ntop] = POISON; (cp->Stack).ntop--; nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); } return nerrorcp; } //{================================================================================= //! CPU_outr - program which print out value of register //! //! @param cp - Pointer to a cpu //! //! @return Number of an error //}================================================================================= ERRORS CPU_outr (EDCPU_t* cp, int nreg) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); assert(0 < nreg && nreg < 5); switch (nreg) { case 1: printf("%lg\n", cp->ax); break; case 2: printf("%lg\n", cp->bx); break; case 3: printf("%lg\n", cp->cx); break; case 4: printf("%lg\n", cp->dx); break; default: printf("FAILURE IN MATRIX: WRONG ASSERT\n"); assert(0); break; } nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); return nerrorcp; } //{================================================================================= //! CPU_in - program which scan value from keyboard and put it in register //! //! @param cp - Pointer to a cpu //! @param nreg - The number of register //! //! @return Number of an error //}================================================================================= ERRORS CPU_in (EDCPU_t* cp, int nreg) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); double value = POISON; assert(&value != NULL); int Input = scanf("%lg", &value); assert(Input == 1); assert(0 < nreg && nreg < 5); switch (nreg) { case 1: cp->ax = value; break; case 2: cp->bx = value; break; case 3: cp->cx = value; break; case 4: cp->dx = value; break; default: printf("FAILURE IN MATRIX: WRONG ASSERT"); break; } nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); return nerrorcp; } //{================================================================================= //! CPU_div - program which divide the last element on the last but one element //! from stack //! //! @param cp - Pointer to a cpu //! //! @return Number of an error //}================================================================================= ERRORS CPU_div (EDCPU_t* cp) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); if ((cp->Stack).ntop < 2 || (cp->Stack).body[(cp->Stack).ntop - 1] == 0) { nerrorcp = BAD_INPUT; assert_cpu(nerrorcp == OK); } else { (cp->Stack).body[(cp->Stack).ntop - 1] = (cp->Stack).body[(cp->Stack).ntop]/(cp->Stack).body[(cp->Stack).ntop - 1]; (cp->Stack).body[(cp->Stack).ntop] = POISON; (cp->Stack).ntop--; } nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); return nerrorcp; } //{================================================================================= //! CPU_pow - program which involute last element from stack in degree exponent //! //! @param cp - Pointer to a cpu //! @param exponent - exponent //! //! @return Number of an error //}================================================================================= ERRORS CPU_pow (EDCPU_t* cp, double exponent) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); if (Stack_isEmpty(&(cp->Stack)) == 1) { nerrorcp = BAD_INPUT; assert_cpu(nerrorcp == OK); } else { (cp->Stack).body[(cp->Stack).ntop] = pow((cp->Stack).body[(cp->Stack).ntop], exponent); } nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); return nerrorcp; } //{================================================================================= //! ReadFileInBuffer - program which read file in buffer //! //! @param[out] buf - Pointer to the buffer //! @param[out] len - The length of the buffer //! @param[out] f - Pointer to the file //}================================================================================= void ReadFileInBuffer (char** buf, int* len, FILE* f) { assert(f != NULL); assert(buf != NULL); assert((*buf) == NULL); assert(len != NULL); fseek (f, 0, SEEK_END); *len = ftell (f); rewind (f); *buf = (char*) calloc ((*len) + 1, sizeof (char)); assert((*buf) != NULL); fread (*buf, *len, sizeof(char), f); (*buf)[*len] = '\n'; (*len)++; } //{================================================================================= //! CountOf - ņounting the number of occurrences of the symbol in the string. //! //! @param buf A pointer to the beginning of the string //! @param a Symbol //! @param length The length of the string //! //! @return Number of occurrences of the symbol a (the second parameter) //}================================================================================= int CountOf (char* buf, char a, int length) { assert(buf != NULL); int i = 0, counter = 0; for (i = 0; i < length; i++) { if (buf[i] == a) counter++; } return counter; } //{================================================================================= //! CreateArrayOfPointersToStr - program which create array of pointer to strings //! //! @param[out] str - Pointer to the char** //! @param[out] AmountOfStr - The amount of strings //! @param[out] buf - Pointer to the buffer //! @param[out] len - The length of the buffer //}================================================================================= void CreateArrayOfPointersToStr (char*** str, int* AmountOfStr, char* buf, int len) { assert(AmountOfStr != NULL); assert(str != NULL); assert(*str == NULL); *AmountOfStr = CountOf(buf, '\n', len); *str = (char**) calloc(*AmountOfStr, sizeof(char*)); assert((*str) != NULL); int i = 0, startStr = 0, nStr = 0; for (i = 0; i < len; i++) { if (buf[i] == '\n') { (*str)[nStr] = buf + startStr; nStr++; startStr = i + 1; } } } //{================================================================================== //! CPU_pushr - program which put value from register in stack //! //! @param stk - Pointer to a structure //! @param nreg - The number of register //! //! @return Number of an error //}================================================================================== ERRORS CPU_pushr(EDCPU_t* cp, int nreg) { ERRORS nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); assert(0 < nreg && nreg < 5); switch (nreg) { case 1: Stack_push(&(cp->Stack), cp->ax); break; case 2: Stack_push(&(cp->Stack), cp->bx); break; case 3: Stack_push(&(cp->Stack), cp->cx); break; case 4: Stack_push(&(cp->Stack), cp->dx); break; default: printf("WRONG ASSERT\n"); assert(0); break; } nerrorcp = CPU_ok(cp); assert_cpu(nerrorcp == OK); return nerrorcp; }
[ "ed-gorbunov@yandex.ru" ]
ed-gorbunov@yandex.ru
441c436eee96eac46c98caa4cef251ff35c4008c
6e22d7679ebeb092232de6052ced81c7d8ab97a6
/ISocket/EventSelectClient/Client.h
4e62f0578b43d71b136ba6ae9c1ef8d30439b47a
[]
no_license
chengguixing/iArt
e3de63161bd91a18522612d6320453431824061d
c2d60e36f2f2a6a04b2188f20e7264cfc5d05dc4
refs/heads/master
2021-01-02T09:27:11.010862
2014-06-28T12:34:56
2014-06-28T12:34:56
22,207,953
4
5
null
null
null
null
GB18030
C++
false
false
302
h
#pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" class CClientApp : public CWinApp { public: CClientApp(); public: virtual BOOL InitInstance(); afx_msg void OnAppAbout(); DECLARE_MESSAGE_MAP() };
[ "izhuxin@gmail.com" ]
izhuxin@gmail.com
bc96401ad73c65c6873149399e3967110f665612
f30b2d33c209eca780e645a0237738ccd5ef2b78
/Compiler/_backup/MidCode/Quaternary.cpp
22db457290290f3c1b86fc9a26e7b4f41421efeb
[]
no_license
DreamChaserMXF/Compiler
cfa55e7476858c2be6a856a9efceb56a7fad6ef2
3aae54ccfcfe3d68002f82056281a38f1581720b
refs/heads/master
2021-07-09T01:04:02.192725
2016-04-24T14:26:03
2016-04-24T14:26:03
48,437,970
2
1
null
2016-04-24T14:26:03
2015-12-22T14:58:55
Assembly
GB18030
C++
false
false
3,296
cpp
#include "Quaternary.h" #include <assert.h> const char* Quaternary::OPCodeString[] = { "NIL_OP", "NEG", "ADD", "SUB", "MUL", "DIV", "ASG", "AASG", "STORE", "JMP", "JE", "JNE", "JG", "JNG", "JL", "JNL", "FUNC_CALL", "PROC_CALL", "READ", "WRITE", "SETP", "RET", "BEGIN", "END", "LABEL" }; Quaternary::Quaternary() throw() : op_(NIL_OP), type1_(NIL_OPERAND), src1_(0), type2_(NIL_OPERAND), src2_(0), type3_(NIL_OPERAND), dst_(0) {} Quaternary::Quaternary(OPCode op, OperandType type1, int src1, OperandType type2, int src2, OperandType type3, int dst) throw() : op_(op), type1_(type1), src1_(src1), type2_(type2), src2_(src2), type3_(type3), dst_(dst) {} void Quaternary::UpdateTempVarSpace(std::vector<Quaternary> &quaternarytable) throw() { std::vector<Quaternary>::iterator iter = quaternarytable.begin(); assert(Quaternary::BEGIN == iter->op_); FindTempVar(iter, quaternarytable.end()); } // 从一个函数的BEGIN语句的迭代器开始,寻找这个函数用到的临时变量的个数,并更新到BEGIN语句中 // 最后返回指向该函数结束后的下一条语句的迭代器 // end_iter表明即使没有找到END语句,也应该停止的迭代器位置 // 如果这个函数有嵌套的函数,则对嵌套函数的BEGIN语句进行同样的更新 std::vector<Quaternary>::iterator Quaternary::FindTempVar(const std::vector<Quaternary>::iterator &begin_iter, const std::vector<Quaternary>::const_iterator &end_iter) throw() { std::vector<Quaternary>::iterator next_iter = begin_iter + 1; while(Quaternary::BEGIN == next_iter->op_) { next_iter = FindTempVar(next_iter, end_iter); } // 现在next_iter指向该函数的BEGIN语句之后的第一条属于该函数的语句 int max_temp_index = -1; do { // 在已有的逻辑下,如果申请了新的临时变量,则一定会用在dst操作数上 // 所以前两个if语句并不是必要的 //if(Quaternary::TEMPORARY_OPERAND == next_iter->type1_ // && next_iter->src1_ > max_temp_index) //{ // max_temp_index = next_iter->src1_; //} //if(Quaternary::TEMPORARY_OPERAND == next_iter->type2_ // && next_iter->src2_ > max_temp_index) //{ // max_temp_index = next_iter->src2_; //} if(Quaternary::TEMPORARY_OPERAND == next_iter->type3_ && next_iter->dst_ > max_temp_index) { max_temp_index = next_iter->dst_; } ++next_iter; } while(Quaternary::END != next_iter->op_); // 更新BEGIN语句 begin_iter->src2_ = max_temp_index + 1; // 返回指向函数结束后的下一个语句的迭代器 return ++next_iter; } // 通过过程/函数在四元式表中的BEGIN语句的迭代器,找到其过程/函数体的第一条语句的迭代器 // 这里要求过程/函数的BEGIN和END一定要配对 std::vector<Quaternary>::const_iterator Quaternary::GetFunctionBody(std::vector<Quaternary>::const_iterator begin_iter) throw() { ++begin_iter; if(Quaternary::BEGIN != begin_iter->op_) { return begin_iter; } int func_num = 1; // 已经读到了一个begin while(func_num > 0) { ++begin_iter; if(Quaternary::BEGIN == begin_iter->op_) { ++func_num; } else if(Quaternary::END == begin_iter->op_) { --func_num; } } return ++begin_iter; }
[ "sad_sugar@163.com" ]
sad_sugar@163.com
241838aa5359d482cbfe107b0a818ec7d1fc8223
d72ed530c9e14bcdaef73ca1bd6ce13dbd7085c3
/solved/0-3/copsandrobbers.cpp
9797cfa0c5a9fd3700796b078b6cac3daeb0eda4
[]
no_license
Tetragonal/kattis-solutions
2fa8e8bda68a6656b34415d1a8c3a5e233642bec
fa3c6be58ac5a79fbbb27320f76ad27680a02c54
refs/heads/master
2020-05-17T16:53:49.556352
2019-12-31T01:27:15
2019-12-31T01:27:15
183,831,892
0
0
null
null
null
null
UTF-8
C++
false
false
2,160
cpp
#include <bits/stdc++.h> using namespace std; const int N = 1e5+1, INF = 1e9; struct edge {int v, c, f;}; int n, src, snk, h[N], ptr[N]; vector<edge> edgs; vector<int> g[N]; void add_edge (int u, int v, int c) { int k = edgs.size(); edgs.push_back({v, c, 0}); edgs.push_back({u, 0, 0}); g[u].push_back(k); g[v].push_back(k+1); } bool bfs() { memset(h, 0, sizeof h); queue<int> q; h[src] = 1; q.push(src); while(!q.empty()) { int u = q.front(); q.pop(); for(int i : g[u]) { int v = edgs[i].v; if (!h[v] and edgs[i].f < edgs[i].c) q.push(v), h[v] = h[u] + 1; } } return h[snk]; } int dfs (int u, int flow) { if (!flow or u == snk) return flow; for (int &i = ptr[u]; i < g[u].size(); ++i) { edge &dir = edgs[g[u][i]], &rev = edgs[g[u][i]^1]; int v = dir.v; if (h[v] != h[u] + 1) continue; int inc = min(flow, dir.c - dir.f); inc = dfs(v, inc); if (inc) { dir.f += inc, rev.f -= inc; return inc; } } return 0; } int dinic() { int flow = 0; while (bfs()) { memset(ptr, 0, sizeof ptr); while (int inc = dfs(src, INF)) flow += inc; } return flow; } int main() { int n, m, c; cin >> n >> m >> c; vector<string> input; for(int i = 0; i < m; i++) { string in; cin >> in; input.push_back(in); } map<char, int> costs; costs['.'] = INF; costs['B'] = INF; for(int i = 0; i < c; i++) { int cost; cin >> cost; costs['a'+i] = cost; } snk = N-5; for(int i = 0; i < m; i++) { for(int j = 0; j < n; j++) { int vidx = i*n + j; int idx = vidx + n*m; if(input[i][j] == 'B') { src = vidx; } add_edge(vidx, idx, costs[input[i][j]]); if((i==0) || (j==0) || (i==m-1) || (j==n-1)) { add_edge(idx, snk, INF); } else { if(j!=n-1) add_edge(idx, vidx+1, INF); if(j!=0) add_edge(idx, vidx-1, INF); if(i!=m-1) add_edge(idx, vidx+n, INF); if(i!=0) add_edge(idx, vidx-n, INF); } } } int maxflow = dinic(); if(maxflow >= INF) { cout << -1 << endl; } else { cout << maxflow << endl; } }
[ "kevin_m_tang@yahoo.com" ]
kevin_m_tang@yahoo.com
7ce9cf0571433f8b2542c5fa638a2c18f56a7209
11f77b4c947c3869dbd2398d20fd2394e7c62daf
/melodic/src/rviz/src/rviz/time_panel.cpp
ec73b23241e718f044c96d0d8d7c230c7c888bf2
[ "CC-PDDC", "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
4658fd1732461d9065cd3ff94ba10aec7f60fd2e
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
refs/heads/master
2022-07-18T15:11:23.740964
2020-05-23T06:57:58
2020-05-23T06:57:58
279,299,388
3
0
null
2020-07-13T12:41:32
2020-07-13T12:41:31
null
UTF-8
C++
false
false
9,216
cpp
/* * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Willow Garage, Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <QLabel> #include <QLineEdit> #include <QPushButton> #include <QHBoxLayout> #include <QButtonGroup> #include <QCheckBox> #include <QSlider> #include <QComboBox> #include "visualization_manager.h" #include "frame_manager.h" #include "display_group.h" #include "time_panel.h" namespace rviz { TimePanel::TimePanel( QWidget* parent ) : Panel( parent ) { wall_time_label_ = makeTimeLabel(); wall_elapsed_label_ = makeTimeLabel(); ros_time_label_ = makeTimeLabel(); ros_elapsed_label_ = makeTimeLabel(); experimental_cb_ = new QCheckBox("Experimental"); experimental_cb_->setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum) ); pause_button_ = new QPushButton( "Pause" ); pause_button_->setToolTip("Freeze ROS time."); pause_button_->setCheckable(true); sync_mode_selector_ = new QComboBox(this); sync_mode_selector_->addItem( "Off" ); sync_mode_selector_->addItem( "Exact" ); sync_mode_selector_->addItem( "Approximate" ); sync_mode_selector_->setSizeAdjustPolicy(QComboBox::AdjustToContents); sync_mode_selector_->setToolTip("Allows you to synchronize the ROS time and Tf transforms to a given source."); // choose time sync signal sync_source_selector_ = new QComboBox(this); sync_source_selector_->setSizeAdjustPolicy(QComboBox::AdjustToContents); sync_source_selector_->setToolTip("Time source to use for synchronization."); experimental_widget_ = new QWidget(this); QHBoxLayout* experimental_layout = new QHBoxLayout(this); experimental_layout->addWidget( pause_button_ ); experimental_layout->addWidget( new QLabel( "Synchronization:" )); experimental_layout->addWidget( sync_mode_selector_ ); experimental_layout->addWidget( new QLabel( "Source:" )); experimental_layout->addWidget( sync_source_selector_ ); experimental_layout->addSpacing(20); experimental_layout->setContentsMargins( 0, 0, 20, 0 ); experimental_widget_->setLayout(experimental_layout); old_widget_ = new QWidget(this); QHBoxLayout* old_layout = new QHBoxLayout(this); old_layout->addWidget( new QLabel( "ROS Elapsed:" )); old_layout->addWidget( ros_elapsed_label_ ); old_layout->addWidget( new QLabel( "Wall Time:" )); old_layout->addWidget( wall_time_label_ ); old_layout->addWidget( new QLabel( "Wall Elapsed:" )); old_layout->addWidget( wall_elapsed_label_ ); old_layout->setContentsMargins( 0, 0, 20, 0 ); old_widget_->setLayout(old_layout); QHBoxLayout* layout = new QHBoxLayout(this); layout->addWidget(experimental_widget_); layout->addWidget( new QLabel( "ROS Time:" )); layout->addWidget( ros_time_label_ ); layout->addWidget(old_widget_); layout->addStretch(100); layout->addWidget( experimental_cb_ ); layout->addStretch(); layout->setContentsMargins( 11, 5, 11, 5 ); connect( experimental_cb_, SIGNAL( toggled( bool )), this, SLOT( experimentalToggled( bool ) )); connect( pause_button_, SIGNAL( toggled( bool )), this, SLOT( pauseToggled( bool ) )); connect( sync_mode_selector_, SIGNAL( activated( int )), this, SLOT( syncModeSelected( int ) )); connect( sync_source_selector_, SIGNAL( activated( int )), this, SLOT( syncSourceSelected( int ) )); } void TimePanel::onInitialize() { connect( vis_manager_, SIGNAL( preUpdate() ), this, SLOT( update() )); DisplayGroup *display_group = vis_manager_->getRootDisplayGroup(); onDisplayAdded(display_group); syncModeSelected(0); pauseToggled(false); } void TimePanel::load( const Config& config ) { Panel::load(config); int sync_mode; if( config.mapGetInt( "SyncMode", &sync_mode )) { sync_mode_selector_->setCurrentIndex(sync_mode); syncModeSelected(sync_mode); } config.mapGetString( "SyncSource", &config_sync_source_ ); bool experimental = false; config.mapGetBool( "Experimental", &experimental ); experimental_cb_->setChecked(experimental); experimentalToggled(experimental); } void TimePanel::save( Config config ) const { Panel::save(config); config.mapSetValue( "SyncMode", sync_mode_selector_->currentIndex() ); config.mapSetValue( "SyncSource", sync_source_selector_->currentText() ); config.mapSetValue( "Experimental", experimental_cb_->checkState() == Qt::Checked ); } void TimePanel::onDisplayAdded( Display* display ) { DisplayGroup* display_group = qobject_cast<DisplayGroup*>( display ); if( display_group ) { connect( display_group, SIGNAL( displayAdded( rviz::Display* ) ), this, SLOT( onDisplayAdded( rviz::Display* ) )); connect( display_group, SIGNAL( displayRemoved( rviz::Display* ) ), this, SLOT( onDisplayRemoved( rviz::Display* ) )); for( int i = 0; i < display_group->numDisplays(); i++ ) { rviz::Display* display = display_group->getDisplayAt( i ); onDisplayAdded( display ); } } else { connect( display, SIGNAL( timeSignal( rviz::Display*, ros::Time ) ), this, SLOT( onTimeSignal( rviz::Display*, ros::Time ) )); } } void TimePanel::onDisplayRemoved( Display* display ) { QString name = display->getName(); int index = sync_source_selector_->findData( QVariant( (qulonglong)display ) ); if ( index >= 0 ) { sync_source_selector_->removeItem( index ); } } void TimePanel::onTimeSignal( Display* display, ros::Time time ) { QString name = display->getName(); int index = sync_source_selector_->findData( QVariant( (qulonglong)display ) ); // if we loaded the sync source name from the config, we need to // switch to it as soon as we get a signal if ( index < 0 && name == config_sync_source_ ) { sync_source_selector_->addItem( name, QVariant( (qulonglong)display ) ); index = sync_source_selector_->findData( QVariant( (qulonglong)display ) ); sync_source_selector_->setCurrentIndex(index); config_sync_source_.clear(); } if ( index < 0 ) { sync_source_selector_->addItem( name, QVariant( (qulonglong)display ) ); } else { sync_source_selector_->setItemText( index, name ); if ( sync_source_selector_->currentIndex() == index ) { vis_manager_->getFrameManager()->syncTime( time ); } } } QLineEdit* TimePanel::makeTimeLabel() { QLineEdit* label = new QLineEdit; label->setReadOnly( true ); return label; } void TimePanel::fillTimeLabel( QLineEdit* label, double time ) { label->setText( QString::number( time, 'f', 2 )); } void TimePanel::update() { fillTimeLabel( ros_time_label_, vis_manager_->getROSTime() ); fillTimeLabel( ros_elapsed_label_, vis_manager_->getROSTimeElapsed() ); fillTimeLabel( wall_time_label_, vis_manager_->getWallClock() ); fillTimeLabel( wall_elapsed_label_, vis_manager_->getWallClockElapsed() ); } void TimePanel::pauseToggled( bool checked ) { vis_manager_->getFrameManager()->setPause( checked ); } void TimePanel::experimentalToggled( bool checked ) { old_widget_->setVisible(!checked); experimental_widget_->setVisible(checked); if ( vis_manager_ && vis_manager_->getFrameManager() ) { if ( !checked ) { pauseToggled(false); syncModeSelected(0); } else { pauseToggled(pause_button_->isChecked()); syncModeSelected(sync_mode_selector_->currentIndex()); } } } void TimePanel::syncSourceSelected( int /*index*/ ) { // clear whatever was loaded from the config config_sync_source_.clear(); vis_manager_->notifyConfigChanged(); } void TimePanel::syncModeSelected( int mode ) { vis_manager_->getFrameManager()->setSyncMode( (FrameManager::SyncMode)mode ); sync_source_selector_->setEnabled( mode != FrameManager::SyncOff ); vis_manager_->notifyConfigChanged(); } } // namespace rviz
[ "chiioleong519@gmail.com" ]
chiioleong519@gmail.com
ce6f872f3536b9ff6c0bf2b90e1a6ed51de2db6f
8fc945ec94827f0c64a914873fcefc0eb68944cf
/Google Code Jam 2015/pancakes.cpp
c51b12f0baf8d315766d225b43cfc8c51c5f7cd4
[]
no_license
mateuscgc/maratonas
641a5396d64ce14d32fe0ae2c8f9b30d7545f69d
3ed87f1e0307beb7f89934598440869d88c74495
refs/heads/master
2020-04-24T06:21:19.963512
2017-09-28T20:03:53
2017-09-28T20:03:53
26,088,854
1
2
null
null
null
null
UTF-8
C++
false
false
1,301
cpp
#include <bits/stdc++.h> using namespace std; int main() { int nT; cin >> nT; for (int i = 1; i <= nT; i++) { int nD; cin >> nD; int nP[1001] = {0}; int num; int max = -1; for(int j = 0; j < nD; j++) { cin >> num; nP[num]++; if (num > max) max = num; } int min = max+1; for (int j = 1; j <= max; j++) { int nM = 0; int cp[max+1]; copy(nP, nP+max+1, cp); for (int k = max; k > j; k--) { if (cp[k] > 0) { int ini = 2, end = k; while(ini < end) { int center = (ini+end)/2; if ((k+center-1)/center <= j) end = center; else ini = center+1; } cp[(k+ini-1)/ini] = k % ini * cp[k]; cp[k/ini] = (ini - k % ini) * cp[k]; nM += (ini-1)*cp[k]; } } nM += j; if (nM < min) min = nM; } cout << "Case #" << i << ": " << min << endl; } return 0; }
[ "mateus_cgc@hotmail.com" ]
mateus_cgc@hotmail.com
c6336fcad3e09ef36e41c95008c5bddc7408e1f2
8633303b5f570856d8e2d47621574a82b093f60e
/binaryTree/binaryTreeOperations.cpp
1f519140e0c9bdb2d67b9825cfd68020982ad094
[]
no_license
ApostaC/dsalgo
9c01ce317cf189894c8adde3edbbd26edf91d905
c747d1699f62a815dae0e8dbd0af798a2cb6f780
refs/heads/master
2021-08-28T18:41:15.710665
2017-12-13T00:30:55
2017-12-13T00:30:55
109,796,414
0
0
null
null
null
null
UTF-8
C++
false
false
1,060
cpp
#include <iostream> #define MAXN 110 using namespace std; struct Node { int l,r,p; Node(int ll=-1,int rr=-1,int pp=-1):l(ll),r(rr),p(pp){} void setl(int ll){l=ll;} void setr(int rr){r=rr;} void setp(int pp){p=pp;} void exchange(){int t=l;l=r;r=t;} }; int t,n,m; Node nodes[MAXN]; void swap(int a,int b) { int pa=nodes[a].p,pb=nodes[b].p; Node & npa=nodes[pa], & npb=nodes[pb]; if(pa==pb) { npa.exchange(); return; } if(npa.l==a) npa.setl(b); else npa.setr(b); if(npb.l==b) npb.setl(a); else npb.setr(b); } int query(int x) { Node & nd=nodes[x]; if(nd.l==-1) return x; return query(nd.l); } void operate() { int a,x,y; cin>>a; if(a==1) { cin>>x>>y;swap(x,y); } if(a==2) { cin>>x;cout<<query(x)<<endl; } } int main1() { for(int i=0;i<MAXN;i++) nodes[i]=Node(); cin>>n>>m; int x,y,z; for(int i=0;i<n;i++) { cin>>x>>y>>z; Node & nd=nodes[x]; nd.setl(y);nd.setr(z); nodes[y].setp(x);nodes[z].setp(x); } for(int i=0;i<m;i++) operate(); return 0; } int main() { cin>>t; for(int i=0;i<t;i++) main1(); return 0; }
[ "Aposta@pku.edu.cn" ]
Aposta@pku.edu.cn
769e6d09b38408bbe0894ba3aa1bfa27d2de8141
7f64f76f1a45e2c92a9d47ecc96b0a629a12a37f
/bgfx/examples/01-cubes/cubes.cpp
62ab6b9a4cea3141849b5d15f2d61adc4e991529
[ "MIT", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
louis-tru/SummerTraining
275b4d406a7ff6106b604502c9422ece10d04b63
347afd07b94f5f47ed1c84b10be54e6500d64fe1
refs/heads/master
2020-04-28T22:06:35.750532
2015-08-23T08:23:59
2015-08-23T08:23:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,738
cpp
/* * Copyright 2011-2015 Branimir Karadzic. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ #include "common.h" #include "bgfx_utils.h" struct PosColorVertex { float m_x; float m_y; float m_z; uint32_t m_abgr; static void init() { ms_decl .begin() .add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float) .add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true) .end(); }; static bgfx::VertexDecl ms_decl; }; bgfx::VertexDecl PosColorVertex::ms_decl; static PosColorVertex s_cubeVertices[8] = { {-1.0f, 1.0f, 1.0f, 0xff000000 }, { 1.0f, 1.0f, 1.0f, 0xff0000ff }, {-1.0f, -1.0f, 1.0f, 0xff00ff00 }, { 1.0f, -1.0f, 1.0f, 0xff00ffff }, {-1.0f, 1.0f, -1.0f, 0xffff0000 }, { 1.0f, 1.0f, -1.0f, 0xffff00ff }, {-1.0f, -1.0f, -1.0f, 0xffffff00 }, { 1.0f, -1.0f, -1.0f, 0xffffffff }, }; static const uint16_t s_cubeIndices[36] = { 0, 1, 2, // 0 1, 3, 2, 4, 6, 5, // 2 5, 6, 7, 0, 2, 4, // 4 4, 2, 6, 1, 5, 3, // 6 5, 7, 3, 0, 4, 1, // 8 4, 5, 1, 2, 3, 6, // 10 6, 3, 7, }; int _main_(int /*_argc*/, char** /*_argv*/) { uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height, reset); // Enable debug text. bgfx::setDebug(debug); // Set view 0 clear state. bgfx::setViewClear(0 , BGFX_CLEAR_COLOR|BGFX_CLEAR_DEPTH , 0x303030ff , 1.0f , 0 ); // Create vertex stream declaration. PosColorVertex::init(); // Create static vertex buffer. bgfx::VertexBufferHandle vbh = bgfx::createVertexBuffer( // Static data can be passed with bgfx::makeRef bgfx::makeRef(s_cubeVertices, sizeof(s_cubeVertices) ) , PosColorVertex::ms_decl ); // Create static index buffer. bgfx::IndexBufferHandle ibh = bgfx::createIndexBuffer( // Static data can be passed with bgfx::makeRef bgfx::makeRef(s_cubeIndices, sizeof(s_cubeIndices) ) ); // Create program from shaders. bgfx::ProgramHandle program = loadProgram("vs_cubes", "fs_cubes"); int64_t timeOffset = bx::getHPCounter(); while (!entry::processEvents(width, height, debug, reset) ) { int64_t now = bx::getHPCounter(); static int64_t last = now; const int64_t frameTime = now - last; last = now; const double freq = double(bx::getHPFrequency() ); const double toMs = 1000.0/freq; float time = (float)( (now-timeOffset)/double(bx::getHPFrequency() ) ); // Use debug font to print information about this example. bgfx::dbgTextClear(); bgfx::dbgTextPrintf(0, 1, 0x4f, "bgfx/examples/01-cube"); bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Rendering simple static mesh."); bgfx::dbgTextPrintf(0, 3, 0x0f, "Frame: % 7.3f[ms]", double(frameTime)*toMs); float at[3] = { 0.0f, 0.0f, 0.0f }; float eye[3] = { 0.0f, 0.0f, -35.0f }; // Set view and projection matrix for view 0. const bgfx::HMD* hmd = bgfx::getHMD(); if (NULL != hmd && 0 != (hmd->flags & BGFX_HMD_RENDERING) ) { float view[16]; bx::mtxQuatTranslationHMD(view, hmd->eye[0].rotation, eye); float proj[16]; bx::mtxProj(proj, hmd->eye[0].fov, 0.1f, 100.0f); bgfx::setViewTransform(0, view, proj); // Set view 0 default viewport. // // Use HMD's width/height since HMD's internal frame buffer size // might be much larger than window size. bgfx::setViewRect(0, 0, 0, hmd->width, hmd->height); } else { float view[16]; bx::mtxLookAt(view, eye, at); float proj[16]; bx::mtxProj(proj, 60.0f, float(width)/float(height), 0.1f, 100.0f); bgfx::setViewTransform(0, view, proj); // Set view 0 default viewport. bgfx::setViewRect(0, 0, 0, width, height); } // This dummy draw call is here to make sure that view 0 is cleared // if no other draw calls are submitted to view 0. bgfx::touch(0); // Submit 11x11 cubes. for (uint32_t yy = 0; yy < 11; ++yy) { for (uint32_t xx = 0; xx < 11; ++xx) { float mtx[16]; bx::mtxRotateXY(mtx, time + xx*0.21f, time + yy*0.37f); mtx[12] = -15.0f + float(xx)*3.0f; mtx[13] = -15.0f + float(yy)*3.0f; mtx[14] = 0.0f; // Set model matrix for rendering. bgfx::setTransform(mtx); // Set vertex and index buffer. bgfx::setVertexBuffer(vbh); bgfx::setIndexBuffer(ibh); // Set render states. bgfx::setState(BGFX_STATE_DEFAULT); // Submit primitive for rendering to view 0. bgfx::submit(0, program); } } // Advance to next frame. Rendering thread will be kicked to // process submitted rendering primitives. bgfx::frame(); } // Cleanup. bgfx::destroyIndexBuffer(ibh); bgfx::destroyVertexBuffer(vbh); bgfx::destroyProgram(program); // Shutdown bgfx. bgfx::shutdown(); return 0; }
[ "myspace@inbox.ru" ]
myspace@inbox.ru
83184b7823427dbb500e80b21cc18d05f9552848
406b4b18f5c58c689d2324f49db972377fe8feb6
/ANE/Include/Memory/IMemoryPool.h
cd118b1a3cd79d2f003a329221fb47c1e0b00b8c
[]
no_license
Mobiwoom/ane
e17167de36699c451ed92eab7bf733e7d41fe847
ec20667c556a99351024f3ae9c8880e944c5bfbd
refs/heads/master
2021-01-17T13:09:57.966141
2010-03-23T16:30:17
2010-03-23T16:30:17
33,132,357
0
1
null
null
null
null
UTF-8
C++
false
false
258
h
#pragma once namespace Ane { class IMemoryPool { public: IMemoryPool(){} virtual ~IMemoryPool(){} virtual void* Alloc() = 0; virtual void* Alloc(unsigned int Size) = 0; virtual void Free(void* pMemory) = 0; }; }
[ "inthejm@5abed23c-1faa-11df-9e62-c93c6248c2ac" ]
inthejm@5abed23c-1faa-11df-9e62-c93c6248c2ac
eb3ddbd3866f65121ccf982f636a2f2c39acad5c
f2d47951fb3738bff966f83c090d91846e491994
/tools/gvsoc/common/models/devices/spiflash/spiflash_impl.cpp
e8d3909e1107b1e5b916d4e46b23fabfc7e40efe
[ "Apache-2.0" ]
permissive
EEESlab/gvsoc-old
cb5f630f6a7bf99664ee57755454a6e6d6b2fc59
19917f1789a3f771e1ec42e11c4f5897d1f9fda2
refs/heads/main
2023-08-01T05:00:54.614155
2021-08-18T13:10:30
2021-08-19T16:22:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
15,996
cpp
/* * Copyright (C) 2020 GreenWaves Technologies, SAS, ETH Zurich and * University of Bologna * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Authors: Germain Haugou, GreenWaves Technologies (germain.haugou@greenwaves-technologies.com) */ #include <vp/vp.hpp> #include <stdio.h> #include <string.h> #include <vp/itf/qspim.hpp> #define CMD_READ_ID 0x9f #define CMD_RDCR 0x35 #define CMD_WREN 0x06 #define CMD_WRR 0x48 #define CMD_WRAR 0x71 #define CMD_RDSR1 0x05 #define CMD_P4E 0x20 #define CMD_PP 0x02 #define CMD_QIOR 0xEB #define CMD_QIOR_4B 0xEC #define CMD_READ 0x0C #define CMD_READ_SIMPLE 0x03 #define CMD_SND_MODE_BYTE 0x0A #define CMD_RESET_ENABLE 0x66 #define CMD_RESET 0x99 #define CMD_SECTOR_ERASE 0xD8 #define CMD_READ_SR2V 0x07 class spiflash; typedef struct { unsigned char id; string desc; void (*handler)(void*,int,int,int,int); void (*start_handler)(void*); } command_t; typedef union { struct { int freeze:1; int quad:1; int tbparm:1; int bpnv:1; int rfu:1; int tbprot:1; int lc0:1; int lc1:1; }; uint8_t raw; } reg_cr1_t; typedef union { struct { int ps:1; int es:1; int estat:1; }; uint8_t raw; } reg_sr2v_t; #define REGS_AREA_SIZE 1024 #define FLASH_STATE_IDLE 0 #define FLASH_STATE_WRITE_BUFFER_WAIT_SIZE 1 #define FLASH_STATE_WRITE_BUFFER 2 #define FLASH_STATE_WRITE_BUFFER_WAIT_CONFIRM 3 #define FLASH_STATE_CMD_0 4 #define FLASH_STATE_CMD_1 5 #define FLASH_STATE_LOAD_VCR 6 class spiflash; class spiflash : public vp::component { public: spiflash(js::config *config); int build(); void start(); static void sector_erase(void *__this, int data_0, int data_1, int data_2, int data_3); static void sector_erase_done(void *__this, vp::clock_event *event); static void quad_read(void *__this, int data_0, int data_1, int data_2, int data_3); static void single_read(void *__this, int data_0, int data_1, int data_2, int data_3); static void write_any_register(void *__this, int data_0, int data_1, int data_2, int data_3); static void read_sr2v(void *__this, int data_0, int data_1, int data_2, int data_3); static void read_sr2v_start(void *__this); static void page_program(void *__this, int data_0, int data_1, int data_2, int data_3); protected: vp::qspim_slave in_itf; vp::wire_slave<bool> cs_itf; private: static void sync(void *__this, int sck, int data_0, int data_1, int data_2, int data_3, int mask); static void sync_cycle(void *__this, int data_0, int data_1, int data_2, int data_3, int mask); static void cs_sync(void *__this, bool active); void handle_data(int data_0, int data_1, int data_2, int data_3); void start_command(); void enqueue_bits(int data_0, int data_1, int data_2, int data_3); void send_bits(); vp::trace trace; int size; command_t *commands[256]; uint8_t *mem_data; unsigned int pending_word; unsigned int pending_addr; int pending_bits; unsigned char pending_command_id; command_t *pending_command; int pending_post_addr_cmd; int pending_bytes; reg_cr1_t cr1; reg_sr2v_t sr2v; bool quad; bool read; bool waiting_command; unsigned int current_addr; vp::clock_event *sector_erase_event; }; static command_t commands_descs[] = { { CMD_READ_ID , "read ID" , NULL , NULL}, { CMD_RDCR , "read config" , NULL , NULL}, { CMD_WREN , "write enable" , NULL , NULL}, { CMD_WRR , "write register" , NULL , NULL}, { CMD_WRAR , "write any register" , &spiflash::write_any_register , NULL}, { CMD_RDSR1 , "read status register", NULL , NULL}, { CMD_P4E , "parameter 4k erase" , NULL , NULL}, { CMD_PP , "page program" , &spiflash::page_program , NULL}, { CMD_QIOR , "quad IO read" , NULL , NULL}, { CMD_QIOR_4B , "quad IO read" , &spiflash::quad_read , NULL}, { CMD_READ , "IO read" , &spiflash::single_read , NULL}, { CMD_READ_SIMPLE , "IO read" , &spiflash::single_read , NULL}, { CMD_RESET_ENABLE , "Reset enable" , NULL , NULL}, { CMD_RESET , "Reset" , NULL , NULL}, { CMD_SECTOR_ERASE , "Sector erase" , &spiflash::sector_erase , NULL}, { CMD_READ_SR2V , "Read SR2V" , &spiflash::read_sr2v , &spiflash::read_sr2v_start} }; void spiflash::page_program(void *__this, int data_0, int data_1, int data_2, int data_3) { spiflash *_this = (spiflash *)__this; _this->enqueue_bits(data_0, data_1, data_2, data_3); if (_this->pending_bits == 24) { _this->current_addr = _this->pending_word & 0xffffff; _this->read = false; _this->trace.msg(vp::trace::LEVEL_INFO, "Received address (address: 0x%x)\n", _this->current_addr); } if (_this->pending_bits >= 32) { if (_this->pending_bits % 8 == 0) { if (_this->current_addr >= _this->size) { _this->warning.force_warning("Received out-of-bound request (address: 0x%x, memSize: 0x%x)\n", _this->current_addr, _this->size); return; } _this->trace.msg(vp::trace::LEVEL_DEBUG, "Writing byte (address: 0x%x, value: 0x%x)\n", _this->current_addr, (uint8_t)_this->pending_word); _this->mem_data[_this->current_addr++] = _this->pending_word; } } } void spiflash::sector_erase_done(void *__this, vp::clock_event *event) { spiflash *_this = (spiflash *)__this; _this->trace.msg(vp::trace::LEVEL_INFO, "Sector erase done\n"); _this->sr2v.raw |= 1<<2; } void spiflash::sector_erase(void *__this, int data_0, int data_1, int data_2, int data_3) { spiflash *_this = (spiflash *)__this; if (_this->pending_bits == 0) _this->sr2v.raw &= ~(1<<2); _this->enqueue_bits(data_0, data_1, data_2, data_3); if (_this->pending_bits == 24) { _this->current_addr = _this->pending_word; _this->trace.msg(vp::trace::LEVEL_INFO, "Received address (address: 0x%x)\n", _this->current_addr); _this->event_enqueue(_this->sector_erase_event, 1000000); } } void spiflash::read_sr2v_start(void *__this) { spiflash *_this = (spiflash *)__this; _this->pending_word = _this->sr2v.raw; _this->read = true; _this->send_bits(); } void spiflash::read_sr2v(void *__this, int data_0, int data_1, int data_2, int data_3) { spiflash *_this = (spiflash *)__this; _this->send_bits(); } void spiflash::quad_read(void *__this, int data_0, int data_1, int data_2, int data_3) { spiflash *_this = (spiflash *)__this; if (_this->pending_bits == 0) { _this->quad = true; } _this->enqueue_bits(data_0, data_1, data_2, data_3); if (_this->pending_bits == 32) { _this->current_addr = _this->pending_word; _this->trace.msg(vp::trace::LEVEL_INFO, "Received address (address: 0x%x)\n", _this->current_addr); } if (_this->pending_bits == 40) { int mode = _this->pending_word & 0xff; _this->trace.msg(vp::trace::LEVEL_INFO, "Received mode (value: 0x%x)\n", mode); _this->read = true; } if (_this->pending_bits >= 40) { if (_this->pending_bits % 8 == 0) { if (_this->current_addr >= _this->size) { _this->warning.force_warning("Received out-of-bound request (address: 0x%x, memSize: 0x%x)\n", _this->current_addr, _this->size); return; } _this->pending_word = _this->mem_data[_this->current_addr++]; } } _this->send_bits(); } void spiflash::single_read(void *__this, int data_0, int data_1, int data_2, int data_3) { spiflash *_this = (spiflash *)__this; _this->enqueue_bits(data_0, data_1, data_2, data_3); if (_this->pending_bits == 24) { _this->current_addr = _this->pending_word & 0xffffff; _this->read = true; _this->trace.msg(vp::trace::LEVEL_INFO, "Received address (address: 0x%x)\n", _this->current_addr); } if (_this->pending_bits >= 24) { if (_this->pending_bits % 8 == 0) { if (_this->current_addr >= _this->size) { _this->warning.force_warning("Received out-of-bound request (address: 0x%x, memSize: 0x%x)\n", _this->current_addr, _this->size); return; } _this->pending_word = _this->mem_data[_this->current_addr++]; } } _this->send_bits(); } void spiflash::enqueue_bits(int data_0, int data_1, int data_2, int data_3) { if (!this->quad) { if (!this->read) { this->trace.msg(vp::trace::LEVEL_TRACE, "Handling single data (data_0: %d)\n", data_0); this->pending_word = (this->pending_word << 1) | data_0; } this->pending_bits++; } else { if (!this->read) { this->trace.msg(vp::trace::LEVEL_TRACE, "Handling quad data (data_0: %d, data_1: %d, data_2: %d, data_3: %d)\n", data_0, data_1, data_2, data_3); this->pending_word = (this->pending_word << 4) | (data_3 << 3) | (data_2 << 2) | (data_1 << 1) | (data_0 << 0); } this->pending_bits += 4; } } void spiflash::send_bits() { if (this->read) { if (!this->quad) { unsigned int value = (this->pending_word >> 7) & 0x1; this->pending_word <<= 1; this->trace.msg(vp::trace::LEVEL_TRACE, "Sending single data (data_0: %d)\n", value); this->in_itf.sync(0, value, 0, 0, 2); } else { unsigned int value = (this->pending_word >> 4) & 0xf; this->pending_word <<= 4; this->trace.msg(vp::trace::LEVEL_TRACE, "Sending quad data (data_0: %d, data_1: %d, data_2: %d, data_3: %d)\n", (value >> 0) & 1, (value >> 1) & 1, (value >> 2) & 1, (value >> 3) & 1); this->in_itf.sync((value >> 0) & 1, (value >> 1) & 1, (value >> 2) & 1, (value >> 3) & 1, 0xf); } } } void spiflash::write_any_register(void *__this, int data_0, int data_1, int data_2, int data_3) { spiflash *_this = (spiflash *)__this; _this->enqueue_bits(data_0, data_1, data_2, data_3); if (_this->pending_bits == 32) { unsigned int addr = _this->pending_word >> 8; unsigned int value = _this->pending_word & 0xff; if (addr == 0x800002) { _this->trace.msg(vp::trace::LEVEL_INFO, "Writing cr1 register (value: %d)\n", value); _this->cr1.raw = value; } _this->start_command(); } } void spiflash::start_command() { this->waiting_command = true; this->pending_bits = 8; this->quad = false; this->read = false; this->pending_word = 0; } void spiflash::handle_data(int data_0, int data_1, int data_2, int data_3) { if (this->waiting_command) { this->trace.msg(vp::trace::LEVEL_TRACE, "Handling single data (data_0: %d)\n", data_0); this->pending_word = (this->pending_word << 1) | data_0; this->pending_bits--; if (this->pending_bits == 0) { this->waiting_command = false; this->pending_command_id = this->pending_word & 0xff; this->pending_command = this->commands[this->pending_command_id]; if (this->pending_command == NULL) { this->warning.force_warning("Received unknown command (cmd: 0x%x)\n", this->pending_command_id); this->start_command(); return; } this->trace.msg(vp::trace::LEVEL_TRACE, "Received command (ID: 0x%x, name: %s)\n", this->pending_command_id, this->pending_command->desc.c_str()); if (this->pending_command->start_handler) this->pending_command->start_handler(this); } } else { if (this->pending_command->handler) this->pending_command->handler(this, data_0, data_1, data_2, data_3); } } void spiflash::sync(void *__this, int sck, int data_0, int data_1, int data_2, int data_3, int mask) { spiflash *_this = (spiflash *)__this; _this->trace.msg(vp::trace::LEVEL_TRACE, "Received edge (sck: %d, data_0: %d, data_1: %d, data_2: %d, data_3: %d)\n", sck, data_0, data_1, data_2, data_3); if (sck) _this->handle_data(data_0, data_1, data_2, data_3); } void spiflash::sync_cycle(void *__this, int data_0, int data_1, int data_2, int data_3, int mask) { spiflash *_this = (spiflash *)__this; _this->handle_data(data_0, data_1, data_2, data_3); } void spiflash::cs_sync(void *__this, bool active) { spiflash *_this = (spiflash *)__this; _this->trace.msg(vp::trace::LEVEL_TRACE, "Received CS sync (value: %d)\n", active); if (active == false) { _this->start_command(); } } int spiflash::build() { traces.new_trace("trace", &trace, vp::DEBUG); this->in_itf.set_sync_meth(&spiflash::sync); this->in_itf.set_sync_cycle_meth(&spiflash::sync_cycle); this->new_slave_port("input", &this->in_itf); this->cs_itf.set_sync_meth(&spiflash::cs_sync); this->new_slave_port("cs", &this->cs_itf); memset((void *)this->commands, 0, sizeof(commands)); for (unsigned int i=0; i<sizeof(commands_descs)/sizeof(command_t) ; i++) { command_t *command = &commands_descs[i]; this->commands[command->id] = command; } this->size = this->get_config_int("size"); this->mem_data = new uint8_t[this->size]; memset(this->mem_data, 0x57, this->size); this->cr1.raw = 0; this->quad = false; this->sector_erase_event = event_new(spiflash::sector_erase_done); this->sr2v.raw = 0; return 0; } void spiflash::start() { this->trace.msg(vp::trace::LEVEL_INFO, "Building spiFlash (size: 0x%x)\n", this->size); // Preload the memory js::config *stim_file_conf = this->get_js_config()->get("stim_file"); if (stim_file_conf == NULL) { stim_file_conf = this->get_js_config()->get("content/image"); } if (stim_file_conf == NULL) { stim_file_conf = this->get_js_config()->get("preload_file"); } if (stim_file_conf != NULL) { string path = stim_file_conf->get_str(); this->get_trace()->msg(vp::trace::LEVEL_INFO, "Preloading memory with stimuli file (path: %s)\n", path.c_str()); FILE *file = fopen(path.c_str(), "rb"); if (file == NULL) { this->get_trace()->fatal("Unable to open stim file: %s, %s\n", path.c_str(), strerror(errno)); return; } if (fread(this->mem_data, 1, size, file) == 0) { this->get_trace()->fatal("Failed to read stim file: %s, %s\n", path.c_str(), strerror(errno)); return; } } js::config *slm_stim_file_conf = this->get_js_config()->get("slm_stim_file"); if (slm_stim_file_conf != NULL) { string path = stim_file_conf->get_str(); this->get_trace()->msg(vp::trace::LEVEL_INFO, "Preloading memory with slm stimuli file (path: %s)\n", path.c_str()); FILE *file = fopen(path.c_str(), "r"); if (file == NULL) { this->get_trace()->fatal("Unable to open stim file: %s, %s\n", path.c_str(), strerror(errno)); return; } while(1) { unsigned int addr, value; int err; if ((err = fscanf(file, "@%x %x\n", &addr, &value)) != 2) { if (err == EOF) break; this->get_trace()->fatal("Incorrect stimuli file (path: %s)\n", path.c_str()); return; } if (addr < size) this->mem_data[addr] = value; } } } spiflash::spiflash(js::config *config) : vp::component(config) { } extern "C" vp::component *vp_constructor(js::config *config) { return new spiflash(config); }
[ "nazareno.bruschi@studio.unibo.it" ]
nazareno.bruschi@studio.unibo.it
2726825b4fafa2b60873b391ccfb3d492cf811ec
5b7be40ce294fac1fb7ec6085d5705e2bf0fd890
/src/3d-party/boundingmesh/SimpleOptimizer.h
f6e5cf30e43e443fcff96b9c76a8940ff01157a4
[]
no_license
jedrzejowski/sokar-app
97b7997cea12fbb0fd55f33b625b382ce1eeb7a4
c918a3d5383c68b0f3fb042c014549fc25ba1991
refs/heads/master
2022-05-19T03:03:46.879716
2022-03-29T22:36:48
2022-03-29T22:36:48
132,521,466
1
0
null
null
null
null
UTF-8
C++
false
false
1,896
h
// Copyright (c) 2019, the boundingmesh authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this // list of conditions and the following disclaimer. // // * Redistributions in binary form must reproduce the above copyright // notice, this // list of conditions and the following disclaimer in the documentation // and/or // other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS // IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE // LIABLE FOR // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED // AND ON // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF // THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef BOUNDINGMESH_SIMPLEOPTIMIZER_H #define BOUNDINGMESH_SIMPLEOPTIMIZER_H #include "boundingmesh/OptimizerInterface.h" namespace boundingmesh { class SimpleOptimizer : public OptimizerInterface { public: bool optimize(const Matrix44& qem, const std::vector<Plane>& constraints, bool constrain_outside_planes, Vector3* solution, Real* cost) const final; }; } // namespace boundingmesh #endif // BOUNDINGMESH_SIMPLEOPTIMIZER_H
[ "adam@jedrzejowski.pl" ]
adam@jedrzejowski.pl
9e86ebed0c26e1c5c1a8210c35bbaf949f7c8497
8567438779e6af0754620a25d379c348e4cd5a5d
/net/tools/quic/test_tools/mock_quic_time_wait_list_manager.h
a2d7fa6cee481e4a158b9abfa0ecbb57fab4b94d
[ "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
C++
false
false
2,218
h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ #include "net/tools/quic/quic_time_wait_list_manager.h" #include "testing/gmock/include/gmock/gmock.h" namespace net { namespace test { class MockTimeWaitListManager : public QuicTimeWaitListManager { public: MockTimeWaitListManager(QuicPacketWriter* writer, Visitor* visitor, QuicConnectionHelperInterface* helper, QuicAlarmFactory* alarm_factory); ~MockTimeWaitListManager() override; MOCK_METHOD4(AddConnectionIdToTimeWait, void(QuicConnectionId connection_id, QuicVersion version, bool connection_rejected_statelessly, std::vector<std::unique_ptr<QuicEncryptedPacket>>* termination_packets)); void QuicTimeWaitListManager_AddConnectionIdToTimeWait( QuicConnectionId connection_id, QuicVersion version, bool connection_rejected_statelessly, std::vector<std::unique_ptr<QuicEncryptedPacket>>* termination_packets) { QuicTimeWaitListManager::AddConnectionIdToTimeWait( connection_id, version, connection_rejected_statelessly, termination_packets); } MOCK_METHOD5(ProcessPacket, void(const QuicSocketAddress& server_address, const QuicSocketAddress& client_address, QuicConnectionId connection_id, QuicPacketNumber packet_number, const QuicEncryptedPacket& packet)); MOCK_METHOD4(SendVersionNegotiationPacket, void(QuicConnectionId connection_id, const QuicVersionVector& supported_versions, const QuicSocketAddress& server_address, const QuicSocketAddress& client_address)); }; } // namespace test } // namespace net #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_
[ "hedonist.ky@gmail.com" ]
hedonist.ky@gmail.com
05f5bf7d577bcb6b66963d940dd82237249ab1a7
3390f604b39fe90933bc4e919ba9d6720dc66537
/src/robocontrol/controller/interrupt/Interrupt.h
0e4d543fbdd9641553e4ed9f7623f7f87e871832
[]
no_license
hiroshi-mikuriya/nxt
880aa9ebee679797d8b2d5c25054e027857d2263
edfd585548447117eb3605ef0f451c8bf8346629
refs/heads/master
2021-05-09T07:01:44.238374
2018-01-29T07:33:58
2018-01-29T07:33:58
119,347,875
0
0
null
null
null
null
UTF-8
C++
false
false
673
h
/* * Interrupt.h * * Created on: 2012/07/31 * Author: HIROSHI MIKURIYA */ #ifndef INTERRUPT_H_ #define INTERRUPT_H_ #include "event/parts/EventParts.h" namespace controller { class Interrupt { public: /** * イベントとそれが発生したときに行う動作のペア */ struct EventProcT { event::parts::Event m_event; void (*m_proc)(); }; private: Interrupt(); bool m_enable; EventProcT * m_begin; EventProcT * m_end; public: static Interrupt & GetInstance(); void Do(); void Set(EventProcT * begin, EventProcT * end); void Enable(bool enable); }; } /* namespace controller */ #endif /* INTERRUPT_H_ */
[ "hiroshi.mikuriya@fxat.co.jp" ]
hiroshi.mikuriya@fxat.co.jp
71aae707a37a8a181b0a945ac803a8e92a17bb7c
cb2c21441bea57d04e25d2bcb6bf3e41aad8e85e
/src/heightmap.h
f3894efba414914d11c9da233afd8467dc74c3df
[]
no_license
heitaoflower/hmm
776576808fa05ad8905a25b1045635d3010e77c3
47906d42c1968c88339799437d099e3efb541a7e
refs/heads/master
2020-07-11T03:28:28.921612
2019-08-26T03:30:43
2019-08-26T03:30:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
679
h
#pragma once #include <glm/glm.hpp> #include <string> #include <utility> #include <vector> class Heightmap { public: Heightmap(const std::string &path); int Width() const { return m_Width; } int Height() const { return m_Height; } float At(const int x, const int y) const { return m_Data[y * m_Width + x]; } float At(const glm::ivec2 p) const { return m_Data[p.y * m_Width + p.x]; } std::pair<glm::ivec2, float> FindCandidate( const glm::ivec2 p0, const glm::ivec2 p1, const glm::ivec2 p2) const; private: int m_Width; int m_Height; std::vector<float> m_Data; };
[ "fogleman@gmail.com" ]
fogleman@gmail.com
30326183f91a7fa5f340d10c291805a764d559ea
7abeae5aa8f2374df600b229b851d51b0a2ec025
/FitSDKRelease_21.40.00/cpp/fit_monitoring_info_mesg_listener.hpp
c35aeeec721b0e46bf102e7eb46f511e30e8a7ac
[ "Apache-2.0" ]
permissive
JoyKuan/ArchitecturalDesign_AI
c66ffe0a98a67b6a36a6ffb60071e9a97de90014
71442dcfdba20564a772a6807e43cbb86dafc14d
refs/heads/main
2023-02-28T07:45:46.378995
2021-02-02T21:54:55
2021-02-02T21:54:55
322,163,300
1
0
null
null
null
null
UTF-8
C++
false
false
1,356
hpp
//////////////////////////////////////////////////////////////////////////////// // The following FIT Protocol software provided may be used with FIT protocol // devices only and remains the copyrighted property of Garmin Canada Inc. // The software is being provided on an "as-is" basis and as an accommodation, // and therefore all warranties, representations, or guarantees of any kind // (whether express, implied or statutory) including, without limitation, // warranties of merchantability, non-infringement, or fitness for a particular // purpose, are specifically disclaimed. // // Copyright 2020 Garmin Canada Inc. //////////////////////////////////////////////////////////////////////////////// // ****WARNING**** This file is auto-generated! Do NOT edit this file. // Profile Version = 21.40Release // Tag = production/akw/21.40.00-0-g813c158 //////////////////////////////////////////////////////////////////////////////// #if !defined(FIT_MONITORING_INFO_MESG_LISTENER_HPP) #define FIT_MONITORING_INFO_MESG_LISTENER_HPP #include "fit_monitoring_info_mesg.hpp" namespace fit { class MonitoringInfoMesgListener { public: virtual ~MonitoringInfoMesgListener() {} virtual void OnMesg(MonitoringInfoMesg& mesg) = 0; }; } // namespace fit #endif // !defined(FIT_MONITORING_INFO_MESG_LISTENER_HPP)
[ "kuanhuil@usc.edu" ]
kuanhuil@usc.edu
d9ee5273f6596417326b9459356bb714a4e25829
20a6df4c4c9183b80f23f2e77806e345c4ca1473
/7. Speech Contest Process Management System/speechManager.cpp
488dd05c0adaa16acc6174d9e5728aa1ea55e9b3
[ "MIT" ]
permissive
weijiew/cpp-study-cases
a14627980ba622463bbf244a57b26796f508e003
d204efa9a33f18ff7ebdec58bdba4056c25f464a
refs/heads/main
2023-03-01T16:26:35.275203
2021-02-02T09:00:13
2021-02-02T09:00:13
308,617,811
1
0
null
null
null
null
GB18030
C++
false
false
1,185
cpp
#include <iostream> #include "speechManager.h" SpeechManager::SpeechManager(){ this->initSpeech(); } void SpeechManager::Show_Menu(){ cout << "**********************" << endl; cout << "*** 欢迎参加演讲比赛 ***" << endl; cout << "*** 1. 开始演讲比赛。***" << endl; cout << "*** 2. 查看往届记录。***" << endl; cout << "*** 3. 清空比赛记录。***" << endl; cout << "*** 0. 退出比赛程序。***" << endl; cout << "**********************" << endl; cout << endl; } void SpeechManager::exitSystem(){ cout << "欢迎下次使用!" << endl; system("pause"); exit(0); } void SpeechManager::initSpeech(){ this->v1.clear(); this->v2.clear(); this->vVictory.clear(); this->m_Speaker.clear(); // 初始化比赛轮次 this->m_Index = 1; } void SpeechManager::createSpeaker(){ string nameSeed = "ABCDEFGHIJKL"; for (int i = 0; i < nameSeed; i++){ string name = "选手"; name += nameSeed[i]; Speaker sp; sp.m_Name = name; for (int i = 0; i < 2; i++){ sp.m_Score[i] = 0; } } } SpeechManager::~SpeechManager(){ }
[ "836678589@qq.com" ]
836678589@qq.com
d809d4175f1a25df9c66db34f29fb78da7ccbb33
295356e2cf152ae3a24e78ea409b44e9ee7dccc3
/ns-allinone-3.17/ns-3.17/src/lte/model/epc-ue-nas.cc
7d3dafaf70d69901af5689e999118a00158a7cf1
[]
no_license
evyhsu/ho-lte
37dc21b3d35c3c1f46f65e644abed40594c2ddaf
7c546549ff2299d826ea4149fc8743da4bef9da3
refs/heads/master
2021-01-10T20:08:41.571656
2014-04-24T02:33:57
2014-04-24T02:33:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,889
cc
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) * * 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; * * 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 * * Author: Nicola Baldo <nbaldo@cttc.es> */ #include <ns3/fatal-error.h> #include <ns3/log.h> #include <ns3/epc-helper.h> #include "lte-enb-net-device.h" #include "epc-ue-nas.h" #include "lte-as-sap.h" NS_LOG_COMPONENT_DEFINE ("EpcUeNas"); namespace ns3 { const char* g_ueNasStateName[EpcUeNas::NUM_STATES] = { "OFF", "ATTACHING", "IDLE_REGISTERED", "CONNECTING_TO_EPC", "ACTIVE " }; std::string ToString (EpcUeNas::State s) { return std::string (g_ueNasStateName[s]); } NS_OBJECT_ENSURE_REGISTERED (EpcUeNas); EpcUeNas::EpcUeNas () : m_state (OFF), m_asSapProvider (0), m_bidCounter (0) { NS_LOG_FUNCTION (this); m_asSapUser = new MemberLteAsSapUser<EpcUeNas> (this); } EpcUeNas::~EpcUeNas () { NS_LOG_FUNCTION (this); } void EpcUeNas::DoDispose () { NS_LOG_FUNCTION (this); delete m_asSapUser; } TypeId EpcUeNas::GetTypeId (void) { static TypeId tid = TypeId ("ns3::EpcUeNas") .SetParent<Object> () .AddConstructor<EpcUeNas> () .AddTraceSource ("StateTransition", "fired upon every UE NAS state transition", MakeTraceSourceAccessor (&EpcUeNas::m_stateTransitionCallback)) ; return tid; } void EpcUeNas::SetDevice (Ptr<NetDevice> dev) { m_device = dev; } void EpcUeNas::SetImsi (uint64_t imsi) { m_imsi = imsi; NS_LOG_FUNCTION ("yen EpcUeNas::SetImsi :" << imsi); } /*-----------------------yen add---------------*/ void EpcUeNas::SetMulticastGroup (uint16_t multicastgroup) { m_multicastgroup = multicastgroup; NS_LOG_FUNCTION ("yen EpcUeNas::multicastgroup :" << multicastgroup); } void EpcUeNas::SetAsSapProvider (LteAsSapProvider* s) { m_asSapProvider = s; } LteAsSapUser* EpcUeNas::GetAsSapUser () { return m_asSapUser; } void EpcUeNas::SetForwardUpCallback (Callback <void, Ptr<Packet> > cb) { m_forwardUpCallback = cb; } void EpcUeNas::Connect (uint16_t cellId, uint16_t earfcn) { NS_LOG_FUNCTION (this); // since RRC Idle Mode cell selection is not supported yet, we // force the UE RRC to be camped on a specific eNB m_asSapProvider->ForceCampedOnEnb (cellId, earfcn); // tell RRC to go into connected mode m_asSapProvider->Connect (); } void EpcUeNas::Disconnect () { NS_LOG_FUNCTION (this); m_asSapProvider->Disconnect (); SwitchToState (OFF); } void EpcUeNas::ActivateEpsBearer (EpsBearer bearer, Ptr<EpcTft> tft) { NS_LOG_FUNCTION (this); switch (m_state) { case ACTIVE: NS_FATAL_ERROR ("the necessary NAS signaling to activate a bearer after the initial context has already been setup is not implemented"); break; default: BearerToBeActivated btba; btba.bearer = bearer; btba.tft = tft; m_bearersToBeActivatedList.push_back (btba); break; } } bool EpcUeNas::Send (Ptr<Packet> packet) { NS_LOG_FUNCTION (this << packet); switch (m_state) { case ACTIVE: { uint32_t id = m_tftClassifier.Classify (packet, EpcTft::UPLINK); NS_ASSERT ((id & 0xFFFFFF00) == 0); //yen //NS_ASSERT ((id & 0xFFFF0000) == 0); uint8_t bid = (uint8_t) (id & 0x000000FF); //yen NS_LOG_FUNCTION ("YEN EpcUeNas bid: " << bid << " id: " << id); if (bid == 0) { return false; } else { m_asSapProvider->SendData (packet, bid); return true; } } break; default: NS_LOG_WARN (this << " NAS OFF, discarding packet"); return false; break; } } void EpcUeNas::DoNotifyConnectionSuccessful () { NS_LOG_FUNCTION (this); SwitchToState (ACTIVE); // will eventually activate dedicated bearers } void EpcUeNas::DoNotifyConnectionFailed () { NS_FATAL_ERROR ("connection failed, it should not happen with the current model"); } void EpcUeNas::DoRecvData (Ptr<Packet> packet) { NS_LOG_FUNCTION (this); m_forwardUpCallback (packet); } void EpcUeNas::DoNotifyConnectionReleased () { NS_LOG_FUNCTION (this); SwitchToState (OFF); } void EpcUeNas::DoActivateEpsBearer (EpsBearer bearer, Ptr<EpcTft> tft) { NS_LOG_FUNCTION (this); NS_ASSERT_MSG (m_bidCounter < 11, "cannot have more than 11 EPS bearers"); uint8_t bid = ++m_bidCounter; //yen //uint8_t bid = 20; m_tftClassifier.Add (tft, bid); } void EpcUeNas::SwitchToState (State newState) { NS_LOG_FUNCTION (this << newState); State oldState = m_state; m_state = newState; NS_LOG_INFO ("IMSI " << m_imsi << " NAS " << ToString (oldState) << " --> " << ToString (newState)); m_stateTransitionCallback (oldState, newState); // actions to be done when entering a new state: switch (m_state) { case ACTIVE: for (std::list<BearerToBeActivated>::iterator it = m_bearersToBeActivatedList.begin (); it != m_bearersToBeActivatedList.end (); m_bearersToBeActivatedList.erase (it++)) { DoActivateEpsBearer (it->bearer, it->tft); } break; default: break; } } } // namespace ns3
[ "yenchu@yenchu.(none)" ]
yenchu@yenchu.(none)
8381175eba1d6009310cc6e02744e8870590bfcc
e6ec3326bfba74656e5beb7f1599a87e210cc86b
/threads/threadsgroup.cpp
5a2550d239e83aaf5adcaf837cc3e1176b69505b
[]
no_license
fengjixuchui/syslib
1d357983120386ab11d1a1cb64fd8ec30af24a56
8e3121e1d0cbd0021a155801badb53bd08fea6d9
refs/heads/master
2021-05-27T20:45:02.751275
2014-10-12T07:06:37
2014-10-12T07:06:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,068
cpp
#include "sys_includes.h" #include "syslib\criticalsections.h" #include "syslib\mem.h" #include "syslib\system.h" #include "syslib\threadsgroup.h" #include "threadsgroup.h" SYSLIBFUNC(HANDLE) ThreadsGroup_Create() { THREADS_GROUP *lpGroup=(THREADS_GROUP*)MemAlloc(sizeof(THREADS_GROUP)); if (lpGroup) InitializeSafeCriticalSection(&lpGroup->csGroup); return (HANDLE)lpGroup; } SYSLIBFUNC(BOOL) ThreadsGroup_CreateThreadEx(HANDLE hGroup,SIZE_T dwStackSize,LPTHREAD_START_ROUTINE lpStartAddress,LPVOID lpParameter,LPDWORD lpThreadId,LPHANDLE lpThreadHandle,DWORD dwFlags) { BOOL bRet=false; if (hGroup) { ThreadsGroup_CloseTerminatedHandles(hGroup); THREADS_GROUP *lpGroup=(THREADS_GROUP*)hGroup; EnterSafeCriticalSection(&lpGroup->csGroup); { if (lpGroup->dwCount < ARRAYSIZE(lpGroup->hThreads)) { if (lpStartAddress) { HANDLE hThread; if (dwFlags & THREADGROUP_SAFETHREAD) hThread=SysCreateThreadSafe(NULL,dwStackSize,lpStartAddress,lpParameter,0,lpThreadId); else hThread=CreateThread(NULL,dwStackSize,lpStartAddress,lpParameter,0,lpThreadId); if (hThread) { lpGroup->hThreads[lpGroup->dwCount++]=hThread; if (lpThreadHandle) DuplicateHandle(GetCurrentProcess(),hThread,GetCurrentProcess(),lpThreadHandle,0,FALSE,DUPLICATE_SAME_ACCESS); bRet=true; } } } } LeaveSafeCriticalSection(&lpGroup->csGroup); } return bRet; } SYSLIBFUNC(BOOL) ThreadsGroup_CreateThread(HANDLE hGroup,SIZE_T dwStackSize,LPTHREAD_START_ROUTINE lpStartAddress,LPVOID lpParameter,LPDWORD lpThreadId,LPHANDLE lpThreadHandle) { return ThreadsGroup_CreateThreadEx(hGroup,dwStackSize,lpStartAddress,lpParameter,lpThreadId,lpThreadHandle,THREADGROUP_SAFETHREAD); } SYSLIBFUNC(BOOL) ThreadsGroup_WaitForAllExit(HANDLE hGroup,DWORD dwTimeout) { BOOL bRet=false; if (hGroup) { THREADS_GROUP *lpGroup=(THREADS_GROUP*)hGroup; EnterSafeCriticalSection(&lpGroup->csGroup); bRet=((lpGroup->dwCount == 0) || (SysWaitForMultipleObjects(lpGroup->dwCount,lpGroup->hThreads,TRUE,dwTimeout) == WAIT_OBJECT_0)); LeaveSafeCriticalSection(&lpGroup->csGroup); } return bRet; } SYSLIBFUNC(void) ThreadsGroup_CloseGroup(HANDLE hGroup) { if (hGroup) { THREADS_GROUP *lpGroup=(THREADS_GROUP*)hGroup; EnterSafeCriticalSection(&lpGroup->csGroup); { for (DWORD i=0; i < lpGroup->dwCount; i++) SysCloseHandle(lpGroup->hThreads[i]); } LeaveSafeCriticalSection(&lpGroup->csGroup); DeleteSafeCriticalSection(&lpGroup->csGroup); MemFree(hGroup); } return; } SYSLIBFUNC(void) ThreadsGroup_CloseGroupAndTerminateThreads(HANDLE hGroup) { if (hGroup) { THREADS_GROUP *lpGroup=(THREADS_GROUP*)hGroup; EnterSafeCriticalSection(&lpGroup->csGroup); { for (DWORD i=0; i < lpGroup->dwCount; i++) { TerminateThread(lpGroup->hThreads[i],0xDEAD); SysCloseHandle(lpGroup->hThreads[i]); } } LeaveSafeCriticalSection(&lpGroup->csGroup); DeleteSafeCriticalSection(&lpGroup->csGroup); MemFree(hGroup); } return; } SYSLIBFUNC(void) ThreadsGroup_CloseTerminatedHandles(HANDLE hGroup) { if (hGroup) { THREADS_GROUP *lpGroup=(THREADS_GROUP*)hGroup; EnterSafeCriticalSection(&lpGroup->csGroup); { DWORD j=0; for(DWORD i=0; i < lpGroup->dwCount; i++) { if (lpGroup->hThreads[i] != NULL) { if (WaitForSingleObject(lpGroup->hThreads[i],0) == WAIT_OBJECT_0) { SysCloseHandle(lpGroup->hThreads[i]); lpGroup->hThreads[i]=NULL; } else { lpGroup->hThreads[j]=lpGroup->hThreads[i]; j++; } } } lpGroup->dwCount=j; } LeaveSafeCriticalSection(&lpGroup->csGroup); } return; } SYSLIBFUNC(DWORD) ThreadsGroup_NumberOfActiveThreads(HANDLE hGroup) { DWORD dwCount=0; if (hGroup) { THREADS_GROUP *lpGroup=(THREADS_GROUP*)hGroup; EnterSafeCriticalSection(&lpGroup->csGroup); { for (DWORD i=0; i < lpGroup->dwCount; i++) { if ((lpGroup->hThreads[i] != NULL) && (WaitForSingleObject(lpGroup->hThreads[i],0) == WAIT_TIMEOUT)) dwCount++; } } LeaveSafeCriticalSection(&lpGroup->csGroup); } return dwCount; }
[ "seledka" ]
seledka
b20244f6f19977708e40b574eae6ef959c767d09
01aec7177f473d28f8bc262c1a72418a97d3dd10
/Thread examples-22-10-20(ipc,mutex,atomic)/Thread examples-22-10-20(ipc,mutex,atomic))/threadmutex.cpp
e8ef03cde2e05db0ee353c79a72838a571b315b3
[]
no_license
99002651/Advanced-cpp
97559344dad89bfd32d1a775c36b619e66a287cb
915c3a4088336829de16a3f3f0123c6adf54b60d
refs/heads/master
2023-01-02T22:00:17.043467
2020-10-27T12:47:35
2020-10-27T12:47:35
307,698,483
0
0
null
null
null
null
UTF-8
C++
false
false
570
cpp
#include<iostream> #include<thread> #include<mutex> std:: mutex mtx; using namespace std; constexpr int maxv=10000; int val=100; void fsample() { std::cout<<"thread a"<<"\n"; for(int i=1;i<=maxv;i++) {mtx.lock(); val++; mtx.unlock();} } void gsample() { std::cout<<"thread b"<<"\n"; for(int i=1;i<=maxv;i++) { mtx.lock(); val--; mtx.unlock();} } int main() { std::cout<<" welcome"<<"\n"; std::thread t1(fsample); std::thread t2(gsample); t1.join(); t2.join(); std::cout<<val; return 0; }
[ "sandyadevi.golakoti@ltts.com" ]
sandyadevi.golakoti@ltts.com
804696e2787be299fd68405b2d556688fa36d3fb
75fc8b7594b2075ff487dc05afdd5ad0a7408c1f
/ElDorito/Source/Blam/Tags/Sounds/Sound/Sound.cpp
b3101f5943bda975158508ea6c0e7af01a4c0843
[]
no_license
NoShotz/ElDorito
929e7b4e033914d15257419c8978d0f5fa598177
a6d2d681e999d2d21f3f8bb3bd272f0771f2d1fe
refs/heads/master
2021-07-25T18:26:25.982270
2020-05-08T17:17:17
2020-05-08T17:17:17
167,758,023
26
35
null
2019-11-24T05:36:13
2019-01-27T01:35:22
C++
UTF-8
C++
false
false
1,497
cpp
#include "Sound.hpp" namespace Blam::Tags::Sounds { Scale* GetScale(Sound* sound) { return &sound->Scale; } PlaybackParameters* GetPlaybackParameters(Sound* sound) { return &sound->PlaybackParameters; } SampleRate GetSampleRate(Sound* sound) { return sound->SampleRate; } PitchRange* GetPitchRange(Sound* sound, int32_t index) { return &sound->PitchRanges[index]; } int32_t GetPitchRangeCount(Sound* sound) { return sound->PitchRanges.Count; } Permutation* GetPermutation(PitchRange* pitchRange, int32_t index) { return &pitchRange->Permutations[index]; } PermutationChunk* GetPermutationChunk(Permutation* permutation, int32_t index) { return &permutation->PermutationChunks[index]; } int32_t GetPermutationCount(PitchRange* pitchRange) { return pitchRange->Permutations.Count; } int32_t GetPermutationChunkCount(Permutation* permutation) { return permutation->PermutationChunks.Count; } int8_t GetCompression(Sound* sound) { return sound->PlatformCodec.Compression; } int8_t GetLoadMode(Sound* sound) { return sound->PlatformCodec.LoadMode; } int8_t GetEncoding(Sound* sound) { return sound->PlatformCodec.Encoding; } int32_t GetNextPermutationChunkIndex(Permutation* permutation, int32_t currentIndex) { if (permutation && currentIndex < permutation->PermutationChunks.Count - 1) return currentIndex + 1; else return -1; } Math::Bounds<int16_t>* GetBendBounds(PitchRange* pitchRange) { return &pitchRange->Bend; } }
[ "noshotz@protonmail.com" ]
noshotz@protonmail.com
bc8e054faaff94da0d5875c547ac4446e50e4a24
6a246869b9f099f043f3e6bd613fc90992ce19fe
/Talat/RectanglePawn.h
4cf69785cf0fe3c410a467d4f072fa887a252cbe
[]
no_license
justcasualguy/Talat
ab9b531dcbc04c9803f76334c769d768684fe7d2
511972d100eda22061f5d6f682963ea36e8b0a82
refs/heads/master
2020-05-24T21:22:12.407155
2019-06-29T13:16:36
2019-06-29T13:16:36
180,581,354
0
0
null
null
null
null
UTF-8
C++
false
false
202
h
#pragma once #include "Pawn.h" class RectanglePawn :public Pawn { public: RectanglePawn(); RectanglePawn(Size size); ~RectanglePawn(); void draw(Board& board, COORD boardField,Color pawnColor); };
[ "kubachw@gmail.com" ]
kubachw@gmail.com
e33ad849a0bab55533ce6a33d8bf6f245441fde9
eedd904304046caceb3e982dec1d829c529da653
/clanlib/ClanLib-2.2.8/Sources/Display/ImageProviders/png_provider.cpp
c31d92d3697751003893a7e9fa8f178761fb8016
[]
no_license
PaulFSherwood/cplusplus
b550a9a573e9bca5b828b10849663e40fd614ff0
999c4d18d2dd4d0dd855e1547d2d2ad5eddc6938
refs/heads/master
2023-06-07T09:00:20.421362
2023-05-21T03:36:50
2023-05-21T03:36:50
12,607,904
4
0
null
null
null
null
UTF-8
C++
false
false
5,430
cpp
/* ** ClanLib SDK ** Copyright (c) 1997-2011 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for any purpose, ** including commercial applications, and to alter it and redistribute it ** freely, subject to the following restrictions: ** ** 1. The origin of this software must not be misrepresented; you must not ** claim that you wrote the original software. If you use this software ** in a product, an acknowledgment in the product documentation would be ** appreciated but is not required. ** 2. Altered source versions must be plainly marked as such, and must not be ** misrepresented as being the original software. ** 3. This notice may not be removed or altered from any source distribution. ** ** Note: Some of the libraries ClanLib may link to may have additional ** requirements or restrictions. ** ** File Author(s): ** ** (if your name is missing here, please add it) ** Harry Storbacka */ #include "Display/precomp.h" #include "API/Core/System/exception.h" #include "API/Core/IOData/virtual_file_system.h" #include "API/Core/IOData/virtual_directory.h" #include "API/Core/Text/string_help.h" #include "API/Core/IOData/path_help.h" #include "API/Display/ImageProviders/png_provider.h" #include "png_provider_impl.h" #include <cerrno> #include <cstdio> class CustomIOFunctions { public: static void read(png_structp png_ptr, png_bytep data, png_size_t length); static void write(png_structp png_ptr, png_bytep data, png_size_t length); static void flush(png_structp png_ptr); }; void CustomIOFunctions::read( png_structp png_ptr, png_bytep data, png_size_t length ) { CL_IODevice *iodev = (CL_IODevice*)png_ptr->io_ptr; iodev->read(data, length); } void CustomIOFunctions::write( png_structp png_ptr, png_bytep data, png_size_t length ) { CL_IODevice *iodev = (CL_IODevice*)png_ptr->io_ptr; iodev->write(data, length); } void CustomIOFunctions::flush( png_structp png_ptr ) { // CL_IODevice doesn't have a flush(). } ///////////////////////////////////////////////////////////////////////////// // CL_PNGProvider construction: CL_PixelBuffer CL_PNGProvider::load( const CL_String &filename, const CL_VirtualDirectory &directory) { CL_PNGProvider_Impl png(filename, directory); CL_PixelBuffer pbuff(png.width, png.height, png.sized_format, png.palette, png.get_data()); pbuff.set_colorkey(png.uses_src_colorkey(), png.get_src_colorkey()); return pbuff; } CL_PixelBuffer CL_PNGProvider::load( const CL_String &fullname) { CL_String path = CL_PathHelp::get_fullpath(fullname, CL_PathHelp::path_type_file); CL_String filename = CL_PathHelp::get_filename(fullname, CL_PathHelp::path_type_file); CL_VirtualFileSystem vfs(path); CL_VirtualDirectory dir = vfs.get_root_directory(); return CL_PNGProvider::load(filename, dir); } CL_PixelBuffer CL_PNGProvider::load(CL_IODevice &iodev) { CL_PNGProvider_Impl png(iodev); CL_PixelBuffer pbuff(png.width, png.height, png.sized_format, png.palette, png.get_data()); pbuff.set_colorkey(png.uses_src_colorkey(), png.get_src_colorkey()); return pbuff; } void CL_PNGProvider::save( CL_PixelBuffer buffer, const CL_String &filename, CL_VirtualDirectory &directory) { CL_IODevice file = directory.open_file(filename, CL_File::create_always); save(buffer, file); } void CL_PNGProvider::save( CL_PixelBuffer buffer, const CL_String &fullname) { CL_String path = CL_PathHelp::get_fullpath(fullname, CL_PathHelp::path_type_file); CL_String filename = CL_PathHelp::get_filename(fullname, CL_PathHelp::path_type_file); CL_VirtualFileSystem vfs(path); CL_VirtualDirectory dir = vfs.get_root_directory(); CL_PNGProvider::save(buffer, filename, dir); } void CL_PNGProvider::save(CL_PixelBuffer buffer, CL_IODevice &iodev) { if (buffer.get_format() != cl_abgr8) { CL_PixelBuffer newbuf( buffer.get_width(), buffer.get_height(), cl_abgr8); buffer.convert(newbuf); buffer = newbuf; } png_structp png_ptr; png_infop info_ptr; png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); info_ptr = png_create_info_struct(png_ptr); png_set_read_fn(png_ptr, &iodev, &CustomIOFunctions::read); png_set_write_fn(png_ptr, &iodev, &CustomIOFunctions::write, CustomIOFunctions::flush); #ifndef PNG_COLOR_TYPE_RGBA #define PNG_COLOR_TYPE_RGBA PNG_COLOR_TYPE_RGB_ALPHA #endif png_set_IHDR( png_ptr, info_ptr, buffer.get_width(), buffer.get_height(), 8 /* bitdepth */, PNG_COLOR_TYPE_RGBA, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); png_write_info(png_ptr, info_ptr); png_uint_32 height = buffer.get_height(); png_uint_32 row_bytes = buffer.get_width()*4; png_byte* image = new png_byte[height * row_bytes]; png_bytep* row_pointers = new png_bytep[height]; // fill the image with data for (int i = 0; i < buffer.get_width()*buffer.get_height()*4; ++i) image[i] = static_cast<unsigned char*>(buffer.get_data())[i]; // generate row pointers for (unsigned int k = 0; k < height; k++) row_pointers[k] = image + (k * row_bytes); png_write_image(png_ptr, row_pointers); png_write_end(png_ptr, info_ptr); png_destroy_write_struct( &png_ptr, &info_ptr ); delete[] image; delete[] row_pointers; }
[ "paulfsherwood@gmail.com" ]
paulfsherwood@gmail.com
9cff6751ec88c916865606b41c23733dc53d459d
7ada3d5c958cfdaeefa3d67d0815bb027006f65f
/Engine/Engine/inc/Core/RTTI/RTTIEditorHelpers.h
d8295984da5411baf677dfcf1199444da644641a
[]
no_license
JSpink95/cypher
55778e2db3a842b502027a8d429393837eed0bfb
d6567e685a03a033b3ab447a84ea1b999a76b3ad
refs/heads/master
2020-11-27T11:55:41.064332
2020-02-20T17:17:37
2020-02-20T17:17:37
229,427,654
0
0
null
null
null
null
UTF-8
C++
false
false
6,553
h
////////////////////////////////////////////////////////////////////////// // File : RTTIEditorHelpers.h // Created By : Jack Spink // Created On : [07/02/2020] ////////////////////////////////////////////////////////////////////////// #pragma once ////////////////////////////////////////////////////////////////////////// #include "Core/Types.h" ////////////////////////////////////////////////////////////////////////// #include "Core/Utility/Console.h" ////////////////////////////////////////////////////////////////////////// #include "Core/RTTI/RTTIObject.h" #include "Core/RTTI/TypeRegister.h" ////////////////////////////////////////////////////////////////////////// #include "imgui.h" ////////////////////////////////////////////////////////////////////////// #include <string> #include <algorithm> ////////////////////////////////////////////////////////////////////////// class Mesh; class Material; struct ComponentId; ////////////////////////////////////////////////////////////////////////// namespace RTTI { namespace Helper { bool ImGuiStringGetter(void* data, s32 idx, const char** out); } ////////////////////////////////////////////////////////////////////////// template<typename TValue> void DisplayEdit(const std::string& id, TValue& value); ////////////////////////////////////////////////////////////////////////// template<template<typename> typename TList, typename TValue> void DisplayListEdit(const std::string& id, TList<TValue>& list, s32& selected); template<template<typename, typename> typename TMap, typename TKey, typename TValue> void DisplayMapEdit(const std::string& id, TMap<TKey, TValue>& map, TKey& newKeyId); ////////////////////////////////////////////////////////////////////////// // specialised displays template<> void DisplayEdit<bool>(const std::string& id, bool& editable); template<> void DisplayEdit<s32>(const std::string& id, s32& editable); template<> void DisplayEdit<f32>(const std::string& id, f32& editable); template<> void DisplayEdit<float2>(const std::string& id, float2& editable); template<> void DisplayEdit<float3>(const std::string& id, float3& editable); template<> void DisplayEdit<std::string>(const std::string& id, std::string& editable); template<> void DisplayEdit<Ref<Material>>(const std::string& id, Ref<Material>& editable); template<> void DisplayEdit<Ref<Mesh>>(const std::string& id, Ref<Mesh>& editable); template<> void DisplayEdit<Ref<RTTIObject>>(const std::string& id, Ref<RTTIObject>& value); template<> void DisplayEdit<RTTIObject>(const std::string& id, RTTIObject& value); template<> void DisplayEdit<ComponentId>(const std::string& id, ComponentId& value); ////////////////////////////////////////////////////////////////////////// } ////////////////////////////////////////////////////////////////////////// template<typename TValue> void RTTI::DisplayEdit(const std::string& id, TValue& value) { LOG_WARNING("Not implemented for this type.\n"); } ////////////////////////////////////////////////////////////////////////// template<template<typename> typename TList, typename TValue> void RTTI::DisplayListEdit(const std::string& id, TList<TValue>& list, s32& selected) { if (ImGui::TreeNode(id.c_str())) { std::vector<TypeBase*> types; TypeRegister::GetRegisteredTypesOfBase<TValue::element_type>(types); std::vector<std::string> strings; std::transform(types.begin(), types.end(), std::back_inserter(strings), [](TypeBase* type) -> std::string { return type->GetTypeName(); }); ImGui::Combo("##list_types", &selected, RTTI::Helper::ImGuiStringGetter, &strings, strings.size()); ImGui::SameLine(); const bool add = ImGui::Button("+##add_item"); std::vector<TList<TValue>::iterator> idsToRemove; for (s32 index = 0; index < list.size(); ++index) { const std::string elementId = std::to_string(index); const std::string removeId = "-##id_" + elementId; Ref<RTTIObject> value = list.at(index); //if (ImGui::TreeNode(elementId.c_str())) //{ // ImGui::TreePop(); //} const bool remove = ImGui::Button(removeId.c_str()); ImGui::SameLine(); RTTI::DisplayEdit<Ref<RTTIObject>>("", value); if (remove) { idsToRemove.push_back(list.begin() + index); } } if (add) { TypeBase* newType = types.at(selected); Ref<TValue::element_type> element; element.reset((TValue::element_type*)newType->New()); list.push_back(element); } if (idsToRemove.size() > 0) { //std::sort(idsToRemove.begin(), idsToRemove.end(), std::less<s32>()); for (s32 idx = idsToRemove.size() - 1; idx >= 0; --idx) { TList<TValue>::iterator it = idsToRemove.at((u32)idx); list.erase(it); } } ImGui::TreePop(); } } ////////////////////////////////////////////////////////////////////////// template<template<typename, typename> typename TMap, typename TKey, typename TValue> void RTTI::DisplayMapEdit(const std::string& id, TMap<TKey, TValue>& map, TKey& newKeyId) { if (ImGui::TreeNode(id.c_str())) { std::vector<TypeBase*> types; TypeRegister::GetRegisteredTypesOfBase<TValue::element_type>(types); std::vector<std::string> strings; std::transform(types.begin(), types.end(), std::back_inserter(strings), [](TypeBase* type) -> std::string { return type->GetTypeName(); }); ImGui::Combo("##list_types", &selected, RTTI::Helper::ImGuiStringGetter, &strings, strings.size()); RTTI::DisplayEdit<TKey>(id + ":key", newKeyId); ImGui::SameLine(); const bool add = ImGui::Button("+##add_item"); for (auto&[key, value] : map) { const std::string keyId = RTTI::ToString<TKey>(key) + "##key"; const std::string valueId = keyId + "##value"; if (ImGui::TreeNode(keyId.c_str())) { RTTI::DisplayEdit<Ref<RTTIObject>>(valueId, std::dynamic_pointer_cast<RTTIObject>(value)); ImGui::TreePop(); } } if (add) { } ImGui::TreePop(); } } //////////////////////////////////////////////////////////////////////////
[ "jackspink95@gmail.com" ]
jackspink95@gmail.com
a8dd06ea6cb2d44137f0f3fb2ae99ded1bc34222
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5648941810974720_1/C++/Z0RR0/code2.cpp
d9574da6b532d779f30b62dd8bcd73294e0009ac
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
2,260
cpp
#include <bits/stdc++.h> #define rep(i,n) for(i=1;i<=n;i++) #define Rep(i,n) for(i=0;i<n;i++) #define For(i,a,b) for(i=a;i<=b;i++) #define pb(x) push_back(x) #define sz(x) x.size() #define mem(ara,val) memset(ara,val,sizeof(ara)) #define eps 1e-9 #define si(x) scanf("%d",&x) #define sii(x,y) scanf("%d %d",&x,&y) #define siii(x,y,z) scanf("%d %d %d",&x,&y,&z) #define sl(x) scanf("%lld",&x) #define sll(x,y) scanf("%lld %lld",&x,&y) #define slll(x,y,z) scanf("%lld %lld %lld",&x,&y,&z) #define ss(ch) scanf("%s",ch) #define pi(x) printf("%d",x) #define pii(x,y) printf("%d %d",x,y) #define piii(x,y,z) printf("%d %d %d",x,y,z) #define pl(x) printf("%lld",x) #define pll(x,y) printf("%lld %lld",x,y) #define plll(x,y,z) printf("%lld %lld %lld",x,y,z) #define ps(ch) printf("%s",ch) #define Afridi 0 #define NL printf("\n") #define debug(x,y) cout << x << " " << y << "\n" #define Max 100005 #define INF INT_MAX #define mod 1000000007 #define FI freopen("in.txt","r",stdin) #define FO freopen("out.txt","w",stdout) #define PI 3.14159265358979323846 typedef long long LL; typedef unsigned long long ULL; typedef unsigned int UI; using namespace std; LL bigmod(LL b,int p) { if(p == 0)return 1; LL my = bigmod(b,p/2); my*=my; my%=mod; if(p & 1)my*=b,my%=mod; return my; } int setb(int n,int pos) { return n=n | (1 << pos); } int resb(int n,int pos) { return n=n & ~(1 << pos); } bool checkb(int n,int pos) { return (bool)(n & (1 << pos)); } int dick[] = {0,2,4,6,5,7,1,8,9,3}; char fuck[] = {'Z','W','U','X','F','V','O','G','I','T'}; int cnt[200]; int lol[100]; char str[200000]; char oh[10][10] = { "ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE" }; int main() { //FI; freopen("A-large.in","r",stdin); freopen("outALarge.txt","w",stdout); int t,T,i,j; si(T); rep(t,T) { ss(str); int len = strlen(str); mem(cnt,0); mem(lol,0); Rep(i,len)cnt[ str[i] ]++; Rep(i,10) { int x = dick[i]; char c = fuck[i]; int my = cnt[ c ]; lol[x] = my; //printf("%s %d\n",oh[x],my); int l = strlen(oh[x]); Rep(j,l) { cnt[ oh[x][j] ] -= my; } } printf("Case #%d: ",t); Rep(i,10) { for(j=1;j<=lol[i];j++)printf("%d",i); } NL; } return 0; }
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
506837914b9836f1c9311c7d92775a691203bd4d
9a0b53947648ffd90ef2ae4a09b604bfa3aa5ec7
/ARRAYmpi2/ARRAYmpi2/arraympi.cpp
b1c54d2390d26f00dfd959767412deed65216a4d
[]
no_license
gideioanamaria/APD
da8bdba4e9fd4a30d1128e156fa705cbe92e1f69
911b2f4412831a0bef1e744b49f333efe4df56bd
refs/heads/master
2021-01-24T18:26:41.358816
2017-05-31T18:52:54
2017-05-31T18:52:54
84,441,874
0
0
null
null
null
null
UTF-8
C++
false
false
1,472
cpp
#include <iostream> #include "mpi.h" using namespace std; #define SIZE 4 #define N 16 int main (int argc, char *argv[]) { int numprocs, rank, sendcount, recvcount; int buf[N]={3,5,3,4,7,3,8,6,8,7,6,8,5,3,1,2}; int recvbuf[20]; int poz[N],nrcautat=3; int j=0; int rezultat[20]; int low=0; int high=0; MPI_Init(&argc,&argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); if(N%numprocs!=0){ cout<<"Numarul dat nu se imparte exact la numarul de procese!!"<<endl; MPI_Finalize(); exit(0); } sendcount = N/numprocs; recvcount = N/numprocs; MPI_Scatter(buf,sendcount,MPI_INT,recvbuf,recvcount,MPI_INT,0,MPI_COMM_WORLD); //trimit cate o parte egala din vector la fiecare proces arr->recvbuf printf("Procesul %d : %d %d %d %d \n ",rank,recvbuf[0],recvbuf[1],recvbuf[2],recvbuf[3]); for(int i=0; i<recvcount; i++) { if(nrcautat==recvbuf[i]){ poz[j]=i+(N/numprocs)*rank; cout<<"ID PROCES "<<rank<<" Pozitia: "<< i + (N/numprocs)*rank<<endl; j++; } } MPI_Gather(poz,SIZE,MPI_INT,rezultat,SIZE,MPI_INT,0,MPI_COMM_WORLD);//procesul o aduna toate datele te la toate procesele si le pune intr-un vector //if(rank==0){ if(j!=NULL){ cout<<"Pozitile pe care am gasit numarul in procesul " << rank <<" sunt: "; for(int i=0;i<j;i++){ cout<<poz[i] <<" "; } } else cout <<"Number not found!"; //} MPI_Finalize(); return 0; }
[ "gidei_oanamaria@yahoo.com" ]
gidei_oanamaria@yahoo.com
f213f7843ce737ac315afd8b3d60959bee870afa
d939ea588d1b215261b92013e050993b21651f9a
/mgobe/src/v20201014/model/DescribeRoomRequest.cpp
f93ab698f084150a8a27eeb028e083f4a8fd4350
[ "Apache-2.0" ]
permissive
chenxx98/tencentcloud-sdk-cpp
374e6d1349f8992893ded7aa08f911dd281f1bda
a9e75d321d96504bc3437300d26e371f5f4580a0
refs/heads/master
2023-03-27T05:35:50.158432
2021-03-26T05:18:10
2021-03-26T05:18:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,968
cpp
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <tencentcloud/mgobe/v20201014/model/DescribeRoomRequest.h> #include <tencentcloud/core/utils/rapidjson/document.h> #include <tencentcloud/core/utils/rapidjson/writer.h> #include <tencentcloud/core/utils/rapidjson/stringbuffer.h> using namespace TencentCloud::Mgobe::V20201014::Model; using namespace rapidjson; using namespace std; DescribeRoomRequest::DescribeRoomRequest() : m_gameIdHasBeenSet(false), m_playerIdHasBeenSet(false), m_roomIdHasBeenSet(false) { } string DescribeRoomRequest::ToJsonString() const { Document d; d.SetObject(); Document::AllocatorType& allocator = d.GetAllocator(); if (m_gameIdHasBeenSet) { Value iKey(kStringType); string key = "GameId"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, Value(m_gameId.c_str(), allocator).Move(), allocator); } if (m_playerIdHasBeenSet) { Value iKey(kStringType); string key = "PlayerId"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, Value(m_playerId.c_str(), allocator).Move(), allocator); } if (m_roomIdHasBeenSet) { Value iKey(kStringType); string key = "RoomId"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, Value(m_roomId.c_str(), allocator).Move(), allocator); } StringBuffer buffer; Writer<StringBuffer> writer(buffer); d.Accept(writer); return buffer.GetString(); } string DescribeRoomRequest::GetGameId() const { return m_gameId; } void DescribeRoomRequest::SetGameId(const string& _gameId) { m_gameId = _gameId; m_gameIdHasBeenSet = true; } bool DescribeRoomRequest::GameIdHasBeenSet() const { return m_gameIdHasBeenSet; } string DescribeRoomRequest::GetPlayerId() const { return m_playerId; } void DescribeRoomRequest::SetPlayerId(const string& _playerId) { m_playerId = _playerId; m_playerIdHasBeenSet = true; } bool DescribeRoomRequest::PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; } string DescribeRoomRequest::GetRoomId() const { return m_roomId; } void DescribeRoomRequest::SetRoomId(const string& _roomId) { m_roomId = _roomId; m_roomIdHasBeenSet = true; } bool DescribeRoomRequest::RoomIdHasBeenSet() const { return m_roomIdHasBeenSet; }
[ "tencentcloudapi@tenent.com" ]
tencentcloudapi@tenent.com
7d981f136520ddf03d0f96f979989fad3ea2f7cf
29f7ed9fa3dd0c8a71e01f71897ba06ee127049f
/Library/Foundation/Foundation/SharedLibrary/SharedLibrary.cpp
a6c7e525a8ebbebb239c67df6cfc5c9578aada61
[]
no_license
solidusex/ragebtclient
12324bf5832f88582f382dd1748390d3ff380b05
dff62872e7d7036110f31595e31d674379019524
refs/heads/master
2021-01-02T13:00:31.849237
2012-02-15T19:29:27
2012-02-15T19:29:27
41,566,282
0
0
null
null
null
null
UTF-8
C++
false
false
1,343
cpp
/* * The Foundation Library * Copyright (c) 2007 by Solidus * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. It is provided "as is" without express * or implied warranty. */ #include "SharedLibrary.h" #if defined(OS_FAMILY_WINDOWS) #include "Win/SharedLibraryImpl.h" #else #error NOT_SUPPORT_PLATFORM #endif namespace SharedLibrarySpace { SharedLibrary::SharedLibrary(const std::string &path) { std::wstring tmp = FormatSpace::AnsiConverter::ToUnicode(path); m_pimpl = new SharedLibraryImpl(tmp); } SharedLibrary::SharedLibrary(const std::wstring &path) { m_pimpl = new SharedLibraryImpl(path); } SharedLibrary::~SharedLibrary() { delete m_pimpl; } void* SharedLibrary::GetSymbolAddr(const std::string &name) { return m_pimpl->GetSymbolAddr(name); } void SharedLibrary::GetPath(std::wstring &path) { path = m_pimpl->GetPath(); } void SharedLibrary::GetPath(std::string &path) { std::wstring tmp; GetPath(tmp); path = FormatSpace::UnicodeConverter::ToAnsi(tmp); } }
[ "SolidusSnakeEx@gmail.com" ]
SolidusSnakeEx@gmail.com
8a107c7cfe02e2edba174e65b57531fdd59f989c
c35c692e051e15199410385ec82845391ab84b84
/src/robot_control_system_generator/sources/thirdparty/libyuv/libyuv_scale_argb.h
cfc95a50f1b954dc941f69e41604950d5928f685
[]
no_license
pombreda/roboticsby
fc9b389d88f10109e937cc8125a818a209057ddb
4789f8faf7e63dc0d675778d40c1e7b541e77d41
refs/heads/master
2021-01-22T03:39:27.354870
2015-02-23T11:33:52
2015-02-23T11:33:52
32,210,410
1
0
null
null
null
null
UTF-8
C++
false
false
2,090
h
/* * Copyright 2012 The LibYuv Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef INCLUDE_LIBYUV_SCALE_ARGB_H_ // NOLINT #define INCLUDE_LIBYUV_SCALE_ARGB_H_ #include "libyuv_basic_types.h" #include "libyuv_scale.h" // For FilterMode #ifdef __cplusplus namespace libyuv { extern "C" { #endif LIBYUV_API int ARGBScale(const uint8* src_argb, int src_stride_argb, int src_width, int src_height, uint8* dst_argb, int dst_stride_argb, int dst_width, int dst_height, enum FilterMode filtering); // Clipped scale takes destination rectangle coordinates for clip values. LIBYUV_API int ARGBScaleClip(const uint8* src_argb, int src_stride_argb, int src_width, int src_height, uint8* dst_argb, int dst_stride_argb, int dst_width, int dst_height, int clip_x, int clip_y, int clip_width, int clip_height, enum FilterMode filtering); // TODO(fbarchard): Implement this. // Scale with YUV conversion to ARGB and clipping. LIBYUV_API int YUVToARGBScaleClip(const uint8* src_y, int src_stride_y, const uint8* src_u, int src_stride_u, const uint8* src_v, int src_stride_v, uint32 src_fourcc, int src_width, int src_height, uint8* dst_argb, int dst_stride_argb, uint32 dst_fourcc, int dst_width, int dst_height, int clip_x, int clip_y, int clip_width, int clip_height, enum FilterMode filtering); #ifdef __cplusplus } // extern "C" } // namespace libyuv #endif #endif // INCLUDE_LIBYUV_SCALE_ARGB_H_ NOLINT
[ "sgerasuto%tut.by@gtempaccount.com@9e829c2e-0fe7-11df-962a-0b01395cd2b2" ]
sgerasuto%tut.by@gtempaccount.com@9e829c2e-0fe7-11df-962a-0b01395cd2b2
b789b294589486cf39b770752e8e8b474c7952b2
32f7ed22967a7e0f745f4938f9dd013a51af57ee
/clientsdk/GP_Client/Subject.h
86d5755f19e4cebe9322e09eda768cee86182a82
[]
no_license
stonejiang208/GP_Client
1eb85ee51b52b49351e98ac843870d2ec231c8bb
9d790adf20bbfb6b4a101734ad71825b70717c1c
refs/heads/master
2021-01-10T03:05:09.273439
2015-05-27T09:11:52
2015-05-27T09:11:52
36,205,125
0
1
null
null
null
null
UTF-8
C++
false
false
761
h
// -*- C++ -*- //=========================================================================== /* Time-stamp: <2015-05-26 00:10:54 by android> */ /* @file Subject.h * $Id: Subject.h 2015-02-27 14:02:41 jiangtao * * @author:Stone Jiang<jiangtao@tao-studio.net> */ //=========================================================================== #ifndef SUBJECT_H #define SUBJECT_H #include <stddef.h> #include <list> #include "Namespace.h" NS_GP_CLIENT_BEGIN class Observer; class Subject { public: Subject (); virtual ~Subject (); public: virtual int update_data (const char* data, size_t n) = 0; void notify (); void attach (Observer*); void detach (Observer*); private: std::list <Observer*> observers_; }; NS_GP_CLIENT_END #endif /* SUBJECT_H */
[ "jiangtao@tao-studio.net" ]
jiangtao@tao-studio.net
1a33ab73f5248e86562bc32400e8370a88be3e5a
c636136096c92ddb07ce97d3960bf0289d70b57a
/Medusa/Medusa/Resource/Image/DynamicAtlasRGBAImage.cpp
7b7b3f1e96f2eaf88716ed6432a9b715c1423b9b
[ "MIT" ]
permissive
johndpope/Medusa
6a5a08e0c3f216dcab3b23db2f7bcf4d05845bce
22aa6719a001330fea51a6822fec01150eb8aabc
refs/heads/master
2020-12-30T20:51:14.718429
2015-12-15T12:31:22
2015-12-15T12:31:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,459
cpp
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #include "MedusaPreCompiled.h" #include "DynamicAtlasRGBAImage.h" #include "Core/Geometry/Size3.h" #include "Resource/Image/ImageFactory.h" MEDUSA_BEGIN; DynamicAtlasRGBAImage::DynamicAtlasRGBAImage(const FileIdRef& fileId,Size2U initImageSize,Size2U maxImageSize,GraphicsInternalFormat internalFormat,GraphicsPixelFormat imageFormat,bool isPreMultiplyAlpha ) :RGBAImage(fileId,initImageSize,internalFormat,imageFormat,isPreMultiplyAlpha), mPack(initImageSize),mMaxImageSize(maxImageSize) { mImageData.ClearZero(); } DynamicAtlasRGBAImage::~DynamicAtlasRGBAImage(void) { } bool DynamicAtlasRGBAImage::AddImageRect(const Size2U& size,int pitch,const MemoryByteData& imageData,GraphicsPixelFormat pixelFormat,GraphicsPixelDataType srcDataType, Rect2U& outRect, bool isFlipY/*=false*/,GraphicsPixelConvertMode mode/*=PixelConvertMode::Normal*/) { RETURN_FALSE_IF(size>mMaxImageSize); outRect=mPack.Insert(size,SkylineBinPack::LevelChoiceHeuristic::LevelBottomLeft); if (outRect!=Rect2U::Zero) { outRect.Size-=1; //should -1 to remove edge CopyImage(outRect,imageData,pixelFormat,srcDataType,pitch,isFlipY,mode); return true; } RETURN_FALSE_IF(mImageSize>=mMaxImageSize); //is full //try to expand //1.new a bigger image Size2U newImageSize=mImageSize; do { newImageSize.Width=Math::Min((uint)Math::NextPOT(newImageSize.Width),mMaxImageSize.Width); newImageSize.Height=Math::Min((uint)Math::NextPOT(newImageSize.Height),mMaxImageSize.Width); mPack.GrowSize(mImageSize); //not re layout the original rects,maybe do it in the future outRect=mPack.Insert(size,SkylineBinPack::LevelChoiceHeuristic::LevelBottomLeft); if (outRect!=Rect2U::Zero) { MemoryByteData newImageData=MemoryByteData::Alloc(mImageSize.Area()*BytesPerComponent()); //2.copy image data to new image ImageFactory::CopyImage(newImageData,mPixelFormat,mPixelDataType,newImageSize,Rect2U(Point2F::Zero,mImageSize),mImageData,mPixelFormat,mPixelDataType,0,false,GraphicsPixelConvertMode::Normal); mImageSize=newImageSize; mImageData=newImageData; //draw new image outRect.Size-=1;//should -1 to remove edge CopyImage(outRect,imageData,pixelFormat,srcDataType,pitch,isFlipY,mode); return true; } } while (newImageSize<mMaxImageSize); return false; } MEDUSA_END;
[ "fjz13@live.cn" ]
fjz13@live.cn
29b37913bfe41f6acec66db5d983934a1735860e
e33b790ec7b22a4c2cfc470d46794e954a2e4a7d
/lib/PortAliases.cpp
f73a00c2ab583f5c003fbb4a108915156606bf18
[ "LicenseRef-scancode-other-permissive" ]
permissive
caizikun/tool_axe
0ae4abf3e7d5feb6280f37bbafe0f5b4bf1d8d9a
c1d7c0ad8095abc6733eb8df3bc0f4f72b3852d6
refs/heads/master
2020-03-20T10:40:53.686373
2018-05-30T13:46:20
2018-05-30T13:46:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
532
cpp
// Copyright (c) 2012, Richard Osborne, All rights reserved // This software is freely distributable under a derivative of the // University of Illinois/NCSA Open Source License posted in // LICENSE.txt and at <http://github.xcore.com/> #include "PortAliases.h" using namespace axe; bool PortAliases:: lookup(const std::string &name, std::string &core, std::string &port) const { auto it = aliases.find(name); if (it == aliases.end()) return false; core = it->second.first; port = it->second.second; return true; }
[ "richard@xmos.com" ]
richard@xmos.com
476b141de4907a0c3f0aa9c16391a12b45a29f0a
6b40e9dccf2edc767c44df3acd9b626fcd586b4d
/NT/admin/activec/designer/vb98ctls/mssnapd/mssnapd/taskpvw.cpp
4d21d14c5c9e5bc81cc47f235778c81fdcb8abe9
[]
no_license
jjzhang166/WinNT5_src_20201004
712894fcf94fb82c49e5cd09d719da00740e0436
b2db264153b80fbb91ef5fc9f57b387e223dbfc2
refs/heads/Win2K3
2023-08-12T01:31:59.670176
2021-10-14T15:14:37
2021-10-14T15:14:37
586,134,273
1
0
null
2023-01-07T03:47:45
2023-01-07T03:47:44
null
UTF-8
C++
false
false
22,257
cpp
//=-------------------------------------------------------------------------------------- // taskpvw.cpp //=-------------------------------------------------------------------------------------- // // Copyright (c) 1999, Microsoft Corporation. // All Rights Reserved. // // Information Contained Herein Is Proprietary and Confidential. // //=------------------------------------------------------------------------------------= // // CSnapInDesigner implementation -- TaskpadView-related command handling //=-------------------------------------------------------------------------------------= #include "pch.h" #include "common.h" #include "TreeView.h" #include "desmain.h" #include "guids.h" // for ASSERT and FAIL // SZTHISFILE // Size for our character string buffers const int kMaxBuffer = 512; //=-------------------------------------------------------------------------------------- // CSnapInDesigner::AddTaskpadView() //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::AddTaskpadView() { HRESULT hr = S_OK; IViewDefs *piViewDefs = NULL; ITaskpadViewDefs *piTaskpadViewDefs = NULL; VARIANT vtEmpty; ITaskpadViewDef *piTaskpadViewDef = NULL; ::VariantInit(&vtEmpty); hr = GetOwningViewCollection(&piViewDefs); IfFailGo(hr); if (piViewDefs != NULL) { hr = piViewDefs->get_TaskpadViews(&piTaskpadViewDefs); IfFailGo(hr); if (piTaskpadViewDefs != NULL) { vtEmpty.vt = VT_ERROR; vtEmpty.scode = DISP_E_PARAMNOTFOUND; hr = piTaskpadViewDefs->Add(vtEmpty, vtEmpty, &piTaskpadViewDef); IfFailGo(hr); } } Error: RELEASE(piTaskpadViewDef); RELEASE(piTaskpadViewDefs); RELEASE(piViewDefs); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::OnAddTaskpadViewDef(CSelectionHolder *pParent, ITaskpadViewDef *piURLViewDef) //=-------------------------------------------------------------------------------------- // // Notes // // Invoked in response to an IObjectModelHost:Add() notification. // HRESULT CSnapInDesigner::OnAddTaskpadViewDef(CSelectionHolder *pParent, ITaskpadViewDef *piTaskpadViewDef) { HRESULT hr = S_OK; CSelectionHolder *pTaskpadView = NULL; IViewDefs *piViewDefs = NULL; ITaskpadViewDefs *piTaskpadViewDefs = NULL; ASSERT(NULL != pParent, "OnAddTaskpadViewDef: pParent is NULL"); ASSERT(NULL != pParent->m_piObject.m_piTaskpadViewDefs, "OnAddTaskpadViewDef: pParent->m_piObject.m_piTaskpadViewDefs is NULL"); switch (pParent->m_st) { case SEL_NODES_AUTO_CREATE_RTVW: hr = pParent->m_piObject.m_piSnapInDef->get_ViewDefs(&piViewDefs); IfFailGo(hr); hr = piViewDefs->get_TaskpadViews(&piTaskpadViewDefs); IfFailGo(hr); break; case SEL_VIEWS_TASK_PAD: piTaskpadViewDefs = pParent->m_piObject.m_piTaskpadViewDefs; piTaskpadViewDefs->AddRef(); break; case SEL_NODES_ANY_VIEWS: hr = pParent->m_piObject.m_piScopeItemDef->get_ViewDefs(&piViewDefs); IfFailGo(hr); hr = piViewDefs->get_TaskpadViews(&piTaskpadViewDefs); IfFailGo(hr); break; default: ASSERT(0, "OnAddTaskpadViewDef: Cannot determine owning collection"); goto Error; } hr = MakeNewTaskpadView(piTaskpadViewDefs, piTaskpadViewDef, &pTaskpadView); IfFailGo(hr); hr = InsertTaskpadViewInTree(pTaskpadView, pParent); IfFailGo(hr); hr = OnSelectionChanged(pTaskpadView); IfFailGo(hr); hr = m_pTreeView->SelectItem(pTaskpadView); IfFailGo(hr); hr = m_pTreeView->Edit(pTaskpadView); IfFailGo(hr); m_fDirty = TRUE; Error: RELEASE(piViewDefs); RELEASE(piTaskpadViewDefs); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::AddExistingTaskpadView(IViewDefs *piViewDefs, ITaskpadViewDef *piTaskpadViewDef) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::AddExistingTaskpadView(IViewDefs *piViewDefs, ITaskpadViewDef *piTaskpadViewDef) { HRESULT hr = S_OK; ITaskpadViewDefs *piTaskpadViewDefs = NULL; hr = piViewDefs->get_TaskpadViews(&piTaskpadViewDefs); IfFailGo(hr); hr = piTaskpadViewDefs->AddFromMaster(piTaskpadViewDef); IfFailGo(hr); Error: RELEASE(piTaskpadViewDefs); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::RenameTaskpadView(CSelectionHolder *pTaskpadView, BSTR bstrNewName) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::RenameTaskpadView(CSelectionHolder *pTaskpadView, BSTR bstrNewName) { HRESULT hr = S_OK; TCHAR *pszName = NULL; ASSERT(SEL_VIEWS_TASK_PAD_NAME == pTaskpadView->m_st, "RenameTaskpadView: wrong argument"); hr = m_piDesignerProgrammability->IsValidIdentifier(bstrNewName); IfFailGo(hr); if (S_FALSE == hr) { hr = SID_E_INVALIDARG; goto Error; } hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->put_Key(bstrNewName); IfFailGo(hr); hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->put_Name(bstrNewName); IfFailGo(hr); hr = ANSIFromBSTR(bstrNewName, &pszName); IfFailGo(hr); // Rename all satellite views hr = m_pTreeView->RenameAllSatelliteViews(pTaskpadView, pszName); IfFailGo(hr); // Rename the actual view hr = m_pTreeView->ChangeText(pTaskpadView, pszName); IfFailGo(hr); Error: if (NULL != pszName) CtlFree(pszName); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::DeleteTaskpadView(CSelectionHolder *pTaskpadView) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::DeleteTaskpadView ( CSelectionHolder *pTaskpadView ) { HRESULT hr = S_OK; bool bIsSatelliteView = false; IObjectModel *piObjectModel = NULL; long lUsageCount = 0; BSTR bstrName = NULL; IViewDefs *piViewDefs = NULL; ITaskpadViewDefs *piTaskpadViewDefs = NULL; VARIANT vtKey; ::VariantInit(&vtKey); // We allow any satellite view to be deleted hr = IsSatelliteView(pTaskpadView); IfFailGo(hr); // But if it's a master with a UsageCount > 0 we don't allow deleting it. if (S_FALSE == hr) { hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->QueryInterface(IID_IObjectModel, reinterpret_cast<void **>(&piObjectModel)); IfFailGo(hr); hr = piObjectModel->GetUsageCount(&lUsageCount); IfFailGo(hr); if (lUsageCount > 1) { (void)::SDU_DisplayMessage(IDS_VIEW_IN_USE, MB_OK | MB_ICONHAND, HID_mssnapd_ViewInUse, 0, DontAppendErrorInfo, NULL); goto Error; } } else bIsSatelliteView = true; hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->get_Key(&bstrName); IfFailGo(hr); if (true == bIsSatelliteView) { hr = GetOwningViewCollection(pTaskpadView, &piViewDefs); IfFailGo(hr); } else { hr = m_piSnapInDesignerDef->get_ViewDefs(&piViewDefs); IfFailGo(hr); } if (piViewDefs != NULL) { hr = piViewDefs->get_TaskpadViews(&piTaskpadViewDefs); IfFailGo(hr); vtKey.vt = VT_BSTR; vtKey.bstrVal = ::SysAllocString(bstrName); if (NULL == vtKey.bstrVal) { hr = SID_E_OUTOFMEMORY; EXCEPTION_CHECK(hr); } hr = piTaskpadViewDefs->Remove(vtKey); IfFailGo(hr); } Error: FREESTRING(bstrName); RELEASE(piTaskpadViewDefs); RELEASE(piViewDefs); RELEASE(piObjectModel); ::VariantClear(&vtKey); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::OnDeleteTaskpadView(CSelectionHolder *pTaskpadView) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::OnDeleteTaskpadView ( CSelectionHolder *pTaskpadView ) { HRESULT hr = S_OK; CSelectionHolder *pParent = NULL; bool bIsSatelliteView = false; IViewDefs *piViewDefs = NULL; ITaskpadViewDefs *piTaskpadViewDefs = NULL; long lCount = 0; hr = IsSatelliteView(pTaskpadView); IfFailGo(hr); bIsSatelliteView = (S_OK == hr) ? true : false; if (true == bIsSatelliteView) { hr = GetOwningViewCollection(pTaskpadView, &piViewDefs); IfFailGo(hr); } else { hr = m_piSnapInDesignerDef->get_ViewDefs(&piViewDefs); IfFailGo(hr); } // Find out who the next selection should be hr = m_pTreeView->GetParent(pTaskpadView, &pParent); IfFailGo(hr); // Delete the node from the tree hr = m_pTreeView->DeleteNode(pTaskpadView); IfFailGo(hr); delete pTaskpadView; // Select the next selection if (NULL != piViewDefs) { hr = piViewDefs->get_TaskpadViews(&piTaskpadViewDefs); IfFailGo(hr); hr = piTaskpadViewDefs->get_Count(&lCount); IfFailGo(hr); if (0 == lCount) { hr = m_pTreeView->ChangeNodeIcon(pParent, kClosedFolderIcon); IfFailGo(hr); } } hr = m_pTreeView->SelectItem(pParent); IfFailGo(hr); hr = OnSelectionChanged(pParent); IfFailGo(hr); Error: RELEASE(piTaskpadViewDefs); RELEASE(piViewDefs); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::ShowTaskpadViewProperties(ITaskpadViewDef *piTaskpadViewDef) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::ShowTaskpadViewProperties ( ITaskpadViewDef *piTaskpadViewDef ) { HRESULT hr = S_OK; int iResult = 0; OCPFIPARAMS ocpfiParams; TCHAR szBuffer[kMaxBuffer + 1]; BSTR bstrCaption = NULL; IUnknown *pUnk[1]; CLSID pageClsID[3]; hr = GetResourceString(IDS_TASK_PROPS, szBuffer, kMaxBuffer); IfFailGo(hr); hr = BSTRFromANSI(szBuffer, &bstrCaption); IfFailGo(hr); hr = piTaskpadViewDef->QueryInterface(IID_IUnknown, reinterpret_cast<void **>(&pUnk[0])); IfFailGo(hr); pageClsID[0] = CLSID_TaskpadViewDefGeneralPP; pageClsID[1] = CLSID_TaskpadViewDefBackgroundPP; pageClsID[2] = CLSID_TaskpadViewDefTasksPP; ::memset(&ocpfiParams, 0, sizeof(OCPFIPARAMS)); ocpfiParams.cbStructSize = sizeof(OCPFIPARAMS); ocpfiParams.hWndOwner = m_hwnd; ocpfiParams.x = 0; ocpfiParams.y = 0; ocpfiParams.lpszCaption = bstrCaption; ocpfiParams.cObjects = 1; ocpfiParams.lplpUnk = pUnk; ocpfiParams.cPages = 3; ocpfiParams.lpPages = pageClsID; ocpfiParams.lcid = g_lcidLocale; ocpfiParams.dispidInitialProperty = 0; hr = ::OleCreatePropertyFrameIndirect(&ocpfiParams); IfFailGo(hr); Error: RELEASE(pUnk[0]); FREESTRING(bstrCaption); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::MakeNewTaskpadView(ITaskpadViewDefs *piTaskpadViewDefs, ITaskpadViewDef *piTaskpadViewDef, CSelectionHolder **ppTaskpadView) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::MakeNewTaskpadView ( ITaskpadViewDefs *piTaskpadViewDefs, ITaskpadViewDef *piTaskpadViewDef, CSelectionHolder **ppTaskpadView ) { HRESULT hr = S_OK; *ppTaskpadView = New CSelectionHolder(piTaskpadViewDef); if (NULL == *ppTaskpadView) { hr = SID_E_OUTOFMEMORY; EXCEPTION_CHECK_GO(hr); } hr = InitializeNewTaskpadView(piTaskpadViewDefs, *ppTaskpadView); IfFailGo(hr); Error: RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::InitializeNewTaskpadView(ITaskpadViewDefs *piTaskpadViewDefs, CSelectionHolder *pTaskpadView) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::InitializeNewTaskpadView ( ITaskpadViewDefs *piTaskpadViewDefs, CSelectionHolder *pTaskpadView ) { HRESULT hr = S_OK; IObjectModel *piObjectModel = NULL; CSelectionHolder *pViewCollection = NULL; int iResult = 0; int iItemNumber = 0; TCHAR szBuffer[kMaxBuffer + 1]; TCHAR szName[kMaxBuffer + 1]; BSTR bstrName = NULL; bool bGood = false; CSelectionHolder *pTaskpadViewDefClone = NULL; ITaskpad *piTaskpad = NULL; ASSERT(NULL != piTaskpadViewDefs, "InitializeNewTaskpadView: piTaskpadViewDefs is NULL"); ASSERT(NULL != pTaskpadView, "InitializeNewTaskpadView: pTaskpadView is NULL"); hr = piTaskpadViewDefs->QueryInterface(IID_IObjectModel, reinterpret_cast<void **>(&piObjectModel)); IfFailGo(hr); hr = piObjectModel->GetCookie(reinterpret_cast<long *>(&pViewCollection)); IfFailGo(hr); ASSERT(NULL != pViewCollection, "InitializeNewTaskpadView: Bad Cookie"); hr = IsSatelliteCollection(pViewCollection); IfFailGo(hr); if (S_FALSE == hr) { hr = GetResourceString(IDS_TASK_VIEW, szBuffer, kMaxBuffer); IfFailGo(hr); do { iResult = _stprintf(szName, _T("%s%d"), szBuffer, ++iItemNumber); if (iResult == 0) { hr = HRESULT_FROM_WIN32(::GetLastError()); EXCEPTION_CHECK(hr); } hr = m_pTreeView->FindLabelInTree(szName, &pTaskpadViewDefClone); IfFailGo(hr); if (S_FALSE == hr) { hr = BSTRFromANSI(szName, &bstrName); IfFailGo(hr); bGood = true; break; } FREESTRING(bstrName); } while (false == bGood); hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->put_Key(bstrName); IfFailGo(hr); hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->put_Name(bstrName); IfFailGo(hr); hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->get_Taskpad(&piTaskpad); IfFailGo(hr); hr = piTaskpad->put_Name(bstrName); IfFailGo(hr); } hr = pTaskpadView->RegisterHolder(); IfFailGo(hr); Error: RELEASE(piTaskpad); FREESTRING(bstrName); RELEASE(piObjectModel); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::InsertTaskpadViewInTree(CSelectionHolder *pTaskpadView, CSelectionHolder *pParent) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::InsertTaskpadViewInTree ( CSelectionHolder *pTaskpadView, CSelectionHolder *pParent ) { HRESULT hr = S_OK; BSTR bstrName = NULL; TCHAR *pszName = NULL; hr = pTaskpadView->m_piObject.m_piTaskpadViewDef->get_Key(&bstrName); IfFailGo(hr); hr = ANSIFromBSTR(bstrName, &pszName); IfFailGo(hr); hr = m_pTreeView->AddNode(pszName, pParent, kTaskpadIcon, pTaskpadView); IfFailGo(hr); Error: if (pszName != NULL) CtlFree(pszName); FREESTRING(bstrName); RRETURN(hr); } //=-------------------------------------------------------------------------------------- //=-------------------------------------------------------------------------------------- // Support functions to manipulate IViewDef's // Searching //=-------------------------------------------------------------------------------------- //=-------------------------------------------------------------------------------------- //=-------------------------------------------------------------------------------------- // CSnapInDesigner::GetOwningViewCollection(IViewDefs **ppiViewDefs) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::GetOwningViewCollection ( IViewDefs **ppiViewDefs ) { HRESULT hr = S_OK; hr = GetOwningViewCollection(m_pCurrentSelection, ppiViewDefs); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::GetOwningViewCollection(CSelectionHolder *pView, IViewDefs **ppiViewDefs) //=-------------------------------------------------------------------------------------- // // Notes // HRESULT CSnapInDesigner::GetOwningViewCollection ( CSelectionHolder *pView, IViewDefs **ppiViewDefs ) { HRESULT hr = S_OK; CSelectionHolder *pParent = NULL; ISnapInDef *piSnapInDef = NULL; switch (pView->m_st) { case SEL_NODES_AUTO_CREATE_ROOT: case SEL_NODES_AUTO_CREATE_RTVW: hr = m_piSnapInDesignerDef->get_SnapInDef(&piSnapInDef); IfFailGo(hr); hr = piSnapInDef->get_ViewDefs(ppiViewDefs); IfFailGo(hr); break; case SEL_NODES_ANY_VIEWS: case SEL_VIEWS_LIST_VIEWS_NAME: case SEL_VIEWS_OCX_NAME: case SEL_VIEWS_URL_NAME: case SEL_VIEWS_TASK_PAD_NAME: hr = m_pTreeView->GetParent(pView, &pParent); IfFailGo(hr); switch (pParent->m_st) { case SEL_NODES_ANY_NAME: case SEL_NODES_ANY_VIEWS: hr = pParent->m_piObject.m_piScopeItemDef->get_ViewDefs(ppiViewDefs); IfFailGo(hr); break; case SEL_NODES_AUTO_CREATE_RTVW: hr = m_piSnapInDesignerDef->get_SnapInDef(&piSnapInDef); IfFailGo(hr); hr = piSnapInDef->get_ViewDefs(ppiViewDefs); IfFailGo(hr); break; default: ASSERT(0, "Unexpected parent"); } break; case SEL_NODES_ANY_NAME: hr = pView->m_piObject.m_piScopeItemDef->get_ViewDefs(ppiViewDefs); IfFailGo(hr); break; case SEL_VIEWS_ROOT: hr = m_piSnapInDesignerDef->get_ViewDefs(ppiViewDefs); IfFailGo(hr); break; case SEL_VIEWS_LIST_VIEWS: case SEL_VIEWS_OCX: case SEL_VIEWS_URL: case SEL_VIEWS_TASK_PAD: hr = m_piSnapInDesignerDef->get_ViewDefs(ppiViewDefs); IfFailGo(hr); break; } Error: RELEASE(piSnapInDef); RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::IsSatelliteView(CSelectionHolder *pView) //=-------------------------------------------------------------------------------------- // // Notes // // Return S_OK if this view is part of a satellite collection, S_FALSE otherwise. // HRESULT CSnapInDesigner::IsSatelliteView(CSelectionHolder *pView) { HRESULT hr = S_OK; CSelectionHolder *pParent = NULL; hr = m_pTreeView->GetParent(pView, &pParent); IfFailGo(hr); switch (pParent->m_st) { case SEL_VIEWS_LIST_VIEWS: case SEL_VIEWS_OCX: case SEL_VIEWS_URL: case SEL_VIEWS_TASK_PAD: hr = S_FALSE; break; } Error: RRETURN(hr); } //=-------------------------------------------------------------------------------------- // CSnapInDesigner::IsSatelliteCollection(CSelectionHolder *pViewCollection) //=-------------------------------------------------------------------------------------- // // Notes // // Return S_OK if collection is a satellite collection, S_FALSE otherwise. // HRESULT CSnapInDesigner::IsSatelliteCollection(CSelectionHolder *pViewCollection) { HRESULT hr = S_OK; CSelectionHolder *pParent = NULL; switch (pViewCollection->m_st) { // Possible parent nodes of a view: case SEL_NODES_AUTO_CREATE_RTVW: // Anything off of SnapIn/Auto-Create/Static Node/Views is a satellite collection break; case SEL_NODES_ANY_VIEWS: // Anything off of SnapIn/Auto-Create/Static Node/<name>/Views, recursively, and // anything off of SnapIn/Other/<name>/Views is a satellite collection break; case SEL_VIEWS_LIST_VIEWS: case SEL_VIEWS_OCX: case SEL_VIEWS_URL: case SEL_VIEWS_TASK_PAD: // If these depend off of SnapIn/Views then they are NOT a satellite collection hr = m_pTreeView->GetParent(pViewCollection, &pParent); IfFailGo(hr); switch (pParent->m_st) { case SEL_VIEWS_ROOT: hr = S_FALSE; break; } break; default: ASSERT(0, "IsSatelliteCollection: wrong argument"); } Error: RRETURN(hr); }
[ "seta7D5@protonmail.com" ]
seta7D5@protonmail.com
dfd10c58409d0c0d60ce79143f87fa8f6d719bb3
a4d25420e402f9a1dd69b950372f5c496127db7a
/MyView.cpp
a2f1b2f2e557edab36423f32abe0830d0f3db0f9
[]
no_license
PieTurri/Game-2D
793b309b70039ea9c5d6395fedc9acebd6ce583c
8116a58692fc11c666391a714642309f95ec9182
refs/heads/master
2021-10-27T05:51:28.732244
2019-04-16T12:52:35
2019-04-16T12:52:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,251
cpp
// // Created by leogori on 28/02/19. // #include "MyView.h" #include <iostream> #include <tgmath.h> #include "Knight.h" using namespace std; MyView::MyView() {} void MyView::followHero() { Hero* sub= dynamic_cast<Hero*>(subject); Vector2f range = sub->getPosition() - getCenter(); if(!sub->getDirDown()&&!sub->getDirRight()&&!sub->getDirLeft()&&!sub->getDirUp()) { times = clock.getElapsedTime(); float l = (float) sqrt(pow(range.x, 2) + pow(range.y, 2)); if (times.asMilliseconds() > 0) { if (abs(l) > 0.5) { move(range.x / l, range.y / l); } clock.restart(); } } else{ if(abs(range.x)<=64&&abs(range.y)<=64) speed=sub->getSpeed()/2; else speed=sub->getSpeed(); if(sub->getDirUp()) move(0,-speed); if(sub->getDirDown()) move(0,speed); if(sub->getDirLeft()) move(-speed,0); if(sub->getDirRight()) move(speed,0); } } void MyView::update(Subject *s) { if(subject==s) followHero(); } void MyView::setSubject(Subject *subject) { this->subject=subject; subject->addObserver(this); }
[ "leonardogori@hotmail.it" ]
leonardogori@hotmail.it
f777a8a677b5164ea1ffbcacb4a13ca11cbfad7f
c45ed46065d8b78dac0dd7df1c95b944f34d1033
/TC-SRM-562-div1-250/qiaoranliqu.cpp
8190d52138959edb178299f492e0d25edf459db1
[]
no_license
yzq986/cntt2016-hw1
ed65a6b7ad3dfe86a4ff01df05b8fc4b7329685e
12e799467888a0b3c99ae117cce84e8842d92337
refs/heads/master
2021-01-17T11:27:32.270012
2017-01-26T03:23:22
2017-01-26T03:23:22
84,036,200
0
0
null
2017-03-06T06:04:12
2017-03-06T06:04:12
null
GB18030
C++
false
false
1,424
cpp
#include<cstdio> #include<algorithm> #include<cstring> #include<iostream> #include<vector> #include<set> #include<map> #include<bitset> #include<cmath> #include<string> #define ls (t<<1) #define rs ((t<<1)+1) #define mid ((l+r)>>1) #define fi first #define se second #define mk make_pair #define pb push_back #define N 2005 #define M 200005 #define seed 23333 #define Mo 998244353 using namespace std; int i,j,m,n,p,k; int A[N][N],r[N],b[N],g[N]; void change(char x,int &y) { if (y==1) r[i]--; if (y==2) b[i]--; if (y==3) g[i]--; if (x=='R') y=1,r[i]++; if (x=='B') y=2,b[i]++; if (x=='G') y=3,g[i]++; } class PastingPaintingDivOne{ public: vector<long long> countColors(vector <string> clipboard, int T) { int n=clipboard.size(),m=clipboard[0].length(); for (i=1;i<=1000;++i) //暴力做前面几次操作 { r[i]=r[i-1]; g[i]=g[i-1]; b[i]=b[i-1]; for (j=0;j<n;++j) for (k=0;k<m;++k) if (clipboard[j][k]!='.') change(clipboard[j][k],A[j+i][k+i]); } vector<long long>ans; if (T<=1000) { ans.pb(r[T]); ans.pb(g[T]); ans.pb(b[T]); return ans; } //对于后面的操作,增量都是不变的 ans.pb(r[1000]+1ll*(r[1000]-r[999])*(T-1000)); ans.pb(g[1000]+1ll*(g[1000]-g[999])*(T-1000)); ans.pb(b[1000]+1ll*(b[1000]-b[999])*(T-1000)); return ans; } };
[ "857075272@qq.com" ]
857075272@qq.com
c6776b65c567b5da17feecfeecbeaad8568b6284
02ce8a5d3386aa639ef1c2c2fdd6da8d0de158f9
/ACE-5.6.1/ACE_wrappers/apps/drwho/SM_Client.cpp
bf0cb5194912d62f67a17d583bcf7497ebf21a44
[]
no_license
azraelly/knetwork
932e27a22b1ee621742acf57618083ecab23bca1
69e30ee08d0c8e66c1cfb00d7ae3ba6983ff935c
refs/heads/master
2021-01-20T13:48:24.909756
2010-07-03T13:59:39
2010-07-03T13:59:39
39,634,314
1
0
null
null
null
null
UTF-8
C++
false
false
1,607
cpp
// $Id: SM_Client.cpp 53169 2003-11-01 11:15:26Z dhinton $ #include "Options.h" #include "PMC_All.h" #include "PMC_Flo.h" #include "PMC_Usr.h" #include "PMC_Ruser.h" #include "SM_Client.h" #include "ace/Log_Msg.h" #include "ace/OS_Memory.h" // Call-back function that invokes the appropriate decode function. int SM_Client::demux (char *packet, int &packet_length) { if (this->pm_client->decode (packet, packet_length) < 0) return -1; else return 1; } // Call-back function that invokes the appropriate encode function. int SM_Client::mux (char *packet, int &packet_length) { switch (Options::protocol_type) { case Options::PROTO_USR: ACE_NEW_RETURN (this->pm_client, PMC_Usr (Options::user_name), -1); break; case Options::PROTO_ALL: ACE_NEW_RETURN (this->pm_client, PMC_All, -1); break; case Options::PROTO_FLO: ACE_NEW_RETURN (this->pm_client, PMC_Flo, -1); break; case Options::PROTO_RUSER: ACE_NEW_RETURN (this->pm_client, PMC_Ruser, -1); break; default: ACE_DEBUG ((LM_DEBUG, "%s: bad protocol\n", Options::program_name)); return -1; } if (this->pm_client->encode (packet, packet_length) < 0) return -1; return 1; } SM_Client::SM_Client (void) { } SM_Client::~SM_Client (void) { } void SM_Client::process (void) { this->pm_client->process (); }
[ "yuwuxiong2010@gmail.com" ]
yuwuxiong2010@gmail.com
7f61d6df7cbf64257c7bccd4635eb159e65cbaad
0e6ab2afe5c570f7fa5d8176dffbd0e1f7f6a9fb
/Exemplos de Provas/main_prova1_1_Q3.cpp
2ee442a3b1bb0514471f00a48db424b8162c4bf0
[]
no_license
fsofelipe/CompGraficaUFPel
84c0dbf497828f5cd28edec83171ef7dad278900
0eb1a833c6d61eca728b99aa45c5638d2cbfa717
refs/heads/master
2020-03-07T00:07:23.437594
2018-04-16T12:41:59
2018-04-16T12:41:59
127,150,328
0
0
null
null
null
null
UTF-8
C++
false
false
11,367
cpp
// Include standard headers #include <stdio.h> #include <stdlib.h> #include <vector> // Include GLEW #include <GL/glew.h> // Include GLFW #include <glfw3.h> GLFWwindow* g_pWindow; unsigned int g_nWidth = 1024, g_nHeight = 768; // Include AntTweakBar #include <AntTweakBar.h> TwBar *g_pToolBar; // Include GLM #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> using namespace glm; using namespace std; #include <shader.hpp> #include <texture.hpp> #include <controls.hpp> #include <objloader.hpp> #include <vboindexer.hpp> #include <glerror.hpp> #include <math.h> #define PI 3.14159265 void WindowSizeCallBack(GLFWwindow *pWindow, int nWidth, int nHeight) { g_nWidth = nWidth; g_nHeight = nHeight; glViewport(0, 0, g_nWidth, g_nHeight); TwWindowSize(g_nWidth, g_nHeight); } class model { public: std::vector<unsigned short> indices; std::vector<glm::vec3> indexed_vertices; std::vector<glm::vec2> indexed_uvs; std::vector<glm::vec3> indexed_normals; GLuint vertexbuffer; GLuint uvbuffer; GLuint normalbuffer; GLuint elementbuffer; glm::mat4 modelMatrix; model(std::vector<glm::vec3> vertices, std::vector<glm::vec2> uvs, std::vector<glm::vec3> normals) { indexVBO(vertices, uvs, normals, indices, indexed_vertices, indexed_uvs, indexed_normals); // Load it into a VBO glGenBuffers(1, &vertexbuffer); glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer); glBufferData(GL_ARRAY_BUFFER, indexed_vertices.size() * sizeof(glm::vec3), &indexed_vertices[0], GL_STATIC_DRAW); glGenBuffers(1, &uvbuffer); glBindBuffer(GL_ARRAY_BUFFER, uvbuffer); glBufferData(GL_ARRAY_BUFFER, indexed_uvs.size() * sizeof(glm::vec2), &indexed_uvs[0], GL_STATIC_DRAW); glGenBuffers(1, &normalbuffer); glBindBuffer(GL_ARRAY_BUFFER, normalbuffer); glBufferData(GL_ARRAY_BUFFER, indexed_normals.size() * sizeof(glm::vec3), &indexed_normals[0], GL_STATIC_DRAW); // Generate a buffer for the indices as well glGenBuffers(1, &elementbuffer); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, elementbuffer); glBufferData(GL_ELEMENT_ARRAY_BUFFER, indices.size() * sizeof(unsigned short), &indices[0], GL_STATIC_DRAW); modelMatrix = glm::mat4(1.0); } }; int main(void) { int nUseMouse = 0; // Initialise GLFW if (!glfwInit()) { fprintf(stderr, "Failed to initialize GLFW\n"); return -1; } glfwWindowHint(GLFW_SAMPLES, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // Open a window and create its OpenGL context g_pWindow = glfwCreateWindow(g_nWidth, g_nHeight, "CG UFPel", NULL, NULL); if (g_pWindow == NULL){ fprintf(stderr, "Failed to open GLFW window. If you have an Intel GPU, they are not 3.3 compatible. Try the 2.1 version of the tutorials.\n"); glfwTerminate(); return -1; } glfwMakeContextCurrent(g_pWindow); // Initialize GLEW glewExperimental = true; // Needed for core profile if (glewInit() != GLEW_OK) { fprintf(stderr, "Failed to initialize GLEW\n"); return -1; } check_gl_error();//OpenGL error from GLEW // Initialize the GUI TwInit(TW_OPENGL_CORE, NULL); TwWindowSize(g_nWidth, g_nHeight); // Set GLFW event callbacks. I removed glfwSetWindowSizeCallback for conciseness glfwSetMouseButtonCallback(g_pWindow, (GLFWmousebuttonfun)TwEventMouseButtonGLFW); // - Directly redirect GLFW mouse button events to AntTweakBar glfwSetCursorPosCallback(g_pWindow, (GLFWcursorposfun)TwEventMousePosGLFW); // - Directly redirect GLFW mouse position events to AntTweakBar glfwSetScrollCallback(g_pWindow, (GLFWscrollfun)TwEventMouseWheelGLFW); // - Directly redirect GLFW mouse wheel events to AntTweakBar glfwSetKeyCallback(g_pWindow, (GLFWkeyfun)TwEventKeyGLFW); // - Directly redirect GLFW key events to AntTweakBar glfwSetCharCallback(g_pWindow, (GLFWcharfun)TwEventCharGLFW); // - Directly redirect GLFW char events to AntTweakBar glfwSetWindowSizeCallback(g_pWindow, WindowSizeCallBack); //create the toolbar g_pToolBar = TwNewBar("CG UFPel ToolBar"); // Add 'speed' to 'bar': it is a modifable (RW) variable of type TW_TYPE_DOUBLE. Its key shortcuts are [s] and [S]. double speed = 0.0; TwAddVarRW(g_pToolBar, "speed", TW_TYPE_DOUBLE, &speed, " label='Rot speed' min=0 max=2 step=0.01 keyIncr=s keyDecr=S help='Rotation speed (turns/second)' "); // Add 'bgColor' to 'bar': it is a modifable variable of type TW_TYPE_COLOR3F (3 floats color) vec3 oColor(0.0f); TwAddVarRW(g_pToolBar, "bgColor", TW_TYPE_COLOR3F, &oColor[0], " label='Background color' "); // Ensure we can capture the escape key being pressed below glfwSetInputMode(g_pWindow, GLFW_STICKY_KEYS, GL_TRUE); glfwSetCursorPos(g_pWindow, g_nWidth / 2, g_nHeight / 2); // Dark blue background glClearColor(0.0f, 0.0f, 0.4f, 0.0f); // Enable depth test glEnable(GL_DEPTH_TEST); // Accept fragment if it closer to the camera than the former one glDepthFunc(GL_LESS); // Cull triangles which normal is not towards the camera glEnable(GL_CULL_FACE); GLuint VertexArrayID; glGenVertexArrays(1, &VertexArrayID); glBindVertexArray(VertexArrayID); // Create and compile our GLSL program from the shaders GLuint programID = LoadShaders("shaders/StandardShading.vertexshader", "shaders/StandardShading.fragmentshader"); // Get a handle for our "MVP" uniform GLuint MatrixID = glGetUniformLocation(programID, "MVP"); GLuint ViewMatrixID = glGetUniformLocation(programID, "V"); GLuint ModelMatrixID = glGetUniformLocation(programID, "M"); // Load the texture GLuint Texture = loadDDS("mesh/uvmap.DDS"); // Get a handle for our "myTextureSampler" uniform GLuint TextureID = glGetUniformLocation(programID, "myTextureSampler"); // Read our .obj file std::vector<glm::vec3> vertices; std::vector<glm::vec2> uvs; std::vector<glm::vec3> normals; bool res = loadOBJ("mesh/suzanne.obj", vertices, uvs, normals); std::vector<model> Modelos; double tempo = 5.0, periodo = 15.0, dist = 3; int qnt = 10 + 1; for (int i = 0; i < qnt; i++) Modelos.push_back(model(vertices, uvs, normals)); cout << Modelos.size() << endl; //cout << sin(390.0 * PI / 180) << endl; // Get a handle for our "LightPosition" uniform glUseProgram(programID); GLuint LightID = glGetUniformLocation(programID, "LightPosition_worldspace"); // For speed computation double lastTime = glfwGetTime(); int nbFrames = 0; double t = glfwGetTime(); double t_copy = t; int j = 1; do{ check_gl_error(); //use the control key to free the mouse if (glfwGetKey(g_pWindow, GLFW_KEY_LEFT_CONTROL) != GLFW_PRESS) nUseMouse = 0; else nUseMouse = 1; // Measure speed nbFrames++; double currentTime = glfwGetTime(); if (currentTime - lastTime >= 1.0){ // If last prinf() was more than 1sec ago // printf and reset //printf("%f ms/frame\n", 1000.0 / double(nbFrames)); nbFrames = 0; lastTime += 1.0; } // Clear the screen glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Use our shader glUseProgram(programID); if ((t + periodo) >= currentTime) t = currentTime; if (((t_copy + tempo) <= currentTime) && j < qnt) { cout << currentTime << endl; t_copy = currentTime; Modelos[j].modelMatrix = Modelos[0].modelMatrix; j++; } for (int i = 0; i < Modelos.size(); i++) { if (i == 0) { double angle = ((t * 360)/periodo); double d = ((t * dist)/periodo); Modelos[i].modelMatrix = glm::translate(glm::mat4(1.0), glm::vec3(d, sin(angle * PI / 180), 0)); } // Compute the MVP matrix from keyboard and mouse input computeMatricesFromInputs(nUseMouse, g_nWidth, g_nHeight); glm::mat4 ProjectionMatrix = getProjectionMatrix(); glm::mat4 ViewMatrix = getViewMatrix(); glm::mat4 ModelMatrix = Modelos[i].modelMatrix; glm::mat4 MVP = ProjectionMatrix * ViewMatrix * ModelMatrix; // Send our transformation to the currently bound shader, // in the "MVP" uniform glUniformMatrix4fv(MatrixID, 1, GL_FALSE, &MVP[0][0]); glUniformMatrix4fv(ModelMatrixID, 1, GL_FALSE, &ModelMatrix[0][0]); glUniformMatrix4fv(ViewMatrixID, 1, GL_FALSE, &ViewMatrix[0][0]); glm::vec3 lightPos = glm::vec3(4, 4, 4); glUniform3f(LightID, lightPos.x, lightPos.y, lightPos.z); // Bind our texture in Texture Unit 0 glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, Texture); // Set our "myTextureSampler" sampler to user Texture Unit 0 glUniform1i(TextureID, 0); // 1rst attribute buffer : vertices glEnableVertexAttribArray(0); glBindBuffer(GL_ARRAY_BUFFER, Modelos[i].vertexbuffer); glVertexAttribPointer( 0, // attribute 3, // size GL_FLOAT, // type GL_FALSE, // normalized? 0, // stride (void*)0 // array buffer offset ); // 2nd attribute buffer : UVs glEnableVertexAttribArray(1); glBindBuffer(GL_ARRAY_BUFFER, Modelos[i].uvbuffer); glVertexAttribPointer( 1, // attribute 2, // size GL_FLOAT, // type GL_FALSE, // normalized? 0, // stride (void*)0 // array buffer offset ); // 3rd attribute buffer : normals glEnableVertexAttribArray(2); glBindBuffer(GL_ARRAY_BUFFER, Modelos[i].normalbuffer); glVertexAttribPointer( 2, // attribute 3, // size GL_FLOAT, // type GL_FALSE, // normalized? 0, // stride (void*)0 // array buffer offset ); // Index buffer glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, Modelos[i].elementbuffer); // Draw the triangles ! glDrawElements( GL_TRIANGLES, // mode Modelos[i].indices.size(), // count GL_UNSIGNED_SHORT, // type (void*)0 // element array buffer offset ); } glDisableVertexAttribArray(0); glDisableVertexAttribArray(1); glDisableVertexAttribArray(2); // Draw tweak bars TwDraw(); // Swap buffers glfwSwapBuffers(g_pWindow); glfwPollEvents(); } // Check if the ESC key was pressed or the window was closed while (glfwGetKey(g_pWindow, GLFW_KEY_ESCAPE) != GLFW_PRESS && glfwWindowShouldClose(g_pWindow) == 0); for (int i = 0; i < Modelos.size(); i++) { // Cleanup VBO and shader glDeleteBuffers(1, &Modelos[i].vertexbuffer); glDeleteBuffers(1, &Modelos[i].uvbuffer); glDeleteBuffers(1, &Modelos[i].normalbuffer); glDeleteBuffers(1, &Modelos[i].elementbuffer); } glDeleteProgram(programID); glDeleteTextures(1, &Texture); glDeleteVertexArrays(1, &VertexArrayID); // Terminate AntTweakBar and GLFW TwTerminate(); glfwTerminate(); return 0; }
[ "felipe.oliveira.tk@gmail.com" ]
felipe.oliveira.tk@gmail.com
784a33f7a6915bef853b522959aee47133c2f194
6670724130458d10b458b4f23ee995c4ef0ef242
/MegaProject/Controller/StructureController.cpp
c1abb4f5bf36948e5fcb2eef4eaad3ac089c0857
[]
no_license
AarooneyFarr/MegaProject
d54154e45b61f0e50e2a65caa04ea0b738b5900b
f89a67360999e6fb98a960e63114560fbb581c45
refs/heads/master
2021-01-12T10:32:21.684192
2017-05-26T15:55:08
2017-05-26T15:55:08
81,345,995
0
0
null
null
null
null
UTF-8
C++
false
false
7,897
cpp
// // StructureController.cpp // MegaProject // // Created by Farr, Aaron on 2/8/17. // Copyright © 2017 Farr, Aaron. All rights reserved. // #include "../Model/IntNodeArray.hpp" #include "StructureController.hpp" #include <iostream> #include "../Model/Timer.hpp" #include "../Model/List.hpp" #include "../Model/Meme.hpp" #include "../Model/Tree.hpp" #include "../Model/BinarySearchTree.hpp" #include "../Model/Graph.hpp" using namespace std; StructureController :: StructureController() { wordNode = Node<string>("derpy"); numberNode = Node<int>(); this->numberArray = Array<int>(9); } void StructureController :: testArrayTemplate() { cout << "Array Template" << endl; Timer arrayTimer; arrayTimer.startTimer(); int test [9]; arrayTimer.stopTimer(); arrayTimer.displayTimerInformation(); arrayTimer.resetTimer(); arrayTimer.startTimer(); numberArray = Array<int>(9); arrayTimer.stopTimer(); arrayTimer.displayTimerInformation(); } void StructureController :: testAdvancedFeatures() { int showDestructor = 0; if(showDestructor <1) { Array<string> words = Array<string>(4); cout << "There should be messages about destuctor next." << endl; } Array<string> words = Array<string>(4); words.setAtIndex(0, "at zero"); words.setAtIndex(3, "in the last spot"); Array<string> copiedWords = Array<string>(words); cout << "These should match: " << endl; cout << words.getFromIndex(0) << " should be the same as " << copiedWords.getFromIndex(0) << endl; copiedWords.setAtIndex(3,"Changed the contents of the copied Array"); } void StructureController :: testIntArray() { cout << "Creating an IntNodeArray" << endl; IntNodeArray temp = IntNodeArray(3); for(int spot = 0; spot < 3; spot++) { temp.setAtIndex(spot,spot); } for(int spot = 0; spot < temp.getSize(); spot++) { cout << temp.getFromIndex(spot) << " is at " << spot << endl; } } void StructureController:: testNodeTypes() { } void StructureController :: start() { //cout << "Going to test the IntNodeArray" << endl; //testIntArray(); //cout << "Finished IntNodeArray" << endl; // testListIntro(); //testListTiming(); //testMemeQueue(); //testLists(); //testIntStack(); testBinarySearchTreeOperations(); //testGraph(); //testHashTable(); } void StructureController :: testListIntro() { List<int> sample; sample.addFront(2); sample.addEnd(3); sample.addFront(1); cout << "this should go 1, 2, 3." << endl; } void StructureController :: testListTiming() { DoubleList<int> timingList; for(int index = 0; index < 10000; index++) { timingList.add(rand()); } long slowTime [1000]; long fastTime [1000]; double averageSlow = 0.00, averageFast = 0.00; Timer doubleTimer; for(int index = 0; index < 1000; index++) { int randomIndex = rand() % 10000; doubleTimer.startTimer(); timingList.getFromIndex(randomIndex); doubleTimer.stopTimer(); slowTime[index] = doubleTimer.getExecutionTimeInMicroseconds(); doubleTimer.resetTimer(); doubleTimer.startTimer(); timingList.getFromIndexFast(randomIndex); doubleTimer.stopTimer(); fastTime[index] = doubleTimer.getExecutionTimeInMicroseconds(); doubleTimer.resetTimer(); averageSlow += slowTime[index]; averageFast += fastTime[index]; } averageSlow = averageSlow/1000.00; averageFast = averageFast/1000.00; cout << "The average speed for the getFromIndex method was: " << averageSlow << " microseconds."<< endl; cout << "The average speed for the getFromIndexFast method was: " << averageFast << " microseconds."<< endl; cout << "A time savings?? of: " << averageSlow - averageFast << " microseconds."<< endl; } void StructureController :: testMemeQueue() { Meme firstMeme("toddler fist! with pinwheel"); Queue<Meme> memeQueue; memeQueue.add(firstMeme); memeQueue.add(firstMeme); Meme secondMeme; secondMeme.setDankness(8453); memeQueue.enqueue(secondMeme); memeQueue.peek(); cout << "Size should be 3 and is: " << memeQueue.getSize() << endl; memeQueue.remove(0); cout << "Size should be 2 and is: " << memeQueue.getSize() << endl; Meme temp = memeQueue.dequeue(); cout << "this should be 27 and is: " << temp.getDankness() << endl; } void StructureController :: testLists() { List<int> sample; sample.addFront(2); sample.addFront(1); sample.addEnd(3); sample.setAtIndex(2,5); sample.remove(0); sample.addAtIndex(0,0); cout << "This should be 1 and is: "<< sample.contains(2) << endl; cout << "This should be 025 and is: " << sample.getFromIndex(0) << sample.getFromIndex(1) << sample.getFromIndex(2) << endl; cout << "This should be 0 and is: " << sample.getFromIndex(0) << endl; } void StructureController :: testIntStack() { int firstInt = 1; Stack<int> intStack; intStack.push(firstInt); int secondInt = 2; intStack.push(secondInt); intStack.pop(); cout << "This should be 1 and is " << intStack.peek() << endl; intStack.add(2); intStack.remove(1); } void StructureController :: testGraph() { Graph<string> words; words.addVertex("Aaron"); words.addVertex("Thomas"); words.addVertex("Harry"); words.addVertex("Bekah"); words.addVertex("Rachel"); words.addEdge(0,1); words.addEdge(1,2); words.addEdge(2,3); words.addEdge(3,4); words.addEdge(4,0); words.depthFirstTraversal(words,0); words.breadthFirstTraversal(words,0); } void StructureController :: testHashTable() { HashTable<string> hashWords; hashWords.add("derpy"); hashWords.add("is"); hashWords.add("ammars"); hashWords.add("middle"); hashWords.add("name"); hashWords.add("just"); hashWords.add("in"); hashWords.add("case"); hashWords.add("you"); hashWords.add("didn't"); hashWords.add("know"); hashWords.displayContents(); } void StructureController :: testBinarySearchTreeOperations() { BinarySearchTree<int> numbers; numbers.insert(9843); numbers.insert(10); numbers.insert(43); numbers.insert(-123); numbers.insert(23465); numbers.insert(10); // won't go in numbers.insert(43243); numbers.insert(-45677654); numbers.insert(92165); cout << "Size should be 8 and is: " << numbers.getSize() << endl; cout << "In order traversal should be: \n\t-45677654 \n\t-123 \n\t10 \n\t43 \n\t9843 \n\t23465 \n\t43243 \n\t92165" << endl; numbers.inOrderTraversal(); cout << "Post order traversal should be \n\t-45677654 \n\t-123 \n\t43 \n\t10 \n\t92165 \n\t43243 \n\t23465 \n\t9843" << endl; numbers.postOrderTraversal(); numbers.remove(-45677654); cout << "Size should be 7 and is: " << numbers.getSize() << endl; cout << "Pre order traversal should be \n\t9843 \n\t10 \n\t-123 \n\t43 \n\t23465 \n\t43243 \n\t92165" << endl; numbers.preOrderTraversal(); numbers.remove(10); cout << "Size should be 6 and is: " << numbers.getSize() << endl; cout << "Pre order traversal should be \n\t9843 \n\t-123 \n\t43 \n\t23465 \n\t43243 \n\t92165" << endl; numbers.preOrderTraversal(); cout << "Height should be 4 and is: " << numbers.getHeight() << endl; cout << "Balanced should be false || 0 and is: " << numbers.isBalanced() << endl; }
[ "Aarooney.Farr@gmail.com" ]
Aarooney.Farr@gmail.com
371356a02a0ecbd581e1e5b800e341aa30d6115f
323379c8ea06b5527d5a41ceb75e11b40fe3bc60
/include/daface_det.h
796ee4b6cc53b56c273590153307ee40f1ace79a
[]
no_license
LHQ0308/DAFace
bce8d43dac811ccfd5554ada986bda81e657ee18
3401e9e6804f705c548b99cee195b930d24152df
refs/heads/master
2020-04-27T23:36:23.634854
2017-06-05T15:09:26
2017-06-05T15:09:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
438
h
/****************************************************************************** * FileName: dafece_det.h * Author: binLearning * Version: 1.0.0 * * Description: use seeta-face to detect face region & 5 facial points *****************************************************************************/ #ifndef _DAFACE_DET_H_ #define _DAFACE_DET_H_ #include <string> void DafaceDet(std::string dir_src, std::string dir_dst); #endif
[ "binLearning@163.com" ]
binLearning@163.com
b974402a2c5f40cf2ef56e34330d9259baca94b5
8cd51af419cd7dda12e0ece4ab37c1987f69bb51
/src/BlueMotor.cpp
c6071a557e96ff48430c5f489bd31724327a540e
[]
no_license
sandman-code/Lab6
900c911491a5cf95b76d022734387082e3479e82
528c4264365773baed11bf644a943b905fed2486
refs/heads/main
2023-04-02T14:55:46.551762
2021-03-27T19:48:54
2021-03-27T19:48:54
346,200,669
0
0
null
null
null
null
UTF-8
C++
false
false
4,073
cpp
#include "BlueMotor.h" #include <Romi32U4.h> #include <PID.h> // variables for the counter of controlling the encoder const char X = 5; int errorCount = 0; int oldValue = 0; long count = 0; const int DBdiff = 40; char encoderArray[4][4] = { {0, 1, -1, X}, {-1, 0, X, 0}, {1, X, 0, -1}, {X, -1, 1, 0}}; // the differnt sates for the move to function enum States { Start, clockwise, counterclockwise, stop } armState; PID controlPID(400.0, -400.0, 25, 20, 10); //initilizes all the pins and the interupts void Bluemotor::initilize() { //outputs and inputs to controller the blue motor pinMode(PWM, OUTPUT); pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT); pinMode(ENCA, INPUT); pinMode(ENCB, INPUT); motors.setEfforts(0, 0); //interupts to count the encoder pinMode(2, INPUT); pinMode(3, INPUT); attachInterrupt(digitalPinToInterrupt(2), isr, CHANGE); attachInterrupt(digitalPinToInterrupt(3), isr, CHANGE); //initlize the differnt states armState = Start; }; //The intrupt service routune void Bluemotor::isr() { //shifts the bits left deping on the reading of the second pin, looks up the value in the array int newValue = (digitalRead(3) << 1) | digitalRead(2); char value = encoderArray[oldValue][newValue]; //if the number changed add or subtract, or if the value did not change add add one to errorcount if (value == X) { errorCount++; } else { count -= value; } oldValue = newValue; } //will change the mover the motor clockwiseor counterclockwise and adjust the speed void Bluemotor::setEffort(int effort, bool clockwise) { //turn clockwise if (clockwise) { digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); } //do not turn else if (effort == 0) { digitalWrite(AIN1, LOW); digitalWrite(AIN2, LOW); } //turn counter clockwise else { digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH); } //validaadates the effort number and sends a PWM to the motor int value = constrain(effort, 0, 400); OCR1C = value; } //sorts the inital effort for direction and speed void Bluemotor::setEffort(int effort) { //turn clockwise if (effort < 0) { setEffort(-effort, true); } //turn counterclockwise or stop else { setEffort(effort, false); } } void Bluemotor::setEffortWithoutDB(int effort) { //turn clockwise if (effort < 0) { setEffortWithoutDB(-effort, true); } //turn counterclockwise or stop else { setEffortWithoutDB(effort, false); } } //reports back the position of the motor long Bluemotor::getPosition() { return count; } //resets the position count of the encouder to count that as the new base position void Bluemotor::reset() { count = 0; } void Bluemotor::setEffortWithoutDB(int effort, bool clockwise) { //turn clockwise if (clockwise) { digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); } //do not turn else if (effort == 0) { digitalWrite(AIN1, LOW); digitalWrite(AIN2, LOW); } //turn counter clockwise else { digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH); } //validaadates the effort number and sends a PWM to the motor int value = constrain(effort + DBdiff, 0, 400); Serial.println(value); OCR1C = value; } //moves the mover a certion amount depening on the position input void Bluemotor::moveTo(long position) { //initlizes a Bluemotor varible and grabs the current posiotn of the encoder setEffortWithoutDB(controlPID.calculate(position, getPosition())); } void Bluemotor::goToRelease() { moveTo(7250); } void Bluemotor::goTo45() { moveTo(3590); } void Bluemotor::goTo25() { moveTo(7260); } void Bluemotor::home() { Bluemotor blue; if (digitalRead(limit)) blue.setEffort(0); else { blue.setEffort(-200); } count = 0; }
[ "cade3217@gmail.com" ]
cade3217@gmail.com
65336427007e9d4ac03288573a3cb3c5bae1aa62
0769bb399c7ef945e91d3a2dc227d08214438795
/BilliardsGame/SceneManager.h
70c95e7ad325046bfafe2bc0b16d2cd86c83796d
[]
no_license
ogasho/BilliardsGameDX
307353762d4c9a0147c7fac12dc849dcabbc6207
52e9f7f41c7bfe8b5f2fcc37c0e7ffaa7b23a522
refs/heads/master
2021-01-13T13:56:56.313095
2016-12-14T16:37:42
2016-12-14T16:37:42
72,931,827
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
753
h
/* シーン遷移管理クラス */ // 現在動作しているシーンの監視、切り替えを行う #pragma once #include <d3d11.h> enum class SceneID; class DX11Manager; class ShaderManager; class SceneBase; class SceneNineBall; class InputManager; class SceneManager { public: SceneManager(); ~SceneManager(); bool Init(SceneID firstScene, DX11Manager* dx3D, const InputManager* inputManager, const ShaderManager* shaderManager); bool UpdateChangeScene(DX11Manager* dx3D, const InputManager* inputManager, const ShaderManager* shaderManager); bool Frame(); bool Render(DX11Manager* dx3D); bool IsChangeScene(){ return m_isChangeScene; } private: bool m_isChangeScene; SceneID m_currentSceneID; SceneBase* m_currentScene; };
[ "ogasho100@yahoo.co.jp" ]
ogasho100@yahoo.co.jp
10031c2a3d5684eaad7817d0ff0a5d4d25506aed
9d199804ea3aca63762a6779570cfb482c605834
/DigitalSimulator/sources/Application/Objects/plugin/dll/SimpleType/ObjectPluginManager.cpp
52e19eda95eec62bbea5cc4034cee386c045d761
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
hupfdule/DigitalSimulator
6a9a9e43f2f6a9bab620b0190e8991b6c55e54bb
3b789dcae9adb977bbed681c4459e74bf5f4bf62
refs/heads/master
2020-06-20T06:17:40.835154
2015-05-24T06:37:48
2015-05-24T06:37:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,440
cpp
/* NO WARRANTY * * BECAUSE THE PROGRAM IS IN THE PUBLIC DOMAIN, THERE IS NO * WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE * LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE AUTHORS * AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT * WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO * THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD * THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL * NECESSARY SERVICING, REPAIR OR CORRECTION. * * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN * WRITING WILL ANY AUTHOR, OR ANY OTHER PARTY WHO MAY MODIFY * AND/OR REDISTRIBUTE THE PROGRAM, BE LIABLE TO YOU FOR DAMAGES, * INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL * DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM * (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING * RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES * OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER * PROGRAMS), EVEN IF SUCH AUTHOR OR OTHER PARTY HAS BEEN ADVISED * OF THE POSSIBILITY OF SUCH DAMAGES. */ #pragma warning(disable : 4786) #include "stdafx.h" #include "ObjectPluginManager.h" #include "Application\Debug\LogManager.h" DynamicLibraryMap ObjectPluginManager::m_pluginMap; #include "Application\Objects\buildin\digital\ElectricNodeContext.h" #pragma TODO("Einen Dialog anlegen welcher alle geladenen PlugIns anzeigt (mit Attribute)") //---------------------------------------------------------------------------- void ObjectPluginManager::registerPlugin(CString id, DynamicLibrary *lib){ //---------------------------------------------------------------------------- PROC_TRACE; m_pluginMap[id]=lib; } //---------------------------------------------------------------------------- void ObjectPluginManager::removePlugin(CString){ //---------------------------------------------------------------------------- PROC_TRACE; #pragma TODO("function 'ObjectPluginManager::removePlugin(CString)' not implemented") } //---------------------------------------------------------------------------- StringArray ObjectPluginManager::getAllPlugins(){ //---------------------------------------------------------------------------- PROC_TRACE; StringArray x; DynamicLibraryMap::iterator theIterator; theIterator = m_pluginMap.begin(); while(theIterator != m_pluginMap.end()){ x.push_back((LPCSTR)(*theIterator).first); theIterator++; } return x; } //---------------------------------------------------------------------------- bool ObjectPluginManager::isObjectNameFree(CString name){ //---------------------------------------------------------------------------- PROC_TRACE; DynamicLibraryMap::iterator theIterator; CString item; CString group; CElectricNodeContext* pContext; POSITION pos = g_contextMap->GetStartPosition(); while( pos != NULL ) { g_contextMap->GetNextAssoc( pos, item, pContext ); if(pContext && item!=CString("OBJ_GENERIC") && item==name){ return false; } } return true; } //---------------------------------------------------------------------------- void ObjectPluginManager::clear(){ //---------------------------------------------------------------------------- PROC_TRACE; DynamicLibraryMap::iterator theIterator; theIterator = m_pluginMap.begin(); while(theIterator != m_pluginMap.end()){ ((*theIterator).second)->Unload(); theIterator++; } m_pluginMap.clear(); } //---------------------------------------------------------------------------- IPluginBase* ObjectPluginManager::createInstance(CString contextName, CString inter/*face*/){ //---------------------------------------------------------------------------- PROC_TRACE; IPluginBase *in = NULL;; if(contextName != ""){ DynamicLibrary *lib = m_pluginMap[contextName]; if(lib!=NULL){ if (lib->CreateInterface(inter,reinterpret_cast<IPluginBase**>(&in))){ // hipp } else{ in = NULL; } } } return in; }
[ "a.herz@freegroup.de" ]
a.herz@freegroup.de
1e0bce8126a319655c5c70cae2fbdca49911dee8
e4355967555857fd536787dce39ca30426ffa702
/YouLe/You_系统模块/系统模块/辅助工具/视频服务/Include/IniFile.cpp
22747af4885b20cb9485639317482683d736d85c
[]
no_license
herox25000/oathx-ogrex-editor
f0fd6044f8065db9cb50a80376e52f502734e877
f645c7997f27e11a9063a0d352accd98a474cef1
refs/heads/master
2020-12-24T14:35:34.912603
2013-08-24T06:20:06
2013-08-24T06:20:06
32,935,652
6
9
null
null
null
null
UTF-8
C++
false
false
1,415
cpp
#include "StdAfx.h" #include "IniFile.h" CIniFile::CIniFile(void) { ZeroMemory( m_FileName, sizeof(m_FileName) ); } CIniFile::~CIniFile(void) { } void CIniFile::Load( LPCTSTR FileName ) { lstrcpy( m_FileName, FileName ); } int CIniFile::GetInt(LPCTSTR pszSectionName, LPCTSTR pszKeyName) { return GetPrivateProfileInt(pszSectionName, pszKeyName, 0, m_FileName); } int CIniFile::SetInt(LPCTSTR pszSectionName, LPCTSTR pszKeyName, int nValue) { TCHAR szInt[10]; wsprintf(szInt, _T("%d"), nValue); int err = WritePrivateProfileString(pszSectionName, pszKeyName, szInt, m_FileName); err = GetLastError(); return 0; } int CIniFile::GetString(LPCTSTR pszSectionName, LPCTSTR pszKeyName, LPTSTR pszBuffer, int nLen) { return GetPrivateProfileString(pszSectionName, pszKeyName, NULL, pszBuffer, nLen, m_FileName); } /* int CIniFile::GetString(CString strSectionName, CString strKeyName, CString &strBuffer,int nLen) { char *pszBuffer = new char[nLen]; int n = GetPrivateProfileString(strSectionName, strKeyName, NULL, pszBuffer, nLen, m_FileName); if(n<=0) strBuffer = ""; else strBuffer = pszBuffer; delete []pszBuffer; return n; } */ int CIniFile::SetString(LPCTSTR pszSectionName, LPCTSTR pszKeyName, LPCTSTR pszBuffer) { return WritePrivateProfileString(pszSectionName, pszKeyName, pszBuffer,m_FileName); }
[ "ydxl2011@yahoo.cn@a113e17c-5e0c-ebba-c532-3ad10810a225" ]
ydxl2011@yahoo.cn@a113e17c-5e0c-ebba-c532-3ad10810a225
d63ff4bbfd799ec498e73745a4c865cf4d09ebe4
a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e
/lydsy/3289.cpp
d9c1a338639d27b15797ec4a29f3faa512fe0c45
[ "Apache-2.0" ]
permissive
tangjz/acm-icpc
45764d717611d545976309f10bebf79c81182b57
f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d
refs/heads/master
2023-04-07T10:23:07.075717
2022-12-24T15:30:19
2022-12-26T06:22:53
13,367,317
53
20
Apache-2.0
2022-12-26T06:22:54
2013-10-06T18:57:09
C++
UTF-8
C++
false
false
1,351
cpp
#include <cmath> #include <cstdio> #include <algorithm> using namespace std; const int maxn = 50001; int n, q, a[maxn], tot, que[maxn], sqn, bit[maxn], L, R, tmp, ans[maxn]; struct Query { int id, l, r; bool operator < (const Query &t) const { if(l / sqn != t.l / sqn) return l < t.l; return r < t.r; } } Q[maxn]; void add(int x, int v) { for( ; x <= tot; x += x & -x) bit[x] += v; } int sum(int x) { int ret = 0; for( ; x > 0; x -= x & -x) ret += bit[x]; return ret; } int main() { scanf("%d", &n); sqn = sqrt(n + 0.1); for(int i = 1; i <= n; ++i) { scanf("%d", a + i); que[tot++] = a[i]; } sort(que, que + tot); tot = unique(que, que + tot) - que; for(int i = 1; i <= n; ++i) a[i] = lower_bound(que, que + tot, a[i]) - que + 1; scanf("%d", &q); for(int i = 0; i < q; ++i) { Q[i].id = i; scanf("%d%d", &Q[i].l, &Q[i].r); } sort(Q, Q + q); L = 1; for(int i = 0; i < q; ++i) { for( ; L < Q[i].l; ++L) { tmp -= sum(a[L] - 1); add(a[L], -1); } for( ; L > Q[i].l; --L) { tmp += sum(a[L - 1] - 1); add(a[L - 1], 1); } for( ; R < Q[i].r; ++R) { tmp += R - L + 1 - sum(a[R + 1]); add(a[R + 1], 1); } for( ; R > Q[i].r; --R) { tmp -= R - L + 1 - sum(a[R]); add(a[R], -1); } ans[Q[i].id] = tmp; } for(int i = 0; i < q; ++i) printf("%d\n", ans[i]); return 0; }
[ "t251346744@gmail.com" ]
t251346744@gmail.com
efd3530542bbc554a982e6eb9c3904a0c0c522f7
935c73c085973689f73d2e3e7d604efec2122cfb
/src/WindHorn/WHSurface.cpp
b9f7e3c6e9aa98470cf2ea77feb89a58c0a19f31
[]
no_license
AlanMiu/mir2-cpp
d0d91b05b2d0218464b51a4a156ed8da19505965
a33a92aa01b03a45b0911e51c642740d8612fc77
refs/heads/master
2022-04-16T21:54:24.449441
2017-09-14T17:26:52
2017-09-14T17:26:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,309
cpp
/****************************************************************************************************************** Module Name: Author: Date: [Date][Modifier] : Modified contents *******************************************************************************************************************/ #include "StdAfx.h" #include "WHEngine.h" /****************************************************************************************************************** Function Name : CWHSurface::ReleaseSurface() Author : Date : Purpose : Return : BOOL [Date][Modifier] : Modified contents *******************************************************************************************************************/ BOOL CWHSurface::ReleaseSurface() { if ( m_pDDS ) { m_pDDS->Release(); m_pDDS = NULL; return TRUE; } return FALSE; } /****************************************************************************************************************** Function Name : CWHSurface::CreateOffScreenSurface() Author : Date : Purpose : Params : LPDIRECTDRAW7 pDD DWORD dwXSize DWORD dwYSize Return : BOOL [Date][Modifier] : Modified contents *******************************************************************************************************************/ BOOL CWHSurface::CreateOffScreenSurface(LPDIRECTDRAW7 pDD, DWORD dwXSize, DWORD dwYSize) { HRESULT hr; DDSURFACEDESC2 ddsd; ZeroMemory(&ddsd, sizeof(DDSURFACEDESC2)); ddsd.dwSize = sizeof(DDSURFACEDESC2); ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH; ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_SYSTEMMEMORY; ddsd.dwWidth = dwXSize; ddsd.dwHeight = dwYSize; hr = pDD->CreateSurface(&ddsd, &m_pDDS, NULL); if ( hr != DD_OK ) return FALSE; return TRUE; } /****************************************************************************************************************** Function Name : CWHSurface::CopyImageToSurface() Author : Date : Purpose : Params : DWORD dwSrcWidth DWORD dwSrcHeight WORD* pwSrc Return : BOOL [Date][Modifier] : Modified contents *******************************************************************************************************************/ BOOL CWHSurface::CopyImageToSurface(DWORD dwSrcWidth, DWORD dwSrcHeight, WORD* pwSrc) { DDSURFACEDESC2 ddsd; WORD* pwdDst = NULL; ZeroMemory(&ddsd, sizeof(DDSURFACEDESC2)); ddsd.dwSize = sizeof(DDSURFACEDESC2); if (m_pDDS->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL) == DD_OK) { pwdDst = (WORD*)ddsd.lpSurface; CopyMemory(pwdDst, pwSrc, dwSrcWidth * dwSrcHeight * sizeof(WORD)); m_pDDS->Unlock(NULL); DDCOLORKEY ddck; ddck.dwColorSpaceLowValue = RGB( 0, 0, 0); ddck.dwColorSpaceHighValue = RGB(10, 10, 10); m_pDDS->SetColorKey(DDCKEY_SRCBLT, &ddck); return TRUE; } return FALSE; }
[ "baiyqukq@163.com" ]
baiyqukq@163.com
59f27268aa051284c4f2168af91a1ded1058e93f
42aaa7f06f8c7a6bd5e7691ccaa4150dbe2c7160
/src/md5.cpp
b3eba2c7abd76e2b59e4954c161807375d8a3cd2
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
OatBran/FFNx
a19a26b8f2c94bc53cb4e0c28d25bb1712bed0be
8053c85e3f1b2e64f327f5ddaa09fe8637a85dae
refs/heads/master
2022-07-12T00:19:54.289987
2020-05-07T07:23:22
2020-05-07T07:23:22
261,897,276
0
0
MIT
2020-05-06T22:58:52
2020-05-06T22:58:52
null
UTF-8
C++
false
false
11,421
cpp
/* MD5 converted to C++ class by Frank Thilo (thilo@unix-ag.org) for bzflag (http://www.bzflag.org) based on: md5.h and md5.c reference implemantion of RFC 1321 Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing this software or this function. License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work. RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind. These notices must be retained in any copies of any part of this documentation and/or software. */ /* interface header */ #include "md5.h" /* system implementation headers */ #include <cstdio> // Constants for MD5Transform routine. #define S11 7 #define S12 12 #define S13 17 #define S14 22 #define S21 5 #define S22 9 #define S23 14 #define S24 20 #define S31 4 #define S32 11 #define S33 16 #define S34 23 #define S41 6 #define S42 10 #define S43 15 #define S44 21 /////////////////////////////////////////////// // F, G, H and I are basic MD5 functions. inline MD5::uint4 MD5::F(uint4 x, uint4 y, uint4 z) { return x & y | ~x & z; } inline MD5::uint4 MD5::G(uint4 x, uint4 y, uint4 z) { return x & z | y & ~z; } inline MD5::uint4 MD5::H(uint4 x, uint4 y, uint4 z) { return x ^ y ^ z; } inline MD5::uint4 MD5::I(uint4 x, uint4 y, uint4 z) { return y ^ (x | ~z); } // rotate_left rotates x left n bits. inline MD5::uint4 MD5::rotate_left(uint4 x, int n) { return (x << n) | (x >> (32 - n)); } // FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4. // Rotation is separate from addition to prevent recomputation. inline void MD5::FF(uint4& a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + F(b, c, d) + x + ac, s) + b; } inline void MD5::GG(uint4& a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + G(b, c, d) + x + ac, s) + b; } inline void MD5::HH(uint4& a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + H(b, c, d) + x + ac, s) + b; } inline void MD5::II(uint4& a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) { a = rotate_left(a + I(b, c, d) + x + ac, s) + b; } ////////////////////////////////////////////// // default ctor, just initailize MD5::MD5() { init(); } ////////////////////////////////////////////// // nifty shortcut ctor, compute MD5 for string and finalize it right away MD5::MD5(const std::string& text) { init(); update(text.c_str(), text.length()); finalize(); } ////////////////////////////// void MD5::init() { finalized = false; count[0] = 0; count[1] = 0; // load magic initialization constants. state[0] = 0x67452301; state[1] = 0xefcdab89; state[2] = 0x98badcfe; state[3] = 0x10325476; } MD5::MD5(char* Input, long length) { init(); update(Input, length); finalize(); } MD5::MD5(unsigned char* Input, long length) { init(); update(Input, length); finalize(); } ////////////////////////////// // decodes input (unsigned char) into output (uint4). Assumes len is a multiple of 4. void MD5::decode(uint4 output[], const uint1 input[], size_type len) { for (unsigned int i = 0, j = 0; j < len; i++, j += 4) output[i] = ((uint4)input[j]) | (((uint4)input[j + 1]) << 8) | (((uint4)input[j + 2]) << 16) | (((uint4)input[j + 3]) << 24); } ////////////////////////////// // encodes input (uint4) into output (unsigned char). Assumes len is // a multiple of 4. void MD5::encode(uint1 output[], const uint4 input[], size_type len) { for (size_type i = 0, j = 0; j < len; i++, j += 4) { output[j] = input[i] & 0xff; output[j + 1] = (input[i] >> 8) & 0xff; output[j + 2] = (input[i] >> 16) & 0xff; output[j + 3] = (input[i] >> 24) & 0xff; } } ////////////////////////////// // apply MD5 algo on a block void MD5::transform(const uint1 block[blocksize]) { uint4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; decode(x, block, blocksize); /* Round 1 */ FF(a, b, c, d, x[0], S11, 0xd76aa478); /* 1 */ FF(d, a, b, c, x[1], S12, 0xe8c7b756); /* 2 */ FF(c, d, a, b, x[2], S13, 0x242070db); /* 3 */ FF(b, c, d, a, x[3], S14, 0xc1bdceee); /* 4 */ FF(a, b, c, d, x[4], S11, 0xf57c0faf); /* 5 */ FF(d, a, b, c, x[5], S12, 0x4787c62a); /* 6 */ FF(c, d, a, b, x[6], S13, 0xa8304613); /* 7 */ FF(b, c, d, a, x[7], S14, 0xfd469501); /* 8 */ FF(a, b, c, d, x[8], S11, 0x698098d8); /* 9 */ FF(d, a, b, c, x[9], S12, 0x8b44f7af); /* 10 */ FF(c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */ FF(b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */ FF(a, b, c, d, x[12], S11, 0x6b901122); /* 13 */ FF(d, a, b, c, x[13], S12, 0xfd987193); /* 14 */ FF(c, d, a, b, x[14], S13, 0xa679438e); /* 15 */ FF(b, c, d, a, x[15], S14, 0x49b40821); /* 16 */ /* Round 2 */ GG(a, b, c, d, x[1], S21, 0xf61e2562); /* 17 */ GG(d, a, b, c, x[6], S22, 0xc040b340); /* 18 */ GG(c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */ GG(b, c, d, a, x[0], S24, 0xe9b6c7aa); /* 20 */ GG(a, b, c, d, x[5], S21, 0xd62f105d); /* 21 */ GG(d, a, b, c, x[10], S22, 0x2441453); /* 22 */ GG(c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */ GG(b, c, d, a, x[4], S24, 0xe7d3fbc8); /* 24 */ GG(a, b, c, d, x[9], S21, 0x21e1cde6); /* 25 */ GG(d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */ GG(c, d, a, b, x[3], S23, 0xf4d50d87); /* 27 */ GG(b, c, d, a, x[8], S24, 0x455a14ed); /* 28 */ GG(a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */ GG(d, a, b, c, x[2], S22, 0xfcefa3f8); /* 30 */ GG(c, d, a, b, x[7], S23, 0x676f02d9); /* 31 */ GG(b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */ /* Round 3 */ HH(a, b, c, d, x[5], S31, 0xfffa3942); /* 33 */ HH(d, a, b, c, x[8], S32, 0x8771f681); /* 34 */ HH(c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */ HH(b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */ HH(a, b, c, d, x[1], S31, 0xa4beea44); /* 37 */ HH(d, a, b, c, x[4], S32, 0x4bdecfa9); /* 38 */ HH(c, d, a, b, x[7], S33, 0xf6bb4b60); /* 39 */ HH(b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */ HH(a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */ HH(d, a, b, c, x[0], S32, 0xeaa127fa); /* 42 */ HH(c, d, a, b, x[3], S33, 0xd4ef3085); /* 43 */ HH(b, c, d, a, x[6], S34, 0x4881d05); /* 44 */ HH(a, b, c, d, x[9], S31, 0xd9d4d039); /* 45 */ HH(d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */ HH(c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */ HH(b, c, d, a, x[2], S34, 0xc4ac5665); /* 48 */ /* Round 4 */ II(a, b, c, d, x[0], S41, 0xf4292244); /* 49 */ II(d, a, b, c, x[7], S42, 0x432aff97); /* 50 */ II(c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */ II(b, c, d, a, x[5], S44, 0xfc93a039); /* 52 */ II(a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */ II(d, a, b, c, x[3], S42, 0x8f0ccc92); /* 54 */ II(c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */ II(b, c, d, a, x[1], S44, 0x85845dd1); /* 56 */ II(a, b, c, d, x[8], S41, 0x6fa87e4f); /* 57 */ II(d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */ II(c, d, a, b, x[6], S43, 0xa3014314); /* 59 */ II(b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */ II(a, b, c, d, x[4], S41, 0xf7537e82); /* 61 */ II(d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */ II(c, d, a, b, x[2], S43, 0x2ad7d2bb); /* 63 */ II(b, c, d, a, x[9], S44, 0xeb86d391); /* 64 */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; // Zeroize sensitive information. memset(x, 0, sizeof x); } ////////////////////////////// // MD5 block update operation. Continues an MD5 message-digest // operation, processing another message block void MD5::update(const unsigned char input[], size_type length) { // compute number of bytes mod 64 size_type index = count[0] / 8 % blocksize; // Update number of bits if ((count[0] += (length << 3)) < (length << 3)) count[1]++; count[1] += (length >> 29); // number of bytes we need to fill in buffer size_type firstpart = 64 - index; size_type i; // transform as many times as possible. if (length >= firstpart) { // fill buffer first, transform memcpy(&buffer[index], input, firstpart); transform(buffer); // transform chunks of blocksize (64 bytes) for (i = firstpart; i + blocksize <= length; i += blocksize) transform(&input[i]); index = 0; } else i = 0; // buffer remaining input memcpy(&buffer[index], &input[i], length - i); } ////////////////////////////// // for convenience provide a verson with signed char void MD5::update(const char input[], size_type length) { update((const unsigned char*)input, length); } ////////////////////////////// // MD5 finalization. Ends an MD5 message-digest operation, writing the // the message digest and zeroizing the context. MD5& MD5::finalize() { static unsigned char padding[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; if (!finalized) { // Save number of bits unsigned char bits[8]; encode(bits, count, 8); // pad out to 56 mod 64. size_type index = count[0] / 8 % 64; size_type padLen = (index < 56) ? (56 - index) : (120 - index); update(padding, padLen); // Append length (before padding) update(bits, 8); // Store state in digest encode(digest, state, 16); // Zeroize sensitive information. memset(buffer, 0, sizeof buffer); memset(count, 0, sizeof count); finalized = true; } return *this; } ////////////////////////////// // return hex representation of digest as string std::string MD5::hexdigest() const { if (!finalized) return ""; char buf[33]; for (int i = 0; i < 16; i++) sprintf(buf + i * 2, "%02x", digest[i]); buf[32] = 0; return std::string(buf); } ////////////////////////////// std::ostream& operator<<(std::ostream& out, MD5 md5) { return out << md5.hexdigest(); } ////////////////////////////// std::string md5(const std::string str) { MD5 md5 = MD5(str); return md5.hexdigest(); } std::string md5(char* Input, long length) { MD5 md5 = MD5(Input, length); return md5.hexdigest(); }
[ "info@julianxhokaxhiu.com" ]
info@julianxhokaxhiu.com
5aee861dcaa1eedef5aacb58a4fe90f58ec946b3
481f3c6b713379912988084cf10810e7d9a74fd0
/services/image_annotation/annotator_unittest.cc
62bad57482339822654afb7bb6a09055dd16f9c5
[ "MPL-2.0-no-copyleft-exception", "LicenseRef-scancode-unknown-license-reference", "AGPL-3.0-only", "LGPL-2.1-only", "GPL-2.0-only", "MPL-2.0", "BSD-3-Clause" ]
permissive
huhisoft/huhi-android
bab71148730ff68b770f56b93b731302528045ec
1c00f05a2ab19f0d6acf42331931de61555a93e8
refs/heads/master
2023-01-13T11:26:25.618267
2019-11-11T04:09:38
2019-11-11T04:09:38
219,455,870
0
4
BSD-3-Clause
2022-12-10T08:31:33
2019-11-04T08:48:00
null
UTF-8
C++
false
false
85,986
cc
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/image_annotation/annotator.h" #include <cstring> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include "base/optional.h" #include "base/strings/stringprintf.h" #include "base/test/metrics/histogram_tester.h" #include "base/test/task_environment.h" #include "base/time/time.h" #include "mojo/public/cpp/bindings/binding_set.h" #include "net/base/net_errors.h" #include "net/http/http_status_code.h" #include "services/data_decoder/public/cpp/test_data_decoder_service.h" #include "services/data_decoder/public/mojom/constants.mojom.h" #include "services/data_decoder/public/mojom/json_parser.mojom.h" #include "services/image_annotation/image_annotation_metrics.h" #include "services/image_annotation/public/mojom/image_annotation.mojom.h" #include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h" #include "services/network/public/mojom/url_loader.mojom-shared.h" #include "services/network/test/test_url_loader_factory.h" #include "services/service_manager/public/cpp/connector.h" #include "services/service_manager/public/mojom/service.mojom.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" namespace image_annotation { namespace { using base::Bucket; using testing::ElementsAre; using testing::Eq; using testing::IsEmpty; using testing::SizeIs; using testing::UnorderedElementsAre; MATCHER_P3(AnnotatorEq, type, score, text, "") { return (arg.type == type && arg.score == score && arg.text == text); } constexpr char kTestServerUrl[] = "https://ia-pa.googleapis.com/v1/annotation"; // Example image URLs. constexpr char kImage1Url[] = "https://www.example.com/image1.jpg"; constexpr char kImage2Url[] = "https://www.example.com/image2.jpg"; constexpr char kImage3Url[] = "https://www.example.com/image3.jpg"; // Example server requests / responses. // Template for a request for a single image. constexpr char kTemplateRequest[] = R"( { "imageRequests": [{ "imageId": "%s", "imageBytes": "%s", "engineParameters": [ {"ocrParameters": {}}, {"descriptionParameters": {}} ] }] } )"; // Batch request for |kImage1Url|, |kImage2Url| and |kImage3Url|. constexpr char kBatchRequest[] = R"( { "imageRequests": [ { "imageId": "https://www.example.com/image3.jpg", "imageBytes": "BwgJ", "engineParameters": [ {"ocrParameters": {}}, {"descriptionParameters": {}} ] }, { "imageId": "https://www.example.com/image2.jpg", "imageBytes": "BAUG", "engineParameters": [ {"ocrParameters": {}}, {"descriptionParameters": {}} ] }, { "imageId": "https://www.example.com/image1.jpg", "imageBytes": "AQID", "engineParameters": [ {"ocrParameters": {}}, {"descriptionParameters": {}} ] } ] })"; // Successful OCR text extraction for |kImage1Url| with no descriptions. constexpr char kOcrSuccessResponse[] = R"( { "results": [ { "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [ { "words": [ { "detectedText": "Region", "confidenceScore": 1.0 }, { "detectedText": "1", "confidenceScore": 1.0 } ] }, { "words": [ { "detectedText": "Region", "confidenceScore": 1.0 }, { "detectedText": "2", "confidenceScore": 1.0 } ] } ] } }, { "status": {}, "descriptionEngine": { "descriptionList": {} } } ] } ] } )"; // Batch response containing successful annotations for |kImage1Url| and // |kImage2Url|, and a failure for |kImage3Url|. // // The results also appear "out of order" (i.e. image 2 comes before image 1). constexpr char kBatchResponse[] = R"( { "results": [ { "imageId": "https://www.example.com/image2.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "2", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": {} } } ] }, { "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "1", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": {} } } ] }, { "imageId": "https://www.example.com/image3.jpg", "engineResults": [ { "status": { "code": 8, "message": "Resource exhausted" }, "ocrEngine": {} }, { "status": { "code": 8, "message": "Resource exhausted" }, "descriptionEngine": {} } ] } ] })"; constexpr base::TimeDelta kThrottle = base::TimeDelta::FromSeconds(1); // The minimum dimension required for description annotation. constexpr int32_t kDescDim = Annotator::kDescMinDimension; // The description language to use in tests that don't exercise // language-handling logic. constexpr char kDescLang[] = ""; // An image processor that holds and exposes the callbacks it is passed. class TestImageProcessor : public mojom::ImageProcessor { public: TestImageProcessor() = default; mojom::ImageProcessorPtr GetPtr() { mojom::ImageProcessorPtr ptr; bindings_.AddBinding(this, mojo::MakeRequest(&ptr)); return ptr; } void Reset() { bindings_.CloseAllBindings(); callbacks_.clear(); } void GetJpgImageData(GetJpgImageDataCallback callback) override { callbacks_.push_back(std::move(callback)); } std::vector<GetJpgImageDataCallback>& callbacks() { return callbacks_; } private: std::vector<GetJpgImageDataCallback> callbacks_; mojo::BindingSet<mojom::ImageProcessor> bindings_; DISALLOW_COPY_AND_ASSIGN(TestImageProcessor); }; // A class that supports test URL loading for the "server" use case: where // all request URLs have the same prefix and differ only in suffix and body // content. class TestServerURLLoaderFactory { public: TestServerURLLoaderFactory(const std::string& server_url_prefix) : server_url_prefix_(server_url_prefix), shared_loader_factory_( base::MakeRefCounted<network::WeakWrapperSharedURLLoaderFactory>( &loader_factory_)) {} const std::vector<network::TestURLLoaderFactory::PendingRequest>& requests() { return *loader_factory_.pending_requests(); } // Expects that the earliest received request has the given URL, headers and // body, and replies with the given response. // // |expected_headers| is a map from header key string to either: // a) a null optional, if the given header should not be present, or // b) a non-null optional, if the given header should be present and match // the optional value. // // Consumes the earliest received request (i.e. a subsequent call will apply // to the second-earliest received request and so on). void ExpectRequestAndSimulateResponse( const std::string& expected_url_suffix, const std::map<std::string, base::Optional<std::string>>& expected_headers, const std::string& expected_body, const std::string& response, const net::HttpStatusCode response_code) { const std::string expected_url = server_url_prefix_ + expected_url_suffix; const std::vector<network::TestURLLoaderFactory::PendingRequest>& pending_requests = *loader_factory_.pending_requests(); CHECK(!pending_requests.empty()); const network::ResourceRequest& request = pending_requests.front().request; // Assert that the earliest request is for the given URL. CHECK_EQ(request.url, GURL(expected_url)); // Expect that specified headers are accurate. for (const auto& kv : expected_headers) { if (kv.second.has_value()) { std::string actual_value; EXPECT_THAT(request.headers.GetHeader(kv.first, &actual_value), Eq(true)); EXPECT_THAT(actual_value, Eq(*kv.second)); } else { EXPECT_THAT(request.headers.HasHeader(kv.first), Eq(false)); } } // Extract request body. std::string actual_body; if (request.request_body) { const std::vector<network::DataElement>* const elements = request.request_body->elements(); // We only support the simplest body structure. CHECK(elements && elements->size() == 1 && (*elements)[0].type() == network::mojom::DataElementType::kBytes); actual_body = std::string((*elements)[0].bytes(), (*elements)[0].length()); } EXPECT_THAT(actual_body, Eq(expected_body)); // Guaranteed to match the first request based on URL. loader_factory_.SimulateResponseForPendingRequest(expected_url, response, response_code); } scoped_refptr<network::SharedURLLoaderFactory> AsSharedURLLoaderFactory() { return shared_loader_factory_; } private: const std::string server_url_prefix_; network::TestURLLoaderFactory loader_factory_; scoped_refptr<network::SharedURLLoaderFactory> shared_loader_factory_; DISALLOW_COPY_AND_ASSIGN(TestServerURLLoaderFactory); }; // Returns a "canonically" formatted version of a JSON string by parsing and // then rewriting it. std::string ReformatJson(const std::string& in) { const std::unique_ptr<base::Value> json = base::JSONReader::ReadDeprecated(in); CHECK(json); std::string out; base::JSONWriter::Write(*json, &out); return out; } // Receives the result of an annotation request and writes the result data into // the given variables. void ReportResult(base::Optional<mojom::AnnotateImageError>* const error, std::vector<mojom::Annotation>* const annotations, mojom::AnnotateImageResultPtr result) { if (result->which() == mojom::AnnotateImageResult::Tag::ERROR_CODE) { *error = result->get_error_code(); } else { // If annotations exists, then it is not empty. ASSERT_THAT(result->get_annotations(), Not(IsEmpty())); for (const auto& annotation_ptr : result->get_annotations()) { annotations->push_back(*annotation_ptr); } } } } // namespace // Test that annotation works for one client, and that the cache is populated. TEST(AnnotatorTest, OcrSuccessAndCache) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; // First call performs original image annotation. { base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage( kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); test_task_env.RunUntilIdle(); // HTTP request should have been made. const std::string request = ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")); test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, request, kOcrSuccessResponse, net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called. ASSERT_THAT(error, Eq(base::nullopt)); EXPECT_THAT(annotations, UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); // Metrics should have been logged for the major actions of the service. histogram_tester.ExpectUniqueSample(metrics_internal::kCacheHit, false, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kPixelFetchSuccess, true, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerRequestSize, request.size() / 1024, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample( metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerResponseSize, std::strlen(kOcrSuccessResponse), 1); histogram_tester.ExpectUniqueSample(metrics_internal::kJsonParseSuccess, true, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "Ocr"), 100, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "Ocr"), false, 1); } // Second call uses cached results. { base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage( kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Pixels shouldn't be requested. ASSERT_THAT(processor.callbacks(), IsEmpty()); // Results should have been directly returned without any server call. ASSERT_THAT(error, Eq(base::nullopt)); EXPECT_THAT(annotations, UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); // Metrics should have been logged for a cache hit. EXPECT_THAT(histogram_tester.GetAllSamples(metrics_internal::kCacheHit), UnorderedElementsAre(Bucket(false, 1), Bucket(true, 1))); } } // Test that description annotations are successfully returned. TEST(AnnotatorTest, DescriptionSuccess) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); test_task_env.RunUntilIdle(); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": {} }, { "status": {}, "descriptionEngine": { "descriptionList": { "descriptions": [ { "type": "CAPTION", "text": "This is an example image.", "score": 0.9 }, { "type": "LABEL", "text": "Example image", "score": 1.0 } ] } } } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called. ASSERT_THAT(error, Eq(base::nullopt)); EXPECT_THAT( annotations, UnorderedElementsAre( AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, ""), AnnotatorEq(mojom::AnnotationType::kCaption, 0.9, "This is an example image."), AnnotatorEq(mojom::AnnotationType::kLabel, 1.0, "Example image"))); // Metrics about the description results should have been logged. histogram_tester.ExpectUniqueSample( metrics_internal::kImageRequestIncludesDesc, true, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "DescCaption"), 90, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "DescLabel"), 100, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "DescCaption"), false, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "DescLabel"), false, 1); } // Test that the specialized OCR result takes precedence. TEST(AnnotatorTest, DoubleOcrResult) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); test_task_env.RunUntilIdle(); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "Region 1", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": { "descriptions": [ { "type": "CAPTION", "text": "This is an example image.", "score": 0.9 }, { "type": "OCR", "text": "R3gi0n I", "score": 1.0 } ] } } } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called. ASSERT_THAT(error, Eq(base::nullopt)); EXPECT_THAT(annotations, UnorderedElementsAre( AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1"), AnnotatorEq(mojom::AnnotationType::kCaption, 0.9, "This is an example image."))); // Metrics about the returned results should have been logged. histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "Ocr"), 100, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "DescCaption"), 90, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "DescOcr"), 100, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "Ocr"), false, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "DescCaption"), false, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "DescOcr"), false, 1); } // Test that HTTP failure is gracefully handled. TEST(AnnotatorTest, HttpError) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), "", net::HTTP_INTERNAL_SERVER_ERROR); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called. EXPECT_THAT(error, Eq(mojom::AnnotateImageError::kFailure)); EXPECT_THAT(annotations, IsEmpty()); // Metrics about the HTTP request failure should have been logged. histogram_tester.ExpectUniqueSample( metrics_internal::kServerNetError, net::Error::ERR_HTTP_RESPONSE_CODE_FAILURE, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_INTERNAL_SERVER_ERROR, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kClientResult, ClientResult::kFailed, 1); } // Test that backend failure is gracefully handled. TEST(AnnotatorTest, BackendError) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": { "code": 8, "message": "Resource exhausted" }, "ocrEngine": {} }, { "status": { "code": 8, "messages": "Resource exhausted" }, "descriptionEngine": {} } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called // with an error status. EXPECT_THAT(error, Eq(mojom::AnnotateImageError::kFailure)); EXPECT_THAT(annotations, IsEmpty()); // Metrics about the backend failure should have been logged. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 8 /* Failed RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 8 /* Failed RPC status */, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kClientResult, ClientResult::kFailed, 1); } // Test that partial results are returned if the OCR backend fails. TEST(AnnotatorTest, OcrBackendError) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": { "code": 8, "message": "Resource exhausted" }, "ocrEngine": {} }, { "status": {}, "descriptionEngine": { "descriptionList": { "descriptions": [{ "type": "CAPTION", "text": "This is an example image.", "score": 0.9 }] } } } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called. EXPECT_THAT(error, Eq(base::nullopt)); EXPECT_THAT(annotations, UnorderedElementsAre( AnnotatorEq(mojom::AnnotationType::kCaption, 0.9, "This is an example image."))); // Metrics about the partial results should have been logged. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 8 /* Failed RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "DescCaption"), 90, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "DescCaption"), false, 1); } // Test that partial results are returned if the description backend fails. TEST(AnnotatorTest, DescriptionBackendError) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "1", "confidenceScore": 1.0 }] }] } }, { "status": { "code": 8, "message": "Resource exhausted" }, "descriptionEngine": {} } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called. EXPECT_THAT(error, Eq(base::nullopt)); EXPECT_THAT(annotations, UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "1"))); // Metrics about the partial results should have been logged. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 8 /* Failed RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "Ocr"), 100, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "Ocr"), false, 1); } // Test that server failure (i.e. nonsense response) is gracefully handled. TEST(AnnotatorTest, ServerError) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request should have been made; respond with nonsense string. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), "Hello, world!", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called // with an error status. EXPECT_THAT(error, Eq(mojom::AnnotateImageError::kFailure)); EXPECT_THAT(annotations, IsEmpty()); // Metrics about the invalid response format should have been logged. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kJsonParseSuccess, false, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kClientResult, ClientResult::kFailed, 1); } // Test that adult content returns an error. TEST(AnnotatorTest, AdultError) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; base::Optional<mojom::AnnotateImageError> error; std::vector<mojom::Annotation> annotations; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::BindOnce(&ReportResult, &error, &annotations)); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [] } }, { "status": {}, "descriptionEngine": { "failureReason": "ADULT" } } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // HTTP response should have completed and callback should have been called // with an error status. EXPECT_THAT(error, Eq(mojom::AnnotateImageError::kAdult)); EXPECT_THAT(annotations, IsEmpty()); // Metrics about the adult error should have been logged. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kDescFailure, DescFailureReason::kAdult, 1); } // Test that work is reassigned if a processor fails. TEST(AnnotatorTest, ProcessorFails) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[3]; base::Optional<mojom::AnnotateImageError> error[3]; std::vector<mojom::Annotation> annotations[3]; for (int i = 0; i < 3; ++i) { annotator.AnnotateImage( kImage1Url, kDescLang, processor[i].GetPtr(), base::BindOnce(&ReportResult, &error[i], &annotations[i])); } test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for image 1's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); // Make processor 1 fail by returning empty bytes. std::move(processor[0].callbacks()[0]).Run({}, 0, 0); processor[0].callbacks().pop_back(); test_task_env.RunUntilIdle(); // Annotator should have asked processor 2 for image 1's pixels. ASSERT_THAT(processor[0].callbacks(), IsEmpty()); ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); // Send back image data. std::move(processor[1].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[1].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request for image 1 should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called all callbacks, but request 1 received an error // when we returned empty bytes. ASSERT_THAT(error, ElementsAre(mojom::AnnotateImageError::kFailure, base::nullopt, base::nullopt)); EXPECT_THAT(annotations[0], IsEmpty()); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); EXPECT_THAT(annotations[2], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); // Metrics about the pixel fetch failure should have been logged. EXPECT_THAT( histogram_tester.GetAllSamples(metrics_internal::kPixelFetchSuccess), UnorderedElementsAre(Bucket(false, 1), Bucket(true, 1))); EXPECT_THAT(histogram_tester.GetAllSamples(metrics_internal::kClientResult), UnorderedElementsAre( Bucket(static_cast<int32_t>(ClientResult::kFailed), 1), Bucket(static_cast<int32_t>(ClientResult::kSucceeded), 2))); } // Test a case that was previously buggy: when one client requests annotations, // then fails local processing, then another client makes the same request. TEST(AnnotatorTest, ProcessorFailedPreviously) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[2]; base::Optional<mojom::AnnotateImageError> error[2]; std::vector<mojom::Annotation> annotations[2]; // Processor 1 makes a request for annotation of a given image. annotator.AnnotateImage( kImage1Url, kDescLang, processor[0].GetPtr(), base::BindOnce(&ReportResult, &error[0], &annotations[0])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for the image's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); // Make processor 1 fail by returning empty bytes. std::move(processor[0].callbacks()[0]).Run({}, 0, 0); processor[0].callbacks().pop_back(); test_task_env.RunUntilIdle(); // Processor 2 makes a request for annotation of the same image. annotator.AnnotateImage( kImage1Url, kDescLang, processor[1].GetPtr(), base::BindOnce(&ReportResult, &error[1], &annotations[1])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 2 for the image's pixels. ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); // Send back image data. std::move(processor[1].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[1].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request for image 1 should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called all callbacks, but request 1 received an error // when we returned empty bytes. ASSERT_THAT(error, ElementsAre(mojom::AnnotateImageError::kFailure, base::nullopt)); EXPECT_THAT(annotations[0], IsEmpty()); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); } // Test that work is reassigned if processor dies. TEST(AnnotatorTest, ProcessorDies) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[3]; base::Optional<mojom::AnnotateImageError> error[3]; std::vector<mojom::Annotation> annotations[3]; for (int i = 0; i < 3; ++i) { annotator.AnnotateImage( kImage1Url, kDescLang, processor[i].GetPtr(), base::BindOnce(&ReportResult, &error[i], &annotations[i])); } test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for image 1's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); // Kill processor 1. processor[0].Reset(); test_task_env.RunUntilIdle(); // Annotator should have asked processor 2 for image 1's pixels. ASSERT_THAT(processor[0].callbacks(), IsEmpty()); ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); // Send back image data. std::move(processor[1].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[1].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // HTTP request for image 1 should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called all callbacks, but request 1 was canceled when // we reset processor 1. ASSERT_THAT(error, ElementsAre(mojom::AnnotateImageError::kCanceled, base::nullopt, base::nullopt)); EXPECT_THAT(annotations[0], IsEmpty()); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); EXPECT_THAT(annotations[2], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); // Metrics about the client cancelation should have been logged. EXPECT_THAT(histogram_tester.GetAllSamples(metrics_internal::kClientResult), UnorderedElementsAre( Bucket(static_cast<int32_t>(ClientResult::kCanceled), 1), Bucket(static_cast<int32_t>(ClientResult::kSucceeded), 2))); } // Test that multiple concurrent requests are handled in the same batch. TEST(AnnotatorTest, ConcurrentSameBatch) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 3 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[3]; base::Optional<mojom::AnnotateImageError> error[3]; std::vector<mojom::Annotation> annotations[3]; // Request OCR for images 1, 2 and 3. annotator.AnnotateImage( kImage1Url, kDescLang, processor[0].GetPtr(), base::BindOnce(&ReportResult, &error[0], &annotations[0])); annotator.AnnotateImage( kImage2Url, kDescLang, processor[1].GetPtr(), base::BindOnce(&ReportResult, &error[1], &annotations[1])); annotator.AnnotateImage( kImage3Url, kDescLang, processor[2].GetPtr(), base::BindOnce(&ReportResult, &error[2], &annotations[2])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for image 1's pixels, processor // 2 for image 2's pixels and processor 3 for image 3's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); ASSERT_THAT(processor[2].callbacks(), SizeIs(1)); // Send back image data. std::move(processor[0].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[0].callbacks().pop_back(); std::move(processor[1].callbacks()[0]).Run({4, 5, 6}, kDescDim, kDescDim); processor[1].callbacks().pop_back(); std::move(processor[2].callbacks()[0]).Run({7, 8, 9}, kDescDim, kDescDim); processor[2].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // A single HTTP request for all images should have been sent. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(kBatchRequest), kBatchResponse, net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called each callback with its corresponding text or // failure. ASSERT_THAT(error, ElementsAre(base::nullopt, base::nullopt, mojom::AnnotateImageError::kFailure)); EXPECT_THAT(annotations[0], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "1"))); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "2"))); EXPECT_THAT(annotations[2], IsEmpty()); // Metrics should have been logged for a single server response with multiple // results included. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 1); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 1); EXPECT_THAT(histogram_tester.GetAllSamples(base::StringPrintf( metrics_internal::kAnnotationStatus, "Ocr")), UnorderedElementsAre(Bucket(8 /* Failed RPC status */, 1), Bucket(0 /* OK RPC status */, 2))); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "Ocr"), 100, 2); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "Ocr"), false, 2); EXPECT_THAT(histogram_tester.GetAllSamples(metrics_internal::kClientResult), UnorderedElementsAre( Bucket(static_cast<int32_t>(ClientResult::kFailed), 1), Bucket(static_cast<int32_t>(ClientResult::kSucceeded), 2))); } // Test that multiple concurrent requests are handled in separate batches. TEST(AnnotatorTest, ConcurrentSeparateBatches) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 3 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[2]; base::Optional<mojom::AnnotateImageError> error[2]; std::vector<mojom::Annotation> annotations[2]; // Request OCR for image 1. annotator.AnnotateImage( kImage1Url, kDescLang, processor[0].GetPtr(), base::BindOnce(&ReportResult, &error[0], &annotations[0])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for image 1's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); // Send back image 1 data. std::move(processor[0].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[0].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // Request OCR for image 2. annotator.AnnotateImage( kImage2Url, kDescLang, processor[1].GetPtr(), base::BindOnce(&ReportResult, &error[1], &annotations[1])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 2 for image 2's pixels. ASSERT_THAT(processor[0].callbacks(), IsEmpty()); ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); // Send back image 2 data. std::move(processor[1].callbacks()[0]).Run({4, 5, 6}, kDescDim, kDescDim); processor[1].callbacks().pop_back(); test_task_env.RunUntilIdle(); // Only the HTTP request for image 1 should have been made (the service is // still waiting to make the batch that will include the request for image // 2). test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), R"({ "results": [{ "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "1", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": {} } } ] }] })", net::HTTP_OK); EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // Now the HTTP request for image 2 should have been made. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage2Url, "BAUG")), R"({ "results": [{ "imageId": "https://www.example.com/image2.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "2", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": {} } } ] }] })", net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called each callback with its corresponding text. ASSERT_THAT(error, ElementsAre(base::nullopt, base::nullopt)); EXPECT_THAT(annotations[0], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "1"))); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "2"))); // Metrics should have been logged for two server responses. histogram_tester.ExpectUniqueSample(metrics_internal::kServerNetError, net::Error::OK, 2); histogram_tester.ExpectUniqueSample(metrics_internal::kServerHttpResponseCode, net::HTTP_OK, 2); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 0 /* OK RPC status */, 2); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "Ocr"), 100, 2); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "Ocr"), false, 2); histogram_tester.ExpectUniqueSample(metrics_internal::kClientResult, ClientResult::kSucceeded, 2); } // Test that work is not duplicated if it is already ongoing. TEST(AnnotatorTest, DuplicateWork) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[4]; base::Optional<mojom::AnnotateImageError> error[4]; std::vector<mojom::Annotation> annotations[4]; // First request annotation of the image with processor 1. annotator.AnnotateImage( kImage1Url, kDescLang, processor[0].GetPtr(), base::BindOnce(&ReportResult, &error[0], &annotations[0])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for the image's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); ASSERT_THAT(processor[3].callbacks(), IsEmpty()); // Now request annotation of the image with processor 2. annotator.AnnotateImage( kImage1Url, kDescLang, processor[1].GetPtr(), base::BindOnce(&ReportResult, &error[1], &annotations[1])); test_task_env.RunUntilIdle(); // Annotator *should not* have asked processor 2 for the image's pixels (since // processor 1 is already handling that). ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); ASSERT_THAT(processor[3].callbacks(), IsEmpty()); // Get processor 1 to reply with bytes for the image. std::move(processor[0].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[0].callbacks().pop_back(); test_task_env.RunUntilIdle(); // Now request annotation of the image with processor 3. annotator.AnnotateImage( kImage1Url, kDescLang, processor[2].GetPtr(), base::BindOnce(&ReportResult, &error[2], &annotations[2])); test_task_env.RunUntilIdle(); // Annotator *should not* have asked processor 3 for the image's pixels (since // it has already has the pixels in the HTTP request queue). ASSERT_THAT(processor[0].callbacks(), IsEmpty()); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); ASSERT_THAT(processor[3].callbacks(), IsEmpty()); EXPECT_THAT(test_url_factory.requests(), IsEmpty()); // Allow batch HTTP request to be sent off and then request annotation of the // image with processor 4. test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); EXPECT_THAT(test_url_factory.requests(), SizeIs(1)); annotator.AnnotateImage( kImage1Url, kDescLang, processor[3].GetPtr(), base::BindOnce(&ReportResult, &error[3], &annotations[3])); test_task_env.RunUntilIdle(); // Annotator *should not* have asked processor 4 for the image's pixels (since // an HTTP request for the image is already in process). ASSERT_THAT(processor[0].callbacks(), IsEmpty()); ASSERT_THAT(processor[1].callbacks(), IsEmpty()); ASSERT_THAT(processor[2].callbacks(), IsEmpty()); ASSERT_THAT(processor[3].callbacks(), IsEmpty()); // HTTP request for the image should have been made (with bytes obtained from // processor 1). test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called all callbacks with annotation results. ASSERT_THAT(error, ElementsAre(base::nullopt, base::nullopt, base::nullopt, base::nullopt)); EXPECT_THAT(annotations[0], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); EXPECT_THAT(annotations[2], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); EXPECT_THAT(annotations[3], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "Region 1\nRegion 2"))); // Metrics should have been logged for a single pixel fetch. histogram_tester.ExpectUniqueSample(metrics_internal::kPixelFetchSuccess, true, 1); } // Test that the description engine is not requested for images that violate // model policy (i.e. are too small or have too-high an aspect ratio). TEST(AnnotatorTest, DescPolicy) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 3 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[3]; base::Optional<mojom::AnnotateImageError> error[3]; std::vector<mojom::Annotation> annotations[3]; // Request annotation for images 1, 2 and 3. annotator.AnnotateImage( kImage1Url, kDescLang, processor[0].GetPtr(), base::BindOnce(&ReportResult, &error[0], &annotations[0])); annotator.AnnotateImage( kImage2Url, kDescLang, processor[1].GetPtr(), base::BindOnce(&ReportResult, &error[1], &annotations[1])); annotator.AnnotateImage( kImage3Url, kDescLang, processor[2].GetPtr(), base::BindOnce(&ReportResult, &error[2], &annotations[2])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 for image 1's pixels, processor // 2 for image 2's pixels and processor 3 for image 3's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); ASSERT_THAT(processor[2].callbacks(), SizeIs(1)); // Send back image data. // // Image 1 is (just) within policy. Image 2 violates policy because it is too // small. Image 3 is large enough, but violates policy because of its aspect // ratio. std::move(processor[0].callbacks()[0]) .Run({1, 2, 3}, Annotator::kDescMinDimension, Annotator::kDescMinDimension); processor[0].callbacks().pop_back(); std::move(processor[1].callbacks()[0]) .Run({4, 5, 6}, Annotator::kDescMinDimension, Annotator::kDescMinDimension - 1); processor[1].callbacks().pop_back(); std::move(processor[2].callbacks()[0]) .Run({7, 8, 9}, static_cast<int32_t>(Annotator::kDescMinDimension * Annotator::kDescMaxAspectRatio) + 1, Annotator::kDescMinDimension); processor[2].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // A single HTTP request for all images should have been sent. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, // Only image 1 includes a description request (as the other two violate // one of the policies). ReformatJson(R"( { "imageRequests": [ { "imageId": "https://www.example.com/image3.jpg", "imageBytes": "BwgJ", "engineParameters": [ {"ocrParameters": {}} ] }, { "imageId": "https://www.example.com/image2.jpg", "imageBytes": "BAUG", "engineParameters": [ {"ocrParameters": {}} ] }, { "imageId": "https://www.example.com/image1.jpg", "imageBytes": "AQID", "engineParameters": [ {"ocrParameters": {}}, {"descriptionParameters": {}} ] } ] } )"), R"( { "results": [ { "imageId": "https://www.example.com/image2.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "2", "confidenceScore": 1.0 }] }] } } ] }, { "imageId": "https://www.example.com/image1.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "1", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": { "descriptions": [{ "type": "CAPTION", "text": "This is an example image.", "score": 1.0 }] } } } ] }, { "imageId": "https://www.example.com/image3.jpg", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "3", "confidenceScore": 1.0 }] }] } } ] } ] } )", net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called each callback with its corresponding results. ASSERT_THAT(error, ElementsAre(base::nullopt, base::nullopt, base::nullopt)); EXPECT_THAT( annotations[0], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "1"), AnnotatorEq(mojom::AnnotationType::kCaption, 1.0, "This is an example image."))); EXPECT_THAT(annotations[1], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "2"))); EXPECT_THAT(annotations[2], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "3"))); // Metrics should have been logged for the 3 OCR results and 1 description // result. EXPECT_THAT(histogram_tester.GetAllSamples( metrics_internal::kImageRequestIncludesDesc), UnorderedElementsAre(Bucket(false, 2), Bucket(true, 1))); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Ocr"), 0 /* OK RPC status */, 3); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationStatus, "Desc"), 0 /* OK RPC status */, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "Ocr"), 100, 3); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationConfidence, "DescCaption"), 100, 1); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "Ocr"), false, 3); histogram_tester.ExpectUniqueSample( base::StringPrintf(metrics_internal::kAnnotationEmpty, "DescCaption"), false, 1); } // Test that description language preferences are sent to the server. TEST(AnnotatorTest, DescLanguage) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); data_decoder::TestDataDecoderService test_dd_service; base::HistogramTester histogram_tester; Annotator annotator( GURL(kTestServerUrl), std::string() /* api_key */, kThrottle, 3 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor[3]; base::Optional<mojom::AnnotateImageError> error[3]; std::vector<mojom::Annotation> annotations[3]; // Request annotation for one image in two languages, and one other image in // one language. annotator.AnnotateImage( kImage1Url, "fr", processor[0].GetPtr(), base::BindOnce(&ReportResult, &error[0], &annotations[0])); annotator.AnnotateImage( kImage1Url, "en-AU", processor[1].GetPtr(), base::BindOnce(&ReportResult, &error[1], &annotations[1])); annotator.AnnotateImage( kImage2Url, "en-US", processor[2].GetPtr(), base::BindOnce(&ReportResult, &error[2], &annotations[2])); test_task_env.RunUntilIdle(); // Annotator should have asked processor 1 and 2 for image 1's pixels and // processor 3 for image 2's pixels. ASSERT_THAT(processor[0].callbacks(), SizeIs(1)); ASSERT_THAT(processor[1].callbacks(), SizeIs(1)); ASSERT_THAT(processor[2].callbacks(), SizeIs(1)); // Send back image data. Image 2 is out of policy. std::move(processor[0].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[0].callbacks().pop_back(); std::move(processor[1].callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor[1].callbacks().pop_back(); std::move(processor[2].callbacks()[0]) .Run({4, 5, 6}, Annotator::kDescMinDimension - 1, Annotator::kDescMinDimension); processor[2].callbacks().pop_back(); test_task_env.RunUntilIdle(); // No request should be sent yet (because service is waiting to batch up // multiple requests). EXPECT_THAT(test_url_factory.requests(), IsEmpty()); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); // A single HTTP request for all images should have been sent. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {} /* expected_headers */, // Image requests should include the preferred language in their image IDs // and description parameters (except for image 2 which should not include // description parameters). ReformatJson(R"( { "imageRequests": [ { "imageId": "https://www.example.com/image2.jpg en-US", "imageBytes": "BAUG", "engineParameters": [ {"ocrParameters": {}} ] }, { "imageId": "https://www.example.com/image1.jpg en-AU", "imageBytes": "AQID", "engineParameters": [ {"ocrParameters": {}}, { "descriptionParameters": { "preferredLanguages": ["en-AU"] } } ] }, { "imageId": "https://www.example.com/image1.jpg fr", "imageBytes": "AQID", "engineParameters": [ {"ocrParameters": {}}, { "descriptionParameters": { "preferredLanguages": ["fr"] } } ] } ] } )"), R"( { "results": [ { "imageId": "https://www.example.com/image1.jpg en-AU", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "1", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": { "descriptions": [{ "type": "CAPTION", "text": "This is an example image.", "score": 1.0 }] } } } ] }, { "imageId": "https://www.example.com/image1.jpg fr", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "1", "confidenceScore": 1.0 }] }] } }, { "status": {}, "descriptionEngine": { "descriptionList": { "descriptions": [{ "type": "CAPTION", "text": "Ceci est un exemple d'image.", "score": 1.0 }] } } } ] }, { "imageId": "https://www.example.com/image2.jpg en-US", "engineResults": [ { "status": {}, "ocrEngine": { "ocrRegions": [{ "words": [{ "detectedText": "2", "confidenceScore": 1.0 }] }] } } ] } ] } )", net::HTTP_OK); test_task_env.RunUntilIdle(); // Annotator should have called each callback with its corresponding results. ASSERT_THAT(error, ElementsAre(base::nullopt, base::nullopt, base::nullopt)); EXPECT_THAT( annotations[0], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "1"), AnnotatorEq(mojom::AnnotationType::kCaption, 1.0, "Ceci est un exemple d'image."))); EXPECT_THAT( annotations[1], UnorderedElementsAre(AnnotatorEq(mojom::AnnotationType::kOcr, 1.0, "1"), AnnotatorEq(mojom::AnnotationType::kCaption, 1.0, "This is an example image."))); EXPECT_THAT(annotations[2], UnorderedElementsAre(AnnotatorEq( mojom::AnnotationType::kOcr, 1.0, "2"))); } // Test that the specified API key is sent, but only to Google-associated server // domains. TEST(AnnotatorTest, ApiKey) { base::test::TaskEnvironment test_task_env( base::test::TaskEnvironment::TimeSource::MOCK_TIME); data_decoder::TestDataDecoderService test_dd_service; // A call to a secure Google-owner server URL should include the specified API // key. { TestServerURLLoaderFactory test_url_factory( "https://ia-pa.googleapis.com/v1/"); Annotator annotator(GURL(kTestServerUrl), "my_api_key", kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::DoNothing()); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); test_task_env.RunUntilIdle(); // HTTP request should have been made with the API key included. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {{Annotator::kGoogApiKeyHeader, "my_api_key"}}, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); } // A call to a Google-owned server URL should not include the API key if the // requests are made insecurely. { // Note: not HTTPS. TestServerURLLoaderFactory test_url_factory( "http://ia-pa.googleapis.com/v1/"); Annotator annotator(GURL("http://ia-pa.googleapis.com/v1/annotation"), "my_api_key", kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::DoNothing()); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); test_task_env.RunUntilIdle(); // HTTP request should have been made without the API key included. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {{Annotator::kGoogApiKeyHeader, base::nullopt}}, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); } // A call to a non-Google-owned URL should not include the API key. { TestServerURLLoaderFactory test_url_factory("https://datascraper.com/"); Annotator annotator(GURL("https://datascraper.com/annotation"), "my_api_key", kThrottle, 1 /* batch_size */, 1.0 /* min_ocr_confidence */, test_url_factory.AsSharedURLLoaderFactory(), test_dd_service.connector()); TestImageProcessor processor; annotator.AnnotateImage(kImage1Url, kDescLang, processor.GetPtr(), base::DoNothing()); test_task_env.RunUntilIdle(); // Annotator should have asked processor for pixels. ASSERT_THAT(processor.callbacks(), SizeIs(1)); // Send back image data. std::move(processor.callbacks()[0]).Run({1, 2, 3}, kDescDim, kDescDim); processor.callbacks().pop_back(); test_task_env.FastForwardBy(base::TimeDelta::FromSeconds(1)); test_task_env.RunUntilIdle(); // HTTP request should have been made without the API key included. test_url_factory.ExpectRequestAndSimulateResponse( "annotation", {{Annotator::kGoogApiKeyHeader, base::nullopt}}, ReformatJson(base::StringPrintf(kTemplateRequest, kImage1Url, "AQID")), kOcrSuccessResponse, net::HTTP_OK); } } } // namespace image_annotation
[ "huhibrowser@gmail.com" ]
huhibrowser@gmail.com
2f583eb76e3667b8daf962694ba8f8b6a8c7b18c
5f13d88fd0457bf8fe3845435d039f4e315191d9
/include/peli/json/value.h
20901a4dd0bd6b0ee4abd1b778b595fa16e5c465
[ "Apache-2.0" ]
permissive
aclex/peli
149d198875a42395ecf8f5c9546291cb9096f826
189eb3d902feac9ea4b54c9116419d0eaf71ffff
refs/heads/master
2023-05-26T18:06:02.534043
2023-05-23T21:45:15
2023-05-23T21:45:15
38,453,766
2
0
null
null
null
null
UTF-8
C++
false
false
3,396
h
/* * This file is part of Peli - universal JSON interaction library * Copyright (C) 2014-2022 Alexey Chernov <4ernov@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef PELI_JSON_VALUE_H #define PELI_JSON_VALUE_H #include <string> #include <type_traits> #include <peli/value_basics.h> #include <peli/json/object.h> #include <peli/json/array.h> #include <peli/json/number.h> namespace peli { /** \brief Types and functions for [JSON](http://json.org/) interaction. */ namespace json { /** [JSON](http://json.org/) value uniform representation. * * In fact it's just a tiny shell around variant type used, and * this is to allow recursive inclusion of variants. * * \tparam Ch character type. */ template<typename Ch> class basic_value : public peli::variant_type < bool, json::number, std::basic_string<Ch>, json::basic_array<Ch>, json::basic_object<Ch> > { public: /** \brief Underlying variant type. */ using variant_type = peli::variant_type < bool, json::number, std::basic_string<Ch>, json::basic_array<Ch>, json::basic_object<Ch> >; using variant_type::variant_type; /** \brief Checks if the value is null (as per [JSON](http://json.org/) specification). */ bool null() const noexcept { return peli::is_empty(*this); } /** \brief Parses null-terminated string. * * \param str null-terminated string to parse. */ static basic_value parse(const Ch* const str); /** \brief Parses std::basic_string<>. * * \param str string to parse. */ static basic_value parse(const std::basic_string<Ch>& str); #ifdef CXX_STD_17 /** \brief Parses std::basic_string_view<>. * * \param str string_view to parse. */ static basic_value parse(const std::basic_string_view<Ch> sv); #endif }; /** \brief `basic_value` specialization for `char`. */ typedef basic_value<char> value; /** \brief `basic_value` specialization for `wchar_t`. */ typedef basic_value<wchar_t> wvalue; /** \brief Small factory method to create uninitialized value of the given type. * * \tparam T type the value to construct of. * \tparam ValueType value type to create (e.g. some character specialization * of `basic_value<>`). */ template<typename T, class ValueType = value> inline ValueType make_value() { return ValueType(T()); } /** \brief Prints the content of the specified value to string. * * \tparam Ch character type. * \param v value to print. * \param pretty flag to enable pretty printing. * * \return string containing textual content of the specified value. * * \sa peli::json::pretty() */ template<typename Ch> std::basic_string<Ch> to_string(const basic_value<Ch>& v, const bool pretty = false); } } #include <peli/json/value.tcc> #endif // PELI_JSON_VALUE_H
[ "4ernov@gmail.com" ]
4ernov@gmail.com
7aa8a842ec1fb6184a881afc0bb60155f13c0636
b8231d5bb8341e3067051c812f284254b13e0b1b
/Algorithms/513.Find_Bottom_Left_Tree_Value.cpp
635f15b89abac22bad6bc765b29f480613ce1e0a
[]
no_license
icoty/LeetCode
8ceb401841aa2b3cbcfbab907af5ac26aa3fd064
38083236ebfc197c77ff2a85b5e42834b8916320
refs/heads/master
2020-04-05T14:40:54.811234
2019-04-14T05:04:29
2019-04-14T05:04:29
156,935,383
0
1
null
null
null
null
UTF-8
C++
false
false
2,341
cpp
#include "AllInclude.h" class Solution { public: int findBottomLeftValue(TreeNode* root) { queue<TreeNode*> q; q.push(root); int ret; while(!q.empty()){ ret = q.front()->val; int len = q.size(); for(int i = 0; i < len; ++i){ if(q.front()->left) q.push(q.front()->left); if(q.front()->right) q.push(q.front()->right); q.pop(); } } return ret; } }; void trimLeftTrailingSpaces(string &input) { input.erase(input.begin(), find_if(input.begin(), input.end(), [](int ch) { return !isspace(ch); })); } void trimRightTrailingSpaces(string &input) { input.erase(find_if(input.rbegin(), input.rend(), [](int ch) { return !isspace(ch); }).base(), input.end()); } TreeNode* stringToTreeNode(string input) { trimLeftTrailingSpaces(input); trimRightTrailingSpaces(input); input = input.substr(1, input.length() - 2); if (!input.size()) { return nullptr; } string item; stringstream ss; ss.str(input); getline(ss, item, ','); TreeNode* root = new TreeNode(stoi(item)); queue<TreeNode*> nodeQueue; nodeQueue.push(root); while (true) { TreeNode* node = nodeQueue.front(); nodeQueue.pop(); if (!getline(ss, item, ',')) { break; } trimLeftTrailingSpaces(item); if (item != "null") { int leftNumber = stoi(item); node->left = new TreeNode(leftNumber); nodeQueue.push(node->left); } if (!getline(ss, item, ',')) { break; } trimLeftTrailingSpaces(item); if (item != "null") { int rightNumber = stoi(item); node->right = new TreeNode(rightNumber); nodeQueue.push(node->right); } } return root; } int main() { string line; while (getline(cin, line)) { TreeNode* root = stringToTreeNode(line); int ret = Solution().findBottomLeftValue(root); string out = to_string(ret); cout << out << endl; } return 0; }
[ "icoty.yangy@gmail.com" ]
icoty.yangy@gmail.com
1cd156015f91f7919303425e309add6d39bf7546
8ae31e5db1f7c25b6ce1c708655ab55c15dde14e
/比赛/学校/2019-7-8测试/2.画长方形1/rectangle1.cpp
cbebb9a43965ff11af2ee982e498cfeebcc192f2
[]
no_license
LeverImmy/Codes
99786afd826ae786b5024a3a73c8f92af09aae5d
ca28e61f55977e5b45d6731bc993c66e09f716a3
refs/heads/master
2020-09-03T13:00:29.025752
2019-12-16T12:11:23
2019-12-16T12:11:23
219,466,644
1
0
null
null
null
null
UTF-8
C++
false
false
682
cpp
#include <cstdio> #include <cstdlib> #include <algorithm> #include <cmath> #include <cstring> #include <vector> #include <cctype> #define rgi register int #define il inline #define ll long long using namespace std; il int read() { rgi x = 0, f = 0, ch; while(!isdigit(ch = getchar())) f |= ch == '-'; while(isdigit(ch)) x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar(); return f ? -x : x; } const char alpha[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int main() { int n = 25, m = 18; for(rgi i = 1; i <= n; ++i) { for(rgi j = 1; j <= m; ++j) { if(j >= i) { printf("%c", alpha[j - i]); } else printf("%c", alpha[i - j]); } puts(""); } return 0; }
[ "506503360@qq.com" ]
506503360@qq.com
6d9487cc0a43f7e3be51a405efd00cf272cda969
671a050aa02e80543218dfd739a63109cabe17a9
/Graph/BellmanFord.cpp
a5c06a6f87a6c41aa64897a548423f924eb67071
[]
no_license
SooKim1110/algorithm-for-tests
83fcb701caa75ad03b4a4f375fa002761810c713
0161703768cd3b050447e4f2b021cb19e3725fc6
refs/heads/master
2023-08-17T11:11:27.560180
2021-10-07T04:30:50
2021-10-07T04:30:50
291,279,008
0
0
null
null
null
null
UTF-8
C++
false
false
1,808
cpp
// 문제 출처 https://www.acmicpc.net/problem/11657 // 난이도: *** // < 타임머신 > // 문제 요약: 1번 도시에서 나머지 도시로 가는 가장 빠른 시간을 구하기 (음수 간선 존재) // 주의점 // 1) 벨만포드 - O(VE) (O(V^3)) 모든 간선을 확인하는 것을 n-1번 반복. 최대 n-1 개의 간선을 거쳐야 최소 거리를 구할 수 있으므로. // 2) 다익스트라와 달리 음수 간선이 존재해도 된다(다익스트라는 그리디 방식이므로 안됨.). 하지만 비효율적. // 3) 음의 사이클 존재하는지 알 수 있다. n-1번이 아닌 n번 반복했을 때 거리 달라지면 음의 사이클 존재. // +) 1번 시작이 아닌 전체 그래프에서 음의 사이클 존재 여부 알고 싶을때 -> dist[x] != inf 지우기 (inf 설정 이유가 단절을 표시하기 위해) #include <iostream> #include <vector> using namespace std; struct Edge { int from; int to; int cost; }; long long dist[501]; long long inf = 1000000000; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int n,m; cin >> n >> m; vector<Edge> e(m); for (int i = 0; i<m; i++){ cin >> e[i].from >> e[i].to >> e[i].cost; } for (int i = 1; i<=n; i++){ dist[i] = inf; } //1번 노드에서 출발 dist[1] = 0; bool neg_cycle = false; for (int i = 1; i<=n; i++){ for (int j = 0; j< m; j++){ int x = e[j].from; int y = e[j].to; int z = e[j].cost; if (dist[x] != inf && dist[y] > dist[x] + z){ dist[y] = dist[x]+ z; if (i == n) neg_cycle = true; } } } if (neg_cycle) cout << "-1" << '\n'; else{ for (int i = 2; i<=n; i++){ if (dist[i] == inf) cout << "-1" << '\n'; else cout << dist[i] << '\n'; } } return 0; }
[ "ohjskim@naver.com" ]
ohjskim@naver.com
56b5bb84b36043c1bc1f9b87393fbe1c3d28df70
bb93dfb72f4747ba8bd2088e57dc078c4127fe81
/Classes/ControlesEscena.cpp
f7e6f80d19e1fd9ac8f9dfd650fcdeee64cf9784
[]
no_license
bertito1995/DWv1.0
72fe5666fbd2927409bd7d1f190deda070f52edf
1106da32676016fc3c6c2a535fb3f2426896ad52
refs/heads/master
2021-01-10T14:07:44.956940
2016-01-12T14:43:24
2016-01-12T14:43:24
45,998,647
0
0
null
null
null
null
ISO-8859-10
C++
false
false
2,162
cpp
#include "ControlesEscena.h" #include "cocos2d.h" #include "MenuEscena.h" USING_NS_CC; Scene *ControlesEscena::createScene() { auto scene = Scene::create(); auto layer = ControlesEscena::create(); scene->addChild(layer); return scene; } bool ControlesEscena::init() { Size tamaņoPantalla = Director::getInstance()->getVisibleSize(); Sprite *resetBoton = Sprite::create("imagenes/gui/reset.png"); resetBoton->setScaleX(tamaņoPantalla.width / resetBoton->getContentSize().width * 0.1); resetBoton->setScaleY(tamaņoPantalla.height / resetBoton->getContentSize().height * 0.1); resetBoton->setPosition(Point((tamaņoPantalla.width - (resetBoton->getScaleX() * resetBoton->getContentSize().width / 2)), (resetBoton->getScaleY() * resetBoton->getContentSize().height) / 2)); addChild(resetBoton, 1); Sprite *fondo = Sprite::create("imagenes/gui/controlesScene.png"); fondo->setPosition(Point((tamaņoPantalla.width / 2), (tamaņoPantalla.height / 2))); addChild(fondo, 0); auto event_listener = EventListenerTouchAllAtOnce::create(); event_listener->onTouchesBegan = [=](const std::vector<Touch*>& pTouches, Event* event) { auto touch = *pTouches.begin(); auto openGl_location = touch->getLocation(); float distancia; distancia = resetBoton->getPosition().getDistance(touch->getLocation()); if (distancia < 30) { Sprite* aux = Sprite::create("imagenes/gui/resetPulsado.png"); resetBoton->setTexture(aux->getTexture()); return; } }; event_listener->onTouchesEnded = [=](const std::vector<Touch*>& pTouches, Event* event) { auto touch = *pTouches.begin(); auto openGl_location = touch->getLocation(); float distancia; distancia = resetBoton->getPosition().getDistance(touch->getLocation()); if (distancia < 30) { menu(); return; } }; this->getEventDispatcher()->addEventListenerWithSceneGraphPriority(event_listener, fondo); return true; } void ControlesEscena::menu() { Director::getInstance()->popScene(); } void ControlesEscena::menuCloseCallback(Ref* pSender) { Director::getInstance()->end(); #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) exit(0); #endif }
[ "thejavato@gmail.com" ]
thejavato@gmail.com
509f60ff2136e2720fdad04f975d0870625c1ca3
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5670465267826688_0/C++/laoriu/C.cpp
050fef85bb1e14486c3296baf85c44417723cd76
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
1,530
cpp
#include <bits/stdc++.h> using namespace std; const int MAXN = 10000 + 10; int f[MAXN]; bool ok[MAXN]; void convert_to_num(string &s) { for(int i = 0; i < s.length(); i++) { if (s[i] == 'i') s[i] = '2'; else if (s[i] == 'j') s[i] = '3'; else if (s[i] == 'k') s[i] = '4'; } } int sign(int x) { if (x > 0) return 1; if (x < 0) return -1; return 0; } int main() { int tab[5][5] = {{}, {0, 1, 2, 3, 4}, {0, 2, -1, 4, -3}, {0, 3, -4, -1, 2}, {0, 4, 3, -2, -1}}; freopen("C-small-attempt0.in", "r", stdin); freopen("C.out", "w", stdout); int test; cin >> test; for(int tc = 1; tc <= test; tc++) { int L, X; cin >> L >> X; string seed; cin >> seed; convert_to_num(seed); string s = ""; for(int i = 0; i < X; i++) s += seed; int n = s.length(); f[0] = 1; for(int i = 1; i <= n; i++) { int j = s[i - 1] - '0'; f[i] = sign(f[i - 1]) * tab[abs(f[i - 1])][j]; //cout << i << " " << f[i] << endl; } for(int i = 0; i <= n; i++) ok[i] = false; bool ok_i = (f[1] == 2); for(int i = 2; i <= n; i++) { ok[i] = ok[i - 1] | ((f[i] == 4) && (ok_i)); ok_i = ok_i | (f[i] == 2); } string result = ((f[n] == -1) && (ok[n - 1])) ? "YES" : "NO"; cout << "Case #" << tc << ": " << result << endl; } }
[ "eewestman@gmail.com" ]
eewestman@gmail.com
8a0f63848a79adbbdad77f97e9e74a0d9c906c07
c4790552abc608f491b7ac2a0b6dcd5826a5bd7c
/463D.cpp
33753bcf4896797df5c23d1f1a40401e9d2b1f0c
[]
no_license
jeffry1829/ojcode
bd03df14360e5c00e6463c3621de0cfeef88bb11
18a6fa3aa59e0d9c274f44f7dea060f70c91cbe8
refs/heads/master
2023-02-27T00:27:04.856978
2021-02-04T09:20:58
2021-02-04T09:20:58
286,199,256
0
0
null
null
null
null
UTF-8
C++
false
false
3,276
cpp
#pragma GCC optimize(1) #pragma GCC optimize(2) #pragma GCC optimize(3) #pragma GCC optimize("Ofast") #pragma GCC optimize("inline") #pragma GCC optimize("-fgcse") #pragma GCC optimize("-fgcse-lm") #pragma GCC optimize("-fipa-sra") #pragma GCC optimize("-ftree-pre") #pragma GCC optimize("-ftree-vrp") #pragma GCC optimize("-fpeephole2") #pragma GCC optimize("-ffast-math") #pragma GCC optimize("-fsched-spec") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("-falign-jumps") #pragma GCC optimize("-falign-loops") #pragma GCC optimize("-falign-labels") #pragma GCC optimize("-fdevirtualize") #pragma GCC optimize("-fcaller-saves") #pragma GCC optimize("-fcrossjumping") #pragma GCC optimize("-fthread-jumps") #pragma GCC optimize("-funroll-loops") #pragma GCC optimize("-freorder-blocks") #pragma GCC optimize("-fschedule-insns") #pragma GCC optimize("inline-functions") #pragma GCC optimize("-ftree-tail-merge") #pragma GCC optimize("-fschedule-insns2") #pragma GCC optimize("-fstrict-aliasing") #pragma GCC optimize("-falign-functions") #pragma GCC optimize("-fcse-follow-jumps") #pragma GCC optimize("-fsched-interblock") #pragma GCC optimize("-fpartial-inlining") #pragma GCC optimize("no-stack-protector") #pragma GCC optimize("-freorder-functions") #pragma GCC optimize("-findirect-inlining") #pragma GCC optimize("-fhoist-adjacent-loads") #pragma GCC optimize("-frerun-cse-after-loop") #pragma GCC optimize("inline-small-functions") #pragma GCC optimize("-finline-small-functions") #pragma GCC optimize("-ftree-switch-conversion") #pragma GCC optimize("-foptimize-sibling-calls") #pragma GCC optimize("-fexpensive-optimizations") #pragma GCC optimize("inline-functions-called-once") #pragma GCC optimize("-fdelete-null-pointer-checks") #include <bits/stdc++.h> using namespace std; #define rep(i,a,n) for(int i=a;i<n;i++) #define per(i,a,n) for(int i=n-1;i>=a;i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(),(x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) #define min(a,b) (((a)<(b))?(a):(b)) #define max(a,b) (((a)>(b))?(a):(b)) typedef vector<int> VI; typedef long long ll; typedef pair<int,int> PII; typedef double db; mt19937 mrand(random_device{}()); const ll mod=1000000007; int rnd(int x){return mrand()%x;} ll powmod(ll a,ll b){ll res=1;a%=mod;assert(b>=0);for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;} ll gcd(ll a, ll b){return b?gcd(b,a%b):a;} #define rank oiajgpowsdjg const int N = 100; int parent[N], rank[N]; inline void dsinit(int n) {for (int i = 0; i < n; i++)parent[i] = i;memset(rank, 0, sizeof rank);} inline int dsfind(int e) {return parent[e] == e ? e : parent[e] = dsfind(parent[e]);} inline void dsunion(int s1, int s2) {if (rank[s1] < rank[s2])swap(s1, s2);parent[s2] = s1;if (rank[s1] == rank[s2]) rank[s1]++;} //head const int _n=1010; int n,k,s[5][_n],dp[_n],rs[5][_n]; inline bool f(int x,int y){ rep(i,1,k)if(rs[i][x]>=rs[i][y])return 0; return 1; } main(void) {cin.tie(0);ios_base::sync_with_stdio(0); cin>>n>>k; rep(i,0,k)rep(j,0,n)cin>>s[i][j]; rep(i,0,k)rep(j,0,n)rs[i][s[i][j]]=j; rep(i,0,n)dp[i]=1; rep(i,1,n)rep(j,0,i)if(f(s[0][j],s[0][i]))dp[i]=max(dp[i],dp[j]+1); int ans=1;rep(i,0,n)ans=max(ans,dp[i]); cout<<ans<<'\n'; return 0; }
[ "jeffry1829@gmail.com" ]
jeffry1829@gmail.com
49b52a9c8f9e6b2f002d9d552c3a439e8ca595b6
1ad14377c65c624aac3de787e86ad232faacf8e6
/gameNode.cpp
62db8091d1bf521b4e2798e1a23fbe6e4b5a0d66
[]
no_license
juh1128/SGA-Monarch2Weeks
5c5aba87619da193314679951034617e8e365dbe
f77c799572f21c5350cce2eed5a4aeb31b690e6e
refs/heads/master
2021-10-08T22:53:39.082264
2018-12-18T18:28:32
2018-12-18T18:28:32
106,794,815
0
0
null
null
null
null
UHC
C++
false
false
2,072
cpp
#include "stdafx.h" #include "gameNode.h" gameNode::gameNode() { } gameNode::~gameNode() { } HRESULT gameNode::init(void) { _managerInit = false; return S_OK; } HRESULT gameNode::init(bool managerInit) { _managerInit = managerInit; if (_managerInit) { KEYMANAGER->init(); IMAGEMANAGER->init(); SOUNDMANAGER->init(); TIMEMANAGER->init(); CAMERA->init(); //EFFECTMANAGER->init(); } return S_OK; } //메모리 해제 void gameNode::release(void) { if (_managerInit) { KEYMANAGER->releaseSingleton(); IMAGEMANAGER->releaseSingleton(); SOUNDMANAGER->releaseSingleton(); TIMEMANAGER->releaseSingleton(); CAMERA->releaseSingleton(); //EFFECTMANAGER->releaseSingleton(); } } //업데이트 void gameNode::update(void) { } //그리기 void gameNode::render(void) { } LRESULT gameNode::MainProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { switch (iMessage) { case WM_MOUSEMOVE: _ptMouse.x = static_cast<float>LOWORD(lParam); _ptMouse.y = static_cast<float>HIWORD(lParam); break; //사이즈 변경 시 체크 case WM_SIZE: { UINT width = LOWORD(lParam); UINT height = HIWORD(lParam); IMAGEMANAGER->onResize(width, height); } break; case WM_LBUTTONDOWN: KEYMANAGER->setKeyState(VK_LBUTTON, true); break; case WM_LBUTTONUP: KEYMANAGER->setKeyState(VK_LBUTTON, false); break; case WM_RBUTTONDOWN: KEYMANAGER->setKeyState(VK_RBUTTON, true); break; case WM_RBUTTONUP: KEYMANAGER->setKeyState(VK_RBUTTON, false); break; case WM_KEYDOWN: KEYMANAGER->setKeyState(wParam, true); break; case WM_KEYUP: KEYMANAGER->setKeyState(wParam, false); break; //휠에 따라서 줌인 줌아웃 case WM_MOUSEWHEEL: { float zoom = CAMERA->getZoom(); float zoomUnit = 0.1f; if ((short)HIWORD(wParam) < 0) { CAMERA->setZoom(zoom - zoomUnit); } else { CAMERA->setZoom(zoom + zoomUnit); } } break; case WM_DESTROY: PostQuitMessage(0); break; } return (DefWindowProc(hWnd, iMessage, wParam, lParam)); }
[ "juh17@naver.com" ]
juh17@naver.com
6df358d5f86de64408285763f66508e1e2e706b5
ce1cc211b951de557fc7bdc41d59591aa131bb8b
/sources/seating_arrangement/tests.cpp
4b31190cb874e2339f54cf952027e7c5fa2c691c
[ "MIT" ]
permissive
jacek143/kata
ac09203fe1462f7f80cd0015b6f5fce86079021f
57784b1d6139c6f7cb8be0ebd3fee162f1d5e558
refs/heads/master
2020-08-01T00:20:51.224732
2020-04-13T09:24:02
2020-04-13T11:07:10
210,797,911
0
0
null
null
null
null
UTF-8
C++
false
false
1,821
cpp
#include "seating_arrangement.h" #include "gtest/gtest.h" using seating_arrangement::getFacingSeatNumber; using seating_arrangement::getSeatType; using seating_arrangement::SeatType; using seating_arrangement::solveProblem; using std::string; class SeatingArrangement : public ::testing::Test { public: void expectSeatsMapped(unsigned frontFacing, unsigned rearFacing) { EXPECT_EQ(getFacingSeatNumber(frontFacing), rearFacing); EXPECT_EQ(frontFacing, getFacingSeatNumber(rearFacing)); } }; TEST_F(SeatingArrangement, firstCompartment) { expectSeatsMapped(3, 10); expectSeatsMapped(2, 11); expectSeatsMapped(1, 12); } TEST_F(SeatingArrangement, secondCompartment) { expectSeatsMapped(6, 7); expectSeatsMapped(5, 8); expectSeatsMapped(4, 9); } TEST_F(SeatingArrangement, thirdCompartment) { expectSeatsMapped(15, 22); expectSeatsMapped(14, 23); expectSeatsMapped(13, 24); } TEST_F(SeatingArrangement, fourthCompartment) { expectSeatsMapped(18, 19); expectSeatsMapped(17, 20); expectSeatsMapped(16, 21); } TEST_F(SeatingArrangement, windowSeat) { EXPECT_EQ(SeatType::WINDOW, getSeatType(1)); EXPECT_EQ(SeatType::WINDOW, getSeatType(6)); EXPECT_EQ(SeatType::WINDOW, getSeatType(7)); EXPECT_EQ(SeatType::WINDOW, getSeatType(12)); EXPECT_EQ(SeatType::WINDOW, getSeatType(108)); } TEST_F(SeatingArrangement, middleSeat) { EXPECT_EQ(SeatType::MIDDLE, getSeatType(2)); EXPECT_EQ(SeatType::MIDDLE, getSeatType(5)); EXPECT_EQ(SeatType::MIDDLE, getSeatType(107)); } TEST_F(SeatingArrangement, aisleleSeat) { EXPECT_EQ(SeatType::AISLE, getSeatType(3)); EXPECT_EQ(SeatType::AISLE, getSeatType(106)); } TEST_F(SeatingArrangement, completeAnswer) { EXPECT_EQ("48 WS", solveProblem(37)); EXPECT_EQ("58 AS", solveProblem(51)); EXPECT_EQ("89 MS", solveProblem(92)); }
[ "jacek143@gmail.com" ]
jacek143@gmail.com
8666123ad3e969130b2e2c9ba54925e911cd7d65
c2908e289990da7c4745043bf07bcf02ac6b950d
/include/LuaGlue/LuaGlueNewIndexMethod.h
96200a3eeb230d17ee4368fb09f73bfbc16dc7b0
[ "Zlib" ]
permissive
nkutty/LuaGlue
92dbde30f42dd984230a03824481aad71ff95e84
7866cde9c86ca3cfc7298ea90c609c15f2b16d33
refs/heads/master
2021-01-16T00:12:27.852165
2014-06-03T21:37:34
2014-06-03T21:37:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,845
h
#ifndef LUAGLUE_NEWINDEX_METHOD_H_GUARD #define LUAGLUE_NEWINDEX_METHOD_H_GUARD #include <lua.hpp> #include <string> #include <tuple> #include <utility> #include "LuaGlue/LuaGlueObject.h" #include "LuaGlue/LuaGlueApplyTuple.h" #include "LuaGlue/LuaGlueBase.h" template<typename _Class> class LuaGlueClass; template<typename _Value, typename _Class, typename _Key> class LuaGlueNewIndexMethod : public LuaGlueMethodBase { public: typedef _Class ClassType; typedef void (_Class::*MethodType)(_Key, _Value); LuaGlueNewIndexMethod(LuaGlueClass<_Class> *luaClass, const std::string &name, MethodType &&fn) : glueClass(luaClass), name_(name), fn(std::forward<MethodType>(fn)) { } ~LuaGlueNewIndexMethod() {} std::string name() { return name_; } bool glue(LuaGlueBase *luaGlue) { lua_pushlightuserdata(luaGlue->state(), this); lua_pushcclosure(luaGlue->state(), &lua_call_func, 1); lua_setfield(luaGlue->state(), -2, name_.c_str()); return true; } private: LuaGlueClass<_Class> *glueClass; std::string name_; MethodType fn; std::tuple<_Key, _Value> args; int invoke(lua_State *state) { auto base = GetLuaUdata(state, 1, glueClass->name().c_str()); if(base->isSharedPtr()) { auto obj = *CastLuaGlueObjectShared(ClassType, base); lua_remove(state, 1); applyTuple(glueClass->luaGlue(), state, obj, fn, args); } else { auto obj = *CastLuaGlueObject(ClassType, base); lua_remove(state, 1); applyTuple(glueClass->luaGlue(), state, obj, fn, args); } lua_pop(state, 2); return 0; } static int lua_call_func(lua_State *state) { auto mimp = (LuaGlueNewIndexMethod<_Value, _Class, _Key> *)lua_touserdata(state, lua_upvalueindex(1)); return mimp->invoke(state); } }; #endif /* LUAGLUE_NEWINDEX_METHOD_H_GUARD */
[ "thomas@fjellstrom.ca" ]
thomas@fjellstrom.ca
6dd1e909acf995e4486d7048c082f9b5b9b44fd2
46a924618d0b248acad0a44f92aad10072ef7bb0
/src/cppruntime/include/runtimetest/system/ProcessJSystemConstants.hpp
5ed44a90d332449110c3db958338b1c5556783f5
[ "Apache-2.0" ]
permissive
mattunlv/ProcessJ
48dfc6aa5f59f51bb86155de84185c8e941c51e7
57d6ae2d120bd58978195d133924b4eefc4bc844
refs/heads/main
2023-06-24T05:57:57.176316
2023-05-06T04:17:23
2023-05-06T04:17:23
454,967,668
1
0
Apache-2.0
2022-08-30T20:39:25
2022-02-02T23:19:40
Java
UTF-8
C++
false
false
942
hpp
/*! * * ProcessJSystem::Constants declaration. Defines constants that are used throughout * the ProcessJSystem to promote refactorablility * * \author Carlos L. Cuenca * \date 03/13/2022 * \version 1.0.0 */ #ifndef UNLV_PROCESS_J_SYSTEM_CONSTANTS_HPP #define UNLV_PROCESS_J_SYSTEM_CONSTANTS_HPP namespace ProcessJSystem { /// ------- /// Strings static SimpleString AssertionErrorSubscriptOperatorDoesNotThrowExceptionMessage = "Error: Subscript operator does not throw exception with invalid indices."; static SimpleString AssertionErrorAreNotEqualMessage = "Error: Instances are not equal." ; static SimpleString AssertionErrorAreEqualMessage = "Error: Instances are equal." ; /// ---------- /// Characters static Character NewLine = '\n'; } #endif
[ "cuenca.cl@gmail.com" ]
cuenca.cl@gmail.com
fcc79b6904429583be2ef36c0059783a2f9349cf
8d675d8b658f028400543c18b0243f8dc45c9b03
/213-House Robber II.cpp
d3ec056d13973e624ca312696d38b861d045c00f
[]
no_license
dc-tw/leetcode
06b1784ce7111fe43632067750944ce9596df03a
2556209843dd6d621b8ced305eaf7cf8f39ff294
refs/heads/master
2020-05-19T20:23:36.485881
2020-02-14T08:02:36
2020-02-14T08:02:36
185,200,761
2
0
null
null
null
null
UTF-8
C++
false
false
701
cpp
class Solution { public: int rob(vector<int>& nums) { if(nums.empty()) return 0; if(nums.size()==1) return nums[0]; int n=nums.size(); vector<int> info(n,0); for(int i=0;i<n-1;++i) { if(i==0) info[i]=nums[i]; else if(i==1) info[i]=max(info[i-1],nums[i]); else { info[i]=max(info[i-1],nums[i]+info[i-2]); } } int tmp1=(n==1)?nums[0]:info[n-2]; info[0]=0; info[1]=nums[1]; for(int i=2;i<n;++i) { info[i]=max(info[i-1],nums[i]+info[i-2]); } int tmp2=info[n-1]; return max(tmp1,tmp2); } };
[ "david112358c@gmail.com" ]
david112358c@gmail.com
819ac6f75766c6d13ad29807994285aa502c13b5
e36906be9399685b0d03daffec9c33735eda8ba1
/src/python/tests/main.cpp
f0b5c8cbadb2760814ad090816db526dc371268f
[]
no_license
ybouret/yocto4
20deaa21c1ed4f52d5d6a7991450d90103a7fe8e
c02aa079d21cf9828f188153e5d65c1f0d62021c
refs/heads/master
2020-04-06T03:34:11.834637
2016-09-09T14:41:55
2016-09-09T14:41:55
33,724,799
1
0
null
null
null
null
UTF-8
C++
false
false
118
cpp
#include "yocto/utest/driver.hpp" YOCTO_UNIT_TEST_INIT(8) { YOCTO_UNIT_TEST_DECL(vm); } YOCTO_UNIT_TEST_EXEC()
[ "yann.bouret@gmail.com@6d5338fb-0854-7327-6163-5cad528299e9" ]
yann.bouret@gmail.com@6d5338fb-0854-7327-6163-5cad528299e9
71e904e953ef060125282d63d417c56096d557fb
270906a92f36f1ced4e5ab71a20efc367dad0c0b
/include/anvil/RPC/ServerExample.hpp
06677cae8adbf536e3ff1883f83ccf27236ffbc5
[ "Apache-2.0" ]
permissive
asmith-git/anvil
69c0c71df2eb81195bbce586061905972e79d682
6a0ead54fa870cb0b3159fb40387e8dc239e37af
refs/heads/master
2023-09-06T00:48:49.659072
2023-08-28T16:55:21
2023-08-28T16:55:21
112,432,861
0
0
null
null
null
null
UTF-8
C++
false
false
1,736
hpp
//Copyright 2023 Adam G. Smith // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http ://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //distributed under the License is distributed on an "AS IS" BASIS, //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //See the License for the specific language governing permissions and //limitations under the License. #ifndef ANVIL_RPC_SERVER_EXAMPLE_HPP #define ANVIL_RPC_SERVER_EXAMPLE_HPP #include <atomic> #include <thread> #include "anvil/RPC/Server.hpp" #include "anvil/byte-pipe/BytePipeWriter.hpp" #include "anvil/byte-pipe/BytePipeReader.hpp" #include "anvil/byte-pipe/BytePipeTCP.hpp" #include "anvil/byte-pipe/BytePipeJSON.hpp" namespace anvil { namespace RPC { class ANVIL_DLL_EXPORT ServerConnection { private: Server& _server; std::thread _thread; std::atomic_int32_t _signal; protected: virtual void ReadDataFromClient(BytePipe::Parser& parser) = 0; virtual void SendDataToClient(const BytePipe::Value& response) = 0; public: ServerConnection(Server& server); virtual ~ServerConnection(); }; class ANVIL_DLL_EXPORT ServerJsonTCP final : public ServerConnection { private: std::unique_ptr<BytePipe::TCPServerPipe> _tcp; BytePipe::JsonWriter _json_writer; BytePipe::TCPPort _port; protected: void ReadDataFromClient(BytePipe::Parser& parser) final; void SendDataToClient(const BytePipe::Value& response) final; public: ServerJsonTCP(Server& server, BytePipe::TCPPort server_port); virtual ~ServerJsonTCP(); }; }} #endif
[ "adam.george.smith@btinternet.com" ]
adam.george.smith@btinternet.com
546ac5ebcf9761b1aff0fa43d44565d8d8907aa9
5a358636837d1db66c8ba4ff7d369454b30b8734
/MissingNumber.cpp
641350e5e52bf1cdc94152ae6c83695412e91252
[]
no_license
sohampod/100daysofcpp
95660f779b392500ea3c48ae03c5d9594a348eec
05c6dd9204132a872c93a25a88cddf1a55497338
refs/heads/main
2023-03-27T11:08:07.969013
2021-03-27T19:58:11
2021-03-27T19:58:11
326,193,887
0
0
null
null
null
null
UTF-8
C++
false
false
556
cpp
#include <bits/stdc++.h> using namespace std; // Function to get the missing number int getMissingNo(int a[], int n) { // For xor of all the elements in array int x1 = a[0]; // For xor of all the elements from 1 to n+1 int x2 = 1; for (int i = 1; i < n; i++) x1 = x1 ^ a[i]; for (int i = 2; i <= n + 1; i++) x2 = x2 ^ i; return (x1 ^ x2); } // Driver Code int main() { int arr[] = { 1, 2, 4, 5, 6 }; int n = sizeof(arr) / sizeof(arr[0]); int miss = getMissingNo(arr, n); cout << miss; } // use pen and paper for better understanding.
[ "soham.poddar23@gmail.com" ]
soham.poddar23@gmail.com
b8b9fe21458423778fbd7973bf65e7db92d197d9
688d5a8227bfd8e7e503a06b256d83f707cdb162
/pet/pet/PetfinishNesting.hh
084dfca9fafd6472b1a6d6e4a350d22f74616f44
[]
no_license
pavel1murat/murat
ea65ee1baf5b3335d080585b04e18d0304963097
d76111a73a18c150e6b5218fc411a2fd05e91e10
refs/heads/main
2023-06-11T07:22:18.986114
2023-05-24T16:35:22
2023-05-24T16:35:22
118,154,861
0
0
null
null
null
null
UTF-8
C++
false
false
1,132
hh
#ifndef Mu2eG4_finishNesting_hh #define Mu2eG4_finishNesting_hh // // Free function to be used by the nest... functions // // $Id: PetfinishNesting.hh,v 1.1 2013/06/04 19:20:18 murat Exp $ // $Author: murat $ // $Date: 2013/06/04 19:20:18 $ // // Original author KLG // //class G4RotationMatrix; //class G4ThreeVector; #include "G4ThreeVector.hh" #include "G4RotationMatrix.hh" class PetVolumeInfo; class G4Material; class G4LogicalVolume; class G4Colour; namespace mu2e { void PetfinishNesting(PetVolumeInfo& info, G4Material* material, G4RotationMatrix const* rot, G4ThreeVector const & offset, G4LogicalVolume* parent, int copyNo, bool const isVisible, G4Colour const color, bool const forceSolid, bool const forceAuxEdgeVisible, bool const placePV, bool const doSurfaceCheck, bool const verbose = false ); } #endif /* Mu2eG4_finishNesting_hh */
[ "murat@fnal.gov" ]
murat@fnal.gov
c60de1c98465a0c7740d050d8e102e2c1c40ce1e
5ca2e41a032c92ecf840592ad82815b894bbb2ed
/Ex3:Hough变换/3-2/Hough.cpp
680e3c0419668ba532b33e26badccf1297906cda
[]
no_license
Xungerrrr/SYSU-CV
e5ac5f396a0d9fd975decc50280703ba0c4b195b
a883ab65b09a72e2ad30a305ade3b7021c275c8e
refs/heads/master
2020-04-29T15:41:48.296220
2019-03-18T08:39:21
2019-03-18T08:39:21
176,236,876
0
0
null
null
null
null
UTF-8
C++
false
false
4,617
cpp
#include <iostream> #include "Hough.h" using namespace std; /* The constructor. */ Hough::Hough(char *in, CImg<unsigned char> edge_image, int threshold, float f, int minR, int maxR) { if(VERBOSE) cout << "Reading the image " << in << "." << endl; infilename = in; src.load(infilename); edge = edge_image; houghThreshold = threshold; w = src._width; h = src._height; fraction = f; minRadius = minR; maxRadius = maxR; circle.assign(w, h, 1, 3, 0); cimg_forXY(edge, x, y) { circle(x, y, 0) = edge(x, y); circle(x, y, 1) = edge(x, y); circle(x, y, 2) = edge(x, y); } } /* Start the circle detection process. */ void Hough::circle_detection() { if(VERBOSE) cout << "Doing hough transformation." << endl; hough_transform(); /**************************************************************************** * Write out the circle image to a file. ****************************************************************************/ output(); } void Hough::output() { sprintf(outfilename, "%s_t_%d_f_%.2fedge.jpg", infilename, houghThreshold, fraction); if(VERBOSE) cout << "Writing the circle image in the file " << outfilename << "." << endl; circle.save(outfilename); sprintf(outfilename, "%s_t_%d_f_%.2fsrc.jpg", infilename, houghThreshold, fraction); if(VERBOSE) cout << "Writing the circle image in the file " << outfilename << "." << endl; src.save(outfilename); } void Hough::hough_transform() { int maxDis = sqrt(w * w + h * h); const unsigned char blue[] = {0, 0, 255}; const unsigned char red[] = {255, 0, 0}; for (int r = minRadius; r < maxRadius; r += 1) { hough.assign(w, h, 1, 1, 0); peakGroups.clear(); cimg_forXY(edge, x, y) { if (edge(x, y) == EDGE) { for (int t = 0; t < 360; t++) { double theta = (t * M_PI) / 180; int a = x + r * cos(theta); int b = y + r * sin(theta); if (a >= 0 && a < w && b >= 0 && b < h) { hough(a, b)++; } } } } cimg_forXY(hough, a, b) { if (hough(a, b) >= houghThreshold) { // 大于阈值 bool flag = true; for (int i = 0; i < peakGroups.size(); i++) { for (int j = 0; j < peakGroups[i].size(); j++) { if (sqrt(pow(peakGroups[i][j].a - a, 2) + pow(peakGroups[i][j].b - b, 2)) < 5) { // 有局部分组区域,则将点加入分组 flag = false; Point temp = Point(a, b, hough(a, b)); peakGroups[i].push_back(temp); break; } } if (!flag) { break; } } if (flag) { // 没有局部分组区域,则创建新分组,将点加入 vector<Point> newGroup; Point temp = Point(a, b, hough(a, b)); newGroup.push_back(temp); peakGroups.push_back(newGroup); } } } for (int i = 0; i < peakGroups.size(); i++) { int a = 0, b = 0, v = 0; for (int j = 0; j < peakGroups[i].size(); j++) { a += peakGroups[i][j].a; b += peakGroups[i][j].b; v += peakGroups[i][j].v; } if (v > fraction * M_PI * r) { // 如果分组内投票值之和超过给定的比例,则该分组构成一个圆。 // 圆心坐标为分组内坐标的平均值 a /= peakGroups[i].size(); b /= peakGroups[i].size(); bool flag = true; for (int j = 0; j < circles.size(); j++) { if (pow(circles[j].a - a, 2) + pow(circles[j].b - b, 2) < r * r / 9 && abs(circles[j].v - r) < r / 10) { // 如果该圆与已有的圆接近,则算作同一个圆 // 计算两个圆的坐标和半径平均值,替代原有圆的圆心坐标和半径 flag = false; circles[j].a = (circles[j].a + a) / 2; circles[j].b = (circles[j].b + b) / 2; circles[j].v = (circles[j].v + r) / 2; } } if (flag) { // 如果不存在接近的圆,则新建一个圆 Point newCircle(a, b, r); circles.push_back(newCircle); } } } } for (int i = 0; i < circles.size(); i++) { src.draw_circle(circles[i].a, circles[i].b, circles[i].v, blue, 1, 1); circle.draw_circle(circles[i].a, circles[i].b, circles[i].v, blue, 1, 1); } cimg_forXY(edge, x, y) { if (circle(x, y, 0) == blue[0] && circle(x, y, 1) == blue[1] && circle(x, y, 2) == blue[2] && edge(x, y) == EDGE) { circle(x, y, 0) = red[0]; circle(x, y, 1) = red[1]; circle(x, y, 2) = red[2]; } } cout << "Number of circles: " << circles.size() << endl; }
[ "hellolixy@icloud.com" ]
hellolixy@icloud.com
547f551cbe7fe105746182ef24f4cd53bc8f0b35
63870bc730619af63e1ce13d0887cdb392533779
/DataStructure/A1123.cpp
00c201cd54c265f3ed6e1e69bd3ad374c28525c2
[]
no_license
Vancasola/DataStructure
d3e31cf6d77c98d77970ebe7f004370ddd33eaf7
fc493259566e7a9eb96c0fcbb6e617f7f12b17d4
refs/heads/master
2021-07-10T11:32:56.966456
2020-09-05T09:48:51
2020-09-05T09:48:51
189,852,670
1
0
null
null
null
null
UTF-8
C++
false
false
2,298
cpp
// // A1123.cpp // DataStructure // // Created by vancasola on 2020/2/9. // Copyright © 2020 none. All rights reserved. // 5:49 6:16 6:20 /* #include <stdio.h> #include <iostream> #include <queue> #include <vector> using namespace std; struct node{ int x; node* lc,*rc; int h; node(int d){ x=d; rc=lc=NULL; h=1; } }; vector<int>v; bool f=false,f2=true; int getheight(node* r){ if(r==NULL)return 0; return r->h; } int getfactor(node* r){ return getheight(r->lc)-getheight(r->rc); } void updateheight(node*r){ r->h=max(getheight(r->lc),getheight(r->rc))+1; } void L(node*& r){ node* t=r->rc; r->rc=t->lc; t->lc=r; updateheight(r); updateheight(t); r=t; } void R(node*& r){ node* t=r->lc; r->lc=t->rc; t->rc=r; updateheight(r); updateheight(t); r=t; } void insert(node*& r,int x){ if(r==NULL){ r=new node(x); return ; } if(x<r->x){ insert(r->lc, x); updateheight(r); if(getfactor(r)==2){ if(getfactor(r->lc)==1){ R(r); } else if(getfactor(r->lc)==-1){ L(r->lc); R(r); } } } else if(x>r->x){ insert(r->rc, x); updateheight(r); if(getfactor(r)==-2){ if(getfactor(r->rc)==-1){ L(r); } else if(getfactor(r->rc)==1){ R(r->rc); L(r); } } } } void layerorder(node* r){ queue<node*> q; node* t; q.push(r); while(!q.empty()){ t=q.front(); v.push_back(t->x); q.pop(); if(f && t->lc!=NULL)f2=false; if(t->lc==NULL)f=true; if(f && t->rc!=NULL)f2=false; if(t->rc==NULL)f=true; if(t->lc!=NULL)q.push(t->lc); if(t->rc!=NULL)q.push(t->rc); } return ; } int main() { int n,t; node* root=NULL; cin>>n; for(int i=0;i<n;i++){ scanf("%d",&t); insert(root,t); } layerorder(root); for(int i=0;i<v.size();i++){ if(i<v.size()-1)printf("%d ",v[i]); else printf("%d\n",v[i]); } if(f2)printf("YES\n"); else printf("NO\n"); return 0; } */
[ "616923882@qq.com" ]
616923882@qq.com
9cea57f5438f0240f26cbb12c22722827e788c7d
3ff1fe3888e34cd3576d91319bf0f08ca955940f
/iai/src/v20180301/model/AnalyzeDenseLandmarksRequest.cpp
9a657776dd3492ceec8f98d3472e79049d75cde4
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-cpp
9f5df8220eaaf72f7eaee07b2ede94f89313651f
42a76b812b81d1b52ec6a217fafc8faa135e06ca
refs/heads/master
2023-08-30T03:22:45.269556
2023-08-30T00:45:39
2023-08-30T00:45:39
188,991,963
55
37
Apache-2.0
2023-08-17T03:13:20
2019-05-28T08:56:08
C++
UTF-8
C++
false
false
4,527
cpp
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <tencentcloud/iai/v20180301/model/AnalyzeDenseLandmarksRequest.h> #include <tencentcloud/core/utils/rapidjson/document.h> #include <tencentcloud/core/utils/rapidjson/writer.h> #include <tencentcloud/core/utils/rapidjson/stringbuffer.h> using namespace TencentCloud::Iai::V20180301::Model; using namespace std; AnalyzeDenseLandmarksRequest::AnalyzeDenseLandmarksRequest() : m_modeHasBeenSet(false), m_imageHasBeenSet(false), m_urlHasBeenSet(false), m_faceModelVersionHasBeenSet(false), m_needRotateDetectionHasBeenSet(false) { } string AnalyzeDenseLandmarksRequest::ToJsonString() const { rapidjson::Document d; d.SetObject(); rapidjson::Document::AllocatorType& allocator = d.GetAllocator(); if (m_modeHasBeenSet) { rapidjson::Value iKey(rapidjson::kStringType); string key = "Mode"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, m_mode, allocator); } if (m_imageHasBeenSet) { rapidjson::Value iKey(rapidjson::kStringType); string key = "Image"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, rapidjson::Value(m_image.c_str(), allocator).Move(), allocator); } if (m_urlHasBeenSet) { rapidjson::Value iKey(rapidjson::kStringType); string key = "Url"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, rapidjson::Value(m_url.c_str(), allocator).Move(), allocator); } if (m_faceModelVersionHasBeenSet) { rapidjson::Value iKey(rapidjson::kStringType); string key = "FaceModelVersion"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, rapidjson::Value(m_faceModelVersion.c_str(), allocator).Move(), allocator); } if (m_needRotateDetectionHasBeenSet) { rapidjson::Value iKey(rapidjson::kStringType); string key = "NeedRotateDetection"; iKey.SetString(key.c_str(), allocator); d.AddMember(iKey, m_needRotateDetection, allocator); } rapidjson::StringBuffer buffer; rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); d.Accept(writer); return buffer.GetString(); } uint64_t AnalyzeDenseLandmarksRequest::GetMode() const { return m_mode; } void AnalyzeDenseLandmarksRequest::SetMode(const uint64_t& _mode) { m_mode = _mode; m_modeHasBeenSet = true; } bool AnalyzeDenseLandmarksRequest::ModeHasBeenSet() const { return m_modeHasBeenSet; } string AnalyzeDenseLandmarksRequest::GetImage() const { return m_image; } void AnalyzeDenseLandmarksRequest::SetImage(const string& _image) { m_image = _image; m_imageHasBeenSet = true; } bool AnalyzeDenseLandmarksRequest::ImageHasBeenSet() const { return m_imageHasBeenSet; } string AnalyzeDenseLandmarksRequest::GetUrl() const { return m_url; } void AnalyzeDenseLandmarksRequest::SetUrl(const string& _url) { m_url = _url; m_urlHasBeenSet = true; } bool AnalyzeDenseLandmarksRequest::UrlHasBeenSet() const { return m_urlHasBeenSet; } string AnalyzeDenseLandmarksRequest::GetFaceModelVersion() const { return m_faceModelVersion; } void AnalyzeDenseLandmarksRequest::SetFaceModelVersion(const string& _faceModelVersion) { m_faceModelVersion = _faceModelVersion; m_faceModelVersionHasBeenSet = true; } bool AnalyzeDenseLandmarksRequest::FaceModelVersionHasBeenSet() const { return m_faceModelVersionHasBeenSet; } int64_t AnalyzeDenseLandmarksRequest::GetNeedRotateDetection() const { return m_needRotateDetection; } void AnalyzeDenseLandmarksRequest::SetNeedRotateDetection(const int64_t& _needRotateDetection) { m_needRotateDetection = _needRotateDetection; m_needRotateDetectionHasBeenSet = true; } bool AnalyzeDenseLandmarksRequest::NeedRotateDetectionHasBeenSet() const { return m_needRotateDetectionHasBeenSet; }
[ "tencentcloudapi@tenent.com" ]
tencentcloudapi@tenent.com
bec408a9cdf61df1e23efd633395536d4e67a55c
4d430e7af78988fcf2e60a7f36c99a32e133dfc9
/hihocoder/no1531.cpp
b7cad1f6138337b2f662de7ab319711a490921f8
[]
no_license
SFZhang26/Algorithm
f67974ec0bca1814bf69c9dbaa1788fbe6be6853
94d7f5a79a4e517291f035759185fd9f1a03f797
refs/heads/master
2021-03-31T01:58:23.182696
2017-11-08T09:18:44
2017-11-08T09:18:44
83,506,627
3
0
null
null
null
null
UTF-8
C++
false
false
1,892
cpp
#include <cstdio> #include <cstring> #include <iostream> #include <cmath> #include <vector> #include <stack> #include <queue> #include <algorithm> #include <fstream> #include <iomanip> #include <map> #include <string> #include <bitset> #include <set> using namespace std; typedef long long ll; int n, k; int u, x; int pic[7]; //fruit + animal vector<vector<int>> history(11, vector<int>(7, 0)); vector<ll> card(10, 1e7); ll card_num = 0; int turn = 0; void reset() { for (int i = 0; i < 7; i++) pic[i] = 0; card_num = 0; history = vector<vector<int>>(11, vector<int>(7, 0)); } bool judge() { for (int i = 0; i < 4; i++) { if (pic[i] == 5) return true; } if (pic[4]>0 && (pic[0]>0 || pic[1]>0 || pic[2]>0) && pic[3] == 0) { return true; } if (pic[5] > 0 && (pic[0] > 0 || pic[3] > 0 || pic[2] > 0) && pic[1] == 0) { return true; } if (pic[6] > 0 && (pic[0] > 0 || pic[1] > 0 || pic[2] > 0 || pic[3]>0)) { return true; } return false; } void bell(int index) { if (judge()) { card[index] += card_num; reset(); } else { for (int i = 0; i < n; i++) { card[i]++; } card[index] -= n; } turn = u; } int main() { scanf("%d %d", &n, &k); for (int i = 0; i < k; i++) { char s[10]; scanf("%s %d", s, &u); if (strcmp(s, "Fruit") == 0) { card_num++; card[turn]--; vector<int> cur(7, 0); for (int j = 0; j < u; j++) { scanf("%d", &x); cur[x] ++; } for (int j = 0; j < 7; j++) { pic[j] += (cur[j] - history[turn][j]); } history[turn] = cur; turn = (turn + 1) % n; } else if (strcmp(s, "Animal") == 0) { card_num++; card[turn]--; for (int j = 0; j < 7; j++) { pic[j] -= history[turn][j]; history[turn][j] = 0; } history[turn][4 + u] = 1; pic[4 + u] ++; turn = (turn + 1) % n; } else { bell(u); } } for (int i = 0; i < n; i++) { cout << card[i] << endl; } return 0; }
[ "sf_zhang26@163.com" ]
sf_zhang26@163.com
c03428756b3e52f1111d598fc277457853c76b5d
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/20/51906a90e30839/main.cpp
0f9ab75db8d9847e09b955307a3716dfaf248d68
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
791
cpp
#include <iostream> #include <vector> void advance( std::vector<size_t>& indexes, std::vector<size_t> const& counts, size_t amt=1 ) { if (indexes.size() != counts.size()) indexes.resize(counts.size()); for (size_t i = 0; i < counts.size(); ++i ) { indexes[i]+=amt; if (indexes[i] < counts[i]) return; amt = indexes[i]/counts[i]; indexes[i] = indexes[i]%counts[i]; } // past the end, don't advance: indexes = counts; } void print_a_lot( std::vector<size_t> counts ) { for( std::vector<size_t> v(counts.size()); v < counts; advance(v,counts)) { for (size_t x : v) std::cout << x; std::cout << std::endl; } } int main() { print_a_lot( {3,2,3,4} ); }
[ "francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df" ]
francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df
4a7d8a92fe90299933e8d37d1aaef79ebbaa167c
725e0762e67e767c51cd5b336a69ca0b7b8ed183
/Thrust/Engine/Rect.h
22d94e17953752572ddb6010e9c26c1316f78d0d
[]
no_license
TonyMalz/CPP
5b09284f08a65cc87b5ffa1090564d183da86a7a
89cd416ed098fddece9bca9bb887b8a5c98ba684
refs/heads/master
2016-08-05T07:08:07.162185
2014-10-19T18:36:30
2014-10-19T18:36:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,294
h
/****************************************************************************************** * Chili DirectX Framework Version 14.03.22 * * Rect.h * * Copyright 2014 PlanetChili.net <http://www.planetchili.net> * * * * This file is part of The Chili DirectX Framework. * * * * The Chili DirectX Framework is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * * * * The Chili DirectX Framework 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 The Chili DirectX Framework. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************************/ #pragma once #include "Vec2.h" template < typename T > class Rect { public: inline Rect() {} inline Rect( T top,T bottom,T left,T right ) : top( top ), bottom( bottom ), left( left ), right( right ) {} inline Rect( const Rect& rect ) : top( rect.top ), bottom( rect.bottom ), left( rect.left ), right( rect.right ) {} inline void Translate( _Vec2< T > d ) { Translate( d.x,d.y ); } inline void Translate( T dx,T dy ) { top += dy; bottom += dy; left += dx; right += dx; } template < typename T2 > inline operator Rect< T2 >() const { return { (T2)top,(T2)bottom,(T2)left,(T2)right }; } inline void ClipTo( const Rect& rect ) { top = max( top,rect.top ); bottom = min( bottom,rect.bottom ); left = max( left,rect.left ); right = min( right,rect.right ); } inline T getWidth() const{ return right - left; } inline T getHeight() const{ return bottom - top; } public: T top; T bottom; T left; T right; }; typedef Rect< int > RectI; typedef Rect< float > RectF;
[ "arsch@boozr.de" ]
arsch@boozr.de
6bed07d565bb6b1fcb55e3b62c7551eb21b38cde
9a488a219a4f73086dc704c163d0c4b23aabfc1f
/tags/Release-1_0_0/src/FbTk/XmbFontImp.hh
992fa903347cbfbf9d9163fd4a8b060d256e01cb
[ "MIT" ]
permissive
BackupTheBerlios/fluxbox-svn
47b8844b562f56d02b211fd4323c2a761b473d5b
3ac62418ccf8ffaddbf3c181f28d2f652543f83f
refs/heads/master
2016-09-05T14:55:27.249504
2007-12-14T23:27:57
2007-12-14T23:27:57
40,667,038
0
0
null
null
null
null
UTF-8
C++
false
false
2,313
hh
// XmbFontImp.hh for FbTk fluxbox toolkit // Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen at fluxbox dot org) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. // $Id$ #ifndef FBTK_XMBFONTIMP_HH #define FBTK_XMBFONTIMP_HH #include "FontImp.hh" #include <X11/Xlib.h> namespace FbTk { /// multibyte font implementation for FbTk class XmbFontImp:public FbTk::FontImp { public: XmbFontImp(const char *fontname, bool utf8); ~XmbFontImp(); bool load(const std::string &name); virtual void drawText(const FbDrawable &w, int screen, GC gc, const FbString &text, size_t len, int x, int y, FbTk::Orientation orient); unsigned int textWidth(const FbString &text, unsigned int len) const; unsigned int height() const; int ascent() const { return m_setextents ? -m_setextents->max_ink_extent.y : 0; } int descent() const { return m_setextents ? m_setextents->max_ink_extent.height + m_setextents->max_ink_extent.y : 0; } bool loaded() const { return m_fontset != 0; } bool utf8() const { return m_utf8mode; } bool validOrientation(FbTk::Orientation orient) { return true; }; // rotated on demand private: XFontSet m_fontset; XFontSetExtents *m_setextents; bool m_utf8mode; }; } // end namespace FbTk #endif // FBTK_XMBFONTIMP_HH
[ "fluxgen@54ec5f11-9ae8-0310-9a2b-99d706b22625" ]
fluxgen@54ec5f11-9ae8-0310-9a2b-99d706b22625
5a1340cea032412105121d32737b937cfec6de17
2212e07b37c0a0045bb808ca1bd612b5d2079065
/header/battle/LightAttackStrategy.h
63283f37daeeec440f8885324adb308d1b096605
[]
no_license
danzmoses/cs100-project
4d641b6a1b99369f0e5d61dca7c8063e111ecdf9
ae1c0698cd5bb2139239c1152b64d34a993f2c88
refs/heads/master
2023-02-03T18:28:11.996762
2020-12-24T04:36:01
2020-12-24T04:36:01
324,067,151
0
0
null
null
null
null
UTF-8
C++
false
false
588
h
#ifndef LIGHT_ATTACK_STRATEGY_H #define LIGHT_ATTACK_STRATEGY_H #include "AttackStrategy.h" class LightAttackStrategy : public AttackStrategy { private: public: LightAttackStrategy() {} int attack(Entity* attacker, Entity* defender) { // light attack: player ATK multiplier is 1 (base ATK) // return 0 if damage done is less than or equal to 0 int damageDone = attacker->combatStats->ATK - defender->combatStats->DEF; return damageDone > 0 ? damageDone : 0; } }; #endif // LIGHT_ATTACK_STRATEGY_H
[ "danzmoses@gmail.com" ]
danzmoses@gmail.com
95b160a1787a18e39d1d578e9c0bd394659ff259
f4421731583c2c78966669236de06e77750cf2e6
/RRAMMemoryController/Testbench/includes/TestCommon.h
8ad0905f745fcaa9aae29f0fbf1f09237141dd71
[]
no_license
prag79/Memory_Performance
e27ab0b74b0854a25d957a84cd5aad24140567aa
29431ac3d39a5b7ad8bf807ccd33792ba900961b
refs/heads/master
2020-06-15T02:34:56.233859
2016-12-22T10:16:29
2016-12-22T10:16:29
75,337,077
0
0
null
null
null
null
UTF-8
C++
false
false
1,942
h
//Common #ifndef __TEST_COMMON_H__ #define __TEST_COMMON_H__ #include <cstdint> #define DDR_BUS_WIDTH 64 #define DDR_XFER_RATE 1600 #define COMMAND_PAYLOAD_SIZE 8 #define COMMAND_BL 4 #define MAX_VALID_COMPLETION_ENTRIES 31 #define MAX_COMPLETION_BYTES_READ 64 #define MAX_BLOCK_SIZE 8192 #define MAX_SLOT 256 #define SIZE_CMD_PAYLOAD 8 enum burstLength{ BL4 = 0, BL8 = 1 }; enum status{ BUSY = 0, FREE = 1 }; enum Flag{ SET = 1, RESET = 0 }; enum chipSelect{ PCMDQUEUE = 0x0, COMPLETIONQUEUE = 0x1, DATABUFFER0 = 0x2, DATABUFFER1 = 0x3 }; struct SlotStatusTable{ bool status; uint8_t numSlotReserved; uint64_t payload; SlotStatusTable() { reset(); } void reset() { status = status::FREE; numSlotReserved = 0; payload = 0; } uint8_t getNumSlotReserved() { return numSlotReserved; } void setNumSlotReserved(uint8_t numSlot) { numSlotReserved = numSlot; } }; typedef SlotStatusTable mSlotStatusTable; struct testCmdLatency { double startDelay; double endDelay; double latency; int16_t slotNum; bool isDone; testCmdLatency() { startDelay = 0; endDelay = 0; latency = 0; slotNum = -1; isDone = false; } }; typedef struct testCmdLatency testCmdLatencyData; enum testCmdType { READ_CMD = 0, WRITE_CMD = 1 }; struct CmdQueueField { double startDelay; cmdField payload; uint32_t slotNum; bool isDispatched; bool isCmdDone; }; /** append parameter in multi simulation * @param name name to be modified * @param mBlockSize block size * @param mQueueDepth queue depth of the host * @return void **/ //string appendParameters(string name,uint32_t mBlockSize,uint32_t mQueueDepth) //{ // // char temp[32]; // name.append("_iosize"); // _itoa(mBlockSize, temp, 10); // name.append("_"); // name.append(temp); // name.append("_qd"); // _itoa(mQueueDepth, temp, 10); // name.append("_"); // name.append(temp); // name.append(".log"); // //string temp = name; // return name; //} #endif
[ "pragnajit.d@hcl.com" ]
pragnajit.d@hcl.com
0b4a83765f4f19959b7bdac94dab66ca6ca8c80c
4254fd739d70c90ebb5f60d826e0d497fcd99208
/enclave_source/028_stealthdb/src/include/tools/sync_utils.hpp
b6bdf81dbcede24fd376483cfd112350634e1cc8
[]
no_license
OSUSecLab/SGXRacer
6210d86fa50d3f19f0fcda07d87e4f4738da2c30
61784f220b94a621255ed16434d3c45351cbb981
refs/heads/main
2023-08-04T11:23:13.135279
2023-03-08T07:15:38
2023-03-08T07:15:38
606,945,589
5
3
null
null
null
null
UTF-8
C++
false
false
170
hpp
#pragma once void spin_lock(int volatile* p); void spin_unlock(int volatile* p); void spin_lock(unsigned char volatile* p); void spin_unlock(unsigned char volatile* p);
[ "chenschuan@gmail.com" ]
chenschuan@gmail.com
12795e1ce7d10438f790118d7bd7d796d27f7cbc
1a9652da55e21fd177f20f165b456c8297ee4738
/C++Save/Tmp/ProjectA/Core/Common/Singleton.h
b86cfa72785338bc9d3c338be6ea391834439564
[]
no_license
jingsia/three1
c65e7a65f1e3b34ffd0b3922b2043c097acddf06
9d568722f90e37ca92a4c7561fe808da58ec1c1c
refs/heads/master
2020-07-23T04:32:46.423865
2016-12-22T16:10:15
2016-12-22T16:10:15
73,817,286
0
1
null
null
null
null
UTF-8
C++
false
false
670
h
#ifndef SINGLETON_INC #define SINGLETON_INC #include <stdlib.h> // Singleton object MUST BE initialized manually. template <typename Type> class Singleton { public: static Type& Instance() // Unique point of access { if (s_Instance == 0) { s_Instance = new(Type)(); atexit(Destroy); } return *s_Instance; } protected: Singleton() {} virtual ~Singleton() {} private: static void Destroy() // Destroy the only instance { if (s_Instance != 0) { delete(s_Instance); s_Instance = 0; } } static Type* volatile s_Instance; // The one and oly instance }; template <typename Type> Type* volatile Singleton<Type >::s_Instance = 0; #endif
[ "839172105@qq.com" ]
839172105@qq.com
3562fd9ff76e46cd50b7a3414fcecf3e49174565
a7234ba88c4781db36ba8275a6c0205a66a80db7
/Petri/Food.h
26d8e6c182c139cadce7aff28dcd6e97d7b6d1d0
[]
no_license
jchildren/petri
20eb8b647aa06cffa5018408970df5e62d179d76
202cdfa6a47f092c3cc5dc0fa1d921fd8830ef94
refs/heads/master
2016-09-06T03:59:41.165583
2015-12-02T19:33:39
2015-12-02T19:33:39
39,708,458
0
0
null
null
null
null
UTF-8
C++
false
false
299
h
#pragma once #include "Molecule.h" class Food : public Molecule { public: Food(); Food(int grid_size, int energy); virtual ~Food(); // Accessor function for energy_ int energy() const { return energy_; } // Accesor function for location_ position location() const { return location_; } };
[ "john.a.children@gmail.com" ]
john.a.children@gmail.com
6d5cc806641e752b9e84355428d867e122645fae
8ea21114ef89cbb1aaa4d99383ddfda6b26451c9
/dependencies/include/asio/detail/buffer_resize_guard.hpp
aa5b0ce65e21389744c69ceb067c36e3b83301fd
[ "MIT" ]
permissive
qchateau/rpclib
482f6ef09b9b371fcde9555510d128b3c1b00f84
b179d97d1660d2c06b04e8fe77423d33bf5b54f3
refs/heads/master
2021-06-08T20:14:15.612435
2021-04-26T20:59:26
2021-04-26T20:59:26
161,306,878
21
6
NOASSERTION
2021-04-26T21:04:23
2018-12-11T09:07:09
C++
UTF-8
C++
false
false
1,526
hpp
// // detail/buffer_resize_guard.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 ASIO_DETAIL_BUFFER_RESIZE_GUARD_HPP #define ASIO_DETAIL_BUFFER_RESIZE_GUARD_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include "asio/detail/config.hpp" #include "asio/detail/limits.hpp" #include "asio/detail/push_options.hpp" namespace clmdep_asio { namespace detail { // Helper class to manage buffer resizing in an exception safe way. template <typename Buffer> class buffer_resize_guard { public: // Constructor. buffer_resize_guard(Buffer& buffer) : buffer_(buffer), old_size_(buffer.size()) { } // Destructor rolls back the buffer resize unless commit was called. ~buffer_resize_guard() { if (old_size_ != (std::numeric_limits<size_t>::max)()) { buffer_.resize(old_size_); } } // Commit the resize transaction. void commit() { old_size_ = (std::numeric_limits<size_t>::max)(); } private: // The buffer being managed. Buffer& buffer_; // The size of the buffer at the time the guard was constructed. size_t old_size_; }; } // namespace detail } // namespace clmdep_asio #include "asio/detail/pop_options.hpp" #endif // ASIO_DETAIL_BUFFER_RESIZE_GUARD_HPP
[ "szelei.t@gmail.com" ]
szelei.t@gmail.com
ff7ade9dd4dd76377318069c5bdaae6ab64f414e
04b4518caa7b0a088e7e8aeb3f1df9bcdd9f6d4a
/gamemodes/modules/player/auth/account.inc
67688c122c94092a0a0f6667a2cfe2df3ad72fe5
[]
no_license
troke12/basic-gamememode
70b73e5be337c5ad6480b24fd7ce5b635fee6865
a0ea1d4b73fa59e083dd36efa38505116f983578
refs/heads/master
2023-03-08T18:04:53.318417
2021-02-23T04:35:08
2021-02-23T04:35:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
149
inc
#include "modules\player\auth\account_main.pwn" #include "modules\player\auth\account_data.pwn" //#include "modules\player\auth\account_textdraw.pwn"
[ "fairuzzafdhal@gmail.com" ]
fairuzzafdhal@gmail.com
e6467faf33c38a35d91275972be8acdb7169b9fc
0ddc636e228e5b93737f22f6edd6c51317f81cfc
/busitem_prod.h
23d1be240e8d91f1e5856e69bd54727f1c61fc97
[]
no_license
victronenergy/dbus_qwacs
429dd33e12f7d3d6776360414be60f434009f411
8c6c800f77edd528d7ae395aeea23485be6d8de5
refs/heads/master
2021-01-18T21:47:09.899977
2020-07-14T10:34:03
2020-07-14T10:34:03
16,987,898
0
0
null
null
null
null
UTF-8
C++
false
false
820
h
#ifndef BUSITEMPROD_H #define BUSITEMPROD_H #include "busitem_adaptor.h" class BusItemProd : public QObject { Q_OBJECT Q_PROPERTY(QDBusVariant value READ getValue) public: BusItemProd(QObject *parent = 0); BusItemProd(const QVariant &value, QObject *parent = 0); BusItemProd(const QString &value, QObject *parent = 0); ~BusItemProd(); void setValue(const QVariant &value); void setText(const QString &text); void invalidate(); public slots: QDBusVariant getValue() { return QDBusVariant(mValue); } QString getText() { return mText; } void propertiesUpdated(); signals: void PropertiesChanged(const QVariantMap &changes); private: static QStringList invalidValue; BusItemAdaptor* mBusItem; QVariantMap mChanges; //bool mInitialized; QVariant mValue; QString mText; }; #endif // BUSITEMPROD_H
[ "mmulder@victronenergy.com" ]
mmulder@victronenergy.com
0b10b2e7db83c071cf86c6bff112bf027b50b891
47f20d51c775d3bf656a726e491242accb979125
/daily_coding2.cpp
da3889d95e42e2d75c7e5f1eaffbff9510307fdf
[]
no_license
smitz94/Daily_Coding_Problem
73664888653c8578add0873203b4a7cc29936038
95a91791d71b06217bf1d34291c63e89da856fa6
refs/heads/master
2020-07-02T22:10:20.481099
2019-08-21T17:52:12
2019-08-21T17:52:12
201,683,194
0
0
null
null
null
null
UTF-8
C++
false
false
716
cpp
#include <bits/stdc++.h> using namespace std; vector<int> product_Except_Self(vector<int> &arr) { int L[arr.size()]; int R[arr.size()]; vector<int> answer; L[0]=1; R[arr.size()-1]=1; for(int i=1;i<arr.size();i++) { L[i]=arr[i-1]*L[i-1]; } for(int i=arr.size()-2;i>=0;i--) { R[i]=R[i+1]*arr[i+1]; } for(int i=0;i<arr.size();i++) { answer.push_back(L[i]*R[i]); } return answer; } int main() { int n; cout<<"Enter the size of input array: "; cin>>n; vector<int> arr; for(int i=0;i<n;i++) { int k; cin>>k; arr.push_back(k); } vector<int> answer; answer= product_Except_Self(arr); cout<<endl; for(int i=0;i<answer.size();i++) { cout<<answer[i]<<" "; } }
[ "smitzaveri12@gmail.com" ]
smitzaveri12@gmail.com
1af8ef97e6331cfbc76f0c0f9a9036f1aceaa94f
901c98bb6d28b857262340168e9f23b8179df6a1
/OpenGLConsole/include/lights/LightManager.h
3ca6798c8d61ef02d15b1f8fa3a276da8cb0bc4b
[]
no_license
ni-sirius/CoreOne
4ae3fa2dd9f8a2b397ab0ebcb9d453082811de3f
39dbec32d7e4db7e10edc37e1c1e3ef41108bd76
refs/heads/master
2021-06-11T20:01:50.305317
2021-04-10T12:47:59
2021-04-10T12:52:53
174,483,641
0
0
null
null
null
null
UTF-8
C++
false
false
438
h
#pragma once #include "lights/Lights.h" namespace coreone::graphics { class Shader; } class LightManager { public: LightManager(); ~LightManager(); void RegisterLight(std::shared_ptr<light::LightContainer> light); void LoadLightsToShader(std::shared_ptr<coreone::graphics::Shader> shader) const; private: std::unordered_map<std::string, std::list<std::shared_ptr<light::LightContainer>>> _lights; };
[ "ni-sirius@ya.ru" ]
ni-sirius@ya.ru
9904b13ee406a2e15282fd06aa09f7edf4746c5f
9dc9ad709b3772d5b49adb1fc424caecde07988a
/dinput8/src/CPedHack.cpp
879e899469da4cb71ff5b15c675d612110bc9a48
[]
no_license
ModelingMan/gtalc-dinput8
b31deb699a9b3ac7d985639a062602727001dd8e
76f574d50c364af3241b2214863d69a0af215733
refs/heads/master
2021-01-19T01:48:23.794965
2019-08-19T19:09:23
2019-08-19T19:09:23
29,551,092
8
7
null
2019-06-17T21:30:48
2015-01-20T20:43:42
C++
UTF-8
C++
false
false
1,314
cpp
#include "CPedHack.h" #include "Globals.h" #include "SilentCall.h" #include "WeaponTypes.h" #include "vcversion.h" // ServiceTalkingHackProxy static unsigned long serviceTalkingEndJump = vcversion::AdjustOffset(0x00522890); // InflictDamageHack static unsigned long inflictDamageHackMatch = vcversion::AdjustOffset(0x005261B3); static unsigned long inflictDamageHackNoMatch = vcversion::AdjustOffset(0x005261B7); bool CPedHack::initialise() { // allow bomber talk sfx InjectHook(0x0052287E, &CPedHack::ServiceTalkingHackProxy, PATCH_JUMP); // ak47 critical hits InjectHook(0x005261A4, &CPedHack::InflictDamageHack, PATCH_JUMP); return true; } void __declspec(naked) CPedHack::ServiceTalkingHackProxy() { __asm { mov ecx, ebx call CPedHack::ServiceTalkingHack jmp serviceTalkingEndJump } } void CPedHack::ServiceTalkingHack() { char *modelName = reinterpret_cast<char *>(CModelInfo::ms_modelInfoPtrs[this->modelIndex] + 0x4); if (this->activeFire || VCGlobals::strcmp(modelName, "bomber") == 0) { this->talkType = 0x6C; } } void __declspec(naked) CPedHack::InflictDamageHack() { __asm { cmp eax, WEAPONTYPE_M16 jz match cmp eax, WEAPONTYPE_SNIPERRIFLE jz match cmp eax, WEAPONTYPE_LASERSCOPE jz match jmp inflictDamageHackNoMatch match: jmp inflictDamageHackMatch } }
[ "spaceeinstein@yahoo.com" ]
spaceeinstein@yahoo.com
38e58c8ecacd0e663835792b503ee7dd110d29aa
8889c4dd54494a7d6ee63b69922331154ffd6ba4
/app/kubeDimension/include/boost/boost/utility/explicit_operator_bool.hpp
55a6d7eefc62e6bc86bd649fd29108f9a0ca9040
[ "BSL-1.0" ]
permissive
hello-web/kubeDimension
27d5e95f7b2d5c5b3743a0a53c6ac2b55c7bc509
a52277e0622676ff65e9d210386aac018e3b43fa
refs/heads/master
2021-05-30T02:19:22.596418
2015-11-30T02:46:21
2015-11-30T02:46:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
64
hpp
../../libs/core/include/boost/utility/explicit_operator_bool.hpp
[ "luc@blippar.com" ]
luc@blippar.com
aa0153db1d1f996e3e71955116f682be29b03afa
d0c44dd3da2ef8c0ff835982a437946cbf4d2940
/cmake-build-debug/programs_tiling/function14695/function14695_schedule_28/function14695_schedule_28_wrapper.cpp
beaa96bb60600e259f973ce60889b9a6157ab21c
[]
no_license
IsraMekki/tiramisu_code_generator
8b3f1d63cff62ba9f5242c019058d5a3119184a3
5a259d8e244af452e5301126683fa4320c2047a3
refs/heads/master
2020-04-29T17:27:57.987172
2019-04-23T16:50:32
2019-04-23T16:50:32
176,297,755
1
2
null
null
null
null
UTF-8
C++
false
false
860
cpp
#include "Halide.h" #include "function14695_schedule_28_wrapper.h" #include "tiramisu/utils.h" #include <cstdlib> #include <iostream> #include <time.h> #include <fstream> #include <chrono> #define MAX_RAND 200 int main(int, char **){Halide::Buffer<int32_t> buf0(128, 64, 128, 64); init_buffer(buf0, (int32_t)0); auto t1 = std::chrono::high_resolution_clock::now(); function14695_schedule_28(buf0.raw_buffer()); auto t2 = std::chrono::high_resolution_clock::now(); std::chrono::duration<double> diff = t2 - t1; std::ofstream exec_times_file; exec_times_file.open("../data/programs/function14695/function14695_schedule_28/exec_times.txt", std::ios_base::app); if (exec_times_file.is_open()){ exec_times_file << diff.count() * 1000000 << "us" <<std::endl; exec_times_file.close(); } return 0; }
[ "ei_mekki@esi.dz" ]
ei_mekki@esi.dz
b5deb0885a04393aa8eb633953603d52796a797b
0fa60c0f52a8552957024fe5db9782150b8f6e21
/Classes/FightScene.cpp
be93c73c9868d5cf3d33e38e97ab7c0cf7daaaf1
[]
no_license
jj918160/team
9ff2e02e5d93b91f28110e74bff89b45b82c3259
4a8c280ba387d8c84d6153569130bca30cf0dd03
refs/heads/master
2021-01-10T09:51:53.850338
2015-09-24T06:30:21
2015-09-24T06:30:21
43,049,245
0
0
null
null
null
null
UTF-8
C++
false
false
2,235
cpp
// // FightScene.cpp // 1507demo // // Created by mac on 15-7-29. // // #include "FightScene.h" #include "Base_Build.h" #include "Base_Soilder.h" #include "Manager_Player_Cache.h" using namespace cocos2d; Scene* FightScene::createScene() { // 'scene' is an autorelease object auto scene = Scene::create(); // 'layer' is an autorelease object auto layer = FightScene::create(); // add layer as a child to scene scene->addChild(layer); // return the scene return scene; } bool FightScene::init() { ////////////////////////////// // 1. super init first if ( !Layer::init() ) { return false; } auto mp=Manager_Player_Cache::getInstance(); //读取玩家建筑信息; Vcb=mp->VforB; //将建筑绘制到图上。 auto it=Vcb.begin(); vc_canput=mp->VforS; for (;it!=Vcb.end();it++) { Base_Build *t=(Base_Build*) *it; Base_Build* bb=Base_Build::create(); bb->initWithFile("26.2.png"); bb->setPosition(t->getPosition()); Vcbforalreadybuild.pushBack(bb); this->addChild(bb); } CCLOG("out"); auto touchEvt=EventListenerTouchOneByOne::create(); touchEvt->onTouchBegan=[=](Touch*touch,Event*event){ Vec2 p=touch->getLocation(); if (vc_canput.size()>0) { Base_Soilder*s=Base_Soilder::create(); s->initWithFile("27.2.png"); s->setPosition(p); this->addChild(s); s->scheduleUpdate(); s->scheduleUpdate(); vc_put.pushBack(s); vc_canput.popBack(); } return true; }; // touchEvt->onTouchEnded=[=](Touch*touch,Event*event){ // // }; Director::getInstance()->getEventDispatcher()->addEventListenerWithSceneGraphPriority(touchEvt,this); //执行触摸事件 CCLOG("out"); // scheduleUpdate(); return true; } //杀敌删除应该的写法。 //void FightScene::update(float dt){ // for(auto i:Vcbforalreadybuild){ // Base_Build*bb=(Base_Build*)i; // if (bb->get_atk()<=0) { // CCLOG("FIBBATK:%d",bb->get_atk()); // this->removeChild(i); // } // } //}
[ "446413497@qq.com" ]
446413497@qq.com
9746a6b9d73b04141b75132acf9dc95700632e6f
be341666d67bb0caae65a4f17a983d62f5e77f8f
/PA9_Darrah_Dalton/stackA.h
9064507c0370833bc2869f96bf5644942b0ed7e6
[]
no_license
ddarrah17/CS202
2a27f6f51e0e0d4218b1d5486f38f4b16ff84d82
b232cb7e4054919733d4ce381f0ee74dab888220
refs/heads/master
2020-12-09T12:54:01.486194
2020-01-11T23:05:27
2020-01-11T23:05:27
233,309,451
0
0
null
null
null
null
UTF-8
C++
false
false
621
h
#include <iostream> using namespace std; class stackA{ public: stackA(int = 10); stackA(const stackA&); ~stackA(); stackA& operator=(const stackA&); bool push(int); bool pop(); int getTop(); bool empty() const; bool full() const; bool clear(); bool operator==(const stackA&) const; friend ostream& operator<<(ostream&, const stackA&); private: int max; int top; int* data; };
[ "ddarrah@nevada.unr.edu" ]
ddarrah@nevada.unr.edu
86f599f3d93fa3eb62e184e47dd5210e54bdd582
d55aff0b77f6b9338397892217afa50bac3c5daf
/include/math/algorithms.h
2311fdf404d4c46d36990db7cbc14fd167acb3f2
[ "Apache-2.0" ]
permissive
NiklasDallmann/ToyPT
592d6a0cefe7a5d907359b86bc153cdf58199dba
1cb66982a48c2e0c77dededd12278eec272e0fd1
refs/heads/master
2020-05-26T16:56:54.679431
2019-11-19T10:12:46
2019-11-19T10:12:46
188,308,993
2
0
null
null
null
null
UTF-8
C++
false
false
1,803
h
#ifndef ALGORITHMS_H #define ALGORITHMS_H #ifdef __AVX__ #include <immintrin.h> #endif #include <cxxutility/definitions.h> #include "vector4.h" namespace ToyPT { namespace Math { constexpr float epsilon = 1e-6f; template <typename T> HOST_DEVICE inline bool fuzzyCompareEqual(const T left, const T right); template<> HOST_DEVICE inline bool fuzzyCompareEqual<float>(const float left, const float right) { bool returnValue = false; #ifndef __NVCC__ returnValue = std::abs(std::abs(left) - std::abs(right)) < epsilon; #else returnValue = fabsf(fabsf(left) - fabsf(right)) < epsilon; #endif return returnValue; } template<typename T> HOST_DEVICE inline T lerp(const T a, const T b, const float t) { return (1.0f - t) * b + t * a; } #ifdef __AVX__ template<> inline __m256 lerp<__m256>(const __m256 a, const __m256 b, const float t) { __m256 tVector = _mm256_set1_ps(t); __m256 inverseTVector = _mm256_set1_ps(1.0f - t); return _mm256_add_ps(_mm256_mul_ps(inverseTVector, b), _mm256_mul_ps(tVector, a)); } inline __m256 lerp(const __m256 a, const __m256 b, const __m256 t) { __m256 one = _mm256_set1_ps(1.0f); __m256 inverseTVector = _mm256_sub_ps(one, t); return _mm256_add_ps(_mm256_mul_ps(inverseTVector, b), _mm256_mul_ps(t, a)); } #endif template<typename T> HOST_DEVICE inline T saturate(const T x) { #ifndef __NVCC__ return std::min(1.0f, (std::max(0.0f, x))); #else return fminf(1.0f, (fmaxf(0.0f, x))); #endif } template<> HOST_DEVICE inline Math::Vector4 saturate<Math::Vector4>(const Math::Vector4 v) { return {saturate(v.x()), saturate(v.y()), saturate(v.z())}; } template <typename T> HOST_DEVICE inline void swap(T &left, T &right) { T temporary = left; left = right; right = temporary; } } // namespace Math } // namespace ToyPT #endif // ALGORITHMS_H
[ "git@niklas-dallmann.de" ]
git@niklas-dallmann.de
11ea87f3ec90ae2ca5876a319a8cddfe84b00509
8590b7928fdcff351a6e347c4b04a085f29b7895
/CS_suite/CropSyst/rotation_editor/V4/form_rotation_editor.h
8086a3b0df060ec9d1a6f4fc2c5bb9acb0ec4a95
[]
no_license
liao007/VIC-CropSyst-Package
07fd0f29634cf28b96a299dc07156e4f98a63878
63a626250ccbf9020717b7e69b6c70e40a264bc2
refs/heads/master
2023-05-23T07:15:29.023973
2021-05-29T02:17:32
2021-05-29T02:17:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,581
h
//--------------------------------------------------------------------------- #ifndef form_rotation_editorH #define form_rotation_editorH //______________________________________________________________________________ #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include "RNAutoContainerCheckListBox.h" #include "RNAutoIntegerEdit.h" #include <Buttons.hpp> #include <CheckLst.hpp> #include <ExtCtrls.hpp> //______________________________________________________________________________ namespace CropSyst { class Rotation_parameters; } class Tparameter_file_form; //______________________________________________________________________________ class Trotation_editor_form : public TForm { __published: // IDE-managed Components TPanel *panel_edit; TGroupBox *GroupBox1; TBitBtn *button_planting; TBitBtn *button_edit; TBitBtn *button_delete; TBitBtn *button_sort; TLabel *label_years; TLabel *label_end_year; TButton *button_build; TRNAutoIntegerEdit *edit_end; TRNAutoIntegerEdit *edit_years; TRNAutoContainerCheckListBox *listbox_rotation; void __fastcall button_editClick(TObject *Sender); void __fastcall button_deleteClick(TObject *Sender); // void __fastcall listbox_rotationClick(TObject *Sender); void __fastcall button_plantingClick(TObject *Sender); void __fastcall button_sortClick(TObject *Sender); void __fastcall button_buildClick(TObject *Sender); void __fastcall listbox_rotationDblClick(TObject *Sender); private: // User declarations CropSyst::Rotation_parameters *rotation; Tparameter_file_form *parameter_form; public: // User declarations __fastcall Trotation_editor_form(TComponent* Owner); void __fastcall bind_to (CropSyst::Rotation_parameters *rotation //130415 ,Tparameter_file_form *parameter_form //,const char *master_database_dir //,const char *project_database_dir //,const char *scenario_database_dir ); //Not sure if needed virtual void __fastcall Update(); inline virtual TPageControl *get_main_page_control() const { return 0;}; // The new rotation editor doesn't have page control }; //--------------------------------------------------------------------------- extern PACKAGE Trotation_editor_form *rotation_editor_form; //--------------------------------------------------------------------------- #endif
[ "mingliang.liu@wsu.edu" ]
mingliang.liu@wsu.edu
43ddd216f9665fbb77e3f5cdfdfc5db54ea5ab78
6fc8de9661242a5c88c773a2521856309cf6a881
/MatlabPlot/src/main.cpp
ca0de3c48a2024648f942c3f4509df38723eb245
[]
no_license
akumrao/MP3Codec
3fb8cf32b0c00db3a80b3a777200385ae5a5d642
369bcd18a91cc63d9a4fb29ffc4dbb83307c1b3c
refs/heads/master
2020-03-15T06:13:31.643948
2018-06-06T16:28:47
2018-06-06T16:28:47
132,002,704
0
0
null
null
null
null
UTF-8
C++
false
false
1,944
cpp
#include "MatLabPlot.h" #include "common.h" using namespace std; using namespace graph; #ifndef M_PI #define M_PI 3.14159265358979323846 #endif double normal_pdf(double x, double mean, double sigma); int main() { vector<double> x{1, 2, 3, 4, 5}; vector<double> y {25, 15, 5, -5, -15}; vector<double> x1 {1, 2, 3, 4, 5}; vector<double> y2{1, 2, 3, 4, 8}; try { plot(x, y, LineStyle, "--" ); plot(y); } catch(std::exception & e) { cout << e.what() << std::endl; } xlabel("x"); ylabel("y"); // enhanced texts legend({"({/Symbol m}, {/Symbol s}) = (1, 1)", "({/Symbol m}, {/Symbol s}) = (2, 2)"}); grid(true); // turn on grids try { plot(x, y, "Color", "r", "LineWidth", 10, x, y2, "Color", "b", "LineWidth", 1); } catch(std::exception & e) { cout << e.what() << std::endl; } try { // Prepare sample data unsigned nPoint = 51; vector<double> x; x = linspace(0, 8, nPoint); vector<double> pdf11(nPoint); vector<double> pdf22(nPoint); double mu1 = 1; double mu2 = 2; double sigma1 = 1; double sigma2 = 2; for (unsigned i = 0; i < nPoint; ++i) { pdf11[i] = normal_pdf(x[i], mu1, sigma1); pdf22[i] = normal_pdf(x[i], mu2, sigma2); } xlabel("x"); ylabel("pdf_{{/Symbol m},{/Symbol s}} (x)"); // enhanced texts legend({"({/Symbol m}, {/Symbol s}) = (1, 1)", "({/Symbol m}, {/Symbol s}) = (2, 2)"}); grid(true); // turn on grids graph::plot(x, pdf11, "Color", "r", "LineWidth", 10, x, pdf22, "Color", "b", "LineWidth", 1); } catch(std::exception & e) { cout << e.what() << std::endl; } } double normal_pdf(double x, double mean, double sigma) { x -= mean; x /= sigma; return 1.0 / sqrt(2 * M_PI) / sigma * exp(-x * x / 2); }
[ "akumrao@yahoo.com" ]
akumrao@yahoo.com
6a583a6645c4c9f80d456515d1775a5cb255da22
bd525e45d16ee67b19ab83811c08930f12086b6c
/ITP/Cpp/11A.cpp
06eb26d45c55d9e998408f8f25b1e36af1b7d016
[]
no_license
face4/AOJ
fb86b3d9a05c2ea1da4819c0d253c48ca06efa56
e869a5ab38a8ce4ecd7344fc24246da07e0a7b6e
refs/heads/master
2021-06-10T11:56:27.591053
2020-11-26T12:01:35
2020-11-26T12:01:35
128,877,332
7
0
null
null
null
null
UTF-8
C++
false
false
105
cpp
#include <iostream> using namespace std; int main(){ cout << "Hello World" << endl; return 0; }
[ "s1611361@u.tsukuba.ac.jp" ]
s1611361@u.tsukuba.ac.jp
eabfd47f2e29daf1af80b09b97c0b625e286800f
955e78f80868f96490e1fa99aae4520203c3b3f1
/HomingMissile/Classes/Native/Il2CppGenericMethodPointerTable.cpp
fff3211228c38f8e2b13b51f19e553020064c5c5
[]
no_license
DimaNakhratiants/HomingMissile
3ab894f57fb84b9181acaef0a431fe5168dd7f4f
8b3b75fae11fa15c6899827a2fcfa863c37592b0
refs/heads/master
2021-05-06T12:31:48.113029
2017-12-06T13:22:36
2017-12-06T13:22:36
113,148,041
0
0
null
null
null
null
UTF-8
C++
false
false
710,954
cpp
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include "class-internals.h" #include "codegen/il2cpp-codegen.h" extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisIl2CppObject_m944375256_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisIl2CppObject_m1329963457_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisIl2CppObject_m2425110446_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisIl2CppObject_m4286375615_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisIl2CppObject_m1162822425_gshared (); extern "C" void Array_InternalArray__Insert_TisIl2CppObject_m3029517586_gshared (); extern "C" void Array_InternalArray__IndexOf_TisIl2CppObject_m2440219229_gshared (); extern "C" void Array_InternalArray__get_Item_TisIl2CppObject_m371871810_gshared (); extern "C" void Array_InternalArray__set_Item_TisIl2CppObject_m870461665_gshared (); extern "C" void Array_get_swapper_TisIl2CppObject_m1701356863_gshared (); extern "C" void Array_Sort_TisIl2CppObject_m2295346640_gshared (); extern "C" void Array_Sort_TisIl2CppObject_TisIl2CppObject_m2775211098_gshared (); extern "C" void Array_Sort_TisIl2CppObject_m3309514378_gshared (); extern "C" void Array_Sort_TisIl2CppObject_TisIl2CppObject_m838950897_gshared (); extern "C" void Array_Sort_TisIl2CppObject_m143182644_gshared (); extern "C" void Array_Sort_TisIl2CppObject_TisIl2CppObject_m1915706600_gshared (); extern "C" void Array_Sort_TisIl2CppObject_m1954851512_gshared (); extern "C" void Array_Sort_TisIl2CppObject_TisIl2CppObject_m1526562629_gshared (); extern "C" void Array_Sort_TisIl2CppObject_m3674422195_gshared (); extern "C" void Array_Sort_TisIl2CppObject_m3717288230_gshared (); extern "C" void Array_qsort_TisIl2CppObject_TisIl2CppObject_m1340227921_gshared (); extern "C" void Array_compare_TisIl2CppObject_m1481822507_gshared (); extern "C" void Array_qsort_TisIl2CppObject_m1127107058_gshared (); extern "C" void Array_swap_TisIl2CppObject_TisIl2CppObject_m127996650_gshared (); extern "C" void Array_swap_TisIl2CppObject_m653591269_gshared (); extern "C" void Array_Resize_TisIl2CppObject_m4223007361_gshared (); extern "C" void Array_Resize_TisIl2CppObject_m1113434054_gshared (); extern "C" void Array_TrueForAll_TisIl2CppObject_m3052765269_gshared (); extern "C" void Array_ForEach_TisIl2CppObject_m1849351808_gshared (); extern "C" void Array_ConvertAll_TisIl2CppObject_TisIl2CppObject_m2423585546_gshared (); extern "C" void Array_FindLastIndex_TisIl2CppObject_m986818300_gshared (); extern "C" void Array_FindLastIndex_TisIl2CppObject_m3885928623_gshared (); extern "C" void Array_FindLastIndex_TisIl2CppObject_m869210470_gshared (); extern "C" void Array_FindIndex_TisIl2CppObject_m4149904176_gshared (); extern "C" void Array_FindIndex_TisIl2CppObject_m872355017_gshared (); extern "C" void Array_FindIndex_TisIl2CppObject_m965140358_gshared (); extern "C" void Array_BinarySearch_TisIl2CppObject_m2457435347_gshared (); extern "C" void Array_BinarySearch_TisIl2CppObject_m3361740551_gshared (); extern "C" void Array_BinarySearch_TisIl2CppObject_m4109835519_gshared (); extern "C" void Array_BinarySearch_TisIl2CppObject_m3048647515_gshared (); extern "C" void Array_IndexOf_TisIl2CppObject_m2032877681_gshared (); extern "C" void Array_IndexOf_TisIl2CppObject_m214763038_gshared (); extern "C" void Array_IndexOf_TisIl2CppObject_m1815604637_gshared (); extern "C" void Array_LastIndexOf_TisIl2CppObject_m1962410007_gshared (); extern "C" void Array_LastIndexOf_TisIl2CppObject_m3287014766_gshared (); extern "C" void Array_LastIndexOf_TisIl2CppObject_m2980037739_gshared (); extern "C" void Array_FindAll_TisIl2CppObject_m2420286284_gshared (); extern "C" void Array_Exists_TisIl2CppObject_m4244336533_gshared (); extern "C" void Array_AsReadOnly_TisIl2CppObject_m1721559766_gshared (); extern "C" void Array_Find_TisIl2CppObject_m1654841559_gshared (); extern "C" void Array_FindLast_TisIl2CppObject_m1794562749_gshared (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m94051553_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3206960238_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m853313801_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3080260213_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1636767846_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1047150157_AdjustorThunk (); extern "C" void ArrayReadOnlyList_1_get_Item_m176001975_gshared (); extern "C" void ArrayReadOnlyList_1_set_Item_m314687476_gshared (); extern "C" void ArrayReadOnlyList_1_get_Count_m962317777_gshared (); extern "C" void ArrayReadOnlyList_1_get_IsReadOnly_m2717922212_gshared (); extern "C" void ArrayReadOnlyList_1__ctor_m2430810679_gshared (); extern "C" void ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m2780765696_gshared (); extern "C" void ArrayReadOnlyList_1_Add_m3970067462_gshared (); extern "C" void ArrayReadOnlyList_1_Clear_m2539474626_gshared (); extern "C" void ArrayReadOnlyList_1_Contains_m1266627404_gshared (); extern "C" void ArrayReadOnlyList_1_CopyTo_m816115094_gshared (); extern "C" void ArrayReadOnlyList_1_GetEnumerator_m1078352793_gshared (); extern "C" void ArrayReadOnlyList_1_IndexOf_m1537228832_gshared (); extern "C" void ArrayReadOnlyList_1_Insert_m1136669199_gshared (); extern "C" void ArrayReadOnlyList_1_Remove_m1875216835_gshared (); extern "C" void ArrayReadOnlyList_1_RemoveAt_m2701218731_gshared (); extern "C" void ArrayReadOnlyList_1_ReadOnlyError_m2289309720_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CTU3E_get_Current_m1791706206_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m2580780957_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0__ctor_m1015489335_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_MoveNext_m2489948797_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_Dispose_m1859988746_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_Reset_m2980566576_gshared (); extern "C" void Comparer_1_get_Default_m40106963_gshared (); extern "C" void Comparer_1__ctor_m4082958187_gshared (); extern "C" void Comparer_1__cctor_m2962395036_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m872902762_gshared (); extern "C" void DefaultComparer__ctor_m84239532_gshared (); extern "C" void DefaultComparer_Compare_m2805784815_gshared (); extern "C" void GenericComparer_1__ctor_m1146681644_gshared (); extern "C" void GenericComparer_1_Compare_m78150427_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_get_Item_m237963271_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m3775521570_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m960517203_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_SyncRoot_m1900166091_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m4094240197_gshared (); extern "C" void Dictionary_2_get_Count_m3636113691_gshared (); extern "C" void Dictionary_2_get_Item_m2413909512_gshared (); extern "C" void Dictionary_2_set_Item_m1004257024_gshared (); extern "C" void Dictionary_2_get_Values_m2233445381_gshared (); extern "C" void Dictionary_2__ctor_m584589095_gshared (); extern "C" void Dictionary_2__ctor_m2849528578_gshared (); extern "C" void Dictionary_2__ctor_m206582704_gshared (); extern "C" void Dictionary_2__ctor_m1206668798_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m984276885_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m2017099222_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m990341268_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1058501024_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m976354816_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m1705959559_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m3578539931_gshared (); extern "C" void Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m3100111910_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m2925090477_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_GetEnumerator_m2684932776_gshared (); extern "C" void Dictionary_2_Init_m1045257495_gshared (); extern "C" void Dictionary_2_InitArrays_m2270022740_gshared (); extern "C" void Dictionary_2_CopyToCheck_m2147716750_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisIl2CppObject_TisIl2CppObject_m1804181923_gshared (); extern "C" void Dictionary_2_make_pair_m2631942124_gshared (); extern "C" void Dictionary_2_pick_value_m1872663242_gshared (); extern "C" void Dictionary_2_CopyTo_m1495142643_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisIl2CppObject_m4092802079_gshared (); extern "C" void Dictionary_2_Resize_m2672264133_gshared (); extern "C" void Dictionary_2_Add_m4209421183_gshared (); extern "C" void Dictionary_2_Clear_m2325793156_gshared (); extern "C" void Dictionary_2_ContainsKey_m3553426152_gshared (); extern "C" void Dictionary_2_ContainsValue_m2375979648_gshared (); extern "C" void Dictionary_2_GetObjectData_m2864531407_gshared (); extern "C" void Dictionary_2_OnDeserialization_m2160537783_gshared (); extern "C" void Dictionary_2_Remove_m112127646_gshared (); extern "C" void Dictionary_2_TryGetValue_m3975825838_gshared (); extern "C" void Dictionary_2_ToTKey_m4209561517_gshared (); extern "C" void Dictionary_2_ToTValue_m1381983709_gshared (); extern "C" void Dictionary_2_ContainsKeyValuePair_m663697471_gshared (); extern "C" void Dictionary_2_GetEnumerator_m1752238884_gshared (); extern "C" void Dictionary_2_U3CCopyToU3Em__0_m2061238213_gshared (); extern "C" void ShimEnumerator_get_Entry_m4233876641_gshared (); extern "C" void ShimEnumerator_get_Key_m3962796804_gshared (); extern "C" void ShimEnumerator_get_Value_m2522747790_gshared (); extern "C" void ShimEnumerator_get_Current_m2121723938_gshared (); extern "C" void ShimEnumerator__ctor_m119758426_gshared (); extern "C" void ShimEnumerator_MoveNext_m2013866013_gshared (); extern "C" void ShimEnumerator_Reset_m1100368508_gshared (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m229223308_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m221119093_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m467957770_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m2325383168_AdjustorThunk (); extern "C" void Enumerator_get_Current_m25299632_AdjustorThunk (); extern "C" void Enumerator_get_CurrentKey_m3839846791_AdjustorThunk (); extern "C" void Enumerator_get_CurrentValue_m402763047_AdjustorThunk (); extern "C" void Enumerator__ctor_m3742107451_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m3225937576_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m3349738440_AdjustorThunk (); extern "C" void Enumerator_Reset_m3129803197_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m262343092_AdjustorThunk (); extern "C" void Enumerator_VerifyCurrent_m1702320752_AdjustorThunk (); extern "C" void Enumerator_Dispose_m1905011127_AdjustorThunk (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m1530798787_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_IsSynchronized_m3044620153_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_SyncRoot_m919209341_gshared (); extern "C" void ValueCollection_get_Count_m3718352161_gshared (); extern "C" void ValueCollection__ctor_m1801851342_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m1477647540_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m573646175_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m1598273024_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m3764375695_gshared (); extern "C" void ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m3036711881_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m3792551117_gshared (); extern "C" void ValueCollection_System_Collections_IEnumerable_GetEnumerator_m1773104428_gshared (); extern "C" void ValueCollection_CopyTo_m927881183_gshared (); extern "C" void ValueCollection_GetEnumerator_m379930731_gshared (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3933483934_AdjustorThunk (); extern "C" void Enumerator_get_Current_m4025002300_AdjustorThunk (); extern "C" void Enumerator__ctor_m3819430617_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m2482663638_AdjustorThunk (); extern "C" void Enumerator_Dispose_m4238653081_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m335649778_AdjustorThunk (); extern "C" void Transform_1__ctor_m3849972087_gshared (); extern "C" void Transform_1_Invoke_m1224512163_gshared (); extern "C" void Transform_1_BeginInvoke_m2122310722_gshared (); extern "C" void Transform_1_EndInvoke_m1237128929_gshared (); extern "C" void EqualityComparer_1_get_Default_m1577971315_gshared (); extern "C" void EqualityComparer_1__ctor_m1185444131_gshared (); extern "C" void EqualityComparer_1__cctor_m1672307556_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m4285727610_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2170611288_gshared (); extern "C" void DefaultComparer__ctor_m676686452_gshared (); extern "C" void DefaultComparer_GetHashCode_m3315096533_gshared (); extern "C" void DefaultComparer_Equals_m684443589_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m2748998164_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m3511004089_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m482771493_gshared (); extern "C" void KeyValuePair_2_get_Key_m2561166459_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Key_m744486900_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Value_m499643803_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Value_m1416408204_AdjustorThunk (); extern "C" void KeyValuePair_2__ctor_m1640124561_AdjustorThunk (); extern "C" void KeyValuePair_2_ToString_m2613351884_AdjustorThunk (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2131934397_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m418560222_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m1594235606_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m2120144013_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m257950146_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m936612973_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m162109184_gshared (); extern "C" void List_1_get_Capacity_m3133733835_gshared (); extern "C" void List_1_set_Capacity_m491101164_gshared (); extern "C" void List_1_get_Count_m2375293942_gshared (); extern "C" void List_1_get_Item_m2062981835_gshared (); extern "C" void List_1_set_Item_m4128108021_gshared (); extern "C" void List_1__ctor_m310736118_gshared (); extern "C" void List_1__ctor_m136460305_gshared (); extern "C" void List_1__cctor_m138621019_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m154161632_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m2020941110_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m3552870393_gshared (); extern "C" void List_1_System_Collections_IList_Add_m1765626550_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m149594880_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m406088260_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m3961795241_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m3415450529_gshared (); extern "C" void List_1_Add_m4157722533_gshared (); extern "C" void List_1_GrowIfNeeded_m185971996_gshared (); extern "C" void List_1_AddCollection_m1580067148_gshared (); extern "C" void List_1_AddEnumerable_m2489692396_gshared (); extern "C" void List_1_AddRange_m3537433232_gshared (); extern "C" void List_1_AsReadOnly_m2563000362_gshared (); extern "C" void List_1_Clear_m4254626809_gshared (); extern "C" void List_1_Contains_m1658838094_gshared (); extern "C" void List_1_CopyTo_m1758262197_gshared (); extern "C" void List_1_Find_m1881447651_gshared (); extern "C" void List_1_CheckMatch_m1196994270_gshared (); extern "C" void List_1_GetIndex_m3409004147_gshared (); extern "C" void List_1_GetEnumerator_m2837081829_gshared (); extern "C" void List_1_IndexOf_m2070479489_gshared (); extern "C" void List_1_Shift_m3137156970_gshared (); extern "C" void List_1_CheckIndex_m524615377_gshared (); extern "C" void List_1_Insert_m11735664_gshared (); extern "C" void List_1_CheckCollection_m3968030679_gshared (); extern "C" void List_1_Remove_m3164383811_gshared (); extern "C" void List_1_RemoveAll_m1569860525_gshared (); extern "C" void List_1_RemoveAt_m3615096820_gshared (); extern "C" void List_1_Reverse_m4038478200_gshared (); extern "C" void List_1_Sort_m554162636_gshared (); extern "C" void List_1_Sort_m2895170076_gshared (); extern "C" void List_1_ToArray_m546658539_gshared (); extern "C" void List_1_TrimExcess_m1944241237_gshared (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m2853089017_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2577424081_AdjustorThunk (); extern "C" void Enumerator__ctor_m3769601633_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m3440386353_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3736175406_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m825848279_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m44995089_AdjustorThunk (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2832435102_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m1442644511_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m1422512927_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m2968235316_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m1990189611_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m75082808_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m507853765_gshared (); extern "C" void Collection_1_get_Count_m2250721247_gshared (); extern "C" void Collection_1_get_Item_m266052953_gshared (); extern "C" void Collection_1_set_Item_m3489932746_gshared (); extern "C" void Collection_1__ctor_m3383758099_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m2795445359_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m539985258_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m916188271_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m3240760119_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m3460849589_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m3482199744_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1739078822_gshared (); extern "C" void Collection_1_Add_m2987402052_gshared (); extern "C" void Collection_1_Clear_m1596645192_gshared (); extern "C" void Collection_1_ClearItems_m1175603758_gshared (); extern "C" void Collection_1_Contains_m2116635914_gshared (); extern "C" void Collection_1_CopyTo_m1578267616_gshared (); extern "C" void Collection_1_GetEnumerator_m2963411583_gshared (); extern "C" void Collection_1_IndexOf_m3885709710_gshared (); extern "C" void Collection_1_Insert_m2334889193_gshared (); extern "C" void Collection_1_InsertItem_m3611385334_gshared (); extern "C" void Collection_1_Remove_m452558737_gshared (); extern "C" void Collection_1_RemoveAt_m1632496813_gshared (); extern "C" void Collection_1_RemoveItem_m4104600353_gshared (); extern "C" void Collection_1_SetItem_m1075410277_gshared (); extern "C" void Collection_1_IsValidItem_m3443424420_gshared (); extern "C" void Collection_1_ConvertItem_m1521356246_gshared (); extern "C" void Collection_1_CheckWritable_m215419136_gshared (); extern "C" void Collection_1_IsSynchronized_m328767958_gshared (); extern "C" void Collection_1_IsFixedSize_m3594284193_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m70085287_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1547026160_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4041967064_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2871048729_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m769863805_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m942145650_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m1367736517_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m3336878134_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1799572719_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m2562379905_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m191392387_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m3671019970_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2989589458_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m454937302_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m4272763307_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3199809075_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m962041751_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m3664791405_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m531171980_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m3780136817_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m3983677501_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m1990607517_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m606942423_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m691705570_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m3182494192_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m572840272_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m1227826160_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m4257276542_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m1627519329_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m1981423404_gshared (); extern "C" void CustomAttributeData_UnboxValues_TisIl2CppObject_m1499708102_gshared (); extern "C" void MonoProperty_GetterAdapterFrame_TisIl2CppObject_TisIl2CppObject_m3902286252_gshared (); extern "C" void MonoProperty_StaticGetterAdapterFrame_TisIl2CppObject_m2321763151_gshared (); extern "C" void Getter_2__ctor_m653998582_gshared (); extern "C" void Getter_2_Invoke_m3338489829_gshared (); extern "C" void Getter_2_BeginInvoke_m2080015031_gshared (); extern "C" void Getter_2_EndInvoke_m977999903_gshared (); extern "C" void StaticGetter_1__ctor_m1290492285_gshared (); extern "C" void StaticGetter_1_Invoke_m1348877692_gshared (); extern "C" void StaticGetter_1_BeginInvoke_m2732579814_gshared (); extern "C" void StaticGetter_1_EndInvoke_m44757160_gshared (); extern "C" void Activator_CreateInstance_TisIl2CppObject_m1022768098_gshared (); extern "C" void Action_1__ctor_m584977596_gshared (); extern "C" void Action_1_Invoke_m4180501989_gshared (); extern "C" void Action_1_BeginInvoke_m1305519803_gshared (); extern "C" void Action_1_EndInvoke_m2057605070_gshared (); extern "C" void Comparison_1__ctor_m2929820459_gshared (); extern "C" void Comparison_1_Invoke_m2798106261_gshared (); extern "C" void Comparison_1_BeginInvoke_m1817828810_gshared (); extern "C" void Comparison_1_EndInvoke_m1056665895_gshared (); extern "C" void Converter_2__ctor_m2798627395_gshared (); extern "C" void Converter_2_Invoke_m77799585_gshared (); extern "C" void Converter_2_BeginInvoke_m898151494_gshared (); extern "C" void Converter_2_EndInvoke_m1606718561_gshared (); extern "C" void Predicate_1__ctor_m2289454599_gshared (); extern "C" void Predicate_1_Invoke_m4047721271_gshared (); extern "C" void Predicate_1_BeginInvoke_m3556950370_gshared (); extern "C" void Predicate_1_EndInvoke_m3656575065_gshared (); extern "C" void Stack_1_System_Collections_ICollection_get_IsSynchronized_m2076161108_gshared (); extern "C" void Stack_1_System_Collections_ICollection_get_SyncRoot_m3151629354_gshared (); extern "C" void Stack_1_get_Count_m4101767244_gshared (); extern "C" void Stack_1__ctor_m1041657164_gshared (); extern "C" void Stack_1_System_Collections_ICollection_CopyTo_m2104527616_gshared (); extern "C" void Stack_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m680979874_gshared (); extern "C" void Stack_1_System_Collections_IEnumerable_GetEnumerator_m3875192475_gshared (); extern "C" void Stack_1_Peek_m1548778538_gshared (); extern "C" void Stack_1_Pop_m1289567471_gshared (); extern "C" void Stack_1_Push_m1129365869_gshared (); extern "C" void Stack_1_GetEnumerator_m287848754_gshared (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1270503615_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2076859656_AdjustorThunk (); extern "C" void Enumerator__ctor_m2816143215_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m456699159_AdjustorThunk (); extern "C" void Enumerator_Dispose_m1520016780_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m689054299_AdjustorThunk (); extern "C" void HashSet_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2633171492_gshared (); extern "C" void HashSet_1_get_Count_m4103055329_gshared (); extern "C" void HashSet_1__ctor_m2858247305_gshared (); extern "C" void HashSet_1__ctor_m3582855242_gshared (); extern "C" void HashSet_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m788997721_gshared (); extern "C" void HashSet_1_System_Collections_Generic_ICollectionU3CTU3E_CopyTo_m1933244740_gshared (); extern "C" void HashSet_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3632050820_gshared (); extern "C" void HashSet_1_System_Collections_IEnumerable_GetEnumerator_m2498631708_gshared (); extern "C" void HashSet_1_Init_m1258286688_gshared (); extern "C" void HashSet_1_InitArrays_m1536879844_gshared (); extern "C" void HashSet_1_SlotsContainsAt_m219342270_gshared (); extern "C" void HashSet_1_CopyTo_m1750586488_gshared (); extern "C" void HashSet_1_CopyTo_m4175866709_gshared (); extern "C" void HashSet_1_Resize_m1435308491_gshared (); extern "C" void HashSet_1_GetLinkHashCode_m3972670595_gshared (); extern "C" void HashSet_1_GetItemHashCode_m433445195_gshared (); extern "C" void HashSet_1_Add_m199171953_gshared (); extern "C" void HashSet_1_Clear_m350367572_gshared (); extern "C" void HashSet_1_Contains_m3626542335_gshared (); extern "C" void HashSet_1_Remove_m3273285564_gshared (); extern "C" void HashSet_1_GetObjectData_m2935317189_gshared (); extern "C" void HashSet_1_OnDeserialization_m1222146673_gshared (); extern "C" void HashSet_1_GetEnumerator_m2393522520_gshared (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m2899861010_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1303936404_AdjustorThunk (); extern "C" void Enumerator__ctor_m1279102766_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m2573763156_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2097560514_AdjustorThunk (); extern "C" void Enumerator_Dispose_m2585752265_AdjustorThunk (); extern "C" void Enumerator_CheckState_m1761755727_AdjustorThunk (); extern "C" void PrimeHelper__cctor_m1638820768_gshared (); extern "C" void PrimeHelper_TestPrime_m3472022159_gshared (); extern "C" void PrimeHelper_CalcPrime_m2460747866_gshared (); extern "C" void PrimeHelper_ToPrime_m1606935350_gshared (); extern "C" void Enumerable_Any_TisIl2CppObject_m2208185096_gshared (); extern "C" void Enumerable_Where_TisIl2CppObject_m1516493223_gshared (); extern "C" void Enumerable_CreateWhereIterator_TisIl2CppObject_m422304381_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_Generic_IEnumeratorU3CTSourceU3E_get_Current_m3602665650_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_IEnumerator_get_Current_m269113779_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1__ctor_m1958283157_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_IEnumerable_GetEnumerator_m3279674866_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_Generic_IEnumerableU3CTSourceU3E_GetEnumerator_m2682676065_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_MoveNext_m3533253043_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_Dispose_m1879652802_gshared (); extern "C" void U3CCreateWhereIteratorU3Ec__Iterator1D_1_Reset_m1773515612_gshared (); extern "C" void Action_2__ctor_m3362391082_gshared (); extern "C" void Action_2_Invoke_m1501152969_gshared (); extern "C" void Action_2_BeginInvoke_m1914861552_gshared (); extern "C" void Action_2_EndInvoke_m3956733788_gshared (); extern "C" void Func_2__ctor_m1684831714_gshared (); extern "C" void Func_2_Invoke_m3288232740_gshared (); extern "C" void Func_2_BeginInvoke_m4034295761_gshared (); extern "C" void Func_2_EndInvoke_m1674435418_gshared (); extern "C" void ScriptableObject_CreateInstance_TisIl2CppObject_m926060499_gshared (); extern "C" void Component_GetComponent_TisIl2CppObject_m4109961936_gshared (); extern "C" void Component_GetComponentInChildren_TisIl2CppObject_m2461586036_gshared (); extern "C" void Component_GetComponentInChildren_TisIl2CppObject_m1823576579_gshared (); extern "C" void Component_GetComponentsInChildren_TisIl2CppObject_m3607171184_gshared (); extern "C" void Component_GetComponentsInChildren_TisIl2CppObject_m1263854297_gshared (); extern "C" void Component_GetComponentsInChildren_TisIl2CppObject_m1923109161_gshared (); extern "C" void Component_GetComponentsInChildren_TisIl2CppObject_m1992201622_gshared (); extern "C" void Component_GetComponentInParent_TisIl2CppObject_m2509612665_gshared (); extern "C" void Component_GetComponentsInParent_TisIl2CppObject_m2092455797_gshared (); extern "C" void Component_GetComponentsInParent_TisIl2CppObject_m1689132204_gshared (); extern "C" void Component_GetComponentsInParent_TisIl2CppObject_m1112546512_gshared (); extern "C" void Component_GetComponents_TisIl2CppObject_m1186222966_gshared (); extern "C" void Component_GetComponents_TisIl2CppObject_m3998315035_gshared (); extern "C" void GameObject_GetComponent_TisIl2CppObject_m2812611596_gshared (); extern "C" void GameObject_GetComponentInChildren_TisIl2CppObject_m327292296_gshared (); extern "C" void GameObject_GetComponentInChildren_TisIl2CppObject_m1362037227_gshared (); extern "C" void GameObject_GetComponents_TisIl2CppObject_m3618562997_gshared (); extern "C" void GameObject_GetComponents_TisIl2CppObject_m374334104_gshared (); extern "C" void GameObject_GetComponentsInChildren_TisIl2CppObject_m851581932_gshared (); extern "C" void GameObject_GetComponentsInChildren_TisIl2CppObject_m1244802713_gshared (); extern "C" void GameObject_GetComponentsInParent_TisIl2CppObject_m3757051886_gshared (); extern "C" void GameObject_GetComponentsInParent_TisIl2CppObject_m3479568873_gshared (); extern "C" void GameObject_AddComponent_TisIl2CppObject_m3813873105_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisIl2CppObject_m1450958222_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisIl2CppObject_m4188594588_gshared (); extern "C" void Mesh_SafeLength_TisIl2CppObject_m560662719_gshared (); extern "C" void Mesh_SetListForChannel_TisIl2CppObject_m2261448912_gshared (); extern "C" void Mesh_SetListForChannel_TisIl2CppObject_m4266778410_gshared (); extern "C" void Mesh_SetUvsImpl_TisIl2CppObject_m1356712218_gshared (); extern "C" void Resources_ConvertObjects_TisIl2CppObject_m2571720668_gshared (); extern "C" void Resources_GetBuiltinResource_TisIl2CppObject_m1023501484_gshared (); extern "C" void Object_Instantiate_TisIl2CppObject_m447919519_gshared (); extern "C" void Object_Instantiate_TisIl2CppObject_m3829784634_gshared (); extern "C" void Object_Instantiate_TisIl2CppObject_m4219963824_gshared (); extern "C" void Object_Instantiate_TisIl2CppObject_m1767088036_gshared (); extern "C" void Object_Instantiate_TisIl2CppObject_m1736742113_gshared (); extern "C" void Object_FindObjectsOfType_TisIl2CppObject_m1343658011_gshared (); extern "C" void Object_FindObjectOfType_TisIl2CppObject_m2967490724_gshared (); extern "C" void AttributeHelperEngine_GetCustomAttributeOfType_TisIl2CppObject_m581732473_gshared (); extern "C" void BaseInvokableCall_ThrowOnInvalidArg_TisIl2CppObject_m1349548392_gshared (); extern "C" void InvokableCall_1__ctor_m54675381_gshared (); extern "C" void InvokableCall_1__ctor_m833213021_gshared (); extern "C" void InvokableCall_1_add_Delegate_m4009721884_gshared (); extern "C" void InvokableCall_1_remove_Delegate_m527482931_gshared (); extern "C" void InvokableCall_1_Invoke_m1715547918_gshared (); extern "C" void InvokableCall_1_Find_m1325295794_gshared (); extern "C" void InvokableCall_2__ctor_m974169948_gshared (); extern "C" void InvokableCall_2_Invoke_m1071013389_gshared (); extern "C" void InvokableCall_2_Find_m1763382885_gshared (); extern "C" void InvokableCall_3__ctor_m3141607487_gshared (); extern "C" void InvokableCall_3_Invoke_m74557124_gshared (); extern "C" void InvokableCall_3_Find_m3470456112_gshared (); extern "C" void InvokableCall_4__ctor_m1096399974_gshared (); extern "C" void InvokableCall_4_Invoke_m1555001411_gshared (); extern "C" void InvokableCall_4_Find_m1467690987_gshared (); extern "C" void CachedInvokableCall_1__ctor_m79259589_gshared (); extern "C" void CachedInvokableCall_1_Invoke_m2401236944_gshared (); extern "C" void UnityAction_1__ctor_m2836997866_gshared (); extern "C" void UnityAction_1_Invoke_m1279802577_gshared (); extern "C" void UnityAction_1_BeginInvoke_m3462722079_gshared (); extern "C" void UnityAction_1_EndInvoke_m2822290096_gshared (); extern "C" void UnityEvent_1__ctor_m2073978020_gshared (); extern "C" void UnityEvent_1_AddListener_m22503421_gshared (); extern "C" void UnityEvent_1_RemoveListener_m4278264272_gshared (); extern "C" void UnityEvent_1_FindMethod_Impl_m2223850067_gshared (); extern "C" void UnityEvent_1_GetDelegate_m669290055_gshared (); extern "C" void UnityEvent_1_GetDelegate_m3098147632_gshared (); extern "C" void UnityEvent_1_Invoke_m838874366_gshared (); extern "C" void UnityAction_2__ctor_m622153369_gshared (); extern "C" void UnityAction_2_Invoke_m1994351568_gshared (); extern "C" void UnityAction_2_BeginInvoke_m3203769083_gshared (); extern "C" void UnityAction_2_EndInvoke_m4199296611_gshared (); extern "C" void UnityEvent_2__ctor_m3717034779_gshared (); extern "C" void UnityEvent_2_FindMethod_Impl_m2783251718_gshared (); extern "C" void UnityEvent_2_GetDelegate_m2147273130_gshared (); extern "C" void UnityAction_3__ctor_m3783439840_gshared (); extern "C" void UnityAction_3_Invoke_m1498227613_gshared (); extern "C" void UnityAction_3_BeginInvoke_m160302482_gshared (); extern "C" void UnityAction_3_EndInvoke_m1279075386_gshared (); extern "C" void UnityEvent_3__ctor_m3502631330_gshared (); extern "C" void UnityEvent_3_FindMethod_Impl_m1889846153_gshared (); extern "C" void UnityEvent_3_GetDelegate_m338681277_gshared (); extern "C" void UnityAction_4__ctor_m2053485839_gshared (); extern "C" void UnityAction_4_Invoke_m3312096275_gshared (); extern "C" void UnityAction_4_BeginInvoke_m3427746322_gshared (); extern "C" void UnityAction_4_EndInvoke_m3887055469_gshared (); extern "C" void UnityEvent_4__ctor_m3102731553_gshared (); extern "C" void UnityEvent_4_FindMethod_Impl_m4079512420_gshared (); extern "C" void UnityEvent_4_GetDelegate_m2704961864_gshared (); extern "C" void ExecuteEvents_ValidateEventData_TisIl2CppObject_m3838331218_gshared (); extern "C" void ExecuteEvents_Execute_TisIl2CppObject_m4168308247_gshared (); extern "C" void ExecuteEvents_ExecuteHierarchy_TisIl2CppObject_m2541874163_gshared (); extern "C" void ExecuteEvents_ShouldSendToComponent_TisIl2CppObject_m2998351876_gshared (); extern "C" void ExecuteEvents_GetEventList_TisIl2CppObject_m2127453215_gshared (); extern "C" void ExecuteEvents_CanHandleEvent_TisIl2CppObject_m1201779629_gshared (); extern "C" void ExecuteEvents_GetEventHandler_TisIl2CppObject_m3333041576_gshared (); extern "C" void EventFunction_1__ctor_m814090495_gshared (); extern "C" void EventFunction_1_Invoke_m2378823590_gshared (); extern "C" void EventFunction_1_BeginInvoke_m3064802067_gshared (); extern "C" void EventFunction_1_EndInvoke_m1238672169_gshared (); extern "C" void Dropdown_GetOrAddComponent_TisIl2CppObject_m2875934266_gshared (); extern "C" void SetPropertyUtility_SetClass_TisIl2CppObject_m3524554928_gshared (); extern "C" void LayoutGroup_SetProperty_TisIl2CppObject_m1703476175_gshared (); extern "C" void IndexedSet_1_get_Count_m2839545138_gshared (); extern "C" void IndexedSet_1_get_IsReadOnly_m1571858531_gshared (); extern "C" void IndexedSet_1_get_Item_m2560856298_gshared (); extern "C" void IndexedSet_1_set_Item_m3923255859_gshared (); extern "C" void IndexedSet_1__ctor_m2689707074_gshared (); extern "C" void IndexedSet_1_Add_m4044765907_gshared (); extern "C" void IndexedSet_1_AddUnique_m3246859944_gshared (); extern "C" void IndexedSet_1_Remove_m2685638878_gshared (); extern "C" void IndexedSet_1_GetEnumerator_m3646001838_gshared (); extern "C" void IndexedSet_1_System_Collections_IEnumerable_GetEnumerator_m3582353431_gshared (); extern "C" void IndexedSet_1_Clear_m2776064367_gshared (); extern "C" void IndexedSet_1_Contains_m4188067325_gshared (); extern "C" void IndexedSet_1_CopyTo_m91125111_gshared (); extern "C" void IndexedSet_1_IndexOf_m783474971_gshared (); extern "C" void IndexedSet_1_Insert_m676465416_gshared (); extern "C" void IndexedSet_1_RemoveAt_m2714142196_gshared (); extern "C" void IndexedSet_1_RemoveAll_m2736534958_gshared (); extern "C" void IndexedSet_1_Sort_m2938181397_gshared (); extern "C" void ListPool_1_Get_m529219189_gshared (); extern "C" void ListPool_1_Release_m1464559125_gshared (); extern "C" void ListPool_1__cctor_m1613652121_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m441310157_gshared (); extern "C" void ObjectPool_1_get_countAll_m4217365918_gshared (); extern "C" void ObjectPool_1_set_countAll_m1742773675_gshared (); extern "C" void ObjectPool_1_get_countActive_m2655657865_gshared (); extern "C" void ObjectPool_1_get_countInactive_m763736764_gshared (); extern "C" void ObjectPool_1__ctor_m1532275833_gshared (); extern "C" void ObjectPool_1_Get_m3724675538_gshared (); extern "C" void ObjectPool_1_Release_m1615270002_gshared (); extern "C" void UnityEvent_1_FindMethod_Impl_m4083384818_gshared (); extern "C" void UnityEvent_1_GetDelegate_m3311025800_gshared (); extern "C" void UnityEvent_1_FindMethod_Impl_m1178377679_gshared (); extern "C" void UnityEvent_1_GetDelegate_m2720691419_gshared (); extern "C" void UnityEvent_1_FindMethod_Impl_m3813546_gshared (); extern "C" void UnityEvent_1_GetDelegate_m2566156550_gshared (); extern "C" void UnityEvent_1_FindMethod_Impl_m3743240374_gshared (); extern "C" void UnityEvent_1_GetDelegate_m2856963016_gshared (); extern "C" void UnityEvent_1_FindMethod_Impl_m2323626861_gshared (); extern "C" void UnityEvent_1_GetDelegate_m820458489_gshared (); extern "C" void Dictionary_2__ctor_m3043033341_gshared (); extern "C" void Dictionary_2_Add_m790520409_gshared (); extern "C" void Dictionary_2_TryGetValue_m2330758874_gshared (); extern "C" void GenericComparer_1__ctor_m474482338_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m603915962_gshared (); extern "C" void GenericComparer_1__ctor_m4106585959_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m2311357775_gshared (); extern "C" void Nullable_1__ctor_m796575255_AdjustorThunk (); extern "C" void Nullable_1_get_HasValue_m3663286555_AdjustorThunk (); extern "C" void Nullable_1_get_Value_m1743067844_AdjustorThunk (); extern "C" void GenericComparer_1__ctor_m3575096182_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m2595781006_gshared (); extern "C" void CustomAttributeData_UnboxValues_TisCustomAttributeTypedArgument_t1498197914_m2561215702_gshared (); extern "C" void Array_AsReadOnly_TisCustomAttributeTypedArgument_t1498197914_m2855930084_gshared (); extern "C" void CustomAttributeData_UnboxValues_TisCustomAttributeNamedArgument_t94157543_m2789115353_gshared (); extern "C" void Array_AsReadOnly_TisCustomAttributeNamedArgument_t94157543_m2935638619_gshared (); extern "C" void GenericComparer_1__ctor_m221205314_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m1269284954_gshared (); extern "C" void Dictionary_2__ctor_m3313899087_gshared (); extern "C" void Dictionary_2_Add_m3435012856_gshared (); extern "C" void Array_BinarySearch_TisInt32_t2071877448_m1538339240_gshared (); extern "C" void CachedInvokableCall_1__ctor_m3238306320_gshared (); extern "C" void CachedInvokableCall_1__ctor_m127496184_gshared (); extern "C" void CachedInvokableCall_1__ctor_m2563320212_gshared (); extern "C" void Dictionary_2_TryGetValue_m2140744741_gshared (); extern "C" void Dictionary_2_set_Item_m3180425769_gshared (); extern "C" void Dictionary_2__ctor_m1868603968_gshared (); extern "C" void Mesh_SafeLength_TisInt32_t2071877448_m2504367186_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisVector3_t2243707580_m2367580537_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisVector4_t2243707581_m295947442_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisVector2_t2243707579_m3651973716_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisColor32_t874517518_m2030100417_gshared (); extern "C" void Mesh_SetListForChannel_TisVector3_t2243707580_m2514561521_gshared (); extern "C" void Mesh_SetListForChannel_TisVector4_t2243707581_m3238986708_gshared (); extern "C" void Mesh_SetListForChannel_TisColor32_t874517518_m1056672865_gshared (); extern "C" void Mesh_SetUvsImpl_TisVector2_t2243707579_m3939959910_gshared (); extern "C" void List_1__ctor_m1598946593_gshared (); extern "C" void List_1_Add_m688682013_gshared (); extern "C" void UnityEvent_1_Invoke_m1903741765_gshared (); extern "C" void Func_2__ctor_m1354888807_gshared (); extern "C" void UnityEvent_1__ctor_m2948712401_gshared (); extern "C" void UnityAction_2_Invoke_m1528820797_gshared (); extern "C" void UnityAction_1_Invoke_m3061904506_gshared (); extern "C" void UnityAction_2_Invoke_m670567184_gshared (); extern "C" void Action_2_Invoke_m352317182_gshared (); extern "C" void Action_1_Invoke_m3662000152_gshared (); extern "C" void Action_2__ctor_m946854823_gshared (); extern "C" void List_1__ctor_m2168280176_gshared (); extern "C" void List_1__ctor_m3698273726_gshared (); extern "C" void List_1__ctor_m2766376432_gshared (); extern "C" void List_1__ctor_m2989057823_gshared (); extern "C" void List_1_get_Item_m3435089276_gshared (); extern "C" void List_1_get_Count_m3279745867_gshared (); extern "C" void List_1_Clear_m392100656_gshared (); extern "C" void List_1_Sort_m107990965_gshared (); extern "C" void Comparison_1__ctor_m1414815602_gshared (); extern "C" void List_1_Add_m2123823603_gshared (); extern "C" void Comparison_1__ctor_m1178069812_gshared (); extern "C" void Array_Sort_TisRaycastHit_t87180320_m3369192280_gshared (); extern "C" void Dictionary_2_Add_m1296007576_gshared (); extern "C" void Dictionary_2_Remove_m2771612799_gshared (); extern "C" void Dictionary_2_get_Values_m41521588_gshared (); extern "C" void ValueCollection_GetEnumerator_m520082450_gshared (); extern "C" void Enumerator_get_Current_m3006348140_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m1091131935_AdjustorThunk (); extern "C" void Enumerator_Dispose_m2369319718_AdjustorThunk (); extern "C" void Dictionary_2_Clear_m899854001_gshared (); extern "C" void Dictionary_2_GetEnumerator_m3404768274_gshared (); extern "C" void Enumerator_get_Current_m2754383612_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Value_m2897691047_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Key_m1537018582_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2770956757_AdjustorThunk (); extern "C" void Enumerator_Dispose_m2243145188_AdjustorThunk (); extern "C" void KeyValuePair_2_ToString_m1391611625_AdjustorThunk (); extern "C" void SetPropertyUtility_SetStruct_TisAspectMode_t1166448724_m249129121_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisSingle_t2076509932_m3849235084_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisFitMode_t4030874534_m2608169783_gshared (); extern "C" void UnityEvent_1_Invoke_m2213115825_gshared (); extern "C" void UnityEvent_1_AddListener_m903508446_gshared (); extern "C" void UnityEvent_1__ctor_m117795578_gshared (); extern "C" void UnityEvent_1_Invoke_m1298892870_gshared (); extern "C" void UnityEvent_1_AddListener_m2377847221_gshared (); extern "C" void UnityEvent_1__ctor_m29611311_gshared (); extern "C" void TweenRunner_1__ctor_m468841327_gshared (); extern "C" void TweenRunner_1_Init_m3983200950_gshared (); extern "C" void UnityAction_1__ctor_m1968084291_gshared (); extern "C" void UnityEvent_1_AddListener_m1708363187_gshared (); extern "C" void UnityAction_1__ctor_m2172708761_gshared (); extern "C" void TweenRunner_1_StartTween_m3792842064_gshared (); extern "C" void TweenRunner_1__ctor_m3259272810_gshared (); extern "C" void TweenRunner_1_Init_m1193845233_gshared (); extern "C" void TweenRunner_1_StopTween_m3552027891_gshared (); extern "C" void UnityAction_1__ctor_m3329809356_gshared (); extern "C" void TweenRunner_1_StartTween_m577248035_gshared (); extern "C" void LayoutGroup_SetProperty_TisCorner_t1077473318_m1354090789_gshared (); extern "C" void LayoutGroup_SetProperty_TisAxis_t1431825778_m2174054513_gshared (); extern "C" void LayoutGroup_SetProperty_TisVector2_t2243707579_m3010153489_gshared (); extern "C" void LayoutGroup_SetProperty_TisConstraint_t3558160636_m4209429127_gshared (); extern "C" void LayoutGroup_SetProperty_TisInt32_t2071877448_m2000481300_gshared (); extern "C" void LayoutGroup_SetProperty_TisSingle_t2076509932_m3100320750_gshared (); extern "C" void LayoutGroup_SetProperty_TisBoolean_t3825574718_m2764071576_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisType_t3352948571_m734942550_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisBoolean_t3825574718_m752301298_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisFillMethod_t1640962579_m1867757822_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisInt32_t2071877448_m2056826294_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisContentType_t1028629049_m3028008706_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisLineType_t2931319356_m3529428685_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisInputType_t1274231802_m694610473_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisTouchScreenKeyboardType_t875112366_m524584446_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisCharacterValidation_t3437478890_m2815007153_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisChar_t3454481338_m2333420724_gshared (); extern "C" void LayoutGroup_SetProperty_TisTextAnchor_t112990806_m848706582_gshared (); extern "C" void Func_2__ctor_m1874497973_gshared (); extern "C" void Func_2_Invoke_m4121137703_gshared (); extern "C" void UnityEvent_1_Invoke_m667974834_gshared (); extern "C" void UnityEvent_1__ctor_m4051141261_gshared (); extern "C" void ListPool_1_Get_m4215629480_gshared (); extern "C" void List_1_get_Count_m2390119157_gshared (); extern "C" void List_1_get_Capacity_m3497182270_gshared (); extern "C" void List_1_set_Capacity_m3121007037_gshared (); extern "C" void ListPool_1_Release_m782571048_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisDirection_t3696775921_m2182046118_gshared (); extern "C" void UnityEvent_1_RemoveListener_m2564825698_gshared (); extern "C" void UnityEvent_1_Invoke_m1533100983_gshared (); extern "C" void UnityEvent_1__ctor_m3317039790_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisNavigation_t1571958496_m1169349290_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisTransition_t605142169_m3831531952_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisColorBlock_t2652774230_m2085520896_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisSpriteState_t1353336012_m2898060836_gshared (); extern "C" void List_1_get_Item_m2318061838_gshared (); extern "C" void List_1_Add_m3591975577_gshared (); extern "C" void List_1_set_Item_m1747579297_gshared (); extern "C" void SetPropertyUtility_SetStruct_TisDirection_t1525323322_m3913288783_gshared (); extern "C" void ListPool_1_Get_m2998644518_gshared (); extern "C" void ListPool_1_Get_m3357896252_gshared (); extern "C" void ListPool_1_Get_m3002130343_gshared (); extern "C" void ListPool_1_Get_m3009093805_gshared (); extern "C" void ListPool_1_Get_m3809147792_gshared (); extern "C" void List_1_AddRange_m2878063899_gshared (); extern "C" void List_1_AddRange_m1309698249_gshared (); extern "C" void List_1_AddRange_m4255157622_gshared (); extern "C" void List_1_AddRange_m3345533268_gshared (); extern "C" void List_1_AddRange_m2567809379_gshared (); extern "C" void List_1_Clear_m576262818_gshared (); extern "C" void List_1_Clear_m3889887144_gshared (); extern "C" void List_1_Clear_m1402865383_gshared (); extern "C" void List_1_Clear_m981597149_gshared (); extern "C" void List_1_Clear_m3644677550_gshared (); extern "C" void List_1_get_Count_m4027941115_gshared (); extern "C" void List_1_get_Count_m852068579_gshared (); extern "C" void List_1_get_Item_m2503489122_gshared (); extern "C" void List_1_get_Item_m2079323980_gshared (); extern "C" void List_1_get_Item_m2892902305_gshared (); extern "C" void List_1_get_Item_m3157283227_gshared (); extern "C" void List_1_set_Item_m3393612627_gshared (); extern "C" void List_1_set_Item_m1209652185_gshared (); extern "C" void List_1_set_Item_m1027817326_gshared (); extern "C" void List_1_set_Item_m1431784996_gshared (); extern "C" void ListPool_1_Release_m4118150756_gshared (); extern "C" void ListPool_1_Release_m3047738410_gshared (); extern "C" void ListPool_1_Release_m2208096831_gshared (); extern "C" void ListPool_1_Release_m1119005941_gshared (); extern "C" void ListPool_1_Release_m3716853512_gshared (); extern "C" void List_1_Add_m2338641291_gshared (); extern "C" void List_1_Add_m2405105969_gshared (); extern "C" void List_1_Add_m148291600_gshared (); extern "C" void List_1_Add_m1346004230_gshared (); extern "C" void Array_get_swapper_TisInt32_t2071877448_m2837069166_gshared (); extern "C" void Array_get_swapper_TisCustomAttributeNamedArgument_t94157543_m752138038_gshared (); extern "C" void Array_get_swapper_TisCustomAttributeTypedArgument_t1498197914_m2780757375_gshared (); extern "C" void Array_get_swapper_TisAnimatorClipInfo_t3905751349_m2927251609_gshared (); extern "C" void Array_get_swapper_TisColor32_t874517518_m1026880462_gshared (); extern "C" void Array_get_swapper_TisRaycastResult_t21186376_m2862975112_gshared (); extern "C" void Array_get_swapper_TisUICharInfo_t3056636800_m2619726852_gshared (); extern "C" void Array_get_swapper_TisUILineInfo_t3621277874_m2039324598_gshared (); extern "C" void Array_get_swapper_TisUIVertex_t1204258818_m1078858558_gshared (); extern "C" void Array_get_swapper_TisVector2_t2243707579_m97226333_gshared (); extern "C" void Array_get_swapper_TisVector3_t2243707580_m97120700_gshared (); extern "C" void Array_get_swapper_TisVector4_t2243707581_m97441823_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisTableRange_t2011406615_m605506746_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisClientCertificateType_t4001384466_m516486384_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisBoolean_t3825574718_m1175179714_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisByte_t3683104436_m350396182_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisChar_t3454481338_m1444673620_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisDictionaryEntry_t3048875398_m1859720213_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisLink_t865133271_m667902490_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t3749587448_m1874078099_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t1174980068_m650645929_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t3716250094_m1585406955_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t38854645_m1283462310_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisLink_t2723257478_m2184159968_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisSlot_t2022531261_m3441677528_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisSlot_t2267560602_m3170835895_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisDateTime_t693205669_m2893922191_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisDecimal_t724701077_m4054637909_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisDouble_t4078015681_m2262383923_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisInt16_t4041245914_m698926112_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisInt32_t2071877448_m2152509106_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisInt64_t909078037_m1425723755_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisIntPtr_t_m3256777387_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisCustomAttributeNamedArgument_t94157543_m1388766122_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisCustomAttributeTypedArgument_t1498197914_m1722418503_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisLabelData_t3712112744_m3529421223_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisLabelFixup_t4090909514_m1969234117_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisILTokenInfo_t149559338_m1258883752_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisParameterModifier_t1820634920_m4169368065_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisResourceCacheItem_t333236149_m1769941464_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisResourceInfo_t3933049236_m3863819501_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisTypeTag_t141209596_m3657312010_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisSByte_t454417549_m2454261755_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisX509ChainStatus_t4278378721_m1902349847_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisSingle_t2076509932_m2118561348_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisMark_t2724874473_m1640201705_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisTimeSpan_t3430258949_m802614527_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUInt16_t986882611_m510319131_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUInt32_t2149682021_m672455245_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUInt64_t2909196914_m4127618946_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUriScheme_t1876590943_m372972826_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisAnimatorClipInfo_t3905751349_m1340273293_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisColor32_t874517518_m2818328910_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisContactPoint_t1376425630_m95840772_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisContactPoint2D_t3659330976_m474619266_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisRaycastResult_t21186376_m3188614988_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisKeyframe_t1449471340_m1232248382_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisRaycastHit_t87180320_m3453842218_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisRaycastHit2D_t4063908774_m2599798564_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisHitInfo_t1761367055_m4024109938_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisGcAchievementData_t1754866149_m72433171_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisGcScoreData_t3676783238_m584889850_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisContentType_t1028629049_m2321684690_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUICharInfo_t3056636800_m2001435744_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUILineInfo_t3621277874_m1175659630_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisUIVertex_t1204258818_m2130850774_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisVector2_t2243707579_m3625698589_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisVector3_t2243707580_m3625701788_gshared (); extern "C" void Array_InternalArray__ICollection_Contains_TisVector4_t2243707581_m3625700767_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisTableRange_t2011406615_m1320911061_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisClientCertificateType_t4001384466_m3300855061_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisBoolean_t3825574718_m3803418347_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisByte_t3683104436_m3735997529_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisChar_t3454481338_m1562002771_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisDictionaryEntry_t3048875398_m3558222834_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisLink_t865133271_m1984184141_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t3749587448_m3122245402_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t1174980068_m2768765894_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t3716250094_m2566517826_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t38854645_m3060436673_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisLink_t2723257478_m3503448455_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisSlot_t2022531261_m699871927_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisSlot_t2267560602_m3192197784_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisDateTime_t693205669_m1275668216_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisDecimal_t724701077_m12647962_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisDouble_t4078015681_m2017336956_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisInt16_t4041245914_m3380378727_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisInt32_t2071877448_m538990333_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisInt64_t909078037_m2653583130_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisIntPtr_t_m1708878780_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisCustomAttributeNamedArgument_t94157543_m2838387005_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisCustomAttributeTypedArgument_t1498197914_m2998290920_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisLabelData_t3712112744_m3858576926_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisLabelFixup_t4090909514_m2711148714_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisILTokenInfo_t149559338_m1523907845_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisParameterModifier_t1820634920_m3755172300_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisResourceCacheItem_t333236149_m849893455_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisResourceInfo_t3933049236_m1768394498_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisTypeTag_t141209596_m3156842467_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisSByte_t454417549_m2474211570_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisX509ChainStatus_t4278378721_m4127982424_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisSingle_t2076509932_m2568053761_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisMark_t2724874473_m175120702_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisTimeSpan_t3430258949_m694017704_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUInt16_t986882611_m65494986_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUInt32_t2149682021_m4198326168_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUInt64_t2909196914_m679263627_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUriScheme_t1876590943_m1953022829_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisAnimatorClipInfo_t3905751349_m2545295962_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisColor32_t874517518_m2452332023_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisContactPoint_t1376425630_m2242111467_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisContactPoint2D_t3659330976_m1645131909_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisRaycastResult_t21186376_m3967816033_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisKeyframe_t1449471340_m595216113_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisRaycastHit_t87180320_m776345349_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisRaycastHit2D_t4063908774_m2012629411_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisHitInfo_t1761367055_m2552360917_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisGcAchievementData_t1754866149_m591618908_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisGcScoreData_t3676783238_m3295322005_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisContentType_t1028629049_m3085152315_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUICharInfo_t3056636800_m2470648901_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUILineInfo_t3621277874_m3091378175_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisUIVertex_t1204258818_m2516695631_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisVector2_t2243707579_m3881494282_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisVector3_t2243707580_m3881497481_gshared (); extern "C" void Array_InternalArray__ICollection_Remove_TisVector4_t2243707581_m3881492104_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisTableRange_t2011406615_m3936018499_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisClientCertificateType_t4001384466_m951072011_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisBoolean_t3825574718_m798244337_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisByte_t3683104436_m308473235_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisChar_t3454481338_m2563195437_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisDictionaryEntry_t3048875398_m3498834924_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisLink_t865133271_m1714996391_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t3749587448_m3391106932_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t1174980068_m1377303660_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t3716250094_m3952087432_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t38854645_m4187507223_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisLink_t2723257478_m1351072573_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisSlot_t2022531261_m1481110705_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisSlot_t2267560602_m2248816486_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisDateTime_t693205669_m2991612046_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisDecimal_t724701077_m1936895112_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisDouble_t4078015681_m3371235186_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisInt16_t4041245914_m937433965_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisInt32_t2071877448_m372781915_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisInt64_t909078037_m1219751804_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisIntPtr_t_m4214818898_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisCustomAttributeNamedArgument_t94157543_m2704432855_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisCustomAttributeTypedArgument_t1498197914_m3011406326_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisLabelData_t3712112744_m3468606260_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisLabelFixup_t4090909514_m4152992772_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisILTokenInfo_t149559338_m2281833111_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisParameterModifier_t1820634920_m892071030_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisResourceCacheItem_t333236149_m2870081593_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisResourceInfo_t3933049236_m3580551168_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisTypeTag_t141209596_m3168560637_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisSByte_t454417549_m2988041824_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisX509ChainStatus_t4278378721_m756165474_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisSingle_t2076509932_m1753904423_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisMark_t2724874473_m1968202824_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisTimeSpan_t3430258949_m251517730_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUInt16_t986882611_m3665860884_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUInt32_t2149682021_m3828001486_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUInt64_t2909196914_m2421991169_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUriScheme_t1876590943_m10836459_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisAnimatorClipInfo_t3905751349_m1777824516_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisColor32_t874517518_m2198639025_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisContactPoint_t1376425630_m1828052333_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisContactPoint2D_t3659330976_m478005999_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisRaycastResult_t21186376_m2914643003_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisKeyframe_t1449471340_m3949799719_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisRaycastHit_t87180320_m1059910191_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisRaycastHit2D_t4063908774_m3870155125_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisHitInfo_t1761367055_m2486283755_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisGcAchievementData_t1754866149_m4000233314_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisGcScoreData_t3676783238_m2991199875_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisContentType_t1028629049_m803524693_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUICharInfo_t3056636800_m1496435515_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUILineInfo_t3621277874_m1353655585_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisUIVertex_t1204258818_m1520933201_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisVector2_t2243707579_m829381124_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisVector3_t2243707580_m829381027_gshared (); extern "C" void Array_InternalArray__IEnumerable_GetEnumerator_TisVector4_t2243707581_m829381058_gshared (); extern "C" void Array_BinarySearch_TisInt32_t2071877448_m51233948_gshared (); extern "C" void Array_compare_TisInt32_t2071877448_m840310202_gshared (); extern "C" void Array_compare_TisCustomAttributeNamedArgument_t94157543_m3453821210_gshared (); extern "C" void Array_compare_TisCustomAttributeTypedArgument_t1498197914_m3141177147_gshared (); extern "C" void Array_compare_TisAnimatorClipInfo_t3905751349_m1923868157_gshared (); extern "C" void Array_compare_TisColor32_t874517518_m3842009370_gshared (); extern "C" void Array_compare_TisRaycastResult_t21186376_m960388468_gshared (); extern "C" void Array_compare_TisUICharInfo_t3056636800_m2861112472_gshared (); extern "C" void Array_compare_TisUILineInfo_t3621277874_m2798413554_gshared (); extern "C" void Array_compare_TisUIVertex_t1204258818_m3653401826_gshared (); extern "C" void Array_compare_TisVector2_t2243707579_m1090169645_gshared (); extern "C" void Array_compare_TisVector3_t2243707580_m3709184876_gshared (); extern "C" void Array_compare_TisVector4_t2243707581_m1382942891_gshared (); extern "C" void Array_IndexOf_TisInt32_t2071877448_m4287366004_gshared (); extern "C" void Array_IndexOf_TisCustomAttributeNamedArgument_t94157543_m745056346_gshared (); extern "C" void Array_IndexOf_TisCustomAttributeNamedArgument_t94157543_m2205974312_gshared (); extern "C" void Array_IndexOf_TisCustomAttributeTypedArgument_t1498197914_m3666284377_gshared (); extern "C" void Array_IndexOf_TisCustomAttributeTypedArgument_t1498197914_m1984749829_gshared (); extern "C" void Array_IndexOf_TisAnimatorClipInfo_t3905751349_m4033344779_gshared (); extern "C" void Array_IndexOf_TisColor32_t874517518_m1567378308_gshared (); extern "C" void Array_IndexOf_TisRaycastResult_t21186376_m63591914_gshared (); extern "C" void Array_IndexOf_TisUICharInfo_t3056636800_m2172993634_gshared (); extern "C" void Array_IndexOf_TisUILineInfo_t3621277874_m662734736_gshared (); extern "C" void Array_IndexOf_TisUIVertex_t1204258818_m613887160_gshared (); extern "C" void Array_IndexOf_TisVector2_t2243707579_m2794219323_gshared (); extern "C" void Array_IndexOf_TisVector3_t2243707580_m3496905818_gshared (); extern "C" void Array_IndexOf_TisVector4_t2243707581_m3031135093_gshared (); extern "C" void Array_InternalArray__IndexOf_TisTableRange_t2011406615_m146262996_gshared (); extern "C" void Array_InternalArray__IndexOf_TisClientCertificateType_t4001384466_m1168139450_gshared (); extern "C" void Array_InternalArray__IndexOf_TisBoolean_t3825574718_m4172864480_gshared (); extern "C" void Array_InternalArray__IndexOf_TisByte_t3683104436_m3605266236_gshared (); extern "C" void Array_InternalArray__IndexOf_TisChar_t3454481338_m4155008006_gshared (); extern "C" void Array_InternalArray__IndexOf_TisDictionaryEntry_t3048875398_m913595855_gshared (); extern "C" void Array_InternalArray__IndexOf_TisLink_t865133271_m3612939760_gshared (); extern "C" void Array_InternalArray__IndexOf_TisKeyValuePair_2_t3749587448_m3725528449_gshared (); extern "C" void Array_InternalArray__IndexOf_TisKeyValuePair_2_t1174980068_m3823411479_gshared (); extern "C" void Array_InternalArray__IndexOf_TisKeyValuePair_2_t3716250094_m143738709_gshared (); extern "C" void Array_InternalArray__IndexOf_TisKeyValuePair_2_t38854645_m2860958992_gshared (); extern "C" void Array_InternalArray__IndexOf_TisLink_t2723257478_m86070942_gshared (); extern "C" void Array_InternalArray__IndexOf_TisSlot_t2022531261_m2700677338_gshared (); extern "C" void Array_InternalArray__IndexOf_TisSlot_t2267560602_m1912863273_gshared (); extern "C" void Array_InternalArray__IndexOf_TisDateTime_t693205669_m2327436641_gshared (); extern "C" void Array_InternalArray__IndexOf_TisDecimal_t724701077_m1918961139_gshared (); extern "C" void Array_InternalArray__IndexOf_TisDouble_t4078015681_m905571285_gshared (); extern "C" void Array_InternalArray__IndexOf_TisInt16_t4041245914_m1619355230_gshared (); extern "C" void Array_InternalArray__IndexOf_TisInt32_t2071877448_m1457219116_gshared (); extern "C" void Array_InternalArray__IndexOf_TisInt64_t909078037_m617406809_gshared (); extern "C" void Array_InternalArray__IndexOf_TisIntPtr_t_m1629926061_gshared (); extern "C" void Array_InternalArray__IndexOf_TisCustomAttributeNamedArgument_t94157543_m331861728_gshared (); extern "C" void Array_InternalArray__IndexOf_TisCustomAttributeTypedArgument_t1498197914_m2918677849_gshared (); extern "C" void Array_InternalArray__IndexOf_TisLabelData_t3712112744_m666782177_gshared (); extern "C" void Array_InternalArray__IndexOf_TisLabelFixup_t4090909514_m2939738943_gshared (); extern "C" void Array_InternalArray__IndexOf_TisILTokenInfo_t149559338_m3923618094_gshared (); extern "C" void Array_InternalArray__IndexOf_TisParameterModifier_t1820634920_m2828848595_gshared (); extern "C" void Array_InternalArray__IndexOf_TisResourceCacheItem_t333236149_m761772858_gshared (); extern "C" void Array_InternalArray__IndexOf_TisResourceInfo_t3933049236_m461837835_gshared (); extern "C" void Array_InternalArray__IndexOf_TisTypeTag_t141209596_m2882894956_gshared (); extern "C" void Array_InternalArray__IndexOf_TisSByte_t454417549_m1427585061_gshared (); extern "C" void Array_InternalArray__IndexOf_TisX509ChainStatus_t4278378721_m1338369069_gshared (); extern "C" void Array_InternalArray__IndexOf_TisSingle_t2076509932_m2151846718_gshared (); extern "C" void Array_InternalArray__IndexOf_TisMark_t2724874473_m616231507_gshared (); extern "C" void Array_InternalArray__IndexOf_TisTimeSpan_t3430258949_m3976593173_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUInt16_t986882611_m390127593_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUInt32_t2149682021_m3231515987_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUInt64_t2909196914_m3958307360_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUriScheme_t1876590943_m3463911316_gshared (); extern "C" void Array_InternalArray__IndexOf_TisAnimatorClipInfo_t3905751349_m3532816999_gshared (); extern "C" void Array_InternalArray__IndexOf_TisColor32_t874517518_m1119164896_gshared (); extern "C" void Array_InternalArray__IndexOf_TisContactPoint_t1376425630_m3651364246_gshared (); extern "C" void Array_InternalArray__IndexOf_TisContactPoint2D_t3659330976_m3961643896_gshared (); extern "C" void Array_InternalArray__IndexOf_TisRaycastResult_t21186376_m447540194_gshared (); extern "C" void Array_InternalArray__IndexOf_TisKeyframe_t1449471340_m3989187112_gshared (); extern "C" void Array_InternalArray__IndexOf_TisRaycastHit_t87180320_m503997920_gshared (); extern "C" void Array_InternalArray__IndexOf_TisRaycastHit2D_t4063908774_m3739817942_gshared (); extern "C" void Array_InternalArray__IndexOf_TisHitInfo_t1761367055_m2163456428_gshared (); extern "C" void Array_InternalArray__IndexOf_TisGcAchievementData_t1754866149_m1795849205_gshared (); extern "C" void Array_InternalArray__IndexOf_TisGcScoreData_t3676783238_m827650132_gshared (); extern "C" void Array_InternalArray__IndexOf_TisContentType_t1028629049_m822201172_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUICharInfo_t3056636800_m726958282_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUILineInfo_t3621277874_m698592736_gshared (); extern "C" void Array_InternalArray__IndexOf_TisUIVertex_t1204258818_m3231760648_gshared (); extern "C" void Array_InternalArray__IndexOf_TisVector2_t2243707579_m2867582359_gshared (); extern "C" void Array_InternalArray__IndexOf_TisVector3_t2243707580_m3949311538_gshared (); extern "C" void Array_InternalArray__IndexOf_TisVector4_t2243707581_m752986485_gshared (); extern "C" void Mesh_SafeLength_TisColor32_t874517518_m2265151750_gshared (); extern "C" void Mesh_SafeLength_TisVector2_t2243707579_m193299961_gshared (); extern "C" void Mesh_SafeLength_TisVector3_t2243707580_m1796604504_gshared (); extern "C" void Mesh_SafeLength_TisVector4_t2243707581_m4187164855_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisTableRange_t2011406615_m147373358_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisClientCertificateType_t4001384466_m3960028240_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisBoolean_t3825574718_m1009318882_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisByte_t3683104436_m3112489302_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisChar_t3454481338_m422084244_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisDictionaryEntry_t3048875398_m279246399_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisLink_t865133271_m2609930362_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t3749587448_m3161229013_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t1174980068_m2120831431_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t3716250094_m2381539361_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t38854645_m1634372890_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisLink_t2723257478_m1373760916_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisSlot_t2022531261_m2082526552_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisSlot_t2267560602_m2838183157_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisDateTime_t693205669_m3559987213_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisDecimal_t724701077_m2457636275_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisDouble_t4078015681_m280043633_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisInt16_t4041245914_m321723604_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisInt32_t2071877448_m1775306598_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisInt64_t909078037_m3889909773_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisIntPtr_t_m2379879145_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisCustomAttributeNamedArgument_t94157543_m1003067274_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisCustomAttributeTypedArgument_t1498197914_m3260005285_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisLabelData_t3712112744_m259038877_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisLabelFixup_t4090909514_m3465405039_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisILTokenInfo_t149559338_m1602260596_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisParameterModifier_t1820634920_m2029930691_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisResourceCacheItem_t333236149_m1151081240_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisResourceInfo_t3933049236_m3010906827_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisTypeTag_t141209596_m1991820054_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisSByte_t454417549_m46595441_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisX509ChainStatus_t4278378721_m3095000705_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisSingle_t2076509932_m3852760964_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisMark_t2724874473_m1613484179_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisTimeSpan_t3430258949_m2779284617_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUInt16_t986882611_m2791161149_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUInt32_t2149682021_m2629016323_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUInt64_t2909196914_m2516003202_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUriScheme_t1876590943_m3218110478_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisAnimatorClipInfo_t3905751349_m2862668439_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisColor32_t874517518_m1456673850_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisContactPoint_t1376425630_m1442223012_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisContactPoint2D_t3659330976_m1781705858_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisRaycastResult_t21186376_m4116652504_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisKeyframe_t1449471340_m887263954_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisRaycastHit_t87180320_m1721799754_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisRaycastHit2D_t4063908774_m2384758116_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisHitInfo_t1761367055_m2956071622_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisGcAchievementData_t1754866149_m653743601_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisGcScoreData_t3676783238_m1766887566_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisContentType_t1028629049_m2984242302_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUICharInfo_t3056636800_m968274080_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUILineInfo_t3621277874_m3806648986_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisUIVertex_t1204258818_m3869382594_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisVector2_t2243707579_m698576071_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisVector3_t2243707580_m698577096_gshared (); extern "C" void Array_InternalArray__ICollection_Add_TisVector4_t2243707581_m698578249_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisTableRange_t2011406615_m2322141712_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisClientCertificateType_t4001384466_m4065173814_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisBoolean_t3825574718_m2622957236_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisByte_t3683104436_m2871066554_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisChar_t3454481338_m1048462504_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisDictionaryEntry_t3048875398_m202302843_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisLink_t865133271_m3490450572_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t3749587448_m2750720485_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t1174980068_m1818152223_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t3716250094_m1957637553_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t38854645_m1078770380_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisLink_t2723257478_m3810551200_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisSlot_t2022531261_m1636166140_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisSlot_t2267560602_m1792475781_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisDateTime_t693205669_m939833053_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisDecimal_t724701077_m1087621311_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisDouble_t4078015681_m3168776657_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisInt16_t4041245914_m626895050_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisInt32_t2071877448_m984622488_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisInt64_t909078037_m1678621661_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisIntPtr_t_m145182641_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisCustomAttributeNamedArgument_t94157543_m171683372_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisCustomAttributeTypedArgument_t1498197914_m3911115093_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisLabelData_t3712112744_m2562347645_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisLabelFixup_t4090909514_m2060561655_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisILTokenInfo_t149559338_m397181802_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisParameterModifier_t1820634920_m4127516211_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisResourceCacheItem_t333236149_m1448974100_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisResourceInfo_t3933049236_m285508839_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisTypeTag_t141209596_m1863343744_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisSByte_t454417549_m1642937985_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisX509ChainStatus_t4278378721_m3789804937_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisSingle_t2076509932_m2556932368_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisMark_t2724874473_m1764726075_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisTimeSpan_t3430258949_m1634642441_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUInt16_t986882611_m3228377237_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUInt32_t2149682021_m691607851_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUInt64_t2909196914_m1574499494_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUriScheme_t1876590943_m239032216_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisAnimatorClipInfo_t3905751349_m2458580947_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisColor32_t874517518_m379086718_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisContactPoint_t1376425630_m707608562_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisContactPoint2D_t3659330976_m2258758356_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisRaycastResult_t21186376_m4113964166_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisKeyframe_t1449471340_m341576764_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisRaycastHit_t87180320_m1056450692_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisRaycastHit2D_t4063908774_m3837098618_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisHitInfo_t1761367055_m82632370_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisGcAchievementData_t1754866149_m2130909753_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisGcScoreData_t3676783238_m850113648_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisContentType_t1028629049_m330597634_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUICharInfo_t3056636800_m2132994790_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUILineInfo_t3621277874_m2142954044_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisUIVertex_t1204258818_m3361613612_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisVector2_t2243707579_m3908108199_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisVector3_t2243707580_m509487340_gshared (); extern "C" void Array_InternalArray__ICollection_CopyTo_TisVector4_t2243707581_m3540791817_gshared (); extern "C" void Array_InternalArray__Insert_TisTableRange_t2011406615_m933045409_gshared (); extern "C" void Array_InternalArray__Insert_TisClientCertificateType_t4001384466_m2638589713_gshared (); extern "C" void Array_InternalArray__Insert_TisBoolean_t3825574718_m1732360951_gshared (); extern "C" void Array_InternalArray__Insert_TisByte_t3683104436_m3821216761_gshared (); extern "C" void Array_InternalArray__Insert_TisChar_t3454481338_m419374979_gshared (); extern "C" void Array_InternalArray__Insert_TisDictionaryEntry_t3048875398_m3561038296_gshared (); extern "C" void Array_InternalArray__Insert_TisLink_t865133271_m1711225145_gshared (); extern "C" void Array_InternalArray__Insert_TisKeyValuePair_2_t3749587448_m3572613214_gshared (); extern "C" void Array_InternalArray__Insert_TisKeyValuePair_2_t1174980068_m2464431954_gshared (); extern "C" void Array_InternalArray__Insert_TisKeyValuePair_2_t3716250094_m3232467606_gshared (); extern "C" void Array_InternalArray__Insert_TisKeyValuePair_2_t38854645_m211413533_gshared (); extern "C" void Array_InternalArray__Insert_TisLink_t2723257478_m822653735_gshared (); extern "C" void Array_InternalArray__Insert_TisSlot_t2022531261_m2629734575_gshared (); extern "C" void Array_InternalArray__Insert_TisSlot_t2267560602_m1862001206_gshared (); extern "C" void Array_InternalArray__Insert_TisDateTime_t693205669_m1484996356_gshared (); extern "C" void Array_InternalArray__Insert_TisDecimal_t724701077_m1429254816_gshared (); extern "C" void Array_InternalArray__Insert_TisDouble_t4078015681_m2142805648_gshared (); extern "C" void Array_InternalArray__Insert_TisInt16_t4041245914_m371511339_gshared (); extern "C" void Array_InternalArray__Insert_TisInt32_t2071877448_m450589625_gshared (); extern "C" void Array_InternalArray__Insert_TisInt64_t909078037_m3039874636_gshared (); extern "C" void Array_InternalArray__Insert_TisIntPtr_t_m3232864760_gshared (); extern "C" void Array_InternalArray__Insert_TisCustomAttributeNamedArgument_t94157543_m1700539049_gshared (); extern "C" void Array_InternalArray__Insert_TisCustomAttributeTypedArgument_t1498197914_m159211206_gshared (); extern "C" void Array_InternalArray__Insert_TisLabelData_t3712112744_m1352095128_gshared (); extern "C" void Array_InternalArray__Insert_TisLabelFixup_t4090909514_m3927736182_gshared (); extern "C" void Array_InternalArray__Insert_TisILTokenInfo_t149559338_m2477135873_gshared (); extern "C" void Array_InternalArray__Insert_TisParameterModifier_t1820634920_m3586366920_gshared (); extern "C" void Array_InternalArray__Insert_TisResourceCacheItem_t333236149_m892830527_gshared (); extern "C" void Array_InternalArray__Insert_TisResourceInfo_t3933049236_m1054390648_gshared (); extern "C" void Array_InternalArray__Insert_TisTypeTag_t141209596_m2959204415_gshared (); extern "C" void Array_InternalArray__Insert_TisSByte_t454417549_m2203436188_gshared (); extern "C" void Array_InternalArray__Insert_TisX509ChainStatus_t4278378721_m777129612_gshared (); extern "C" void Array_InternalArray__Insert_TisSingle_t2076509932_m3514232129_gshared (); extern "C" void Array_InternalArray__Insert_TisMark_t2724874473_m3300165458_gshared (); extern "C" void Array_InternalArray__Insert_TisTimeSpan_t3430258949_m3376884148_gshared (); extern "C" void Array_InternalArray__Insert_TisUInt16_t986882611_m2263078_gshared (); extern "C" void Array_InternalArray__Insert_TisUInt32_t2149682021_m2575522428_gshared (); extern "C" void Array_InternalArray__Insert_TisUInt64_t2909196914_m296341307_gshared (); extern "C" void Array_InternalArray__Insert_TisUriScheme_t1876590943_m2728325409_gshared (); extern "C" void Array_InternalArray__Insert_TisAnimatorClipInfo_t3905751349_m1998637904_gshared (); extern "C" void Array_InternalArray__Insert_TisColor32_t874517518_m2750943679_gshared (); extern "C" void Array_InternalArray__Insert_TisContactPoint_t1376425630_m2834588319_gshared (); extern "C" void Array_InternalArray__Insert_TisContactPoint2D_t3659330976_m1722008481_gshared (); extern "C" void Array_InternalArray__Insert_TisRaycastResult_t21186376_m2824830645_gshared (); extern "C" void Array_InternalArray__Insert_TisKeyframe_t1449471340_m759416469_gshared (); extern "C" void Array_InternalArray__Insert_TisRaycastHit_t87180320_m1183264361_gshared (); extern "C" void Array_InternalArray__Insert_TisRaycastHit2D_t4063908774_m3174907903_gshared (); extern "C" void Array_InternalArray__Insert_TisHitInfo_t1761367055_m2882234445_gshared (); extern "C" void Array_InternalArray__Insert_TisGcAchievementData_t1754866149_m3032784802_gshared (); extern "C" void Array_InternalArray__Insert_TisGcScoreData_t3676783238_m2520717377_gshared (); extern "C" void Array_InternalArray__Insert_TisContentType_t1028629049_m1657980075_gshared (); extern "C" void Array_InternalArray__Insert_TisUICharInfo_t3056636800_m831626049_gshared (); extern "C" void Array_InternalArray__Insert_TisUILineInfo_t3621277874_m3317750035_gshared (); extern "C" void Array_InternalArray__Insert_TisUIVertex_t1204258818_m2149554491_gshared (); extern "C" void Array_InternalArray__Insert_TisVector2_t2243707579_m916134334_gshared (); extern "C" void Array_InternalArray__Insert_TisVector3_t2243707580_m3407722073_gshared (); extern "C" void Array_InternalArray__Insert_TisVector4_t2243707581_m1643342708_gshared (); extern "C" void Array_InternalArray__set_Item_TisTableRange_t2011406615_m2386708730_gshared (); extern "C" void Array_InternalArray__set_Item_TisClientCertificateType_t4001384466_m3578311308_gshared (); extern "C" void Array_InternalArray__set_Item_TisBoolean_t3825574718_m3250919050_gshared (); extern "C" void Array_InternalArray__set_Item_TisByte_t3683104436_m1694926640_gshared (); extern "C" void Array_InternalArray__set_Item_TisChar_t3454481338_m3145790370_gshared (); extern "C" void Array_InternalArray__set_Item_TisDictionaryEntry_t3048875398_m34441351_gshared (); extern "C" void Array_InternalArray__set_Item_TisLink_t865133271_m3921171894_gshared (); extern "C" void Array_InternalArray__set_Item_TisKeyValuePair_2_t3749587448_m4020534085_gshared (); extern "C" void Array_InternalArray__set_Item_TisKeyValuePair_2_t1174980068_m4174153963_gshared (); extern "C" void Array_InternalArray__set_Item_TisKeyValuePair_2_t3716250094_m1789683417_gshared (); extern "C" void Array_InternalArray__set_Item_TisKeyValuePair_2_t38854645_m1100778742_gshared (); extern "C" void Array_InternalArray__set_Item_TisLink_t2723257478_m1142632826_gshared (); extern "C" void Array_InternalArray__set_Item_TisSlot_t2022531261_m3811041838_gshared (); extern "C" void Array_InternalArray__set_Item_TisSlot_t2267560602_m2162879633_gshared (); extern "C" void Array_InternalArray__set_Item_TisDateTime_t693205669_m197118909_gshared (); extern "C" void Array_InternalArray__set_Item_TisDecimal_t724701077_m1342588459_gshared (); extern "C" void Array_InternalArray__set_Item_TisDouble_t4078015681_m24756265_gshared (); extern "C" void Array_InternalArray__set_Item_TisInt16_t4041245914_m3128518964_gshared (); extern "C" void Array_InternalArray__set_Item_TisInt32_t2071877448_m2959927234_gshared (); extern "C" void Array_InternalArray__set_Item_TisInt64_t909078037_m3898394929_gshared (); extern "C" void Array_InternalArray__set_Item_TisIntPtr_t_m3469133225_gshared (); extern "C" void Array_InternalArray__set_Item_TisCustomAttributeNamedArgument_t94157543_m3917436246_gshared (); extern "C" void Array_InternalArray__set_Item_TisCustomAttributeTypedArgument_t1498197914_m3657976385_gshared (); extern "C" void Array_InternalArray__set_Item_TisLabelData_t3712112744_m2253365137_gshared (); extern "C" void Array_InternalArray__set_Item_TisLabelFixup_t4090909514_m565370771_gshared (); extern "C" void Array_InternalArray__set_Item_TisILTokenInfo_t149559338_m4072905600_gshared (); extern "C" void Array_InternalArray__set_Item_TisParameterModifier_t1820634920_m3126548327_gshared (); extern "C" void Array_InternalArray__set_Item_TisResourceCacheItem_t333236149_m2074358118_gshared (); extern "C" void Array_InternalArray__set_Item_TisResourceInfo_t3933049236_m216042579_gshared (); extern "C" void Array_InternalArray__set_Item_TisTypeTag_t141209596_m3822995350_gshared (); extern "C" void Array_InternalArray__set_Item_TisSByte_t454417549_m1650395157_gshared (); extern "C" void Array_InternalArray__set_Item_TisX509ChainStatus_t4278378721_m1993048849_gshared (); extern "C" void Array_InternalArray__set_Item_TisSingle_t2076509932_m4273663642_gshared (); extern "C" void Array_InternalArray__set_Item_TisMark_t2724874473_m2258664863_gshared (); extern "C" void Array_InternalArray__set_Item_TisTimeSpan_t3430258949_m285095777_gshared (); extern "C" void Array_InternalArray__set_Item_TisUInt16_t986882611_m59367493_gshared (); extern "C" void Array_InternalArray__set_Item_TisUInt32_t2149682021_m1781075439_gshared (); extern "C" void Array_InternalArray__set_Item_TisUInt64_t2909196914_m1156945812_gshared (); extern "C" void Array_InternalArray__set_Item_TisUriScheme_t1876590943_m1211880002_gshared (); extern "C" void Array_InternalArray__set_Item_TisAnimatorClipInfo_t3905751349_m978873279_gshared (); extern "C" void Array_InternalArray__set_Item_TisColor32_t874517518_m2764061836_gshared (); extern "C" void Array_InternalArray__set_Item_TisContactPoint_t1376425630_m618872604_gshared (); extern "C" void Array_InternalArray__set_Item_TisContactPoint2D_t3659330976_m982335198_gshared (); extern "C" void Array_InternalArray__set_Item_TisRaycastResult_t21186376_m282695900_gshared (); extern "C" void Array_InternalArray__set_Item_TisKeyframe_t1449471340_m2314998918_gshared (); extern "C" void Array_InternalArray__set_Item_TisRaycastHit_t87180320_m792399342_gshared (); extern "C" void Array_InternalArray__set_Item_TisRaycastHit2D_t4063908774_m2647423940_gshared (); extern "C" void Array_InternalArray__set_Item_TisHitInfo_t1761367055_m2693590376_gshared (); extern "C" void Array_InternalArray__set_Item_TisGcAchievementData_t1754866149_m2646152357_gshared (); extern "C" void Array_InternalArray__set_Item_TisGcScoreData_t3676783238_m3622204922_gshared (); extern "C" void Array_InternalArray__set_Item_TisContentType_t1028629049_m703420360_gshared (); extern "C" void Array_InternalArray__set_Item_TisUICharInfo_t3056636800_m1953167516_gshared (); extern "C" void Array_InternalArray__set_Item_TisUILineInfo_t3621277874_m2417803570_gshared (); extern "C" void Array_InternalArray__set_Item_TisUIVertex_t1204258818_m1268461218_gshared (); extern "C" void Array_InternalArray__set_Item_TisVector2_t2243707579_m3194047011_gshared (); extern "C" void Array_InternalArray__set_Item_TisVector3_t2243707580_m1390667454_gshared (); extern "C" void Array_InternalArray__set_Item_TisVector4_t2243707581_m3878172417_gshared (); extern "C" void Array_qsort_TisInt32_t2071877448_TisInt32_t2071877448_m3855046429_gshared (); extern "C" void Array_qsort_TisInt32_t2071877448_m1764919157_gshared (); extern "C" void Array_qsort_TisCustomAttributeNamedArgument_t94157543_TisCustomAttributeNamedArgument_t94157543_m1794864717_gshared (); extern "C" void Array_qsort_TisCustomAttributeNamedArgument_t94157543_m29062149_gshared (); extern "C" void Array_qsort_TisCustomAttributeTypedArgument_t1498197914_TisCustomAttributeTypedArgument_t1498197914_m3299200237_gshared (); extern "C" void Array_qsort_TisCustomAttributeTypedArgument_t1498197914_m3901473686_gshared (); extern "C" void Array_qsort_TisAnimatorClipInfo_t3905751349_TisAnimatorClipInfo_t3905751349_m1590397297_gshared (); extern "C" void Array_qsort_TisAnimatorClipInfo_t3905751349_m1457508924_gshared (); extern "C" void Array_qsort_TisColor32_t874517518_TisColor32_t874517518_m3467679249_gshared (); extern "C" void Array_qsort_TisColor32_t874517518_m2536513943_gshared (); extern "C" void Array_qsort_TisRaycastResult_t21186376_TisRaycastResult_t21186376_m2717673581_gshared (); extern "C" void Array_qsort_TisRaycastResult_t21186376_m1830097153_gshared (); extern "C" void Array_qsort_TisRaycastHit_t87180320_m961108869_gshared (); extern "C" void Array_qsort_TisUICharInfo_t3056636800_TisUICharInfo_t3056636800_m1253367821_gshared (); extern "C" void Array_qsort_TisUICharInfo_t3056636800_m2607408901_gshared (); extern "C" void Array_qsort_TisUILineInfo_t3621277874_TisUILineInfo_t3621277874_m441879881_gshared (); extern "C" void Array_qsort_TisUILineInfo_t3621277874_m693500979_gshared (); extern "C" void Array_qsort_TisUIVertex_t1204258818_TisUIVertex_t1204258818_m512606409_gshared (); extern "C" void Array_qsort_TisUIVertex_t1204258818_m3188278715_gshared (); extern "C" void Array_qsort_TisVector2_t2243707579_TisVector2_t2243707579_m3308480721_gshared (); extern "C" void Array_qsort_TisVector2_t2243707579_m3527759534_gshared (); extern "C" void Array_qsort_TisVector3_t2243707580_TisVector3_t2243707580_m2272669009_gshared (); extern "C" void Array_qsort_TisVector3_t2243707580_m3999957353_gshared (); extern "C" void Array_qsort_TisVector4_t2243707581_TisVector4_t2243707581_m1761599697_gshared (); extern "C" void Array_qsort_TisVector4_t2243707581_m3660704204_gshared (); extern "C" void Array_Resize_TisInt32_t2071877448_m447637572_gshared (); extern "C" void Array_Resize_TisInt32_t2071877448_m3684346335_gshared (); extern "C" void Array_Resize_TisCustomAttributeNamedArgument_t94157543_m3339240648_gshared (); extern "C" void Array_Resize_TisCustomAttributeNamedArgument_t94157543_m2206103091_gshared (); extern "C" void Array_Resize_TisCustomAttributeTypedArgument_t1498197914_m939902121_gshared (); extern "C" void Array_Resize_TisCustomAttributeTypedArgument_t1498197914_m3055365808_gshared (); extern "C" void Array_Resize_TisAnimatorClipInfo_t3905751349_m1122349323_gshared (); extern "C" void Array_Resize_TisAnimatorClipInfo_t3905751349_m1821521510_gshared (); extern "C" void Array_Resize_TisColor32_t874517518_m878003458_gshared (); extern "C" void Array_Resize_TisColor32_t874517518_m2219502085_gshared (); extern "C" void Array_Resize_TisRaycastResult_t21186376_m2863372266_gshared (); extern "C" void Array_Resize_TisRaycastResult_t21186376_m178887183_gshared (); extern "C" void Array_Resize_TisUICharInfo_t3056636800_m136796546_gshared (); extern "C" void Array_Resize_TisUICharInfo_t3056636800_m2062204495_gshared (); extern "C" void Array_Resize_TisUILineInfo_t3621277874_m3403686460_gshared (); extern "C" void Array_Resize_TisUILineInfo_t3621277874_m3215803485_gshared (); extern "C" void Array_Resize_TisUIVertex_t1204258818_m369755412_gshared (); extern "C" void Array_Resize_TisUIVertex_t1204258818_m69257949_gshared (); extern "C" void Array_Resize_TisVector2_t2243707579_m625185335_gshared (); extern "C" void Array_Resize_TisVector2_t2243707579_m1117258774_gshared (); extern "C" void Array_Resize_TisVector3_t2243707580_m551302712_gshared (); extern "C" void Array_Resize_TisVector3_t2243707580_m893658391_gshared (); extern "C" void Array_Resize_TisVector4_t2243707581_m1528805937_gshared (); extern "C" void Array_Resize_TisVector4_t2243707581_m1261745172_gshared (); extern "C" void Array_Sort_TisInt32_t2071877448_TisInt32_t2071877448_m3984301585_gshared (); extern "C" void Array_Sort_TisInt32_t2071877448_m186284849_gshared (); extern "C" void Array_Sort_TisInt32_t2071877448_m1860415737_gshared (); extern "C" void Array_Sort_TisCustomAttributeNamedArgument_t94157543_TisCustomAttributeNamedArgument_t94157543_m3896681249_gshared (); extern "C" void Array_Sort_TisCustomAttributeNamedArgument_t94157543_m3436077809_gshared (); extern "C" void Array_Sort_TisCustomAttributeNamedArgument_t94157543_m2435281169_gshared (); extern "C" void Array_Sort_TisCustomAttributeTypedArgument_t1498197914_TisCustomAttributeTypedArgument_t1498197914_m4146117625_gshared (); extern "C" void Array_Sort_TisCustomAttributeTypedArgument_t1498197914_m1081752256_gshared (); extern "C" void Array_Sort_TisCustomAttributeTypedArgument_t1498197914_m3745413134_gshared (); extern "C" void Array_Sort_TisAnimatorClipInfo_t3905751349_TisAnimatorClipInfo_t3905751349_m953263221_gshared (); extern "C" void Array_Sort_TisAnimatorClipInfo_t3905751349_m2049646302_gshared (); extern "C" void Array_Sort_TisAnimatorClipInfo_t3905751349_m2633216324_gshared (); extern "C" void Array_Sort_TisColor32_t874517518_TisColor32_t874517518_m3103681221_gshared (); extern "C" void Array_Sort_TisColor32_t874517518_m348039223_gshared (); extern "C" void Array_Sort_TisColor32_t874517518_m2665990831_gshared (); extern "C" void Array_Sort_TisRaycastResult_t21186376_TisRaycastResult_t21186376_m38820193_gshared (); extern "C" void Array_Sort_TisRaycastResult_t21186376_m2722445429_gshared (); extern "C" void Array_Sort_TisRaycastResult_t21186376_m869515957_gshared (); extern "C" void Array_Sort_TisRaycastHit_t87180320_m4017051497_gshared (); extern "C" void Array_Sort_TisUICharInfo_t3056636800_TisUICharInfo_t3056636800_m766540689_gshared (); extern "C" void Array_Sort_TisUICharInfo_t3056636800_m203399713_gshared (); extern "C" void Array_Sort_TisUICharInfo_t3056636800_m37864585_gshared (); extern "C" void Array_Sort_TisUILineInfo_t3621277874_TisUILineInfo_t3621277874_m756478453_gshared (); extern "C" void Array_Sort_TisUILineInfo_t3621277874_m2765146215_gshared (); extern "C" void Array_Sort_TisUILineInfo_t3621277874_m3105833015_gshared (); extern "C" void Array_Sort_TisUIVertex_t1204258818_TisUIVertex_t1204258818_m1327748421_gshared (); extern "C" void Array_Sort_TisUIVertex_t1204258818_m1227732263_gshared (); extern "C" void Array_Sort_TisUIVertex_t1204258818_m894561151_gshared (); extern "C" void Array_Sort_TisVector2_t2243707579_TisVector2_t2243707579_m2582252549_gshared (); extern "C" void Array_Sort_TisVector2_t2243707579_m1307634946_gshared (); extern "C" void Array_Sort_TisVector2_t2243707579_m2070132352_gshared (); extern "C" void Array_Sort_TisVector3_t2243707580_TisVector3_t2243707580_m1665443717_gshared (); extern "C" void Array_Sort_TisVector3_t2243707580_m3268681761_gshared (); extern "C" void Array_Sort_TisVector3_t2243707580_m3220373153_gshared (); extern "C" void Array_Sort_TisVector4_t2243707581_TisVector4_t2243707581_m917148421_gshared (); extern "C" void Array_Sort_TisVector4_t2243707581_m414494280_gshared (); extern "C" void Array_Sort_TisVector4_t2243707581_m474199742_gshared (); extern "C" void Array_swap_TisInt32_t2071877448_TisInt32_t2071877448_m3507868628_gshared (); extern "C" void Array_swap_TisInt32_t2071877448_m1430982992_gshared (); extern "C" void Array_swap_TisCustomAttributeNamedArgument_t94157543_TisCustomAttributeNamedArgument_t94157543_m3600072996_gshared (); extern "C" void Array_swap_TisCustomAttributeNamedArgument_t94157543_m1844036828_gshared (); extern "C" void Array_swap_TisCustomAttributeTypedArgument_t1498197914_TisCustomAttributeTypedArgument_t1498197914_m3885180566_gshared (); extern "C" void Array_swap_TisCustomAttributeTypedArgument_t1498197914_m885124357_gshared (); extern "C" void Array_swap_TisAnimatorClipInfo_t3905751349_TisAnimatorClipInfo_t3905751349_m1375833338_gshared (); extern "C" void Array_swap_TisAnimatorClipInfo_t3905751349_m3264018415_gshared (); extern "C" void Array_swap_TisColor32_t874517518_TisColor32_t874517518_m3832002474_gshared (); extern "C" void Array_swap_TisColor32_t874517518_m2203309732_gshared (); extern "C" void Array_swap_TisRaycastResult_t21186376_TisRaycastResult_t21186376_m3127504388_gshared (); extern "C" void Array_swap_TisRaycastResult_t21186376_m583300086_gshared (); extern "C" void Array_swap_TisRaycastHit_t87180320_m1148458436_gshared (); extern "C" void Array_swap_TisUICharInfo_t3056636800_TisUICharInfo_t3056636800_m1811829460_gshared (); extern "C" void Array_swap_TisUICharInfo_t3056636800_m4036113126_gshared (); extern "C" void Array_swap_TisUILineInfo_t3621277874_TisUILineInfo_t3621277874_m57245360_gshared (); extern "C" void Array_swap_TisUILineInfo_t3621277874_m2468351928_gshared (); extern "C" void Array_swap_TisUIVertex_t1204258818_TisUIVertex_t1204258818_m1163375424_gshared (); extern "C" void Array_swap_TisUIVertex_t1204258818_m2078944520_gshared (); extern "C" void Array_swap_TisVector2_t2243707579_TisVector2_t2243707579_m2985401834_gshared (); extern "C" void Array_swap_TisVector2_t2243707579_m3359959735_gshared (); extern "C" void Array_swap_TisVector3_t2243707580_TisVector3_t2243707580_m346347882_gshared (); extern "C" void Array_swap_TisVector3_t2243707580_m3036634038_gshared (); extern "C" void Array_swap_TisVector4_t2243707581_TisVector4_t2243707581_m3150906602_gshared (); extern "C" void Array_swap_TisVector4_t2243707581_m3504221493_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m3350986264_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3749587448_TisKeyValuePair_2_t3749587448_m1768412984_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3749587448_TisIl2CppObject_m287245132_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisIl2CppObject_TisIl2CppObject_m2625001464_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t3749587448_m2536766696_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisIl2CppObject_m545661084_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisBoolean_t3825574718_TisBoolean_t3825574718_m156269422_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisBoolean_t3825574718_TisIl2CppObject_m1376138887_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m3886676844_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1174980068_TisKeyValuePair_2_t1174980068_m1420381772_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1174980068_TisIl2CppObject_m3279061992_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisBoolean_t3825574718_m671015067_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1174980068_m540794568_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m1669186756_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3716250094_TisKeyValuePair_2_t3716250094_m1270309796_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3716250094_TisIl2CppObject_m715850636_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisInt32_t2071877448_TisInt32_t2071877448_m1707114546_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisInt32_t2071877448_TisIl2CppObject_m1249877663_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t3716250094_m1740410536_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisInt32_t2071877448_m1983003419_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m2351457443_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t38854645_TisKeyValuePair_2_t38854645_m843700111_gshared (); extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t38854645_TisIl2CppObject_m591971964_gshared (); extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t38854645_m943415488_gshared (); extern "C" void BaseInvokableCall_ThrowOnInvalidArg_TisBoolean_t3825574718_m3557881725_gshared (); extern "C" void BaseInvokableCall_ThrowOnInvalidArg_TisInt32_t2071877448_m4010682571_gshared (); extern "C" void BaseInvokableCall_ThrowOnInvalidArg_TisSingle_t2076509932_m3470174535_gshared (); extern "C" void BaseInvokableCall_ThrowOnInvalidArg_TisColor_t2020392075_m85849056_gshared (); extern "C" void BaseInvokableCall_ThrowOnInvalidArg_TisVector2_t2243707579_m3249535332_gshared (); extern "C" void Mesh_SetListForChannel_TisVector2_t2243707579_m3845224428_gshared (); extern "C" void Array_InternalArray__get_Item_TisTableRange_t2011406615_m602485977_gshared (); extern "C" void Array_InternalArray__get_Item_TisClientCertificateType_t4001384466_m1933364177_gshared (); extern "C" void Array_InternalArray__get_Item_TisBoolean_t3825574718_m3129847639_gshared (); extern "C" void Array_InternalArray__get_Item_TisByte_t3683104436_m635665873_gshared (); extern "C" void Array_InternalArray__get_Item_TisChar_t3454481338_m3646615547_gshared (); extern "C" void Array_InternalArray__get_Item_TisDictionaryEntry_t3048875398_m2371191320_gshared (); extern "C" void Array_InternalArray__get_Item_TisLink_t865133271_m2489845481_gshared (); extern "C" void Array_InternalArray__get_Item_TisKeyValuePair_2_t3749587448_m833470118_gshared (); extern "C" void Array_InternalArray__get_Item_TisKeyValuePair_2_t1174980068_m964958642_gshared (); extern "C" void Array_InternalArray__get_Item_TisKeyValuePair_2_t3716250094_m3120861630_gshared (); extern "C" void Array_InternalArray__get_Item_TisKeyValuePair_2_t38854645_m2422121821_gshared (); extern "C" void Array_InternalArray__get_Item_TisLink_t2723257478_m2281261655_gshared (); extern "C" void Array_InternalArray__get_Item_TisSlot_t2022531261_m426645551_gshared (); extern "C" void Array_InternalArray__get_Item_TisSlot_t2267560602_m1004716430_gshared (); extern "C" void Array_InternalArray__get_Item_TisDateTime_t693205669_m3661692220_gshared (); extern "C" void Array_InternalArray__get_Item_TisDecimal_t724701077_m4156246600_gshared (); extern "C" void Array_InternalArray__get_Item_TisDouble_t4078015681_m2215331088_gshared (); extern "C" void Array_InternalArray__get_Item_TisInt16_t4041245914_m2533263979_gshared (); extern "C" void Array_InternalArray__get_Item_TisInt32_t2071877448_m966348849_gshared (); extern "C" void Array_InternalArray__get_Item_TisInt64_t909078037_m1431563204_gshared (); extern "C" void Array_InternalArray__get_Item_TisIntPtr_t_m210946760_gshared (); extern "C" void Array_InternalArray__get_Item_TisCustomAttributeNamedArgument_t94157543_m4258992745_gshared (); extern "C" void Array_InternalArray__get_Item_TisCustomAttributeTypedArgument_t1498197914_m1864496094_gshared (); extern "C" void Array_InternalArray__get_Item_TisLabelData_t3712112744_m863115768_gshared (); extern "C" void Array_InternalArray__get_Item_TisLabelFixup_t4090909514_m2966857142_gshared (); extern "C" void Array_InternalArray__get_Item_TisILTokenInfo_t149559338_m2004750537_gshared (); extern "C" void Array_InternalArray__get_Item_TisParameterModifier_t1820634920_m1898755304_gshared (); extern "C" void Array_InternalArray__get_Item_TisResourceCacheItem_t333236149_m649009631_gshared (); extern "C" void Array_InternalArray__get_Item_TisResourceInfo_t3933049236_m107404352_gshared (); extern "C" void Array_InternalArray__get_Item_TisTypeTag_t141209596_m1747911007_gshared (); extern "C" void Array_InternalArray__get_Item_TisSByte_t454417549_m3315206452_gshared (); extern "C" void Array_InternalArray__get_Item_TisX509ChainStatus_t4278378721_m4197592500_gshared (); extern "C" void Array_InternalArray__get_Item_TisSingle_t2076509932_m1495809753_gshared (); extern "C" void Array_InternalArray__get_Item_TisMark_t2724874473_m2044327706_gshared (); extern "C" void Array_InternalArray__get_Item_TisTimeSpan_t3430258949_m1147719260_gshared (); extern "C" void Array_InternalArray__get_Item_TisUInt16_t986882611_m2599215710_gshared (); extern "C" void Array_InternalArray__get_Item_TisUInt32_t2149682021_m2554907852_gshared (); extern "C" void Array_InternalArray__get_Item_TisUInt64_t2909196914_m2580870875_gshared (); extern "C" void Array_InternalArray__get_Item_TisUriScheme_t1876590943_m1821482697_gshared (); extern "C" void Array_InternalArray__get_Item_TisAnimatorClipInfo_t3905751349_m2163447872_gshared (); extern "C" void Array_InternalArray__get_Item_TisColor32_t874517518_m1877643687_gshared (); extern "C" void Array_InternalArray__get_Item_TisContactPoint_t1376425630_m3234597783_gshared (); extern "C" void Array_InternalArray__get_Item_TisContactPoint2D_t3659330976_m825151777_gshared (); extern "C" void Array_InternalArray__get_Item_TisRaycastResult_t21186376_m4125877765_gshared (); extern "C" void Array_InternalArray__get_Item_TisKeyframe_t1449471340_m1003508933_gshared (); extern "C" void Array_InternalArray__get_Item_TisRaycastHit_t87180320_m3529622569_gshared (); extern "C" void Array_InternalArray__get_Item_TisRaycastHit2D_t4063908774_m3592947655_gshared (); extern "C" void Array_InternalArray__get_Item_TisHitInfo_t1761367055_m2443000901_gshared (); extern "C" void Array_InternalArray__get_Item_TisGcAchievementData_t1754866149_m2980277810_gshared (); extern "C" void Array_InternalArray__get_Item_TisGcScoreData_t3676783238_m733932313_gshared (); extern "C" void Array_InternalArray__get_Item_TisContentType_t1028629049_m2406619723_gshared (); extern "C" void Array_InternalArray__get_Item_TisUICharInfo_t3056636800_m3872982785_gshared (); extern "C" void Array_InternalArray__get_Item_TisUILineInfo_t3621277874_m1432166059_gshared (); extern "C" void Array_InternalArray__get_Item_TisUIVertex_t1204258818_m3450355955_gshared (); extern "C" void Array_InternalArray__get_Item_TisVector2_t2243707579_m2394947294_gshared (); extern "C" void Array_InternalArray__get_Item_TisVector3_t2243707580_m2841870745_gshared (); extern "C" void Array_InternalArray__get_Item_TisVector4_t2243707581_m3866288892_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisVector2_t2243707579_m2487531426_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisVector3_t2243707580_m2101409415_gshared (); extern "C" void Mesh_GetAllocArrayFromChannel_TisVector4_t2243707581_m189379692_gshared (); extern "C" void Action_1__ctor_m3072925129_gshared (); extern "C" void Action_1_BeginInvoke_m226849422_gshared (); extern "C" void Action_1_EndInvoke_m2990292511_gshared (); extern "C" void Action_2_BeginInvoke_m3907381723_gshared (); extern "C" void Action_2_EndInvoke_m2798191693_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0__ctor_m1942816078_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CTU3E_get_Current_m285299945_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m480171694_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_MoveNext_m949306872_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_Dispose_m2403602883_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_Reset_m194260881_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0__ctor_m409316647_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CTU3E_get_Current_m988222504_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m2332089385_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_MoveNext_m692741405_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_Dispose_m2201090542_gshared (); extern "C" void U3CGetEnumeratorU3Ec__Iterator0_Reset_m1125157804_gshared (); extern "C" void ArrayReadOnlyList_1__ctor_m691892240_gshared (); extern "C" void ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m3039869667_gshared (); extern "C" void ArrayReadOnlyList_1_get_Item_m2694472846_gshared (); extern "C" void ArrayReadOnlyList_1_set_Item_m3536854615_gshared (); extern "C" void ArrayReadOnlyList_1_get_Count_m2661355086_gshared (); extern "C" void ArrayReadOnlyList_1_get_IsReadOnly_m2189922207_gshared (); extern "C" void ArrayReadOnlyList_1_Add_m961024239_gshared (); extern "C" void ArrayReadOnlyList_1_Clear_m1565299387_gshared (); extern "C" void ArrayReadOnlyList_1_Contains_m1269788217_gshared (); extern "C" void ArrayReadOnlyList_1_CopyTo_m4003949395_gshared (); extern "C" void ArrayReadOnlyList_1_GetEnumerator_m634288642_gshared (); extern "C" void ArrayReadOnlyList_1_IndexOf_m1220844927_gshared (); extern "C" void ArrayReadOnlyList_1_Insert_m2938723476_gshared (); extern "C" void ArrayReadOnlyList_1_Remove_m2325516426_gshared (); extern "C" void ArrayReadOnlyList_1_RemoveAt_m4104441984_gshared (); extern "C" void ArrayReadOnlyList_1_ReadOnlyError_m2160816107_gshared (); extern "C" void ArrayReadOnlyList_1__ctor_m3778554727_gshared (); extern "C" void ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m3194679940_gshared (); extern "C" void ArrayReadOnlyList_1_get_Item_m2045253203_gshared (); extern "C" void ArrayReadOnlyList_1_set_Item_m1476592004_gshared (); extern "C" void ArrayReadOnlyList_1_get_Count_m2272682593_gshared (); extern "C" void ArrayReadOnlyList_1_get_IsReadOnly_m745254596_gshared (); extern "C" void ArrayReadOnlyList_1_Add_m592463462_gshared (); extern "C" void ArrayReadOnlyList_1_Clear_m638842154_gshared (); extern "C" void ArrayReadOnlyList_1_Contains_m1984901664_gshared (); extern "C" void ArrayReadOnlyList_1_CopyTo_m3708038182_gshared (); extern "C" void ArrayReadOnlyList_1_GetEnumerator_m3821693737_gshared (); extern "C" void ArrayReadOnlyList_1_IndexOf_m1809425308_gshared (); extern "C" void ArrayReadOnlyList_1_Insert_m503707439_gshared (); extern "C" void ArrayReadOnlyList_1_Remove_m632503387_gshared (); extern "C" void ArrayReadOnlyList_1_RemoveAt_m2270349795_gshared (); extern "C" void ArrayReadOnlyList_1_ReadOnlyError_m2158247090_gshared (); extern "C" void InternalEnumerator_1__ctor_m2265739932_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1027964204_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m429673344_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1050822571_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1979432532_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2151132603_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2111763266_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1181480250_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1335784110_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2038682075_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1182905290_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3847951219_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m4119890600_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3731327620_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1931522460_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1640363425_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1595676968_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1943362081_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3043733612_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3647617676_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2164294642_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1148506519_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2651026500_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m4154615771_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m960275522_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2729797654_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3583252352_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m811081805_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m412569442_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2960188445_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m675130983_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m4211243679_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3125080595_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3597982928_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1636015243_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2351441486_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2688327768_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m4216238272_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3680087284_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1064404287_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3585886944_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1855333455_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3441346029_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2715953809_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3584266157_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m718416578_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1791963761_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3582710858_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m967618647_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m324760031_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1004764375_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m318835130_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4294226955_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3900993294_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3362782841_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2173715269_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1679297177_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1748410190_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3486952605_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2882946014_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3587374424_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m740705392_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3546309124_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2413981551_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1667794624_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2345377791_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m439810834_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1090540230_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3088751576_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m296683029_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1994485778_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3444791149_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m488579894_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m403454978_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4259662004_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m802528953_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3278167302_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m198513457_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m1405610577_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3237341717_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3600601141_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2337194690_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3476348493_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m4193726352_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m245588437_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2174159777_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3315293493_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3383574608_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3300932033_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m4279678504_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m4150855019_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1963130955_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1025729343_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3407567388_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4134231455_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m245025210_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3589241961_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3194282029_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2842514953_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3578333724_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m83303365_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1389169756_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m557239862_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m487832594_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2068723842_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2743309309_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4274987126_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3259181373_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m504913220_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2726857860_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1527025224_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3393096515_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3679487948_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m10285187_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2597133905_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2144409197_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2545039741_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m307741520_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1683120485_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2415979394_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m1648185761_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1809507733_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m127456009_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3933737284_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2720582493_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1706492988_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m492779768_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2494446096_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1322273508_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m238246335_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1548080384_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1089848479_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m821424641_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2624612805_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2315179333_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m4038440306_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2904932349_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1047712960_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3323962057_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2589050037_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4242639349_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m549215360_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3389738333_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3922357178_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3228997263_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3279821511_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1597849391_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3927915442_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4292005299_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2468740214_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3387972470_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m651165750_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3239681450_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2056889175_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1590907854_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3296972783_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2890018883_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3107040235_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2851415307_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3952699776_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1594563423_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m4083613828_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m1182539814_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2821513122_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1049770044_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m4175113225_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2302237510_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m789289033_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m1336720787_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2116079299_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4023948615_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1794459540_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2576139351_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m4154059426_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m4063293236_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1561424184_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4088899688_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1020222893_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1686633972_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2286118957_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2108401677_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m4085710193_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2607490481_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1676985532_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3984801393_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m314017974_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m655778553_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2198960685_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3576641073_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3671580532_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1869236997_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1550231132_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2314640734_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m214315662_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1231402888_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2195973811_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m580128774_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m727737343_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m1240086835_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3826378355_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2035754659_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3744916110_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1741571735_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m575280506_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2189699457_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3249248421_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m439366097_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3838127340_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1674480765_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3411759116_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2981879621_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2571770313_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1658267053_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1824402698_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2809569305_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3179981210_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m691972083_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3107741851_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2458630467_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2620838688_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m470170271_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2198364332_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3084132532_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m187060888_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m771161214_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3642485841_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2954283444_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m35328337_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3052252268_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3606709516_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3065287496_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1770651099_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3629145604_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1830023619_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m142220063_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1466133719_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3732729179_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3765482968_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m607849555_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3724267862_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m96919148_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2275167408_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m30488070_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m876833153_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4068681772_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3143558721_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3210262878_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2564106794_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1497708066_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3715403693_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3299881374_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3035290781_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3623160640_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2619213736_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2061144652_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3885764311_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2906956792_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m4045489063_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m994739194_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2046302786_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2900144990_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3805775699_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m572812642_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m319833891_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2007859216_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2715220344_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m790514740_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3766393335_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2289229080_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3959023023_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3664249240_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m192344320_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3043347404_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3464626239_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3332669936_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1715820327_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m32322958_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1777467498_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1533037706_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m4040890621_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1799288398_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1025321669_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3220229132_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m574988908_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1933635818_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m282312359_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m886855812_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2826780083_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3474059021_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3946824409_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2685895857_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m250541766_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2520133033_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m406393356_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2891033852_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1055858572_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1201713088_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1982788747_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4065131604_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m75828603_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2458691472_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m86252988_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2389982234_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m3291666845_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m252820768_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m3732458101_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m1815261138_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2208002250_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m160972190_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1399397099_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m3850699098_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m889125315_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m681761736_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3775211636_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2821735692_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2045737049_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2410670600_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2105085649_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2956304256_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2315964220_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2764360876_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m4229866913_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4061424048_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m1883328177_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2808001655_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1018453615_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m442726479_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m2270401482_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m4175772187_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2986222582_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m2782443954_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2361456586_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m762846484_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m14398895_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m2953305370_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m747506907_AdjustorThunk (); extern "C" void InternalEnumerator_1__ctor_m3901400705_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3994416165_AdjustorThunk (); extern "C" void InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1699120817_AdjustorThunk (); extern "C" void InternalEnumerator_1_Dispose_m1925604588_AdjustorThunk (); extern "C" void InternalEnumerator_1_MoveNext_m1441038493_AdjustorThunk (); extern "C" void InternalEnumerator_1_get_Current_m2687258796_AdjustorThunk (); extern "C" void DefaultComparer__ctor_m1799227370_gshared (); extern "C" void DefaultComparer_Compare_m1606207039_gshared (); extern "C" void DefaultComparer__ctor_m732373515_gshared (); extern "C" void DefaultComparer_Compare_m3472472212_gshared (); extern "C" void DefaultComparer__ctor_m3668042_gshared (); extern "C" void DefaultComparer_Compare_m3319119721_gshared (); extern "C" void DefaultComparer__ctor_m2859550749_gshared (); extern "C" void DefaultComparer_Compare_m925902394_gshared (); extern "C" void DefaultComparer__ctor_m1661558765_gshared (); extern "C" void DefaultComparer_Compare_m2855268154_gshared (); extern "C" void DefaultComparer__ctor_m1961329658_gshared (); extern "C" void DefaultComparer_Compare_m932294475_gshared (); extern "C" void DefaultComparer__ctor_m3791334730_gshared (); extern "C" void DefaultComparer_Compare_m265474847_gshared (); extern "C" void DefaultComparer__ctor_m2502511620_gshared (); extern "C" void DefaultComparer_Compare_m3953592365_gshared (); extern "C" void DefaultComparer__ctor_m2185307103_gshared (); extern "C" void DefaultComparer_Compare_m1247109616_gshared (); extern "C" void DefaultComparer__ctor_m3180706193_gshared (); extern "C" void DefaultComparer_Compare_m851771764_gshared (); extern "C" void DefaultComparer__ctor_m2470932885_gshared (); extern "C" void DefaultComparer_Compare_m3386135912_gshared (); extern "C" void DefaultComparer__ctor_m709297127_gshared (); extern "C" void DefaultComparer_Compare_m2804119458_gshared (); extern "C" void DefaultComparer__ctor_m710539671_gshared (); extern "C" void DefaultComparer_Compare_m3564013922_gshared (); extern "C" void DefaultComparer__ctor_m2251954164_gshared (); extern "C" void DefaultComparer_Compare_m3845579773_gshared (); extern "C" void DefaultComparer__ctor_m1454979065_gshared (); extern "C" void DefaultComparer_Compare_m2469517726_gshared (); extern "C" void DefaultComparer__ctor_m3680166634_gshared (); extern "C" void DefaultComparer_Compare_m4039941311_gshared (); extern "C" void Comparer_1__ctor_m1202126643_gshared (); extern "C" void Comparer_1__cctor_m1367179810_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m1712675620_gshared (); extern "C" void Comparer_1_get_Default_m3737432123_gshared (); extern "C" void Comparer_1__ctor_m3855093372_gshared (); extern "C" void Comparer_1__cctor_m2809342737_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m1790257529_gshared (); extern "C" void Comparer_1_get_Default_m1766380520_gshared (); extern "C" void Comparer_1__ctor_m2876014041_gshared (); extern "C" void Comparer_1__cctor_m3801958574_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m674728644_gshared (); extern "C" void Comparer_1_get_Default_m3982792633_gshared (); extern "C" void Comparer_1__ctor_m2074421588_gshared (); extern "C" void Comparer_1__cctor_m2780604723_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m3477896499_gshared (); extern "C" void Comparer_1_get_Default_m699808348_gshared (); extern "C" void Comparer_1__ctor_m844571340_gshared (); extern "C" void Comparer_1__cctor_m3112251759_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m3203078743_gshared (); extern "C" void Comparer_1_get_Default_m2605397692_gshared (); extern "C" void Comparer_1__ctor_m2364183619_gshared (); extern "C" void Comparer_1__cctor_m580294992_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m1635186002_gshared (); extern "C" void Comparer_1_get_Default_m3643271627_gshared (); extern "C" void Comparer_1__ctor_m2195903267_gshared (); extern "C" void Comparer_1__cctor_m2494715342_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m2490067344_gshared (); extern "C" void Comparer_1_get_Default_m2204997355_gshared (); extern "C" void Comparer_1__ctor_m3050042965_gshared (); extern "C" void Comparer_1__cctor_m3081562950_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m3930704532_gshared (); extern "C" void Comparer_1_get_Default_m4068500697_gshared (); extern "C" void Comparer_1__ctor_m2264852056_gshared (); extern "C" void Comparer_1__cctor_m179359609_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m2785607073_gshared (); extern "C" void Comparer_1_get_Default_m1826646524_gshared (); extern "C" void Comparer_1__ctor_m1728777074_gshared (); extern "C" void Comparer_1__cctor_m3237813171_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m1153499515_gshared (); extern "C" void Comparer_1_get_Default_m4282764954_gshared (); extern "C" void Comparer_1__ctor_m1184061702_gshared (); extern "C" void Comparer_1__cctor_m3069041651_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m1621919467_gshared (); extern "C" void Comparer_1_get_Default_m91842798_gshared (); extern "C" void Comparer_1__ctor_m806168336_gshared (); extern "C" void Comparer_1__cctor_m3996541505_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m2964757477_gshared (); extern "C" void Comparer_1_get_Default_m501796660_gshared (); extern "C" void Comparer_1__ctor_m1157133632_gshared (); extern "C" void Comparer_1__cctor_m4067993089_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m2324509253_gshared (); extern "C" void Comparer_1_get_Default_m1960140044_gshared (); extern "C" void Comparer_1__ctor_m2941434245_gshared (); extern "C" void Comparer_1__cctor_m2253684996_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m637596782_gshared (); extern "C" void Comparer_1_get_Default_m492688901_gshared (); extern "C" void Comparer_1__ctor_m1169723274_gshared (); extern "C" void Comparer_1__cctor_m1573451391_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m2615431023_gshared (); extern "C" void Comparer_1_get_Default_m3185432070_gshared (); extern "C" void Comparer_1__ctor_m4052560291_gshared (); extern "C" void Comparer_1__cctor_m1911230094_gshared (); extern "C" void Comparer_1_System_Collections_IComparer_Compare_m577428976_gshared (); extern "C" void Comparer_1_get_Default_m48739979_gshared (); extern "C" void Enumerator__ctor_m1702560852_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1631145297_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m2828524109_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m345330700_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m1330261287_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m3853964719_AdjustorThunk (); extern "C" void Enumerator_get_CurrentKey_m447338908_AdjustorThunk (); extern "C" void Enumerator_get_CurrentValue_m3562053380_AdjustorThunk (); extern "C" void Enumerator_Reset_m761796566_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m2118679243_AdjustorThunk (); extern "C" void Enumerator_VerifyCurrent_m4246196125_AdjustorThunk (); extern "C" void Enumerator__ctor_m661036428_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1692692619_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m70453843_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m3667889028_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m1214978221_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m313528997_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m1856697671_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1020413567_AdjustorThunk (); extern "C" void Enumerator_get_CurrentKey_m565000604_AdjustorThunk (); extern "C" void Enumerator_get_CurrentValue_m4143929484_AdjustorThunk (); extern "C" void Enumerator_Reset_m3115320746_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m1165543189_AdjustorThunk (); extern "C" void Enumerator_VerifyCurrent_m3330382363_AdjustorThunk (); extern "C" void Enumerator_Dispose_m2711120408_AdjustorThunk (); extern "C" void Enumerator__ctor_m3597047336_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m2010873149_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m3085583937_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m487599172_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m677423231_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m3005608231_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m435964161_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1932198897_AdjustorThunk (); extern "C" void Enumerator_get_CurrentKey_m1408186928_AdjustorThunk (); extern "C" void Enumerator_get_CurrentValue_m2645962456_AdjustorThunk (); extern "C" void Enumerator_Reset_m1132695838_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m3173176371_AdjustorThunk (); extern "C" void Enumerator_VerifyCurrent_m3278789713_AdjustorThunk (); extern "C" void Enumerator_Dispose_m401572848_AdjustorThunk (); extern "C" void ShimEnumerator__ctor_m3996137855_gshared (); extern "C" void ShimEnumerator_MoveNext_m3313047792_gshared (); extern "C" void ShimEnumerator_get_Entry_m2387156530_gshared (); extern "C" void ShimEnumerator_get_Key_m2823867931_gshared (); extern "C" void ShimEnumerator_get_Value_m3551354763_gshared (); extern "C" void ShimEnumerator_get_Current_m1093801549_gshared (); extern "C" void ShimEnumerator_Reset_m98005789_gshared (); extern "C" void ShimEnumerator__ctor_m2428699265_gshared (); extern "C" void ShimEnumerator_MoveNext_m2943029388_gshared (); extern "C" void ShimEnumerator_get_Entry_m2332479818_gshared (); extern "C" void ShimEnumerator_get_Key_m616785465_gshared (); extern "C" void ShimEnumerator_get_Value_m1396288849_gshared (); extern "C" void ShimEnumerator_get_Current_m2516732679_gshared (); extern "C" void ShimEnumerator_Reset_m2247049027_gshared (); extern "C" void ShimEnumerator__ctor_m1807768263_gshared (); extern "C" void ShimEnumerator_MoveNext_m2728191736_gshared (); extern "C" void ShimEnumerator_get_Entry_m2171963450_gshared (); extern "C" void ShimEnumerator_get_Key_m4014537779_gshared (); extern "C" void ShimEnumerator_get_Value_m1198202883_gshared (); extern "C" void ShimEnumerator_get_Current_m696250329_gshared (); extern "C" void ShimEnumerator_Reset_m208070833_gshared (); extern "C" void Transform_1__ctor_m2152205186_gshared (); extern "C" void Transform_1_Invoke_m4020530914_gshared (); extern "C" void Transform_1_BeginInvoke_m2179239469_gshared (); extern "C" void Transform_1_EndInvoke_m620026520_gshared (); extern "C" void Transform_1__ctor_m713310742_gshared (); extern "C" void Transform_1_Invoke_m1436021910_gshared (); extern "C" void Transform_1_BeginInvoke_m1786442111_gshared (); extern "C" void Transform_1_EndInvoke_m590952364_gshared (); extern "C" void Transform_1__ctor_m2914458810_gshared (); extern "C" void Transform_1_Invoke_m2347662626_gshared (); extern "C" void Transform_1_BeginInvoke_m1919808363_gshared (); extern "C" void Transform_1_EndInvoke_m1010744720_gshared (); extern "C" void Transform_1__ctor_m3569730739_gshared (); extern "C" void Transform_1_Invoke_m2906736839_gshared (); extern "C" void Transform_1_BeginInvoke_m3826027984_gshared (); extern "C" void Transform_1_EndInvoke_m258407721_gshared (); extern "C" void Transform_1__ctor_m1978472014_gshared (); extern "C" void Transform_1_Invoke_m2509306846_gshared (); extern "C" void Transform_1_BeginInvoke_m1167293475_gshared (); extern "C" void Transform_1_EndInvoke_m2742732284_gshared (); extern "C" void Transform_1__ctor_m974062490_gshared (); extern "C" void Transform_1_Invoke_m4136847354_gshared (); extern "C" void Transform_1_BeginInvoke_m2640141359_gshared (); extern "C" void Transform_1_EndInvoke_m3779953636_gshared (); extern "C" void Transform_1__ctor_m353209818_gshared (); extern "C" void Transform_1_Invoke_m719893226_gshared (); extern "C" void Transform_1_BeginInvoke_m786657825_gshared (); extern "C" void Transform_1_EndInvoke_m664119620_gshared (); extern "C" void Transform_1__ctor_m583305686_gshared (); extern "C" void Transform_1_Invoke_m1172879766_gshared (); extern "C" void Transform_1_BeginInvoke_m2336029567_gshared (); extern "C" void Transform_1_EndInvoke_m1025924012_gshared (); extern "C" void Transform_1__ctor_m1642784939_gshared (); extern "C" void Transform_1_Invoke_m2099058127_gshared (); extern "C" void Transform_1_BeginInvoke_m3169382212_gshared (); extern "C" void Transform_1_EndInvoke_m7550125_gshared (); extern "C" void Transform_1__ctor_m4161450529_gshared (); extern "C" void Transform_1_Invoke_m2770612589_gshared (); extern "C" void Transform_1_BeginInvoke_m3014766640_gshared (); extern "C" void Transform_1_EndInvoke_m803975703_gshared (); extern "C" void Transform_1__ctor_m2658320534_gshared (); extern "C" void Transform_1_Invoke_m1976033878_gshared (); extern "C" void Transform_1_BeginInvoke_m3105433791_gshared (); extern "C" void Transform_1_EndInvoke_m687617772_gshared (); extern "C" void Enumerator__ctor_m2988407410_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1648049763_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m655633499_AdjustorThunk (); extern "C" void Enumerator__ctor_m908409898_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m2625473469_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m2909592833_AdjustorThunk (); extern "C" void Enumerator_Dispose_m1323464986_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m1212551889_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2986380627_AdjustorThunk (); extern "C" void Enumerator__ctor_m3539306986_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1805365227_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m3294415347_AdjustorThunk (); extern "C" void Enumerator_Dispose_m2532362830_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2534596951_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2838387513_AdjustorThunk (); extern "C" void ValueCollection__ctor_m882866357_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m1903672223_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m3271993638_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m3958350925_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m98888100_gshared (); extern "C" void ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m1604400448_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m2627730402_gshared (); extern "C" void ValueCollection_System_Collections_IEnumerable_GetEnumerator_m1073215119_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m1325719984_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_IsSynchronized_m4041633470_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_SyncRoot_m3927965720_gshared (); extern "C" void ValueCollection_CopyTo_m1460341186_gshared (); extern "C" void ValueCollection_get_Count_m90930038_gshared (); extern "C" void ValueCollection__ctor_m1825701219_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m1367462045_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m276534782_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m3742779759_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m270427956_gshared (); extern "C" void ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m971481852_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m3262726594_gshared (); extern "C" void ValueCollection_System_Collections_IEnumerable_GetEnumerator_m1058162477_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m3005456072_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_IsSynchronized_m2117667642_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_SyncRoot_m568936428_gshared (); extern "C" void ValueCollection_CopyTo_m2890257710_gshared (); extern "C" void ValueCollection_GetEnumerator_m1860544291_gshared (); extern "C" void ValueCollection_get_Count_m494337310_gshared (); extern "C" void ValueCollection__ctor_m927733289_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m3594901543_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m231380274_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m1693788217_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m2185557816_gshared (); extern "C" void ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m20320216_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m592924266_gshared (); extern "C" void ValueCollection_System_Collections_IEnumerable_GetEnumerator_m802880903_gshared (); extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m1915900932_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_IsSynchronized_m45572582_gshared (); extern "C" void ValueCollection_System_Collections_ICollection_get_SyncRoot_m1458344512_gshared (); extern "C" void ValueCollection_CopyTo_m2713467670_gshared (); extern "C" void ValueCollection_GetEnumerator_m988596833_gshared (); extern "C" void ValueCollection_get_Count_m4142113966_gshared (); extern "C" void Dictionary_2__ctor_m2284756127_gshared (); extern "C" void Dictionary_2__ctor_m3111963761_gshared (); extern "C" void Dictionary_2__ctor_m965168575_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_get_Item_m2945412702_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m941667911_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m3189569330_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m3199539467_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m304009368_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2487129350_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1111602362_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m1043757703_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1927335261_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m3678641635_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m181279132_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m1985034736_gshared (); extern "C" void Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m3830548821_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m631947640_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1284065099_gshared (); extern "C" void Dictionary_2_get_Count_m2168147420_gshared (); extern "C" void Dictionary_2_get_Item_m4277290203_gshared (); extern "C" void Dictionary_2_Init_m3666073812_gshared (); extern "C" void Dictionary_2_InitArrays_m3810830177_gshared (); extern "C" void Dictionary_2_CopyToCheck_m1541945891_gshared (); extern "C" void Dictionary_2_make_pair_m90480045_gshared (); extern "C" void Dictionary_2_pick_value_m353965321_gshared (); extern "C" void Dictionary_2_CopyTo_m1956977846_gshared (); extern "C" void Dictionary_2_Resize_m2532139610_gshared (); extern "C" void Dictionary_2_ContainsKey_m255952723_gshared (); extern "C" void Dictionary_2_ContainsValue_m392092147_gshared (); extern "C" void Dictionary_2_GetObjectData_m233109612_gshared (); extern "C" void Dictionary_2_OnDeserialization_m2092139626_gshared (); extern "C" void Dictionary_2_ToTKey_m2900575080_gshared (); extern "C" void Dictionary_2_ToTValue_m14471464_gshared (); extern "C" void Dictionary_2_ContainsKeyValuePair_m790970878_gshared (); extern "C" void Dictionary_2_U3CCopyToU3Em__0_m741309042_gshared (); extern "C" void Dictionary_2__ctor_m3420539152_gshared (); extern "C" void Dictionary_2__ctor_m871840915_gshared (); extern "C" void Dictionary_2__ctor_m1854403065_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_get_Item_m2237138810_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m115188189_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m3066998246_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m189853969_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m1107018240_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2175588702_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1281685210_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m2611662793_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m842343255_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1323252853_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m2778371972_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m2784181332_gshared (); extern "C" void Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1615804423_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m573305608_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_GetEnumerator_m721575733_gshared (); extern "C" void Dictionary_2_get_Count_m802888472_gshared (); extern "C" void Dictionary_2_get_Item_m2455494681_gshared (); extern "C" void Dictionary_2_set_Item_m3758499254_gshared (); extern "C" void Dictionary_2_Init_m3784457680_gshared (); extern "C" void Dictionary_2_InitArrays_m4237030359_gshared (); extern "C" void Dictionary_2_CopyToCheck_m1638253305_gshared (); extern "C" void Dictionary_2_make_pair_m394533803_gshared (); extern "C" void Dictionary_2_pick_value_m4072431859_gshared (); extern "C" void Dictionary_2_CopyTo_m765026490_gshared (); extern "C" void Dictionary_2_Resize_m2807616086_gshared (); extern "C" void Dictionary_2_Clear_m3504688039_gshared (); extern "C" void Dictionary_2_ContainsKey_m1385349577_gshared (); extern "C" void Dictionary_2_ContainsValue_m1839958881_gshared (); extern "C" void Dictionary_2_GetObjectData_m3012471448_gshared (); extern "C" void Dictionary_2_OnDeserialization_m2870692686_gshared (); extern "C" void Dictionary_2_Remove_m1947153975_gshared (); extern "C" void Dictionary_2_TryGetValue_m1169378642_gshared (); extern "C" void Dictionary_2_get_Values_m1102170553_gshared (); extern "C" void Dictionary_2_ToTKey_m965425080_gshared (); extern "C" void Dictionary_2_ToTValue_m2304368184_gshared (); extern "C" void Dictionary_2_ContainsKeyValuePair_m1328448258_gshared (); extern "C" void Dictionary_2_GetEnumerator_m2667213667_gshared (); extern "C" void Dictionary_2_U3CCopyToU3Em__0_m2108533866_gshared (); extern "C" void Dictionary_2__ctor_m2457723796_gshared (); extern "C" void Dictionary_2__ctor_m1950568359_gshared (); extern "C" void Dictionary_2__ctor_m3092740055_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_get_Item_m3470597074_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m417746447_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m3716517866_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m3608354803_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m2813539788_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_get_SyncRoot_m1875561618_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1786828978_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m3947094719_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m3400497673_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1568255451_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m3503191152_gshared (); extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m3945379612_gshared (); extern "C" void Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1776836865_gshared (); extern "C" void Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m3968773920_gshared (); extern "C" void Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1898098675_gshared (); extern "C" void Dictionary_2_get_Count_m1099678088_gshared (); extern "C" void Dictionary_2_get_Item_m1434789331_gshared (); extern "C" void Dictionary_2_set_Item_m38702350_gshared (); extern "C" void Dictionary_2_Init_m2330162400_gshared (); extern "C" void Dictionary_2_InitArrays_m435313205_gshared (); extern "C" void Dictionary_2_CopyToCheck_m2755595307_gshared (); extern "C" void Dictionary_2_make_pair_m1307594529_gshared (); extern "C" void Dictionary_2_pick_value_m3484897877_gshared (); extern "C" void Dictionary_2_CopyTo_m1385625162_gshared (); extern "C" void Dictionary_2_Resize_m3051716242_gshared (); extern "C" void Dictionary_2_Clear_m602519205_gshared (); extern "C" void Dictionary_2_ContainsKey_m416495915_gshared (); extern "C" void Dictionary_2_ContainsValue_m2760581195_gshared (); extern "C" void Dictionary_2_GetObjectData_m3868399160_gshared (); extern "C" void Dictionary_2_OnDeserialization_m3851228446_gshared (); extern "C" void Dictionary_2_Remove_m3067952337_gshared (); extern "C" void Dictionary_2_get_Values_m677714159_gshared (); extern "C" void Dictionary_2_ToTKey_m1760276912_gshared (); extern "C" void Dictionary_2_ToTValue_m542772656_gshared (); extern "C" void Dictionary_2_ContainsKeyValuePair_m3818021458_gshared (); extern "C" void Dictionary_2_GetEnumerator_m3272257185_gshared (); extern "C" void Dictionary_2_U3CCopyToU3Em__0_m1479035402_gshared (); extern "C" void DefaultComparer__ctor_m1252999819_gshared (); extern "C" void DefaultComparer_GetHashCode_m3006415128_gshared (); extern "C" void DefaultComparer_Equals_m85211180_gshared (); extern "C" void DefaultComparer__ctor_m899694595_gshared (); extern "C" void DefaultComparer_GetHashCode_m2773774256_gshared (); extern "C" void DefaultComparer_Equals_m724229128_gshared (); extern "C" void DefaultComparer__ctor_m3190357794_gshared (); extern "C" void DefaultComparer_GetHashCode_m797464561_gshared (); extern "C" void DefaultComparer_Equals_m1600500777_gshared (); extern "C" void DefaultComparer__ctor_m4033373907_gshared (); extern "C" void DefaultComparer_GetHashCode_m238728614_gshared (); extern "C" void DefaultComparer_Equals_m4189188262_gshared (); extern "C" void DefaultComparer__ctor_m71907202_gshared (); extern "C" void DefaultComparer_GetHashCode_m4073394827_gshared (); extern "C" void DefaultComparer_Equals_m3573892667_gshared (); extern "C" void DefaultComparer__ctor_m2265472997_gshared (); extern "C" void DefaultComparer_GetHashCode_m2506382068_gshared (); extern "C" void DefaultComparer_Equals_m2078350484_gshared (); extern "C" void DefaultComparer__ctor_m1128136373_gshared (); extern "C" void DefaultComparer_GetHashCode_m1728348656_gshared (); extern "C" void DefaultComparer_Equals_m3262686272_gshared (); extern "C" void DefaultComparer__ctor_m2612109506_gshared (); extern "C" void DefaultComparer_GetHashCode_m3250641461_gshared (); extern "C" void DefaultComparer_Equals_m1281232537_gshared (); extern "C" void DefaultComparer__ctor_m491444649_gshared (); extern "C" void DefaultComparer_GetHashCode_m3936144140_gshared (); extern "C" void DefaultComparer_Equals_m4098991076_gshared (); extern "C" void DefaultComparer__ctor_m2518376578_gshared (); extern "C" void DefaultComparer_GetHashCode_m926363525_gshared (); extern "C" void DefaultComparer_Equals_m2001504109_gshared (); extern "C" void DefaultComparer__ctor_m4022772412_gshared (); extern "C" void DefaultComparer_GetHashCode_m361278435_gshared (); extern "C" void DefaultComparer_Equals_m2821026275_gshared (); extern "C" void DefaultComparer__ctor_m3276282391_gshared (); extern "C" void DefaultComparer_GetHashCode_m497789942_gshared (); extern "C" void DefaultComparer_Equals_m145577182_gshared (); extern "C" void DefaultComparer__ctor_m2931225689_gshared (); extern "C" void DefaultComparer_GetHashCode_m312610594_gshared (); extern "C" void DefaultComparer_Equals_m2873268274_gshared (); extern "C" void DefaultComparer__ctor_m418731767_gshared (); extern "C" void DefaultComparer_GetHashCode_m3827932086_gshared (); extern "C" void DefaultComparer_Equals_m4172486334_gshared (); extern "C" void DefaultComparer__ctor_m2474538702_gshared (); extern "C" void DefaultComparer_GetHashCode_m3949666199_gshared (); extern "C" void DefaultComparer_Equals_m90110159_gshared (); extern "C" void DefaultComparer__ctor_m1337256517_gshared (); extern "C" void DefaultComparer_GetHashCode_m4112623340_gshared (); extern "C" void DefaultComparer_Equals_m2171836276_gshared (); extern "C" void DefaultComparer__ctor_m2036092614_gshared (); extern "C" void DefaultComparer_GetHashCode_m2380869465_gshared (); extern "C" void DefaultComparer_Equals_m430000461_gshared (); extern "C" void DefaultComparer__ctor_m1084606969_gshared (); extern "C" void DefaultComparer_GetHashCode_m1355867210_gshared (); extern "C" void DefaultComparer_Equals_m1562287834_gshared (); extern "C" void DefaultComparer__ctor_m2276868849_gshared (); extern "C" void DefaultComparer_GetHashCode_m3653010626_gshared (); extern "C" void DefaultComparer_Equals_m964380914_gshared (); extern "C" void DefaultComparer__ctor_m1590657132_gshared (); extern "C" void DefaultComparer_GetHashCode_m3439703487_gshared (); extern "C" void DefaultComparer_Equals_m2425328879_gshared (); extern "C" void DefaultComparer__ctor_m1282733851_gshared (); extern "C" void DefaultComparer_GetHashCode_m1706638450_gshared (); extern "C" void DefaultComparer_Equals_m2148394930_gshared (); extern "C" void DefaultComparer__ctor_m2869673436_gshared (); extern "C" void DefaultComparer_GetHashCode_m3615205187_gshared (); extern "C" void DefaultComparer_Equals_m2200473563_gshared (); extern "C" void DefaultComparer__ctor_m3947565964_gshared (); extern "C" void DefaultComparer_GetHashCode_m926674183_gshared (); extern "C" void DefaultComparer_Equals_m3816856599_gshared (); extern "C" void DefaultComparer__ctor_m1052417779_gshared (); extern "C" void DefaultComparer_GetHashCode_m2340465958_gshared (); extern "C" void DefaultComparer_Equals_m3990990982_gshared (); extern "C" void DefaultComparer__ctor_m4203948575_gshared (); extern "C" void DefaultComparer_GetHashCode_m320514092_gshared (); extern "C" void DefaultComparer_Equals_m211257680_gshared (); extern "C" void DefaultComparer__ctor_m1726588383_gshared (); extern "C" void DefaultComparer_GetHashCode_m3344201770_gshared (); extern "C" void DefaultComparer_Equals_m4081745462_gshared (); extern "C" void DefaultComparer__ctor_m4293811280_gshared (); extern "C" void DefaultComparer_GetHashCode_m2561865553_gshared (); extern "C" void DefaultComparer_Equals_m845714217_gshared (); extern "C" void DefaultComparer__ctor_m171730843_gshared (); extern "C" void DefaultComparer_GetHashCode_m2825948074_gshared (); extern "C" void DefaultComparer_Equals_m403726494_gshared (); extern "C" void DefaultComparer__ctor_m2726067677_gshared (); extern "C" void DefaultComparer_GetHashCode_m918846970_gshared (); extern "C" void DefaultComparer_Equals_m3925528186_gshared (); extern "C" void DefaultComparer__ctor_m956926767_gshared (); extern "C" void DefaultComparer_GetHashCode_m3050723744_gshared (); extern "C" void DefaultComparer_Equals_m3143385420_gshared (); extern "C" void DefaultComparer__ctor_m2967376735_gshared (); extern "C" void DefaultComparer_GetHashCode_m2596628120_gshared (); extern "C" void DefaultComparer_Equals_m1530848964_gshared (); extern "C" void DefaultComparer__ctor_m1436011564_gshared (); extern "C" void DefaultComparer_GetHashCode_m4004219591_gshared (); extern "C" void DefaultComparer_Equals_m2928482823_gshared (); extern "C" void DefaultComparer__ctor_m639036465_gshared (); extern "C" void DefaultComparer_GetHashCode_m4184689288_gshared (); extern "C" void DefaultComparer_Equals_m313382504_gshared (); extern "C" void DefaultComparer__ctor_m29356578_gshared (); extern "C" void DefaultComparer_GetHashCode_m3578531013_gshared (); extern "C" void DefaultComparer_Equals_m2984842317_gshared (); extern "C" void EqualityComparer_1__ctor_m1952047100_gshared (); extern "C" void EqualityComparer_1__cctor_m1863390761_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3901093757_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3134072983_gshared (); extern "C" void EqualityComparer_1_get_Default_m3911577264_gshared (); extern "C" void EqualityComparer_1__ctor_m1341297002_gshared (); extern "C" void EqualityComparer_1__cctor_m51007461_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1539704005_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3444896763_gshared (); extern "C" void EqualityComparer_1_get_Default_m3836312902_gshared (); extern "C" void EqualityComparer_1__ctor_m1389939323_gshared (); extern "C" void EqualityComparer_1__cctor_m794495834_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m438492364_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1565968086_gshared (); extern "C" void EqualityComparer_1_get_Default_m2183586459_gshared (); extern "C" void EqualityComparer_1__ctor_m3067713332_gshared (); extern "C" void EqualityComparer_1__cctor_m2561906137_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1203798961_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2542582691_gshared (); extern "C" void EqualityComparer_1_get_Default_m1225763480_gshared (); extern "C" void EqualityComparer_1__ctor_m2583021089_gshared (); extern "C" void EqualityComparer_1__cctor_m1342609638_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1465362976_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m300683774_gshared (); extern "C" void EqualityComparer_1_get_Default_m875724809_gshared (); extern "C" void EqualityComparer_1__ctor_m376370188_gshared (); extern "C" void EqualityComparer_1__cctor_m3231934331_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3860410351_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3376587337_gshared (); extern "C" void EqualityComparer_1_get_Default_m3396023804_gshared (); extern "C" void EqualityComparer_1__ctor_m2244446852_gshared (); extern "C" void EqualityComparer_1__cctor_m2818445751_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2973423115_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3463759377_gshared (); extern "C" void EqualityComparer_1_get_Default_m3762039900_gshared (); extern "C" void EqualityComparer_1__ctor_m2579856891_gshared (); extern "C" void EqualityComparer_1__cctor_m3397254040_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m4202766890_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3758532772_gshared (); extern "C" void EqualityComparer_1_get_Default_m962487163_gshared (); extern "C" void EqualityComparer_1__ctor_m3788663378_gshared (); extern "C" void EqualityComparer_1__cctor_m1431474723_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1300051223_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3589836321_gshared (); extern "C" void EqualityComparer_1_get_Default_m4065943638_gshared (); extern "C" void EqualityComparer_1__ctor_m442580331_gshared (); extern "C" void EqualityComparer_1__cctor_m1110246150_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2008684464_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m144708998_gshared (); extern "C" void EqualityComparer_1_get_Default_m1852501307_gshared (); extern "C" void EqualityComparer_1__ctor_m718740765_gshared (); extern "C" void EqualityComparer_1__cctor_m4274063742_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1162246232_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3724603646_gshared (); extern "C" void EqualityComparer_1_get_Default_m3611111465_gshared (); extern "C" void EqualityComparer_1__ctor_m3830536096_gshared (); extern "C" void EqualityComparer_1__cctor_m2772682929_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3612334081_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1292796471_gshared (); extern "C" void EqualityComparer_1_get_Default_m3328992844_gshared (); extern "C" void EqualityComparer_1__ctor_m3675148074_gshared (); extern "C" void EqualityComparer_1__cctor_m1011898363_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3006379463_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1089835085_gshared (); extern "C" void EqualityComparer_1_get_Default_m3570989626_gshared (); extern "C" void EqualityComparer_1__ctor_m3554380640_gshared (); extern "C" void EqualityComparer_1__cctor_m416314417_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2138314433_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m4210968279_gshared (); extern "C" void EqualityComparer_1_get_Default_m479942316_gshared (); extern "C" void EqualityComparer_1__ctor_m81618677_gshared (); extern "C" void EqualityComparer_1__cctor_m968537130_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1799468828_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1682986002_gshared (); extern "C" void EqualityComparer_1_get_Default_m907005101_gshared (); extern "C" void EqualityComparer_1__ctor_m1010479422_gshared (); extern "C" void EqualityComparer_1__cctor_m207772851_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m172193607_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2768231005_gshared (); extern "C" void EqualityComparer_1_get_Default_m751712322_gshared (); extern "C" void EqualityComparer_1__ctor_m1942160887_gshared (); extern "C" void EqualityComparer_1__cctor_m4270384964_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2377261342_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2389655864_gshared (); extern "C" void EqualityComparer_1_get_Default_m2380741071_gshared (); extern "C" void EqualityComparer_1__ctor_m4025067384_gshared (); extern "C" void EqualityComparer_1__cctor_m982582067_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1151471199_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m897982433_gshared (); extern "C" void EqualityComparer_1_get_Default_m2936436268_gshared (); extern "C" void EqualityComparer_1__ctor_m831468288_gshared (); extern "C" void EqualityComparer_1__cctor_m1437669163_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2845218311_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m945141737_gshared (); extern "C" void EqualityComparer_1_get_Default_m1613555492_gshared (); extern "C" void EqualityComparer_1__ctor_m709161677_gshared (); extern "C" void EqualityComparer_1__cctor_m332471612_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3761319178_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m254740648_gshared (); extern "C" void EqualityComparer_1_get_Default_m3222318365_gshared (); extern "C" void EqualityComparer_1__ctor_m2992434364_gshared (); extern "C" void EqualityComparer_1__cctor_m3664711181_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1012273405_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3897608091_gshared (); extern "C" void EqualityComparer_1_get_Default_m3897585552_gshared (); extern "C" void EqualityComparer_1__ctor_m1018015381_gshared (); extern "C" void EqualityComparer_1__cctor_m1857858272_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m229548830_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m201203400_gshared (); extern "C" void EqualityComparer_1_get_Default_m2734478733_gshared (); extern "C" void EqualityComparer_1__ctor_m99476293_gshared (); extern "C" void EqualityComparer_1__cctor_m1409799842_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1773381340_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m349194518_gshared (); extern "C" void EqualityComparer_1_get_Default_m2134906921_gshared (); extern "C" void EqualityComparer_1__ctor_m1248117236_gshared (); extern "C" void EqualityComparer_1__cctor_m656572377_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2460068977_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1007228931_gshared (); extern "C" void EqualityComparer_1_get_Default_m3794275192_gshared (); extern "C" void EqualityComparer_1__ctor_m1398088456_gshared (); extern "C" void EqualityComparer_1__cctor_m3555705685_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m647607345_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1019855307_gshared (); extern "C" void EqualityComparer_1_get_Default_m2445143908_gshared (); extern "C" void EqualityComparer_1__ctor_m3971803374_gshared (); extern "C" void EqualityComparer_1__cctor_m232418593_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1749014277_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2571982283_gshared (); extern "C" void EqualityComparer_1_get_Default_m2229997586_gshared (); extern "C" void EqualityComparer_1__ctor_m2069363015_gshared (); extern "C" void EqualityComparer_1__cctor_m2291550712_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1128766342_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1960102236_gshared (); extern "C" void EqualityComparer_1_get_Default_m1806515335_gshared (); extern "C" void EqualityComparer_1__ctor_m2830393218_gshared (); extern "C" void EqualityComparer_1__cctor_m1505141729_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m644286453_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1705945391_gshared (); extern "C" void EqualityComparer_1_get_Default_m1026288614_gshared (); extern "C" void EqualityComparer_1__ctor_m1850246206_gshared (); extern "C" void EqualityComparer_1__cctor_m4227328699_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1690805903_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m315020809_gshared (); extern "C" void EqualityComparer_1_get_Default_m2561546910_gshared (); extern "C" void EqualityComparer_1__ctor_m3193852488_gshared (); extern "C" void EqualityComparer_1__cctor_m3612636681_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2364871829_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2641861691_gshared (); extern "C" void EqualityComparer_1_get_Default_m4155703012_gshared (); extern "C" void EqualityComparer_1__ctor_m1656023032_gshared (); extern "C" void EqualityComparer_1__cctor_m3435088969_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1478667421_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1302319107_gshared (); extern "C" void EqualityComparer_1_get_Default_m969953452_gshared (); extern "C" void EqualityComparer_1__ctor_m3504419277_gshared (); extern "C" void EqualityComparer_1__cctor_m173784124_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3134881714_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2853045792_gshared (); extern "C" void EqualityComparer_1_get_Default_m744889941_gshared (); extern "C" void EqualityComparer_1__ctor_m272608466_gshared (); extern "C" void EqualityComparer_1__cctor_m550556087_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1473684243_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1091252481_gshared (); extern "C" void EqualityComparer_1_get_Default_m3437633110_gshared (); extern "C" void EqualityComparer_1__ctor_m3155445483_gshared (); extern "C" void EqualityComparer_1__cctor_m2666196678_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1859582704_gshared (); extern "C" void EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3601790950_gshared (); extern "C" void EqualityComparer_1_get_Default_m300941019_gshared (); extern "C" void GenericComparer_1_Compare_m1840768387_gshared (); extern "C" void GenericComparer_1_Compare_m2516380588_gshared (); extern "C" void GenericComparer_1_Compare_m11267581_gshared (); extern "C" void GenericComparer_1__ctor_m973776669_gshared (); extern "C" void GenericComparer_1_Compare_m4255737786_gshared (); extern "C" void GenericComparer_1_Compare_m1517459603_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m1096417895_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m3450627064_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m2469044952_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m1381335423_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m2118676928_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m514359868_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m2969953181_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m2324680497_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m2782420646_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m418285146_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m3320722759_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m1549453511_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m854452741_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m3520912652_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m4153713908_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m3487039313_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m1950634276_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m2779085860_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m2293071025_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m1663005117_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m543916517_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m667477524_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m1109000020_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m3497387759_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m3878911910_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m1610418746_gshared (); extern "C" void GenericEqualityComparer_1__ctor_m3644917911_gshared (); extern "C" void GenericEqualityComparer_1_GetHashCode_m116190842_gshared (); extern "C" void GenericEqualityComparer_1_Equals_m1934771410_gshared (); extern "C" void KeyValuePair_2__ctor_m3201181706_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Key_m1350990071_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Value_m2726037047_AdjustorThunk (); extern "C" void KeyValuePair_2__ctor_m4040336782_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Key_m2113318928_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Key_m1222844869_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Value_m1916631176_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Value_m965533293_AdjustorThunk (); extern "C" void KeyValuePair_2_ToString_m1739958171_AdjustorThunk (); extern "C" void KeyValuePair_2__ctor_m1877755778_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Key_m1454531804_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Key_m1307112735_AdjustorThunk (); extern "C" void KeyValuePair_2_get_Value_m3699669100_AdjustorThunk (); extern "C" void KeyValuePair_2_set_Value_m1921288671_AdjustorThunk (); extern "C" void KeyValuePair_2_ToString_m1394661909_AdjustorThunk (); extern "C" void Enumerator__ctor_m1614742070_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m1016756388_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m2154261170_AdjustorThunk (); extern "C" void Enumerator_Dispose_m1274756239_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m2167629240_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m3078170540_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1471878379_AdjustorThunk (); extern "C" void Enumerator__ctor_m3021143890_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m610822832_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1278092846_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3704913451_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m739025304_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m598197344_AdjustorThunk (); extern "C" void Enumerator_get_Current_m3860473239_AdjustorThunk (); extern "C" void Enumerator__ctor_m3421311553_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m1436660297_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m355114893_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3434518394_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m435841047_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m1792725673_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1371324410_AdjustorThunk (); extern "C" void Enumerator__ctor_m1380589695_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m886102771_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m2408426667_AdjustorThunk (); extern "C" void Enumerator_Dispose_m15511624_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m1828382917_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2893037143_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1830000836_AdjustorThunk (); extern "C" void Enumerator__ctor_m2054046066_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m1344379320_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3979461448_AdjustorThunk (); extern "C" void Enumerator_Dispose_m1300762389_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m1677639504_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2625246500_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1482710541_AdjustorThunk (); extern "C" void Enumerator__ctor_m3979168432_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m336811426_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3079057684_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3455280711_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m2948867230_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2628556578_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2728219003_AdjustorThunk (); extern "C" void Enumerator__ctor_m3512622280_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m2200349770_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3461301268_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3756179807_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m2358705882_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m848781978_AdjustorThunk (); extern "C" void Enumerator_get_Current_m3839136987_AdjustorThunk (); extern "C" void Enumerator__ctor_m3903095790_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m925111644_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3228580602_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3109097029_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m4188527104_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m2504790928_AdjustorThunk (); extern "C" void Enumerator_get_Current_m657641165_AdjustorThunk (); extern "C" void Enumerator__ctor_m2578663110_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m3052395060_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m38564970_AdjustorThunk (); extern "C" void Enumerator_Dispose_m1292917021_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m2807892176_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m138320264_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2585076237_AdjustorThunk (); extern "C" void Enumerator__ctor_m3172601063_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m1334470667_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3542273247_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3717265706_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m3913376581_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m3483405135_AdjustorThunk (); extern "C" void Enumerator_get_Current_m1551076836_AdjustorThunk (); extern "C" void Enumerator__ctor_m1365181512_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m3796537546_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m1103666686_AdjustorThunk (); extern "C" void Enumerator_Dispose_m3215924523_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m3639069574_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m1367380970_AdjustorThunk (); extern "C" void Enumerator_get_Current_m827571811_AdjustorThunk (); extern "C" void Enumerator__ctor_m425576865_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_Reset_m2621684617_AdjustorThunk (); extern "C" void Enumerator_System_Collections_IEnumerator_get_Current_m3866069145_AdjustorThunk (); extern "C" void Enumerator_Dispose_m2705653668_AdjustorThunk (); extern "C" void Enumerator_VerifyState_m3775669055_AdjustorThunk (); extern "C" void Enumerator_MoveNext_m3293920409_AdjustorThunk (); extern "C" void Enumerator_get_Current_m2657372766_AdjustorThunk (); extern "C" void List_1__ctor_m2475747412_gshared (); extern "C" void List_1__cctor_m2189212316_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m2389584935_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m99573371_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m2119276738_gshared (); extern "C" void List_1_System_Collections_IList_Add_m4110675067_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m1798539219_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m39706221_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m3497683264_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m733406822_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2370098094_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m180248307_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m3733894943_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m899572676_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m813208831_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2850581314_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m4222864089_gshared (); extern "C" void List_1_GrowIfNeeded_m2986672263_gshared (); extern "C" void List_1_AddCollection_m389745455_gshared (); extern "C" void List_1_AddEnumerable_m1869508559_gshared (); extern "C" void List_1_AsReadOnly_m3556741007_gshared (); extern "C" void List_1_Contains_m459703010_gshared (); extern "C" void List_1_CopyTo_m2021584896_gshared (); extern "C" void List_1_Find_m4088861214_gshared (); extern "C" void List_1_CheckMatch_m2715809755_gshared (); extern "C" void List_1_GetIndex_m4030875800_gshared (); extern "C" void List_1_GetEnumerator_m444823791_gshared (); extern "C" void List_1_IndexOf_m3529832102_gshared (); extern "C" void List_1_Shift_m2880167903_gshared (); extern "C" void List_1_CheckIndex_m3609163576_gshared (); extern "C" void List_1_Insert_m2493743341_gshared (); extern "C" void List_1_CheckCollection_m2486007558_gshared (); extern "C" void List_1_Remove_m2616693989_gshared (); extern "C" void List_1_RemoveAll_m2964742291_gshared (); extern "C" void List_1_RemoveAt_m1644402641_gshared (); extern "C" void List_1_Reverse_m369022463_gshared (); extern "C" void List_1_Sort_m953537285_gshared (); extern "C" void List_1_Sort_m1518807012_gshared (); extern "C" void List_1_ToArray_m3223175690_gshared (); extern "C" void List_1_TrimExcess_m4133698154_gshared (); extern "C" void List_1_get_Capacity_m531373308_gshared (); extern "C" void List_1_set_Capacity_m1511847951_gshared (); extern "C" void List_1_get_Item_m4100789973_gshared (); extern "C" void List_1_set_Item_m1852089066_gshared (); extern "C" void List_1__ctor_m62665571_gshared (); extern "C" void List_1__ctor_m2814377392_gshared (); extern "C" void List_1__cctor_m2406694916_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3911881107_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m238914391_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m2711440510_gshared (); extern "C" void List_1_System_Collections_IList_Add_m2467317711_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m1445741711_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m3337681989_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m2411507172_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m757548498_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3598018290_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m42432439_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m3463435867_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m1122077912_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m3489886467_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2717017342_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m2322597873_gshared (); extern "C" void List_1_Add_m1421473272_gshared (); extern "C" void List_1_GrowIfNeeded_m1884976939_gshared (); extern "C" void List_1_AddCollection_m4288303131_gshared (); extern "C" void List_1_AddEnumerable_m2240424635_gshared (); extern "C" void List_1_AddRange_m550906382_gshared (); extern "C" void List_1_AsReadOnly_m4170173499_gshared (); extern "C" void List_1_Clear_m872023540_gshared (); extern "C" void List_1_Contains_m2579468898_gshared (); extern "C" void List_1_CopyTo_m3304934364_gshared (); extern "C" void List_1_Find_m928764838_gshared (); extern "C" void List_1_CheckMatch_m1772343151_gshared (); extern "C" void List_1_GetIndex_m3484731440_gshared (); extern "C" void List_1_GetEnumerator_m1960030979_gshared (); extern "C" void List_1_IndexOf_m3773642130_gshared (); extern "C" void List_1_Shift_m3131270387_gshared (); extern "C" void List_1_CheckIndex_m2328469916_gshared (); extern "C" void List_1_Insert_m2347446741_gshared (); extern "C" void List_1_CheckCollection_m702424990_gshared (); extern "C" void List_1_Remove_m600476045_gshared (); extern "C" void List_1_RemoveAll_m1556422543_gshared (); extern "C" void List_1_RemoveAt_m694265537_gshared (); extern "C" void List_1_Reverse_m3464820627_gshared (); extern "C" void List_1_Sort_m3415942229_gshared (); extern "C" void List_1_Sort_m3761433676_gshared (); extern "C" void List_1_ToArray_m101334674_gshared (); extern "C" void List_1_TrimExcess_m148071630_gshared (); extern "C" void List_1_get_Capacity_m737897572_gshared (); extern "C" void List_1_set_Capacity_m895816763_gshared (); extern "C" void List_1_get_Count_m746333615_gshared (); extern "C" void List_1_get_Item_m1547593893_gshared (); extern "C" void List_1_set_Item_m3124475534_gshared (); extern "C" void List_1__ctor_m2672294496_gshared (); extern "C" void List_1__ctor_m1374227281_gshared (); extern "C" void List_1__cctor_m964742127_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m1503548298_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m1530390632_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m756554573_gshared (); extern "C" void List_1_System_Collections_IList_Add_m2159243884_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m2320767470_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m1198382402_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m813883425_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m2040310137_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1614481629_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m1589801624_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m1040733662_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m1301385461_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m918797556_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2094199825_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m462908230_gshared (); extern "C" void List_1_Add_m943275925_gshared (); extern "C" void List_1_GrowIfNeeded_m1253877786_gshared (); extern "C" void List_1_AddCollection_m3411511922_gshared (); extern "C" void List_1_AddEnumerable_m1315238882_gshared (); extern "C" void List_1_AddRange_m1961118505_gshared (); extern "C" void List_1_AsReadOnly_m1705673780_gshared (); extern "C" void List_1_Clear_m4218787945_gshared (); extern "C" void List_1_Contains_m201418743_gshared (); extern "C" void List_1_CopyTo_m1257394493_gshared (); extern "C" void List_1_Find_m1730628159_gshared (); extern "C" void List_1_CheckMatch_m3223332392_gshared (); extern "C" void List_1_GetIndex_m2077176567_gshared (); extern "C" void List_1_GetEnumerator_m1475908476_gshared (); extern "C" void List_1_IndexOf_m1434084853_gshared (); extern "C" void List_1_Shift_m230554188_gshared (); extern "C" void List_1_CheckIndex_m2515123737_gshared (); extern "C" void List_1_Insert_m3381965982_gshared (); extern "C" void List_1_CheckCollection_m2608305187_gshared (); extern "C" void List_1_Remove_m2218182224_gshared (); extern "C" void List_1_RemoveAll_m810331748_gshared (); extern "C" void List_1_RemoveAt_m1271632082_gshared (); extern "C" void List_1_Reverse_m3362906046_gshared (); extern "C" void List_1_Sort_m3454751890_gshared (); extern "C" void List_1_Sort_m1395775863_gshared (); extern "C" void List_1_ToArray_m1103831931_gshared (); extern "C" void List_1_TrimExcess_m2860576477_gshared (); extern "C" void List_1_get_Capacity_m3131467143_gshared (); extern "C" void List_1_set_Capacity_m3082973746_gshared (); extern "C" void List_1_get_Count_m3939916508_gshared (); extern "C" void List_1_get_Item_m22907878_gshared (); extern "C" void List_1_set_Item_m1062416045_gshared (); extern "C" void List_1__ctor_m2904174602_gshared (); extern "C" void List_1__ctor_m953162903_gshared (); extern "C" void List_1__cctor_m238880637_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3123730956_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m467073326_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m2923618987_gshared (); extern "C" void List_1_System_Collections_IList_Add_m3474658850_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m3263069836_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m1671340024_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m1371868507_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m242222779_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4086633855_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m2622179770_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m2293775492_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m1585515739_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m2615305990_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2465516839_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m2754968760_gshared (); extern "C" void List_1_Add_m139600959_gshared (); extern "C" void List_1_GrowIfNeeded_m3677371172_gshared (); extern "C" void List_1_AddCollection_m2628217188_gshared (); extern "C" void List_1_AddEnumerable_m3541747636_gshared (); extern "C" void List_1_AddRange_m1688799127_gshared (); extern "C" void List_1_AsReadOnly_m2754109886_gshared (); extern "C" void List_1_Clear_m3712744299_gshared (); extern "C" void List_1_Contains_m980727749_gshared (); extern "C" void List_1_CopyTo_m1916701891_gshared (); extern "C" void List_1_Find_m3715518749_gshared (); extern "C" void List_1_CheckMatch_m1814522134_gshared (); extern "C" void List_1_GetIndex_m2229998893_gshared (); extern "C" void List_1_GetEnumerator_m3295274810_gshared (); extern "C" void List_1_IndexOf_m841995471_gshared (); extern "C" void List_1_Shift_m457025866_gshared (); extern "C" void List_1_CheckIndex_m2247532995_gshared (); extern "C" void List_1_Insert_m2058628204_gshared (); extern "C" void List_1_CheckCollection_m1525892709_gshared (); extern "C" void List_1_Remove_m2660527978_gshared (); extern "C" void List_1_RemoveAll_m1762969266_gshared (); extern "C" void List_1_RemoveAt_m219975640_gshared (); extern "C" void List_1_Reverse_m2494927116_gshared (); extern "C" void List_1_Sort_m1911837196_gshared (); extern "C" void List_1_Sort_m2939600501_gshared (); extern "C" void List_1_ToArray_m3800866457_gshared (); extern "C" void List_1_TrimExcess_m4150235479_gshared (); extern "C" void List_1_get_Capacity_m1731310993_gshared (); extern "C" void List_1_set_Capacity_m4114528740_gshared (); extern "C" void List_1_get_Count_m634584594_gshared (); extern "C" void List_1_get_Item_m1231764300_gshared (); extern "C" void List_1_set_Item_m1853859111_gshared (); extern "C" void List_1__ctor_m1282220089_gshared (); extern "C" void List_1__ctor_m4077915726_gshared (); extern "C" void List_1__cctor_m788123150_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3938644293_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m3062449209_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m136047528_gshared (); extern "C" void List_1_System_Collections_IList_Add_m1206679309_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m2038943033_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m2363278771_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m2838947798_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m3933652540_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1380246012_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m3709489469_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m181847497_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m95206982_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m935733081_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m3989815218_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m3243836587_gshared (); extern "C" void List_1_GrowIfNeeded_m823678457_gshared (); extern "C" void List_1_AddCollection_m3266731889_gshared (); extern "C" void List_1_AddEnumerable_m1326553217_gshared (); extern "C" void List_1_AsReadOnly_m2125199073_gshared (); extern "C" void List_1_Contains_m3819542652_gshared (); extern "C" void List_1_CopyTo_m3599989706_gshared (); extern "C" void List_1_Find_m3480386930_gshared (); extern "C" void List_1_CheckMatch_m272080553_gshared (); extern "C" void List_1_GetIndex_m4149823362_gshared (); extern "C" void List_1_GetEnumerator_m2718304481_gshared (); extern "C" void List_1_IndexOf_m2418862432_gshared (); extern "C" void List_1_Shift_m3230294253_gshared (); extern "C" void List_1_CheckIndex_m1913591742_gshared (); extern "C" void List_1_Insert_m2375507299_gshared (); extern "C" void List_1_CheckCollection_m1228076404_gshared (); extern "C" void List_1_Remove_m3979520415_gshared (); extern "C" void List_1_RemoveAll_m3473142549_gshared (); extern "C" void List_1_RemoveAt_m1662147959_gshared (); extern "C" void List_1_Reverse_m283673877_gshared (); extern "C" void List_1_Sort_m116241367_gshared (); extern "C" void List_1_Sort_m1945508006_gshared (); extern "C" void List_1_ToArray_m3752387798_gshared (); extern "C" void List_1_TrimExcess_m7557008_gshared (); extern "C" void List_1_get_Capacity_m1878556466_gshared (); extern "C" void List_1_set_Capacity_m197289457_gshared (); extern "C" void List_1_get_Count_m1752597149_gshared (); extern "C" void List_1__ctor_m247608098_gshared (); extern "C" void List_1__cctor_m911493842_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m4001960207_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m1172585019_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m3458565060_gshared (); extern "C" void List_1_System_Collections_IList_Add_m3128129043_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m4193366963_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m4061554721_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m848656350_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m875577424_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1084563456_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m1411620731_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m3031553207_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m568608666_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m3308105823_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m4133696900_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m2267202349_gshared (); extern "C" void List_1_GrowIfNeeded_m3640023655_gshared (); extern "C" void List_1_AddCollection_m1183688727_gshared (); extern "C" void List_1_AddEnumerable_m2981292375_gshared (); extern "C" void List_1_AddRange_m1797294292_gshared (); extern "C" void List_1_AsReadOnly_m2629234039_gshared (); extern "C" void List_1_Contains_m216578708_gshared (); extern "C" void List_1_CopyTo_m4240677846_gshared (); extern "C" void List_1_Find_m2584113984_gshared (); extern "C" void List_1_CheckMatch_m1650813139_gshared (); extern "C" void List_1_GetIndex_m4044233846_gshared (); extern "C" void List_1_GetEnumerator_m2672519407_gshared (); extern "C" void List_1_IndexOf_m2443621264_gshared (); extern "C" void List_1_Shift_m3614644831_gshared (); extern "C" void List_1_CheckIndex_m2576265846_gshared (); extern "C" void List_1_Insert_m2532850849_gshared (); extern "C" void List_1_CheckCollection_m3234052816_gshared (); extern "C" void List_1_Remove_m490375377_gshared (); extern "C" void List_1_RemoveAll_m4125997475_gshared (); extern "C" void List_1_RemoveAt_m3262734405_gshared (); extern "C" void List_1_Reverse_m302978607_gshared (); extern "C" void List_1_Sort_m2928552217_gshared (); extern "C" void List_1_ToArray_m3596746708_gshared (); extern "C" void List_1_TrimExcess_m433740308_gshared (); extern "C" void List_1_get_Capacity_m4262042666_gshared (); extern "C" void List_1_set_Capacity_m1328294231_gshared (); extern "C" void List_1_set_Item_m2039806228_gshared (); extern "C" void List_1__ctor_m1375473095_gshared (); extern "C" void List_1__cctor_m3823644086_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m2348591407_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m2073695915_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m794986580_gshared (); extern "C" void List_1_System_Collections_IList_Add_m4141282763_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m628054451_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m2887559165_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m3714295934_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m3673342024_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4057491736_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m2070580979_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m22440695_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m1195644338_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m926493967_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m3646798836_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m1129584681_gshared (); extern "C" void List_1_Add_m3910722802_gshared (); extern "C" void List_1_GrowIfNeeded_m1073407447_gshared (); extern "C" void List_1_AddCollection_m2221063383_gshared (); extern "C" void List_1_AddEnumerable_m2203160679_gshared (); extern "C" void List_1_AddRange_m1106917444_gshared (); extern "C" void List_1_AsReadOnly_m2401222295_gshared (); extern "C" void List_1_Clear_m3088166542_gshared (); extern "C" void List_1_Contains_m1838557784_gshared (); extern "C" void List_1_CopyTo_m612443030_gshared (); extern "C" void List_1_Find_m970100220_gshared (); extern "C" void List_1_CheckMatch_m2830747427_gshared (); extern "C" void List_1_GetIndex_m1530979506_gshared (); extern "C" void List_1_GetEnumerator_m3769099511_gshared (); extern "C" void List_1_IndexOf_m4082601464_gshared (); extern "C" void List_1_Shift_m1437179143_gshared (); extern "C" void List_1_CheckIndex_m4231572822_gshared (); extern "C" void List_1_Insert_m3305828613_gshared (); extern "C" void List_1_CheckCollection_m4110679452_gshared (); extern "C" void List_1_Remove_m2664188309_gshared (); extern "C" void List_1_RemoveAll_m186019563_gshared (); extern "C" void List_1_RemoveAt_m1940208129_gshared (); extern "C" void List_1_Reverse_m28825263_gshared (); extern "C" void List_1_Sort_m4156683373_gshared (); extern "C" void List_1_Sort_m1776255358_gshared (); extern "C" void List_1_ToArray_m3533455832_gshared (); extern "C" void List_1_TrimExcess_m2004514756_gshared (); extern "C" void List_1_get_Capacity_m2486809294_gshared (); extern "C" void List_1_set_Capacity_m2969391799_gshared (); extern "C" void List_1_get_Count_m845638235_gshared (); extern "C" void List_1_get_Item_m2197879061_gshared (); extern "C" void List_1_set_Item_m3658560340_gshared (); extern "C" void List_1__ctor_m2164983161_gshared (); extern "C" void List_1__cctor_m1337542316_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m1243254425_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m1995866425_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m1891857818_gshared (); extern "C" void List_1_System_Collections_IList_Add_m4271264217_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m1464819673_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m3828407883_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m2036969360_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m3749270066_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m567458162_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m2655927277_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m1836255877_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m3522184224_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m2397971721_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m603528194_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m1017084179_gshared (); extern "C" void List_1_Add_m1379180100_gshared (); extern "C" void List_1_GrowIfNeeded_m2433342921_gshared (); extern "C" void List_1_AddCollection_m3284813601_gshared (); extern "C" void List_1_AddEnumerable_m1321110033_gshared (); extern "C" void List_1_AddRange_m884869306_gshared (); extern "C" void List_1_AsReadOnly_m1096672201_gshared (); extern "C" void List_1_Clear_m3871149208_gshared (); extern "C" void List_1_Contains_m4086580990_gshared (); extern "C" void List_1_CopyTo_m352105188_gshared (); extern "C" void List_1_Find_m3680710386_gshared (); extern "C" void List_1_CheckMatch_m2013763705_gshared (); extern "C" void List_1_GetIndex_m821865344_gshared (); extern "C" void List_1_GetEnumerator_m4053501645_gshared (); extern "C" void List_1_IndexOf_m3051639274_gshared (); extern "C" void List_1_Shift_m439051997_gshared (); extern "C" void List_1_CheckIndex_m2850737480_gshared (); extern "C" void List_1_Insert_m1936082907_gshared (); extern "C" void List_1_CheckCollection_m746720422_gshared (); extern "C" void List_1_Remove_m2981732583_gshared (); extern "C" void List_1_RemoveAll_m319434801_gshared (); extern "C" void List_1_RemoveAt_m3966616367_gshared (); extern "C" void List_1_Reverse_m3030138629_gshared (); extern "C" void List_1_Sort_m1625178975_gshared (); extern "C" void List_1_Sort_m2659614836_gshared (); extern "C" void List_1_ToArray_m2390522926_gshared (); extern "C" void List_1_TrimExcess_m2896397750_gshared (); extern "C" void List_1_get_Capacity_m2038446304_gshared (); extern "C" void List_1_set_Capacity_m859503073_gshared (); extern "C" void List_1_get_Count_m1736231209_gshared (); extern "C" void List_1_get_Item_m3831223555_gshared (); extern "C" void List_1_set_Item_m125761062_gshared (); extern "C" void List_1__ctor_m1337392449_gshared (); extern "C" void List_1__cctor_m476277764_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m166627113_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m3316219081_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m454293978_gshared (); extern "C" void List_1_System_Collections_IList_Add_m3674406113_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m2481604681_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m2897263627_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m3635932016_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m1821277226_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3787929546_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m2270713861_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m3515852805_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m999831848_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m60655113_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2570285042_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m1634052283_gshared (); extern "C" void List_1_GrowIfNeeded_m2637898233_gshared (); extern "C" void List_1_AddCollection_m4114156849_gshared (); extern "C" void List_1_AddEnumerable_m1000825969_gshared (); extern "C" void List_1_AddRange_m2030106074_gshared (); extern "C" void List_1_AsReadOnly_m1681105545_gshared (); extern "C" void List_1_Clear_m2304044904_gshared (); extern "C" void List_1_Contains_m2638831974_gshared (); extern "C" void List_1_CopyTo_m158925060_gshared (); extern "C" void List_1_Find_m1270109362_gshared (); extern "C" void List_1_CheckMatch_m419866969_gshared (); extern "C" void List_1_GetIndex_m3262928832_gshared (); extern "C" void List_1_GetEnumerator_m3621075925_gshared (); extern "C" void List_1_IndexOf_m2722594082_gshared (); extern "C" void List_1_Shift_m2647431653_gshared (); extern "C" void List_1_CheckIndex_m1331979688_gshared (); extern "C" void List_1_Insert_m244730035_gshared (); extern "C" void List_1_CheckCollection_m1603829150_gshared (); extern "C" void List_1_Remove_m35225255_gshared (); extern "C" void List_1_RemoveAll_m4269479257_gshared (); extern "C" void List_1_RemoveAt_m1843849279_gshared (); extern "C" void List_1_Reverse_m3395936565_gshared (); extern "C" void List_1_Sort_m162281215_gshared (); extern "C" void List_1_Sort_m1781332044_gshared (); extern "C" void List_1_ToArray_m1915350374_gshared (); extern "C" void List_1_TrimExcess_m2917822182_gshared (); extern "C" void List_1__ctor_m3511181530_gshared (); extern "C" void List_1__ctor_m4213097859_gshared (); extern "C" void List_1__cctor_m258195429_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3625278020_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m3846687822_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m1422822879_gshared (); extern "C" void List_1_System_Collections_IList_Add_m1820917634_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m780443244_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m3713885384_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m941505143_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m3763718607_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1453178827_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m227393674_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m1804424478_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m3108597135_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m3666009382_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2378573511_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m2480767060_gshared (); extern "C" void List_1_GrowIfNeeded_m2239402788_gshared (); extern "C" void List_1_AddCollection_m767358372_gshared (); extern "C" void List_1_AddEnumerable_m1062096212_gshared (); extern "C" void List_1_AsReadOnly_m4108578222_gshared (); extern "C" void List_1_Contains_m2079304621_gshared (); extern "C" void List_1_CopyTo_m1896864447_gshared (); extern "C" void List_1_Find_m3862454845_gshared (); extern "C" void List_1_CheckMatch_m1345998262_gshared (); extern "C" void List_1_GetIndex_m2728961497_gshared (); extern "C" void List_1_GetEnumerator_m3339340714_gshared (); extern "C" void List_1_IndexOf_m2019441835_gshared (); extern "C" void List_1_Shift_m3083454298_gshared (); extern "C" void List_1_CheckIndex_m402842271_gshared (); extern "C" void List_1_Insert_m1176952016_gshared (); extern "C" void List_1_CheckCollection_m2220107869_gshared (); extern "C" void List_1_Remove_m1237648310_gshared (); extern "C" void List_1_RemoveAll_m3261187874_gshared (); extern "C" void List_1_RemoveAt_m2331128844_gshared (); extern "C" void List_1_Reverse_m3535321132_gshared (); extern "C" void List_1_Sort_m3574220472_gshared (); extern "C" void List_1_Sort_m1262985405_gshared (); extern "C" void List_1_ToArray_m3581542165_gshared (); extern "C" void List_1_TrimExcess_m2593819291_gshared (); extern "C" void List_1_get_Capacity_m2443158653_gshared (); extern "C" void List_1_set_Capacity_m3053659972_gshared (); extern "C" void List_1_get_Count_m1149731058_gshared (); extern "C" void List_1__ctor_m1739470559_gshared (); extern "C" void List_1__ctor_m3997225032_gshared (); extern "C" void List_1__cctor_m2095067232_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m2219076127_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m1178805395_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m413886046_gshared (); extern "C" void List_1_System_Collections_IList_Add_m2038396515_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m4009806475_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m2526560425_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m2469433788_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m4068476586_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2164218762_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m363138155_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m1429670979_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m1188646288_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m1745992999_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m3333265164_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m1722990777_gshared (); extern "C" void List_1_GrowIfNeeded_m3656820735_gshared (); extern "C" void List_1_AddCollection_m257454527_gshared (); extern "C" void List_1_AddEnumerable_m36504111_gshared (); extern "C" void List_1_AsReadOnly_m1419954895_gshared (); extern "C" void List_1_Contains_m1363332942_gshared (); extern "C" void List_1_CopyTo_m2750189956_gshared (); extern "C" void List_1_Find_m160737912_gshared (); extern "C" void List_1_CheckMatch_m4018158235_gshared (); extern "C" void List_1_GetIndex_m2513359832_gshared (); extern "C" void List_1_GetEnumerator_m1075582447_gshared (); extern "C" void List_1_IndexOf_m1520537898_gshared (); extern "C" void List_1_Shift_m3453072415_gshared (); extern "C" void List_1_CheckIndex_m483190820_gshared (); extern "C" void List_1_Insert_m432478581_gshared (); extern "C" void List_1_CheckCollection_m818371234_gshared (); extern "C" void List_1_Remove_m1738717045_gshared (); extern "C" void List_1_RemoveAll_m2238290115_gshared (); extern "C" void List_1_RemoveAt_m2929488689_gshared (); extern "C" void List_1_Reverse_m2016509831_gshared (); extern "C" void List_1_Sort_m269561757_gshared (); extern "C" void List_1_Sort_m1483183736_gshared (); extern "C" void List_1_ToArray_m2810936944_gshared (); extern "C" void List_1_TrimExcess_m2207230550_gshared (); extern "C" void List_1_get_Capacity_m3166663676_gshared (); extern "C" void List_1_set_Capacity_m1734764639_gshared (); extern "C" void List_1__ctor_m2082969060_gshared (); extern "C" void List_1__ctor_m593058937_gshared (); extern "C" void List_1__cctor_m1022807427_gshared (); extern "C" void List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m4236249210_gshared (); extern "C" void List_1_System_Collections_ICollection_CopyTo_m253974980_gshared (); extern "C" void List_1_System_Collections_IEnumerable_GetEnumerator_m3903187673_gshared (); extern "C" void List_1_System_Collections_IList_Add_m3311507516_gshared (); extern "C" void List_1_System_Collections_IList_Contains_m3010726442_gshared (); extern "C" void List_1_System_Collections_IList_IndexOf_m2096960898_gshared (); extern "C" void List_1_System_Collections_IList_Insert_m2260575489_gshared (); extern "C" void List_1_System_Collections_IList_Remove_m3853980401_gshared (); extern "C" void List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1563977549_gshared (); extern "C" void List_1_System_Collections_ICollection_get_IsSynchronized_m1147262924_gshared (); extern "C" void List_1_System_Collections_ICollection_get_SyncRoot_m766733268_gshared (); extern "C" void List_1_System_Collections_IList_get_IsFixedSize_m3339043989_gshared (); extern "C" void List_1_System_Collections_IList_get_IsReadOnly_m3905377192_gshared (); extern "C" void List_1_System_Collections_IList_get_Item_m2734833597_gshared (); extern "C" void List_1_System_Collections_IList_set_Item_m4016273526_gshared (); extern "C" void List_1_GrowIfNeeded_m342928366_gshared (); extern "C" void List_1_AddCollection_m1757535174_gshared (); extern "C" void List_1_AddEnumerable_m3019862006_gshared (); extern "C" void List_1_AsReadOnly_m1406961904_gshared (); extern "C" void List_1_Contains_m2184078187_gshared (); extern "C" void List_1_CopyTo_m3958592053_gshared (); extern "C" void List_1_Find_m1809770055_gshared (); extern "C" void List_1_CheckMatch_m1184924052_gshared (); extern "C" void List_1_GetIndex_m433539411_gshared (); extern "C" void List_1_GetEnumerator_m738869388_gshared (); extern "C" void List_1_IndexOf_m3570614833_gshared (); extern "C" void List_1_Shift_m3824049528_gshared (); extern "C" void List_1_CheckIndex_m1944339753_gshared (); extern "C" void List_1_Insert_m1833581358_gshared (); extern "C" void List_1_CheckCollection_m2028764095_gshared (); extern "C" void List_1_Remove_m2802756144_gshared (); extern "C" void List_1_RemoveAll_m1444807780_gshared (); extern "C" void List_1_RemoveAt_m4076331586_gshared (); extern "C" void List_1_Reverse_m1170127882_gshared (); extern "C" void List_1_Sort_m2158253314_gshared (); extern "C" void List_1_Sort_m2562910171_gshared (); extern "C" void List_1_ToArray_m925997899_gshared (); extern "C" void List_1_TrimExcess_m1012566565_gshared (); extern "C" void List_1_get_Capacity_m1435386499_gshared (); extern "C" void List_1_set_Capacity_m1823402470_gshared (); extern "C" void List_1_get_Count_m1249351212_gshared (); extern "C" void Collection_1__ctor_m340822524_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2091587849_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m1047946700_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m1756583169_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m578683352_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m3365884450_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m4075083918_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m266942173_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m441326653_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m2433014468_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m3074531042_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m2181653025_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m781557632_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m3376056117_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m2391188074_gshared (); extern "C" void Collection_1_Add_m4031565265_gshared (); extern "C" void Collection_1_Clear_m1887013165_gshared (); extern "C" void Collection_1_ClearItems_m3685814679_gshared (); extern "C" void Collection_1_Contains_m1321776939_gshared (); extern "C" void Collection_1_CopyTo_m1840908033_gshared (); extern "C" void Collection_1_GetEnumerator_m3441330476_gshared (); extern "C" void Collection_1_IndexOf_m658556201_gshared (); extern "C" void Collection_1_Insert_m240759002_gshared (); extern "C" void Collection_1_InsertItem_m2755057283_gshared (); extern "C" void Collection_1_Remove_m1593290756_gshared (); extern "C" void Collection_1_RemoveAt_m1576816886_gshared (); extern "C" void Collection_1_RemoveItem_m3737802444_gshared (); extern "C" void Collection_1_get_Count_m3834276648_gshared (); extern "C" void Collection_1_get_Item_m1739410122_gshared (); extern "C" void Collection_1_set_Item_m2437925129_gshared (); extern "C" void Collection_1_SetItem_m1078860490_gshared (); extern "C" void Collection_1_IsValidItem_m1002882727_gshared (); extern "C" void Collection_1_ConvertItem_m3563206219_gshared (); extern "C" void Collection_1_CheckWritable_m3099004971_gshared (); extern "C" void Collection_1_IsSynchronized_m1319022347_gshared (); extern "C" void Collection_1_IsFixedSize_m393120334_gshared (); extern "C" void Collection_1__ctor_m3198200948_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3869278929_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m3758640020_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m2209987961_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m2954354104_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m323652826_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m3357535786_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m2543097941_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m3676148205_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m1924133708_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m2585379274_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m2408637569_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m1000583304_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m2415649949_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m3488446830_gshared (); extern "C" void Collection_1_Add_m2613548553_gshared (); extern "C" void Collection_1_Clear_m3860339101_gshared (); extern "C" void Collection_1_ClearItems_m2359888219_gshared (); extern "C" void Collection_1_Contains_m1652249119_gshared (); extern "C" void Collection_1_CopyTo_m2993977545_gshared (); extern "C" void Collection_1_GetEnumerator_m914650748_gshared (); extern "C" void Collection_1_IndexOf_m238348105_gshared (); extern "C" void Collection_1_Insert_m3594407958_gshared (); extern "C" void Collection_1_InsertItem_m1391780791_gshared (); extern "C" void Collection_1_Remove_m3895219432_gshared (); extern "C" void Collection_1_RemoveAt_m290627370_gshared (); extern "C" void Collection_1_RemoveItem_m4097730824_gshared (); extern "C" void Collection_1_get_Count_m1539014344_gshared (); extern "C" void Collection_1_get_Item_m1154492510_gshared (); extern "C" void Collection_1_set_Item_m4170293313_gshared (); extern "C" void Collection_1_SetItem_m2643403726_gshared (); extern "C" void Collection_1_IsValidItem_m2254106115_gshared (); extern "C" void Collection_1_ConvertItem_m2308084327_gshared (); extern "C" void Collection_1_CheckWritable_m2756357359_gshared (); extern "C" void Collection_1_IsSynchronized_m2601980439_gshared (); extern "C" void Collection_1_IsFixedSize_m1690655146_gshared (); extern "C" void Collection_1__ctor_m2818834331_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4096071066_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m3896480607_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m1624138998_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m1527796839_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m439054215_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m1667133881_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m3303840316_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m698976938_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m1622338911_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m815502691_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m1624702704_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m2329986891_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m416006758_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m4023328701_gshared (); extern "C" void Collection_1_Add_m1895146768_gshared (); extern "C" void Collection_1_Clear_m2734620236_gshared (); extern "C" void Collection_1_ClearItems_m3585785594_gshared (); extern "C" void Collection_1_Contains_m1423522454_gshared (); extern "C" void Collection_1_CopyTo_m2028291972_gshared (); extern "C" void Collection_1_GetEnumerator_m434271983_gshared (); extern "C" void Collection_1_IndexOf_m1048636762_gshared (); extern "C" void Collection_1_Insert_m1916633065_gshared (); extern "C" void Collection_1_InsertItem_m1775683682_gshared (); extern "C" void Collection_1_Remove_m3616495577_gshared (); extern "C" void Collection_1_RemoveAt_m1095666101_gshared (); extern "C" void Collection_1_RemoveItem_m3378524409_gshared (); extern "C" void Collection_1_get_Count_m4168522791_gshared (); extern "C" void Collection_1_get_Item_m2293587641_gshared (); extern "C" void Collection_1_set_Item_m3803272710_gshared (); extern "C" void Collection_1_SetItem_m1694051437_gshared (); extern "C" void Collection_1_IsValidItem_m1304951912_gshared (); extern "C" void Collection_1_ConvertItem_m2185647560_gshared (); extern "C" void Collection_1_CheckWritable_m2334289660_gshared (); extern "C" void Collection_1_IsSynchronized_m3261594010_gshared (); extern "C" void Collection_1_IsFixedSize_m162922409_gshared (); extern "C" void Collection_1__ctor_m3903788797_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m979600052_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m4193844941_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m513344636_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m1953936885_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m3345685421_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m3619893511_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m1622702254_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1762842100_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m2693766457_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m1997144145_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m3708018606_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m169194101_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m1453290468_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m150887383_gshared (); extern "C" void Collection_1_Add_m3985367602_gshared (); extern "C" void Collection_1_Clear_m268154422_gshared (); extern "C" void Collection_1_ClearItems_m3021709828_gshared (); extern "C" void Collection_1_Contains_m1606928108_gshared (); extern "C" void Collection_1_CopyTo_m1200286610_gshared (); extern "C" void Collection_1_GetEnumerator_m2816357893_gshared (); extern "C" void Collection_1_IndexOf_m1283309724_gshared (); extern "C" void Collection_1_Insert_m3505885391_gshared (); extern "C" void Collection_1_InsertItem_m383205760_gshared (); extern "C" void Collection_1_Remove_m760037019_gshared (); extern "C" void Collection_1_RemoveAt_m560005219_gshared (); extern "C" void Collection_1_RemoveItem_m1058555919_gshared (); extern "C" void Collection_1_get_Count_m3509417749_gshared (); extern "C" void Collection_1_get_Item_m300557223_gshared (); extern "C" void Collection_1_set_Item_m3013463288_gshared (); extern "C" void Collection_1_SetItem_m1566861959_gshared (); extern "C" void Collection_1_IsValidItem_m1908012838_gshared (); extern "C" void Collection_1_ConvertItem_m3655413902_gshared (); extern "C" void Collection_1_CheckWritable_m2467777750_gshared (); extern "C" void Collection_1_IsSynchronized_m3880942788_gshared (); extern "C" void Collection_1_IsFixedSize_m945946071_gshared (); extern "C" void Collection_1__ctor_m3403655424_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2730249519_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m1335644572_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m1812936427_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m669232520_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m4223806958_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m51140022_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m2140320323_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1901189211_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m1266213776_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m2547259708_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m2778306027_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m474868292_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m2254776227_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m367940682_gshared (); extern "C" void Collection_1_Add_m3182287887_gshared (); extern "C" void Collection_1_Clear_m3317293907_gshared (); extern "C" void Collection_1_ClearItems_m1410275009_gshared (); extern "C" void Collection_1_Contains_m3292349561_gshared (); extern "C" void Collection_1_CopyTo_m2282972507_gshared (); extern "C" void Collection_1_GetEnumerator_m1480796052_gshared (); extern "C" void Collection_1_IndexOf_m688835775_gshared (); extern "C" void Collection_1_Insert_m44548038_gshared (); extern "C" void Collection_1_InsertItem_m2583364417_gshared (); extern "C" void Collection_1_Remove_m4136193368_gshared (); extern "C" void Collection_1_RemoveAt_m2298154778_gshared (); extern "C" void Collection_1_RemoveItem_m2290432436_gshared (); extern "C" void Collection_1_get_Count_m3868337800_gshared (); extern "C" void Collection_1_get_Item_m1044868508_gshared (); extern "C" void Collection_1_set_Item_m2199807215_gshared (); extern "C" void Collection_1_SetItem_m3822382874_gshared (); extern "C" void Collection_1_IsValidItem_m1224378277_gshared (); extern "C" void Collection_1_ConvertItem_m2972284337_gshared (); extern "C" void Collection_1_CheckWritable_m691269733_gshared (); extern "C" void Collection_1_IsSynchronized_m901474669_gshared (); extern "C" void Collection_1_IsFixedSize_m1816795498_gshared (); extern "C" void Collection_1__ctor_m3209814810_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m833878573_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m2859266050_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m2656507741_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m1511844254_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m3210868188_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m4089922984_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m2389175113_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m2259205169_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m2454331058_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m1535537580_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m227446821_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m1820916678_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m1416875369_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m565207412_gshared (); extern "C" void Collection_1_Add_m269634181_gshared (); extern "C" void Collection_1_Clear_m2405574977_gshared (); extern "C" void Collection_1_ClearItems_m1280157591_gshared (); extern "C" void Collection_1_Contains_m1299140035_gshared (); extern "C" void Collection_1_CopyTo_m911594061_gshared (); extern "C" void Collection_1_GetEnumerator_m3801750330_gshared (); extern "C" void Collection_1_IndexOf_m2700825189_gshared (); extern "C" void Collection_1_Insert_m3143457948_gshared (); extern "C" void Collection_1_InsertItem_m2988595291_gshared (); extern "C" void Collection_1_Remove_m1361950154_gshared (); extern "C" void Collection_1_RemoveAt_m3988604536_gshared (); extern "C" void Collection_1_RemoveItem_m3987135770_gshared (); extern "C" void Collection_1_get_Count_m2275297230_gshared (); extern "C" void Collection_1_get_Item_m1415164804_gshared (); extern "C" void Collection_1_set_Item_m1822499517_gshared (); extern "C" void Collection_1_SetItem_m3922004788_gshared (); extern "C" void Collection_1_IsValidItem_m429993695_gshared (); extern "C" void Collection_1_ConvertItem_m3168406667_gshared (); extern "C" void Collection_1_CheckWritable_m2744664947_gshared (); extern "C" void Collection_1_IsSynchronized_m3188913819_gshared (); extern "C" void Collection_1_IsFixedSize_m1962363848_gshared (); extern "C" void Collection_1__ctor_m2421771870_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3440030017_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m2909922374_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m3927563793_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m2085691818_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m2973794400_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m3976312928_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m2968289909_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1597250373_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m2440175782_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m3802141344_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m993584401_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m2857348178_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m444896877_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m3153658436_gshared (); extern "C" void Collection_1_Add_m1287729225_gshared (); extern "C" void Collection_1_Clear_m4277830205_gshared (); extern "C" void Collection_1_ClearItems_m3446813399_gshared (); extern "C" void Collection_1_Contains_m104325011_gshared (); extern "C" void Collection_1_CopyTo_m3960508929_gshared (); extern "C" void Collection_1_GetEnumerator_m1417525918_gshared (); extern "C" void Collection_1_IndexOf_m1939184889_gshared (); extern "C" void Collection_1_Insert_m3041550124_gshared (); extern "C" void Collection_1_InsertItem_m2646054899_gshared (); extern "C" void Collection_1_Remove_m1798559666_gshared (); extern "C" void Collection_1_RemoveAt_m3454169520_gshared (); extern "C" void Collection_1_RemoveItem_m2565709010_gshared (); extern "C" void Collection_1_get_Count_m3398138634_gshared (); extern "C" void Collection_1_get_Item_m853386420_gshared (); extern "C" void Collection_1_set_Item_m1223389833_gshared (); extern "C" void Collection_1_SetItem_m743789492_gshared (); extern "C" void Collection_1_IsValidItem_m4107344143_gshared (); extern "C" void Collection_1_ConvertItem_m49676267_gshared (); extern "C" void Collection_1_CheckWritable_m1981549411_gshared (); extern "C" void Collection_1_IsSynchronized_m1020109595_gshared (); extern "C" void Collection_1_IsFixedSize_m218241296_gshared (); extern "C" void Collection_1__ctor_m2877526632_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2310647315_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m3634566396_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m3501062047_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m2101501424_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m1897568526_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m1950953062_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m3259603871_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1635106967_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m1552283608_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m1079933526_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m3946690039_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m98943364_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m4028692259_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m1304348310_gshared (); extern "C" void Collection_1_Add_m3912369843_gshared (); extern "C" void Collection_1_Clear_m445145071_gshared (); extern "C" void Collection_1_ClearItems_m4268731177_gshared (); extern "C" void Collection_1_Contains_m4154862785_gshared (); extern "C" void Collection_1_CopyTo_m2849468407_gshared (); extern "C" void Collection_1_GetEnumerator_m342981132_gshared (); extern "C" void Collection_1_IndexOf_m982392499_gshared (); extern "C" void Collection_1_Insert_m3109089306_gshared (); extern "C" void Collection_1_InsertItem_m1225429801_gshared (); extern "C" void Collection_1_Remove_m3602697996_gshared (); extern "C" void Collection_1_RemoveAt_m2830794054_gshared (); extern "C" void Collection_1_RemoveItem_m3509243296_gshared (); extern "C" void Collection_1_get_Count_m4080271760_gshared (); extern "C" void Collection_1_get_Item_m3041416970_gshared (); extern "C" void Collection_1_set_Item_m931801075_gshared (); extern "C" void Collection_1_SetItem_m3715941382_gshared (); extern "C" void Collection_1_IsValidItem_m2164075061_gshared (); extern "C" void Collection_1_ConvertItem_m3057301945_gshared (); extern "C" void Collection_1_CheckWritable_m1820193045_gshared (); extern "C" void Collection_1_IsSynchronized_m1260165421_gshared (); extern "C" void Collection_1_IsFixedSize_m3428067414_gshared (); extern "C" void Collection_1__ctor_m824713192_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m258949859_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m1530034228_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m357926791_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m2091889616_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m3870109702_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m4103700798_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m1564892471_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m2275830295_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m4268731816_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m2157752542_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m2204750039_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m1235612188_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m2836259259_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m1144252646_gshared (); extern "C" void Collection_1_Add_m74004467_gshared (); extern "C" void Collection_1_Clear_m902663591_gshared (); extern "C" void Collection_1_ClearItems_m693003625_gshared (); extern "C" void Collection_1_Contains_m643401393_gshared (); extern "C" void Collection_1_CopyTo_m2830694815_gshared (); extern "C" void Collection_1_GetEnumerator_m2569672788_gshared (); extern "C" void Collection_1_IndexOf_m3343330387_gshared (); extern "C" void Collection_1_Insert_m4010554762_gshared (); extern "C" void Collection_1_InsertItem_m1073626529_gshared (); extern "C" void Collection_1_Remove_m2017992820_gshared (); extern "C" void Collection_1_RemoveAt_m3860546430_gshared (); extern "C" void Collection_1_RemoveItem_m1406181352_gshared (); extern "C" void Collection_1_get_Count_m804306016_gshared (); extern "C" void Collection_1_get_Item_m4215988522_gshared (); extern "C" void Collection_1_set_Item_m2966269643_gshared (); extern "C" void Collection_1_SetItem_m2707773254_gshared (); extern "C" void Collection_1_IsValidItem_m1598831189_gshared (); extern "C" void Collection_1_ConvertItem_m2563496281_gshared (); extern "C" void Collection_1_CheckWritable_m3938993573_gshared (); extern "C" void Collection_1_IsSynchronized_m278383949_gshared (); extern "C" void Collection_1_IsFixedSize_m3675221982_gshared (); extern "C" void Collection_1__ctor_m280610349_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m332578650_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m2173992613_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m2964241726_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m1668787801_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m201332997_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m1845921895_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m1413704304_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1300727994_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m1375670137_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m3954909253_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m645437336_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m4005091053_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m1122792492_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m1771213311_gshared (); extern "C" void Collection_1_Add_m3780991772_gshared (); extern "C" void Collection_1_Clear_m1781213416_gshared (); extern "C" void Collection_1_ClearItems_m4012342966_gshared (); extern "C" void Collection_1_Contains_m1999290510_gshared (); extern "C" void Collection_1_CopyTo_m2609841924_gshared (); extern "C" void Collection_1_GetEnumerator_m3988846785_gshared (); extern "C" void Collection_1_IndexOf_m3205002734_gshared (); extern "C" void Collection_1_Insert_m546633447_gshared (); extern "C" void Collection_1_InsertItem_m2280405802_gshared (); extern "C" void Collection_1_Remove_m2358120395_gshared (); extern "C" void Collection_1_RemoveAt_m3837863139_gshared (); extern "C" void Collection_1_RemoveItem_m4050404863_gshared (); extern "C" void Collection_1_get_Count_m2168572537_gshared (); extern "C" void Collection_1_get_Item_m3791221403_gshared (); extern "C" void Collection_1_set_Item_m3440986310_gshared (); extern "C" void Collection_1_SetItem_m546457615_gshared (); extern "C" void Collection_1_IsValidItem_m1082009684_gshared (); extern "C" void Collection_1_ConvertItem_m2559468638_gshared (); extern "C" void Collection_1_CheckWritable_m732350052_gshared (); extern "C" void Collection_1_IsSynchronized_m1366278230_gshared (); extern "C" void Collection_1_IsFixedSize_m499196375_gshared (); extern "C" void Collection_1__ctor_m2803866674_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m673880345_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m1503676394_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m1452790461_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m640532794_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m2730731556_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m1461992904_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m1511106741_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m1898663061_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m3261717850_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m1145246314_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m3252091801_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m2316991470_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m287847793_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m3257045604_gshared (); extern "C" void Collection_1_Add_m476333057_gshared (); extern "C" void Collection_1_Clear_m1950842157_gshared (); extern "C" void Collection_1_ClearItems_m1649070779_gshared (); extern "C" void Collection_1_Contains_m1283318831_gshared (); extern "C" void Collection_1_CopyTo_m3463167433_gshared (); extern "C" void Collection_1_GetEnumerator_m3806968838_gshared (); extern "C" void Collection_1_IndexOf_m1982527469_gshared (); extern "C" void Collection_1_Insert_m4278832780_gshared (); extern "C" void Collection_1_InsertItem_m707141967_gshared (); extern "C" void Collection_1_Remove_m2859467914_gshared (); extern "C" void Collection_1_RemoveAt_m2471647752_gshared (); extern "C" void Collection_1_RemoveItem_m2272047354_gshared (); extern "C" void Collection_1_get_Count_m785673946_gshared (); extern "C" void Collection_1_get_Item_m794668022_gshared (); extern "C" void Collection_1_set_Item_m3169051009_gshared (); extern "C" void Collection_1_SetItem_m1360166612_gshared (); extern "C" void Collection_1_IsValidItem_m404831699_gshared (); extern "C" void Collection_1_ConvertItem_m246573059_gshared (); extern "C" void Collection_1_CheckWritable_m3203250655_gshared (); extern "C" void Collection_1_IsSynchronized_m971497175_gshared (); extern "C" void Collection_1_IsFixedSize_m1280898648_gshared (); extern "C" void Collection_1__ctor_m1391736395_gshared (); extern "C" void Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m356644320_gshared (); extern "C" void Collection_1_System_Collections_ICollection_CopyTo_m4082149895_gshared (); extern "C" void Collection_1_System_Collections_IEnumerable_GetEnumerator_m4174600764_gshared (); extern "C" void Collection_1_System_Collections_IList_Add_m2465313687_gshared (); extern "C" void Collection_1_System_Collections_IList_Contains_m3229099071_gshared (); extern "C" void Collection_1_System_Collections_IList_IndexOf_m277631909_gshared (); extern "C" void Collection_1_System_Collections_IList_Insert_m435904526_gshared (); extern "C" void Collection_1_System_Collections_IList_Remove_m2686870640_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_IsSynchronized_m2134448703_gshared (); extern "C" void Collection_1_System_Collections_ICollection_get_SyncRoot_m2871804519_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsFixedSize_m1382816922_gshared (); extern "C" void Collection_1_System_Collections_IList_get_IsReadOnly_m456424563_gshared (); extern "C" void Collection_1_System_Collections_IList_get_Item_m1995028750_gshared (); extern "C" void Collection_1_System_Collections_IList_set_Item_m1553863349_gshared (); extern "C" void Collection_1_Add_m813799802_gshared (); extern "C" void Collection_1_Clear_m2820045022_gshared (); extern "C" void Collection_1_ClearItems_m2476407724_gshared (); extern "C" void Collection_1_Contains_m572221384_gshared (); extern "C" void Collection_1_CopyTo_m42272870_gshared (); extern "C" void Collection_1_GetEnumerator_m2294350815_gshared (); extern "C" void Collection_1_IndexOf_m4198354032_gshared (); extern "C" void Collection_1_Insert_m1489311409_gshared (); extern "C" void Collection_1_InsertItem_m724820684_gshared (); extern "C" void Collection_1_Remove_m3355928137_gshared (); extern "C" void Collection_1_RemoveAt_m1714549893_gshared (); extern "C" void Collection_1_RemoveItem_m1606402057_gshared (); extern "C" void Collection_1_get_Count_m727437623_gshared (); extern "C" void Collection_1_get_Item_m310799569_gshared (); extern "C" void Collection_1_set_Item_m3254085220_gshared (); extern "C" void Collection_1_SetItem_m403816581_gshared (); extern "C" void Collection_1_IsValidItem_m2247536214_gshared (); extern "C" void Collection_1_ConvertItem_m3941916604_gshared (); extern "C" void Collection_1_CheckWritable_m2105306330_gshared (); extern "C" void Collection_1_IsSynchronized_m3100213596_gshared (); extern "C" void Collection_1_IsFixedSize_m304327897_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m1954392161_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m572380027_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m147484303_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m1261508920_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m332075262_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m1592158292_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1989437080_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1532495847_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1251192075_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m1170021578_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m3105529063_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m4111569886_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m3928905452_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m2320811592_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3499979880_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m1130110335_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m2638959775_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m1101606769_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m1518595654_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2702046016_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1449825959_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3043542810_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m3677233651_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1233322304_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m1800950533_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m2966309343_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m900113698_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m3753722947_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m1555675278_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m1402893004_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m1646338777_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2039498095_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m388357963_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m1806207944_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3358595294_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m352618588_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2394308736_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1769983091_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1457517975_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m406069566_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m2739298075_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m2333231354_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m1704696544_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m1633768124_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3466286536_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m276668235_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m1705518883_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m525136953_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m162628114_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m3373229908_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m158012227_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m754885222_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m375043207_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m3603878768_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m2306259645_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m1099920083_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m1232423838_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m3738093351_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m1203010282_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m1909688500_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m3631866590_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m500367370_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3567018366_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m109972123_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3503689987_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m3335151847_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2627096795_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m25653560_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2261384768_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m90405417_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m4244142392_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m527174473_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m3006875897_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m1472898377_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m2332740791_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m3679749778_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m1743441024_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2459290100_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2987885125_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m784229325_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m2568100242_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3772083849_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m378281456_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m3614691999_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m1895759124_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m1342318446_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m2458478577_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m4259615576_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m1977104809_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m2467004527_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m2364452928_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3016584728_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3686017508_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m506525809_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m402629201_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m1731148677_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2574501849_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1729178394_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3561954522_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m318855319_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1401363518_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m3178501591_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m3630436103_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m324163567_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3611583109_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m3359366916_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m2668898250_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3237556482_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2170447775_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m4166050747_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1804683472_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m37490227_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m3478051566_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1943202745_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m2768780778_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m3718256764_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m1032006023_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m4125296794_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m2010523671_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m1760104285_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m1539890895_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1551974917_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m519653833_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m2456642944_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3751131234_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2137782652_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m4108352242_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1099846173_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3508872969_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m4169787258_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m3417721261_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m3065652010_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m1751509776_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m3508431156_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3232551672_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m2659121605_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m2779327941_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3004588099_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2344337514_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2779904122_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m465187273_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3531246526_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m3472752385_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1272038804_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m1656472127_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m3277805657_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m713393110_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m3054637117_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m2180604490_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m724340838_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m3532148437_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1138306067_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m1147417863_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m1259068750_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m1060547576_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2210507818_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1215755942_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m257196015_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1280561739_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m1129689124_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m342729111_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m224184952_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m1918003010_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m3707723158_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m4203085614_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m3650067527_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m2350545199_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2396335261_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m59103888_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m1577944046_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1563258303_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m4048508940_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m2896192331_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m2206229246_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m267119689_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m3865292431_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m2315871588_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m868920811_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m329772104_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m3471709410_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m1419645665_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2328364475_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m1785953911_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m4216310986_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m1342418180_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2955858126_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1043133762_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m3447198503_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2197226755_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m185585668_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m4248982967_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m88481520_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m2240307498_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m673434054_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m2071241978_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m1882335319_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m225317735_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3760970257_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m3127987432_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2300639166_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1559726679_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m823169068_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m809154283_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1377990618_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m3936562733_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m3099014815_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m1782241364_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m3774411091_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m2082329264_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m2581990262_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m1786989483_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1173143793_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3724457061_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m3054305464_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m2957273994_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m878653284_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m4056831384_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m3046138769_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m622501365_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m2324257114_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1557552869_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m3806843030_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m2632477376_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m927375828_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m1450905824_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m3936197025_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m3878418841_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2372993063_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m4063596282_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m325658132_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m2892453085_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m1761907646_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m1667570241_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1912029068_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m867570235_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m1652036789_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m2986037858_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m1205990061_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m1104075286_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m1696267180_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m2387481411_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3063178201_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m2503787861_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m395145896_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m356890538_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m3058697372_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2319062584_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1918537449_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2873538493_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m1807854698_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m339327173_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m564769262_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m3127376744_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m3533985860_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3716660032_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m2971455841_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m688362945_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m1207420111_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m628935618_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2701391220_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1921059509_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3872065502_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m887129009_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m1149349508_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m61178035_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m154326197_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m4168861394_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m2471343701_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m2564472926_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m1616882548_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m1520759010_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3709183314_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3157895454_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m2811860789_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m974176789_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m3794195337_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1581328221_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1524777008_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m465108000_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m4126742951_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1734360860_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m616574295_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m1858417639_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m2634528543_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m1302341061_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m3748573134_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m3710292720_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m1598516528_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m191878399_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m3194953447_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m4228898522_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m1358824019_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m1831743662_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m4259124821_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m1816350632_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m679313638_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m450181087_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m723866064_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m336636247_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m3656051313_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m3947957789_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1849306263_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m2412307011_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m2409570138_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3672130932_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2749215790_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m3130422200_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m3663361643_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1151964895_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m944036076_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1732315419_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m4058186040_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m2600246370_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m1545447998_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3863477414_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m2651065875_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m2200089035_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2253306805_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m1670521312_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m536709516_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m3502773339_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m632912084_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m1151103091_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m3763290810_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m3502838601_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m2404198955_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m2481390116_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m224962127_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m1052601528_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m3778245964_gshared (); extern "C" void ReadOnlyCollection_1__ctor_m3868625988_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2043670000_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m964488020_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m584948331_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m315673811_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m1709695463_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m4254912039_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m338788498_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3726550170_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m504416581_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1583760158_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Add_m3775358745_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Clear_m38663429_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Contains_m4073811941_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_IndexOf_m360011399_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Insert_m571902768_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_Remove_m2507730234_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3967262286_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m3058846777_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2595377349_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m3611810264_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m732822989_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_get_Item_m3649741260_gshared (); extern "C" void ReadOnlyCollection_1_System_Collections_IList_set_Item_m2810776479_gshared (); extern "C" void ReadOnlyCollection_1_Contains_m3547015534_gshared (); extern "C" void ReadOnlyCollection_1_CopyTo_m896515972_gshared (); extern "C" void ReadOnlyCollection_1_GetEnumerator_m2144677057_gshared (); extern "C" void ReadOnlyCollection_1_IndexOf_m4025482062_gshared (); extern "C" void ReadOnlyCollection_1_get_Count_m1778049945_gshared (); extern "C" void ReadOnlyCollection_1_get_Item_m3355831099_gshared (); extern "C" void Comparison_1__ctor_m1385856818_gshared (); extern "C" void Comparison_1_Invoke_m1638248750_gshared (); extern "C" void Comparison_1_BeginInvoke_m1384288579_gshared (); extern "C" void Comparison_1_EndInvoke_m4001365168_gshared (); extern "C" void Comparison_1__ctor_m3745606970_gshared (); extern "C" void Comparison_1_Invoke_m64450954_gshared (); extern "C" void Comparison_1_BeginInvoke_m2863910783_gshared (); extern "C" void Comparison_1_EndInvoke_m596328912_gshared (); extern "C" void Comparison_1__ctor_m4259527427_gshared (); extern "C" void Comparison_1_Invoke_m1513132985_gshared (); extern "C" void Comparison_1_BeginInvoke_m1549337842_gshared (); extern "C" void Comparison_1_EndInvoke_m179917407_gshared (); extern "C" void Comparison_1__ctor_m2713846449_gshared (); extern "C" void Comparison_1_Invoke_m2155124615_gshared (); extern "C" void Comparison_1_BeginInvoke_m1256831960_gshared (); extern "C" void Comparison_1_EndInvoke_m694528669_gshared (); extern "C" void Comparison_1__ctor_m2942822710_gshared (); extern "C" void Comparison_1_Invoke_m4190993814_gshared (); extern "C" void Comparison_1_BeginInvoke_m3266062717_gshared (); extern "C" void Comparison_1_EndInvoke_m2033936832_gshared (); extern "C" void Comparison_1_Invoke_m345024424_gshared (); extern "C" void Comparison_1_BeginInvoke_m2263530995_gshared (); extern "C" void Comparison_1_EndInvoke_m4098579094_gshared (); extern "C" void Comparison_1_Invoke_m1670081898_gshared (); extern "C" void Comparison_1_BeginInvoke_m2330243615_gshared (); extern "C" void Comparison_1_EndInvoke_m3762228136_gshared (); extern "C" void Comparison_1__ctor_m3767256160_gshared (); extern "C" void Comparison_1_Invoke_m2645957248_gshared (); extern "C" void Comparison_1_BeginInvoke_m2910474027_gshared (); extern "C" void Comparison_1_EndInvoke_m4170692898_gshared (); extern "C" void Comparison_1__ctor_m1832890678_gshared (); extern "C" void Comparison_1_Invoke_m353639462_gshared (); extern "C" void Comparison_1_BeginInvoke_m4142385273_gshared (); extern "C" void Comparison_1_EndInvoke_m4174686984_gshared (); extern "C" void Comparison_1__ctor_m852795630_gshared (); extern "C" void Comparison_1_Invoke_m897835902_gshared (); extern "C" void Comparison_1_BeginInvoke_m4224593217_gshared (); extern "C" void Comparison_1_EndInvoke_m1074531304_gshared (); extern "C" void Comparison_1__ctor_m883164393_gshared (); extern "C" void Comparison_1_Invoke_m2664841287_gshared (); extern "C" void Comparison_1_BeginInvoke_m4030535530_gshared (); extern "C" void Comparison_1_EndInvoke_m153558673_gshared (); extern "C" void Comparison_1__ctor_m3438229060_gshared (); extern "C" void Comparison_1_Invoke_m4047872872_gshared (); extern "C" void Comparison_1_BeginInvoke_m1103040431_gshared (); extern "C" void Comparison_1_EndInvoke_m2678763282_gshared (); extern "C" void Comparison_1__ctor_m2159122699_gshared (); extern "C" void Comparison_1_Invoke_m1081247749_gshared (); extern "C" void Comparison_1_BeginInvoke_m4056757384_gshared (); extern "C" void Comparison_1_EndInvoke_m3572773391_gshared (); extern "C" void Func_2_Invoke_m2968608789_gshared (); extern "C" void Func_2_BeginInvoke_m1429757044_gshared (); extern "C" void Func_2_EndInvoke_m924416567_gshared (); extern "C" void Func_2_BeginInvoke_m669892004_gshared (); extern "C" void Func_2_EndInvoke_m971580865_gshared (); extern "C" void Nullable_1_Equals_m3860982732_AdjustorThunk (); extern "C" void Nullable_1_Equals_m1889119397_AdjustorThunk (); extern "C" void Nullable_1_GetHashCode_m1791015856_AdjustorThunk (); extern "C" void Nullable_1_ToString_m1238126148_AdjustorThunk (); extern "C" void Predicate_1__ctor_m2826800414_gshared (); extern "C" void Predicate_1_Invoke_m695569038_gshared (); extern "C" void Predicate_1_BeginInvoke_m2559992383_gshared (); extern "C" void Predicate_1_EndInvoke_m1202813828_gshared (); extern "C" void Predicate_1__ctor_m1767993638_gshared (); extern "C" void Predicate_1_Invoke_m527131606_gshared (); extern "C" void Predicate_1_BeginInvoke_m1448216027_gshared (); extern "C" void Predicate_1_EndInvoke_m215026240_gshared (); extern "C" void Predicate_1__ctor_m1292402863_gshared (); extern "C" void Predicate_1_Invoke_m2060780095_gshared (); extern "C" void Predicate_1_BeginInvoke_m1856151290_gshared (); extern "C" void Predicate_1_EndInvoke_m259774785_gshared (); extern "C" void Predicate_1__ctor_m541404361_gshared (); extern "C" void Predicate_1_Invoke_m744913181_gshared (); extern "C" void Predicate_1_BeginInvoke_m2336395304_gshared (); extern "C" void Predicate_1_EndInvoke_m1604508263_gshared (); extern "C" void Predicate_1__ctor_m3811123782_gshared (); extern "C" void Predicate_1_Invoke_m122788314_gshared (); extern "C" void Predicate_1_BeginInvoke_m2959352225_gshared (); extern "C" void Predicate_1_EndInvoke_m924884444_gshared (); extern "C" void Predicate_1__ctor_m1567825400_gshared (); extern "C" void Predicate_1_Invoke_m3860206640_gshared (); extern "C" void Predicate_1_BeginInvoke_m4068629879_gshared (); extern "C" void Predicate_1_EndInvoke_m973058386_gshared (); extern "C" void Predicate_1__ctor_m1020292372_gshared (); extern "C" void Predicate_1_Invoke_m3539717340_gshared (); extern "C" void Predicate_1_BeginInvoke_m3056726495_gshared (); extern "C" void Predicate_1_EndInvoke_m2354180346_gshared (); extern "C" void Predicate_1__ctor_m784266182_gshared (); extern "C" void Predicate_1_Invoke_m577088274_gshared (); extern "C" void Predicate_1_BeginInvoke_m2329589669_gshared (); extern "C" void Predicate_1_EndInvoke_m3442731496_gshared (); extern "C" void Predicate_1__ctor_m549279630_gshared (); extern "C" void Predicate_1_Invoke_m2883675618_gshared (); extern "C" void Predicate_1_BeginInvoke_m3926587117_gshared (); extern "C" void Predicate_1_EndInvoke_m337889472_gshared (); extern "C" void Predicate_1__ctor_m2863314033_gshared (); extern "C" void Predicate_1_Invoke_m3001657933_gshared (); extern "C" void Predicate_1_BeginInvoke_m866207434_gshared (); extern "C" void Predicate_1_EndInvoke_m3406729927_gshared (); extern "C" void Predicate_1__ctor_m3243601712_gshared (); extern "C" void Predicate_1_Invoke_m2775223656_gshared (); extern "C" void Predicate_1_BeginInvoke_m1764756107_gshared (); extern "C" void Predicate_1_EndInvoke_m1035116514_gshared (); extern "C" void Predicate_1__ctor_m2995226103_gshared (); extern "C" void Predicate_1_Invoke_m2407726575_gshared (); extern "C" void Predicate_1_BeginInvoke_m2425667920_gshared (); extern "C" void Predicate_1_EndInvoke_m2420144145_gshared (); extern "C" void CachedInvokableCall_1_Invoke_m3247299909_gshared (); extern "C" void CachedInvokableCall_1_Invoke_m2815073919_gshared (); extern "C" void CachedInvokableCall_1_Invoke_m4097553971_gshared (); extern "C" void InvokableCall_1__ctor_m874046876_gshared (); extern "C" void InvokableCall_1__ctor_m2693793190_gshared (); extern "C" void InvokableCall_1_add_Delegate_m3048312905_gshared (); extern "C" void InvokableCall_1_remove_Delegate_m1481038152_gshared (); extern "C" void InvokableCall_1_Invoke_m769918017_gshared (); extern "C" void InvokableCall_1_Find_m951110817_gshared (); extern "C" void InvokableCall_1__ctor_m231935020_gshared (); extern "C" void InvokableCall_1__ctor_m563785030_gshared (); extern "C" void InvokableCall_1_add_Delegate_m3068046591_gshared (); extern "C" void InvokableCall_1_remove_Delegate_m3070410248_gshared (); extern "C" void InvokableCall_1_Invoke_m428957899_gshared (); extern "C" void InvokableCall_1_Find_m2775216619_gshared (); extern "C" void InvokableCall_1__ctor_m4078762228_gshared (); extern "C" void InvokableCall_1__ctor_m121193486_gshared (); extern "C" void InvokableCall_1_add_Delegate_m3251799843_gshared (); extern "C" void InvokableCall_1_remove_Delegate_m1744559252_gshared (); extern "C" void InvokableCall_1_Invoke_m4090512311_gshared (); extern "C" void InvokableCall_1_Find_m678413071_gshared (); extern "C" void InvokableCall_1__ctor_m983088749_gshared (); extern "C" void InvokableCall_1__ctor_m3755016325_gshared (); extern "C" void InvokableCall_1_add_Delegate_m705395724_gshared (); extern "C" void InvokableCall_1_remove_Delegate_m3576859071_gshared (); extern "C" void InvokableCall_1_Invoke_m2424028974_gshared (); extern "C" void InvokableCall_1_Find_m1941574338_gshared (); extern "C" void InvokableCall_1__ctor_m2837611051_gshared (); extern "C" void InvokableCall_1__ctor_m866952903_gshared (); extern "C" void InvokableCall_1_add_Delegate_m1013059220_gshared (); extern "C" void InvokableCall_1_remove_Delegate_m3619329377_gshared (); extern "C" void InvokableCall_1_Invoke_m3239892614_gshared (); extern "C" void InvokableCall_1_Find_m4182726010_gshared (); extern "C" void UnityAction_1_Invoke_m3523417209_gshared (); extern "C" void UnityAction_1_BeginInvoke_m2512011642_gshared (); extern "C" void UnityAction_1_EndInvoke_m3317901367_gshared (); extern "C" void UnityAction_1__ctor_m25541871_gshared (); extern "C" void UnityAction_1_Invoke_m2563101999_gshared (); extern "C" void UnityAction_1_BeginInvoke_m530778538_gshared (); extern "C" void UnityAction_1_EndInvoke_m1662218393_gshared (); extern "C" void UnityAction_1_Invoke_m2563206587_gshared (); extern "C" void UnityAction_1_BeginInvoke_m4162767106_gshared (); extern "C" void UnityAction_1_EndInvoke_m3175338521_gshared (); extern "C" void UnityAction_1_Invoke_m2771701188_gshared (); extern "C" void UnityAction_1_BeginInvoke_m2192647899_gshared (); extern "C" void UnityAction_1_EndInvoke_m2603848420_gshared (); extern "C" void UnityAction_1__ctor_m2627946124_gshared (); extern "C" void UnityAction_1_BeginInvoke_m2974933271_gshared (); extern "C" void UnityAction_1_EndInvoke_m3641222126_gshared (); extern "C" void UnityAction_1__ctor_m1266646666_gshared (); extern "C" void UnityAction_1_Invoke_m2702242020_gshared (); extern "C" void UnityAction_1_BeginInvoke_m4083379797_gshared (); extern "C" void UnityAction_1_EndInvoke_m539982532_gshared (); extern "C" void UnityAction_2__ctor_m2684626998_gshared (); extern "C" void UnityAction_2_BeginInvoke_m2528278652_gshared (); extern "C" void UnityAction_2_EndInvoke_m1593881300_gshared (); extern "C" void UnityAction_2__ctor_m2892452633_gshared (); extern "C" void UnityAction_2_BeginInvoke_m2733450299_gshared (); extern "C" void UnityAction_2_EndInvoke_m234106915_gshared (); extern "C" void UnityEvent_1_RemoveListener_m670609979_gshared (); extern "C" void UnityEvent_1_GetDelegate_m1528404507_gshared (); extern "C" void UnityEvent_1_AddListener_m846589010_gshared (); extern "C" void UnityEvent_1_RemoveListener_m2851793905_gshared (); extern "C" void UnityEvent_1_GetDelegate_m3475403017_gshared (); extern "C" void UnityEvent_1_GetDelegate_m4062537313_gshared (); extern "C" void UnityEvent_1_RemoveListener_m219620396_gshared (); extern "C" void UnityEvent_1_GetDelegate_m1805145148_gshared (); extern "C" void UnityEvent_1_AddListener_m525228415_gshared (); extern "C" void UnityEvent_1_RemoveListener_m4000386396_gshared (); extern "C" void UnityEvent_1_GetDelegate_m66964436_gshared (); extern "C" void U3CStartU3Ec__Iterator0__ctor_m1750247524_gshared (); extern "C" void U3CStartU3Ec__Iterator0_MoveNext_m2339115502_gshared (); extern "C" void U3CStartU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CobjectU3E_get_Current_m1702093362_gshared (); extern "C" void U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m4267712042_gshared (); extern "C" void U3CStartU3Ec__Iterator0_Dispose_m3903217005_gshared (); extern "C" void U3CStartU3Ec__Iterator0_Reset_m2580847683_gshared (); extern "C" void U3CStartU3Ec__Iterator0__ctor_m951808111_gshared (); extern "C" void U3CStartU3Ec__Iterator0_MoveNext_m42377021_gshared (); extern "C" void U3CStartU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CobjectU3E_get_Current_m1821360549_gshared (); extern "C" void U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m635744877_gshared (); extern "C" void U3CStartU3Ec__Iterator0_Dispose_m1161010130_gshared (); extern "C" void U3CStartU3Ec__Iterator0_Reset_m1787863864_gshared (); extern "C" void TweenRunner_1_Start_m1160751894_gshared (); extern "C" void TweenRunner_1_Start_m791129861_gshared (); extern "C" void TweenRunner_1_StopTween_m2135918118_gshared (); extern "C" void ListPool_1__cctor_m408291388_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m2151100132_gshared (); extern "C" void ListPool_1__cctor_m1262585838_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m334430706_gshared (); extern "C" void ListPool_1__cctor_m4150135476_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m4179519904_gshared (); extern "C" void ListPool_1__cctor_m709904475_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m1243609651_gshared (); extern "C" void ListPool_1__cctor_m3678794464_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m3030633432_gshared (); extern "C" void ListPool_1__cctor_m1474516473_gshared (); extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m3090281341_gshared (); extern const Il2CppMethodPointer g_Il2CppGenericMethodPointers[4137] = { NULL/* 0*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisIl2CppObject_m944375256_gshared/* 1*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisIl2CppObject_m1329963457_gshared/* 2*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisIl2CppObject_m2425110446_gshared/* 3*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisIl2CppObject_m4286375615_gshared/* 4*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisIl2CppObject_m1162822425_gshared/* 5*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisIl2CppObject_m3029517586_gshared/* 6*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisIl2CppObject_m2440219229_gshared/* 7*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisIl2CppObject_m371871810_gshared/* 8*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisIl2CppObject_m870461665_gshared/* 9*/, (Il2CppMethodPointer)&Array_get_swapper_TisIl2CppObject_m1701356863_gshared/* 10*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_m2295346640_gshared/* 11*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_TisIl2CppObject_m2775211098_gshared/* 12*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_m3309514378_gshared/* 13*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_TisIl2CppObject_m838950897_gshared/* 14*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_m143182644_gshared/* 15*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_TisIl2CppObject_m1915706600_gshared/* 16*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_m1954851512_gshared/* 17*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_TisIl2CppObject_m1526562629_gshared/* 18*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_m3674422195_gshared/* 19*/, (Il2CppMethodPointer)&Array_Sort_TisIl2CppObject_m3717288230_gshared/* 20*/, (Il2CppMethodPointer)&Array_qsort_TisIl2CppObject_TisIl2CppObject_m1340227921_gshared/* 21*/, (Il2CppMethodPointer)&Array_compare_TisIl2CppObject_m1481822507_gshared/* 22*/, (Il2CppMethodPointer)&Array_qsort_TisIl2CppObject_m1127107058_gshared/* 23*/, (Il2CppMethodPointer)&Array_swap_TisIl2CppObject_TisIl2CppObject_m127996650_gshared/* 24*/, (Il2CppMethodPointer)&Array_swap_TisIl2CppObject_m653591269_gshared/* 25*/, (Il2CppMethodPointer)&Array_Resize_TisIl2CppObject_m4223007361_gshared/* 26*/, (Il2CppMethodPointer)&Array_Resize_TisIl2CppObject_m1113434054_gshared/* 27*/, (Il2CppMethodPointer)&Array_TrueForAll_TisIl2CppObject_m3052765269_gshared/* 28*/, (Il2CppMethodPointer)&Array_ForEach_TisIl2CppObject_m1849351808_gshared/* 29*/, (Il2CppMethodPointer)&Array_ConvertAll_TisIl2CppObject_TisIl2CppObject_m2423585546_gshared/* 30*/, (Il2CppMethodPointer)&Array_FindLastIndex_TisIl2CppObject_m986818300_gshared/* 31*/, (Il2CppMethodPointer)&Array_FindLastIndex_TisIl2CppObject_m3885928623_gshared/* 32*/, (Il2CppMethodPointer)&Array_FindLastIndex_TisIl2CppObject_m869210470_gshared/* 33*/, (Il2CppMethodPointer)&Array_FindIndex_TisIl2CppObject_m4149904176_gshared/* 34*/, (Il2CppMethodPointer)&Array_FindIndex_TisIl2CppObject_m872355017_gshared/* 35*/, (Il2CppMethodPointer)&Array_FindIndex_TisIl2CppObject_m965140358_gshared/* 36*/, (Il2CppMethodPointer)&Array_BinarySearch_TisIl2CppObject_m2457435347_gshared/* 37*/, (Il2CppMethodPointer)&Array_BinarySearch_TisIl2CppObject_m3361740551_gshared/* 38*/, (Il2CppMethodPointer)&Array_BinarySearch_TisIl2CppObject_m4109835519_gshared/* 39*/, (Il2CppMethodPointer)&Array_BinarySearch_TisIl2CppObject_m3048647515_gshared/* 40*/, (Il2CppMethodPointer)&Array_IndexOf_TisIl2CppObject_m2032877681_gshared/* 41*/, (Il2CppMethodPointer)&Array_IndexOf_TisIl2CppObject_m214763038_gshared/* 42*/, (Il2CppMethodPointer)&Array_IndexOf_TisIl2CppObject_m1815604637_gshared/* 43*/, (Il2CppMethodPointer)&Array_LastIndexOf_TisIl2CppObject_m1962410007_gshared/* 44*/, (Il2CppMethodPointer)&Array_LastIndexOf_TisIl2CppObject_m3287014766_gshared/* 45*/, (Il2CppMethodPointer)&Array_LastIndexOf_TisIl2CppObject_m2980037739_gshared/* 46*/, (Il2CppMethodPointer)&Array_FindAll_TisIl2CppObject_m2420286284_gshared/* 47*/, (Il2CppMethodPointer)&Array_Exists_TisIl2CppObject_m4244336533_gshared/* 48*/, (Il2CppMethodPointer)&Array_AsReadOnly_TisIl2CppObject_m1721559766_gshared/* 49*/, (Il2CppMethodPointer)&Array_Find_TisIl2CppObject_m1654841559_gshared/* 50*/, (Il2CppMethodPointer)&Array_FindLast_TisIl2CppObject_m1794562749_gshared/* 51*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m94051553_AdjustorThunk/* 52*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3206960238_AdjustorThunk/* 53*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m853313801_AdjustorThunk/* 54*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3080260213_AdjustorThunk/* 55*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1636767846_AdjustorThunk/* 56*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1047150157_AdjustorThunk/* 57*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_Item_m176001975_gshared/* 58*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_set_Item_m314687476_gshared/* 59*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_Count_m962317777_gshared/* 60*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_IsReadOnly_m2717922212_gshared/* 61*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1__ctor_m2430810679_gshared/* 62*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m2780765696_gshared/* 63*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Add_m3970067462_gshared/* 64*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Clear_m2539474626_gshared/* 65*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Contains_m1266627404_gshared/* 66*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_CopyTo_m816115094_gshared/* 67*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_GetEnumerator_m1078352793_gshared/* 68*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_IndexOf_m1537228832_gshared/* 69*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Insert_m1136669199_gshared/* 70*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Remove_m1875216835_gshared/* 71*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_RemoveAt_m2701218731_gshared/* 72*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_ReadOnlyError_m2289309720_gshared/* 73*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CTU3E_get_Current_m1791706206_gshared/* 74*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m2580780957_gshared/* 75*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0__ctor_m1015489335_gshared/* 76*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_MoveNext_m2489948797_gshared/* 77*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_Dispose_m1859988746_gshared/* 78*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_Reset_m2980566576_gshared/* 79*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m40106963_gshared/* 80*/, (Il2CppMethodPointer)&Comparer_1__ctor_m4082958187_gshared/* 81*/, (Il2CppMethodPointer)&Comparer_1__cctor_m2962395036_gshared/* 82*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m872902762_gshared/* 83*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m84239532_gshared/* 84*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m2805784815_gshared/* 85*/, (Il2CppMethodPointer)&GenericComparer_1__ctor_m1146681644_gshared/* 86*/, (Il2CppMethodPointer)&GenericComparer_1_Compare_m78150427_gshared/* 87*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_get_Item_m237963271_gshared/* 88*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_set_Item_m3775521570_gshared/* 89*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m960517203_gshared/* 90*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_SyncRoot_m1900166091_gshared/* 91*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m4094240197_gshared/* 92*/, (Il2CppMethodPointer)&Dictionary_2_get_Count_m3636113691_gshared/* 93*/, (Il2CppMethodPointer)&Dictionary_2_get_Item_m2413909512_gshared/* 94*/, (Il2CppMethodPointer)&Dictionary_2_set_Item_m1004257024_gshared/* 95*/, (Il2CppMethodPointer)&Dictionary_2_get_Values_m2233445381_gshared/* 96*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m584589095_gshared/* 97*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m2849528578_gshared/* 98*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m206582704_gshared/* 99*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m1206668798_gshared/* 100*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Add_m984276885_gshared/* 101*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Remove_m2017099222_gshared/* 102*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m990341268_gshared/* 103*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1058501024_gshared/* 104*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m976354816_gshared/* 105*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m1705959559_gshared/* 106*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_CopyTo_m3578539931_gshared/* 107*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m3100111910_gshared/* 108*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m2925090477_gshared/* 109*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_GetEnumerator_m2684932776_gshared/* 110*/, (Il2CppMethodPointer)&Dictionary_2_Init_m1045257495_gshared/* 111*/, (Il2CppMethodPointer)&Dictionary_2_InitArrays_m2270022740_gshared/* 112*/, (Il2CppMethodPointer)&Dictionary_2_CopyToCheck_m2147716750_gshared/* 113*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisIl2CppObject_TisIl2CppObject_m1804181923_gshared/* 114*/, (Il2CppMethodPointer)&Dictionary_2_make_pair_m2631942124_gshared/* 115*/, (Il2CppMethodPointer)&Dictionary_2_pick_value_m1872663242_gshared/* 116*/, (Il2CppMethodPointer)&Dictionary_2_CopyTo_m1495142643_gshared/* 117*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisIl2CppObject_m4092802079_gshared/* 118*/, (Il2CppMethodPointer)&Dictionary_2_Resize_m2672264133_gshared/* 119*/, (Il2CppMethodPointer)&Dictionary_2_Add_m4209421183_gshared/* 120*/, (Il2CppMethodPointer)&Dictionary_2_Clear_m2325793156_gshared/* 121*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKey_m3553426152_gshared/* 122*/, (Il2CppMethodPointer)&Dictionary_2_ContainsValue_m2375979648_gshared/* 123*/, (Il2CppMethodPointer)&Dictionary_2_GetObjectData_m2864531407_gshared/* 124*/, (Il2CppMethodPointer)&Dictionary_2_OnDeserialization_m2160537783_gshared/* 125*/, (Il2CppMethodPointer)&Dictionary_2_Remove_m112127646_gshared/* 126*/, (Il2CppMethodPointer)&Dictionary_2_TryGetValue_m3975825838_gshared/* 127*/, (Il2CppMethodPointer)&Dictionary_2_ToTKey_m4209561517_gshared/* 128*/, (Il2CppMethodPointer)&Dictionary_2_ToTValue_m1381983709_gshared/* 129*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKeyValuePair_m663697471_gshared/* 130*/, (Il2CppMethodPointer)&Dictionary_2_GetEnumerator_m1752238884_gshared/* 131*/, (Il2CppMethodPointer)&Dictionary_2_U3CCopyToU3Em__0_m2061238213_gshared/* 132*/, (Il2CppMethodPointer)&ShimEnumerator_get_Entry_m4233876641_gshared/* 133*/, (Il2CppMethodPointer)&ShimEnumerator_get_Key_m3962796804_gshared/* 134*/, (Il2CppMethodPointer)&ShimEnumerator_get_Value_m2522747790_gshared/* 135*/, (Il2CppMethodPointer)&ShimEnumerator_get_Current_m2121723938_gshared/* 136*/, (Il2CppMethodPointer)&ShimEnumerator__ctor_m119758426_gshared/* 137*/, (Il2CppMethodPointer)&ShimEnumerator_MoveNext_m2013866013_gshared/* 138*/, (Il2CppMethodPointer)&ShimEnumerator_Reset_m1100368508_gshared/* 139*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m229223308_AdjustorThunk/* 140*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m221119093_AdjustorThunk/* 141*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m467957770_AdjustorThunk/* 142*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m2325383168_AdjustorThunk/* 143*/, (Il2CppMethodPointer)&Enumerator_get_Current_m25299632_AdjustorThunk/* 144*/, (Il2CppMethodPointer)&Enumerator_get_CurrentKey_m3839846791_AdjustorThunk/* 145*/, (Il2CppMethodPointer)&Enumerator_get_CurrentValue_m402763047_AdjustorThunk/* 146*/, (Il2CppMethodPointer)&Enumerator__ctor_m3742107451_AdjustorThunk/* 147*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m3225937576_AdjustorThunk/* 148*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m3349738440_AdjustorThunk/* 149*/, (Il2CppMethodPointer)&Enumerator_Reset_m3129803197_AdjustorThunk/* 150*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m262343092_AdjustorThunk/* 151*/, (Il2CppMethodPointer)&Enumerator_VerifyCurrent_m1702320752_AdjustorThunk/* 152*/, (Il2CppMethodPointer)&Enumerator_Dispose_m1905011127_AdjustorThunk/* 153*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m1530798787_gshared/* 154*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_IsSynchronized_m3044620153_gshared/* 155*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_SyncRoot_m919209341_gshared/* 156*/, (Il2CppMethodPointer)&ValueCollection_get_Count_m3718352161_gshared/* 157*/, (Il2CppMethodPointer)&ValueCollection__ctor_m1801851342_gshared/* 158*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m1477647540_gshared/* 159*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m573646175_gshared/* 160*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m1598273024_gshared/* 161*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m3764375695_gshared/* 162*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m3036711881_gshared/* 163*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_CopyTo_m3792551117_gshared/* 164*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_IEnumerable_GetEnumerator_m1773104428_gshared/* 165*/, (Il2CppMethodPointer)&ValueCollection_CopyTo_m927881183_gshared/* 166*/, (Il2CppMethodPointer)&ValueCollection_GetEnumerator_m379930731_gshared/* 167*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3933483934_AdjustorThunk/* 168*/, (Il2CppMethodPointer)&Enumerator_get_Current_m4025002300_AdjustorThunk/* 169*/, (Il2CppMethodPointer)&Enumerator__ctor_m3819430617_AdjustorThunk/* 170*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m2482663638_AdjustorThunk/* 171*/, (Il2CppMethodPointer)&Enumerator_Dispose_m4238653081_AdjustorThunk/* 172*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m335649778_AdjustorThunk/* 173*/, (Il2CppMethodPointer)&Transform_1__ctor_m3849972087_gshared/* 174*/, (Il2CppMethodPointer)&Transform_1_Invoke_m1224512163_gshared/* 175*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m2122310722_gshared/* 176*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m1237128929_gshared/* 177*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m1577971315_gshared/* 178*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1185444131_gshared/* 179*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1672307556_gshared/* 180*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m4285727610_gshared/* 181*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2170611288_gshared/* 182*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m676686452_gshared/* 183*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3315096533_gshared/* 184*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m684443589_gshared/* 185*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m2748998164_gshared/* 186*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m3511004089_gshared/* 187*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m482771493_gshared/* 188*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Key_m2561166459_AdjustorThunk/* 189*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Key_m744486900_AdjustorThunk/* 190*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Value_m499643803_AdjustorThunk/* 191*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Value_m1416408204_AdjustorThunk/* 192*/, (Il2CppMethodPointer)&KeyValuePair_2__ctor_m1640124561_AdjustorThunk/* 193*/, (Il2CppMethodPointer)&KeyValuePair_2_ToString_m2613351884_AdjustorThunk/* 194*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2131934397_gshared/* 195*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m418560222_gshared/* 196*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m1594235606_gshared/* 197*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m2120144013_gshared/* 198*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m257950146_gshared/* 199*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m936612973_gshared/* 200*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m162109184_gshared/* 201*/, (Il2CppMethodPointer)&List_1_get_Capacity_m3133733835_gshared/* 202*/, (Il2CppMethodPointer)&List_1_set_Capacity_m491101164_gshared/* 203*/, (Il2CppMethodPointer)&List_1_get_Count_m2375293942_gshared/* 204*/, (Il2CppMethodPointer)&List_1_get_Item_m2062981835_gshared/* 205*/, (Il2CppMethodPointer)&List_1_set_Item_m4128108021_gshared/* 206*/, (Il2CppMethodPointer)&List_1__ctor_m310736118_gshared/* 207*/, (Il2CppMethodPointer)&List_1__ctor_m136460305_gshared/* 208*/, (Il2CppMethodPointer)&List_1__cctor_m138621019_gshared/* 209*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m154161632_gshared/* 210*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m2020941110_gshared/* 211*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m3552870393_gshared/* 212*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m1765626550_gshared/* 213*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m149594880_gshared/* 214*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m406088260_gshared/* 215*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m3961795241_gshared/* 216*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m3415450529_gshared/* 217*/, (Il2CppMethodPointer)&List_1_Add_m4157722533_gshared/* 218*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m185971996_gshared/* 219*/, (Il2CppMethodPointer)&List_1_AddCollection_m1580067148_gshared/* 220*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m2489692396_gshared/* 221*/, (Il2CppMethodPointer)&List_1_AddRange_m3537433232_gshared/* 222*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m2563000362_gshared/* 223*/, (Il2CppMethodPointer)&List_1_Clear_m4254626809_gshared/* 224*/, (Il2CppMethodPointer)&List_1_Contains_m1658838094_gshared/* 225*/, (Il2CppMethodPointer)&List_1_CopyTo_m1758262197_gshared/* 226*/, (Il2CppMethodPointer)&List_1_Find_m1881447651_gshared/* 227*/, (Il2CppMethodPointer)&List_1_CheckMatch_m1196994270_gshared/* 228*/, (Il2CppMethodPointer)&List_1_GetIndex_m3409004147_gshared/* 229*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m2837081829_gshared/* 230*/, (Il2CppMethodPointer)&List_1_IndexOf_m2070479489_gshared/* 231*/, (Il2CppMethodPointer)&List_1_Shift_m3137156970_gshared/* 232*/, (Il2CppMethodPointer)&List_1_CheckIndex_m524615377_gshared/* 233*/, (Il2CppMethodPointer)&List_1_Insert_m11735664_gshared/* 234*/, (Il2CppMethodPointer)&List_1_CheckCollection_m3968030679_gshared/* 235*/, (Il2CppMethodPointer)&List_1_Remove_m3164383811_gshared/* 236*/, (Il2CppMethodPointer)&List_1_RemoveAll_m1569860525_gshared/* 237*/, (Il2CppMethodPointer)&List_1_RemoveAt_m3615096820_gshared/* 238*/, (Il2CppMethodPointer)&List_1_Reverse_m4038478200_gshared/* 239*/, (Il2CppMethodPointer)&List_1_Sort_m554162636_gshared/* 240*/, (Il2CppMethodPointer)&List_1_Sort_m2895170076_gshared/* 241*/, (Il2CppMethodPointer)&List_1_ToArray_m546658539_gshared/* 242*/, (Il2CppMethodPointer)&List_1_TrimExcess_m1944241237_gshared/* 243*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m2853089017_AdjustorThunk/* 244*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2577424081_AdjustorThunk/* 245*/, (Il2CppMethodPointer)&Enumerator__ctor_m3769601633_AdjustorThunk/* 246*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m3440386353_AdjustorThunk/* 247*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3736175406_AdjustorThunk/* 248*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m825848279_AdjustorThunk/* 249*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m44995089_AdjustorThunk/* 250*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2832435102_gshared/* 251*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m1442644511_gshared/* 252*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m1422512927_gshared/* 253*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m2968235316_gshared/* 254*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m1990189611_gshared/* 255*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m75082808_gshared/* 256*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m507853765_gshared/* 257*/, (Il2CppMethodPointer)&Collection_1_get_Count_m2250721247_gshared/* 258*/, (Il2CppMethodPointer)&Collection_1_get_Item_m266052953_gshared/* 259*/, (Il2CppMethodPointer)&Collection_1_set_Item_m3489932746_gshared/* 260*/, (Il2CppMethodPointer)&Collection_1__ctor_m3383758099_gshared/* 261*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m2795445359_gshared/* 262*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m539985258_gshared/* 263*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m916188271_gshared/* 264*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m3240760119_gshared/* 265*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m3460849589_gshared/* 266*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m3482199744_gshared/* 267*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1739078822_gshared/* 268*/, (Il2CppMethodPointer)&Collection_1_Add_m2987402052_gshared/* 269*/, (Il2CppMethodPointer)&Collection_1_Clear_m1596645192_gshared/* 270*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m1175603758_gshared/* 271*/, (Il2CppMethodPointer)&Collection_1_Contains_m2116635914_gshared/* 272*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m1578267616_gshared/* 273*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m2963411583_gshared/* 274*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m3885709710_gshared/* 275*/, (Il2CppMethodPointer)&Collection_1_Insert_m2334889193_gshared/* 276*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m3611385334_gshared/* 277*/, (Il2CppMethodPointer)&Collection_1_Remove_m452558737_gshared/* 278*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m1632496813_gshared/* 279*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m4104600353_gshared/* 280*/, (Il2CppMethodPointer)&Collection_1_SetItem_m1075410277_gshared/* 281*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m3443424420_gshared/* 282*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m1521356246_gshared/* 283*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m215419136_gshared/* 284*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m328767958_gshared/* 285*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m3594284193_gshared/* 286*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m70085287_gshared/* 287*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1547026160_gshared/* 288*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4041967064_gshared/* 289*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2871048729_gshared/* 290*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m769863805_gshared/* 291*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m942145650_gshared/* 292*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m1367736517_gshared/* 293*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m3336878134_gshared/* 294*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1799572719_gshared/* 295*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m2562379905_gshared/* 296*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m191392387_gshared/* 297*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m3671019970_gshared/* 298*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2989589458_gshared/* 299*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m454937302_gshared/* 300*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m4272763307_gshared/* 301*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3199809075_gshared/* 302*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m962041751_gshared/* 303*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m3664791405_gshared/* 304*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m531171980_gshared/* 305*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m3780136817_gshared/* 306*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m3983677501_gshared/* 307*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m1990607517_gshared/* 308*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m606942423_gshared/* 309*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m691705570_gshared/* 310*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m3182494192_gshared/* 311*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m572840272_gshared/* 312*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m1227826160_gshared/* 313*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m4257276542_gshared/* 314*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m1627519329_gshared/* 315*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m1981423404_gshared/* 316*/, (Il2CppMethodPointer)&CustomAttributeData_UnboxValues_TisIl2CppObject_m1499708102_gshared/* 317*/, (Il2CppMethodPointer)&MonoProperty_GetterAdapterFrame_TisIl2CppObject_TisIl2CppObject_m3902286252_gshared/* 318*/, (Il2CppMethodPointer)&MonoProperty_StaticGetterAdapterFrame_TisIl2CppObject_m2321763151_gshared/* 319*/, (Il2CppMethodPointer)&Getter_2__ctor_m653998582_gshared/* 320*/, (Il2CppMethodPointer)&Getter_2_Invoke_m3338489829_gshared/* 321*/, (Il2CppMethodPointer)&Getter_2_BeginInvoke_m2080015031_gshared/* 322*/, (Il2CppMethodPointer)&Getter_2_EndInvoke_m977999903_gshared/* 323*/, (Il2CppMethodPointer)&StaticGetter_1__ctor_m1290492285_gshared/* 324*/, (Il2CppMethodPointer)&StaticGetter_1_Invoke_m1348877692_gshared/* 325*/, (Il2CppMethodPointer)&StaticGetter_1_BeginInvoke_m2732579814_gshared/* 326*/, (Il2CppMethodPointer)&StaticGetter_1_EndInvoke_m44757160_gshared/* 327*/, (Il2CppMethodPointer)&Activator_CreateInstance_TisIl2CppObject_m1022768098_gshared/* 328*/, (Il2CppMethodPointer)&Action_1__ctor_m584977596_gshared/* 329*/, (Il2CppMethodPointer)&Action_1_Invoke_m4180501989_gshared/* 330*/, (Il2CppMethodPointer)&Action_1_BeginInvoke_m1305519803_gshared/* 331*/, (Il2CppMethodPointer)&Action_1_EndInvoke_m2057605070_gshared/* 332*/, (Il2CppMethodPointer)&Comparison_1__ctor_m2929820459_gshared/* 333*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m2798106261_gshared/* 334*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m1817828810_gshared/* 335*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m1056665895_gshared/* 336*/, (Il2CppMethodPointer)&Converter_2__ctor_m2798627395_gshared/* 337*/, (Il2CppMethodPointer)&Converter_2_Invoke_m77799585_gshared/* 338*/, (Il2CppMethodPointer)&Converter_2_BeginInvoke_m898151494_gshared/* 339*/, (Il2CppMethodPointer)&Converter_2_EndInvoke_m1606718561_gshared/* 340*/, (Il2CppMethodPointer)&Predicate_1__ctor_m2289454599_gshared/* 341*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m4047721271_gshared/* 342*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m3556950370_gshared/* 343*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m3656575065_gshared/* 344*/, (Il2CppMethodPointer)&Stack_1_System_Collections_ICollection_get_IsSynchronized_m2076161108_gshared/* 345*/, (Il2CppMethodPointer)&Stack_1_System_Collections_ICollection_get_SyncRoot_m3151629354_gshared/* 346*/, (Il2CppMethodPointer)&Stack_1_get_Count_m4101767244_gshared/* 347*/, (Il2CppMethodPointer)&Stack_1__ctor_m1041657164_gshared/* 348*/, (Il2CppMethodPointer)&Stack_1_System_Collections_ICollection_CopyTo_m2104527616_gshared/* 349*/, (Il2CppMethodPointer)&Stack_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m680979874_gshared/* 350*/, (Il2CppMethodPointer)&Stack_1_System_Collections_IEnumerable_GetEnumerator_m3875192475_gshared/* 351*/, (Il2CppMethodPointer)&Stack_1_Peek_m1548778538_gshared/* 352*/, (Il2CppMethodPointer)&Stack_1_Pop_m1289567471_gshared/* 353*/, (Il2CppMethodPointer)&Stack_1_Push_m1129365869_gshared/* 354*/, (Il2CppMethodPointer)&Stack_1_GetEnumerator_m287848754_gshared/* 355*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1270503615_AdjustorThunk/* 356*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2076859656_AdjustorThunk/* 357*/, (Il2CppMethodPointer)&Enumerator__ctor_m2816143215_AdjustorThunk/* 358*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m456699159_AdjustorThunk/* 359*/, (Il2CppMethodPointer)&Enumerator_Dispose_m1520016780_AdjustorThunk/* 360*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m689054299_AdjustorThunk/* 361*/, (Il2CppMethodPointer)&HashSet_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2633171492_gshared/* 362*/, (Il2CppMethodPointer)&HashSet_1_get_Count_m4103055329_gshared/* 363*/, (Il2CppMethodPointer)&HashSet_1__ctor_m2858247305_gshared/* 364*/, (Il2CppMethodPointer)&HashSet_1__ctor_m3582855242_gshared/* 365*/, (Il2CppMethodPointer)&HashSet_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m788997721_gshared/* 366*/, (Il2CppMethodPointer)&HashSet_1_System_Collections_Generic_ICollectionU3CTU3E_CopyTo_m1933244740_gshared/* 367*/, (Il2CppMethodPointer)&HashSet_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3632050820_gshared/* 368*/, (Il2CppMethodPointer)&HashSet_1_System_Collections_IEnumerable_GetEnumerator_m2498631708_gshared/* 369*/, (Il2CppMethodPointer)&HashSet_1_Init_m1258286688_gshared/* 370*/, (Il2CppMethodPointer)&HashSet_1_InitArrays_m1536879844_gshared/* 371*/, (Il2CppMethodPointer)&HashSet_1_SlotsContainsAt_m219342270_gshared/* 372*/, (Il2CppMethodPointer)&HashSet_1_CopyTo_m1750586488_gshared/* 373*/, (Il2CppMethodPointer)&HashSet_1_CopyTo_m4175866709_gshared/* 374*/, (Il2CppMethodPointer)&HashSet_1_Resize_m1435308491_gshared/* 375*/, (Il2CppMethodPointer)&HashSet_1_GetLinkHashCode_m3972670595_gshared/* 376*/, (Il2CppMethodPointer)&HashSet_1_GetItemHashCode_m433445195_gshared/* 377*/, (Il2CppMethodPointer)&HashSet_1_Add_m199171953_gshared/* 378*/, (Il2CppMethodPointer)&HashSet_1_Clear_m350367572_gshared/* 379*/, (Il2CppMethodPointer)&HashSet_1_Contains_m3626542335_gshared/* 380*/, (Il2CppMethodPointer)&HashSet_1_Remove_m3273285564_gshared/* 381*/, (Il2CppMethodPointer)&HashSet_1_GetObjectData_m2935317189_gshared/* 382*/, (Il2CppMethodPointer)&HashSet_1_OnDeserialization_m1222146673_gshared/* 383*/, (Il2CppMethodPointer)&HashSet_1_GetEnumerator_m2393522520_gshared/* 384*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m2899861010_AdjustorThunk/* 385*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1303936404_AdjustorThunk/* 386*/, (Il2CppMethodPointer)&Enumerator__ctor_m1279102766_AdjustorThunk/* 387*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m2573763156_AdjustorThunk/* 388*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2097560514_AdjustorThunk/* 389*/, (Il2CppMethodPointer)&Enumerator_Dispose_m2585752265_AdjustorThunk/* 390*/, (Il2CppMethodPointer)&Enumerator_CheckState_m1761755727_AdjustorThunk/* 391*/, (Il2CppMethodPointer)&PrimeHelper__cctor_m1638820768_gshared/* 392*/, (Il2CppMethodPointer)&PrimeHelper_TestPrime_m3472022159_gshared/* 393*/, (Il2CppMethodPointer)&PrimeHelper_CalcPrime_m2460747866_gshared/* 394*/, (Il2CppMethodPointer)&PrimeHelper_ToPrime_m1606935350_gshared/* 395*/, (Il2CppMethodPointer)&Enumerable_Any_TisIl2CppObject_m2208185096_gshared/* 396*/, (Il2CppMethodPointer)&Enumerable_Where_TisIl2CppObject_m1516493223_gshared/* 397*/, (Il2CppMethodPointer)&Enumerable_CreateWhereIterator_TisIl2CppObject_m422304381_gshared/* 398*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_Generic_IEnumeratorU3CTSourceU3E_get_Current_m3602665650_gshared/* 399*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_IEnumerator_get_Current_m269113779_gshared/* 400*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1__ctor_m1958283157_gshared/* 401*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_IEnumerable_GetEnumerator_m3279674866_gshared/* 402*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_System_Collections_Generic_IEnumerableU3CTSourceU3E_GetEnumerator_m2682676065_gshared/* 403*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_MoveNext_m3533253043_gshared/* 404*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_Dispose_m1879652802_gshared/* 405*/, (Il2CppMethodPointer)&U3CCreateWhereIteratorU3Ec__Iterator1D_1_Reset_m1773515612_gshared/* 406*/, (Il2CppMethodPointer)&Action_2__ctor_m3362391082_gshared/* 407*/, (Il2CppMethodPointer)&Action_2_Invoke_m1501152969_gshared/* 408*/, (Il2CppMethodPointer)&Action_2_BeginInvoke_m1914861552_gshared/* 409*/, (Il2CppMethodPointer)&Action_2_EndInvoke_m3956733788_gshared/* 410*/, (Il2CppMethodPointer)&Func_2__ctor_m1684831714_gshared/* 411*/, (Il2CppMethodPointer)&Func_2_Invoke_m3288232740_gshared/* 412*/, (Il2CppMethodPointer)&Func_2_BeginInvoke_m4034295761_gshared/* 413*/, (Il2CppMethodPointer)&Func_2_EndInvoke_m1674435418_gshared/* 414*/, (Il2CppMethodPointer)&ScriptableObject_CreateInstance_TisIl2CppObject_m926060499_gshared/* 415*/, (Il2CppMethodPointer)&Component_GetComponent_TisIl2CppObject_m4109961936_gshared/* 416*/, (Il2CppMethodPointer)&Component_GetComponentInChildren_TisIl2CppObject_m2461586036_gshared/* 417*/, (Il2CppMethodPointer)&Component_GetComponentInChildren_TisIl2CppObject_m1823576579_gshared/* 418*/, (Il2CppMethodPointer)&Component_GetComponentsInChildren_TisIl2CppObject_m3607171184_gshared/* 419*/, (Il2CppMethodPointer)&Component_GetComponentsInChildren_TisIl2CppObject_m1263854297_gshared/* 420*/, (Il2CppMethodPointer)&Component_GetComponentsInChildren_TisIl2CppObject_m1923109161_gshared/* 421*/, (Il2CppMethodPointer)&Component_GetComponentsInChildren_TisIl2CppObject_m1992201622_gshared/* 422*/, (Il2CppMethodPointer)&Component_GetComponentInParent_TisIl2CppObject_m2509612665_gshared/* 423*/, (Il2CppMethodPointer)&Component_GetComponentsInParent_TisIl2CppObject_m2092455797_gshared/* 424*/, (Il2CppMethodPointer)&Component_GetComponentsInParent_TisIl2CppObject_m1689132204_gshared/* 425*/, (Il2CppMethodPointer)&Component_GetComponentsInParent_TisIl2CppObject_m1112546512_gshared/* 426*/, (Il2CppMethodPointer)&Component_GetComponents_TisIl2CppObject_m1186222966_gshared/* 427*/, (Il2CppMethodPointer)&Component_GetComponents_TisIl2CppObject_m3998315035_gshared/* 428*/, (Il2CppMethodPointer)&GameObject_GetComponent_TisIl2CppObject_m2812611596_gshared/* 429*/, (Il2CppMethodPointer)&GameObject_GetComponentInChildren_TisIl2CppObject_m327292296_gshared/* 430*/, (Il2CppMethodPointer)&GameObject_GetComponentInChildren_TisIl2CppObject_m1362037227_gshared/* 431*/, (Il2CppMethodPointer)&GameObject_GetComponents_TisIl2CppObject_m3618562997_gshared/* 432*/, (Il2CppMethodPointer)&GameObject_GetComponents_TisIl2CppObject_m374334104_gshared/* 433*/, (Il2CppMethodPointer)&GameObject_GetComponentsInChildren_TisIl2CppObject_m851581932_gshared/* 434*/, (Il2CppMethodPointer)&GameObject_GetComponentsInChildren_TisIl2CppObject_m1244802713_gshared/* 435*/, (Il2CppMethodPointer)&GameObject_GetComponentsInParent_TisIl2CppObject_m3757051886_gshared/* 436*/, (Il2CppMethodPointer)&GameObject_GetComponentsInParent_TisIl2CppObject_m3479568873_gshared/* 437*/, (Il2CppMethodPointer)&GameObject_AddComponent_TisIl2CppObject_m3813873105_gshared/* 438*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisIl2CppObject_m1450958222_gshared/* 439*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisIl2CppObject_m4188594588_gshared/* 440*/, (Il2CppMethodPointer)&Mesh_SafeLength_TisIl2CppObject_m560662719_gshared/* 441*/, (Il2CppMethodPointer)&Mesh_SetListForChannel_TisIl2CppObject_m2261448912_gshared/* 442*/, (Il2CppMethodPointer)&Mesh_SetListForChannel_TisIl2CppObject_m4266778410_gshared/* 443*/, (Il2CppMethodPointer)&Mesh_SetUvsImpl_TisIl2CppObject_m1356712218_gshared/* 444*/, (Il2CppMethodPointer)&Resources_ConvertObjects_TisIl2CppObject_m2571720668_gshared/* 445*/, (Il2CppMethodPointer)&Resources_GetBuiltinResource_TisIl2CppObject_m1023501484_gshared/* 446*/, (Il2CppMethodPointer)&Object_Instantiate_TisIl2CppObject_m447919519_gshared/* 447*/, (Il2CppMethodPointer)&Object_Instantiate_TisIl2CppObject_m3829784634_gshared/* 448*/, (Il2CppMethodPointer)&Object_Instantiate_TisIl2CppObject_m4219963824_gshared/* 449*/, (Il2CppMethodPointer)&Object_Instantiate_TisIl2CppObject_m1767088036_gshared/* 450*/, (Il2CppMethodPointer)&Object_Instantiate_TisIl2CppObject_m1736742113_gshared/* 451*/, (Il2CppMethodPointer)&Object_FindObjectsOfType_TisIl2CppObject_m1343658011_gshared/* 452*/, (Il2CppMethodPointer)&Object_FindObjectOfType_TisIl2CppObject_m2967490724_gshared/* 453*/, (Il2CppMethodPointer)&AttributeHelperEngine_GetCustomAttributeOfType_TisIl2CppObject_m581732473_gshared/* 454*/, (Il2CppMethodPointer)&BaseInvokableCall_ThrowOnInvalidArg_TisIl2CppObject_m1349548392_gshared/* 455*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m54675381_gshared/* 456*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m833213021_gshared/* 457*/, (Il2CppMethodPointer)&InvokableCall_1_add_Delegate_m4009721884_gshared/* 458*/, (Il2CppMethodPointer)&InvokableCall_1_remove_Delegate_m527482931_gshared/* 459*/, (Il2CppMethodPointer)&InvokableCall_1_Invoke_m1715547918_gshared/* 460*/, (Il2CppMethodPointer)&InvokableCall_1_Find_m1325295794_gshared/* 461*/, (Il2CppMethodPointer)&InvokableCall_2__ctor_m974169948_gshared/* 462*/, (Il2CppMethodPointer)&InvokableCall_2_Invoke_m1071013389_gshared/* 463*/, (Il2CppMethodPointer)&InvokableCall_2_Find_m1763382885_gshared/* 464*/, (Il2CppMethodPointer)&InvokableCall_3__ctor_m3141607487_gshared/* 465*/, (Il2CppMethodPointer)&InvokableCall_3_Invoke_m74557124_gshared/* 466*/, (Il2CppMethodPointer)&InvokableCall_3_Find_m3470456112_gshared/* 467*/, (Il2CppMethodPointer)&InvokableCall_4__ctor_m1096399974_gshared/* 468*/, (Il2CppMethodPointer)&InvokableCall_4_Invoke_m1555001411_gshared/* 469*/, (Il2CppMethodPointer)&InvokableCall_4_Find_m1467690987_gshared/* 470*/, (Il2CppMethodPointer)&CachedInvokableCall_1__ctor_m79259589_gshared/* 471*/, (Il2CppMethodPointer)&CachedInvokableCall_1_Invoke_m2401236944_gshared/* 472*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m2836997866_gshared/* 473*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m1279802577_gshared/* 474*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m3462722079_gshared/* 475*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m2822290096_gshared/* 476*/, (Il2CppMethodPointer)&UnityEvent_1__ctor_m2073978020_gshared/* 477*/, (Il2CppMethodPointer)&UnityEvent_1_AddListener_m22503421_gshared/* 478*/, (Il2CppMethodPointer)&UnityEvent_1_RemoveListener_m4278264272_gshared/* 479*/, (Il2CppMethodPointer)&UnityEvent_1_FindMethod_Impl_m2223850067_gshared/* 480*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m669290055_gshared/* 481*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m3098147632_gshared/* 482*/, (Il2CppMethodPointer)&UnityEvent_1_Invoke_m838874366_gshared/* 483*/, (Il2CppMethodPointer)&UnityAction_2__ctor_m622153369_gshared/* 484*/, (Il2CppMethodPointer)&UnityAction_2_Invoke_m1994351568_gshared/* 485*/, (Il2CppMethodPointer)&UnityAction_2_BeginInvoke_m3203769083_gshared/* 486*/, (Il2CppMethodPointer)&UnityAction_2_EndInvoke_m4199296611_gshared/* 487*/, (Il2CppMethodPointer)&UnityEvent_2__ctor_m3717034779_gshared/* 488*/, (Il2CppMethodPointer)&UnityEvent_2_FindMethod_Impl_m2783251718_gshared/* 489*/, (Il2CppMethodPointer)&UnityEvent_2_GetDelegate_m2147273130_gshared/* 490*/, (Il2CppMethodPointer)&UnityAction_3__ctor_m3783439840_gshared/* 491*/, (Il2CppMethodPointer)&UnityAction_3_Invoke_m1498227613_gshared/* 492*/, (Il2CppMethodPointer)&UnityAction_3_BeginInvoke_m160302482_gshared/* 493*/, (Il2CppMethodPointer)&UnityAction_3_EndInvoke_m1279075386_gshared/* 494*/, (Il2CppMethodPointer)&UnityEvent_3__ctor_m3502631330_gshared/* 495*/, (Il2CppMethodPointer)&UnityEvent_3_FindMethod_Impl_m1889846153_gshared/* 496*/, (Il2CppMethodPointer)&UnityEvent_3_GetDelegate_m338681277_gshared/* 497*/, (Il2CppMethodPointer)&UnityAction_4__ctor_m2053485839_gshared/* 498*/, (Il2CppMethodPointer)&UnityAction_4_Invoke_m3312096275_gshared/* 499*/, (Il2CppMethodPointer)&UnityAction_4_BeginInvoke_m3427746322_gshared/* 500*/, (Il2CppMethodPointer)&UnityAction_4_EndInvoke_m3887055469_gshared/* 501*/, (Il2CppMethodPointer)&UnityEvent_4__ctor_m3102731553_gshared/* 502*/, (Il2CppMethodPointer)&UnityEvent_4_FindMethod_Impl_m4079512420_gshared/* 503*/, (Il2CppMethodPointer)&UnityEvent_4_GetDelegate_m2704961864_gshared/* 504*/, (Il2CppMethodPointer)&ExecuteEvents_ValidateEventData_TisIl2CppObject_m3838331218_gshared/* 505*/, (Il2CppMethodPointer)&ExecuteEvents_Execute_TisIl2CppObject_m4168308247_gshared/* 506*/, (Il2CppMethodPointer)&ExecuteEvents_ExecuteHierarchy_TisIl2CppObject_m2541874163_gshared/* 507*/, (Il2CppMethodPointer)&ExecuteEvents_ShouldSendToComponent_TisIl2CppObject_m2998351876_gshared/* 508*/, (Il2CppMethodPointer)&ExecuteEvents_GetEventList_TisIl2CppObject_m2127453215_gshared/* 509*/, (Il2CppMethodPointer)&ExecuteEvents_CanHandleEvent_TisIl2CppObject_m1201779629_gshared/* 510*/, (Il2CppMethodPointer)&ExecuteEvents_GetEventHandler_TisIl2CppObject_m3333041576_gshared/* 511*/, (Il2CppMethodPointer)&EventFunction_1__ctor_m814090495_gshared/* 512*/, (Il2CppMethodPointer)&EventFunction_1_Invoke_m2378823590_gshared/* 513*/, (Il2CppMethodPointer)&EventFunction_1_BeginInvoke_m3064802067_gshared/* 514*/, (Il2CppMethodPointer)&EventFunction_1_EndInvoke_m1238672169_gshared/* 515*/, (Il2CppMethodPointer)&Dropdown_GetOrAddComponent_TisIl2CppObject_m2875934266_gshared/* 516*/, (Il2CppMethodPointer)&SetPropertyUtility_SetClass_TisIl2CppObject_m3524554928_gshared/* 517*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisIl2CppObject_m1703476175_gshared/* 518*/, (Il2CppMethodPointer)&IndexedSet_1_get_Count_m2839545138_gshared/* 519*/, (Il2CppMethodPointer)&IndexedSet_1_get_IsReadOnly_m1571858531_gshared/* 520*/, (Il2CppMethodPointer)&IndexedSet_1_get_Item_m2560856298_gshared/* 521*/, (Il2CppMethodPointer)&IndexedSet_1_set_Item_m3923255859_gshared/* 522*/, (Il2CppMethodPointer)&IndexedSet_1__ctor_m2689707074_gshared/* 523*/, (Il2CppMethodPointer)&IndexedSet_1_Add_m4044765907_gshared/* 524*/, (Il2CppMethodPointer)&IndexedSet_1_AddUnique_m3246859944_gshared/* 525*/, (Il2CppMethodPointer)&IndexedSet_1_Remove_m2685638878_gshared/* 526*/, (Il2CppMethodPointer)&IndexedSet_1_GetEnumerator_m3646001838_gshared/* 527*/, (Il2CppMethodPointer)&IndexedSet_1_System_Collections_IEnumerable_GetEnumerator_m3582353431_gshared/* 528*/, (Il2CppMethodPointer)&IndexedSet_1_Clear_m2776064367_gshared/* 529*/, (Il2CppMethodPointer)&IndexedSet_1_Contains_m4188067325_gshared/* 530*/, (Il2CppMethodPointer)&IndexedSet_1_CopyTo_m91125111_gshared/* 531*/, (Il2CppMethodPointer)&IndexedSet_1_IndexOf_m783474971_gshared/* 532*/, (Il2CppMethodPointer)&IndexedSet_1_Insert_m676465416_gshared/* 533*/, (Il2CppMethodPointer)&IndexedSet_1_RemoveAt_m2714142196_gshared/* 534*/, (Il2CppMethodPointer)&IndexedSet_1_RemoveAll_m2736534958_gshared/* 535*/, (Il2CppMethodPointer)&IndexedSet_1_Sort_m2938181397_gshared/* 536*/, (Il2CppMethodPointer)&ListPool_1_Get_m529219189_gshared/* 537*/, (Il2CppMethodPointer)&ListPool_1_Release_m1464559125_gshared/* 538*/, (Il2CppMethodPointer)&ListPool_1__cctor_m1613652121_gshared/* 539*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m441310157_gshared/* 540*/, (Il2CppMethodPointer)&ObjectPool_1_get_countAll_m4217365918_gshared/* 541*/, (Il2CppMethodPointer)&ObjectPool_1_set_countAll_m1742773675_gshared/* 542*/, (Il2CppMethodPointer)&ObjectPool_1_get_countActive_m2655657865_gshared/* 543*/, (Il2CppMethodPointer)&ObjectPool_1_get_countInactive_m763736764_gshared/* 544*/, (Il2CppMethodPointer)&ObjectPool_1__ctor_m1532275833_gshared/* 545*/, (Il2CppMethodPointer)&ObjectPool_1_Get_m3724675538_gshared/* 546*/, (Il2CppMethodPointer)&ObjectPool_1_Release_m1615270002_gshared/* 547*/, (Il2CppMethodPointer)&UnityEvent_1_FindMethod_Impl_m4083384818_gshared/* 548*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m3311025800_gshared/* 549*/, (Il2CppMethodPointer)&UnityEvent_1_FindMethod_Impl_m1178377679_gshared/* 550*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m2720691419_gshared/* 551*/, (Il2CppMethodPointer)&UnityEvent_1_FindMethod_Impl_m3813546_gshared/* 552*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m2566156550_gshared/* 553*/, (Il2CppMethodPointer)&UnityEvent_1_FindMethod_Impl_m3743240374_gshared/* 554*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m2856963016_gshared/* 555*/, (Il2CppMethodPointer)&UnityEvent_1_FindMethod_Impl_m2323626861_gshared/* 556*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m820458489_gshared/* 557*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m3043033341_gshared/* 558*/, (Il2CppMethodPointer)&Dictionary_2_Add_m790520409_gshared/* 559*/, (Il2CppMethodPointer)&Dictionary_2_TryGetValue_m2330758874_gshared/* 560*/, (Il2CppMethodPointer)&GenericComparer_1__ctor_m474482338_gshared/* 561*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m603915962_gshared/* 562*/, (Il2CppMethodPointer)&GenericComparer_1__ctor_m4106585959_gshared/* 563*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m2311357775_gshared/* 564*/, (Il2CppMethodPointer)&Nullable_1__ctor_m796575255_AdjustorThunk/* 565*/, (Il2CppMethodPointer)&Nullable_1_get_HasValue_m3663286555_AdjustorThunk/* 566*/, (Il2CppMethodPointer)&Nullable_1_get_Value_m1743067844_AdjustorThunk/* 567*/, (Il2CppMethodPointer)&GenericComparer_1__ctor_m3575096182_gshared/* 568*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m2595781006_gshared/* 569*/, (Il2CppMethodPointer)&CustomAttributeData_UnboxValues_TisCustomAttributeTypedArgument_t1498197914_m2561215702_gshared/* 570*/, (Il2CppMethodPointer)&Array_AsReadOnly_TisCustomAttributeTypedArgument_t1498197914_m2855930084_gshared/* 571*/, (Il2CppMethodPointer)&CustomAttributeData_UnboxValues_TisCustomAttributeNamedArgument_t94157543_m2789115353_gshared/* 572*/, (Il2CppMethodPointer)&Array_AsReadOnly_TisCustomAttributeNamedArgument_t94157543_m2935638619_gshared/* 573*/, (Il2CppMethodPointer)&GenericComparer_1__ctor_m221205314_gshared/* 574*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m1269284954_gshared/* 575*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m3313899087_gshared/* 576*/, (Il2CppMethodPointer)&Dictionary_2_Add_m3435012856_gshared/* 577*/, (Il2CppMethodPointer)&Array_BinarySearch_TisInt32_t2071877448_m1538339240_gshared/* 578*/, (Il2CppMethodPointer)&CachedInvokableCall_1__ctor_m3238306320_gshared/* 579*/, (Il2CppMethodPointer)&CachedInvokableCall_1__ctor_m127496184_gshared/* 580*/, (Il2CppMethodPointer)&CachedInvokableCall_1__ctor_m2563320212_gshared/* 581*/, (Il2CppMethodPointer)&Dictionary_2_TryGetValue_m2140744741_gshared/* 582*/, (Il2CppMethodPointer)&Dictionary_2_set_Item_m3180425769_gshared/* 583*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m1868603968_gshared/* 584*/, (Il2CppMethodPointer)&Mesh_SafeLength_TisInt32_t2071877448_m2504367186_gshared/* 585*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisVector3_t2243707580_m2367580537_gshared/* 586*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisVector4_t2243707581_m295947442_gshared/* 587*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisVector2_t2243707579_m3651973716_gshared/* 588*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisColor32_t874517518_m2030100417_gshared/* 589*/, (Il2CppMethodPointer)&Mesh_SetListForChannel_TisVector3_t2243707580_m2514561521_gshared/* 590*/, (Il2CppMethodPointer)&Mesh_SetListForChannel_TisVector4_t2243707581_m3238986708_gshared/* 591*/, (Il2CppMethodPointer)&Mesh_SetListForChannel_TisColor32_t874517518_m1056672865_gshared/* 592*/, (Il2CppMethodPointer)&Mesh_SetUvsImpl_TisVector2_t2243707579_m3939959910_gshared/* 593*/, (Il2CppMethodPointer)&List_1__ctor_m1598946593_gshared/* 594*/, (Il2CppMethodPointer)&List_1_Add_m688682013_gshared/* 595*/, (Il2CppMethodPointer)&UnityEvent_1_Invoke_m1903741765_gshared/* 596*/, (Il2CppMethodPointer)&Func_2__ctor_m1354888807_gshared/* 597*/, (Il2CppMethodPointer)&UnityEvent_1__ctor_m2948712401_gshared/* 598*/, (Il2CppMethodPointer)&UnityAction_2_Invoke_m1528820797_gshared/* 599*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m3061904506_gshared/* 600*/, (Il2CppMethodPointer)&UnityAction_2_Invoke_m670567184_gshared/* 601*/, (Il2CppMethodPointer)&Action_2_Invoke_m352317182_gshared/* 602*/, (Il2CppMethodPointer)&Action_1_Invoke_m3662000152_gshared/* 603*/, (Il2CppMethodPointer)&Action_2__ctor_m946854823_gshared/* 604*/, (Il2CppMethodPointer)&List_1__ctor_m2168280176_gshared/* 605*/, (Il2CppMethodPointer)&List_1__ctor_m3698273726_gshared/* 606*/, (Il2CppMethodPointer)&List_1__ctor_m2766376432_gshared/* 607*/, (Il2CppMethodPointer)&List_1__ctor_m2989057823_gshared/* 608*/, (Il2CppMethodPointer)&List_1_get_Item_m3435089276_gshared/* 609*/, (Il2CppMethodPointer)&List_1_get_Count_m3279745867_gshared/* 610*/, (Il2CppMethodPointer)&List_1_Clear_m392100656_gshared/* 611*/, (Il2CppMethodPointer)&List_1_Sort_m107990965_gshared/* 612*/, (Il2CppMethodPointer)&Comparison_1__ctor_m1414815602_gshared/* 613*/, (Il2CppMethodPointer)&List_1_Add_m2123823603_gshared/* 614*/, (Il2CppMethodPointer)&Comparison_1__ctor_m1178069812_gshared/* 615*/, (Il2CppMethodPointer)&Array_Sort_TisRaycastHit_t87180320_m3369192280_gshared/* 616*/, (Il2CppMethodPointer)&Dictionary_2_Add_m1296007576_gshared/* 617*/, (Il2CppMethodPointer)&Dictionary_2_Remove_m2771612799_gshared/* 618*/, (Il2CppMethodPointer)&Dictionary_2_get_Values_m41521588_gshared/* 619*/, (Il2CppMethodPointer)&ValueCollection_GetEnumerator_m520082450_gshared/* 620*/, (Il2CppMethodPointer)&Enumerator_get_Current_m3006348140_AdjustorThunk/* 621*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m1091131935_AdjustorThunk/* 622*/, (Il2CppMethodPointer)&Enumerator_Dispose_m2369319718_AdjustorThunk/* 623*/, (Il2CppMethodPointer)&Dictionary_2_Clear_m899854001_gshared/* 624*/, (Il2CppMethodPointer)&Dictionary_2_GetEnumerator_m3404768274_gshared/* 625*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2754383612_AdjustorThunk/* 626*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Value_m2897691047_AdjustorThunk/* 627*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Key_m1537018582_AdjustorThunk/* 628*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2770956757_AdjustorThunk/* 629*/, (Il2CppMethodPointer)&Enumerator_Dispose_m2243145188_AdjustorThunk/* 630*/, (Il2CppMethodPointer)&KeyValuePair_2_ToString_m1391611625_AdjustorThunk/* 631*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisAspectMode_t1166448724_m249129121_gshared/* 632*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisSingle_t2076509932_m3849235084_gshared/* 633*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisFitMode_t4030874534_m2608169783_gshared/* 634*/, (Il2CppMethodPointer)&UnityEvent_1_Invoke_m2213115825_gshared/* 635*/, (Il2CppMethodPointer)&UnityEvent_1_AddListener_m903508446_gshared/* 636*/, (Il2CppMethodPointer)&UnityEvent_1__ctor_m117795578_gshared/* 637*/, (Il2CppMethodPointer)&UnityEvent_1_Invoke_m1298892870_gshared/* 638*/, (Il2CppMethodPointer)&UnityEvent_1_AddListener_m2377847221_gshared/* 639*/, (Il2CppMethodPointer)&UnityEvent_1__ctor_m29611311_gshared/* 640*/, (Il2CppMethodPointer)&TweenRunner_1__ctor_m468841327_gshared/* 641*/, (Il2CppMethodPointer)&TweenRunner_1_Init_m3983200950_gshared/* 642*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m1968084291_gshared/* 643*/, (Il2CppMethodPointer)&UnityEvent_1_AddListener_m1708363187_gshared/* 644*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m2172708761_gshared/* 645*/, (Il2CppMethodPointer)&TweenRunner_1_StartTween_m3792842064_gshared/* 646*/, (Il2CppMethodPointer)&TweenRunner_1__ctor_m3259272810_gshared/* 647*/, (Il2CppMethodPointer)&TweenRunner_1_Init_m1193845233_gshared/* 648*/, (Il2CppMethodPointer)&TweenRunner_1_StopTween_m3552027891_gshared/* 649*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m3329809356_gshared/* 650*/, (Il2CppMethodPointer)&TweenRunner_1_StartTween_m577248035_gshared/* 651*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisCorner_t1077473318_m1354090789_gshared/* 652*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisAxis_t1431825778_m2174054513_gshared/* 653*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisVector2_t2243707579_m3010153489_gshared/* 654*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisConstraint_t3558160636_m4209429127_gshared/* 655*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisInt32_t2071877448_m2000481300_gshared/* 656*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisSingle_t2076509932_m3100320750_gshared/* 657*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisBoolean_t3825574718_m2764071576_gshared/* 658*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisType_t3352948571_m734942550_gshared/* 659*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisBoolean_t3825574718_m752301298_gshared/* 660*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisFillMethod_t1640962579_m1867757822_gshared/* 661*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisInt32_t2071877448_m2056826294_gshared/* 662*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisContentType_t1028629049_m3028008706_gshared/* 663*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisLineType_t2931319356_m3529428685_gshared/* 664*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisInputType_t1274231802_m694610473_gshared/* 665*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisTouchScreenKeyboardType_t875112366_m524584446_gshared/* 666*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisCharacterValidation_t3437478890_m2815007153_gshared/* 667*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisChar_t3454481338_m2333420724_gshared/* 668*/, (Il2CppMethodPointer)&LayoutGroup_SetProperty_TisTextAnchor_t112990806_m848706582_gshared/* 669*/, (Il2CppMethodPointer)&Func_2__ctor_m1874497973_gshared/* 670*/, (Il2CppMethodPointer)&Func_2_Invoke_m4121137703_gshared/* 671*/, (Il2CppMethodPointer)&UnityEvent_1_Invoke_m667974834_gshared/* 672*/, (Il2CppMethodPointer)&UnityEvent_1__ctor_m4051141261_gshared/* 673*/, (Il2CppMethodPointer)&ListPool_1_Get_m4215629480_gshared/* 674*/, (Il2CppMethodPointer)&List_1_get_Count_m2390119157_gshared/* 675*/, (Il2CppMethodPointer)&List_1_get_Capacity_m3497182270_gshared/* 676*/, (Il2CppMethodPointer)&List_1_set_Capacity_m3121007037_gshared/* 677*/, (Il2CppMethodPointer)&ListPool_1_Release_m782571048_gshared/* 678*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisDirection_t3696775921_m2182046118_gshared/* 679*/, (Il2CppMethodPointer)&UnityEvent_1_RemoveListener_m2564825698_gshared/* 680*/, (Il2CppMethodPointer)&UnityEvent_1_Invoke_m1533100983_gshared/* 681*/, (Il2CppMethodPointer)&UnityEvent_1__ctor_m3317039790_gshared/* 682*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisNavigation_t1571958496_m1169349290_gshared/* 683*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisTransition_t605142169_m3831531952_gshared/* 684*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisColorBlock_t2652774230_m2085520896_gshared/* 685*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisSpriteState_t1353336012_m2898060836_gshared/* 686*/, (Il2CppMethodPointer)&List_1_get_Item_m2318061838_gshared/* 687*/, (Il2CppMethodPointer)&List_1_Add_m3591975577_gshared/* 688*/, (Il2CppMethodPointer)&List_1_set_Item_m1747579297_gshared/* 689*/, (Il2CppMethodPointer)&SetPropertyUtility_SetStruct_TisDirection_t1525323322_m3913288783_gshared/* 690*/, (Il2CppMethodPointer)&ListPool_1_Get_m2998644518_gshared/* 691*/, (Il2CppMethodPointer)&ListPool_1_Get_m3357896252_gshared/* 692*/, (Il2CppMethodPointer)&ListPool_1_Get_m3002130343_gshared/* 693*/, (Il2CppMethodPointer)&ListPool_1_Get_m3009093805_gshared/* 694*/, (Il2CppMethodPointer)&ListPool_1_Get_m3809147792_gshared/* 695*/, (Il2CppMethodPointer)&List_1_AddRange_m2878063899_gshared/* 696*/, (Il2CppMethodPointer)&List_1_AddRange_m1309698249_gshared/* 697*/, (Il2CppMethodPointer)&List_1_AddRange_m4255157622_gshared/* 698*/, (Il2CppMethodPointer)&List_1_AddRange_m3345533268_gshared/* 699*/, (Il2CppMethodPointer)&List_1_AddRange_m2567809379_gshared/* 700*/, (Il2CppMethodPointer)&List_1_Clear_m576262818_gshared/* 701*/, (Il2CppMethodPointer)&List_1_Clear_m3889887144_gshared/* 702*/, (Il2CppMethodPointer)&List_1_Clear_m1402865383_gshared/* 703*/, (Il2CppMethodPointer)&List_1_Clear_m981597149_gshared/* 704*/, (Il2CppMethodPointer)&List_1_Clear_m3644677550_gshared/* 705*/, (Il2CppMethodPointer)&List_1_get_Count_m4027941115_gshared/* 706*/, (Il2CppMethodPointer)&List_1_get_Count_m852068579_gshared/* 707*/, (Il2CppMethodPointer)&List_1_get_Item_m2503489122_gshared/* 708*/, (Il2CppMethodPointer)&List_1_get_Item_m2079323980_gshared/* 709*/, (Il2CppMethodPointer)&List_1_get_Item_m2892902305_gshared/* 710*/, (Il2CppMethodPointer)&List_1_get_Item_m3157283227_gshared/* 711*/, (Il2CppMethodPointer)&List_1_set_Item_m3393612627_gshared/* 712*/, (Il2CppMethodPointer)&List_1_set_Item_m1209652185_gshared/* 713*/, (Il2CppMethodPointer)&List_1_set_Item_m1027817326_gshared/* 714*/, (Il2CppMethodPointer)&List_1_set_Item_m1431784996_gshared/* 715*/, (Il2CppMethodPointer)&ListPool_1_Release_m4118150756_gshared/* 716*/, (Il2CppMethodPointer)&ListPool_1_Release_m3047738410_gshared/* 717*/, (Il2CppMethodPointer)&ListPool_1_Release_m2208096831_gshared/* 718*/, (Il2CppMethodPointer)&ListPool_1_Release_m1119005941_gshared/* 719*/, (Il2CppMethodPointer)&ListPool_1_Release_m3716853512_gshared/* 720*/, (Il2CppMethodPointer)&List_1_Add_m2338641291_gshared/* 721*/, (Il2CppMethodPointer)&List_1_Add_m2405105969_gshared/* 722*/, (Il2CppMethodPointer)&List_1_Add_m148291600_gshared/* 723*/, (Il2CppMethodPointer)&List_1_Add_m1346004230_gshared/* 724*/, (Il2CppMethodPointer)&Array_get_swapper_TisInt32_t2071877448_m2837069166_gshared/* 725*/, (Il2CppMethodPointer)&Array_get_swapper_TisCustomAttributeNamedArgument_t94157543_m752138038_gshared/* 726*/, (Il2CppMethodPointer)&Array_get_swapper_TisCustomAttributeTypedArgument_t1498197914_m2780757375_gshared/* 727*/, (Il2CppMethodPointer)&Array_get_swapper_TisAnimatorClipInfo_t3905751349_m2927251609_gshared/* 728*/, (Il2CppMethodPointer)&Array_get_swapper_TisColor32_t874517518_m1026880462_gshared/* 729*/, (Il2CppMethodPointer)&Array_get_swapper_TisRaycastResult_t21186376_m2862975112_gshared/* 730*/, (Il2CppMethodPointer)&Array_get_swapper_TisUICharInfo_t3056636800_m2619726852_gshared/* 731*/, (Il2CppMethodPointer)&Array_get_swapper_TisUILineInfo_t3621277874_m2039324598_gshared/* 732*/, (Il2CppMethodPointer)&Array_get_swapper_TisUIVertex_t1204258818_m1078858558_gshared/* 733*/, (Il2CppMethodPointer)&Array_get_swapper_TisVector2_t2243707579_m97226333_gshared/* 734*/, (Il2CppMethodPointer)&Array_get_swapper_TisVector3_t2243707580_m97120700_gshared/* 735*/, (Il2CppMethodPointer)&Array_get_swapper_TisVector4_t2243707581_m97441823_gshared/* 736*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisTableRange_t2011406615_m605506746_gshared/* 737*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisClientCertificateType_t4001384466_m516486384_gshared/* 738*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisBoolean_t3825574718_m1175179714_gshared/* 739*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisByte_t3683104436_m350396182_gshared/* 740*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisChar_t3454481338_m1444673620_gshared/* 741*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisDictionaryEntry_t3048875398_m1859720213_gshared/* 742*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisLink_t865133271_m667902490_gshared/* 743*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t3749587448_m1874078099_gshared/* 744*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t1174980068_m650645929_gshared/* 745*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t3716250094_m1585406955_gshared/* 746*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisKeyValuePair_2_t38854645_m1283462310_gshared/* 747*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisLink_t2723257478_m2184159968_gshared/* 748*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisSlot_t2022531261_m3441677528_gshared/* 749*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisSlot_t2267560602_m3170835895_gshared/* 750*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisDateTime_t693205669_m2893922191_gshared/* 751*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisDecimal_t724701077_m4054637909_gshared/* 752*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisDouble_t4078015681_m2262383923_gshared/* 753*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisInt16_t4041245914_m698926112_gshared/* 754*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisInt32_t2071877448_m2152509106_gshared/* 755*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisInt64_t909078037_m1425723755_gshared/* 756*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisIntPtr_t_m3256777387_gshared/* 757*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisCustomAttributeNamedArgument_t94157543_m1388766122_gshared/* 758*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisCustomAttributeTypedArgument_t1498197914_m1722418503_gshared/* 759*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisLabelData_t3712112744_m3529421223_gshared/* 760*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisLabelFixup_t4090909514_m1969234117_gshared/* 761*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisILTokenInfo_t149559338_m1258883752_gshared/* 762*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisParameterModifier_t1820634920_m4169368065_gshared/* 763*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisResourceCacheItem_t333236149_m1769941464_gshared/* 764*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisResourceInfo_t3933049236_m3863819501_gshared/* 765*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisTypeTag_t141209596_m3657312010_gshared/* 766*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisSByte_t454417549_m2454261755_gshared/* 767*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisX509ChainStatus_t4278378721_m1902349847_gshared/* 768*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisSingle_t2076509932_m2118561348_gshared/* 769*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisMark_t2724874473_m1640201705_gshared/* 770*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisTimeSpan_t3430258949_m802614527_gshared/* 771*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUInt16_t986882611_m510319131_gshared/* 772*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUInt32_t2149682021_m672455245_gshared/* 773*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUInt64_t2909196914_m4127618946_gshared/* 774*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUriScheme_t1876590943_m372972826_gshared/* 775*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisAnimatorClipInfo_t3905751349_m1340273293_gshared/* 776*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisColor32_t874517518_m2818328910_gshared/* 777*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisContactPoint_t1376425630_m95840772_gshared/* 778*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisContactPoint2D_t3659330976_m474619266_gshared/* 779*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisRaycastResult_t21186376_m3188614988_gshared/* 780*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisKeyframe_t1449471340_m1232248382_gshared/* 781*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisRaycastHit_t87180320_m3453842218_gshared/* 782*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisRaycastHit2D_t4063908774_m2599798564_gshared/* 783*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisHitInfo_t1761367055_m4024109938_gshared/* 784*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisGcAchievementData_t1754866149_m72433171_gshared/* 785*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisGcScoreData_t3676783238_m584889850_gshared/* 786*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisContentType_t1028629049_m2321684690_gshared/* 787*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUICharInfo_t3056636800_m2001435744_gshared/* 788*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUILineInfo_t3621277874_m1175659630_gshared/* 789*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisUIVertex_t1204258818_m2130850774_gshared/* 790*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisVector2_t2243707579_m3625698589_gshared/* 791*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisVector3_t2243707580_m3625701788_gshared/* 792*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Contains_TisVector4_t2243707581_m3625700767_gshared/* 793*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisTableRange_t2011406615_m1320911061_gshared/* 794*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisClientCertificateType_t4001384466_m3300855061_gshared/* 795*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisBoolean_t3825574718_m3803418347_gshared/* 796*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisByte_t3683104436_m3735997529_gshared/* 797*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisChar_t3454481338_m1562002771_gshared/* 798*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisDictionaryEntry_t3048875398_m3558222834_gshared/* 799*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisLink_t865133271_m1984184141_gshared/* 800*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t3749587448_m3122245402_gshared/* 801*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t1174980068_m2768765894_gshared/* 802*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t3716250094_m2566517826_gshared/* 803*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisKeyValuePair_2_t38854645_m3060436673_gshared/* 804*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisLink_t2723257478_m3503448455_gshared/* 805*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisSlot_t2022531261_m699871927_gshared/* 806*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisSlot_t2267560602_m3192197784_gshared/* 807*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisDateTime_t693205669_m1275668216_gshared/* 808*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisDecimal_t724701077_m12647962_gshared/* 809*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisDouble_t4078015681_m2017336956_gshared/* 810*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisInt16_t4041245914_m3380378727_gshared/* 811*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisInt32_t2071877448_m538990333_gshared/* 812*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisInt64_t909078037_m2653583130_gshared/* 813*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisIntPtr_t_m1708878780_gshared/* 814*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisCustomAttributeNamedArgument_t94157543_m2838387005_gshared/* 815*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisCustomAttributeTypedArgument_t1498197914_m2998290920_gshared/* 816*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisLabelData_t3712112744_m3858576926_gshared/* 817*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisLabelFixup_t4090909514_m2711148714_gshared/* 818*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisILTokenInfo_t149559338_m1523907845_gshared/* 819*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisParameterModifier_t1820634920_m3755172300_gshared/* 820*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisResourceCacheItem_t333236149_m849893455_gshared/* 821*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisResourceInfo_t3933049236_m1768394498_gshared/* 822*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisTypeTag_t141209596_m3156842467_gshared/* 823*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisSByte_t454417549_m2474211570_gshared/* 824*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisX509ChainStatus_t4278378721_m4127982424_gshared/* 825*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisSingle_t2076509932_m2568053761_gshared/* 826*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisMark_t2724874473_m175120702_gshared/* 827*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisTimeSpan_t3430258949_m694017704_gshared/* 828*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUInt16_t986882611_m65494986_gshared/* 829*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUInt32_t2149682021_m4198326168_gshared/* 830*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUInt64_t2909196914_m679263627_gshared/* 831*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUriScheme_t1876590943_m1953022829_gshared/* 832*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisAnimatorClipInfo_t3905751349_m2545295962_gshared/* 833*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisColor32_t874517518_m2452332023_gshared/* 834*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisContactPoint_t1376425630_m2242111467_gshared/* 835*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisContactPoint2D_t3659330976_m1645131909_gshared/* 836*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisRaycastResult_t21186376_m3967816033_gshared/* 837*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisKeyframe_t1449471340_m595216113_gshared/* 838*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisRaycastHit_t87180320_m776345349_gshared/* 839*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisRaycastHit2D_t4063908774_m2012629411_gshared/* 840*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisHitInfo_t1761367055_m2552360917_gshared/* 841*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisGcAchievementData_t1754866149_m591618908_gshared/* 842*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisGcScoreData_t3676783238_m3295322005_gshared/* 843*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisContentType_t1028629049_m3085152315_gshared/* 844*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUICharInfo_t3056636800_m2470648901_gshared/* 845*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUILineInfo_t3621277874_m3091378175_gshared/* 846*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisUIVertex_t1204258818_m2516695631_gshared/* 847*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisVector2_t2243707579_m3881494282_gshared/* 848*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisVector3_t2243707580_m3881497481_gshared/* 849*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Remove_TisVector4_t2243707581_m3881492104_gshared/* 850*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisTableRange_t2011406615_m3936018499_gshared/* 851*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisClientCertificateType_t4001384466_m951072011_gshared/* 852*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisBoolean_t3825574718_m798244337_gshared/* 853*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisByte_t3683104436_m308473235_gshared/* 854*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisChar_t3454481338_m2563195437_gshared/* 855*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisDictionaryEntry_t3048875398_m3498834924_gshared/* 856*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisLink_t865133271_m1714996391_gshared/* 857*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t3749587448_m3391106932_gshared/* 858*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t1174980068_m1377303660_gshared/* 859*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t3716250094_m3952087432_gshared/* 860*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisKeyValuePair_2_t38854645_m4187507223_gshared/* 861*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisLink_t2723257478_m1351072573_gshared/* 862*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisSlot_t2022531261_m1481110705_gshared/* 863*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisSlot_t2267560602_m2248816486_gshared/* 864*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisDateTime_t693205669_m2991612046_gshared/* 865*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisDecimal_t724701077_m1936895112_gshared/* 866*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisDouble_t4078015681_m3371235186_gshared/* 867*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisInt16_t4041245914_m937433965_gshared/* 868*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisInt32_t2071877448_m372781915_gshared/* 869*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisInt64_t909078037_m1219751804_gshared/* 870*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisIntPtr_t_m4214818898_gshared/* 871*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisCustomAttributeNamedArgument_t94157543_m2704432855_gshared/* 872*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisCustomAttributeTypedArgument_t1498197914_m3011406326_gshared/* 873*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisLabelData_t3712112744_m3468606260_gshared/* 874*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisLabelFixup_t4090909514_m4152992772_gshared/* 875*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisILTokenInfo_t149559338_m2281833111_gshared/* 876*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisParameterModifier_t1820634920_m892071030_gshared/* 877*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisResourceCacheItem_t333236149_m2870081593_gshared/* 878*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisResourceInfo_t3933049236_m3580551168_gshared/* 879*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisTypeTag_t141209596_m3168560637_gshared/* 880*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisSByte_t454417549_m2988041824_gshared/* 881*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisX509ChainStatus_t4278378721_m756165474_gshared/* 882*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisSingle_t2076509932_m1753904423_gshared/* 883*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisMark_t2724874473_m1968202824_gshared/* 884*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisTimeSpan_t3430258949_m251517730_gshared/* 885*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUInt16_t986882611_m3665860884_gshared/* 886*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUInt32_t2149682021_m3828001486_gshared/* 887*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUInt64_t2909196914_m2421991169_gshared/* 888*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUriScheme_t1876590943_m10836459_gshared/* 889*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisAnimatorClipInfo_t3905751349_m1777824516_gshared/* 890*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisColor32_t874517518_m2198639025_gshared/* 891*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisContactPoint_t1376425630_m1828052333_gshared/* 892*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisContactPoint2D_t3659330976_m478005999_gshared/* 893*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisRaycastResult_t21186376_m2914643003_gshared/* 894*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisKeyframe_t1449471340_m3949799719_gshared/* 895*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisRaycastHit_t87180320_m1059910191_gshared/* 896*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisRaycastHit2D_t4063908774_m3870155125_gshared/* 897*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisHitInfo_t1761367055_m2486283755_gshared/* 898*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisGcAchievementData_t1754866149_m4000233314_gshared/* 899*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisGcScoreData_t3676783238_m2991199875_gshared/* 900*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisContentType_t1028629049_m803524693_gshared/* 901*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUICharInfo_t3056636800_m1496435515_gshared/* 902*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUILineInfo_t3621277874_m1353655585_gshared/* 903*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisUIVertex_t1204258818_m1520933201_gshared/* 904*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisVector2_t2243707579_m829381124_gshared/* 905*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisVector3_t2243707580_m829381027_gshared/* 906*/, (Il2CppMethodPointer)&Array_InternalArray__IEnumerable_GetEnumerator_TisVector4_t2243707581_m829381058_gshared/* 907*/, (Il2CppMethodPointer)&Array_BinarySearch_TisInt32_t2071877448_m51233948_gshared/* 908*/, (Il2CppMethodPointer)&Array_compare_TisInt32_t2071877448_m840310202_gshared/* 909*/, (Il2CppMethodPointer)&Array_compare_TisCustomAttributeNamedArgument_t94157543_m3453821210_gshared/* 910*/, (Il2CppMethodPointer)&Array_compare_TisCustomAttributeTypedArgument_t1498197914_m3141177147_gshared/* 911*/, (Il2CppMethodPointer)&Array_compare_TisAnimatorClipInfo_t3905751349_m1923868157_gshared/* 912*/, (Il2CppMethodPointer)&Array_compare_TisColor32_t874517518_m3842009370_gshared/* 913*/, (Il2CppMethodPointer)&Array_compare_TisRaycastResult_t21186376_m960388468_gshared/* 914*/, (Il2CppMethodPointer)&Array_compare_TisUICharInfo_t3056636800_m2861112472_gshared/* 915*/, (Il2CppMethodPointer)&Array_compare_TisUILineInfo_t3621277874_m2798413554_gshared/* 916*/, (Il2CppMethodPointer)&Array_compare_TisUIVertex_t1204258818_m3653401826_gshared/* 917*/, (Il2CppMethodPointer)&Array_compare_TisVector2_t2243707579_m1090169645_gshared/* 918*/, (Il2CppMethodPointer)&Array_compare_TisVector3_t2243707580_m3709184876_gshared/* 919*/, (Il2CppMethodPointer)&Array_compare_TisVector4_t2243707581_m1382942891_gshared/* 920*/, (Il2CppMethodPointer)&Array_IndexOf_TisInt32_t2071877448_m4287366004_gshared/* 921*/, (Il2CppMethodPointer)&Array_IndexOf_TisCustomAttributeNamedArgument_t94157543_m745056346_gshared/* 922*/, (Il2CppMethodPointer)&Array_IndexOf_TisCustomAttributeNamedArgument_t94157543_m2205974312_gshared/* 923*/, (Il2CppMethodPointer)&Array_IndexOf_TisCustomAttributeTypedArgument_t1498197914_m3666284377_gshared/* 924*/, (Il2CppMethodPointer)&Array_IndexOf_TisCustomAttributeTypedArgument_t1498197914_m1984749829_gshared/* 925*/, (Il2CppMethodPointer)&Array_IndexOf_TisAnimatorClipInfo_t3905751349_m4033344779_gshared/* 926*/, (Il2CppMethodPointer)&Array_IndexOf_TisColor32_t874517518_m1567378308_gshared/* 927*/, (Il2CppMethodPointer)&Array_IndexOf_TisRaycastResult_t21186376_m63591914_gshared/* 928*/, (Il2CppMethodPointer)&Array_IndexOf_TisUICharInfo_t3056636800_m2172993634_gshared/* 929*/, (Il2CppMethodPointer)&Array_IndexOf_TisUILineInfo_t3621277874_m662734736_gshared/* 930*/, (Il2CppMethodPointer)&Array_IndexOf_TisUIVertex_t1204258818_m613887160_gshared/* 931*/, (Il2CppMethodPointer)&Array_IndexOf_TisVector2_t2243707579_m2794219323_gshared/* 932*/, (Il2CppMethodPointer)&Array_IndexOf_TisVector3_t2243707580_m3496905818_gshared/* 933*/, (Il2CppMethodPointer)&Array_IndexOf_TisVector4_t2243707581_m3031135093_gshared/* 934*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisTableRange_t2011406615_m146262996_gshared/* 935*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisClientCertificateType_t4001384466_m1168139450_gshared/* 936*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisBoolean_t3825574718_m4172864480_gshared/* 937*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisByte_t3683104436_m3605266236_gshared/* 938*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisChar_t3454481338_m4155008006_gshared/* 939*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisDictionaryEntry_t3048875398_m913595855_gshared/* 940*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisLink_t865133271_m3612939760_gshared/* 941*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisKeyValuePair_2_t3749587448_m3725528449_gshared/* 942*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisKeyValuePair_2_t1174980068_m3823411479_gshared/* 943*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisKeyValuePair_2_t3716250094_m143738709_gshared/* 944*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisKeyValuePair_2_t38854645_m2860958992_gshared/* 945*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisLink_t2723257478_m86070942_gshared/* 946*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisSlot_t2022531261_m2700677338_gshared/* 947*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisSlot_t2267560602_m1912863273_gshared/* 948*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisDateTime_t693205669_m2327436641_gshared/* 949*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisDecimal_t724701077_m1918961139_gshared/* 950*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisDouble_t4078015681_m905571285_gshared/* 951*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisInt16_t4041245914_m1619355230_gshared/* 952*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisInt32_t2071877448_m1457219116_gshared/* 953*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisInt64_t909078037_m617406809_gshared/* 954*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisIntPtr_t_m1629926061_gshared/* 955*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisCustomAttributeNamedArgument_t94157543_m331861728_gshared/* 956*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisCustomAttributeTypedArgument_t1498197914_m2918677849_gshared/* 957*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisLabelData_t3712112744_m666782177_gshared/* 958*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisLabelFixup_t4090909514_m2939738943_gshared/* 959*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisILTokenInfo_t149559338_m3923618094_gshared/* 960*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisParameterModifier_t1820634920_m2828848595_gshared/* 961*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisResourceCacheItem_t333236149_m761772858_gshared/* 962*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisResourceInfo_t3933049236_m461837835_gshared/* 963*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisTypeTag_t141209596_m2882894956_gshared/* 964*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisSByte_t454417549_m1427585061_gshared/* 965*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisX509ChainStatus_t4278378721_m1338369069_gshared/* 966*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisSingle_t2076509932_m2151846718_gshared/* 967*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisMark_t2724874473_m616231507_gshared/* 968*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisTimeSpan_t3430258949_m3976593173_gshared/* 969*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUInt16_t986882611_m390127593_gshared/* 970*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUInt32_t2149682021_m3231515987_gshared/* 971*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUInt64_t2909196914_m3958307360_gshared/* 972*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUriScheme_t1876590943_m3463911316_gshared/* 973*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisAnimatorClipInfo_t3905751349_m3532816999_gshared/* 974*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisColor32_t874517518_m1119164896_gshared/* 975*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisContactPoint_t1376425630_m3651364246_gshared/* 976*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisContactPoint2D_t3659330976_m3961643896_gshared/* 977*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisRaycastResult_t21186376_m447540194_gshared/* 978*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisKeyframe_t1449471340_m3989187112_gshared/* 979*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisRaycastHit_t87180320_m503997920_gshared/* 980*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisRaycastHit2D_t4063908774_m3739817942_gshared/* 981*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisHitInfo_t1761367055_m2163456428_gshared/* 982*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisGcAchievementData_t1754866149_m1795849205_gshared/* 983*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisGcScoreData_t3676783238_m827650132_gshared/* 984*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisContentType_t1028629049_m822201172_gshared/* 985*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUICharInfo_t3056636800_m726958282_gshared/* 986*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUILineInfo_t3621277874_m698592736_gshared/* 987*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisUIVertex_t1204258818_m3231760648_gshared/* 988*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisVector2_t2243707579_m2867582359_gshared/* 989*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisVector3_t2243707580_m3949311538_gshared/* 990*/, (Il2CppMethodPointer)&Array_InternalArray__IndexOf_TisVector4_t2243707581_m752986485_gshared/* 991*/, (Il2CppMethodPointer)&Mesh_SafeLength_TisColor32_t874517518_m2265151750_gshared/* 992*/, (Il2CppMethodPointer)&Mesh_SafeLength_TisVector2_t2243707579_m193299961_gshared/* 993*/, (Il2CppMethodPointer)&Mesh_SafeLength_TisVector3_t2243707580_m1796604504_gshared/* 994*/, (Il2CppMethodPointer)&Mesh_SafeLength_TisVector4_t2243707581_m4187164855_gshared/* 995*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisTableRange_t2011406615_m147373358_gshared/* 996*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisClientCertificateType_t4001384466_m3960028240_gshared/* 997*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisBoolean_t3825574718_m1009318882_gshared/* 998*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisByte_t3683104436_m3112489302_gshared/* 999*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisChar_t3454481338_m422084244_gshared/* 1000*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisDictionaryEntry_t3048875398_m279246399_gshared/* 1001*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisLink_t865133271_m2609930362_gshared/* 1002*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t3749587448_m3161229013_gshared/* 1003*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t1174980068_m2120831431_gshared/* 1004*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t3716250094_m2381539361_gshared/* 1005*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisKeyValuePair_2_t38854645_m1634372890_gshared/* 1006*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisLink_t2723257478_m1373760916_gshared/* 1007*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisSlot_t2022531261_m2082526552_gshared/* 1008*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisSlot_t2267560602_m2838183157_gshared/* 1009*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisDateTime_t693205669_m3559987213_gshared/* 1010*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisDecimal_t724701077_m2457636275_gshared/* 1011*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisDouble_t4078015681_m280043633_gshared/* 1012*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisInt16_t4041245914_m321723604_gshared/* 1013*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisInt32_t2071877448_m1775306598_gshared/* 1014*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisInt64_t909078037_m3889909773_gshared/* 1015*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisIntPtr_t_m2379879145_gshared/* 1016*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisCustomAttributeNamedArgument_t94157543_m1003067274_gshared/* 1017*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisCustomAttributeTypedArgument_t1498197914_m3260005285_gshared/* 1018*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisLabelData_t3712112744_m259038877_gshared/* 1019*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisLabelFixup_t4090909514_m3465405039_gshared/* 1020*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisILTokenInfo_t149559338_m1602260596_gshared/* 1021*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisParameterModifier_t1820634920_m2029930691_gshared/* 1022*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisResourceCacheItem_t333236149_m1151081240_gshared/* 1023*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisResourceInfo_t3933049236_m3010906827_gshared/* 1024*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisTypeTag_t141209596_m1991820054_gshared/* 1025*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisSByte_t454417549_m46595441_gshared/* 1026*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisX509ChainStatus_t4278378721_m3095000705_gshared/* 1027*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisSingle_t2076509932_m3852760964_gshared/* 1028*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisMark_t2724874473_m1613484179_gshared/* 1029*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisTimeSpan_t3430258949_m2779284617_gshared/* 1030*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUInt16_t986882611_m2791161149_gshared/* 1031*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUInt32_t2149682021_m2629016323_gshared/* 1032*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUInt64_t2909196914_m2516003202_gshared/* 1033*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUriScheme_t1876590943_m3218110478_gshared/* 1034*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisAnimatorClipInfo_t3905751349_m2862668439_gshared/* 1035*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisColor32_t874517518_m1456673850_gshared/* 1036*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisContactPoint_t1376425630_m1442223012_gshared/* 1037*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisContactPoint2D_t3659330976_m1781705858_gshared/* 1038*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisRaycastResult_t21186376_m4116652504_gshared/* 1039*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisKeyframe_t1449471340_m887263954_gshared/* 1040*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisRaycastHit_t87180320_m1721799754_gshared/* 1041*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisRaycastHit2D_t4063908774_m2384758116_gshared/* 1042*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisHitInfo_t1761367055_m2956071622_gshared/* 1043*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisGcAchievementData_t1754866149_m653743601_gshared/* 1044*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisGcScoreData_t3676783238_m1766887566_gshared/* 1045*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisContentType_t1028629049_m2984242302_gshared/* 1046*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUICharInfo_t3056636800_m968274080_gshared/* 1047*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUILineInfo_t3621277874_m3806648986_gshared/* 1048*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisUIVertex_t1204258818_m3869382594_gshared/* 1049*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisVector2_t2243707579_m698576071_gshared/* 1050*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisVector3_t2243707580_m698577096_gshared/* 1051*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_Add_TisVector4_t2243707581_m698578249_gshared/* 1052*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisTableRange_t2011406615_m2322141712_gshared/* 1053*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisClientCertificateType_t4001384466_m4065173814_gshared/* 1054*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisBoolean_t3825574718_m2622957236_gshared/* 1055*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisByte_t3683104436_m2871066554_gshared/* 1056*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisChar_t3454481338_m1048462504_gshared/* 1057*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisDictionaryEntry_t3048875398_m202302843_gshared/* 1058*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisLink_t865133271_m3490450572_gshared/* 1059*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t3749587448_m2750720485_gshared/* 1060*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t1174980068_m1818152223_gshared/* 1061*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t3716250094_m1957637553_gshared/* 1062*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisKeyValuePair_2_t38854645_m1078770380_gshared/* 1063*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisLink_t2723257478_m3810551200_gshared/* 1064*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisSlot_t2022531261_m1636166140_gshared/* 1065*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisSlot_t2267560602_m1792475781_gshared/* 1066*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisDateTime_t693205669_m939833053_gshared/* 1067*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisDecimal_t724701077_m1087621311_gshared/* 1068*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisDouble_t4078015681_m3168776657_gshared/* 1069*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisInt16_t4041245914_m626895050_gshared/* 1070*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisInt32_t2071877448_m984622488_gshared/* 1071*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisInt64_t909078037_m1678621661_gshared/* 1072*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisIntPtr_t_m145182641_gshared/* 1073*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisCustomAttributeNamedArgument_t94157543_m171683372_gshared/* 1074*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisCustomAttributeTypedArgument_t1498197914_m3911115093_gshared/* 1075*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisLabelData_t3712112744_m2562347645_gshared/* 1076*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisLabelFixup_t4090909514_m2060561655_gshared/* 1077*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisILTokenInfo_t149559338_m397181802_gshared/* 1078*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisParameterModifier_t1820634920_m4127516211_gshared/* 1079*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisResourceCacheItem_t333236149_m1448974100_gshared/* 1080*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisResourceInfo_t3933049236_m285508839_gshared/* 1081*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisTypeTag_t141209596_m1863343744_gshared/* 1082*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisSByte_t454417549_m1642937985_gshared/* 1083*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisX509ChainStatus_t4278378721_m3789804937_gshared/* 1084*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisSingle_t2076509932_m2556932368_gshared/* 1085*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisMark_t2724874473_m1764726075_gshared/* 1086*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisTimeSpan_t3430258949_m1634642441_gshared/* 1087*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUInt16_t986882611_m3228377237_gshared/* 1088*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUInt32_t2149682021_m691607851_gshared/* 1089*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUInt64_t2909196914_m1574499494_gshared/* 1090*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUriScheme_t1876590943_m239032216_gshared/* 1091*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisAnimatorClipInfo_t3905751349_m2458580947_gshared/* 1092*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisColor32_t874517518_m379086718_gshared/* 1093*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisContactPoint_t1376425630_m707608562_gshared/* 1094*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisContactPoint2D_t3659330976_m2258758356_gshared/* 1095*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisRaycastResult_t21186376_m4113964166_gshared/* 1096*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisKeyframe_t1449471340_m341576764_gshared/* 1097*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisRaycastHit_t87180320_m1056450692_gshared/* 1098*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisRaycastHit2D_t4063908774_m3837098618_gshared/* 1099*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisHitInfo_t1761367055_m82632370_gshared/* 1100*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisGcAchievementData_t1754866149_m2130909753_gshared/* 1101*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisGcScoreData_t3676783238_m850113648_gshared/* 1102*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisContentType_t1028629049_m330597634_gshared/* 1103*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUICharInfo_t3056636800_m2132994790_gshared/* 1104*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUILineInfo_t3621277874_m2142954044_gshared/* 1105*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisUIVertex_t1204258818_m3361613612_gshared/* 1106*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisVector2_t2243707579_m3908108199_gshared/* 1107*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisVector3_t2243707580_m509487340_gshared/* 1108*/, (Il2CppMethodPointer)&Array_InternalArray__ICollection_CopyTo_TisVector4_t2243707581_m3540791817_gshared/* 1109*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisTableRange_t2011406615_m933045409_gshared/* 1110*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisClientCertificateType_t4001384466_m2638589713_gshared/* 1111*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisBoolean_t3825574718_m1732360951_gshared/* 1112*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisByte_t3683104436_m3821216761_gshared/* 1113*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisChar_t3454481338_m419374979_gshared/* 1114*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisDictionaryEntry_t3048875398_m3561038296_gshared/* 1115*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisLink_t865133271_m1711225145_gshared/* 1116*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisKeyValuePair_2_t3749587448_m3572613214_gshared/* 1117*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisKeyValuePair_2_t1174980068_m2464431954_gshared/* 1118*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisKeyValuePair_2_t3716250094_m3232467606_gshared/* 1119*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisKeyValuePair_2_t38854645_m211413533_gshared/* 1120*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisLink_t2723257478_m822653735_gshared/* 1121*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisSlot_t2022531261_m2629734575_gshared/* 1122*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisSlot_t2267560602_m1862001206_gshared/* 1123*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisDateTime_t693205669_m1484996356_gshared/* 1124*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisDecimal_t724701077_m1429254816_gshared/* 1125*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisDouble_t4078015681_m2142805648_gshared/* 1126*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisInt16_t4041245914_m371511339_gshared/* 1127*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisInt32_t2071877448_m450589625_gshared/* 1128*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisInt64_t909078037_m3039874636_gshared/* 1129*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisIntPtr_t_m3232864760_gshared/* 1130*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisCustomAttributeNamedArgument_t94157543_m1700539049_gshared/* 1131*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisCustomAttributeTypedArgument_t1498197914_m159211206_gshared/* 1132*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisLabelData_t3712112744_m1352095128_gshared/* 1133*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisLabelFixup_t4090909514_m3927736182_gshared/* 1134*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisILTokenInfo_t149559338_m2477135873_gshared/* 1135*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisParameterModifier_t1820634920_m3586366920_gshared/* 1136*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisResourceCacheItem_t333236149_m892830527_gshared/* 1137*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisResourceInfo_t3933049236_m1054390648_gshared/* 1138*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisTypeTag_t141209596_m2959204415_gshared/* 1139*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisSByte_t454417549_m2203436188_gshared/* 1140*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisX509ChainStatus_t4278378721_m777129612_gshared/* 1141*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisSingle_t2076509932_m3514232129_gshared/* 1142*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisMark_t2724874473_m3300165458_gshared/* 1143*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisTimeSpan_t3430258949_m3376884148_gshared/* 1144*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUInt16_t986882611_m2263078_gshared/* 1145*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUInt32_t2149682021_m2575522428_gshared/* 1146*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUInt64_t2909196914_m296341307_gshared/* 1147*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUriScheme_t1876590943_m2728325409_gshared/* 1148*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisAnimatorClipInfo_t3905751349_m1998637904_gshared/* 1149*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisColor32_t874517518_m2750943679_gshared/* 1150*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisContactPoint_t1376425630_m2834588319_gshared/* 1151*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisContactPoint2D_t3659330976_m1722008481_gshared/* 1152*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisRaycastResult_t21186376_m2824830645_gshared/* 1153*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisKeyframe_t1449471340_m759416469_gshared/* 1154*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisRaycastHit_t87180320_m1183264361_gshared/* 1155*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisRaycastHit2D_t4063908774_m3174907903_gshared/* 1156*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisHitInfo_t1761367055_m2882234445_gshared/* 1157*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisGcAchievementData_t1754866149_m3032784802_gshared/* 1158*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisGcScoreData_t3676783238_m2520717377_gshared/* 1159*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisContentType_t1028629049_m1657980075_gshared/* 1160*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUICharInfo_t3056636800_m831626049_gshared/* 1161*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUILineInfo_t3621277874_m3317750035_gshared/* 1162*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisUIVertex_t1204258818_m2149554491_gshared/* 1163*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisVector2_t2243707579_m916134334_gshared/* 1164*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisVector3_t2243707580_m3407722073_gshared/* 1165*/, (Il2CppMethodPointer)&Array_InternalArray__Insert_TisVector4_t2243707581_m1643342708_gshared/* 1166*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisTableRange_t2011406615_m2386708730_gshared/* 1167*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisClientCertificateType_t4001384466_m3578311308_gshared/* 1168*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisBoolean_t3825574718_m3250919050_gshared/* 1169*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisByte_t3683104436_m1694926640_gshared/* 1170*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisChar_t3454481338_m3145790370_gshared/* 1171*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisDictionaryEntry_t3048875398_m34441351_gshared/* 1172*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisLink_t865133271_m3921171894_gshared/* 1173*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisKeyValuePair_2_t3749587448_m4020534085_gshared/* 1174*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisKeyValuePair_2_t1174980068_m4174153963_gshared/* 1175*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisKeyValuePair_2_t3716250094_m1789683417_gshared/* 1176*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisKeyValuePair_2_t38854645_m1100778742_gshared/* 1177*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisLink_t2723257478_m1142632826_gshared/* 1178*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisSlot_t2022531261_m3811041838_gshared/* 1179*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisSlot_t2267560602_m2162879633_gshared/* 1180*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisDateTime_t693205669_m197118909_gshared/* 1181*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisDecimal_t724701077_m1342588459_gshared/* 1182*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisDouble_t4078015681_m24756265_gshared/* 1183*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisInt16_t4041245914_m3128518964_gshared/* 1184*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisInt32_t2071877448_m2959927234_gshared/* 1185*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisInt64_t909078037_m3898394929_gshared/* 1186*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisIntPtr_t_m3469133225_gshared/* 1187*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisCustomAttributeNamedArgument_t94157543_m3917436246_gshared/* 1188*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisCustomAttributeTypedArgument_t1498197914_m3657976385_gshared/* 1189*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisLabelData_t3712112744_m2253365137_gshared/* 1190*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisLabelFixup_t4090909514_m565370771_gshared/* 1191*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisILTokenInfo_t149559338_m4072905600_gshared/* 1192*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisParameterModifier_t1820634920_m3126548327_gshared/* 1193*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisResourceCacheItem_t333236149_m2074358118_gshared/* 1194*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisResourceInfo_t3933049236_m216042579_gshared/* 1195*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisTypeTag_t141209596_m3822995350_gshared/* 1196*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisSByte_t454417549_m1650395157_gshared/* 1197*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisX509ChainStatus_t4278378721_m1993048849_gshared/* 1198*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisSingle_t2076509932_m4273663642_gshared/* 1199*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisMark_t2724874473_m2258664863_gshared/* 1200*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisTimeSpan_t3430258949_m285095777_gshared/* 1201*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUInt16_t986882611_m59367493_gshared/* 1202*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUInt32_t2149682021_m1781075439_gshared/* 1203*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUInt64_t2909196914_m1156945812_gshared/* 1204*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUriScheme_t1876590943_m1211880002_gshared/* 1205*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisAnimatorClipInfo_t3905751349_m978873279_gshared/* 1206*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisColor32_t874517518_m2764061836_gshared/* 1207*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisContactPoint_t1376425630_m618872604_gshared/* 1208*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisContactPoint2D_t3659330976_m982335198_gshared/* 1209*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisRaycastResult_t21186376_m282695900_gshared/* 1210*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisKeyframe_t1449471340_m2314998918_gshared/* 1211*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisRaycastHit_t87180320_m792399342_gshared/* 1212*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisRaycastHit2D_t4063908774_m2647423940_gshared/* 1213*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisHitInfo_t1761367055_m2693590376_gshared/* 1214*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisGcAchievementData_t1754866149_m2646152357_gshared/* 1215*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisGcScoreData_t3676783238_m3622204922_gshared/* 1216*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisContentType_t1028629049_m703420360_gshared/* 1217*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUICharInfo_t3056636800_m1953167516_gshared/* 1218*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUILineInfo_t3621277874_m2417803570_gshared/* 1219*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisUIVertex_t1204258818_m1268461218_gshared/* 1220*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisVector2_t2243707579_m3194047011_gshared/* 1221*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisVector3_t2243707580_m1390667454_gshared/* 1222*/, (Il2CppMethodPointer)&Array_InternalArray__set_Item_TisVector4_t2243707581_m3878172417_gshared/* 1223*/, (Il2CppMethodPointer)&Array_qsort_TisInt32_t2071877448_TisInt32_t2071877448_m3855046429_gshared/* 1224*/, (Il2CppMethodPointer)&Array_qsort_TisInt32_t2071877448_m1764919157_gshared/* 1225*/, (Il2CppMethodPointer)&Array_qsort_TisCustomAttributeNamedArgument_t94157543_TisCustomAttributeNamedArgument_t94157543_m1794864717_gshared/* 1226*/, (Il2CppMethodPointer)&Array_qsort_TisCustomAttributeNamedArgument_t94157543_m29062149_gshared/* 1227*/, (Il2CppMethodPointer)&Array_qsort_TisCustomAttributeTypedArgument_t1498197914_TisCustomAttributeTypedArgument_t1498197914_m3299200237_gshared/* 1228*/, (Il2CppMethodPointer)&Array_qsort_TisCustomAttributeTypedArgument_t1498197914_m3901473686_gshared/* 1229*/, (Il2CppMethodPointer)&Array_qsort_TisAnimatorClipInfo_t3905751349_TisAnimatorClipInfo_t3905751349_m1590397297_gshared/* 1230*/, (Il2CppMethodPointer)&Array_qsort_TisAnimatorClipInfo_t3905751349_m1457508924_gshared/* 1231*/, (Il2CppMethodPointer)&Array_qsort_TisColor32_t874517518_TisColor32_t874517518_m3467679249_gshared/* 1232*/, (Il2CppMethodPointer)&Array_qsort_TisColor32_t874517518_m2536513943_gshared/* 1233*/, (Il2CppMethodPointer)&Array_qsort_TisRaycastResult_t21186376_TisRaycastResult_t21186376_m2717673581_gshared/* 1234*/, (Il2CppMethodPointer)&Array_qsort_TisRaycastResult_t21186376_m1830097153_gshared/* 1235*/, (Il2CppMethodPointer)&Array_qsort_TisRaycastHit_t87180320_m961108869_gshared/* 1236*/, (Il2CppMethodPointer)&Array_qsort_TisUICharInfo_t3056636800_TisUICharInfo_t3056636800_m1253367821_gshared/* 1237*/, (Il2CppMethodPointer)&Array_qsort_TisUICharInfo_t3056636800_m2607408901_gshared/* 1238*/, (Il2CppMethodPointer)&Array_qsort_TisUILineInfo_t3621277874_TisUILineInfo_t3621277874_m441879881_gshared/* 1239*/, (Il2CppMethodPointer)&Array_qsort_TisUILineInfo_t3621277874_m693500979_gshared/* 1240*/, (Il2CppMethodPointer)&Array_qsort_TisUIVertex_t1204258818_TisUIVertex_t1204258818_m512606409_gshared/* 1241*/, (Il2CppMethodPointer)&Array_qsort_TisUIVertex_t1204258818_m3188278715_gshared/* 1242*/, (Il2CppMethodPointer)&Array_qsort_TisVector2_t2243707579_TisVector2_t2243707579_m3308480721_gshared/* 1243*/, (Il2CppMethodPointer)&Array_qsort_TisVector2_t2243707579_m3527759534_gshared/* 1244*/, (Il2CppMethodPointer)&Array_qsort_TisVector3_t2243707580_TisVector3_t2243707580_m2272669009_gshared/* 1245*/, (Il2CppMethodPointer)&Array_qsort_TisVector3_t2243707580_m3999957353_gshared/* 1246*/, (Il2CppMethodPointer)&Array_qsort_TisVector4_t2243707581_TisVector4_t2243707581_m1761599697_gshared/* 1247*/, (Il2CppMethodPointer)&Array_qsort_TisVector4_t2243707581_m3660704204_gshared/* 1248*/, (Il2CppMethodPointer)&Array_Resize_TisInt32_t2071877448_m447637572_gshared/* 1249*/, (Il2CppMethodPointer)&Array_Resize_TisInt32_t2071877448_m3684346335_gshared/* 1250*/, (Il2CppMethodPointer)&Array_Resize_TisCustomAttributeNamedArgument_t94157543_m3339240648_gshared/* 1251*/, (Il2CppMethodPointer)&Array_Resize_TisCustomAttributeNamedArgument_t94157543_m2206103091_gshared/* 1252*/, (Il2CppMethodPointer)&Array_Resize_TisCustomAttributeTypedArgument_t1498197914_m939902121_gshared/* 1253*/, (Il2CppMethodPointer)&Array_Resize_TisCustomAttributeTypedArgument_t1498197914_m3055365808_gshared/* 1254*/, (Il2CppMethodPointer)&Array_Resize_TisAnimatorClipInfo_t3905751349_m1122349323_gshared/* 1255*/, (Il2CppMethodPointer)&Array_Resize_TisAnimatorClipInfo_t3905751349_m1821521510_gshared/* 1256*/, (Il2CppMethodPointer)&Array_Resize_TisColor32_t874517518_m878003458_gshared/* 1257*/, (Il2CppMethodPointer)&Array_Resize_TisColor32_t874517518_m2219502085_gshared/* 1258*/, (Il2CppMethodPointer)&Array_Resize_TisRaycastResult_t21186376_m2863372266_gshared/* 1259*/, (Il2CppMethodPointer)&Array_Resize_TisRaycastResult_t21186376_m178887183_gshared/* 1260*/, (Il2CppMethodPointer)&Array_Resize_TisUICharInfo_t3056636800_m136796546_gshared/* 1261*/, (Il2CppMethodPointer)&Array_Resize_TisUICharInfo_t3056636800_m2062204495_gshared/* 1262*/, (Il2CppMethodPointer)&Array_Resize_TisUILineInfo_t3621277874_m3403686460_gshared/* 1263*/, (Il2CppMethodPointer)&Array_Resize_TisUILineInfo_t3621277874_m3215803485_gshared/* 1264*/, (Il2CppMethodPointer)&Array_Resize_TisUIVertex_t1204258818_m369755412_gshared/* 1265*/, (Il2CppMethodPointer)&Array_Resize_TisUIVertex_t1204258818_m69257949_gshared/* 1266*/, (Il2CppMethodPointer)&Array_Resize_TisVector2_t2243707579_m625185335_gshared/* 1267*/, (Il2CppMethodPointer)&Array_Resize_TisVector2_t2243707579_m1117258774_gshared/* 1268*/, (Il2CppMethodPointer)&Array_Resize_TisVector3_t2243707580_m551302712_gshared/* 1269*/, (Il2CppMethodPointer)&Array_Resize_TisVector3_t2243707580_m893658391_gshared/* 1270*/, (Il2CppMethodPointer)&Array_Resize_TisVector4_t2243707581_m1528805937_gshared/* 1271*/, (Il2CppMethodPointer)&Array_Resize_TisVector4_t2243707581_m1261745172_gshared/* 1272*/, (Il2CppMethodPointer)&Array_Sort_TisInt32_t2071877448_TisInt32_t2071877448_m3984301585_gshared/* 1273*/, (Il2CppMethodPointer)&Array_Sort_TisInt32_t2071877448_m186284849_gshared/* 1274*/, (Il2CppMethodPointer)&Array_Sort_TisInt32_t2071877448_m1860415737_gshared/* 1275*/, (Il2CppMethodPointer)&Array_Sort_TisCustomAttributeNamedArgument_t94157543_TisCustomAttributeNamedArgument_t94157543_m3896681249_gshared/* 1276*/, (Il2CppMethodPointer)&Array_Sort_TisCustomAttributeNamedArgument_t94157543_m3436077809_gshared/* 1277*/, (Il2CppMethodPointer)&Array_Sort_TisCustomAttributeNamedArgument_t94157543_m2435281169_gshared/* 1278*/, (Il2CppMethodPointer)&Array_Sort_TisCustomAttributeTypedArgument_t1498197914_TisCustomAttributeTypedArgument_t1498197914_m4146117625_gshared/* 1279*/, (Il2CppMethodPointer)&Array_Sort_TisCustomAttributeTypedArgument_t1498197914_m1081752256_gshared/* 1280*/, (Il2CppMethodPointer)&Array_Sort_TisCustomAttributeTypedArgument_t1498197914_m3745413134_gshared/* 1281*/, (Il2CppMethodPointer)&Array_Sort_TisAnimatorClipInfo_t3905751349_TisAnimatorClipInfo_t3905751349_m953263221_gshared/* 1282*/, (Il2CppMethodPointer)&Array_Sort_TisAnimatorClipInfo_t3905751349_m2049646302_gshared/* 1283*/, (Il2CppMethodPointer)&Array_Sort_TisAnimatorClipInfo_t3905751349_m2633216324_gshared/* 1284*/, (Il2CppMethodPointer)&Array_Sort_TisColor32_t874517518_TisColor32_t874517518_m3103681221_gshared/* 1285*/, (Il2CppMethodPointer)&Array_Sort_TisColor32_t874517518_m348039223_gshared/* 1286*/, (Il2CppMethodPointer)&Array_Sort_TisColor32_t874517518_m2665990831_gshared/* 1287*/, (Il2CppMethodPointer)&Array_Sort_TisRaycastResult_t21186376_TisRaycastResult_t21186376_m38820193_gshared/* 1288*/, (Il2CppMethodPointer)&Array_Sort_TisRaycastResult_t21186376_m2722445429_gshared/* 1289*/, (Il2CppMethodPointer)&Array_Sort_TisRaycastResult_t21186376_m869515957_gshared/* 1290*/, (Il2CppMethodPointer)&Array_Sort_TisRaycastHit_t87180320_m4017051497_gshared/* 1291*/, (Il2CppMethodPointer)&Array_Sort_TisUICharInfo_t3056636800_TisUICharInfo_t3056636800_m766540689_gshared/* 1292*/, (Il2CppMethodPointer)&Array_Sort_TisUICharInfo_t3056636800_m203399713_gshared/* 1293*/, (Il2CppMethodPointer)&Array_Sort_TisUICharInfo_t3056636800_m37864585_gshared/* 1294*/, (Il2CppMethodPointer)&Array_Sort_TisUILineInfo_t3621277874_TisUILineInfo_t3621277874_m756478453_gshared/* 1295*/, (Il2CppMethodPointer)&Array_Sort_TisUILineInfo_t3621277874_m2765146215_gshared/* 1296*/, (Il2CppMethodPointer)&Array_Sort_TisUILineInfo_t3621277874_m3105833015_gshared/* 1297*/, (Il2CppMethodPointer)&Array_Sort_TisUIVertex_t1204258818_TisUIVertex_t1204258818_m1327748421_gshared/* 1298*/, (Il2CppMethodPointer)&Array_Sort_TisUIVertex_t1204258818_m1227732263_gshared/* 1299*/, (Il2CppMethodPointer)&Array_Sort_TisUIVertex_t1204258818_m894561151_gshared/* 1300*/, (Il2CppMethodPointer)&Array_Sort_TisVector2_t2243707579_TisVector2_t2243707579_m2582252549_gshared/* 1301*/, (Il2CppMethodPointer)&Array_Sort_TisVector2_t2243707579_m1307634946_gshared/* 1302*/, (Il2CppMethodPointer)&Array_Sort_TisVector2_t2243707579_m2070132352_gshared/* 1303*/, (Il2CppMethodPointer)&Array_Sort_TisVector3_t2243707580_TisVector3_t2243707580_m1665443717_gshared/* 1304*/, (Il2CppMethodPointer)&Array_Sort_TisVector3_t2243707580_m3268681761_gshared/* 1305*/, (Il2CppMethodPointer)&Array_Sort_TisVector3_t2243707580_m3220373153_gshared/* 1306*/, (Il2CppMethodPointer)&Array_Sort_TisVector4_t2243707581_TisVector4_t2243707581_m917148421_gshared/* 1307*/, (Il2CppMethodPointer)&Array_Sort_TisVector4_t2243707581_m414494280_gshared/* 1308*/, (Il2CppMethodPointer)&Array_Sort_TisVector4_t2243707581_m474199742_gshared/* 1309*/, (Il2CppMethodPointer)&Array_swap_TisInt32_t2071877448_TisInt32_t2071877448_m3507868628_gshared/* 1310*/, (Il2CppMethodPointer)&Array_swap_TisInt32_t2071877448_m1430982992_gshared/* 1311*/, (Il2CppMethodPointer)&Array_swap_TisCustomAttributeNamedArgument_t94157543_TisCustomAttributeNamedArgument_t94157543_m3600072996_gshared/* 1312*/, (Il2CppMethodPointer)&Array_swap_TisCustomAttributeNamedArgument_t94157543_m1844036828_gshared/* 1313*/, (Il2CppMethodPointer)&Array_swap_TisCustomAttributeTypedArgument_t1498197914_TisCustomAttributeTypedArgument_t1498197914_m3885180566_gshared/* 1314*/, (Il2CppMethodPointer)&Array_swap_TisCustomAttributeTypedArgument_t1498197914_m885124357_gshared/* 1315*/, (Il2CppMethodPointer)&Array_swap_TisAnimatorClipInfo_t3905751349_TisAnimatorClipInfo_t3905751349_m1375833338_gshared/* 1316*/, (Il2CppMethodPointer)&Array_swap_TisAnimatorClipInfo_t3905751349_m3264018415_gshared/* 1317*/, (Il2CppMethodPointer)&Array_swap_TisColor32_t874517518_TisColor32_t874517518_m3832002474_gshared/* 1318*/, (Il2CppMethodPointer)&Array_swap_TisColor32_t874517518_m2203309732_gshared/* 1319*/, (Il2CppMethodPointer)&Array_swap_TisRaycastResult_t21186376_TisRaycastResult_t21186376_m3127504388_gshared/* 1320*/, (Il2CppMethodPointer)&Array_swap_TisRaycastResult_t21186376_m583300086_gshared/* 1321*/, (Il2CppMethodPointer)&Array_swap_TisRaycastHit_t87180320_m1148458436_gshared/* 1322*/, (Il2CppMethodPointer)&Array_swap_TisUICharInfo_t3056636800_TisUICharInfo_t3056636800_m1811829460_gshared/* 1323*/, (Il2CppMethodPointer)&Array_swap_TisUICharInfo_t3056636800_m4036113126_gshared/* 1324*/, (Il2CppMethodPointer)&Array_swap_TisUILineInfo_t3621277874_TisUILineInfo_t3621277874_m57245360_gshared/* 1325*/, (Il2CppMethodPointer)&Array_swap_TisUILineInfo_t3621277874_m2468351928_gshared/* 1326*/, (Il2CppMethodPointer)&Array_swap_TisUIVertex_t1204258818_TisUIVertex_t1204258818_m1163375424_gshared/* 1327*/, (Il2CppMethodPointer)&Array_swap_TisUIVertex_t1204258818_m2078944520_gshared/* 1328*/, (Il2CppMethodPointer)&Array_swap_TisVector2_t2243707579_TisVector2_t2243707579_m2985401834_gshared/* 1329*/, (Il2CppMethodPointer)&Array_swap_TisVector2_t2243707579_m3359959735_gshared/* 1330*/, (Il2CppMethodPointer)&Array_swap_TisVector3_t2243707580_TisVector3_t2243707580_m346347882_gshared/* 1331*/, (Il2CppMethodPointer)&Array_swap_TisVector3_t2243707580_m3036634038_gshared/* 1332*/, (Il2CppMethodPointer)&Array_swap_TisVector4_t2243707581_TisVector4_t2243707581_m3150906602_gshared/* 1333*/, (Il2CppMethodPointer)&Array_swap_TisVector4_t2243707581_m3504221493_gshared/* 1334*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m3350986264_gshared/* 1335*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3749587448_TisKeyValuePair_2_t3749587448_m1768412984_gshared/* 1336*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3749587448_TisIl2CppObject_m287245132_gshared/* 1337*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisIl2CppObject_TisIl2CppObject_m2625001464_gshared/* 1338*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t3749587448_m2536766696_gshared/* 1339*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisIl2CppObject_m545661084_gshared/* 1340*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisBoolean_t3825574718_TisBoolean_t3825574718_m156269422_gshared/* 1341*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisBoolean_t3825574718_TisIl2CppObject_m1376138887_gshared/* 1342*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m3886676844_gshared/* 1343*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1174980068_TisKeyValuePair_2_t1174980068_m1420381772_gshared/* 1344*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1174980068_TisIl2CppObject_m3279061992_gshared/* 1345*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisBoolean_t3825574718_m671015067_gshared/* 1346*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1174980068_m540794568_gshared/* 1347*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m1669186756_gshared/* 1348*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3716250094_TisKeyValuePair_2_t3716250094_m1270309796_gshared/* 1349*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t3716250094_TisIl2CppObject_m715850636_gshared/* 1350*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisInt32_t2071877448_TisInt32_t2071877448_m1707114546_gshared/* 1351*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisInt32_t2071877448_TisIl2CppObject_m1249877663_gshared/* 1352*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t3716250094_m1740410536_gshared/* 1353*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisInt32_t2071877448_m1983003419_gshared/* 1354*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisDictionaryEntry_t3048875398_TisDictionaryEntry_t3048875398_m2351457443_gshared/* 1355*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t38854645_TisKeyValuePair_2_t38854645_m843700111_gshared/* 1356*/, (Il2CppMethodPointer)&Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t38854645_TisIl2CppObject_m591971964_gshared/* 1357*/, (Il2CppMethodPointer)&Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t38854645_m943415488_gshared/* 1358*/, (Il2CppMethodPointer)&BaseInvokableCall_ThrowOnInvalidArg_TisBoolean_t3825574718_m3557881725_gshared/* 1359*/, (Il2CppMethodPointer)&BaseInvokableCall_ThrowOnInvalidArg_TisInt32_t2071877448_m4010682571_gshared/* 1360*/, (Il2CppMethodPointer)&BaseInvokableCall_ThrowOnInvalidArg_TisSingle_t2076509932_m3470174535_gshared/* 1361*/, (Il2CppMethodPointer)&BaseInvokableCall_ThrowOnInvalidArg_TisColor_t2020392075_m85849056_gshared/* 1362*/, (Il2CppMethodPointer)&BaseInvokableCall_ThrowOnInvalidArg_TisVector2_t2243707579_m3249535332_gshared/* 1363*/, (Il2CppMethodPointer)&Mesh_SetListForChannel_TisVector2_t2243707579_m3845224428_gshared/* 1364*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisTableRange_t2011406615_m602485977_gshared/* 1365*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisClientCertificateType_t4001384466_m1933364177_gshared/* 1366*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisBoolean_t3825574718_m3129847639_gshared/* 1367*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisByte_t3683104436_m635665873_gshared/* 1368*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisChar_t3454481338_m3646615547_gshared/* 1369*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisDictionaryEntry_t3048875398_m2371191320_gshared/* 1370*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisLink_t865133271_m2489845481_gshared/* 1371*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisKeyValuePair_2_t3749587448_m833470118_gshared/* 1372*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisKeyValuePair_2_t1174980068_m964958642_gshared/* 1373*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisKeyValuePair_2_t3716250094_m3120861630_gshared/* 1374*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisKeyValuePair_2_t38854645_m2422121821_gshared/* 1375*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisLink_t2723257478_m2281261655_gshared/* 1376*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisSlot_t2022531261_m426645551_gshared/* 1377*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisSlot_t2267560602_m1004716430_gshared/* 1378*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisDateTime_t693205669_m3661692220_gshared/* 1379*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisDecimal_t724701077_m4156246600_gshared/* 1380*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisDouble_t4078015681_m2215331088_gshared/* 1381*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisInt16_t4041245914_m2533263979_gshared/* 1382*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisInt32_t2071877448_m966348849_gshared/* 1383*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisInt64_t909078037_m1431563204_gshared/* 1384*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisIntPtr_t_m210946760_gshared/* 1385*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisCustomAttributeNamedArgument_t94157543_m4258992745_gshared/* 1386*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisCustomAttributeTypedArgument_t1498197914_m1864496094_gshared/* 1387*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisLabelData_t3712112744_m863115768_gshared/* 1388*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisLabelFixup_t4090909514_m2966857142_gshared/* 1389*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisILTokenInfo_t149559338_m2004750537_gshared/* 1390*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisParameterModifier_t1820634920_m1898755304_gshared/* 1391*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisResourceCacheItem_t333236149_m649009631_gshared/* 1392*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisResourceInfo_t3933049236_m107404352_gshared/* 1393*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisTypeTag_t141209596_m1747911007_gshared/* 1394*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisSByte_t454417549_m3315206452_gshared/* 1395*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisX509ChainStatus_t4278378721_m4197592500_gshared/* 1396*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisSingle_t2076509932_m1495809753_gshared/* 1397*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisMark_t2724874473_m2044327706_gshared/* 1398*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisTimeSpan_t3430258949_m1147719260_gshared/* 1399*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUInt16_t986882611_m2599215710_gshared/* 1400*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUInt32_t2149682021_m2554907852_gshared/* 1401*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUInt64_t2909196914_m2580870875_gshared/* 1402*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUriScheme_t1876590943_m1821482697_gshared/* 1403*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisAnimatorClipInfo_t3905751349_m2163447872_gshared/* 1404*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisColor32_t874517518_m1877643687_gshared/* 1405*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisContactPoint_t1376425630_m3234597783_gshared/* 1406*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisContactPoint2D_t3659330976_m825151777_gshared/* 1407*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisRaycastResult_t21186376_m4125877765_gshared/* 1408*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisKeyframe_t1449471340_m1003508933_gshared/* 1409*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisRaycastHit_t87180320_m3529622569_gshared/* 1410*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisRaycastHit2D_t4063908774_m3592947655_gshared/* 1411*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisHitInfo_t1761367055_m2443000901_gshared/* 1412*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisGcAchievementData_t1754866149_m2980277810_gshared/* 1413*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisGcScoreData_t3676783238_m733932313_gshared/* 1414*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisContentType_t1028629049_m2406619723_gshared/* 1415*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUICharInfo_t3056636800_m3872982785_gshared/* 1416*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUILineInfo_t3621277874_m1432166059_gshared/* 1417*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisUIVertex_t1204258818_m3450355955_gshared/* 1418*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisVector2_t2243707579_m2394947294_gshared/* 1419*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisVector3_t2243707580_m2841870745_gshared/* 1420*/, (Il2CppMethodPointer)&Array_InternalArray__get_Item_TisVector4_t2243707581_m3866288892_gshared/* 1421*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisVector2_t2243707579_m2487531426_gshared/* 1422*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisVector3_t2243707580_m2101409415_gshared/* 1423*/, (Il2CppMethodPointer)&Mesh_GetAllocArrayFromChannel_TisVector4_t2243707581_m189379692_gshared/* 1424*/, (Il2CppMethodPointer)&Action_1__ctor_m3072925129_gshared/* 1425*/, (Il2CppMethodPointer)&Action_1_BeginInvoke_m226849422_gshared/* 1426*/, (Il2CppMethodPointer)&Action_1_EndInvoke_m2990292511_gshared/* 1427*/, (Il2CppMethodPointer)&Action_2_BeginInvoke_m3907381723_gshared/* 1428*/, (Il2CppMethodPointer)&Action_2_EndInvoke_m2798191693_gshared/* 1429*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0__ctor_m1942816078_gshared/* 1430*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CTU3E_get_Current_m285299945_gshared/* 1431*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m480171694_gshared/* 1432*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_MoveNext_m949306872_gshared/* 1433*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_Dispose_m2403602883_gshared/* 1434*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_Reset_m194260881_gshared/* 1435*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0__ctor_m409316647_gshared/* 1436*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CTU3E_get_Current_m988222504_gshared/* 1437*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m2332089385_gshared/* 1438*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_MoveNext_m692741405_gshared/* 1439*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_Dispose_m2201090542_gshared/* 1440*/, (Il2CppMethodPointer)&U3CGetEnumeratorU3Ec__Iterator0_Reset_m1125157804_gshared/* 1441*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1__ctor_m691892240_gshared/* 1442*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m3039869667_gshared/* 1443*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_Item_m2694472846_gshared/* 1444*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_set_Item_m3536854615_gshared/* 1445*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_Count_m2661355086_gshared/* 1446*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_IsReadOnly_m2189922207_gshared/* 1447*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Add_m961024239_gshared/* 1448*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Clear_m1565299387_gshared/* 1449*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Contains_m1269788217_gshared/* 1450*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_CopyTo_m4003949395_gshared/* 1451*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_GetEnumerator_m634288642_gshared/* 1452*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_IndexOf_m1220844927_gshared/* 1453*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Insert_m2938723476_gshared/* 1454*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Remove_m2325516426_gshared/* 1455*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_RemoveAt_m4104441984_gshared/* 1456*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_ReadOnlyError_m2160816107_gshared/* 1457*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1__ctor_m3778554727_gshared/* 1458*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m3194679940_gshared/* 1459*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_Item_m2045253203_gshared/* 1460*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_set_Item_m1476592004_gshared/* 1461*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_Count_m2272682593_gshared/* 1462*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_get_IsReadOnly_m745254596_gshared/* 1463*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Add_m592463462_gshared/* 1464*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Clear_m638842154_gshared/* 1465*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Contains_m1984901664_gshared/* 1466*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_CopyTo_m3708038182_gshared/* 1467*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_GetEnumerator_m3821693737_gshared/* 1468*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_IndexOf_m1809425308_gshared/* 1469*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Insert_m503707439_gshared/* 1470*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_Remove_m632503387_gshared/* 1471*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_RemoveAt_m2270349795_gshared/* 1472*/, (Il2CppMethodPointer)&ArrayReadOnlyList_1_ReadOnlyError_m2158247090_gshared/* 1473*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2265739932_AdjustorThunk/* 1474*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1027964204_AdjustorThunk/* 1475*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m429673344_AdjustorThunk/* 1476*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1050822571_AdjustorThunk/* 1477*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1979432532_AdjustorThunk/* 1478*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2151132603_AdjustorThunk/* 1479*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2111763266_AdjustorThunk/* 1480*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1181480250_AdjustorThunk/* 1481*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1335784110_AdjustorThunk/* 1482*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2038682075_AdjustorThunk/* 1483*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1182905290_AdjustorThunk/* 1484*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3847951219_AdjustorThunk/* 1485*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m4119890600_AdjustorThunk/* 1486*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3731327620_AdjustorThunk/* 1487*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1931522460_AdjustorThunk/* 1488*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1640363425_AdjustorThunk/* 1489*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1595676968_AdjustorThunk/* 1490*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1943362081_AdjustorThunk/* 1491*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3043733612_AdjustorThunk/* 1492*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3647617676_AdjustorThunk/* 1493*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2164294642_AdjustorThunk/* 1494*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1148506519_AdjustorThunk/* 1495*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2651026500_AdjustorThunk/* 1496*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m4154615771_AdjustorThunk/* 1497*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m960275522_AdjustorThunk/* 1498*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2729797654_AdjustorThunk/* 1499*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3583252352_AdjustorThunk/* 1500*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m811081805_AdjustorThunk/* 1501*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m412569442_AdjustorThunk/* 1502*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2960188445_AdjustorThunk/* 1503*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m675130983_AdjustorThunk/* 1504*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m4211243679_AdjustorThunk/* 1505*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3125080595_AdjustorThunk/* 1506*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3597982928_AdjustorThunk/* 1507*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1636015243_AdjustorThunk/* 1508*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2351441486_AdjustorThunk/* 1509*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2688327768_AdjustorThunk/* 1510*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m4216238272_AdjustorThunk/* 1511*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3680087284_AdjustorThunk/* 1512*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1064404287_AdjustorThunk/* 1513*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3585886944_AdjustorThunk/* 1514*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1855333455_AdjustorThunk/* 1515*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3441346029_AdjustorThunk/* 1516*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2715953809_AdjustorThunk/* 1517*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3584266157_AdjustorThunk/* 1518*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m718416578_AdjustorThunk/* 1519*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1791963761_AdjustorThunk/* 1520*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3582710858_AdjustorThunk/* 1521*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m967618647_AdjustorThunk/* 1522*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m324760031_AdjustorThunk/* 1523*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1004764375_AdjustorThunk/* 1524*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m318835130_AdjustorThunk/* 1525*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4294226955_AdjustorThunk/* 1526*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3900993294_AdjustorThunk/* 1527*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3362782841_AdjustorThunk/* 1528*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2173715269_AdjustorThunk/* 1529*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1679297177_AdjustorThunk/* 1530*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1748410190_AdjustorThunk/* 1531*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3486952605_AdjustorThunk/* 1532*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2882946014_AdjustorThunk/* 1533*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3587374424_AdjustorThunk/* 1534*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m740705392_AdjustorThunk/* 1535*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3546309124_AdjustorThunk/* 1536*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2413981551_AdjustorThunk/* 1537*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1667794624_AdjustorThunk/* 1538*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2345377791_AdjustorThunk/* 1539*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m439810834_AdjustorThunk/* 1540*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1090540230_AdjustorThunk/* 1541*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3088751576_AdjustorThunk/* 1542*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m296683029_AdjustorThunk/* 1543*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1994485778_AdjustorThunk/* 1544*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3444791149_AdjustorThunk/* 1545*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m488579894_AdjustorThunk/* 1546*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m403454978_AdjustorThunk/* 1547*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4259662004_AdjustorThunk/* 1548*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m802528953_AdjustorThunk/* 1549*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3278167302_AdjustorThunk/* 1550*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m198513457_AdjustorThunk/* 1551*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m1405610577_AdjustorThunk/* 1552*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3237341717_AdjustorThunk/* 1553*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3600601141_AdjustorThunk/* 1554*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2337194690_AdjustorThunk/* 1555*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3476348493_AdjustorThunk/* 1556*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m4193726352_AdjustorThunk/* 1557*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m245588437_AdjustorThunk/* 1558*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2174159777_AdjustorThunk/* 1559*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3315293493_AdjustorThunk/* 1560*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3383574608_AdjustorThunk/* 1561*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3300932033_AdjustorThunk/* 1562*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m4279678504_AdjustorThunk/* 1563*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m4150855019_AdjustorThunk/* 1564*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1963130955_AdjustorThunk/* 1565*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1025729343_AdjustorThunk/* 1566*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3407567388_AdjustorThunk/* 1567*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4134231455_AdjustorThunk/* 1568*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m245025210_AdjustorThunk/* 1569*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3589241961_AdjustorThunk/* 1570*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3194282029_AdjustorThunk/* 1571*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2842514953_AdjustorThunk/* 1572*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3578333724_AdjustorThunk/* 1573*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m83303365_AdjustorThunk/* 1574*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1389169756_AdjustorThunk/* 1575*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m557239862_AdjustorThunk/* 1576*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m487832594_AdjustorThunk/* 1577*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2068723842_AdjustorThunk/* 1578*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2743309309_AdjustorThunk/* 1579*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4274987126_AdjustorThunk/* 1580*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3259181373_AdjustorThunk/* 1581*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m504913220_AdjustorThunk/* 1582*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2726857860_AdjustorThunk/* 1583*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1527025224_AdjustorThunk/* 1584*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3393096515_AdjustorThunk/* 1585*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3679487948_AdjustorThunk/* 1586*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m10285187_AdjustorThunk/* 1587*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2597133905_AdjustorThunk/* 1588*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2144409197_AdjustorThunk/* 1589*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2545039741_AdjustorThunk/* 1590*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m307741520_AdjustorThunk/* 1591*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1683120485_AdjustorThunk/* 1592*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2415979394_AdjustorThunk/* 1593*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m1648185761_AdjustorThunk/* 1594*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1809507733_AdjustorThunk/* 1595*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m127456009_AdjustorThunk/* 1596*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3933737284_AdjustorThunk/* 1597*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2720582493_AdjustorThunk/* 1598*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1706492988_AdjustorThunk/* 1599*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m492779768_AdjustorThunk/* 1600*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2494446096_AdjustorThunk/* 1601*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1322273508_AdjustorThunk/* 1602*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m238246335_AdjustorThunk/* 1603*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1548080384_AdjustorThunk/* 1604*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1089848479_AdjustorThunk/* 1605*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m821424641_AdjustorThunk/* 1606*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2624612805_AdjustorThunk/* 1607*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2315179333_AdjustorThunk/* 1608*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m4038440306_AdjustorThunk/* 1609*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2904932349_AdjustorThunk/* 1610*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1047712960_AdjustorThunk/* 1611*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3323962057_AdjustorThunk/* 1612*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2589050037_AdjustorThunk/* 1613*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4242639349_AdjustorThunk/* 1614*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m549215360_AdjustorThunk/* 1615*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3389738333_AdjustorThunk/* 1616*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3922357178_AdjustorThunk/* 1617*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3228997263_AdjustorThunk/* 1618*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3279821511_AdjustorThunk/* 1619*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1597849391_AdjustorThunk/* 1620*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3927915442_AdjustorThunk/* 1621*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4292005299_AdjustorThunk/* 1622*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2468740214_AdjustorThunk/* 1623*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3387972470_AdjustorThunk/* 1624*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m651165750_AdjustorThunk/* 1625*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3239681450_AdjustorThunk/* 1626*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2056889175_AdjustorThunk/* 1627*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1590907854_AdjustorThunk/* 1628*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3296972783_AdjustorThunk/* 1629*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2890018883_AdjustorThunk/* 1630*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3107040235_AdjustorThunk/* 1631*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2851415307_AdjustorThunk/* 1632*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3952699776_AdjustorThunk/* 1633*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1594563423_AdjustorThunk/* 1634*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m4083613828_AdjustorThunk/* 1635*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m1182539814_AdjustorThunk/* 1636*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2821513122_AdjustorThunk/* 1637*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1049770044_AdjustorThunk/* 1638*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m4175113225_AdjustorThunk/* 1639*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2302237510_AdjustorThunk/* 1640*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m789289033_AdjustorThunk/* 1641*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m1336720787_AdjustorThunk/* 1642*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2116079299_AdjustorThunk/* 1643*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4023948615_AdjustorThunk/* 1644*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1794459540_AdjustorThunk/* 1645*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2576139351_AdjustorThunk/* 1646*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m4154059426_AdjustorThunk/* 1647*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m4063293236_AdjustorThunk/* 1648*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1561424184_AdjustorThunk/* 1649*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m4088899688_AdjustorThunk/* 1650*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1020222893_AdjustorThunk/* 1651*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1686633972_AdjustorThunk/* 1652*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2286118957_AdjustorThunk/* 1653*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2108401677_AdjustorThunk/* 1654*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m4085710193_AdjustorThunk/* 1655*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2607490481_AdjustorThunk/* 1656*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1676985532_AdjustorThunk/* 1657*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3984801393_AdjustorThunk/* 1658*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m314017974_AdjustorThunk/* 1659*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m655778553_AdjustorThunk/* 1660*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2198960685_AdjustorThunk/* 1661*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3576641073_AdjustorThunk/* 1662*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3671580532_AdjustorThunk/* 1663*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1869236997_AdjustorThunk/* 1664*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1550231132_AdjustorThunk/* 1665*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2314640734_AdjustorThunk/* 1666*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m214315662_AdjustorThunk/* 1667*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1231402888_AdjustorThunk/* 1668*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2195973811_AdjustorThunk/* 1669*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m580128774_AdjustorThunk/* 1670*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m727737343_AdjustorThunk/* 1671*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m1240086835_AdjustorThunk/* 1672*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3826378355_AdjustorThunk/* 1673*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2035754659_AdjustorThunk/* 1674*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3744916110_AdjustorThunk/* 1675*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1741571735_AdjustorThunk/* 1676*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m575280506_AdjustorThunk/* 1677*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2189699457_AdjustorThunk/* 1678*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3249248421_AdjustorThunk/* 1679*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m439366097_AdjustorThunk/* 1680*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3838127340_AdjustorThunk/* 1681*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1674480765_AdjustorThunk/* 1682*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3411759116_AdjustorThunk/* 1683*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2981879621_AdjustorThunk/* 1684*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2571770313_AdjustorThunk/* 1685*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1658267053_AdjustorThunk/* 1686*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1824402698_AdjustorThunk/* 1687*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2809569305_AdjustorThunk/* 1688*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3179981210_AdjustorThunk/* 1689*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m691972083_AdjustorThunk/* 1690*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3107741851_AdjustorThunk/* 1691*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2458630467_AdjustorThunk/* 1692*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2620838688_AdjustorThunk/* 1693*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m470170271_AdjustorThunk/* 1694*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2198364332_AdjustorThunk/* 1695*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3084132532_AdjustorThunk/* 1696*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m187060888_AdjustorThunk/* 1697*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m771161214_AdjustorThunk/* 1698*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3642485841_AdjustorThunk/* 1699*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2954283444_AdjustorThunk/* 1700*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m35328337_AdjustorThunk/* 1701*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3052252268_AdjustorThunk/* 1702*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3606709516_AdjustorThunk/* 1703*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3065287496_AdjustorThunk/* 1704*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1770651099_AdjustorThunk/* 1705*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3629145604_AdjustorThunk/* 1706*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1830023619_AdjustorThunk/* 1707*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m142220063_AdjustorThunk/* 1708*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1466133719_AdjustorThunk/* 1709*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3732729179_AdjustorThunk/* 1710*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3765482968_AdjustorThunk/* 1711*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m607849555_AdjustorThunk/* 1712*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3724267862_AdjustorThunk/* 1713*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m96919148_AdjustorThunk/* 1714*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2275167408_AdjustorThunk/* 1715*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m30488070_AdjustorThunk/* 1716*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m876833153_AdjustorThunk/* 1717*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4068681772_AdjustorThunk/* 1718*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3143558721_AdjustorThunk/* 1719*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3210262878_AdjustorThunk/* 1720*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2564106794_AdjustorThunk/* 1721*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1497708066_AdjustorThunk/* 1722*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3715403693_AdjustorThunk/* 1723*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3299881374_AdjustorThunk/* 1724*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3035290781_AdjustorThunk/* 1725*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3623160640_AdjustorThunk/* 1726*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2619213736_AdjustorThunk/* 1727*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2061144652_AdjustorThunk/* 1728*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3885764311_AdjustorThunk/* 1729*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2906956792_AdjustorThunk/* 1730*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m4045489063_AdjustorThunk/* 1731*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m994739194_AdjustorThunk/* 1732*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2046302786_AdjustorThunk/* 1733*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2900144990_AdjustorThunk/* 1734*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3805775699_AdjustorThunk/* 1735*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m572812642_AdjustorThunk/* 1736*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m319833891_AdjustorThunk/* 1737*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2007859216_AdjustorThunk/* 1738*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2715220344_AdjustorThunk/* 1739*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m790514740_AdjustorThunk/* 1740*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3766393335_AdjustorThunk/* 1741*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2289229080_AdjustorThunk/* 1742*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3959023023_AdjustorThunk/* 1743*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3664249240_AdjustorThunk/* 1744*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m192344320_AdjustorThunk/* 1745*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m3043347404_AdjustorThunk/* 1746*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3464626239_AdjustorThunk/* 1747*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3332669936_AdjustorThunk/* 1748*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1715820327_AdjustorThunk/* 1749*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m32322958_AdjustorThunk/* 1750*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1777467498_AdjustorThunk/* 1751*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1533037706_AdjustorThunk/* 1752*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m4040890621_AdjustorThunk/* 1753*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1799288398_AdjustorThunk/* 1754*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1025321669_AdjustorThunk/* 1755*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3220229132_AdjustorThunk/* 1756*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m574988908_AdjustorThunk/* 1757*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1933635818_AdjustorThunk/* 1758*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m282312359_AdjustorThunk/* 1759*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m886855812_AdjustorThunk/* 1760*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2826780083_AdjustorThunk/* 1761*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3474059021_AdjustorThunk/* 1762*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3946824409_AdjustorThunk/* 1763*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2685895857_AdjustorThunk/* 1764*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m250541766_AdjustorThunk/* 1765*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2520133033_AdjustorThunk/* 1766*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m406393356_AdjustorThunk/* 1767*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2891033852_AdjustorThunk/* 1768*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1055858572_AdjustorThunk/* 1769*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1201713088_AdjustorThunk/* 1770*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1982788747_AdjustorThunk/* 1771*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4065131604_AdjustorThunk/* 1772*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m75828603_AdjustorThunk/* 1773*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2458691472_AdjustorThunk/* 1774*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m86252988_AdjustorThunk/* 1775*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2389982234_AdjustorThunk/* 1776*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m3291666845_AdjustorThunk/* 1777*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m252820768_AdjustorThunk/* 1778*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m3732458101_AdjustorThunk/* 1779*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m1815261138_AdjustorThunk/* 1780*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2208002250_AdjustorThunk/* 1781*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m160972190_AdjustorThunk/* 1782*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1399397099_AdjustorThunk/* 1783*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m3850699098_AdjustorThunk/* 1784*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m889125315_AdjustorThunk/* 1785*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m681761736_AdjustorThunk/* 1786*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3775211636_AdjustorThunk/* 1787*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2821735692_AdjustorThunk/* 1788*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2045737049_AdjustorThunk/* 1789*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2410670600_AdjustorThunk/* 1790*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2105085649_AdjustorThunk/* 1791*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2956304256_AdjustorThunk/* 1792*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2315964220_AdjustorThunk/* 1793*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m2764360876_AdjustorThunk/* 1794*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m4229866913_AdjustorThunk/* 1795*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4061424048_AdjustorThunk/* 1796*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m1883328177_AdjustorThunk/* 1797*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2808001655_AdjustorThunk/* 1798*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m1018453615_AdjustorThunk/* 1799*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m442726479_AdjustorThunk/* 1800*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m2270401482_AdjustorThunk/* 1801*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m4175772187_AdjustorThunk/* 1802*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2986222582_AdjustorThunk/* 1803*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m2782443954_AdjustorThunk/* 1804*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m2361456586_AdjustorThunk/* 1805*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m762846484_AdjustorThunk/* 1806*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m14398895_AdjustorThunk/* 1807*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m2953305370_AdjustorThunk/* 1808*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m747506907_AdjustorThunk/* 1809*/, (Il2CppMethodPointer)&InternalEnumerator_1__ctor_m3901400705_AdjustorThunk/* 1810*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_Reset_m3994416165_AdjustorThunk/* 1811*/, (Il2CppMethodPointer)&InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m1699120817_AdjustorThunk/* 1812*/, (Il2CppMethodPointer)&InternalEnumerator_1_Dispose_m1925604588_AdjustorThunk/* 1813*/, (Il2CppMethodPointer)&InternalEnumerator_1_MoveNext_m1441038493_AdjustorThunk/* 1814*/, (Il2CppMethodPointer)&InternalEnumerator_1_get_Current_m2687258796_AdjustorThunk/* 1815*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1799227370_gshared/* 1816*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m1606207039_gshared/* 1817*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m732373515_gshared/* 1818*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m3472472212_gshared/* 1819*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3668042_gshared/* 1820*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m3319119721_gshared/* 1821*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2859550749_gshared/* 1822*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m925902394_gshared/* 1823*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1661558765_gshared/* 1824*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m2855268154_gshared/* 1825*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1961329658_gshared/* 1826*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m932294475_gshared/* 1827*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3791334730_gshared/* 1828*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m265474847_gshared/* 1829*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2502511620_gshared/* 1830*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m3953592365_gshared/* 1831*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2185307103_gshared/* 1832*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m1247109616_gshared/* 1833*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3180706193_gshared/* 1834*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m851771764_gshared/* 1835*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2470932885_gshared/* 1836*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m3386135912_gshared/* 1837*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m709297127_gshared/* 1838*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m2804119458_gshared/* 1839*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m710539671_gshared/* 1840*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m3564013922_gshared/* 1841*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2251954164_gshared/* 1842*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m3845579773_gshared/* 1843*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1454979065_gshared/* 1844*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m2469517726_gshared/* 1845*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3680166634_gshared/* 1846*/, (Il2CppMethodPointer)&DefaultComparer_Compare_m4039941311_gshared/* 1847*/, (Il2CppMethodPointer)&Comparer_1__ctor_m1202126643_gshared/* 1848*/, (Il2CppMethodPointer)&Comparer_1__cctor_m1367179810_gshared/* 1849*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m1712675620_gshared/* 1850*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m3737432123_gshared/* 1851*/, (Il2CppMethodPointer)&Comparer_1__ctor_m3855093372_gshared/* 1852*/, (Il2CppMethodPointer)&Comparer_1__cctor_m2809342737_gshared/* 1853*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m1790257529_gshared/* 1854*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m1766380520_gshared/* 1855*/, (Il2CppMethodPointer)&Comparer_1__ctor_m2876014041_gshared/* 1856*/, (Il2CppMethodPointer)&Comparer_1__cctor_m3801958574_gshared/* 1857*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m674728644_gshared/* 1858*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m3982792633_gshared/* 1859*/, (Il2CppMethodPointer)&Comparer_1__ctor_m2074421588_gshared/* 1860*/, (Il2CppMethodPointer)&Comparer_1__cctor_m2780604723_gshared/* 1861*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m3477896499_gshared/* 1862*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m699808348_gshared/* 1863*/, (Il2CppMethodPointer)&Comparer_1__ctor_m844571340_gshared/* 1864*/, (Il2CppMethodPointer)&Comparer_1__cctor_m3112251759_gshared/* 1865*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m3203078743_gshared/* 1866*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m2605397692_gshared/* 1867*/, (Il2CppMethodPointer)&Comparer_1__ctor_m2364183619_gshared/* 1868*/, (Il2CppMethodPointer)&Comparer_1__cctor_m580294992_gshared/* 1869*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m1635186002_gshared/* 1870*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m3643271627_gshared/* 1871*/, (Il2CppMethodPointer)&Comparer_1__ctor_m2195903267_gshared/* 1872*/, (Il2CppMethodPointer)&Comparer_1__cctor_m2494715342_gshared/* 1873*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m2490067344_gshared/* 1874*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m2204997355_gshared/* 1875*/, (Il2CppMethodPointer)&Comparer_1__ctor_m3050042965_gshared/* 1876*/, (Il2CppMethodPointer)&Comparer_1__cctor_m3081562950_gshared/* 1877*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m3930704532_gshared/* 1878*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m4068500697_gshared/* 1879*/, (Il2CppMethodPointer)&Comparer_1__ctor_m2264852056_gshared/* 1880*/, (Il2CppMethodPointer)&Comparer_1__cctor_m179359609_gshared/* 1881*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m2785607073_gshared/* 1882*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m1826646524_gshared/* 1883*/, (Il2CppMethodPointer)&Comparer_1__ctor_m1728777074_gshared/* 1884*/, (Il2CppMethodPointer)&Comparer_1__cctor_m3237813171_gshared/* 1885*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m1153499515_gshared/* 1886*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m4282764954_gshared/* 1887*/, (Il2CppMethodPointer)&Comparer_1__ctor_m1184061702_gshared/* 1888*/, (Il2CppMethodPointer)&Comparer_1__cctor_m3069041651_gshared/* 1889*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m1621919467_gshared/* 1890*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m91842798_gshared/* 1891*/, (Il2CppMethodPointer)&Comparer_1__ctor_m806168336_gshared/* 1892*/, (Il2CppMethodPointer)&Comparer_1__cctor_m3996541505_gshared/* 1893*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m2964757477_gshared/* 1894*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m501796660_gshared/* 1895*/, (Il2CppMethodPointer)&Comparer_1__ctor_m1157133632_gshared/* 1896*/, (Il2CppMethodPointer)&Comparer_1__cctor_m4067993089_gshared/* 1897*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m2324509253_gshared/* 1898*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m1960140044_gshared/* 1899*/, (Il2CppMethodPointer)&Comparer_1__ctor_m2941434245_gshared/* 1900*/, (Il2CppMethodPointer)&Comparer_1__cctor_m2253684996_gshared/* 1901*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m637596782_gshared/* 1902*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m492688901_gshared/* 1903*/, (Il2CppMethodPointer)&Comparer_1__ctor_m1169723274_gshared/* 1904*/, (Il2CppMethodPointer)&Comparer_1__cctor_m1573451391_gshared/* 1905*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m2615431023_gshared/* 1906*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m3185432070_gshared/* 1907*/, (Il2CppMethodPointer)&Comparer_1__ctor_m4052560291_gshared/* 1908*/, (Il2CppMethodPointer)&Comparer_1__cctor_m1911230094_gshared/* 1909*/, (Il2CppMethodPointer)&Comparer_1_System_Collections_IComparer_Compare_m577428976_gshared/* 1910*/, (Il2CppMethodPointer)&Comparer_1_get_Default_m48739979_gshared/* 1911*/, (Il2CppMethodPointer)&Enumerator__ctor_m1702560852_AdjustorThunk/* 1912*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1631145297_AdjustorThunk/* 1913*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m2828524109_AdjustorThunk/* 1914*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m345330700_AdjustorThunk/* 1915*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m1330261287_AdjustorThunk/* 1916*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m3853964719_AdjustorThunk/* 1917*/, (Il2CppMethodPointer)&Enumerator_get_CurrentKey_m447338908_AdjustorThunk/* 1918*/, (Il2CppMethodPointer)&Enumerator_get_CurrentValue_m3562053380_AdjustorThunk/* 1919*/, (Il2CppMethodPointer)&Enumerator_Reset_m761796566_AdjustorThunk/* 1920*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m2118679243_AdjustorThunk/* 1921*/, (Il2CppMethodPointer)&Enumerator_VerifyCurrent_m4246196125_AdjustorThunk/* 1922*/, (Il2CppMethodPointer)&Enumerator__ctor_m661036428_AdjustorThunk/* 1923*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1692692619_AdjustorThunk/* 1924*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m70453843_AdjustorThunk/* 1925*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m3667889028_AdjustorThunk/* 1926*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m1214978221_AdjustorThunk/* 1927*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m313528997_AdjustorThunk/* 1928*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m1856697671_AdjustorThunk/* 1929*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1020413567_AdjustorThunk/* 1930*/, (Il2CppMethodPointer)&Enumerator_get_CurrentKey_m565000604_AdjustorThunk/* 1931*/, (Il2CppMethodPointer)&Enumerator_get_CurrentValue_m4143929484_AdjustorThunk/* 1932*/, (Il2CppMethodPointer)&Enumerator_Reset_m3115320746_AdjustorThunk/* 1933*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m1165543189_AdjustorThunk/* 1934*/, (Il2CppMethodPointer)&Enumerator_VerifyCurrent_m3330382363_AdjustorThunk/* 1935*/, (Il2CppMethodPointer)&Enumerator_Dispose_m2711120408_AdjustorThunk/* 1936*/, (Il2CppMethodPointer)&Enumerator__ctor_m3597047336_AdjustorThunk/* 1937*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m2010873149_AdjustorThunk/* 1938*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m3085583937_AdjustorThunk/* 1939*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m487599172_AdjustorThunk/* 1940*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m677423231_AdjustorThunk/* 1941*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m3005608231_AdjustorThunk/* 1942*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m435964161_AdjustorThunk/* 1943*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1932198897_AdjustorThunk/* 1944*/, (Il2CppMethodPointer)&Enumerator_get_CurrentKey_m1408186928_AdjustorThunk/* 1945*/, (Il2CppMethodPointer)&Enumerator_get_CurrentValue_m2645962456_AdjustorThunk/* 1946*/, (Il2CppMethodPointer)&Enumerator_Reset_m1132695838_AdjustorThunk/* 1947*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m3173176371_AdjustorThunk/* 1948*/, (Il2CppMethodPointer)&Enumerator_VerifyCurrent_m3278789713_AdjustorThunk/* 1949*/, (Il2CppMethodPointer)&Enumerator_Dispose_m401572848_AdjustorThunk/* 1950*/, (Il2CppMethodPointer)&ShimEnumerator__ctor_m3996137855_gshared/* 1951*/, (Il2CppMethodPointer)&ShimEnumerator_MoveNext_m3313047792_gshared/* 1952*/, (Il2CppMethodPointer)&ShimEnumerator_get_Entry_m2387156530_gshared/* 1953*/, (Il2CppMethodPointer)&ShimEnumerator_get_Key_m2823867931_gshared/* 1954*/, (Il2CppMethodPointer)&ShimEnumerator_get_Value_m3551354763_gshared/* 1955*/, (Il2CppMethodPointer)&ShimEnumerator_get_Current_m1093801549_gshared/* 1956*/, (Il2CppMethodPointer)&ShimEnumerator_Reset_m98005789_gshared/* 1957*/, (Il2CppMethodPointer)&ShimEnumerator__ctor_m2428699265_gshared/* 1958*/, (Il2CppMethodPointer)&ShimEnumerator_MoveNext_m2943029388_gshared/* 1959*/, (Il2CppMethodPointer)&ShimEnumerator_get_Entry_m2332479818_gshared/* 1960*/, (Il2CppMethodPointer)&ShimEnumerator_get_Key_m616785465_gshared/* 1961*/, (Il2CppMethodPointer)&ShimEnumerator_get_Value_m1396288849_gshared/* 1962*/, (Il2CppMethodPointer)&ShimEnumerator_get_Current_m2516732679_gshared/* 1963*/, (Il2CppMethodPointer)&ShimEnumerator_Reset_m2247049027_gshared/* 1964*/, (Il2CppMethodPointer)&ShimEnumerator__ctor_m1807768263_gshared/* 1965*/, (Il2CppMethodPointer)&ShimEnumerator_MoveNext_m2728191736_gshared/* 1966*/, (Il2CppMethodPointer)&ShimEnumerator_get_Entry_m2171963450_gshared/* 1967*/, (Il2CppMethodPointer)&ShimEnumerator_get_Key_m4014537779_gshared/* 1968*/, (Il2CppMethodPointer)&ShimEnumerator_get_Value_m1198202883_gshared/* 1969*/, (Il2CppMethodPointer)&ShimEnumerator_get_Current_m696250329_gshared/* 1970*/, (Il2CppMethodPointer)&ShimEnumerator_Reset_m208070833_gshared/* 1971*/, (Il2CppMethodPointer)&Transform_1__ctor_m2152205186_gshared/* 1972*/, (Il2CppMethodPointer)&Transform_1_Invoke_m4020530914_gshared/* 1973*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m2179239469_gshared/* 1974*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m620026520_gshared/* 1975*/, (Il2CppMethodPointer)&Transform_1__ctor_m713310742_gshared/* 1976*/, (Il2CppMethodPointer)&Transform_1_Invoke_m1436021910_gshared/* 1977*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m1786442111_gshared/* 1978*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m590952364_gshared/* 1979*/, (Il2CppMethodPointer)&Transform_1__ctor_m2914458810_gshared/* 1980*/, (Il2CppMethodPointer)&Transform_1_Invoke_m2347662626_gshared/* 1981*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m1919808363_gshared/* 1982*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m1010744720_gshared/* 1983*/, (Il2CppMethodPointer)&Transform_1__ctor_m3569730739_gshared/* 1984*/, (Il2CppMethodPointer)&Transform_1_Invoke_m2906736839_gshared/* 1985*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m3826027984_gshared/* 1986*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m258407721_gshared/* 1987*/, (Il2CppMethodPointer)&Transform_1__ctor_m1978472014_gshared/* 1988*/, (Il2CppMethodPointer)&Transform_1_Invoke_m2509306846_gshared/* 1989*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m1167293475_gshared/* 1990*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m2742732284_gshared/* 1991*/, (Il2CppMethodPointer)&Transform_1__ctor_m974062490_gshared/* 1992*/, (Il2CppMethodPointer)&Transform_1_Invoke_m4136847354_gshared/* 1993*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m2640141359_gshared/* 1994*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m3779953636_gshared/* 1995*/, (Il2CppMethodPointer)&Transform_1__ctor_m353209818_gshared/* 1996*/, (Il2CppMethodPointer)&Transform_1_Invoke_m719893226_gshared/* 1997*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m786657825_gshared/* 1998*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m664119620_gshared/* 1999*/, (Il2CppMethodPointer)&Transform_1__ctor_m583305686_gshared/* 2000*/, (Il2CppMethodPointer)&Transform_1_Invoke_m1172879766_gshared/* 2001*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m2336029567_gshared/* 2002*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m1025924012_gshared/* 2003*/, (Il2CppMethodPointer)&Transform_1__ctor_m1642784939_gshared/* 2004*/, (Il2CppMethodPointer)&Transform_1_Invoke_m2099058127_gshared/* 2005*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m3169382212_gshared/* 2006*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m7550125_gshared/* 2007*/, (Il2CppMethodPointer)&Transform_1__ctor_m4161450529_gshared/* 2008*/, (Il2CppMethodPointer)&Transform_1_Invoke_m2770612589_gshared/* 2009*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m3014766640_gshared/* 2010*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m803975703_gshared/* 2011*/, (Il2CppMethodPointer)&Transform_1__ctor_m2658320534_gshared/* 2012*/, (Il2CppMethodPointer)&Transform_1_Invoke_m1976033878_gshared/* 2013*/, (Il2CppMethodPointer)&Transform_1_BeginInvoke_m3105433791_gshared/* 2014*/, (Il2CppMethodPointer)&Transform_1_EndInvoke_m687617772_gshared/* 2015*/, (Il2CppMethodPointer)&Enumerator__ctor_m2988407410_AdjustorThunk/* 2016*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1648049763_AdjustorThunk/* 2017*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m655633499_AdjustorThunk/* 2018*/, (Il2CppMethodPointer)&Enumerator__ctor_m908409898_AdjustorThunk/* 2019*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m2625473469_AdjustorThunk/* 2020*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m2909592833_AdjustorThunk/* 2021*/, (Il2CppMethodPointer)&Enumerator_Dispose_m1323464986_AdjustorThunk/* 2022*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m1212551889_AdjustorThunk/* 2023*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2986380627_AdjustorThunk/* 2024*/, (Il2CppMethodPointer)&Enumerator__ctor_m3539306986_AdjustorThunk/* 2025*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1805365227_AdjustorThunk/* 2026*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m3294415347_AdjustorThunk/* 2027*/, (Il2CppMethodPointer)&Enumerator_Dispose_m2532362830_AdjustorThunk/* 2028*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2534596951_AdjustorThunk/* 2029*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2838387513_AdjustorThunk/* 2030*/, (Il2CppMethodPointer)&ValueCollection__ctor_m882866357_gshared/* 2031*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m1903672223_gshared/* 2032*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m3271993638_gshared/* 2033*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m3958350925_gshared/* 2034*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m98888100_gshared/* 2035*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m1604400448_gshared/* 2036*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_CopyTo_m2627730402_gshared/* 2037*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_IEnumerable_GetEnumerator_m1073215119_gshared/* 2038*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m1325719984_gshared/* 2039*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_IsSynchronized_m4041633470_gshared/* 2040*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_SyncRoot_m3927965720_gshared/* 2041*/, (Il2CppMethodPointer)&ValueCollection_CopyTo_m1460341186_gshared/* 2042*/, (Il2CppMethodPointer)&ValueCollection_get_Count_m90930038_gshared/* 2043*/, (Il2CppMethodPointer)&ValueCollection__ctor_m1825701219_gshared/* 2044*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m1367462045_gshared/* 2045*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m276534782_gshared/* 2046*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m3742779759_gshared/* 2047*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m270427956_gshared/* 2048*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m971481852_gshared/* 2049*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_CopyTo_m3262726594_gshared/* 2050*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_IEnumerable_GetEnumerator_m1058162477_gshared/* 2051*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m3005456072_gshared/* 2052*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_IsSynchronized_m2117667642_gshared/* 2053*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_SyncRoot_m568936428_gshared/* 2054*/, (Il2CppMethodPointer)&ValueCollection_CopyTo_m2890257710_gshared/* 2055*/, (Il2CppMethodPointer)&ValueCollection_GetEnumerator_m1860544291_gshared/* 2056*/, (Il2CppMethodPointer)&ValueCollection_get_Count_m494337310_gshared/* 2057*/, (Il2CppMethodPointer)&ValueCollection__ctor_m927733289_gshared/* 2058*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m3594901543_gshared/* 2059*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m231380274_gshared/* 2060*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m1693788217_gshared/* 2061*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m2185557816_gshared/* 2062*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m20320216_gshared/* 2063*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_CopyTo_m592924266_gshared/* 2064*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_IEnumerable_GetEnumerator_m802880903_gshared/* 2065*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m1915900932_gshared/* 2066*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_IsSynchronized_m45572582_gshared/* 2067*/, (Il2CppMethodPointer)&ValueCollection_System_Collections_ICollection_get_SyncRoot_m1458344512_gshared/* 2068*/, (Il2CppMethodPointer)&ValueCollection_CopyTo_m2713467670_gshared/* 2069*/, (Il2CppMethodPointer)&ValueCollection_GetEnumerator_m988596833_gshared/* 2070*/, (Il2CppMethodPointer)&ValueCollection_get_Count_m4142113966_gshared/* 2071*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m2284756127_gshared/* 2072*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m3111963761_gshared/* 2073*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m965168575_gshared/* 2074*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_get_Item_m2945412702_gshared/* 2075*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_set_Item_m941667911_gshared/* 2076*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Add_m3189569330_gshared/* 2077*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Remove_m3199539467_gshared/* 2078*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m304009368_gshared/* 2079*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2487129350_gshared/* 2080*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1111602362_gshared/* 2081*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m1043757703_gshared/* 2082*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m1927335261_gshared/* 2083*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m3678641635_gshared/* 2084*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m181279132_gshared/* 2085*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_CopyTo_m1985034736_gshared/* 2086*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m3830548821_gshared/* 2087*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m631947640_gshared/* 2088*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1284065099_gshared/* 2089*/, (Il2CppMethodPointer)&Dictionary_2_get_Count_m2168147420_gshared/* 2090*/, (Il2CppMethodPointer)&Dictionary_2_get_Item_m4277290203_gshared/* 2091*/, (Il2CppMethodPointer)&Dictionary_2_Init_m3666073812_gshared/* 2092*/, (Il2CppMethodPointer)&Dictionary_2_InitArrays_m3810830177_gshared/* 2093*/, (Il2CppMethodPointer)&Dictionary_2_CopyToCheck_m1541945891_gshared/* 2094*/, (Il2CppMethodPointer)&Dictionary_2_make_pair_m90480045_gshared/* 2095*/, (Il2CppMethodPointer)&Dictionary_2_pick_value_m353965321_gshared/* 2096*/, (Il2CppMethodPointer)&Dictionary_2_CopyTo_m1956977846_gshared/* 2097*/, (Il2CppMethodPointer)&Dictionary_2_Resize_m2532139610_gshared/* 2098*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKey_m255952723_gshared/* 2099*/, (Il2CppMethodPointer)&Dictionary_2_ContainsValue_m392092147_gshared/* 2100*/, (Il2CppMethodPointer)&Dictionary_2_GetObjectData_m233109612_gshared/* 2101*/, (Il2CppMethodPointer)&Dictionary_2_OnDeserialization_m2092139626_gshared/* 2102*/, (Il2CppMethodPointer)&Dictionary_2_ToTKey_m2900575080_gshared/* 2103*/, (Il2CppMethodPointer)&Dictionary_2_ToTValue_m14471464_gshared/* 2104*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKeyValuePair_m790970878_gshared/* 2105*/, (Il2CppMethodPointer)&Dictionary_2_U3CCopyToU3Em__0_m741309042_gshared/* 2106*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m3420539152_gshared/* 2107*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m871840915_gshared/* 2108*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m1854403065_gshared/* 2109*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_get_Item_m2237138810_gshared/* 2110*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_set_Item_m115188189_gshared/* 2111*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Add_m3066998246_gshared/* 2112*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Remove_m189853969_gshared/* 2113*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m1107018240_gshared/* 2114*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_SyncRoot_m2175588702_gshared/* 2115*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1281685210_gshared/* 2116*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m2611662793_gshared/* 2117*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m842343255_gshared/* 2118*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1323252853_gshared/* 2119*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m2778371972_gshared/* 2120*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_CopyTo_m2784181332_gshared/* 2121*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1615804423_gshared/* 2122*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m573305608_gshared/* 2123*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_GetEnumerator_m721575733_gshared/* 2124*/, (Il2CppMethodPointer)&Dictionary_2_get_Count_m802888472_gshared/* 2125*/, (Il2CppMethodPointer)&Dictionary_2_get_Item_m2455494681_gshared/* 2126*/, (Il2CppMethodPointer)&Dictionary_2_set_Item_m3758499254_gshared/* 2127*/, (Il2CppMethodPointer)&Dictionary_2_Init_m3784457680_gshared/* 2128*/, (Il2CppMethodPointer)&Dictionary_2_InitArrays_m4237030359_gshared/* 2129*/, (Il2CppMethodPointer)&Dictionary_2_CopyToCheck_m1638253305_gshared/* 2130*/, (Il2CppMethodPointer)&Dictionary_2_make_pair_m394533803_gshared/* 2131*/, (Il2CppMethodPointer)&Dictionary_2_pick_value_m4072431859_gshared/* 2132*/, (Il2CppMethodPointer)&Dictionary_2_CopyTo_m765026490_gshared/* 2133*/, (Il2CppMethodPointer)&Dictionary_2_Resize_m2807616086_gshared/* 2134*/, (Il2CppMethodPointer)&Dictionary_2_Clear_m3504688039_gshared/* 2135*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKey_m1385349577_gshared/* 2136*/, (Il2CppMethodPointer)&Dictionary_2_ContainsValue_m1839958881_gshared/* 2137*/, (Il2CppMethodPointer)&Dictionary_2_GetObjectData_m3012471448_gshared/* 2138*/, (Il2CppMethodPointer)&Dictionary_2_OnDeserialization_m2870692686_gshared/* 2139*/, (Il2CppMethodPointer)&Dictionary_2_Remove_m1947153975_gshared/* 2140*/, (Il2CppMethodPointer)&Dictionary_2_TryGetValue_m1169378642_gshared/* 2141*/, (Il2CppMethodPointer)&Dictionary_2_get_Values_m1102170553_gshared/* 2142*/, (Il2CppMethodPointer)&Dictionary_2_ToTKey_m965425080_gshared/* 2143*/, (Il2CppMethodPointer)&Dictionary_2_ToTValue_m2304368184_gshared/* 2144*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKeyValuePair_m1328448258_gshared/* 2145*/, (Il2CppMethodPointer)&Dictionary_2_GetEnumerator_m2667213667_gshared/* 2146*/, (Il2CppMethodPointer)&Dictionary_2_U3CCopyToU3Em__0_m2108533866_gshared/* 2147*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m2457723796_gshared/* 2148*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m1950568359_gshared/* 2149*/, (Il2CppMethodPointer)&Dictionary_2__ctor_m3092740055_gshared/* 2150*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_get_Item_m3470597074_gshared/* 2151*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_set_Item_m417746447_gshared/* 2152*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Add_m3716517866_gshared/* 2153*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_Remove_m3608354803_gshared/* 2154*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_IsSynchronized_m2813539788_gshared/* 2155*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_get_SyncRoot_m1875561618_gshared/* 2156*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m1786828978_gshared/* 2157*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m3947094719_gshared/* 2158*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m3400497673_gshared/* 2159*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m1568255451_gshared/* 2160*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m3503191152_gshared/* 2161*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_ICollection_CopyTo_m3945379612_gshared/* 2162*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m1776836865_gshared/* 2163*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m3968773920_gshared/* 2164*/, (Il2CppMethodPointer)&Dictionary_2_System_Collections_IDictionary_GetEnumerator_m1898098675_gshared/* 2165*/, (Il2CppMethodPointer)&Dictionary_2_get_Count_m1099678088_gshared/* 2166*/, (Il2CppMethodPointer)&Dictionary_2_get_Item_m1434789331_gshared/* 2167*/, (Il2CppMethodPointer)&Dictionary_2_set_Item_m38702350_gshared/* 2168*/, (Il2CppMethodPointer)&Dictionary_2_Init_m2330162400_gshared/* 2169*/, (Il2CppMethodPointer)&Dictionary_2_InitArrays_m435313205_gshared/* 2170*/, (Il2CppMethodPointer)&Dictionary_2_CopyToCheck_m2755595307_gshared/* 2171*/, (Il2CppMethodPointer)&Dictionary_2_make_pair_m1307594529_gshared/* 2172*/, (Il2CppMethodPointer)&Dictionary_2_pick_value_m3484897877_gshared/* 2173*/, (Il2CppMethodPointer)&Dictionary_2_CopyTo_m1385625162_gshared/* 2174*/, (Il2CppMethodPointer)&Dictionary_2_Resize_m3051716242_gshared/* 2175*/, (Il2CppMethodPointer)&Dictionary_2_Clear_m602519205_gshared/* 2176*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKey_m416495915_gshared/* 2177*/, (Il2CppMethodPointer)&Dictionary_2_ContainsValue_m2760581195_gshared/* 2178*/, (Il2CppMethodPointer)&Dictionary_2_GetObjectData_m3868399160_gshared/* 2179*/, (Il2CppMethodPointer)&Dictionary_2_OnDeserialization_m3851228446_gshared/* 2180*/, (Il2CppMethodPointer)&Dictionary_2_Remove_m3067952337_gshared/* 2181*/, (Il2CppMethodPointer)&Dictionary_2_get_Values_m677714159_gshared/* 2182*/, (Il2CppMethodPointer)&Dictionary_2_ToTKey_m1760276912_gshared/* 2183*/, (Il2CppMethodPointer)&Dictionary_2_ToTValue_m542772656_gshared/* 2184*/, (Il2CppMethodPointer)&Dictionary_2_ContainsKeyValuePair_m3818021458_gshared/* 2185*/, (Il2CppMethodPointer)&Dictionary_2_GetEnumerator_m3272257185_gshared/* 2186*/, (Il2CppMethodPointer)&Dictionary_2_U3CCopyToU3Em__0_m1479035402_gshared/* 2187*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1252999819_gshared/* 2188*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3006415128_gshared/* 2189*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m85211180_gshared/* 2190*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m899694595_gshared/* 2191*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2773774256_gshared/* 2192*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m724229128_gshared/* 2193*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3190357794_gshared/* 2194*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m797464561_gshared/* 2195*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m1600500777_gshared/* 2196*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m4033373907_gshared/* 2197*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m238728614_gshared/* 2198*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m4189188262_gshared/* 2199*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m71907202_gshared/* 2200*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m4073394827_gshared/* 2201*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m3573892667_gshared/* 2202*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2265472997_gshared/* 2203*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2506382068_gshared/* 2204*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2078350484_gshared/* 2205*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1128136373_gshared/* 2206*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m1728348656_gshared/* 2207*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m3262686272_gshared/* 2208*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2612109506_gshared/* 2209*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3250641461_gshared/* 2210*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m1281232537_gshared/* 2211*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m491444649_gshared/* 2212*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3936144140_gshared/* 2213*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m4098991076_gshared/* 2214*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2518376578_gshared/* 2215*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m926363525_gshared/* 2216*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2001504109_gshared/* 2217*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m4022772412_gshared/* 2218*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m361278435_gshared/* 2219*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2821026275_gshared/* 2220*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3276282391_gshared/* 2221*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m497789942_gshared/* 2222*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m145577182_gshared/* 2223*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2931225689_gshared/* 2224*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m312610594_gshared/* 2225*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2873268274_gshared/* 2226*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m418731767_gshared/* 2227*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3827932086_gshared/* 2228*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m4172486334_gshared/* 2229*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2474538702_gshared/* 2230*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3949666199_gshared/* 2231*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m90110159_gshared/* 2232*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1337256517_gshared/* 2233*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m4112623340_gshared/* 2234*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2171836276_gshared/* 2235*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2036092614_gshared/* 2236*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2380869465_gshared/* 2237*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m430000461_gshared/* 2238*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1084606969_gshared/* 2239*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m1355867210_gshared/* 2240*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m1562287834_gshared/* 2241*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2276868849_gshared/* 2242*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3653010626_gshared/* 2243*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m964380914_gshared/* 2244*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1590657132_gshared/* 2245*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3439703487_gshared/* 2246*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2425328879_gshared/* 2247*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1282733851_gshared/* 2248*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m1706638450_gshared/* 2249*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2148394930_gshared/* 2250*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2869673436_gshared/* 2251*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3615205187_gshared/* 2252*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2200473563_gshared/* 2253*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m3947565964_gshared/* 2254*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m926674183_gshared/* 2255*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m3816856599_gshared/* 2256*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1052417779_gshared/* 2257*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2340465958_gshared/* 2258*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m3990990982_gshared/* 2259*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m4203948575_gshared/* 2260*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m320514092_gshared/* 2261*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m211257680_gshared/* 2262*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1726588383_gshared/* 2263*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3344201770_gshared/* 2264*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m4081745462_gshared/* 2265*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m4293811280_gshared/* 2266*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2561865553_gshared/* 2267*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m845714217_gshared/* 2268*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m171730843_gshared/* 2269*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2825948074_gshared/* 2270*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m403726494_gshared/* 2271*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2726067677_gshared/* 2272*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m918846970_gshared/* 2273*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m3925528186_gshared/* 2274*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m956926767_gshared/* 2275*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3050723744_gshared/* 2276*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m3143385420_gshared/* 2277*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m2967376735_gshared/* 2278*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m2596628120_gshared/* 2279*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m1530848964_gshared/* 2280*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m1436011564_gshared/* 2281*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m4004219591_gshared/* 2282*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2928482823_gshared/* 2283*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m639036465_gshared/* 2284*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m4184689288_gshared/* 2285*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m313382504_gshared/* 2286*/, (Il2CppMethodPointer)&DefaultComparer__ctor_m29356578_gshared/* 2287*/, (Il2CppMethodPointer)&DefaultComparer_GetHashCode_m3578531013_gshared/* 2288*/, (Il2CppMethodPointer)&DefaultComparer_Equals_m2984842317_gshared/* 2289*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1952047100_gshared/* 2290*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1863390761_gshared/* 2291*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3901093757_gshared/* 2292*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3134072983_gshared/* 2293*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3911577264_gshared/* 2294*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1341297002_gshared/* 2295*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m51007461_gshared/* 2296*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1539704005_gshared/* 2297*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3444896763_gshared/* 2298*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3836312902_gshared/* 2299*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1389939323_gshared/* 2300*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m794495834_gshared/* 2301*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m438492364_gshared/* 2302*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1565968086_gshared/* 2303*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2183586459_gshared/* 2304*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3067713332_gshared/* 2305*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m2561906137_gshared/* 2306*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1203798961_gshared/* 2307*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2542582691_gshared/* 2308*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m1225763480_gshared/* 2309*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m2583021089_gshared/* 2310*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1342609638_gshared/* 2311*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1465362976_gshared/* 2312*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m300683774_gshared/* 2313*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m875724809_gshared/* 2314*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m376370188_gshared/* 2315*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m3231934331_gshared/* 2316*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3860410351_gshared/* 2317*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3376587337_gshared/* 2318*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3396023804_gshared/* 2319*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m2244446852_gshared/* 2320*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m2818445751_gshared/* 2321*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2973423115_gshared/* 2322*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3463759377_gshared/* 2323*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3762039900_gshared/* 2324*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m2579856891_gshared/* 2325*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m3397254040_gshared/* 2326*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m4202766890_gshared/* 2327*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3758532772_gshared/* 2328*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m962487163_gshared/* 2329*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3788663378_gshared/* 2330*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1431474723_gshared/* 2331*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1300051223_gshared/* 2332*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3589836321_gshared/* 2333*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m4065943638_gshared/* 2334*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m442580331_gshared/* 2335*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1110246150_gshared/* 2336*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2008684464_gshared/* 2337*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m144708998_gshared/* 2338*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m1852501307_gshared/* 2339*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m718740765_gshared/* 2340*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m4274063742_gshared/* 2341*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1162246232_gshared/* 2342*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3724603646_gshared/* 2343*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3611111465_gshared/* 2344*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3830536096_gshared/* 2345*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m2772682929_gshared/* 2346*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3612334081_gshared/* 2347*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1292796471_gshared/* 2348*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3328992844_gshared/* 2349*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3675148074_gshared/* 2350*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1011898363_gshared/* 2351*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3006379463_gshared/* 2352*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1089835085_gshared/* 2353*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3570989626_gshared/* 2354*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3554380640_gshared/* 2355*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m416314417_gshared/* 2356*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2138314433_gshared/* 2357*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m4210968279_gshared/* 2358*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m479942316_gshared/* 2359*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m81618677_gshared/* 2360*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m968537130_gshared/* 2361*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1799468828_gshared/* 2362*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1682986002_gshared/* 2363*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m907005101_gshared/* 2364*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1010479422_gshared/* 2365*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m207772851_gshared/* 2366*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m172193607_gshared/* 2367*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2768231005_gshared/* 2368*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m751712322_gshared/* 2369*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1942160887_gshared/* 2370*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m4270384964_gshared/* 2371*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2377261342_gshared/* 2372*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2389655864_gshared/* 2373*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2380741071_gshared/* 2374*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m4025067384_gshared/* 2375*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m982582067_gshared/* 2376*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1151471199_gshared/* 2377*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m897982433_gshared/* 2378*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2936436268_gshared/* 2379*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m831468288_gshared/* 2380*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1437669163_gshared/* 2381*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2845218311_gshared/* 2382*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m945141737_gshared/* 2383*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m1613555492_gshared/* 2384*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m709161677_gshared/* 2385*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m332471612_gshared/* 2386*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3761319178_gshared/* 2387*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m254740648_gshared/* 2388*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3222318365_gshared/* 2389*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m2992434364_gshared/* 2390*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m3664711181_gshared/* 2391*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1012273405_gshared/* 2392*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3897608091_gshared/* 2393*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3897585552_gshared/* 2394*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1018015381_gshared/* 2395*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1857858272_gshared/* 2396*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m229548830_gshared/* 2397*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m201203400_gshared/* 2398*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2734478733_gshared/* 2399*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m99476293_gshared/* 2400*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1409799842_gshared/* 2401*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1773381340_gshared/* 2402*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m349194518_gshared/* 2403*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2134906921_gshared/* 2404*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1248117236_gshared/* 2405*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m656572377_gshared/* 2406*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2460068977_gshared/* 2407*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1007228931_gshared/* 2408*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3794275192_gshared/* 2409*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1398088456_gshared/* 2410*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m3555705685_gshared/* 2411*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m647607345_gshared/* 2412*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1019855307_gshared/* 2413*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2445143908_gshared/* 2414*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3971803374_gshared/* 2415*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m232418593_gshared/* 2416*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1749014277_gshared/* 2417*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2571982283_gshared/* 2418*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2229997586_gshared/* 2419*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m2069363015_gshared/* 2420*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m2291550712_gshared/* 2421*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1128766342_gshared/* 2422*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1960102236_gshared/* 2423*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m1806515335_gshared/* 2424*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m2830393218_gshared/* 2425*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m1505141729_gshared/* 2426*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m644286453_gshared/* 2427*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1705945391_gshared/* 2428*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m1026288614_gshared/* 2429*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1850246206_gshared/* 2430*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m4227328699_gshared/* 2431*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1690805903_gshared/* 2432*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m315020809_gshared/* 2433*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m2561546910_gshared/* 2434*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3193852488_gshared/* 2435*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m3612636681_gshared/* 2436*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m2364871829_gshared/* 2437*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2641861691_gshared/* 2438*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m4155703012_gshared/* 2439*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m1656023032_gshared/* 2440*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m3435088969_gshared/* 2441*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1478667421_gshared/* 2442*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1302319107_gshared/* 2443*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m969953452_gshared/* 2444*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3504419277_gshared/* 2445*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m173784124_gshared/* 2446*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m3134881714_gshared/* 2447*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m2853045792_gshared/* 2448*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m744889941_gshared/* 2449*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m272608466_gshared/* 2450*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m550556087_gshared/* 2451*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1473684243_gshared/* 2452*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m1091252481_gshared/* 2453*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m3437633110_gshared/* 2454*/, (Il2CppMethodPointer)&EqualityComparer_1__ctor_m3155445483_gshared/* 2455*/, (Il2CppMethodPointer)&EqualityComparer_1__cctor_m2666196678_gshared/* 2456*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m1859582704_gshared/* 2457*/, (Il2CppMethodPointer)&EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m3601790950_gshared/* 2458*/, (Il2CppMethodPointer)&EqualityComparer_1_get_Default_m300941019_gshared/* 2459*/, (Il2CppMethodPointer)&GenericComparer_1_Compare_m1840768387_gshared/* 2460*/, (Il2CppMethodPointer)&GenericComparer_1_Compare_m2516380588_gshared/* 2461*/, (Il2CppMethodPointer)&GenericComparer_1_Compare_m11267581_gshared/* 2462*/, (Il2CppMethodPointer)&GenericComparer_1__ctor_m973776669_gshared/* 2463*/, (Il2CppMethodPointer)&GenericComparer_1_Compare_m4255737786_gshared/* 2464*/, (Il2CppMethodPointer)&GenericComparer_1_Compare_m1517459603_gshared/* 2465*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m1096417895_gshared/* 2466*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m3450627064_gshared/* 2467*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m2469044952_gshared/* 2468*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m1381335423_gshared/* 2469*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m2118676928_gshared/* 2470*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m514359868_gshared/* 2471*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m2969953181_gshared/* 2472*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m2324680497_gshared/* 2473*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m2782420646_gshared/* 2474*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m418285146_gshared/* 2475*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m3320722759_gshared/* 2476*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m1549453511_gshared/* 2477*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m854452741_gshared/* 2478*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m3520912652_gshared/* 2479*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m4153713908_gshared/* 2480*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m3487039313_gshared/* 2481*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m1950634276_gshared/* 2482*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m2779085860_gshared/* 2483*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m2293071025_gshared/* 2484*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m1663005117_gshared/* 2485*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m543916517_gshared/* 2486*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m667477524_gshared/* 2487*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m1109000020_gshared/* 2488*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m3497387759_gshared/* 2489*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m3878911910_gshared/* 2490*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m1610418746_gshared/* 2491*/, (Il2CppMethodPointer)&GenericEqualityComparer_1__ctor_m3644917911_gshared/* 2492*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_GetHashCode_m116190842_gshared/* 2493*/, (Il2CppMethodPointer)&GenericEqualityComparer_1_Equals_m1934771410_gshared/* 2494*/, (Il2CppMethodPointer)&KeyValuePair_2__ctor_m3201181706_AdjustorThunk/* 2495*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Key_m1350990071_AdjustorThunk/* 2496*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Value_m2726037047_AdjustorThunk/* 2497*/, (Il2CppMethodPointer)&KeyValuePair_2__ctor_m4040336782_AdjustorThunk/* 2498*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Key_m2113318928_AdjustorThunk/* 2499*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Key_m1222844869_AdjustorThunk/* 2500*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Value_m1916631176_AdjustorThunk/* 2501*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Value_m965533293_AdjustorThunk/* 2502*/, (Il2CppMethodPointer)&KeyValuePair_2_ToString_m1739958171_AdjustorThunk/* 2503*/, (Il2CppMethodPointer)&KeyValuePair_2__ctor_m1877755778_AdjustorThunk/* 2504*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Key_m1454531804_AdjustorThunk/* 2505*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Key_m1307112735_AdjustorThunk/* 2506*/, (Il2CppMethodPointer)&KeyValuePair_2_get_Value_m3699669100_AdjustorThunk/* 2507*/, (Il2CppMethodPointer)&KeyValuePair_2_set_Value_m1921288671_AdjustorThunk/* 2508*/, (Il2CppMethodPointer)&KeyValuePair_2_ToString_m1394661909_AdjustorThunk/* 2509*/, (Il2CppMethodPointer)&Enumerator__ctor_m1614742070_AdjustorThunk/* 2510*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m1016756388_AdjustorThunk/* 2511*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m2154261170_AdjustorThunk/* 2512*/, (Il2CppMethodPointer)&Enumerator_Dispose_m1274756239_AdjustorThunk/* 2513*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m2167629240_AdjustorThunk/* 2514*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m3078170540_AdjustorThunk/* 2515*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1471878379_AdjustorThunk/* 2516*/, (Il2CppMethodPointer)&Enumerator__ctor_m3021143890_AdjustorThunk/* 2517*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m610822832_AdjustorThunk/* 2518*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1278092846_AdjustorThunk/* 2519*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3704913451_AdjustorThunk/* 2520*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m739025304_AdjustorThunk/* 2521*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m598197344_AdjustorThunk/* 2522*/, (Il2CppMethodPointer)&Enumerator_get_Current_m3860473239_AdjustorThunk/* 2523*/, (Il2CppMethodPointer)&Enumerator__ctor_m3421311553_AdjustorThunk/* 2524*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m1436660297_AdjustorThunk/* 2525*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m355114893_AdjustorThunk/* 2526*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3434518394_AdjustorThunk/* 2527*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m435841047_AdjustorThunk/* 2528*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m1792725673_AdjustorThunk/* 2529*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1371324410_AdjustorThunk/* 2530*/, (Il2CppMethodPointer)&Enumerator__ctor_m1380589695_AdjustorThunk/* 2531*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m886102771_AdjustorThunk/* 2532*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m2408426667_AdjustorThunk/* 2533*/, (Il2CppMethodPointer)&Enumerator_Dispose_m15511624_AdjustorThunk/* 2534*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m1828382917_AdjustorThunk/* 2535*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2893037143_AdjustorThunk/* 2536*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1830000836_AdjustorThunk/* 2537*/, (Il2CppMethodPointer)&Enumerator__ctor_m2054046066_AdjustorThunk/* 2538*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m1344379320_AdjustorThunk/* 2539*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3979461448_AdjustorThunk/* 2540*/, (Il2CppMethodPointer)&Enumerator_Dispose_m1300762389_AdjustorThunk/* 2541*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m1677639504_AdjustorThunk/* 2542*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2625246500_AdjustorThunk/* 2543*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1482710541_AdjustorThunk/* 2544*/, (Il2CppMethodPointer)&Enumerator__ctor_m3979168432_AdjustorThunk/* 2545*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m336811426_AdjustorThunk/* 2546*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3079057684_AdjustorThunk/* 2547*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3455280711_AdjustorThunk/* 2548*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m2948867230_AdjustorThunk/* 2549*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2628556578_AdjustorThunk/* 2550*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2728219003_AdjustorThunk/* 2551*/, (Il2CppMethodPointer)&Enumerator__ctor_m3512622280_AdjustorThunk/* 2552*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m2200349770_AdjustorThunk/* 2553*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3461301268_AdjustorThunk/* 2554*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3756179807_AdjustorThunk/* 2555*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m2358705882_AdjustorThunk/* 2556*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m848781978_AdjustorThunk/* 2557*/, (Il2CppMethodPointer)&Enumerator_get_Current_m3839136987_AdjustorThunk/* 2558*/, (Il2CppMethodPointer)&Enumerator__ctor_m3903095790_AdjustorThunk/* 2559*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m925111644_AdjustorThunk/* 2560*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3228580602_AdjustorThunk/* 2561*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3109097029_AdjustorThunk/* 2562*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m4188527104_AdjustorThunk/* 2563*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m2504790928_AdjustorThunk/* 2564*/, (Il2CppMethodPointer)&Enumerator_get_Current_m657641165_AdjustorThunk/* 2565*/, (Il2CppMethodPointer)&Enumerator__ctor_m2578663110_AdjustorThunk/* 2566*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m3052395060_AdjustorThunk/* 2567*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m38564970_AdjustorThunk/* 2568*/, (Il2CppMethodPointer)&Enumerator_Dispose_m1292917021_AdjustorThunk/* 2569*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m2807892176_AdjustorThunk/* 2570*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m138320264_AdjustorThunk/* 2571*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2585076237_AdjustorThunk/* 2572*/, (Il2CppMethodPointer)&Enumerator__ctor_m3172601063_AdjustorThunk/* 2573*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m1334470667_AdjustorThunk/* 2574*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3542273247_AdjustorThunk/* 2575*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3717265706_AdjustorThunk/* 2576*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m3913376581_AdjustorThunk/* 2577*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m3483405135_AdjustorThunk/* 2578*/, (Il2CppMethodPointer)&Enumerator_get_Current_m1551076836_AdjustorThunk/* 2579*/, (Il2CppMethodPointer)&Enumerator__ctor_m1365181512_AdjustorThunk/* 2580*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m3796537546_AdjustorThunk/* 2581*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m1103666686_AdjustorThunk/* 2582*/, (Il2CppMethodPointer)&Enumerator_Dispose_m3215924523_AdjustorThunk/* 2583*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m3639069574_AdjustorThunk/* 2584*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m1367380970_AdjustorThunk/* 2585*/, (Il2CppMethodPointer)&Enumerator_get_Current_m827571811_AdjustorThunk/* 2586*/, (Il2CppMethodPointer)&Enumerator__ctor_m425576865_AdjustorThunk/* 2587*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_Reset_m2621684617_AdjustorThunk/* 2588*/, (Il2CppMethodPointer)&Enumerator_System_Collections_IEnumerator_get_Current_m3866069145_AdjustorThunk/* 2589*/, (Il2CppMethodPointer)&Enumerator_Dispose_m2705653668_AdjustorThunk/* 2590*/, (Il2CppMethodPointer)&Enumerator_VerifyState_m3775669055_AdjustorThunk/* 2591*/, (Il2CppMethodPointer)&Enumerator_MoveNext_m3293920409_AdjustorThunk/* 2592*/, (Il2CppMethodPointer)&Enumerator_get_Current_m2657372766_AdjustorThunk/* 2593*/, (Il2CppMethodPointer)&List_1__ctor_m2475747412_gshared/* 2594*/, (Il2CppMethodPointer)&List_1__cctor_m2189212316_gshared/* 2595*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m2389584935_gshared/* 2596*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m99573371_gshared/* 2597*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m2119276738_gshared/* 2598*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m4110675067_gshared/* 2599*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m1798539219_gshared/* 2600*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m39706221_gshared/* 2601*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m3497683264_gshared/* 2602*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m733406822_gshared/* 2603*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2370098094_gshared/* 2604*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m180248307_gshared/* 2605*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m3733894943_gshared/* 2606*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m899572676_gshared/* 2607*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m813208831_gshared/* 2608*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2850581314_gshared/* 2609*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m4222864089_gshared/* 2610*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m2986672263_gshared/* 2611*/, (Il2CppMethodPointer)&List_1_AddCollection_m389745455_gshared/* 2612*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m1869508559_gshared/* 2613*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m3556741007_gshared/* 2614*/, (Il2CppMethodPointer)&List_1_Contains_m459703010_gshared/* 2615*/, (Il2CppMethodPointer)&List_1_CopyTo_m2021584896_gshared/* 2616*/, (Il2CppMethodPointer)&List_1_Find_m4088861214_gshared/* 2617*/, (Il2CppMethodPointer)&List_1_CheckMatch_m2715809755_gshared/* 2618*/, (Il2CppMethodPointer)&List_1_GetIndex_m4030875800_gshared/* 2619*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m444823791_gshared/* 2620*/, (Il2CppMethodPointer)&List_1_IndexOf_m3529832102_gshared/* 2621*/, (Il2CppMethodPointer)&List_1_Shift_m2880167903_gshared/* 2622*/, (Il2CppMethodPointer)&List_1_CheckIndex_m3609163576_gshared/* 2623*/, (Il2CppMethodPointer)&List_1_Insert_m2493743341_gshared/* 2624*/, (Il2CppMethodPointer)&List_1_CheckCollection_m2486007558_gshared/* 2625*/, (Il2CppMethodPointer)&List_1_Remove_m2616693989_gshared/* 2626*/, (Il2CppMethodPointer)&List_1_RemoveAll_m2964742291_gshared/* 2627*/, (Il2CppMethodPointer)&List_1_RemoveAt_m1644402641_gshared/* 2628*/, (Il2CppMethodPointer)&List_1_Reverse_m369022463_gshared/* 2629*/, (Il2CppMethodPointer)&List_1_Sort_m953537285_gshared/* 2630*/, (Il2CppMethodPointer)&List_1_Sort_m1518807012_gshared/* 2631*/, (Il2CppMethodPointer)&List_1_ToArray_m3223175690_gshared/* 2632*/, (Il2CppMethodPointer)&List_1_TrimExcess_m4133698154_gshared/* 2633*/, (Il2CppMethodPointer)&List_1_get_Capacity_m531373308_gshared/* 2634*/, (Il2CppMethodPointer)&List_1_set_Capacity_m1511847951_gshared/* 2635*/, (Il2CppMethodPointer)&List_1_get_Item_m4100789973_gshared/* 2636*/, (Il2CppMethodPointer)&List_1_set_Item_m1852089066_gshared/* 2637*/, (Il2CppMethodPointer)&List_1__ctor_m62665571_gshared/* 2638*/, (Il2CppMethodPointer)&List_1__ctor_m2814377392_gshared/* 2639*/, (Il2CppMethodPointer)&List_1__cctor_m2406694916_gshared/* 2640*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3911881107_gshared/* 2641*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m238914391_gshared/* 2642*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m2711440510_gshared/* 2643*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m2467317711_gshared/* 2644*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m1445741711_gshared/* 2645*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m3337681989_gshared/* 2646*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m2411507172_gshared/* 2647*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m757548498_gshared/* 2648*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3598018290_gshared/* 2649*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m42432439_gshared/* 2650*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m3463435867_gshared/* 2651*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m1122077912_gshared/* 2652*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m3489886467_gshared/* 2653*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2717017342_gshared/* 2654*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m2322597873_gshared/* 2655*/, (Il2CppMethodPointer)&List_1_Add_m1421473272_gshared/* 2656*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m1884976939_gshared/* 2657*/, (Il2CppMethodPointer)&List_1_AddCollection_m4288303131_gshared/* 2658*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m2240424635_gshared/* 2659*/, (Il2CppMethodPointer)&List_1_AddRange_m550906382_gshared/* 2660*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m4170173499_gshared/* 2661*/, (Il2CppMethodPointer)&List_1_Clear_m872023540_gshared/* 2662*/, (Il2CppMethodPointer)&List_1_Contains_m2579468898_gshared/* 2663*/, (Il2CppMethodPointer)&List_1_CopyTo_m3304934364_gshared/* 2664*/, (Il2CppMethodPointer)&List_1_Find_m928764838_gshared/* 2665*/, (Il2CppMethodPointer)&List_1_CheckMatch_m1772343151_gshared/* 2666*/, (Il2CppMethodPointer)&List_1_GetIndex_m3484731440_gshared/* 2667*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m1960030979_gshared/* 2668*/, (Il2CppMethodPointer)&List_1_IndexOf_m3773642130_gshared/* 2669*/, (Il2CppMethodPointer)&List_1_Shift_m3131270387_gshared/* 2670*/, (Il2CppMethodPointer)&List_1_CheckIndex_m2328469916_gshared/* 2671*/, (Il2CppMethodPointer)&List_1_Insert_m2347446741_gshared/* 2672*/, (Il2CppMethodPointer)&List_1_CheckCollection_m702424990_gshared/* 2673*/, (Il2CppMethodPointer)&List_1_Remove_m600476045_gshared/* 2674*/, (Il2CppMethodPointer)&List_1_RemoveAll_m1556422543_gshared/* 2675*/, (Il2CppMethodPointer)&List_1_RemoveAt_m694265537_gshared/* 2676*/, (Il2CppMethodPointer)&List_1_Reverse_m3464820627_gshared/* 2677*/, (Il2CppMethodPointer)&List_1_Sort_m3415942229_gshared/* 2678*/, (Il2CppMethodPointer)&List_1_Sort_m3761433676_gshared/* 2679*/, (Il2CppMethodPointer)&List_1_ToArray_m101334674_gshared/* 2680*/, (Il2CppMethodPointer)&List_1_TrimExcess_m148071630_gshared/* 2681*/, (Il2CppMethodPointer)&List_1_get_Capacity_m737897572_gshared/* 2682*/, (Il2CppMethodPointer)&List_1_set_Capacity_m895816763_gshared/* 2683*/, (Il2CppMethodPointer)&List_1_get_Count_m746333615_gshared/* 2684*/, (Il2CppMethodPointer)&List_1_get_Item_m1547593893_gshared/* 2685*/, (Il2CppMethodPointer)&List_1_set_Item_m3124475534_gshared/* 2686*/, (Il2CppMethodPointer)&List_1__ctor_m2672294496_gshared/* 2687*/, (Il2CppMethodPointer)&List_1__ctor_m1374227281_gshared/* 2688*/, (Il2CppMethodPointer)&List_1__cctor_m964742127_gshared/* 2689*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m1503548298_gshared/* 2690*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m1530390632_gshared/* 2691*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m756554573_gshared/* 2692*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m2159243884_gshared/* 2693*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m2320767470_gshared/* 2694*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m1198382402_gshared/* 2695*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m813883425_gshared/* 2696*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m2040310137_gshared/* 2697*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1614481629_gshared/* 2698*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m1589801624_gshared/* 2699*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m1040733662_gshared/* 2700*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m1301385461_gshared/* 2701*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m918797556_gshared/* 2702*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2094199825_gshared/* 2703*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m462908230_gshared/* 2704*/, (Il2CppMethodPointer)&List_1_Add_m943275925_gshared/* 2705*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m1253877786_gshared/* 2706*/, (Il2CppMethodPointer)&List_1_AddCollection_m3411511922_gshared/* 2707*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m1315238882_gshared/* 2708*/, (Il2CppMethodPointer)&List_1_AddRange_m1961118505_gshared/* 2709*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m1705673780_gshared/* 2710*/, (Il2CppMethodPointer)&List_1_Clear_m4218787945_gshared/* 2711*/, (Il2CppMethodPointer)&List_1_Contains_m201418743_gshared/* 2712*/, (Il2CppMethodPointer)&List_1_CopyTo_m1257394493_gshared/* 2713*/, (Il2CppMethodPointer)&List_1_Find_m1730628159_gshared/* 2714*/, (Il2CppMethodPointer)&List_1_CheckMatch_m3223332392_gshared/* 2715*/, (Il2CppMethodPointer)&List_1_GetIndex_m2077176567_gshared/* 2716*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m1475908476_gshared/* 2717*/, (Il2CppMethodPointer)&List_1_IndexOf_m1434084853_gshared/* 2718*/, (Il2CppMethodPointer)&List_1_Shift_m230554188_gshared/* 2719*/, (Il2CppMethodPointer)&List_1_CheckIndex_m2515123737_gshared/* 2720*/, (Il2CppMethodPointer)&List_1_Insert_m3381965982_gshared/* 2721*/, (Il2CppMethodPointer)&List_1_CheckCollection_m2608305187_gshared/* 2722*/, (Il2CppMethodPointer)&List_1_Remove_m2218182224_gshared/* 2723*/, (Il2CppMethodPointer)&List_1_RemoveAll_m810331748_gshared/* 2724*/, (Il2CppMethodPointer)&List_1_RemoveAt_m1271632082_gshared/* 2725*/, (Il2CppMethodPointer)&List_1_Reverse_m3362906046_gshared/* 2726*/, (Il2CppMethodPointer)&List_1_Sort_m3454751890_gshared/* 2727*/, (Il2CppMethodPointer)&List_1_Sort_m1395775863_gshared/* 2728*/, (Il2CppMethodPointer)&List_1_ToArray_m1103831931_gshared/* 2729*/, (Il2CppMethodPointer)&List_1_TrimExcess_m2860576477_gshared/* 2730*/, (Il2CppMethodPointer)&List_1_get_Capacity_m3131467143_gshared/* 2731*/, (Il2CppMethodPointer)&List_1_set_Capacity_m3082973746_gshared/* 2732*/, (Il2CppMethodPointer)&List_1_get_Count_m3939916508_gshared/* 2733*/, (Il2CppMethodPointer)&List_1_get_Item_m22907878_gshared/* 2734*/, (Il2CppMethodPointer)&List_1_set_Item_m1062416045_gshared/* 2735*/, (Il2CppMethodPointer)&List_1__ctor_m2904174602_gshared/* 2736*/, (Il2CppMethodPointer)&List_1__ctor_m953162903_gshared/* 2737*/, (Il2CppMethodPointer)&List_1__cctor_m238880637_gshared/* 2738*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3123730956_gshared/* 2739*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m467073326_gshared/* 2740*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m2923618987_gshared/* 2741*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m3474658850_gshared/* 2742*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m3263069836_gshared/* 2743*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m1671340024_gshared/* 2744*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m1371868507_gshared/* 2745*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m242222779_gshared/* 2746*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4086633855_gshared/* 2747*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m2622179770_gshared/* 2748*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m2293775492_gshared/* 2749*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m1585515739_gshared/* 2750*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m2615305990_gshared/* 2751*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2465516839_gshared/* 2752*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m2754968760_gshared/* 2753*/, (Il2CppMethodPointer)&List_1_Add_m139600959_gshared/* 2754*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m3677371172_gshared/* 2755*/, (Il2CppMethodPointer)&List_1_AddCollection_m2628217188_gshared/* 2756*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m3541747636_gshared/* 2757*/, (Il2CppMethodPointer)&List_1_AddRange_m1688799127_gshared/* 2758*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m2754109886_gshared/* 2759*/, (Il2CppMethodPointer)&List_1_Clear_m3712744299_gshared/* 2760*/, (Il2CppMethodPointer)&List_1_Contains_m980727749_gshared/* 2761*/, (Il2CppMethodPointer)&List_1_CopyTo_m1916701891_gshared/* 2762*/, (Il2CppMethodPointer)&List_1_Find_m3715518749_gshared/* 2763*/, (Il2CppMethodPointer)&List_1_CheckMatch_m1814522134_gshared/* 2764*/, (Il2CppMethodPointer)&List_1_GetIndex_m2229998893_gshared/* 2765*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m3295274810_gshared/* 2766*/, (Il2CppMethodPointer)&List_1_IndexOf_m841995471_gshared/* 2767*/, (Il2CppMethodPointer)&List_1_Shift_m457025866_gshared/* 2768*/, (Il2CppMethodPointer)&List_1_CheckIndex_m2247532995_gshared/* 2769*/, (Il2CppMethodPointer)&List_1_Insert_m2058628204_gshared/* 2770*/, (Il2CppMethodPointer)&List_1_CheckCollection_m1525892709_gshared/* 2771*/, (Il2CppMethodPointer)&List_1_Remove_m2660527978_gshared/* 2772*/, (Il2CppMethodPointer)&List_1_RemoveAll_m1762969266_gshared/* 2773*/, (Il2CppMethodPointer)&List_1_RemoveAt_m219975640_gshared/* 2774*/, (Il2CppMethodPointer)&List_1_Reverse_m2494927116_gshared/* 2775*/, (Il2CppMethodPointer)&List_1_Sort_m1911837196_gshared/* 2776*/, (Il2CppMethodPointer)&List_1_Sort_m2939600501_gshared/* 2777*/, (Il2CppMethodPointer)&List_1_ToArray_m3800866457_gshared/* 2778*/, (Il2CppMethodPointer)&List_1_TrimExcess_m4150235479_gshared/* 2779*/, (Il2CppMethodPointer)&List_1_get_Capacity_m1731310993_gshared/* 2780*/, (Il2CppMethodPointer)&List_1_set_Capacity_m4114528740_gshared/* 2781*/, (Il2CppMethodPointer)&List_1_get_Count_m634584594_gshared/* 2782*/, (Il2CppMethodPointer)&List_1_get_Item_m1231764300_gshared/* 2783*/, (Il2CppMethodPointer)&List_1_set_Item_m1853859111_gshared/* 2784*/, (Il2CppMethodPointer)&List_1__ctor_m1282220089_gshared/* 2785*/, (Il2CppMethodPointer)&List_1__ctor_m4077915726_gshared/* 2786*/, (Il2CppMethodPointer)&List_1__cctor_m788123150_gshared/* 2787*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3938644293_gshared/* 2788*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m3062449209_gshared/* 2789*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m136047528_gshared/* 2790*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m1206679309_gshared/* 2791*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m2038943033_gshared/* 2792*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m2363278771_gshared/* 2793*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m2838947798_gshared/* 2794*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m3933652540_gshared/* 2795*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1380246012_gshared/* 2796*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m3709489469_gshared/* 2797*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m181847497_gshared/* 2798*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m95206982_gshared/* 2799*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m935733081_gshared/* 2800*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m3989815218_gshared/* 2801*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m3243836587_gshared/* 2802*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m823678457_gshared/* 2803*/, (Il2CppMethodPointer)&List_1_AddCollection_m3266731889_gshared/* 2804*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m1326553217_gshared/* 2805*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m2125199073_gshared/* 2806*/, (Il2CppMethodPointer)&List_1_Contains_m3819542652_gshared/* 2807*/, (Il2CppMethodPointer)&List_1_CopyTo_m3599989706_gshared/* 2808*/, (Il2CppMethodPointer)&List_1_Find_m3480386930_gshared/* 2809*/, (Il2CppMethodPointer)&List_1_CheckMatch_m272080553_gshared/* 2810*/, (Il2CppMethodPointer)&List_1_GetIndex_m4149823362_gshared/* 2811*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m2718304481_gshared/* 2812*/, (Il2CppMethodPointer)&List_1_IndexOf_m2418862432_gshared/* 2813*/, (Il2CppMethodPointer)&List_1_Shift_m3230294253_gshared/* 2814*/, (Il2CppMethodPointer)&List_1_CheckIndex_m1913591742_gshared/* 2815*/, (Il2CppMethodPointer)&List_1_Insert_m2375507299_gshared/* 2816*/, (Il2CppMethodPointer)&List_1_CheckCollection_m1228076404_gshared/* 2817*/, (Il2CppMethodPointer)&List_1_Remove_m3979520415_gshared/* 2818*/, (Il2CppMethodPointer)&List_1_RemoveAll_m3473142549_gshared/* 2819*/, (Il2CppMethodPointer)&List_1_RemoveAt_m1662147959_gshared/* 2820*/, (Il2CppMethodPointer)&List_1_Reverse_m283673877_gshared/* 2821*/, (Il2CppMethodPointer)&List_1_Sort_m116241367_gshared/* 2822*/, (Il2CppMethodPointer)&List_1_Sort_m1945508006_gshared/* 2823*/, (Il2CppMethodPointer)&List_1_ToArray_m3752387798_gshared/* 2824*/, (Il2CppMethodPointer)&List_1_TrimExcess_m7557008_gshared/* 2825*/, (Il2CppMethodPointer)&List_1_get_Capacity_m1878556466_gshared/* 2826*/, (Il2CppMethodPointer)&List_1_set_Capacity_m197289457_gshared/* 2827*/, (Il2CppMethodPointer)&List_1_get_Count_m1752597149_gshared/* 2828*/, (Il2CppMethodPointer)&List_1__ctor_m247608098_gshared/* 2829*/, (Il2CppMethodPointer)&List_1__cctor_m911493842_gshared/* 2830*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m4001960207_gshared/* 2831*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m1172585019_gshared/* 2832*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m3458565060_gshared/* 2833*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m3128129043_gshared/* 2834*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m4193366963_gshared/* 2835*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m4061554721_gshared/* 2836*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m848656350_gshared/* 2837*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m875577424_gshared/* 2838*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1084563456_gshared/* 2839*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m1411620731_gshared/* 2840*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m3031553207_gshared/* 2841*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m568608666_gshared/* 2842*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m3308105823_gshared/* 2843*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m4133696900_gshared/* 2844*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m2267202349_gshared/* 2845*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m3640023655_gshared/* 2846*/, (Il2CppMethodPointer)&List_1_AddCollection_m1183688727_gshared/* 2847*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m2981292375_gshared/* 2848*/, (Il2CppMethodPointer)&List_1_AddRange_m1797294292_gshared/* 2849*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m2629234039_gshared/* 2850*/, (Il2CppMethodPointer)&List_1_Contains_m216578708_gshared/* 2851*/, (Il2CppMethodPointer)&List_1_CopyTo_m4240677846_gshared/* 2852*/, (Il2CppMethodPointer)&List_1_Find_m2584113984_gshared/* 2853*/, (Il2CppMethodPointer)&List_1_CheckMatch_m1650813139_gshared/* 2854*/, (Il2CppMethodPointer)&List_1_GetIndex_m4044233846_gshared/* 2855*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m2672519407_gshared/* 2856*/, (Il2CppMethodPointer)&List_1_IndexOf_m2443621264_gshared/* 2857*/, (Il2CppMethodPointer)&List_1_Shift_m3614644831_gshared/* 2858*/, (Il2CppMethodPointer)&List_1_CheckIndex_m2576265846_gshared/* 2859*/, (Il2CppMethodPointer)&List_1_Insert_m2532850849_gshared/* 2860*/, (Il2CppMethodPointer)&List_1_CheckCollection_m3234052816_gshared/* 2861*/, (Il2CppMethodPointer)&List_1_Remove_m490375377_gshared/* 2862*/, (Il2CppMethodPointer)&List_1_RemoveAll_m4125997475_gshared/* 2863*/, (Il2CppMethodPointer)&List_1_RemoveAt_m3262734405_gshared/* 2864*/, (Il2CppMethodPointer)&List_1_Reverse_m302978607_gshared/* 2865*/, (Il2CppMethodPointer)&List_1_Sort_m2928552217_gshared/* 2866*/, (Il2CppMethodPointer)&List_1_ToArray_m3596746708_gshared/* 2867*/, (Il2CppMethodPointer)&List_1_TrimExcess_m433740308_gshared/* 2868*/, (Il2CppMethodPointer)&List_1_get_Capacity_m4262042666_gshared/* 2869*/, (Il2CppMethodPointer)&List_1_set_Capacity_m1328294231_gshared/* 2870*/, (Il2CppMethodPointer)&List_1_set_Item_m2039806228_gshared/* 2871*/, (Il2CppMethodPointer)&List_1__ctor_m1375473095_gshared/* 2872*/, (Il2CppMethodPointer)&List_1__cctor_m3823644086_gshared/* 2873*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m2348591407_gshared/* 2874*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m2073695915_gshared/* 2875*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m794986580_gshared/* 2876*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m4141282763_gshared/* 2877*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m628054451_gshared/* 2878*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m2887559165_gshared/* 2879*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m3714295934_gshared/* 2880*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m3673342024_gshared/* 2881*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4057491736_gshared/* 2882*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m2070580979_gshared/* 2883*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m22440695_gshared/* 2884*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m1195644338_gshared/* 2885*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m926493967_gshared/* 2886*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m3646798836_gshared/* 2887*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m1129584681_gshared/* 2888*/, (Il2CppMethodPointer)&List_1_Add_m3910722802_gshared/* 2889*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m1073407447_gshared/* 2890*/, (Il2CppMethodPointer)&List_1_AddCollection_m2221063383_gshared/* 2891*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m2203160679_gshared/* 2892*/, (Il2CppMethodPointer)&List_1_AddRange_m1106917444_gshared/* 2893*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m2401222295_gshared/* 2894*/, (Il2CppMethodPointer)&List_1_Clear_m3088166542_gshared/* 2895*/, (Il2CppMethodPointer)&List_1_Contains_m1838557784_gshared/* 2896*/, (Il2CppMethodPointer)&List_1_CopyTo_m612443030_gshared/* 2897*/, (Il2CppMethodPointer)&List_1_Find_m970100220_gshared/* 2898*/, (Il2CppMethodPointer)&List_1_CheckMatch_m2830747427_gshared/* 2899*/, (Il2CppMethodPointer)&List_1_GetIndex_m1530979506_gshared/* 2900*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m3769099511_gshared/* 2901*/, (Il2CppMethodPointer)&List_1_IndexOf_m4082601464_gshared/* 2902*/, (Il2CppMethodPointer)&List_1_Shift_m1437179143_gshared/* 2903*/, (Il2CppMethodPointer)&List_1_CheckIndex_m4231572822_gshared/* 2904*/, (Il2CppMethodPointer)&List_1_Insert_m3305828613_gshared/* 2905*/, (Il2CppMethodPointer)&List_1_CheckCollection_m4110679452_gshared/* 2906*/, (Il2CppMethodPointer)&List_1_Remove_m2664188309_gshared/* 2907*/, (Il2CppMethodPointer)&List_1_RemoveAll_m186019563_gshared/* 2908*/, (Il2CppMethodPointer)&List_1_RemoveAt_m1940208129_gshared/* 2909*/, (Il2CppMethodPointer)&List_1_Reverse_m28825263_gshared/* 2910*/, (Il2CppMethodPointer)&List_1_Sort_m4156683373_gshared/* 2911*/, (Il2CppMethodPointer)&List_1_Sort_m1776255358_gshared/* 2912*/, (Il2CppMethodPointer)&List_1_ToArray_m3533455832_gshared/* 2913*/, (Il2CppMethodPointer)&List_1_TrimExcess_m2004514756_gshared/* 2914*/, (Il2CppMethodPointer)&List_1_get_Capacity_m2486809294_gshared/* 2915*/, (Il2CppMethodPointer)&List_1_set_Capacity_m2969391799_gshared/* 2916*/, (Il2CppMethodPointer)&List_1_get_Count_m845638235_gshared/* 2917*/, (Il2CppMethodPointer)&List_1_get_Item_m2197879061_gshared/* 2918*/, (Il2CppMethodPointer)&List_1_set_Item_m3658560340_gshared/* 2919*/, (Il2CppMethodPointer)&List_1__ctor_m2164983161_gshared/* 2920*/, (Il2CppMethodPointer)&List_1__cctor_m1337542316_gshared/* 2921*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m1243254425_gshared/* 2922*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m1995866425_gshared/* 2923*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m1891857818_gshared/* 2924*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m4271264217_gshared/* 2925*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m1464819673_gshared/* 2926*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m3828407883_gshared/* 2927*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m2036969360_gshared/* 2928*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m3749270066_gshared/* 2929*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m567458162_gshared/* 2930*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m2655927277_gshared/* 2931*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m1836255877_gshared/* 2932*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m3522184224_gshared/* 2933*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m2397971721_gshared/* 2934*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m603528194_gshared/* 2935*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m1017084179_gshared/* 2936*/, (Il2CppMethodPointer)&List_1_Add_m1379180100_gshared/* 2937*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m2433342921_gshared/* 2938*/, (Il2CppMethodPointer)&List_1_AddCollection_m3284813601_gshared/* 2939*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m1321110033_gshared/* 2940*/, (Il2CppMethodPointer)&List_1_AddRange_m884869306_gshared/* 2941*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m1096672201_gshared/* 2942*/, (Il2CppMethodPointer)&List_1_Clear_m3871149208_gshared/* 2943*/, (Il2CppMethodPointer)&List_1_Contains_m4086580990_gshared/* 2944*/, (Il2CppMethodPointer)&List_1_CopyTo_m352105188_gshared/* 2945*/, (Il2CppMethodPointer)&List_1_Find_m3680710386_gshared/* 2946*/, (Il2CppMethodPointer)&List_1_CheckMatch_m2013763705_gshared/* 2947*/, (Il2CppMethodPointer)&List_1_GetIndex_m821865344_gshared/* 2948*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m4053501645_gshared/* 2949*/, (Il2CppMethodPointer)&List_1_IndexOf_m3051639274_gshared/* 2950*/, (Il2CppMethodPointer)&List_1_Shift_m439051997_gshared/* 2951*/, (Il2CppMethodPointer)&List_1_CheckIndex_m2850737480_gshared/* 2952*/, (Il2CppMethodPointer)&List_1_Insert_m1936082907_gshared/* 2953*/, (Il2CppMethodPointer)&List_1_CheckCollection_m746720422_gshared/* 2954*/, (Il2CppMethodPointer)&List_1_Remove_m2981732583_gshared/* 2955*/, (Il2CppMethodPointer)&List_1_RemoveAll_m319434801_gshared/* 2956*/, (Il2CppMethodPointer)&List_1_RemoveAt_m3966616367_gshared/* 2957*/, (Il2CppMethodPointer)&List_1_Reverse_m3030138629_gshared/* 2958*/, (Il2CppMethodPointer)&List_1_Sort_m1625178975_gshared/* 2959*/, (Il2CppMethodPointer)&List_1_Sort_m2659614836_gshared/* 2960*/, (Il2CppMethodPointer)&List_1_ToArray_m2390522926_gshared/* 2961*/, (Il2CppMethodPointer)&List_1_TrimExcess_m2896397750_gshared/* 2962*/, (Il2CppMethodPointer)&List_1_get_Capacity_m2038446304_gshared/* 2963*/, (Il2CppMethodPointer)&List_1_set_Capacity_m859503073_gshared/* 2964*/, (Il2CppMethodPointer)&List_1_get_Count_m1736231209_gshared/* 2965*/, (Il2CppMethodPointer)&List_1_get_Item_m3831223555_gshared/* 2966*/, (Il2CppMethodPointer)&List_1_set_Item_m125761062_gshared/* 2967*/, (Il2CppMethodPointer)&List_1__ctor_m1337392449_gshared/* 2968*/, (Il2CppMethodPointer)&List_1__cctor_m476277764_gshared/* 2969*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m166627113_gshared/* 2970*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m3316219081_gshared/* 2971*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m454293978_gshared/* 2972*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m3674406113_gshared/* 2973*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m2481604681_gshared/* 2974*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m2897263627_gshared/* 2975*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m3635932016_gshared/* 2976*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m1821277226_gshared/* 2977*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3787929546_gshared/* 2978*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m2270713861_gshared/* 2979*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m3515852805_gshared/* 2980*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m999831848_gshared/* 2981*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m60655113_gshared/* 2982*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2570285042_gshared/* 2983*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m1634052283_gshared/* 2984*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m2637898233_gshared/* 2985*/, (Il2CppMethodPointer)&List_1_AddCollection_m4114156849_gshared/* 2986*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m1000825969_gshared/* 2987*/, (Il2CppMethodPointer)&List_1_AddRange_m2030106074_gshared/* 2988*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m1681105545_gshared/* 2989*/, (Il2CppMethodPointer)&List_1_Clear_m2304044904_gshared/* 2990*/, (Il2CppMethodPointer)&List_1_Contains_m2638831974_gshared/* 2991*/, (Il2CppMethodPointer)&List_1_CopyTo_m158925060_gshared/* 2992*/, (Il2CppMethodPointer)&List_1_Find_m1270109362_gshared/* 2993*/, (Il2CppMethodPointer)&List_1_CheckMatch_m419866969_gshared/* 2994*/, (Il2CppMethodPointer)&List_1_GetIndex_m3262928832_gshared/* 2995*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m3621075925_gshared/* 2996*/, (Il2CppMethodPointer)&List_1_IndexOf_m2722594082_gshared/* 2997*/, (Il2CppMethodPointer)&List_1_Shift_m2647431653_gshared/* 2998*/, (Il2CppMethodPointer)&List_1_CheckIndex_m1331979688_gshared/* 2999*/, (Il2CppMethodPointer)&List_1_Insert_m244730035_gshared/* 3000*/, (Il2CppMethodPointer)&List_1_CheckCollection_m1603829150_gshared/* 3001*/, (Il2CppMethodPointer)&List_1_Remove_m35225255_gshared/* 3002*/, (Il2CppMethodPointer)&List_1_RemoveAll_m4269479257_gshared/* 3003*/, (Il2CppMethodPointer)&List_1_RemoveAt_m1843849279_gshared/* 3004*/, (Il2CppMethodPointer)&List_1_Reverse_m3395936565_gshared/* 3005*/, (Il2CppMethodPointer)&List_1_Sort_m162281215_gshared/* 3006*/, (Il2CppMethodPointer)&List_1_Sort_m1781332044_gshared/* 3007*/, (Il2CppMethodPointer)&List_1_ToArray_m1915350374_gshared/* 3008*/, (Il2CppMethodPointer)&List_1_TrimExcess_m2917822182_gshared/* 3009*/, (Il2CppMethodPointer)&List_1__ctor_m3511181530_gshared/* 3010*/, (Il2CppMethodPointer)&List_1__ctor_m4213097859_gshared/* 3011*/, (Il2CppMethodPointer)&List_1__cctor_m258195429_gshared/* 3012*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m3625278020_gshared/* 3013*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m3846687822_gshared/* 3014*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m1422822879_gshared/* 3015*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m1820917634_gshared/* 3016*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m780443244_gshared/* 3017*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m3713885384_gshared/* 3018*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m941505143_gshared/* 3019*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m3763718607_gshared/* 3020*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1453178827_gshared/* 3021*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m227393674_gshared/* 3022*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m1804424478_gshared/* 3023*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m3108597135_gshared/* 3024*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m3666009382_gshared/* 3025*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2378573511_gshared/* 3026*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m2480767060_gshared/* 3027*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m2239402788_gshared/* 3028*/, (Il2CppMethodPointer)&List_1_AddCollection_m767358372_gshared/* 3029*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m1062096212_gshared/* 3030*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m4108578222_gshared/* 3031*/, (Il2CppMethodPointer)&List_1_Contains_m2079304621_gshared/* 3032*/, (Il2CppMethodPointer)&List_1_CopyTo_m1896864447_gshared/* 3033*/, (Il2CppMethodPointer)&List_1_Find_m3862454845_gshared/* 3034*/, (Il2CppMethodPointer)&List_1_CheckMatch_m1345998262_gshared/* 3035*/, (Il2CppMethodPointer)&List_1_GetIndex_m2728961497_gshared/* 3036*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m3339340714_gshared/* 3037*/, (Il2CppMethodPointer)&List_1_IndexOf_m2019441835_gshared/* 3038*/, (Il2CppMethodPointer)&List_1_Shift_m3083454298_gshared/* 3039*/, (Il2CppMethodPointer)&List_1_CheckIndex_m402842271_gshared/* 3040*/, (Il2CppMethodPointer)&List_1_Insert_m1176952016_gshared/* 3041*/, (Il2CppMethodPointer)&List_1_CheckCollection_m2220107869_gshared/* 3042*/, (Il2CppMethodPointer)&List_1_Remove_m1237648310_gshared/* 3043*/, (Il2CppMethodPointer)&List_1_RemoveAll_m3261187874_gshared/* 3044*/, (Il2CppMethodPointer)&List_1_RemoveAt_m2331128844_gshared/* 3045*/, (Il2CppMethodPointer)&List_1_Reverse_m3535321132_gshared/* 3046*/, (Il2CppMethodPointer)&List_1_Sort_m3574220472_gshared/* 3047*/, (Il2CppMethodPointer)&List_1_Sort_m1262985405_gshared/* 3048*/, (Il2CppMethodPointer)&List_1_ToArray_m3581542165_gshared/* 3049*/, (Il2CppMethodPointer)&List_1_TrimExcess_m2593819291_gshared/* 3050*/, (Il2CppMethodPointer)&List_1_get_Capacity_m2443158653_gshared/* 3051*/, (Il2CppMethodPointer)&List_1_set_Capacity_m3053659972_gshared/* 3052*/, (Il2CppMethodPointer)&List_1_get_Count_m1149731058_gshared/* 3053*/, (Il2CppMethodPointer)&List_1__ctor_m1739470559_gshared/* 3054*/, (Il2CppMethodPointer)&List_1__ctor_m3997225032_gshared/* 3055*/, (Il2CppMethodPointer)&List_1__cctor_m2095067232_gshared/* 3056*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m2219076127_gshared/* 3057*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m1178805395_gshared/* 3058*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m413886046_gshared/* 3059*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m2038396515_gshared/* 3060*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m4009806475_gshared/* 3061*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m2526560425_gshared/* 3062*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m2469433788_gshared/* 3063*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m4068476586_gshared/* 3064*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2164218762_gshared/* 3065*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m363138155_gshared/* 3066*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m1429670979_gshared/* 3067*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m1188646288_gshared/* 3068*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m1745992999_gshared/* 3069*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m3333265164_gshared/* 3070*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m1722990777_gshared/* 3071*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m3656820735_gshared/* 3072*/, (Il2CppMethodPointer)&List_1_AddCollection_m257454527_gshared/* 3073*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m36504111_gshared/* 3074*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m1419954895_gshared/* 3075*/, (Il2CppMethodPointer)&List_1_Contains_m1363332942_gshared/* 3076*/, (Il2CppMethodPointer)&List_1_CopyTo_m2750189956_gshared/* 3077*/, (Il2CppMethodPointer)&List_1_Find_m160737912_gshared/* 3078*/, (Il2CppMethodPointer)&List_1_CheckMatch_m4018158235_gshared/* 3079*/, (Il2CppMethodPointer)&List_1_GetIndex_m2513359832_gshared/* 3080*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m1075582447_gshared/* 3081*/, (Il2CppMethodPointer)&List_1_IndexOf_m1520537898_gshared/* 3082*/, (Il2CppMethodPointer)&List_1_Shift_m3453072415_gshared/* 3083*/, (Il2CppMethodPointer)&List_1_CheckIndex_m483190820_gshared/* 3084*/, (Il2CppMethodPointer)&List_1_Insert_m432478581_gshared/* 3085*/, (Il2CppMethodPointer)&List_1_CheckCollection_m818371234_gshared/* 3086*/, (Il2CppMethodPointer)&List_1_Remove_m1738717045_gshared/* 3087*/, (Il2CppMethodPointer)&List_1_RemoveAll_m2238290115_gshared/* 3088*/, (Il2CppMethodPointer)&List_1_RemoveAt_m2929488689_gshared/* 3089*/, (Il2CppMethodPointer)&List_1_Reverse_m2016509831_gshared/* 3090*/, (Il2CppMethodPointer)&List_1_Sort_m269561757_gshared/* 3091*/, (Il2CppMethodPointer)&List_1_Sort_m1483183736_gshared/* 3092*/, (Il2CppMethodPointer)&List_1_ToArray_m2810936944_gshared/* 3093*/, (Il2CppMethodPointer)&List_1_TrimExcess_m2207230550_gshared/* 3094*/, (Il2CppMethodPointer)&List_1_get_Capacity_m3166663676_gshared/* 3095*/, (Il2CppMethodPointer)&List_1_set_Capacity_m1734764639_gshared/* 3096*/, (Il2CppMethodPointer)&List_1__ctor_m2082969060_gshared/* 3097*/, (Il2CppMethodPointer)&List_1__ctor_m593058937_gshared/* 3098*/, (Il2CppMethodPointer)&List_1__cctor_m1022807427_gshared/* 3099*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m4236249210_gshared/* 3100*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_CopyTo_m253974980_gshared/* 3101*/, (Il2CppMethodPointer)&List_1_System_Collections_IEnumerable_GetEnumerator_m3903187673_gshared/* 3102*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Add_m3311507516_gshared/* 3103*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Contains_m3010726442_gshared/* 3104*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_IndexOf_m2096960898_gshared/* 3105*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Insert_m2260575489_gshared/* 3106*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_Remove_m3853980401_gshared/* 3107*/, (Il2CppMethodPointer)&List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1563977549_gshared/* 3108*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_IsSynchronized_m1147262924_gshared/* 3109*/, (Il2CppMethodPointer)&List_1_System_Collections_ICollection_get_SyncRoot_m766733268_gshared/* 3110*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsFixedSize_m3339043989_gshared/* 3111*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_IsReadOnly_m3905377192_gshared/* 3112*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_get_Item_m2734833597_gshared/* 3113*/, (Il2CppMethodPointer)&List_1_System_Collections_IList_set_Item_m4016273526_gshared/* 3114*/, (Il2CppMethodPointer)&List_1_GrowIfNeeded_m342928366_gshared/* 3115*/, (Il2CppMethodPointer)&List_1_AddCollection_m1757535174_gshared/* 3116*/, (Il2CppMethodPointer)&List_1_AddEnumerable_m3019862006_gshared/* 3117*/, (Il2CppMethodPointer)&List_1_AsReadOnly_m1406961904_gshared/* 3118*/, (Il2CppMethodPointer)&List_1_Contains_m2184078187_gshared/* 3119*/, (Il2CppMethodPointer)&List_1_CopyTo_m3958592053_gshared/* 3120*/, (Il2CppMethodPointer)&List_1_Find_m1809770055_gshared/* 3121*/, (Il2CppMethodPointer)&List_1_CheckMatch_m1184924052_gshared/* 3122*/, (Il2CppMethodPointer)&List_1_GetIndex_m433539411_gshared/* 3123*/, (Il2CppMethodPointer)&List_1_GetEnumerator_m738869388_gshared/* 3124*/, (Il2CppMethodPointer)&List_1_IndexOf_m3570614833_gshared/* 3125*/, (Il2CppMethodPointer)&List_1_Shift_m3824049528_gshared/* 3126*/, (Il2CppMethodPointer)&List_1_CheckIndex_m1944339753_gshared/* 3127*/, (Il2CppMethodPointer)&List_1_Insert_m1833581358_gshared/* 3128*/, (Il2CppMethodPointer)&List_1_CheckCollection_m2028764095_gshared/* 3129*/, (Il2CppMethodPointer)&List_1_Remove_m2802756144_gshared/* 3130*/, (Il2CppMethodPointer)&List_1_RemoveAll_m1444807780_gshared/* 3131*/, (Il2CppMethodPointer)&List_1_RemoveAt_m4076331586_gshared/* 3132*/, (Il2CppMethodPointer)&List_1_Reverse_m1170127882_gshared/* 3133*/, (Il2CppMethodPointer)&List_1_Sort_m2158253314_gshared/* 3134*/, (Il2CppMethodPointer)&List_1_Sort_m2562910171_gshared/* 3135*/, (Il2CppMethodPointer)&List_1_ToArray_m925997899_gshared/* 3136*/, (Il2CppMethodPointer)&List_1_TrimExcess_m1012566565_gshared/* 3137*/, (Il2CppMethodPointer)&List_1_get_Capacity_m1435386499_gshared/* 3138*/, (Il2CppMethodPointer)&List_1_set_Capacity_m1823402470_gshared/* 3139*/, (Il2CppMethodPointer)&List_1_get_Count_m1249351212_gshared/* 3140*/, (Il2CppMethodPointer)&Collection_1__ctor_m340822524_gshared/* 3141*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2091587849_gshared/* 3142*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m1047946700_gshared/* 3143*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m1756583169_gshared/* 3144*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m578683352_gshared/* 3145*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m3365884450_gshared/* 3146*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m4075083918_gshared/* 3147*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m266942173_gshared/* 3148*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m441326653_gshared/* 3149*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m2433014468_gshared/* 3150*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m3074531042_gshared/* 3151*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m2181653025_gshared/* 3152*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m781557632_gshared/* 3153*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m3376056117_gshared/* 3154*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m2391188074_gshared/* 3155*/, (Il2CppMethodPointer)&Collection_1_Add_m4031565265_gshared/* 3156*/, (Il2CppMethodPointer)&Collection_1_Clear_m1887013165_gshared/* 3157*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m3685814679_gshared/* 3158*/, (Il2CppMethodPointer)&Collection_1_Contains_m1321776939_gshared/* 3159*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m1840908033_gshared/* 3160*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m3441330476_gshared/* 3161*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m658556201_gshared/* 3162*/, (Il2CppMethodPointer)&Collection_1_Insert_m240759002_gshared/* 3163*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m2755057283_gshared/* 3164*/, (Il2CppMethodPointer)&Collection_1_Remove_m1593290756_gshared/* 3165*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m1576816886_gshared/* 3166*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m3737802444_gshared/* 3167*/, (Il2CppMethodPointer)&Collection_1_get_Count_m3834276648_gshared/* 3168*/, (Il2CppMethodPointer)&Collection_1_get_Item_m1739410122_gshared/* 3169*/, (Il2CppMethodPointer)&Collection_1_set_Item_m2437925129_gshared/* 3170*/, (Il2CppMethodPointer)&Collection_1_SetItem_m1078860490_gshared/* 3171*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m1002882727_gshared/* 3172*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m3563206219_gshared/* 3173*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m3099004971_gshared/* 3174*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m1319022347_gshared/* 3175*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m393120334_gshared/* 3176*/, (Il2CppMethodPointer)&Collection_1__ctor_m3198200948_gshared/* 3177*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3869278929_gshared/* 3178*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m3758640020_gshared/* 3179*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m2209987961_gshared/* 3180*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m2954354104_gshared/* 3181*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m323652826_gshared/* 3182*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m3357535786_gshared/* 3183*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m2543097941_gshared/* 3184*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m3676148205_gshared/* 3185*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m1924133708_gshared/* 3186*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m2585379274_gshared/* 3187*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m2408637569_gshared/* 3188*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m1000583304_gshared/* 3189*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m2415649949_gshared/* 3190*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m3488446830_gshared/* 3191*/, (Il2CppMethodPointer)&Collection_1_Add_m2613548553_gshared/* 3192*/, (Il2CppMethodPointer)&Collection_1_Clear_m3860339101_gshared/* 3193*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m2359888219_gshared/* 3194*/, (Il2CppMethodPointer)&Collection_1_Contains_m1652249119_gshared/* 3195*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m2993977545_gshared/* 3196*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m914650748_gshared/* 3197*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m238348105_gshared/* 3198*/, (Il2CppMethodPointer)&Collection_1_Insert_m3594407958_gshared/* 3199*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m1391780791_gshared/* 3200*/, (Il2CppMethodPointer)&Collection_1_Remove_m3895219432_gshared/* 3201*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m290627370_gshared/* 3202*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m4097730824_gshared/* 3203*/, (Il2CppMethodPointer)&Collection_1_get_Count_m1539014344_gshared/* 3204*/, (Il2CppMethodPointer)&Collection_1_get_Item_m1154492510_gshared/* 3205*/, (Il2CppMethodPointer)&Collection_1_set_Item_m4170293313_gshared/* 3206*/, (Il2CppMethodPointer)&Collection_1_SetItem_m2643403726_gshared/* 3207*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m2254106115_gshared/* 3208*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m2308084327_gshared/* 3209*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m2756357359_gshared/* 3210*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m2601980439_gshared/* 3211*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m1690655146_gshared/* 3212*/, (Il2CppMethodPointer)&Collection_1__ctor_m2818834331_gshared/* 3213*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m4096071066_gshared/* 3214*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m3896480607_gshared/* 3215*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m1624138998_gshared/* 3216*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m1527796839_gshared/* 3217*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m439054215_gshared/* 3218*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m1667133881_gshared/* 3219*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m3303840316_gshared/* 3220*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m698976938_gshared/* 3221*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m1622338911_gshared/* 3222*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m815502691_gshared/* 3223*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m1624702704_gshared/* 3224*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m2329986891_gshared/* 3225*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m416006758_gshared/* 3226*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m4023328701_gshared/* 3227*/, (Il2CppMethodPointer)&Collection_1_Add_m1895146768_gshared/* 3228*/, (Il2CppMethodPointer)&Collection_1_Clear_m2734620236_gshared/* 3229*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m3585785594_gshared/* 3230*/, (Il2CppMethodPointer)&Collection_1_Contains_m1423522454_gshared/* 3231*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m2028291972_gshared/* 3232*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m434271983_gshared/* 3233*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m1048636762_gshared/* 3234*/, (Il2CppMethodPointer)&Collection_1_Insert_m1916633065_gshared/* 3235*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m1775683682_gshared/* 3236*/, (Il2CppMethodPointer)&Collection_1_Remove_m3616495577_gshared/* 3237*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m1095666101_gshared/* 3238*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m3378524409_gshared/* 3239*/, (Il2CppMethodPointer)&Collection_1_get_Count_m4168522791_gshared/* 3240*/, (Il2CppMethodPointer)&Collection_1_get_Item_m2293587641_gshared/* 3241*/, (Il2CppMethodPointer)&Collection_1_set_Item_m3803272710_gshared/* 3242*/, (Il2CppMethodPointer)&Collection_1_SetItem_m1694051437_gshared/* 3243*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m1304951912_gshared/* 3244*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m2185647560_gshared/* 3245*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m2334289660_gshared/* 3246*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m3261594010_gshared/* 3247*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m162922409_gshared/* 3248*/, (Il2CppMethodPointer)&Collection_1__ctor_m3903788797_gshared/* 3249*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m979600052_gshared/* 3250*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m4193844941_gshared/* 3251*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m513344636_gshared/* 3252*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m1953936885_gshared/* 3253*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m3345685421_gshared/* 3254*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m3619893511_gshared/* 3255*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m1622702254_gshared/* 3256*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1762842100_gshared/* 3257*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m2693766457_gshared/* 3258*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m1997144145_gshared/* 3259*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m3708018606_gshared/* 3260*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m169194101_gshared/* 3261*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m1453290468_gshared/* 3262*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m150887383_gshared/* 3263*/, (Il2CppMethodPointer)&Collection_1_Add_m3985367602_gshared/* 3264*/, (Il2CppMethodPointer)&Collection_1_Clear_m268154422_gshared/* 3265*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m3021709828_gshared/* 3266*/, (Il2CppMethodPointer)&Collection_1_Contains_m1606928108_gshared/* 3267*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m1200286610_gshared/* 3268*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m2816357893_gshared/* 3269*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m1283309724_gshared/* 3270*/, (Il2CppMethodPointer)&Collection_1_Insert_m3505885391_gshared/* 3271*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m383205760_gshared/* 3272*/, (Il2CppMethodPointer)&Collection_1_Remove_m760037019_gshared/* 3273*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m560005219_gshared/* 3274*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m1058555919_gshared/* 3275*/, (Il2CppMethodPointer)&Collection_1_get_Count_m3509417749_gshared/* 3276*/, (Il2CppMethodPointer)&Collection_1_get_Item_m300557223_gshared/* 3277*/, (Il2CppMethodPointer)&Collection_1_set_Item_m3013463288_gshared/* 3278*/, (Il2CppMethodPointer)&Collection_1_SetItem_m1566861959_gshared/* 3279*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m1908012838_gshared/* 3280*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m3655413902_gshared/* 3281*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m2467777750_gshared/* 3282*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m3880942788_gshared/* 3283*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m945946071_gshared/* 3284*/, (Il2CppMethodPointer)&Collection_1__ctor_m3403655424_gshared/* 3285*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2730249519_gshared/* 3286*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m1335644572_gshared/* 3287*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m1812936427_gshared/* 3288*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m669232520_gshared/* 3289*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m4223806958_gshared/* 3290*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m51140022_gshared/* 3291*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m2140320323_gshared/* 3292*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1901189211_gshared/* 3293*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m1266213776_gshared/* 3294*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m2547259708_gshared/* 3295*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m2778306027_gshared/* 3296*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m474868292_gshared/* 3297*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m2254776227_gshared/* 3298*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m367940682_gshared/* 3299*/, (Il2CppMethodPointer)&Collection_1_Add_m3182287887_gshared/* 3300*/, (Il2CppMethodPointer)&Collection_1_Clear_m3317293907_gshared/* 3301*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m1410275009_gshared/* 3302*/, (Il2CppMethodPointer)&Collection_1_Contains_m3292349561_gshared/* 3303*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m2282972507_gshared/* 3304*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m1480796052_gshared/* 3305*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m688835775_gshared/* 3306*/, (Il2CppMethodPointer)&Collection_1_Insert_m44548038_gshared/* 3307*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m2583364417_gshared/* 3308*/, (Il2CppMethodPointer)&Collection_1_Remove_m4136193368_gshared/* 3309*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m2298154778_gshared/* 3310*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m2290432436_gshared/* 3311*/, (Il2CppMethodPointer)&Collection_1_get_Count_m3868337800_gshared/* 3312*/, (Il2CppMethodPointer)&Collection_1_get_Item_m1044868508_gshared/* 3313*/, (Il2CppMethodPointer)&Collection_1_set_Item_m2199807215_gshared/* 3314*/, (Il2CppMethodPointer)&Collection_1_SetItem_m3822382874_gshared/* 3315*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m1224378277_gshared/* 3316*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m2972284337_gshared/* 3317*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m691269733_gshared/* 3318*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m901474669_gshared/* 3319*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m1816795498_gshared/* 3320*/, (Il2CppMethodPointer)&Collection_1__ctor_m3209814810_gshared/* 3321*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m833878573_gshared/* 3322*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m2859266050_gshared/* 3323*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m2656507741_gshared/* 3324*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m1511844254_gshared/* 3325*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m3210868188_gshared/* 3326*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m4089922984_gshared/* 3327*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m2389175113_gshared/* 3328*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m2259205169_gshared/* 3329*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m2454331058_gshared/* 3330*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m1535537580_gshared/* 3331*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m227446821_gshared/* 3332*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m1820916678_gshared/* 3333*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m1416875369_gshared/* 3334*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m565207412_gshared/* 3335*/, (Il2CppMethodPointer)&Collection_1_Add_m269634181_gshared/* 3336*/, (Il2CppMethodPointer)&Collection_1_Clear_m2405574977_gshared/* 3337*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m1280157591_gshared/* 3338*/, (Il2CppMethodPointer)&Collection_1_Contains_m1299140035_gshared/* 3339*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m911594061_gshared/* 3340*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m3801750330_gshared/* 3341*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m2700825189_gshared/* 3342*/, (Il2CppMethodPointer)&Collection_1_Insert_m3143457948_gshared/* 3343*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m2988595291_gshared/* 3344*/, (Il2CppMethodPointer)&Collection_1_Remove_m1361950154_gshared/* 3345*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m3988604536_gshared/* 3346*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m3987135770_gshared/* 3347*/, (Il2CppMethodPointer)&Collection_1_get_Count_m2275297230_gshared/* 3348*/, (Il2CppMethodPointer)&Collection_1_get_Item_m1415164804_gshared/* 3349*/, (Il2CppMethodPointer)&Collection_1_set_Item_m1822499517_gshared/* 3350*/, (Il2CppMethodPointer)&Collection_1_SetItem_m3922004788_gshared/* 3351*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m429993695_gshared/* 3352*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m3168406667_gshared/* 3353*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m2744664947_gshared/* 3354*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m3188913819_gshared/* 3355*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m1962363848_gshared/* 3356*/, (Il2CppMethodPointer)&Collection_1__ctor_m2421771870_gshared/* 3357*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3440030017_gshared/* 3358*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m2909922374_gshared/* 3359*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m3927563793_gshared/* 3360*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m2085691818_gshared/* 3361*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m2973794400_gshared/* 3362*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m3976312928_gshared/* 3363*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m2968289909_gshared/* 3364*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1597250373_gshared/* 3365*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m2440175782_gshared/* 3366*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m3802141344_gshared/* 3367*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m993584401_gshared/* 3368*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m2857348178_gshared/* 3369*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m444896877_gshared/* 3370*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m3153658436_gshared/* 3371*/, (Il2CppMethodPointer)&Collection_1_Add_m1287729225_gshared/* 3372*/, (Il2CppMethodPointer)&Collection_1_Clear_m4277830205_gshared/* 3373*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m3446813399_gshared/* 3374*/, (Il2CppMethodPointer)&Collection_1_Contains_m104325011_gshared/* 3375*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m3960508929_gshared/* 3376*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m1417525918_gshared/* 3377*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m1939184889_gshared/* 3378*/, (Il2CppMethodPointer)&Collection_1_Insert_m3041550124_gshared/* 3379*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m2646054899_gshared/* 3380*/, (Il2CppMethodPointer)&Collection_1_Remove_m1798559666_gshared/* 3381*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m3454169520_gshared/* 3382*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m2565709010_gshared/* 3383*/, (Il2CppMethodPointer)&Collection_1_get_Count_m3398138634_gshared/* 3384*/, (Il2CppMethodPointer)&Collection_1_get_Item_m853386420_gshared/* 3385*/, (Il2CppMethodPointer)&Collection_1_set_Item_m1223389833_gshared/* 3386*/, (Il2CppMethodPointer)&Collection_1_SetItem_m743789492_gshared/* 3387*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m4107344143_gshared/* 3388*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m49676267_gshared/* 3389*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m1981549411_gshared/* 3390*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m1020109595_gshared/* 3391*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m218241296_gshared/* 3392*/, (Il2CppMethodPointer)&Collection_1__ctor_m2877526632_gshared/* 3393*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2310647315_gshared/* 3394*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m3634566396_gshared/* 3395*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m3501062047_gshared/* 3396*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m2101501424_gshared/* 3397*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m1897568526_gshared/* 3398*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m1950953062_gshared/* 3399*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m3259603871_gshared/* 3400*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1635106967_gshared/* 3401*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m1552283608_gshared/* 3402*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m1079933526_gshared/* 3403*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m3946690039_gshared/* 3404*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m98943364_gshared/* 3405*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m4028692259_gshared/* 3406*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m1304348310_gshared/* 3407*/, (Il2CppMethodPointer)&Collection_1_Add_m3912369843_gshared/* 3408*/, (Il2CppMethodPointer)&Collection_1_Clear_m445145071_gshared/* 3409*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m4268731177_gshared/* 3410*/, (Il2CppMethodPointer)&Collection_1_Contains_m4154862785_gshared/* 3411*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m2849468407_gshared/* 3412*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m342981132_gshared/* 3413*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m982392499_gshared/* 3414*/, (Il2CppMethodPointer)&Collection_1_Insert_m3109089306_gshared/* 3415*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m1225429801_gshared/* 3416*/, (Il2CppMethodPointer)&Collection_1_Remove_m3602697996_gshared/* 3417*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m2830794054_gshared/* 3418*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m3509243296_gshared/* 3419*/, (Il2CppMethodPointer)&Collection_1_get_Count_m4080271760_gshared/* 3420*/, (Il2CppMethodPointer)&Collection_1_get_Item_m3041416970_gshared/* 3421*/, (Il2CppMethodPointer)&Collection_1_set_Item_m931801075_gshared/* 3422*/, (Il2CppMethodPointer)&Collection_1_SetItem_m3715941382_gshared/* 3423*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m2164075061_gshared/* 3424*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m3057301945_gshared/* 3425*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m1820193045_gshared/* 3426*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m1260165421_gshared/* 3427*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m3428067414_gshared/* 3428*/, (Il2CppMethodPointer)&Collection_1__ctor_m824713192_gshared/* 3429*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m258949859_gshared/* 3430*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m1530034228_gshared/* 3431*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m357926791_gshared/* 3432*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m2091889616_gshared/* 3433*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m3870109702_gshared/* 3434*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m4103700798_gshared/* 3435*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m1564892471_gshared/* 3436*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m2275830295_gshared/* 3437*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m4268731816_gshared/* 3438*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m2157752542_gshared/* 3439*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m2204750039_gshared/* 3440*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m1235612188_gshared/* 3441*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m2836259259_gshared/* 3442*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m1144252646_gshared/* 3443*/, (Il2CppMethodPointer)&Collection_1_Add_m74004467_gshared/* 3444*/, (Il2CppMethodPointer)&Collection_1_Clear_m902663591_gshared/* 3445*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m693003625_gshared/* 3446*/, (Il2CppMethodPointer)&Collection_1_Contains_m643401393_gshared/* 3447*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m2830694815_gshared/* 3448*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m2569672788_gshared/* 3449*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m3343330387_gshared/* 3450*/, (Il2CppMethodPointer)&Collection_1_Insert_m4010554762_gshared/* 3451*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m1073626529_gshared/* 3452*/, (Il2CppMethodPointer)&Collection_1_Remove_m2017992820_gshared/* 3453*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m3860546430_gshared/* 3454*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m1406181352_gshared/* 3455*/, (Il2CppMethodPointer)&Collection_1_get_Count_m804306016_gshared/* 3456*/, (Il2CppMethodPointer)&Collection_1_get_Item_m4215988522_gshared/* 3457*/, (Il2CppMethodPointer)&Collection_1_set_Item_m2966269643_gshared/* 3458*/, (Il2CppMethodPointer)&Collection_1_SetItem_m2707773254_gshared/* 3459*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m1598831189_gshared/* 3460*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m2563496281_gshared/* 3461*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m3938993573_gshared/* 3462*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m278383949_gshared/* 3463*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m3675221982_gshared/* 3464*/, (Il2CppMethodPointer)&Collection_1__ctor_m280610349_gshared/* 3465*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m332578650_gshared/* 3466*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m2173992613_gshared/* 3467*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m2964241726_gshared/* 3468*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m1668787801_gshared/* 3469*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m201332997_gshared/* 3470*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m1845921895_gshared/* 3471*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m1413704304_gshared/* 3472*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1300727994_gshared/* 3473*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m1375670137_gshared/* 3474*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m3954909253_gshared/* 3475*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m645437336_gshared/* 3476*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m4005091053_gshared/* 3477*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m1122792492_gshared/* 3478*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m1771213311_gshared/* 3479*/, (Il2CppMethodPointer)&Collection_1_Add_m3780991772_gshared/* 3480*/, (Il2CppMethodPointer)&Collection_1_Clear_m1781213416_gshared/* 3481*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m4012342966_gshared/* 3482*/, (Il2CppMethodPointer)&Collection_1_Contains_m1999290510_gshared/* 3483*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m2609841924_gshared/* 3484*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m3988846785_gshared/* 3485*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m3205002734_gshared/* 3486*/, (Il2CppMethodPointer)&Collection_1_Insert_m546633447_gshared/* 3487*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m2280405802_gshared/* 3488*/, (Il2CppMethodPointer)&Collection_1_Remove_m2358120395_gshared/* 3489*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m3837863139_gshared/* 3490*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m4050404863_gshared/* 3491*/, (Il2CppMethodPointer)&Collection_1_get_Count_m2168572537_gshared/* 3492*/, (Il2CppMethodPointer)&Collection_1_get_Item_m3791221403_gshared/* 3493*/, (Il2CppMethodPointer)&Collection_1_set_Item_m3440986310_gshared/* 3494*/, (Il2CppMethodPointer)&Collection_1_SetItem_m546457615_gshared/* 3495*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m1082009684_gshared/* 3496*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m2559468638_gshared/* 3497*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m732350052_gshared/* 3498*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m1366278230_gshared/* 3499*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m499196375_gshared/* 3500*/, (Il2CppMethodPointer)&Collection_1__ctor_m2803866674_gshared/* 3501*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m673880345_gshared/* 3502*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m1503676394_gshared/* 3503*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m1452790461_gshared/* 3504*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m640532794_gshared/* 3505*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m2730731556_gshared/* 3506*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m1461992904_gshared/* 3507*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m1511106741_gshared/* 3508*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m1898663061_gshared/* 3509*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m3261717850_gshared/* 3510*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m1145246314_gshared/* 3511*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m3252091801_gshared/* 3512*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m2316991470_gshared/* 3513*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m287847793_gshared/* 3514*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m3257045604_gshared/* 3515*/, (Il2CppMethodPointer)&Collection_1_Add_m476333057_gshared/* 3516*/, (Il2CppMethodPointer)&Collection_1_Clear_m1950842157_gshared/* 3517*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m1649070779_gshared/* 3518*/, (Il2CppMethodPointer)&Collection_1_Contains_m1283318831_gshared/* 3519*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m3463167433_gshared/* 3520*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m3806968838_gshared/* 3521*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m1982527469_gshared/* 3522*/, (Il2CppMethodPointer)&Collection_1_Insert_m4278832780_gshared/* 3523*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m707141967_gshared/* 3524*/, (Il2CppMethodPointer)&Collection_1_Remove_m2859467914_gshared/* 3525*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m2471647752_gshared/* 3526*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m2272047354_gshared/* 3527*/, (Il2CppMethodPointer)&Collection_1_get_Count_m785673946_gshared/* 3528*/, (Il2CppMethodPointer)&Collection_1_get_Item_m794668022_gshared/* 3529*/, (Il2CppMethodPointer)&Collection_1_set_Item_m3169051009_gshared/* 3530*/, (Il2CppMethodPointer)&Collection_1_SetItem_m1360166612_gshared/* 3531*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m404831699_gshared/* 3532*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m246573059_gshared/* 3533*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m3203250655_gshared/* 3534*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m971497175_gshared/* 3535*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m1280898648_gshared/* 3536*/, (Il2CppMethodPointer)&Collection_1__ctor_m1391736395_gshared/* 3537*/, (Il2CppMethodPointer)&Collection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m356644320_gshared/* 3538*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_CopyTo_m4082149895_gshared/* 3539*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IEnumerable_GetEnumerator_m4174600764_gshared/* 3540*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Add_m2465313687_gshared/* 3541*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Contains_m3229099071_gshared/* 3542*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_IndexOf_m277631909_gshared/* 3543*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Insert_m435904526_gshared/* 3544*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_Remove_m2686870640_gshared/* 3545*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_IsSynchronized_m2134448703_gshared/* 3546*/, (Il2CppMethodPointer)&Collection_1_System_Collections_ICollection_get_SyncRoot_m2871804519_gshared/* 3547*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsFixedSize_m1382816922_gshared/* 3548*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_IsReadOnly_m456424563_gshared/* 3549*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_get_Item_m1995028750_gshared/* 3550*/, (Il2CppMethodPointer)&Collection_1_System_Collections_IList_set_Item_m1553863349_gshared/* 3551*/, (Il2CppMethodPointer)&Collection_1_Add_m813799802_gshared/* 3552*/, (Il2CppMethodPointer)&Collection_1_Clear_m2820045022_gshared/* 3553*/, (Il2CppMethodPointer)&Collection_1_ClearItems_m2476407724_gshared/* 3554*/, (Il2CppMethodPointer)&Collection_1_Contains_m572221384_gshared/* 3555*/, (Il2CppMethodPointer)&Collection_1_CopyTo_m42272870_gshared/* 3556*/, (Il2CppMethodPointer)&Collection_1_GetEnumerator_m2294350815_gshared/* 3557*/, (Il2CppMethodPointer)&Collection_1_IndexOf_m4198354032_gshared/* 3558*/, (Il2CppMethodPointer)&Collection_1_Insert_m1489311409_gshared/* 3559*/, (Il2CppMethodPointer)&Collection_1_InsertItem_m724820684_gshared/* 3560*/, (Il2CppMethodPointer)&Collection_1_Remove_m3355928137_gshared/* 3561*/, (Il2CppMethodPointer)&Collection_1_RemoveAt_m1714549893_gshared/* 3562*/, (Il2CppMethodPointer)&Collection_1_RemoveItem_m1606402057_gshared/* 3563*/, (Il2CppMethodPointer)&Collection_1_get_Count_m727437623_gshared/* 3564*/, (Il2CppMethodPointer)&Collection_1_get_Item_m310799569_gshared/* 3565*/, (Il2CppMethodPointer)&Collection_1_set_Item_m3254085220_gshared/* 3566*/, (Il2CppMethodPointer)&Collection_1_SetItem_m403816581_gshared/* 3567*/, (Il2CppMethodPointer)&Collection_1_IsValidItem_m2247536214_gshared/* 3568*/, (Il2CppMethodPointer)&Collection_1_ConvertItem_m3941916604_gshared/* 3569*/, (Il2CppMethodPointer)&Collection_1_CheckWritable_m2105306330_gshared/* 3570*/, (Il2CppMethodPointer)&Collection_1_IsSynchronized_m3100213596_gshared/* 3571*/, (Il2CppMethodPointer)&Collection_1_IsFixedSize_m304327897_gshared/* 3572*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m1954392161_gshared/* 3573*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m572380027_gshared/* 3574*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m147484303_gshared/* 3575*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m1261508920_gshared/* 3576*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m332075262_gshared/* 3577*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m1592158292_gshared/* 3578*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1989437080_gshared/* 3579*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1532495847_gshared/* 3580*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1251192075_gshared/* 3581*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m1170021578_gshared/* 3582*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m3105529063_gshared/* 3583*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m4111569886_gshared/* 3584*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m3928905452_gshared/* 3585*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m2320811592_gshared/* 3586*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3499979880_gshared/* 3587*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m1130110335_gshared/* 3588*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m2638959775_gshared/* 3589*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m1101606769_gshared/* 3590*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m1518595654_gshared/* 3591*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2702046016_gshared/* 3592*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1449825959_gshared/* 3593*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3043542810_gshared/* 3594*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m3677233651_gshared/* 3595*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1233322304_gshared/* 3596*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m1800950533_gshared/* 3597*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m2966309343_gshared/* 3598*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m900113698_gshared/* 3599*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m3753722947_gshared/* 3600*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m1555675278_gshared/* 3601*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m1402893004_gshared/* 3602*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m1646338777_gshared/* 3603*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2039498095_gshared/* 3604*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m388357963_gshared/* 3605*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m1806207944_gshared/* 3606*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3358595294_gshared/* 3607*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m352618588_gshared/* 3608*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2394308736_gshared/* 3609*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1769983091_gshared/* 3610*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1457517975_gshared/* 3611*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m406069566_gshared/* 3612*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m2739298075_gshared/* 3613*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m2333231354_gshared/* 3614*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m1704696544_gshared/* 3615*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m1633768124_gshared/* 3616*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3466286536_gshared/* 3617*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m276668235_gshared/* 3618*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m1705518883_gshared/* 3619*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m525136953_gshared/* 3620*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m162628114_gshared/* 3621*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m3373229908_gshared/* 3622*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m158012227_gshared/* 3623*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m754885222_gshared/* 3624*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m375043207_gshared/* 3625*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m3603878768_gshared/* 3626*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m2306259645_gshared/* 3627*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m1099920083_gshared/* 3628*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m1232423838_gshared/* 3629*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m3738093351_gshared/* 3630*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m1203010282_gshared/* 3631*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m1909688500_gshared/* 3632*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m3631866590_gshared/* 3633*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m500367370_gshared/* 3634*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3567018366_gshared/* 3635*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m109972123_gshared/* 3636*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3503689987_gshared/* 3637*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m3335151847_gshared/* 3638*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2627096795_gshared/* 3639*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m25653560_gshared/* 3640*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2261384768_gshared/* 3641*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m90405417_gshared/* 3642*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m4244142392_gshared/* 3643*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m527174473_gshared/* 3644*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m3006875897_gshared/* 3645*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m1472898377_gshared/* 3646*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m2332740791_gshared/* 3647*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m3679749778_gshared/* 3648*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m1743441024_gshared/* 3649*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2459290100_gshared/* 3650*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2987885125_gshared/* 3651*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m784229325_gshared/* 3652*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m2568100242_gshared/* 3653*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3772083849_gshared/* 3654*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m378281456_gshared/* 3655*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m3614691999_gshared/* 3656*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m1895759124_gshared/* 3657*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m1342318446_gshared/* 3658*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m2458478577_gshared/* 3659*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m4259615576_gshared/* 3660*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m1977104809_gshared/* 3661*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m2467004527_gshared/* 3662*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m2364452928_gshared/* 3663*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3016584728_gshared/* 3664*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3686017508_gshared/* 3665*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m506525809_gshared/* 3666*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m402629201_gshared/* 3667*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m1731148677_gshared/* 3668*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2574501849_gshared/* 3669*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1729178394_gshared/* 3670*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3561954522_gshared/* 3671*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m318855319_gshared/* 3672*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1401363518_gshared/* 3673*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m3178501591_gshared/* 3674*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m3630436103_gshared/* 3675*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m324163567_gshared/* 3676*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3611583109_gshared/* 3677*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m3359366916_gshared/* 3678*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m2668898250_gshared/* 3679*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3237556482_gshared/* 3680*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2170447775_gshared/* 3681*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m4166050747_gshared/* 3682*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1804683472_gshared/* 3683*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m37490227_gshared/* 3684*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m3478051566_gshared/* 3685*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1943202745_gshared/* 3686*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m2768780778_gshared/* 3687*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m3718256764_gshared/* 3688*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m1032006023_gshared/* 3689*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m4125296794_gshared/* 3690*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m2010523671_gshared/* 3691*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m1760104285_gshared/* 3692*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m1539890895_gshared/* 3693*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1551974917_gshared/* 3694*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m519653833_gshared/* 3695*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m2456642944_gshared/* 3696*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3751131234_gshared/* 3697*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2137782652_gshared/* 3698*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m4108352242_gshared/* 3699*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1099846173_gshared/* 3700*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3508872969_gshared/* 3701*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m4169787258_gshared/* 3702*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m3417721261_gshared/* 3703*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m3065652010_gshared/* 3704*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m1751509776_gshared/* 3705*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m3508431156_gshared/* 3706*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3232551672_gshared/* 3707*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m2659121605_gshared/* 3708*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m2779327941_gshared/* 3709*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3004588099_gshared/* 3710*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m2344337514_gshared/* 3711*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2779904122_gshared/* 3712*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m465187273_gshared/* 3713*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3531246526_gshared/* 3714*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m3472752385_gshared/* 3715*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1272038804_gshared/* 3716*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m1656472127_gshared/* 3717*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m3277805657_gshared/* 3718*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m713393110_gshared/* 3719*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m3054637117_gshared/* 3720*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m2180604490_gshared/* 3721*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m724340838_gshared/* 3722*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m3532148437_gshared/* 3723*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1138306067_gshared/* 3724*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m1147417863_gshared/* 3725*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m1259068750_gshared/* 3726*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m1060547576_gshared/* 3727*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2210507818_gshared/* 3728*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1215755942_gshared/* 3729*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m257196015_gshared/* 3730*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1280561739_gshared/* 3731*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m1129689124_gshared/* 3732*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m342729111_gshared/* 3733*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m224184952_gshared/* 3734*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m1918003010_gshared/* 3735*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m3707723158_gshared/* 3736*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m4203085614_gshared/* 3737*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m3650067527_gshared/* 3738*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m2350545199_gshared/* 3739*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2396335261_gshared/* 3740*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m59103888_gshared/* 3741*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m1577944046_gshared/* 3742*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1563258303_gshared/* 3743*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m4048508940_gshared/* 3744*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m2896192331_gshared/* 3745*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m2206229246_gshared/* 3746*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m267119689_gshared/* 3747*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m3865292431_gshared/* 3748*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m2315871588_gshared/* 3749*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m868920811_gshared/* 3750*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m329772104_gshared/* 3751*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m3471709410_gshared/* 3752*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m1419645665_gshared/* 3753*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2328364475_gshared/* 3754*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m1785953911_gshared/* 3755*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m4216310986_gshared/* 3756*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m1342418180_gshared/* 3757*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2955858126_gshared/* 3758*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1043133762_gshared/* 3759*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m3447198503_gshared/* 3760*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2197226755_gshared/* 3761*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m185585668_gshared/* 3762*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m4248982967_gshared/* 3763*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m88481520_gshared/* 3764*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m2240307498_gshared/* 3765*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m673434054_gshared/* 3766*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m2071241978_gshared/* 3767*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m1882335319_gshared/* 3768*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m225317735_gshared/* 3769*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3760970257_gshared/* 3770*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m3127987432_gshared/* 3771*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2300639166_gshared/* 3772*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1559726679_gshared/* 3773*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m823169068_gshared/* 3774*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m809154283_gshared/* 3775*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1377990618_gshared/* 3776*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m3936562733_gshared/* 3777*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m3099014815_gshared/* 3778*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m1782241364_gshared/* 3779*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m3774411091_gshared/* 3780*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m2082329264_gshared/* 3781*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m2581990262_gshared/* 3782*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m1786989483_gshared/* 3783*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1173143793_gshared/* 3784*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3724457061_gshared/* 3785*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m3054305464_gshared/* 3786*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m2957273994_gshared/* 3787*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m878653284_gshared/* 3788*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m4056831384_gshared/* 3789*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m3046138769_gshared/* 3790*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m622501365_gshared/* 3791*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m2324257114_gshared/* 3792*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1557552869_gshared/* 3793*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m3806843030_gshared/* 3794*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m2632477376_gshared/* 3795*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m927375828_gshared/* 3796*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m1450905824_gshared/* 3797*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m3936197025_gshared/* 3798*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m3878418841_gshared/* 3799*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2372993063_gshared/* 3800*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m4063596282_gshared/* 3801*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m325658132_gshared/* 3802*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m2892453085_gshared/* 3803*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m1761907646_gshared/* 3804*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m1667570241_gshared/* 3805*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1912029068_gshared/* 3806*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m867570235_gshared/* 3807*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m1652036789_gshared/* 3808*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m2986037858_gshared/* 3809*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m1205990061_gshared/* 3810*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m1104075286_gshared/* 3811*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m1696267180_gshared/* 3812*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m2387481411_gshared/* 3813*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3063178201_gshared/* 3814*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m2503787861_gshared/* 3815*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m395145896_gshared/* 3816*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m356890538_gshared/* 3817*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m3058697372_gshared/* 3818*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m2319062584_gshared/* 3819*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1918537449_gshared/* 3820*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m2873538493_gshared/* 3821*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m1807854698_gshared/* 3822*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m339327173_gshared/* 3823*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m564769262_gshared/* 3824*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m3127376744_gshared/* 3825*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m3533985860_gshared/* 3826*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3716660032_gshared/* 3827*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m2971455841_gshared/* 3828*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m688362945_gshared/* 3829*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m1207420111_gshared/* 3830*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m628935618_gshared/* 3831*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2701391220_gshared/* 3832*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m1921059509_gshared/* 3833*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m3872065502_gshared/* 3834*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m887129009_gshared/* 3835*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m1149349508_gshared/* 3836*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m61178035_gshared/* 3837*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m154326197_gshared/* 3838*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m4168861394_gshared/* 3839*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m2471343701_gshared/* 3840*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m2564472926_gshared/* 3841*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m1616882548_gshared/* 3842*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m1520759010_gshared/* 3843*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m3709183314_gshared/* 3844*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m3157895454_gshared/* 3845*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m2811860789_gshared/* 3846*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m974176789_gshared/* 3847*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m3794195337_gshared/* 3848*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m1581328221_gshared/* 3849*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m1524777008_gshared/* 3850*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m465108000_gshared/* 3851*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m4126742951_gshared/* 3852*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1734360860_gshared/* 3853*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m616574295_gshared/* 3854*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m1858417639_gshared/* 3855*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m2634528543_gshared/* 3856*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m1302341061_gshared/* 3857*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m3748573134_gshared/* 3858*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m3710292720_gshared/* 3859*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m1598516528_gshared/* 3860*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m191878399_gshared/* 3861*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m3194953447_gshared/* 3862*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m4228898522_gshared/* 3863*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m1358824019_gshared/* 3864*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m1831743662_gshared/* 3865*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m4259124821_gshared/* 3866*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m1816350632_gshared/* 3867*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m679313638_gshared/* 3868*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m450181087_gshared/* 3869*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m723866064_gshared/* 3870*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m336636247_gshared/* 3871*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m3656051313_gshared/* 3872*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m3947957789_gshared/* 3873*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m1849306263_gshared/* 3874*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m2412307011_gshared/* 3875*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m2409570138_gshared/* 3876*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m3672130932_gshared/* 3877*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m2749215790_gshared/* 3878*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m3130422200_gshared/* 3879*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m3663361643_gshared/* 3880*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m1151964895_gshared/* 3881*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m944036076_gshared/* 3882*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1732315419_gshared/* 3883*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m4058186040_gshared/* 3884*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m2600246370_gshared/* 3885*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m1545447998_gshared/* 3886*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m3863477414_gshared/* 3887*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m2651065875_gshared/* 3888*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m2200089035_gshared/* 3889*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m2253306805_gshared/* 3890*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m1670521312_gshared/* 3891*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m536709516_gshared/* 3892*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m3502773339_gshared/* 3893*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m632912084_gshared/* 3894*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m1151103091_gshared/* 3895*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m3763290810_gshared/* 3896*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m3502838601_gshared/* 3897*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m2404198955_gshared/* 3898*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m2481390116_gshared/* 3899*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m224962127_gshared/* 3900*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m1052601528_gshared/* 3901*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m3778245964_gshared/* 3902*/, (Il2CppMethodPointer)&ReadOnlyCollection_1__ctor_m3868625988_gshared/* 3903*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Add_m2043670000_gshared/* 3904*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Clear_m964488020_gshared/* 3905*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_Insert_m584948331_gshared/* 3906*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_Remove_m315673811_gshared/* 3907*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_RemoveAt_m1709695463_gshared/* 3908*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_get_Item_m4254912039_gshared/* 3909*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_IListU3CTU3E_set_Item_m338788498_gshared/* 3910*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m3726550170_gshared/* 3911*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_CopyTo_m504416581_gshared/* 3912*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IEnumerable_GetEnumerator_m1583760158_gshared/* 3913*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Add_m3775358745_gshared/* 3914*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Clear_m38663429_gshared/* 3915*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Contains_m4073811941_gshared/* 3916*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_IndexOf_m360011399_gshared/* 3917*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Insert_m571902768_gshared/* 3918*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_Remove_m2507730234_gshared/* 3919*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_RemoveAt_m3967262286_gshared/* 3920*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_IsSynchronized_m3058846777_gshared/* 3921*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_ICollection_get_SyncRoot_m2595377349_gshared/* 3922*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsFixedSize_m3611810264_gshared/* 3923*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_IsReadOnly_m732822989_gshared/* 3924*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_get_Item_m3649741260_gshared/* 3925*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_System_Collections_IList_set_Item_m2810776479_gshared/* 3926*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_Contains_m3547015534_gshared/* 3927*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_CopyTo_m896515972_gshared/* 3928*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_GetEnumerator_m2144677057_gshared/* 3929*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_IndexOf_m4025482062_gshared/* 3930*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Count_m1778049945_gshared/* 3931*/, (Il2CppMethodPointer)&ReadOnlyCollection_1_get_Item_m3355831099_gshared/* 3932*/, (Il2CppMethodPointer)&Comparison_1__ctor_m1385856818_gshared/* 3933*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m1638248750_gshared/* 3934*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m1384288579_gshared/* 3935*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m4001365168_gshared/* 3936*/, (Il2CppMethodPointer)&Comparison_1__ctor_m3745606970_gshared/* 3937*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m64450954_gshared/* 3938*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m2863910783_gshared/* 3939*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m596328912_gshared/* 3940*/, (Il2CppMethodPointer)&Comparison_1__ctor_m4259527427_gshared/* 3941*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m1513132985_gshared/* 3942*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m1549337842_gshared/* 3943*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m179917407_gshared/* 3944*/, (Il2CppMethodPointer)&Comparison_1__ctor_m2713846449_gshared/* 3945*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m2155124615_gshared/* 3946*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m1256831960_gshared/* 3947*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m694528669_gshared/* 3948*/, (Il2CppMethodPointer)&Comparison_1__ctor_m2942822710_gshared/* 3949*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m4190993814_gshared/* 3950*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m3266062717_gshared/* 3951*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m2033936832_gshared/* 3952*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m345024424_gshared/* 3953*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m2263530995_gshared/* 3954*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m4098579094_gshared/* 3955*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m1670081898_gshared/* 3956*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m2330243615_gshared/* 3957*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m3762228136_gshared/* 3958*/, (Il2CppMethodPointer)&Comparison_1__ctor_m3767256160_gshared/* 3959*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m2645957248_gshared/* 3960*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m2910474027_gshared/* 3961*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m4170692898_gshared/* 3962*/, (Il2CppMethodPointer)&Comparison_1__ctor_m1832890678_gshared/* 3963*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m353639462_gshared/* 3964*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m4142385273_gshared/* 3965*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m4174686984_gshared/* 3966*/, (Il2CppMethodPointer)&Comparison_1__ctor_m852795630_gshared/* 3967*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m897835902_gshared/* 3968*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m4224593217_gshared/* 3969*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m1074531304_gshared/* 3970*/, (Il2CppMethodPointer)&Comparison_1__ctor_m883164393_gshared/* 3971*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m2664841287_gshared/* 3972*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m4030535530_gshared/* 3973*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m153558673_gshared/* 3974*/, (Il2CppMethodPointer)&Comparison_1__ctor_m3438229060_gshared/* 3975*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m4047872872_gshared/* 3976*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m1103040431_gshared/* 3977*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m2678763282_gshared/* 3978*/, (Il2CppMethodPointer)&Comparison_1__ctor_m2159122699_gshared/* 3979*/, (Il2CppMethodPointer)&Comparison_1_Invoke_m1081247749_gshared/* 3980*/, (Il2CppMethodPointer)&Comparison_1_BeginInvoke_m4056757384_gshared/* 3981*/, (Il2CppMethodPointer)&Comparison_1_EndInvoke_m3572773391_gshared/* 3982*/, (Il2CppMethodPointer)&Func_2_Invoke_m2968608789_gshared/* 3983*/, (Il2CppMethodPointer)&Func_2_BeginInvoke_m1429757044_gshared/* 3984*/, (Il2CppMethodPointer)&Func_2_EndInvoke_m924416567_gshared/* 3985*/, (Il2CppMethodPointer)&Func_2_BeginInvoke_m669892004_gshared/* 3986*/, (Il2CppMethodPointer)&Func_2_EndInvoke_m971580865_gshared/* 3987*/, (Il2CppMethodPointer)&Nullable_1_Equals_m3860982732_AdjustorThunk/* 3988*/, (Il2CppMethodPointer)&Nullable_1_Equals_m1889119397_AdjustorThunk/* 3989*/, (Il2CppMethodPointer)&Nullable_1_GetHashCode_m1791015856_AdjustorThunk/* 3990*/, (Il2CppMethodPointer)&Nullable_1_ToString_m1238126148_AdjustorThunk/* 3991*/, (Il2CppMethodPointer)&Predicate_1__ctor_m2826800414_gshared/* 3992*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m695569038_gshared/* 3993*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m2559992383_gshared/* 3994*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m1202813828_gshared/* 3995*/, (Il2CppMethodPointer)&Predicate_1__ctor_m1767993638_gshared/* 3996*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m527131606_gshared/* 3997*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m1448216027_gshared/* 3998*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m215026240_gshared/* 3999*/, (Il2CppMethodPointer)&Predicate_1__ctor_m1292402863_gshared/* 4000*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m2060780095_gshared/* 4001*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m1856151290_gshared/* 4002*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m259774785_gshared/* 4003*/, (Il2CppMethodPointer)&Predicate_1__ctor_m541404361_gshared/* 4004*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m744913181_gshared/* 4005*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m2336395304_gshared/* 4006*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m1604508263_gshared/* 4007*/, (Il2CppMethodPointer)&Predicate_1__ctor_m3811123782_gshared/* 4008*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m122788314_gshared/* 4009*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m2959352225_gshared/* 4010*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m924884444_gshared/* 4011*/, (Il2CppMethodPointer)&Predicate_1__ctor_m1567825400_gshared/* 4012*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m3860206640_gshared/* 4013*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m4068629879_gshared/* 4014*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m973058386_gshared/* 4015*/, (Il2CppMethodPointer)&Predicate_1__ctor_m1020292372_gshared/* 4016*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m3539717340_gshared/* 4017*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m3056726495_gshared/* 4018*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m2354180346_gshared/* 4019*/, (Il2CppMethodPointer)&Predicate_1__ctor_m784266182_gshared/* 4020*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m577088274_gshared/* 4021*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m2329589669_gshared/* 4022*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m3442731496_gshared/* 4023*/, (Il2CppMethodPointer)&Predicate_1__ctor_m549279630_gshared/* 4024*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m2883675618_gshared/* 4025*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m3926587117_gshared/* 4026*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m337889472_gshared/* 4027*/, (Il2CppMethodPointer)&Predicate_1__ctor_m2863314033_gshared/* 4028*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m3001657933_gshared/* 4029*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m866207434_gshared/* 4030*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m3406729927_gshared/* 4031*/, (Il2CppMethodPointer)&Predicate_1__ctor_m3243601712_gshared/* 4032*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m2775223656_gshared/* 4033*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m1764756107_gshared/* 4034*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m1035116514_gshared/* 4035*/, (Il2CppMethodPointer)&Predicate_1__ctor_m2995226103_gshared/* 4036*/, (Il2CppMethodPointer)&Predicate_1_Invoke_m2407726575_gshared/* 4037*/, (Il2CppMethodPointer)&Predicate_1_BeginInvoke_m2425667920_gshared/* 4038*/, (Il2CppMethodPointer)&Predicate_1_EndInvoke_m2420144145_gshared/* 4039*/, (Il2CppMethodPointer)&CachedInvokableCall_1_Invoke_m3247299909_gshared/* 4040*/, (Il2CppMethodPointer)&CachedInvokableCall_1_Invoke_m2815073919_gshared/* 4041*/, (Il2CppMethodPointer)&CachedInvokableCall_1_Invoke_m4097553971_gshared/* 4042*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m874046876_gshared/* 4043*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m2693793190_gshared/* 4044*/, (Il2CppMethodPointer)&InvokableCall_1_add_Delegate_m3048312905_gshared/* 4045*/, (Il2CppMethodPointer)&InvokableCall_1_remove_Delegate_m1481038152_gshared/* 4046*/, (Il2CppMethodPointer)&InvokableCall_1_Invoke_m769918017_gshared/* 4047*/, (Il2CppMethodPointer)&InvokableCall_1_Find_m951110817_gshared/* 4048*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m231935020_gshared/* 4049*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m563785030_gshared/* 4050*/, (Il2CppMethodPointer)&InvokableCall_1_add_Delegate_m3068046591_gshared/* 4051*/, (Il2CppMethodPointer)&InvokableCall_1_remove_Delegate_m3070410248_gshared/* 4052*/, (Il2CppMethodPointer)&InvokableCall_1_Invoke_m428957899_gshared/* 4053*/, (Il2CppMethodPointer)&InvokableCall_1_Find_m2775216619_gshared/* 4054*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m4078762228_gshared/* 4055*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m121193486_gshared/* 4056*/, (Il2CppMethodPointer)&InvokableCall_1_add_Delegate_m3251799843_gshared/* 4057*/, (Il2CppMethodPointer)&InvokableCall_1_remove_Delegate_m1744559252_gshared/* 4058*/, (Il2CppMethodPointer)&InvokableCall_1_Invoke_m4090512311_gshared/* 4059*/, (Il2CppMethodPointer)&InvokableCall_1_Find_m678413071_gshared/* 4060*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m983088749_gshared/* 4061*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m3755016325_gshared/* 4062*/, (Il2CppMethodPointer)&InvokableCall_1_add_Delegate_m705395724_gshared/* 4063*/, (Il2CppMethodPointer)&InvokableCall_1_remove_Delegate_m3576859071_gshared/* 4064*/, (Il2CppMethodPointer)&InvokableCall_1_Invoke_m2424028974_gshared/* 4065*/, (Il2CppMethodPointer)&InvokableCall_1_Find_m1941574338_gshared/* 4066*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m2837611051_gshared/* 4067*/, (Il2CppMethodPointer)&InvokableCall_1__ctor_m866952903_gshared/* 4068*/, (Il2CppMethodPointer)&InvokableCall_1_add_Delegate_m1013059220_gshared/* 4069*/, (Il2CppMethodPointer)&InvokableCall_1_remove_Delegate_m3619329377_gshared/* 4070*/, (Il2CppMethodPointer)&InvokableCall_1_Invoke_m3239892614_gshared/* 4071*/, (Il2CppMethodPointer)&InvokableCall_1_Find_m4182726010_gshared/* 4072*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m3523417209_gshared/* 4073*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m2512011642_gshared/* 4074*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m3317901367_gshared/* 4075*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m25541871_gshared/* 4076*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m2563101999_gshared/* 4077*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m530778538_gshared/* 4078*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m1662218393_gshared/* 4079*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m2563206587_gshared/* 4080*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m4162767106_gshared/* 4081*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m3175338521_gshared/* 4082*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m2771701188_gshared/* 4083*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m2192647899_gshared/* 4084*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m2603848420_gshared/* 4085*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m2627946124_gshared/* 4086*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m2974933271_gshared/* 4087*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m3641222126_gshared/* 4088*/, (Il2CppMethodPointer)&UnityAction_1__ctor_m1266646666_gshared/* 4089*/, (Il2CppMethodPointer)&UnityAction_1_Invoke_m2702242020_gshared/* 4090*/, (Il2CppMethodPointer)&UnityAction_1_BeginInvoke_m4083379797_gshared/* 4091*/, (Il2CppMethodPointer)&UnityAction_1_EndInvoke_m539982532_gshared/* 4092*/, (Il2CppMethodPointer)&UnityAction_2__ctor_m2684626998_gshared/* 4093*/, (Il2CppMethodPointer)&UnityAction_2_BeginInvoke_m2528278652_gshared/* 4094*/, (Il2CppMethodPointer)&UnityAction_2_EndInvoke_m1593881300_gshared/* 4095*/, (Il2CppMethodPointer)&UnityAction_2__ctor_m2892452633_gshared/* 4096*/, (Il2CppMethodPointer)&UnityAction_2_BeginInvoke_m2733450299_gshared/* 4097*/, (Il2CppMethodPointer)&UnityAction_2_EndInvoke_m234106915_gshared/* 4098*/, (Il2CppMethodPointer)&UnityEvent_1_RemoveListener_m670609979_gshared/* 4099*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m1528404507_gshared/* 4100*/, (Il2CppMethodPointer)&UnityEvent_1_AddListener_m846589010_gshared/* 4101*/, (Il2CppMethodPointer)&UnityEvent_1_RemoveListener_m2851793905_gshared/* 4102*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m3475403017_gshared/* 4103*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m4062537313_gshared/* 4104*/, (Il2CppMethodPointer)&UnityEvent_1_RemoveListener_m219620396_gshared/* 4105*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m1805145148_gshared/* 4106*/, (Il2CppMethodPointer)&UnityEvent_1_AddListener_m525228415_gshared/* 4107*/, (Il2CppMethodPointer)&UnityEvent_1_RemoveListener_m4000386396_gshared/* 4108*/, (Il2CppMethodPointer)&UnityEvent_1_GetDelegate_m66964436_gshared/* 4109*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0__ctor_m1750247524_gshared/* 4110*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_MoveNext_m2339115502_gshared/* 4111*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CobjectU3E_get_Current_m1702093362_gshared/* 4112*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m4267712042_gshared/* 4113*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_Dispose_m3903217005_gshared/* 4114*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_Reset_m2580847683_gshared/* 4115*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0__ctor_m951808111_gshared/* 4116*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_MoveNext_m42377021_gshared/* 4117*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CobjectU3E_get_Current_m1821360549_gshared/* 4118*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m635744877_gshared/* 4119*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_Dispose_m1161010130_gshared/* 4120*/, (Il2CppMethodPointer)&U3CStartU3Ec__Iterator0_Reset_m1787863864_gshared/* 4121*/, (Il2CppMethodPointer)&TweenRunner_1_Start_m1160751894_gshared/* 4122*/, (Il2CppMethodPointer)&TweenRunner_1_Start_m791129861_gshared/* 4123*/, (Il2CppMethodPointer)&TweenRunner_1_StopTween_m2135918118_gshared/* 4124*/, (Il2CppMethodPointer)&ListPool_1__cctor_m408291388_gshared/* 4125*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m2151100132_gshared/* 4126*/, (Il2CppMethodPointer)&ListPool_1__cctor_m1262585838_gshared/* 4127*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m334430706_gshared/* 4128*/, (Il2CppMethodPointer)&ListPool_1__cctor_m4150135476_gshared/* 4129*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m4179519904_gshared/* 4130*/, (Il2CppMethodPointer)&ListPool_1__cctor_m709904475_gshared/* 4131*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m1243609651_gshared/* 4132*/, (Il2CppMethodPointer)&ListPool_1__cctor_m3678794464_gshared/* 4133*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m3030633432_gshared/* 4134*/, (Il2CppMethodPointer)&ListPool_1__cctor_m1474516473_gshared/* 4135*/, (Il2CppMethodPointer)&ListPool_1_U3Cs_ListPoolU3Em__0_m3090281341_gshared/* 4136*/, };
[ "dirmidante@gmail.com" ]
dirmidante@gmail.com
06013a82a0667f79472ac00fdf31baa1331375b6
766996d84cc71493deaf100f2493ee42ed0d4243
/src/ifc/ifc4/IfcSystem.h
2b968db97f8262043c78f79f86374428a7c10a77
[]
no_license
andreasniggl/ifclite
6040cd72460d401a364c4c7554f2fe3f44ee6df8
aacc8a9f0add7036c4c04eeaed7938e731726ead
refs/heads/master
2020-03-09T05:13:57.641923
2018-08-06T21:42:27
2018-08-06T21:42:27
128,607,886
3
1
null
null
null
null
UTF-8
C++
false
false
893
h
// Automatically generated by ifclite express parser from ifc4 express file - do not modify #pragma once #include "IfcTypeDefinitions.h" #include "IfcGroup.h" namespace ifc4 { class IfcSystem : public IfcGroup { public: virtual ~IfcSystem(){} explicit IfcSystem() = default; explicit IfcSystem(const IfcGloballyUniqueId& _GlobalId) : IfcGroup(_GlobalId) {} virtual std::string className() const { return "IfcSystem"; } protected: virtual void serialize(ifc::StepWriter& w) const { w.beginEntity(this); w.writeAttributeValue(GlobalId); w.writeAttributeInstance(OwnerHistory); w.writeAttributeValue(Name); w.writeAttributeValue(Description); w.writeAttributeValue(ObjectType); w.endEntity(); } }; } // namespace ifc4
[ "33835650+andreasniggl@users.noreply.github.com" ]
33835650+andreasniggl@users.noreply.github.com