Home | History | Annotate | Download | only in include

Lines Matching refs:refcount

49     CvImage() : image(0), refcount(0) {}
53 refcount = image ? new int(1) : 0;
58 refcount = image ? new int(1) : 0;
61 CvImage( const CvImage& img ) : image(img.image), refcount(img.refcount)
63 if( refcount ) ++(*refcount);
66 CvImage( const char* filename, const char* imgname=0, int color=-1 ) : image(0), refcount(0)
69 CvImage( CvFileStorage* fs, const char* mapname, const char* imgname ) : image(0), refcount(0)
72 CvImage( CvFileStorage* fs, const char* seqname, int idx ) : image(0), refcount(0)
77 if( refcount && !(--*refcount) )
80 delete refcount;
88 if( !image || !refcount ||
99 if( refcount && --*refcount == 0 )
102 delete refcount;
105 refcount = use_refcount && image ? new int(1) : 0;
110 if( refcount && --*refcount == 0 )
113 delete refcount;
116 refcount = 0;
195 if( img.refcount )
196 ++*img.refcount;
197 if( refcount && !(--*refcount) )
200 refcount=img.refcount;
206 int* refcount;
262 if( !matrix || !matrix->refcount ||
274 else if( matrix->refcount )
275 ++*matrix->refcount;
288 else if( matrix->refcount )
290 if( --*matrix->refcount == 0 )
291 cvFree( &matrix->refcount );