Home
last modified time | relevance | path

Searched refs:SDL_RWread (Results 1 – 25 of 31) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/image/
A DIMG_bmp.c48 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) { in IMG_isBMP()
120 if ( !SDL_RWread(src, &ch, 1, 1) ) return 1; in readRlePixels()
127 if ( !SDL_RWread(src, &pixel, 1, 1) ) return 1; in readRlePixels()
148 if ( !SDL_RWread(src, &ch, 1, 1) ) return 1; in readRlePixels()
269 if ( SDL_RWread(src, magic, 1, 2) != 2 ) { in LoadBMP_RW()
578 SDL_RWread(src, &padbyte, 1, 1); in LoadBMP_RW()
611 SDL_RWread(src, &value, 1, 1); in SDL_Read8()
792 SDL_RWread(src, &palette[i], 4, 1); in LoadICOCUR_RW()
852 SDL_RWread(src, &padbyte, 1, 1); in LoadICOCUR_RW()
868 if (!SDL_RWread(src, &pixel, 1, 1)) { in LoadICOCUR_RW()
[all …]
A DIMG_lbm.c68 if ( SDL_RWread( src, magic, sizeof(magic), 1 ) ) in IMG_isLBM()
104 if ( !SDL_RWread( src, id, 4, 1 ) ) in IMG_LoadLBM_RW()
111 if ( !SDL_RWread( src, &size, 4, 1 ) ) in IMG_LoadLBM_RW()
125 if ( !SDL_RWread( src, id, 4, 1 ) ) in IMG_LoadLBM_RW()
149 if ( !SDL_RWread( src, id, 4, 1 ) ) in IMG_LoadLBM_RW()
155 if ( !SDL_RWread( src, &size, 4, 1 ) ) in IMG_LoadLBM_RW()
167 if ( !SDL_RWread( src, &bmhd, sizeof( BMHD ), 1 ) ) in IMG_LoadLBM_RW()
191 if ( !SDL_RWread( src, &colormap, size, 1 ) ) in IMG_LoadLBM_RW()
204 if ( !SDL_RWread( src, &viewmodes, sizeof(viewmodes), 1 ) ) in IMG_LoadLBM_RW()
323 if ( !SDL_RWread( src, &count, 1, 1 ) ) in IMG_LoadLBM_RW()
[all …]
A DIMG_pnm.c45 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) { in IMG_isPNM()
75 if ( ! SDL_RWread(src, &ch, 1, 1) ) { in ReadNumber()
81 if ( ! SDL_RWread(src, &ch, 1, 1) ) { in ReadNumber()
100 if ( !SDL_RWread(src, &ch, 1, 1) ) { in ReadNumber()
129 SDL_RWread(src, magic, 2, 1); in IMG_LoadPNM_RW()
196 if(!SDL_RWread(src, &ch, in IMG_LoadPNM_RW()
214 if(!SDL_RWread(src, dst, bpl, 1)) in IMG_LoadPNM_RW()
A DIMG_pcx.c74 if ( SDL_RWread(src, &pcxh, sizeof(pcxh), 1) == 1 ) { in IMG_isPCX()
110 if ( !SDL_RWread(src, &pcxh, sizeof(pcxh), 1) ) { in IMG_LoadPCX_RW()
174 if ( !SDL_RWread(src, buf, bpl, 1) ) { in IMG_LoadPCX_RW()
181 if ( !SDL_RWread(src, &ch, 1, 1) ) { in IMG_LoadPCX_RW()
189 if( !SDL_RWread(src, &ch, 1, 1) ) { in IMG_LoadPCX_RW()
251 if ( !SDL_RWread(src, &ch, 1, 1) ) { in IMG_LoadPCX_RW()
259 SDL_RWread(src, &colors[i].r, 1, 1); in IMG_LoadPCX_RW()
260 SDL_RWread(src, &colors[i].g, 1, 1); in IMG_LoadPCX_RW()
261 SDL_RWread(src, &colors[i].b, 1, 1); in IMG_LoadPCX_RW()
A DIMG_WIC.c98 if ( SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic) ) { in IMG_isPNG()
126 if (SDL_RWread(src, magic, 2, 1)) { in IMG_isJPG()
130 if (SDL_RWread(src, magic, 1, 2) != 2) { in IMG_isJPG()
151 else if (SDL_RWread(src, magic + 2, 1, 2) != 2) { in IMG_isJPG()
191 if (SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic)) { in IMG_isTIF()
229 SDL_RWread(src, memoryBuffer, 1, fileSize); in WIC_LoadImage()
A DIMG_tga.c110 if (!SDL_RWread(src, &hdr, sizeof(hdr), 1)) { in IMG_LoadTGA_RW()
211 SDL_RWread(src, pal, palsiz, 1); in IMG_LoadTGA_RW()
271 SDL_RWread(src, dst + x * bpp, n * bpp, 1); in IMG_LoadTGA_RW()
289 SDL_RWread(src, &c, 1, 1); in IMG_LoadTGA_RW()
291 SDL_RWread(src, &pixel, bpp, 1); in IMG_LoadTGA_RW()
298 SDL_RWread(src, dst, w * bpp, 1); in IMG_LoadTGA_RW()
A DIMG_UIImage.m128 bytes_read = SDL_RWread(rw_ops, temp_buffer, 1, block_size);
265 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) {
284 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) {
311 if ( SDL_RWread(src, magic, 2, 1) ) {
315 if(SDL_RWread(src, magic, 1, 2) != 2) {
330 } else if(SDL_RWread(src, magic+2, 1, 2) != 2) {
369 if ( SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic) ) {
391 if ( SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic) ) {
A DIMG_xv.c31 if ( SDL_RWread(src, line, 1, 1) <= 0 ) { in get_line()
129 if ( SDL_RWread(src, pixels, w, 1) <= 0 ) { in IMG_LoadXV_RW()
A DIMG_xpm.c60 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) { in IMG_isXPM()
937 if (SDL_RWread(src, &c, 1, 1) <= 0) { in get_next_line()
954 if (SDL_RWread(src, linebuf, len - 1, 1) <= 0) { in get_next_line()
974 if (SDL_RWread(src, linebuf + n, 1, 1) <= 0) { in get_next_line()
A DIMG_xcf.c216 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) { in IMG_isXCF()
235 SDL_RWread(src, data, tmp, 1); in read_string()
274 SDL_RWread (src, prop->data.colormap.cmap, prop->data.colormap.num*3, 1); in xcf_read_property()
291 SDL_RWread(src, &prop->data, len, 1); in xcf_read_property()
320 SDL_RWread (src, h->sign, 14, 1); in read_xcf_header()
517 SDL_RWread (src, load, len, 1); in load_xcf_tile_none()
535 reallen = SDL_RWread (src, t, 1, len); in load_xcf_tile_rle()
A DIMG_tif.c90 return (tsize_t)SDL_RWread((SDL_RWops*)fd, buf, 1, size); in tiff_read()
144 if ( SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic) ) { in IMG_isTIF()
A DIMG_ImageIO.m41 return (size_t)SDL_RWread((struct SDL_RWops *)rwops_userdata, quartz_buffer, 1, the_count);
410 if ( SDL_RWread(rw_ops, magic, sizeof(magic), 1) ) {
418 if ( SDL_RWread(rw_ops, magic, sizeof(magic), 1) ) {
433 if ( SDL_RWread(rw_ops, magic, 2, 1) ) {
437 if(SDL_RWread(rw_ops, magic, 1, 2) != 2) {
452 } else if(SDL_RWread(rw_ops, magic+2, 1, 2) != 2) {
480 if ( SDL_RWread(rw_ops, magic, 1, sizeof(magic)) == sizeof(magic) ) {
493 if ( SDL_RWread(rw_ops, magic, 1, sizeof(magic)) == sizeof(magic) ) {
627 bytes_read = SDL_RWread(rw_ops, temp_buffer, 1, block_size);
A DIMG_jpg.c139 if ( SDL_RWread(src, magic, 2, 1) ) { in IMG_isJPG()
143 if(SDL_RWread(src, magic, 1, 2) != 2) { in IMG_isJPG()
158 } else if(SDL_RWread(src, magic+2, 1, 2) != 2) { in IMG_isJPG()
213 nbytes = (int)SDL_RWread(src->ctx, src->buffer, 1, INPUT_BUFFER_SIZE); in fill_input_buffer()
A DIMG_webp.c113 if ( SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic) ) { in webp_getinfo()
186 r = (int)SDL_RWread(src, raw_data, 1, raw_data_size ); in IMG_LoadWEBP_RW()
A DIMG_svg.c87 magic_len = SDL_RWread(src, magic, 1, sizeof(magic) - 1); in IMG_isSVG()
A DIMG_gif.c41 if ( SDL_RWread(src, magic, sizeof(magic), 1) ) { in IMG_isGIF()
117 #define ReadOK(file,buffer,len) SDL_RWread(file, buffer, len, 1)
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_bmp.c74 if (!SDL_RWread(src, &ch, 1, 1)) return 1; in readRlePixels()
81 if (!SDL_RWread(src, &pixel, 1, 1)) return 1; in readRlePixels()
102 if (!SDL_RWread(src, &ch, 1, 1)) return 1; in readRlePixels()
111 if (!SDL_RWread(src, &ch, 1, 1)) return 1; in readRlePixels()
113 if (!SDL_RWread(src, &ch, 1, 1)) return 1; in readRlePixels()
224 if (SDL_RWread(src, magic, 1, 2) != 2) { in SDL_LoadBMP_RW()
420 SDL_RWread(src, &palette->colors[i].b, 1, 1); in SDL_LoadBMP_RW()
421 SDL_RWread(src, &palette->colors[i].g, 1, 1); in SDL_LoadBMP_RW()
422 SDL_RWread(src, &palette->colors[i].r, 1, 1); in SDL_LoadBMP_RW()
427 SDL_RWread(src, &palette->colors[i].b, 1, 1); in SDL_LoadBMP_RW()
[all …]
/AliOS-Things-master/components/SDL2/src/file/
A DSDL_rwops.c758 size_read = SDL_RWread(src, (char *)data+size_total, 1, (size_t)(size-size_total)); in SDL_LoadFile_RW()
802 SDL_RWread(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) in SDL_RWread() function
826 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadU8()
835 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadLE16()
844 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadBE16()
853 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadLE32()
862 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadBE32()
871 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadLE64()
880 SDL_RWread(src, &value, sizeof (value), 1); in SDL_ReadBE64()
/AliOS-Things-master/components/SDL2/test/
A Dteststreaming.c146 SDL_RWread(handle, MooseFrames, MOOSEFRAME_SIZE, MOOSEFRAMES_COUNT); in main()
A Dtestautomation_rwops.c131 s = SDL_RWread( rw, buf, 1, sizeof(RWopsHelloWorldTestString)-1 ); in _testGenericRWopsValidations()
542 rv_mem = SDL_RWread(rwops_mem, buffer_mem, size, 6); in rwops_testCompareRWFromMemWithRWFromFile()
553 rv_file = SDL_RWread(rwops_file, buffer_file, size, 6); in rwops_testCompareRWFromMemWithRWFromFile()
A Dtestime.c144 bytesRead = SDL_RWread(hexFile, hexBuffer, 1, 9); in unifont_init()
180 bytesRead = SDL_RWread(hexFile, hexBuffer + bytesOverread, 1, 33 - bytesOverread); in unifont_init()
191 bytesRead = SDL_RWread(hexFile, hexBuffer + 33, 1, 32); in unifont_init()
A Dtestoverlay2.c326 SDL_RWread(handle, RawMooseData, MOOSEFRAME_SIZE, MOOSEFRAMES_COUNT); in main()
/AliOS-Things-master/components/SDL2/src/audio/disk/
A DSDL_diskaudio.c83 const size_t br = SDL_RWread(h->io, buffer, 1, buflen); in DISKAUDIO_CaptureFromDevice()
/AliOS-Things-master/components/SDL2/include/
A DSDL_rwops.h203 extern DECLSPEC size_t SDLCALL SDL_RWread(SDL_RWops *context,
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_wave.c1542 } else if (SDL_RWread(src, chunkheader, 4, 2) != 2) { in WaveNextChunk()
1573 chunk->size = SDL_RWread(src, chunk->data, 1, length); in WaveReadPartialChunkData()
1669 SDL_RWread(fmtsrc, format->subformat, 1, 16); in WaveReadFormat()
1827 if (SDL_RWread(src, &formtype, sizeof(Uint32), 1) != 1) { in WaveLoad()
1917 … if (position == chunk->position && SDL_RWread(src, &samplelength, sizeof(Uint32), 1) == 1) { in WaveLoad()
1962 } else if (SDL_RWread(src, &tmp, 1, 1) != 1) { in WaveLoad()

Completed in 49 milliseconds

12