Home | History | Annotate | Download | only in src

Lines Matching refs:FILE

135     FILE* file;
169 "Invalid pointer to file storage" ); \
176 CV_ERROR( CV_StsError, "The file storage is opened for reading" ); \
351 fputs( fs->buffer_start, fs->file );
370 /* closes file storage and deallocates buffers */
379 CV_ERROR( CV_StsNullPtr, "NULL double pointer to file storage" );
386 if( fs->write_mode && fs->file )
395 fputs("</opencv_storage>\n", fs->file );
400 if( fs->file )
402 fclose( fs->file );
403 fs->file = 0;
685 CV_ERROR( CV_StsNullPtr, "The file storage is empty" );
859 ptr = fgets( fs->buffer_start, max_size, fs->file );
872 if( ptr[l-1] != '\n' && ptr[l-1] != '\r' && !feof(fs->file) )
1299 // 3. parse until the end of file or next collection
1528 fputs( "...\n", fs->file );
1529 fputs( "---\n", fs->file );
1753 ptr = fgets( fs->buffer_start, max_size, fs->file );
1764 if( ptr[l-1] != '\n' && ptr[l-1] != '\r' && !feof(fs->file) )
2424 fputs( "\n<!-- next stream -->\n", fs->file );
2425 /*fputs( "</opencv_storage>\n", fs->file );
2426 fputs( "<opencv_storage>\n", fs->file );*/
2699 fs->file = fopen( fs->filename, !fs->write_mode ? "rt" : !append ? "wt" : "a+t" );
2700 if( !fs->file )
2719 fseek( fs->file, 0, SEEK_END );
2730 int file_size = (int)ftell( fs->file );
2734 fputs( "<?xml version=\"1.0\"?>\n", fs->file );
2735 fputs( "<opencv_storage>\n", fs->file );
2743 fseek( fs->file, -xml_buf_size, SEEK_END );
2748 int line_offset = ftell( fs->file );
2749 char* ptr0 = fgets( xml_buf, xml_buf_size, fs->file ), *ptr;
2763 CV_ERROR( CV_StsError, "Could not find </opencv_storage> in the end of file.\n" );
2764 fclose( fs->file );
2765 fs->file = fopen( fs->filename, "r+t" );
2766 fseek( fs->file, last_occurence, SEEK_SET );
2768 fputs( " <!-- resumed -->", fs->file );
2769 fseek( fs->file, 0, SEEK_END );
2770 fputs( "\n", fs->file );
2783 fputs( "%YAML:1.0\n", fs->file );
2785 fputs( "...\n---\n", fs->file );
2800 fgets( buf, sizeof(buf)-2, fs->file );
2803 fseek( fs->file, 0, SEEK_END );
2804 buf_size = ftell( fs->file );
2805 fseek( fs->file, 0, SEEK_SET );
2838 if( cvGetErrStatus() < 0 || !fs->file )
2844 fclose( fs->file );
2845 fs->file = 0;
3195 CV_ERROR( CV_StsNullPtr, "Null pointer to source file node or reader" );
3215 CV_ERROR( CV_StsBadArg, "The file node should be a numerical scalar or a sequence" );
3385 CV_ERROR( CV_StsNullPtr, "Null pointers to source file node or destination array" );
3451 CV_ERROR( CV_StsBadFlag, "Unknown type of file node" );
3594 CV_ERROR( CV_StsError, "The matrix data is not found in file storage" );
3688 CV_ERROR( CV_StsError, "The matrix data is not found in file storage" );
3849 CV_ERROR( CV_StsError, "The matrix data is not found in file storage" );
3998 CV_ERROR( CV_StsError, "The image data is not found in file storage" );
4364 CV_ERROR( CV_StsError, "The image data is not found in file storage" );
5122 CV_ERROR( CV_StsError, "Could not open the file storage. Check the path and permissions" );
5225 CV_ERROR( CV_StsObjectNotFound, "Could not find the/an object in file storage" );
5250 /* End of file. */