/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/test/ |
A D | strip_rw.c | 52 const char *filename = "strip_test.tiff"; variable 79 fprintf (stderr, "Can't create TIFF file %s.\n", filename); in main() 86 fprintf (stderr, "Can't read TIFF file %s.\n", filename); in main() 89 unlink(filename); in main() 102 fprintf (stderr, "Can't read TIFF file %s.\n", filename); in main() 105 unlink(filename); in main() 128 fprintf (stderr, "Can't read TIFF file %s.\n", filename); in main() 131 unlink(filename); in main() 145 fprintf (stderr, "Can't read TIFF file %s.\n", filename); in main() 148 unlink(filename); in main() [all …]
|
A D | rewrite_tag.c | 55 const char *filename = "test_packbits.tif"; in test_packbits() local 58 tif = TIFFOpen(filename, "w"); in test_packbits() 107 tif = TIFFOpen(filename, "r+"); in test_packbits() 125 unlink(filename); in test_packbits() 154 tif = TIFFOpen(filename, "w8"); in rewrite_test() 156 tif = TIFFOpen(filename, "w4"); in rewrite_test() 204 tif = TIFFOpen(filename, "r+"); in rewrite_test() 252 tif = TIFFOpen(filename, "r"); in rewrite_test() 272 filename, i, in rewrite_test() 295 filename, i, in rewrite_test() [all …]
|
A D | long_tag.c | 44 const char *filename = "long_test.tiff"; variable 69 tif = TIFFOpen(filename, "w"); in main() 71 fprintf (stderr, "Can't create test TIFF file %s.\n", filename); in main() 122 tif = TIFFOpen(filename, "r"); in main() 124 fprintf (stderr, "Can't open test TIFF file %s.\n", filename); in main() 146 unlink(filename); in main() 152 unlink(filename); in main()
|
A D | ascii_tag.c | 43 static const char filename[] = "ascii_test.tiff"; variable 79 tif = TIFFOpen(filename, "w"); in main() 81 fprintf (stderr, "Can't create test TIFF file %s.\n", filename); in main() 140 tif = TIFFOpen(filename, "r"); in main() 142 fprintf (stderr, "Can't open test TIFF file %s.\n", filename); in main() 165 unlink(filename); in main()
|
/AliOS-Things-master/components/py_engine/engine/shared/memzip/ |
A D | memzip.c | 10 const MEMZIP_FILE_HDR *memzip_find_file_header(const char *filename) { in memzip_find_file_header() argument 17 if (*filename == '/') { in memzip_find_file_header() 18 filename++; in memzip_find_file_header() 25 if (!strncmp(file_hdr_filename, filename, file_hdr->filename_len)) { in memzip_find_file_header() 35 bool memzip_is_dir(const char *filename) { in memzip_is_dir() argument 39 if (strcmp(filename, "/") == 0) { in memzip_is_dir() 45 if (*filename == '/') { in memzip_is_dir() 46 filename++; in memzip_is_dir() 48 size_t filename_len = strlen(filename); in memzip_is_dir() 53 strncmp(file_hdr_filename, filename, filename_len) == 0 && in memzip_is_dir() [all …]
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/c/src/ |
A D | WrapperIHaasImageCodec.cpp | 38 int ImageCodecImgRead(void* instance, ImageBuffer_t **image, char * filename) in ImageCodecImgRead() argument 48 int ret = mIHaasImageCodec->ImgRead(image, filename); in ImageCodecImgRead() 65 int ret = mIHaasImageCodec->ImgReadMulti(images, filename); in ImageCodecImgReadMulti() 82 int ret = mIHaasImageCodec->ImgWrite(image, filename); in ImageCodecImgWrite() 99 int ret = mIHaasImageCodec->ImgWriteMulti(images, filename); in ImageCodecImgWriteMulti() 123 ImageBuffer_t * ImageCodecImgDecode2(void* instance, const char * filename) in ImageCodecImgDecode2() argument 133 ImageBuffer_t * buffer = mIHaasImageCodec->ImgDecode(filename); in ImageCodecImgDecode2() 157 int ImageCodechaveImageReader(void* instance, char * filename) in ImageCodechaveImageReader() argument 167 int ret = mIHaasImageCodec->haveImageReader(filename); in ImageCodechaveImageReader() 174 int ImageCodechaveImageWriter(void* instance, char * filename) in ImageCodechaveImageWriter() argument [all …]
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/c/include/ |
A D | WrapperIHaasImageCodec.h | 41 int ImageCodecImgRead(void* instance, ImageBuffer_t **image, char * filename); 42 int ImageCodecImgReadMulti(void* instance, ImageBuffer_t **images, char * filename); 43 int ImageCodecImgWrite(void* instance, ImageBuffer_t *image, char * filename); 44 int ImageCodecImgWriteMulti(void* instance, ImageBuffer_t **images, char * filename); 46 ImageBuffer_t * ImageCodecImgDecode2(void* instance, const char * filename); 48 int ImageCodechaveImageReader(void* instance, char * filename); 49 int ImageCodechaveImageWriter(void* instance, char * filename);
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/include/ |
A D | IHaasImageCodec.h | 63 virtual int ImgRead(ImageBuffer_t **image, char * filename) = 0; 82 virtual int ImgReadMulti(ImageBuffer_t **images, char * filename) = 0; 101 virtual int ImgWrite(ImageBuffer_t *image, char * filename) = 0; 120 virtual int ImgWriteMulti(ImageBuffer_t **images, char * filename) = 0; 156 virtual ImageBuffer_t * ImgDecode(const char * filename) = 0; 191 virtual int haveImageReader(char * filename) = 0; 208 virtual int haveImageWriter(char * filename) = 0;
|
/AliOS-Things-master/components/ulog/src/ |
A D | ulog_utility.c | 70 char* filename = (char*)path; in trim_file_path() 72 if ((filename = strrchr(path, '/')) != NULL) { in trim_file_path() 73 filename++; in trim_file_path() 77 if (filename != NULL) { in trim_file_path() 78 const size_t filename_len = strlen(filename); in trim_file_path() 81 filename += filename_len - TAG_FILE_NAME_MAX_LEN; in trim_file_path() 84 filename = UNDEFINE_FILE_NAME; in trim_file_path() 87 filename = UNDEFINE_FILE_NAME; in trim_file_path() 90 return filename; in trim_file_path()
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/examples/ |
A D | iccfrompng.c | 91 extract_one_file(const char *filename) in extract_one_file() argument 94 FILE *fp = fopen(filename, "rb"); in extract_one_file() 107 const char *ep = strrchr(filename, '.'); in extract_one_file() 110 len = ep-filename; in extract_one_file() 113 len = strlen(filename); in extract_one_file() 121 memcpy(output, filename, len); in extract_one_file() 132 printf("%s -> %s\n", filename, output); in extract_one_file() 152 fprintf(stderr, "%s: OOM allocating string!\n", filename); in extract_one_file() 158 printf("%s has no profile\n", filename); in extract_one_file() 162 fprintf(stderr, "%s: could not open file\n", filename); in extract_one_file()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/minizip/ |
A D | iowin32.c | 106 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_func() 109 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_func() 117 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_func() 134 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_funcA() 141 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_funcA() 158 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_funcW() 161 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open64_file_funcW() 169 voidpf ZCALLBACK win32_open_file_func (voidpf opaque,const char* filename,int mode) in win32_open_file_func() argument 179 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open_file_func() 182 if ((filename!=NULL) && (dwDesiredAccess != 0)) in win32_open_file_func() [all …]
|
A D | ioapi.c | 19 #define FOPEN_FUNC(filename, mode) fopen(filename, mode) argument 23 #define FOPEN_FUNC(filename, mode) fopen64(filename, mode) argument 31 voidpf call_zopen64 (const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode) in call_zopen64() argument 37 … return (*(pfilefunc->zopen32_file))(pfilefunc->zfile_func64.opaque,(const char*)filename,mode); in call_zopen64() 87 static voidpf ZCALLBACK fopen_file_func OF((voidpf opaque, const char* filename, int mode)); 95 static voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char* filename, int mode) in fopen_file_func() argument 108 if ((filename!=NULL) && (mode_fopen != NULL)) in fopen_file_func() 109 file = fopen(filename, mode_fopen); in fopen_file_func() 113 static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void* filename, int mode) in fopen64_file_func() argument 126 if ((filename!=NULL) && (mode_fopen != NULL)) in fopen64_file_func() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | loopwavequeue.c | 77 char filename[4096]; in main() local 89 SDL_strlcpy(filename, argv[1], sizeof(filename)); in main() 91 SDL_strlcpy(filename, "sample.wav", sizeof(filename)); in main() 94 if (SDL_LoadWAV(filename, &wave.spec, &wave.sound, &wave.soundlen) == NULL) { in main() 95 … SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't load %s: %s\n", filename, SDL_GetError()); in main()
|
A D | loopwave.c | 117 char filename[4096]; in main() local 129 SDL_strlcpy(filename, argv[1], sizeof(filename)); in main() 131 SDL_strlcpy(filename, "sample.wav", sizeof(filename)); in main() 134 if (SDL_LoadWAV(filename, &wave.spec, &wave.sound, &wave.soundlen) == NULL) { in main() 135 … SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't load %s: %s\n", filename, SDL_GetError()); in main()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/examples/ |
A D | utils.h | 28 char* filename = nullptr; in get_dir_exec() 33 filename = strrchr(dir, '/'); in get_dir_exec() 34 if (filename == nullptr) { in get_dir_exec() 38 ++filename; in get_dir_exec() 40 sprintf(exec, "%s", filename); in get_dir_exec() 43 *filename = '\0'; in get_dir_exec()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/core/ |
A D | utils.h | 28 char* filename = nullptr; in get_dir_exec() 33 filename = strrchr(dir, '/'); in get_dir_exec() 34 if (filename == nullptr) { in get_dir_exec() 38 ++filename; in get_dir_exec() 40 sprintf(exec, "%s", filename); in get_dir_exec() 43 *filename = '\0'; in get_dir_exec()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/function_test/ |
A D | utils.h | 28 char *filename = nullptr; in get_dir_exec() 33 filename = strrchr(dir, '/'); in get_dir_exec() 34 if (filename == nullptr) { in get_dir_exec() 38 ++filename; in get_dir_exec() 40 sprintf(exec, "%s", filename); in get_dir_exec() 43 *filename = '\0'; in get_dir_exec()
|
/AliOS-Things-master/components/mbedtls/programs/hash/ |
A D | generic_sum.c | 67 static int generic_wrapper( const mbedtls_md_info_t *md_info, char *filename, unsigned char *sum ) in generic_wrapper() argument 69 int ret = mbedtls_md_file( md_info, filename, sum ); in generic_wrapper() 72 mbedtls_fprintf( stderr, "failed to open: %s\n", filename ); in generic_wrapper() 75 mbedtls_fprintf( stderr, "failed to read: %s\n", filename ); in generic_wrapper() 80 static int generic_print( const mbedtls_md_info_t *md_info, char *filename ) in generic_print() argument 85 if( generic_wrapper( md_info, filename, sum ) != 0 ) in generic_print() 91 mbedtls_printf( " %s\n", filename ); in generic_print() 95 static int generic_check( const mbedtls_md_info_t *md_info, char *filename ) in generic_check() argument 111 if( ( f = fopen( filename, "rb" ) ) == NULL ) in generic_check() 113 mbedtls_printf( "failed to open: %s\n", filename ); in generic_check()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | run-test262.c | 187 p = strrchr(filename, '/'); in get_basename() 190 return strdup_len(filename, p - filename); in get_basename() 314 f = fopen(filename, "rb"); in namelist_load() 316 perror_exit(1, filename); in namelist_load() 358 if (has_suffix(filename, ".js") && !has_suffix(filename, "_FIXTURE.js")) in add_test_file() 918 f = fopen(filename, "rb"); in load_config() 1354 free(filename); in eval_file() 1359 free(filename); in eval_file() 1575 (int)(p - filename), filename, "harness"); in run_test() 1662 (int)(p - filename), filename, "test/harness"); in run_test() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | rdswitch.c | 91 if ((fp = fopen(filename, "r")) == NULL) { in read_quant_tables() 92 fprintf(stderr, "Can't open table file %s\n", filename); in read_quant_tables() 99 fprintf(stderr, "Too many tables in file %s\n", filename); in read_quant_tables() 106 fprintf(stderr, "Invalid table data in file %s\n", filename); in read_quant_tables() 118 fprintf(stderr, "Non-numeric data in file %s\n", filename); in read_quant_tables() 160 read_scan_script (j_compress_ptr cinfo, char * filename) in read_scan_script() argument 184 if ((fp = fopen(filename, "r")) == NULL) { in read_scan_script() 185 fprintf(stderr, "Can't open scan definition file %s\n", filename); in read_scan_script() 193 fprintf(stderr, "Too many scans defined in file %s\n", filename); in read_scan_script() 202 filename); in read_scan_script() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/sendfile/ |
A D | sendfile.c | 231 char filename[PATHMAX]={0}; /* filename to send */ in sendfile_server_thread() local 278 ret = lwip_recv(connfd, filename, sizeof(filename), 0); in sendfile_server_thread() 286 filename[ret] = '\0'; in sendfile_server_thread() 287 if ( (filename[strlen(filename)-1] == '\n') || \ in sendfile_server_thread() 288 (filename[strlen(filename)-1] == '\r')) in sendfile_server_thread() 289 filename[strlen(filename)-1] = '\0'; in sendfile_server_thread() 292 if (strcmp(filename, "quit") == 0) { in sendfile_server_thread() 298 LWIP_DEBUGF( SENDFILE_DEBUG, ("received request to send file %s", filename)); in sendfile_server_thread() 301 fd = open(filename, O_RDONLY); in sendfile_server_thread() 304 LWIP_DEBUGF( SENDFILE_DEBUG, ("unable to open '%s': %s", filename, strerror(errno))); in sendfile_server_thread() [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/Test/ |
A D | TestFonts.c | 64 int FileExists(const char * filename) in FileExists() argument 67 if (file = fopen(filename, "r")) in FileExists() 125 char filename[128]; in LoadFontFile() local 140 sprintf(filename,"../Fonts/%s",fontfile[i]); in LoadFontFile() 141 if (!FileExists(filename)) in LoadFontFile() 143 sprintf(filename,"..\\Fonts\\%s",fontfile[i]); in LoadFontFile() 144 if (!FileExists(filename)) in LoadFontFile() 146 sprintf(filename,"..\\..\\Fonts\\%s",fontfile[i]); in LoadFontFile() 147 if (!FileExists(filename)) in LoadFontFile() 150 if (!FileExists(filename)) in LoadFontFile() [all …]
|
/AliOS-Things-master/components/freetype/src/tools/docmaker/ |
A D | sources.py | 239 def __init__( self, processor, filename, lineno, lines ): argument 241 self.filename = filename 270 return "(" + self.filename + ":" + repr( self.lineno ) + ")" 311 self.filename = None 320 def parse_file( self, filename ): argument 324 self.filename = filename 331 for line in fileinput.input( filename ): 371 block = SourceBlock( self, self.filename, self.lineno, self.lines )
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/cmake/ |
A D | bazel_to_cmake.py | 149 def load(filename, *args): argument 150 if filename.startswith('@'): 152 elif filename.startswith(':'): 153 filename = os.path.join(bazel_package_dir, filename[1:]) 154 elif filename.startswith('//'): 155 split = filename[2:].split(':') 156 filename = os.path.join(bazel_workspace_dir, split[0], split[1]) 158 src_file_content = open(filename).read()
|
/AliOS-Things-master/components/mbedtls/programs/pkey/ |
A D | pk_sign.c | 85 char filename[512]; in main() local 149 mbedtls_snprintf( filename, sizeof(filename), "%s.sig", argv[2] ); in main() 151 if( ( f = fopen( filename, "wb+" ) ) == NULL ) in main() 153 mbedtls_printf( " failed\n ! Could not create %s\n\n", filename ); in main() 166 mbedtls_printf( "\n . Done (created \"%s\")\n\n", filename ); in main()
|