91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 12.09MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-29
  • 語言: 其他
  • 標簽: opencv??

資源簡介

opencv tbb

資源截圖

代碼片段和文件信息

/*
????Copyright?2005-2010?Intel?Corporation.??All?Rights?Reserved.

????This?file?is?part?of?Threading?Building?Blocks.

????Threading?Building?Blocks?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.

????Threading?Building?Blocks?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?Threading?Building?Blocks;?if?not?write?to?the?Free?Software
????Foundation?Inc.?51?Franklin?St?Fifth?Floor?Boston?MA??02110-1301??USA

????As?a?special?exception?you?may?use?this?file?as?part?of?a?free?software
????library?without?restriction.??Specifically?if?other?files?instantiate
????templates?or?use?macros?or?inline?functions?from?this?file?or?you?compile
????this?file?and?link?it?with?other?files?to?produce?an?executable?this
????file?does?not?by?itself?cause?the?resulting?executable?to?be?covered?by
????the?GNU?General?Public?License.??This?exception?does?not?however
????invalidate?any?other?reasons?why?the?executable?file?might?be?covered?by
????the?GNU?General?Public?License.
*/

#include?“video.h“
#include?
#include?

unsigned?int?*??????????????g_pImg?=?0;
int?????????????????????????g_sizex?g_sizey;
static?video?*g_video?=?0;
static?int?g_fps?=?0;

#if?_WIN32?||?_WIN64

static?DWORD?g_msec?=?0;
#ifdef?_WINDOWS
HINSTANCE?video::win_hInstance?=?0;
int?video::win_iCmdShow?=?0;
void?video::win_set_class(WNDCLASSEX?&wcex)?{?}
void?video::win_load_accelerators(int?idc)??{?}
#endif?//_WINDOWS

#else

#include?
#include?
struct?timeval?g_time;

#endif?//_WIN32||_WIN64

video::video()
????:?red_mask(0xff0000)?red_shift(16)?green_mask(0xff00)
??????green_shift(8)?blue_mask(0xff)?blue_shift(0)?depth(24)
{
????assert(g_video?==?0);
????g_video?=?this;?title?=?“Video“;?updating?=?calc_fps?=?false;
}

bool?video::init_window(int?x?int?y)
{
????g_sizex?=?x;?g_sizey?=?y;
????g_pImg?=?new?unsigned?int[x*y];
????running?=?true;
????return?false;
}

bool?video::init_console()
{
????running?=?true;
????return?true;
}

void?video::terminate()
{
????if(calc_fps)?{
????????double?fps?=?g_fps;
#if?_WIN32?||?_WIN64
????????fps?/=?(GetTickCount()-g_msec)/1000.0;
#else
????????struct?timezone?tz;?struct?timeval?end_time;?gettimeofday(&end_time?&tz);
????????fps?/=?(end_time.tv_sec+1.0*end_time.tv_usec/1000000.0)?-?(g_time.tv_sec+1.0*g_time.tv_usec/1000000.0);
#endif
????????printf(“%s:?%.1f?fps\n“?title?fps);
?? }
????g_video?=?0;?running?=?false;
????if(g_pImg)?{?delete[]?g_pImg;?g_pImg?=?0;?}
}

video::~video()
{
????if(g_video)?terminate();
}

//!?Count?and?display?FPS?count?in?titlebar
bool?video::next_frame()
{
????if(calc_fps){
????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-04-21?14:21??tbb30_20100406oss\
?????目錄???????????0??2010-04-21?14:21??tbb30_20100406oss\include\
?????目錄???????????0??2010-04-21?14:21??tbb30_20100406oss\include\tbb\
?????目錄???????????0??2010-04-21?14:20??tbb30_20100406oss\include\tbb\compat\
?????文件????????2362??2010-04-21?14:21??tbb30_20100406oss\include\tbb\compat\ppl.h
?????文件????????1838??2010-04-21?14:21??tbb30_20100406oss\include\tbb\compat\thread
?????文件???????15142??2010-04-21?14:21??tbb30_20100406oss\include\tbb\compat\condition_variable
?????文件????????7022??2010-04-21?14:21??tbb30_20100406oss\include\tbb\task_group.h
?????文件????????7419??2010-04-21?14:21??tbb30_20100406oss\include\tbb\tbb_config.h
?????文件????????2566??2010-04-21?14:21??tbb30_20100406oss\include\tbb\tbbmalloc_proxy.h
?????文件????????2282??2010-04-21?14:21??tbb30_20100406oss\include\tbb\null_mutex.h
?????文件????????2485??2010-04-21?14:21??tbb30_20100406oss\include\tbb\null_rw_mutex.h
?????文件????????2147??2010-04-21?14:21??tbb30_20100406oss\include\tbb\aligned_space.h
?????文件???????14296??2010-04-21?14:21??tbb30_20100406oss\include\tbb\atomic.h
?????文件????????4955??2010-04-21?14:21??tbb30_20100406oss\include\tbb\blocked_range.h
?????文件????????3423??2010-04-21?14:21??tbb30_20100406oss\include\tbb\blocked_range2d.h
?????文件????????4452??2010-04-21?14:21??tbb30_20100406oss\include\tbb\blocked_range3d.h
?????文件????????5024??2010-04-21?14:21??tbb30_20100406oss\include\tbb\cache_aligned_allocator.h
?????文件???????58173??2010-04-21?14:21??tbb30_20100406oss\include\tbb\concurrent_hash_map.h
?????文件???????34460??2010-04-21?14:21??tbb30_20100406oss\include\tbb\_concurrent_queue_internal.h
?????文件???????14543??2010-04-21?14:21??tbb30_20100406oss\include\tbb\concurrent_queue.h
?????文件???????44644??2010-04-21?14:21??tbb30_20100406oss\include\tbb\concurrent_vector.h
?????文件????????4442??2010-04-21?14:21??tbb30_20100406oss\include\tbb\critical_section.h
?????文件????????7037??2010-04-21?14:21??tbb30_20100406oss\include\tbb\mutex.h
?????文件???????10147??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_for.h
?????文件????????2905??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_for_each.h
?????文件???????13906??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_invoke.h
?????文件???????18191??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_reduce.h
?????文件???????13925??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_scan.h
?????文件????????8701??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_sort.h
?????文件????????6788??2010-04-21?14:21??tbb30_20100406oss\include\tbb\parallel_while.h
............此處省略801個文件信息

評論

共有 條評論