init: 64 bits version of the webcam
This commit is contained in:
@ -42,8 +42,8 @@
|
||||
//M*/
|
||||
|
||||
|
||||
#ifndef __OPENCV_CORE_C_H__
|
||||
#define __OPENCV_CORE_C_H__
|
||||
#ifndef OPENCV_CORE_C_H
|
||||
#define OPENCV_CORE_C_H
|
||||
|
||||
#include "opencv2/core/types_c.h"
|
||||
|
||||
@ -359,7 +359,7 @@ CVAPI(CvMat*) cvGetSubRect( const CvArr* arr, CvMat* submat, CvRect rect );
|
||||
|
||||
/** @brief Returns array row or row span.
|
||||
|
||||
The functions return the header, corresponding to a specified row/row span of the input array.
|
||||
The function returns the header, corresponding to a specified row/row span of the input array.
|
||||
cvGetRow(arr, submat, row) is a shortcut for cvGetRows(arr, submat, row, row+1).
|
||||
@param arr Input array
|
||||
@param submat Pointer to the resulting sub-array header
|
||||
@ -385,7 +385,7 @@ CV_INLINE CvMat* cvGetRow( const CvArr* arr, CvMat* submat, int row )
|
||||
|
||||
/** @brief Returns one of more array columns.
|
||||
|
||||
The functions return the header, corresponding to a specified column span of the input array. That
|
||||
The function returns the header, corresponding to a specified column span of the input array. That
|
||||
|
||||
is, no data is copied. Therefore, any modifications of the submatrix will affect the original array.
|
||||
If you need to copy the columns, use cvCloneMat. cvGetCol(arr, submat, col) is a shortcut for
|
||||
@ -1788,7 +1788,7 @@ CVAPI(int) cvGraphRemoveVtx( CvGraph* graph, int index );
|
||||
CVAPI(int) cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx );
|
||||
|
||||
|
||||
/** Link two vertices specifed by indices or pointers if they
|
||||
/** Link two vertices specified by indices or pointers if they
|
||||
are not connected or return pointer to already existing edge
|
||||
connecting the vertices.
|
||||
Functions return 1 if a new edge was created, 0 otherwise */
|
||||
@ -1976,8 +1976,12 @@ CVAPI(void) cvSetIPLAllocators( Cv_iplCreateImageHeader create_header,
|
||||
|
||||
The function opens file storage for reading or writing data. In the latter case, a new file is
|
||||
created or an existing file is rewritten. The type of the read or written file is determined by the
|
||||
filename extension: .xml for XML and .yml or .yaml for YAML. The function returns a pointer to the
|
||||
CvFileStorage structure. If the file cannot be opened then the function returns NULL.
|
||||
filename extension: .xml for XML, .yml or .yaml for YAML and .json for JSON.
|
||||
|
||||
At the same time, it also supports adding parameters like "example.xml?base64".
|
||||
|
||||
The function returns a pointer to the CvFileStorage structure.
|
||||
If the file cannot be opened then the function returns NULL.
|
||||
@param filename Name of the file associated with the storage
|
||||
@param memstorage Memory storage used for temporary data and for
|
||||
: storing dynamic structures, such as CvSeq or CvGraph . If it is NULL, a temporary memory
|
||||
@ -1985,6 +1989,7 @@ CvFileStorage structure. If the file cannot be opened then the function returns
|
||||
@param flags Can be one of the following:
|
||||
> - **CV_STORAGE_READ** the storage is open for reading
|
||||
> - **CV_STORAGE_WRITE** the storage is open for writing
|
||||
(use **CV_STORAGE_WRITE | CV_STORAGE_WRITE_BASE64** to write rawdata in Base64)
|
||||
@param encoding
|
||||
*/
|
||||
CVAPI(CvFileStorage*) cvOpenFileStorage( const char* filename, CvMemStorage* memstorage,
|
||||
@ -2022,7 +2027,8 @@ One and only one of the two above flags must be specified
|
||||
@param type_name Optional parameter - the object type name. In
|
||||
case of XML it is written as a type_id attribute of the structure opening tag. In the case of
|
||||
YAML it is written after a colon following the structure name (see the example in
|
||||
CvFileStorage description). Mainly it is used with user objects. When the storage is read, the
|
||||
CvFileStorage description). In case of JSON it is written as a name/value pair.
|
||||
Mainly it is used with user objects. When the storage is read, the
|
||||
encoded type name is used to determine the object type (see CvTypeInfo and cvFindType ).
|
||||
@param attributes This parameter is not used in the current implementation
|
||||
*/
|
||||
@ -2162,7 +2168,7 @@ the file with multiple streams looks like this:
|
||||
@endcode
|
||||
The YAML file will look like this:
|
||||
@code{.yaml}
|
||||
%YAML:1.0
|
||||
%YAML 1.0
|
||||
# stream #1 data
|
||||
...
|
||||
---
|
||||
@ -2187,6 +2193,23 @@ to a sequence rather than a map.
|
||||
CVAPI(void) cvWriteRawData( CvFileStorage* fs, const void* src,
|
||||
int len, const char* dt );
|
||||
|
||||
/** @brief Writes multiple numbers in Base64.
|
||||
|
||||
If either CV_STORAGE_WRITE_BASE64 or cv::FileStorage::WRITE_BASE64 is used,
|
||||
this function will be the same as cvWriteRawData. If neither, the main
|
||||
difference is that it outputs a sequence in Base64 encoding rather than
|
||||
in plain text.
|
||||
|
||||
This function can only be used to write a sequence with a type "binary".
|
||||
|
||||
@param fs File storage
|
||||
@param src Pointer to the written array
|
||||
@param len Number of the array elements to write
|
||||
@param dt Specification of each array element, see @ref format_spec "format specification"
|
||||
*/
|
||||
CVAPI(void) cvWriteRawDataBase64( CvFileStorage* fs, const void* src,
|
||||
int len, const char* dt );
|
||||
|
||||
/** @brief Returns a unique pointer for a given name.
|
||||
|
||||
The function returns a unique pointer for each particular file node name. This pointer can be then
|
||||
@ -2468,7 +2491,7 @@ CVAPI(void) cvReadRawData( const CvFileStorage* fs, const CvFileNode* src,
|
||||
/** @brief Writes a file node to another file storage.
|
||||
|
||||
The function writes a copy of a file node to file storage. Possible applications of the function are
|
||||
merging several file storages into one and conversion between XML and YAML formats.
|
||||
merging several file storages into one and conversion between XML, YAML and JSON formats.
|
||||
@param fs Destination file storage
|
||||
@param new_node_name New name of the file node in the destination file storage. To keep the
|
||||
existing name, use cvcvGetFileNodeName
|
||||
@ -2616,13 +2639,13 @@ CVAPI(void) cvSetErrStatus( int status );
|
||||
#define CV_ErrModeParent 1 /* Print error and continue */
|
||||
#define CV_ErrModeSilent 2 /* Don't print and continue */
|
||||
|
||||
/** Retrives current error processing mode */
|
||||
/** Retrieves current error processing mode */
|
||||
CVAPI(int) cvGetErrMode( void );
|
||||
|
||||
/** Sets error processing mode, returns previously used mode */
|
||||
CVAPI(int) cvSetErrMode( int mode );
|
||||
|
||||
/** Sets error status and performs some additonal actions (displaying message box,
|
||||
/** Sets error status and performs some additional actions (displaying message box,
|
||||
writing message to stderr, terminating application etc.)
|
||||
depending on the current error mode */
|
||||
CVAPI(void) cvError( int status, const char* func_name,
|
||||
@ -2631,7 +2654,7 @@ CVAPI(void) cvError( int status, const char* func_name,
|
||||
/** Retrieves textual description of the error given its code */
|
||||
CVAPI(const char*) cvErrorStr( int status );
|
||||
|
||||
/** Retrieves detailed information about the last error occured */
|
||||
/** Retrieves detailed information about the last error occurred */
|
||||
CVAPI(int) cvGetErrInfo( const char** errcode_desc, const char** description,
|
||||
const char** filename, int* line );
|
||||
|
||||
@ -2706,7 +2729,7 @@ static char cvFuncName[] = Name
|
||||
/**
|
||||
CV_CALL macro calls CV (or IPL) function, checks error status and
|
||||
signals a error if the function failed. Useful in "parent node"
|
||||
error procesing mode
|
||||
error processing mode
|
||||
*/
|
||||
#define CV_CALL( Func ) \
|
||||
{ \
|
||||
@ -3041,7 +3064,7 @@ template<typename _Tp> inline void Seq<_Tp>::copyTo(std::vector<_Tp>& vec, const
|
||||
size_t len = !seq ? 0 : range == Range::all() ? seq->total : range.end - range.start;
|
||||
vec.resize(len);
|
||||
if( seq && len )
|
||||
cvCvtSeqToArray(seq, &vec[0], range);
|
||||
cvCvtSeqToArray(seq, &vec[0], cvSlice(range));
|
||||
}
|
||||
|
||||
template<typename _Tp> inline Seq<_Tp>::operator std::vector<_Tp>() const
|
||||
|
||||
Reference in New Issue
Block a user