opencv 3.1.0 源码,github上下载来的,鉴于github速度太慢,特发布,只是不能选0分。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-12-18 15:02 opencv
文件 33 2015-12-18 15:02 opencv.tgitconfig
目录 0 2015-12-18 15:02 opencv3rdparty
目录 0 2015-12-18 15:02 opencv3rdpartyffmpeg
文件 1147 2015-12-18 15:02 opencv3rdpartyffmpegffmpeg.cmake
文件 27393 2015-12-18 15:02 opencv3rdpartyffmpeglicense.txt
文件 2459 2015-12-18 15:02 opencv3rdpartyffmpeg
eadme.txt
目录 0 2015-12-18 15:02 opencv3rdpartyinclude
目录 0 2015-12-18 15:02 opencv3rdpartyincludedshow
文件 2935 2015-12-18 15:02 opencv3rdpartyincludedshow\_mingw_dxhelper.h
文件 1210 2015-12-18 15:02 opencv3rdpartyincludedshow\_mingw_unicode.h
文件 43517 2015-12-18 15:02 opencv3rdpartyincludedshowamvideo.h
文件 643 2015-12-18 15:02 opencv3rdpartyincludedshowaudevcod.h
文件 627 2015-12-18 15:02 opencv3rdpartyincludedshowdatypes.h
文件 114687 2015-12-18 15:02 opencv3rdpartyincludedshowcontrol.h
文件 159533 2015-12-18 15:02 opencv3rdpartyincludedshowddraw.h
文件 1628 2015-12-18 15:02 opencv3rdpartyincludedshowdshow.h
文件 60937 2015-12-18 15:02 opencv3rdpartyincludedshowdsound.h
文件 2156 2015-12-18 15:02 opencv3rdpartyincludedshowdvdmedia.h
文件 6579 2015-12-18 15:02 opencv3rdpartyincludedshowerrors.h
文件 1920 2015-12-18 15:02 opencv3rdpartyincludedshowevcode.h
文件 7477 2015-12-18 15:02 opencv3rdpartyincludedshowksuuids.h
文件 626764 2015-12-18 15:02 opencv3rdpartyincludedshowstrmif.h
文件 36338 2015-12-18 15:02 opencv3rdpartyincludedshowuuids.h
文件 7869 2015-12-18 15:02 opencv3rdpartyincludemsc_inttypes.h
文件 6892 2015-12-18 15:02 opencv3rdpartyincludemsc_stdint.h
目录 0 2015-12-18 15:02 opencv3rdpartyincludeopencl
目录 0 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2
目录 0 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2CL
文件 61545 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2CLcl.h
文件 277159 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2CLcl.hpp
............此处省略5645个文件信息
# -*- coding: utf-8 -*-
“““
jinja2.bccache
~~~~~~~~~~~~~~
This module implements the bytecode cache system Jinja is optionally
using. This is useful if you have very complex template situations and
the compiliation of all those templates slow down your application too
much.
Situations where this is useful are often forking web applications that
are initialized on the first request.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD.
“““
from os import path listdir
import sys
import marshal
import tempfile
import fnmatch
from hashlib import sha1
from jinja2.utils import open_if_exists
from jinja2._compat import BytesIO pickle PY2 text_type
# marshal works better on 3.x one hack less required
if not PY2:
marshal_dump = marshal.dump
marshal_load = marshal.load
else:
def marshal_dump(code f):
if isinstance(f file):
marshal.dump(code f)
else:
f.write(marshal.dumps(code))
def marshal_load(f):
if isinstance(f file):
return marshal.load(f)
return marshal.loads(f.read())
bc_version = 2
# magic version used to only change with new jinja versions. With 2.6
# we change this to also take Python version changes into account. The
# reason for this is that Python tends to segfault if fed earlier bytecode
# versions because someone thought it would be a good idea to reuse opcodes
# or make Python incompatible with earlier versions.
bc_magic = ‘j2‘.encode(‘ascii‘) +
pickle.dumps(bc_version 2) +
pickle.dumps((sys.version_info[0] << 24) | sys.version_info[1])
class Bucket(object):
“““Buckets are used to store the bytecode for one template. It‘s created
and initialized by the bytecode cache and passed to the loading functions.
The buckets get an internal checksum from the cache assigned and use this
to automatically reject outdated cache material. Individual bytecode
cache subclasses don‘t have to care about cache invalidation.
“““
def __init__(self environment key checksum):
self.environment = environment
self.key = key
self.checksum = checksum
self.reset()
def reset(self):
“““Resets the bucket (unloads the bytecode).“““
self.code = None
def load_bytecode(self f):
“““Loads bytecode from a file or file like object.“““
# make sure the magic header is correct
magic = f.read(len(bc_magic))
if magic != bc_magic:
self.reset()
return
# the source code of the file changed we need to reload
checksum = pickle.load(f)
if self.checksum != checksum:
self.reset()
return
self.code = marshal_load(f)
def write_bytecode(self f):
“““Dump the bytecode into the file or file like object passed.“““
if self.code is None:
raise TypeError(‘can‘t write empty bucket‘)
f.write(bc_magic)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-12-18 15:02 opencv
文件 33 2015-12-18 15:02 opencv.tgitconfig
目录 0 2015-12-18 15:02 opencv3rdparty
目录 0 2015-12-18 15:02 opencv3rdpartyffmpeg
文件 1147 2015-12-18 15:02 opencv3rdpartyffmpegffmpeg.cmake
文件 27393 2015-12-18 15:02 opencv3rdpartyffmpeglicense.txt
文件 2459 2015-12-18 15:02 opencv3rdpartyffmpeg
eadme.txt
目录 0 2015-12-18 15:02 opencv3rdpartyinclude
目录 0 2015-12-18 15:02 opencv3rdpartyincludedshow
文件 2935 2015-12-18 15:02 opencv3rdpartyincludedshow\_mingw_dxhelper.h
文件 1210 2015-12-18 15:02 opencv3rdpartyincludedshow\_mingw_unicode.h
文件 43517 2015-12-18 15:02 opencv3rdpartyincludedshowamvideo.h
文件 643 2015-12-18 15:02 opencv3rdpartyincludedshowaudevcod.h
文件 627 2015-12-18 15:02 opencv3rdpartyincludedshowdatypes.h
文件 114687 2015-12-18 15:02 opencv3rdpartyincludedshowcontrol.h
文件 159533 2015-12-18 15:02 opencv3rdpartyincludedshowddraw.h
文件 1628 2015-12-18 15:02 opencv3rdpartyincludedshowdshow.h
文件 60937 2015-12-18 15:02 opencv3rdpartyincludedshowdsound.h
文件 2156 2015-12-18 15:02 opencv3rdpartyincludedshowdvdmedia.h
文件 6579 2015-12-18 15:02 opencv3rdpartyincludedshowerrors.h
文件 1920 2015-12-18 15:02 opencv3rdpartyincludedshowevcode.h
文件 7477 2015-12-18 15:02 opencv3rdpartyincludedshowksuuids.h
文件 626764 2015-12-18 15:02 opencv3rdpartyincludedshowstrmif.h
文件 36338 2015-12-18 15:02 opencv3rdpartyincludedshowuuids.h
文件 7869 2015-12-18 15:02 opencv3rdpartyincludemsc_inttypes.h
文件 6892 2015-12-18 15:02 opencv3rdpartyincludemsc_stdint.h
目录 0 2015-12-18 15:02 opencv3rdpartyincludeopencl
目录 0 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2
目录 0 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2CL
文件 61545 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2CLcl.h
文件 277159 2015-12-18 15:02 opencv3rdpartyincludeopencl1.2CLcl.hpp
............此处省略5645个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)