Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 93) sorted by relevance

1234

/AliOS-Things-master/components/freetype/src/pcf/
A Dpcfutil.c45 size_t nbytes ) in BitOrderInvert() argument
47 for ( ; nbytes > 0; nbytes--, buf++ ) in BitOrderInvert()
67 size_t nbytes ) in TwoByteSwap() argument
69 for ( ; nbytes >= 2; nbytes -= 2, buf += 2 ) in TwoByteSwap()
86 size_t nbytes ) in FourByteSwap() argument
88 for ( ; nbytes >= 4; nbytes -= 4, buf += 4 ) in FourByteSwap()
A Dpcfutil.h40 size_t nbytes );
44 size_t nbytes );
48 size_t nbytes );
/AliOS-Things-master/components/uvoice/media/
A Duvoice_fade.c10 int fade_out_proc_8bit(uint8_t *buffer, int nbytes, in fade_out_proc_8bit() argument
20 samples = nbytes / channels; in fade_out_proc_8bit()
39 int fade_in_proc_8bit(uint8_t *buffer, int nbytes, in fade_in_proc_8bit() argument
52 samples = nbytes / channels; in fade_in_proc_8bit()
76 int fade_out_proc_16bit(uint8_t *buffer, int nbytes, in fade_out_proc_16bit() argument
86 samples = nbytes / (channels * 2); in fade_out_proc_16bit()
105 int fade_in_proc_16bit(uint8_t *buffer, int nbytes, in fade_in_proc_16bit() argument
118 samples = nbytes / (channels * 2); in fade_in_proc_16bit()
A Duvoice_wave.c53 int nbytes) in wave_info_parse() argument
59 int remaining_bytes = nbytes; in wave_info_parse()
166 memset(buffer, 0, nbytes - remaining_bytes); in wave_info_parse()
173 int nbytes) in wave_decode_process() argument
193 if (wave_info_parse(mdecoder, buffer, nbytes) < 0) { in wave_decode_process()
201 out_samples = (nbytes / (wave->bits >> 3)) / 2; in wave_decode_process()
204 nbytes /= 2; in wave_decode_process()
207 if (mdecoder->output(mdecoder->priv, buffer, nbytes)) { in wave_decode_process()
297 static int wave_encode_process(void *priv, uint8_t *buffer, int nbytes) in wave_encode_process() argument
299 return nbytes; in wave_encode_process()
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/arm-neon/
A Dlinux-auxv.c39 safe_read(png_structp png_ptr, int fd, void *buffer_in, size_t nbytes) in safe_read() argument
44 while (nbytes > 0) in safe_read()
53 if (nbytes > INT_MAX) in safe_read()
57 nread = (unsigned int)/*SAFE*/nbytes; in safe_read()
85 nbytes -= (unsigned int)/*SAFE*/iread; in safe_read()
/AliOS-Things-master/components/uvoice/audio/
A Daudio_aec.c27 int audio_aec_refer_conserve(struct aec_handler *aec, uint8_t *buffer, int nbytes) in audio_aec_refer_conserve() argument
36 if (uvoice_ringbuff_freesize(&aec->rb) >= nbytes) in audio_aec_refer_conserve()
37 uvoice_ringbuff_fill(&aec->rb, buffer, nbytes); in audio_aec_refer_conserve()
45 int audio_aec_process(struct aec_handler *aec, uint8_t *buffer, int nbytes) in audio_aec_process() argument
56 if (uvoice_ringbuff_dirtysize(&aec->rb) >= nbytes) { in audio_aec_process()
57 uvoice_ringbuff_read(&aec->rb, aec->echo_buffer, nbytes); in audio_aec_process()
59 if (echo_cancellation_process(aec, buffer, aec->echo_buffer, nbytes)) { in audio_aec_process()
A Daudio_process.c27 int audio_out_process(struct out_stream *out, uint8_t *buffer, int nbytes) in audio_out_process() argument
35 equalizer_process(&out->pcm.config, buffer, nbytes); in audio_out_process()
87 int nbytes) in audio_out_conserve() argument
98 return audio_aec_refer_conserve(in->aec, buffer, nbytes); in audio_out_conserve()
106 int audio_in_process(struct in_stream *in, uint8_t *buffer, int nbytes) in audio_in_process() argument
120 if (audio_aec_process(in->aec, buffer, nbytes)) { in audio_in_process()
129 if (noise_suppression_process(in->ns, buffer, nbytes)) { in audio_in_process()
138 if (auto_gain_control_process(in->agc, buffer, nbytes)) { in audio_in_process()
A Daudio_process.h10 int audio_out_conserve(struct audio_device *adev, uint8_t *buffer, int nbytes);
11 int audio_in_process(struct in_stream *in, uint8_t *buffer, int nbytes);
/AliOS-Things-master/components/uvoice/stream/
A Duvoice_cache.c252 cache->rd_len = nbytes; in net_cache_file_read()
308 nbytes = 0; in net_cache_file_read()
325 cache->rd_pos += nbytes; in net_cache_file_read()
326 ret = nbytes; in net_cache_file_read()
671 int nbytes) in net_cache_mem_read() argument
684 if (nbytes <= 0) in net_cache_mem_read()
696 cache->rd_len = nbytes; in net_cache_mem_read()
711 cache->rd_len = nbytes; in net_cache_mem_read()
759 nbytes = MIN(nbytes, cache->rd_len); in net_cache_mem_read()
791 nbytes) { in net_cache_mem_read()
[all …]
A Duvoice_file.c315 nbytes = 0; in file_loader_read()
319 nbytes = loader->file_length - loader->rd_pos; in file_loader_read()
320 M_LOGD("read tail %d\n", nbytes); in file_loader_read()
323 ret = os_fread(buffer, 1, nbytes, loader->stream); in file_loader_read()
324 if (os_ferror(loader->stream) || ret != nbytes) { in file_loader_read()
330 loader->rd_pos += nbytes; in file_loader_read()
334 return nbytes; in file_loader_read()
547 if (os_ferror(packer->stream) || ret != nbytes) { in file_packer_write()
552 mpacker->size += nbytes; in file_packer_write()
555 return nbytes; in file_packer_write()
[all …]
A Duvoice_partition.c289 uint8_t *buffer, int nbytes) in partition_loader_read() argument
334 read_size = MIN(nbytes, in partition_loader_read()
343 if (read_size != nbytes) in partition_loader_read()
344 M_LOGD("read %d ret %d\n", nbytes, read_size); in partition_loader_read()
502 uint8_t *buffer, int nbytes) in partition_packer_write() argument
521 wr_size = MIN(nbytes, in partition_packer_write()
547 uint8_t *buffer, int nbytes, int pos) in partition_packer_update() argument
567 if (pos + nbytes > packer->part_size) { in partition_packer_update()
568 M_LOGE("pack size %d overrange !\n", nbytes); in partition_packer_update()
576 wr_offset, nbytes); in partition_packer_update()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/iperf/
A Diperf_task.c324 if (tmp != nbytes) { in iperf_udp_run_server()
329 tmp = nbytes; in iperf_udp_run_server()
438 } while ( nbytes > 0 ); in iperf_udp_run_server()
577 if (tmp != nbytes) { in iperf_tcp_run_server()
582 tmp = nbytes; in iperf_tcp_run_server()
603 } while ( nbytes > 0 ); in iperf_tcp_run_server()
770 if (nbytes < 0) { in iperf_tcp_run_client()
782 total_send -= nbytes; in iperf_tcp_run_client()
1006 if (nbytes < 0) { in iperf_udp_run_client()
1039 total_send -= nbytes; in iperf_udp_run_client()
[all …]
/AliOS-Things-master/components/uvoice/codec/
A Dopus_encoder.c41 static int opus_encode_process(void *priv, uint8_t *buffer, int nbytes) in opus_encode_process() argument
67 opus->in = snd_zalloc(nbytes, AFM_MAIN); in opus_encode_process()
75 opus->out = snd_zalloc(nbytes, AFM_MAIN); in opus_encode_process()
84 for (i = 0; i < nbytes/sizeof(short); i++) { in opus_encode_process()
91 (nbytes - enc_len) / sizeof(short), opus->out, nbytes); in opus_encode_process()
117 if (enc_len >= nbytes / sizeof(short)) in opus_encode_process()
A Dogg_decoder.c71 static int ogg_decoder_process(void *priv, const uint8_t *buffer, int nbytes) in ogg_decoder_process() argument
93 ogg_buffer = ogg_sync_buffer(&ogg->state, nbytes); in ogg_decoder_process()
99 memcpy(ogg_buffer, buffer, nbytes); in ogg_decoder_process()
101 ret = ogg_sync_wrote(&ogg->state, nbytes); in ogg_decoder_process()
117 if (nbytes != mdecoder->input_size) { in ogg_decoder_process()
118 M_LOGW("tail buffer %d discard\n", nbytes); in ogg_decoder_process()
342 if (nbytes != mdecoder->input_size) { in ogg_decoder_process()
343 M_LOGD("tail buffer %d\n", nbytes); in ogg_decoder_process()
/AliOS-Things-master/components/uvoice/audio/hal/linux/
A Duvoice_pcm.c267 static int alsa_pcm_read(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in alsa_pcm_read() argument
279 frames = snd_pcm_bytes_to_frames(pcm_handle, nbytes); in alsa_pcm_read()
288 return nbytes; in alsa_pcm_read()
291 static int alsa_pcm_write(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in alsa_pcm_write() argument
303 frames = snd_pcm_bytes_to_frames(pcm_handle, nbytes); in alsa_pcm_write()
313 return nbytes; in alsa_pcm_write()
398 int uvoice_pcm_read(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in uvoice_pcm_read() argument
412 ret = alsa_pcm_read(pcm, buffer, nbytes); in uvoice_pcm_read()
422 int uvoice_pcm_write(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in uvoice_pcm_write() argument
436 ret = alsa_pcm_write(pcm, buffer, nbytes); in uvoice_pcm_write()
/AliOS-Things-master/components/amp/services/app_mgr/
A Dapp_mgr.c427 int nbytes = 0; in apppack_download() local
473 nbytes = strlen(http_buffer); in apppack_download()
477 while (totalsend < nbytes) { in apppack_download()
501 if (nbytes == 0) { in apppack_download()
504 if (nbytes < 0) { in apppack_download()
533 size = nbytes - len; in apppack_download()
540 nbytes = 0; in apppack_download()
548 size += nbytes; in apppack_download()
553 nbytes = 0; in apppack_download()
561 if (nbytes < 0) { in apppack_download()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djdatasrc.c100 size_t nbytes; in fill_input_buffer() local
102 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE); in fill_input_buffer()
104 if (nbytes <= 0) { in fill_input_buffer()
111 nbytes = 2; in fill_input_buffer()
115 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11clipboard.c112 unsigned long nbytes; in X11_GetClipboardText() local
166 format, &seln_type, &seln_format, &nbytes, &overflow, &src) in X11_GetClipboardText()
169 text = (char *)SDL_malloc(nbytes+1); in X11_GetClipboardText()
171 SDL_memcpy(text, src, nbytes); in X11_GetClipboardText()
172 text[nbytes] = '\0'; in X11_GetClipboardText()
/AliOS-Things-master/components/minilibc/
A Dnewlib_stub.c91 _ssize_t _read_r(struct _reent *ptr, int fd, void *buf, size_t nbytes) in _read_r() argument
100 _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes) in _write_r() argument
109 for (i = 0; i < nbytes; i++) { in _write_r()
117 return nbytes; in _write_r()
/AliOS-Things-master/components/uvoice/audio/hal/haas100/
A Duvoice_pcm.c101 int uvoice_pcm_read(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in uvoice_pcm_read() argument
105 ret = aos_pcm_readi(cap_pcm, buffer, aos_pcm_bytes_to_frames(cap_pcm, nbytes)); in uvoice_pcm_read()
111 int uvoice_pcm_write(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in uvoice_pcm_write() argument
115 ret = aos_pcm_writei(pb_pcm, buffer, aos_pcm_bytes_to_frames(pb_pcm, nbytes)); in uvoice_pcm_write()
/AliOS-Things-master/components/libc_stub/
A Dnewlib_stub.c136 _ssize_t _read_r(struct _reent *ptr, int fd, void *buf, size_t nbytes) in _read_r() argument
141 ret = aos_read(fd, buf, nbytes); in _read_r()
147 return lwip_read(fd, buf, nbytes); in _read_r()
156 _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes) in _write_r() argument
172 ret = aos_write(fd, buf, nbytes); in _write_r()
178 return lwip_write(fd, buf, nbytes); in _write_r()
182 for (i = 0; i < nbytes; i++) { in _write_r()
197 return nbytes; in _write_r()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/
A Dtif_aux.c95 tmsize_t i, n, nbytes; in TIFFDefaultTransferFunction() local
102 nbytes = n * sizeof (uint16); in TIFFDefaultTransferFunction()
103 tf[0] = (uint16 *)_TIFFmalloc(nbytes); in TIFFDefaultTransferFunction()
113 tf[1] = (uint16 *)_TIFFmalloc(nbytes); in TIFFDefaultTransferFunction()
116 _TIFFmemcpy(tf[1], tf[0], nbytes); in TIFFDefaultTransferFunction()
117 tf[2] = (uint16 *)_TIFFmalloc(nbytes); in TIFFDefaultTransferFunction()
120 _TIFFmemcpy(tf[2], tf[0], nbytes); in TIFFDefaultTransferFunction()
/AliOS-Things-master/components/uvoice/internal/
A Duvoice_record.h21 int (*pack)(void *priv, uint8_t *buffer, int nbytes);
22 int (*update)(void *priv, uint8_t *buffer, int nbytes, int pos);
44 int (*encode)(void *priv, uint8_t *buffer, int nbytes);
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_fs.c33 ssize_t aos_read(int fd, void *buf, size_t nbytes) in aos_read() argument
35 return read(fd, buf, nbytes); in aos_read()
38 ssize_t aos_write(int fd, const void *buf, size_t nbytes) in aos_write() argument
40 return write(fd, buf, nbytes); in aos_write()
/AliOS-Things-master/components/kv/src/
A Dkv_adapt.c43 int32_t kv_flash_read(uint32_t offset, void *buf, uint32_t nbytes) in kv_flash_read() argument
55 ret = read(fd, buf, nbytes); in kv_flash_read()
63 int32_t kv_flash_write(uint32_t offset, void *buf, uint32_t nbytes) in kv_flash_write() argument
75 ret = write(fd, buf, nbytes); in kv_flash_write()

Completed in 31 milliseconds

1234