Searched defs:bytes_read (Results 1 - 25 of 27) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
H A Divfdec.c73 size_t *bytes_read, size_t *buffer_size) {
107 *bytes_read = frame_size;
72 ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, size_t *buffer_size) argument
H A Dvpxdec.c173 size_t *bytes_read, size_t *buffer_size) {
212 *bytes_read = frame_size;
172 raw_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, size_t *buffer_size) argument
/hardware/bsp/intel/peripheral/sensors/mraa/
H A DSensor.cpp39 int bytes_read = 0, bytes_to_read = sizeof(sensors_event_t); local
51 bytes_read = read(fd, ptr, bytes_to_read);
52 if (bytes_read <= 0) {
55 bytes_to_read -= bytes_read;
56 ptr += bytes_read;
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
H A Dsvc_test.cc417 const size_t bytes_read = fread(stats_buf.buf, 1, stats_buf.sz, stats_file); local
418 ASSERT_EQ(bytes_read, stats_buf.sz);
/hardware/qcom/audio/msm8909/hal/
H A Dplatform_info.c344 int bytes_read; local
374 bytes_read = fread(buf, 1, BUF_SIZE, file);
375 if (bytes_read < 0) {
376 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read);
377 ret = bytes_read;
381 if (XML_ParseBuffer(parser, bytes_read,
382 bytes_read == 0) == XML_STATUS_ERROR) {
389 if (bytes_read == 0)
/hardware/bsp/intel/peripheral/libmraa/src/i2c/
H A Di2c.c205 int bytes_read = 0; local
207 bytes_read = dev->advance_func->i2c_read_replace(dev, data, length);
210 bytes_read = read(dev->fh, data, length);
212 if (bytes_read == length) {
/hardware/qcom/audio/hal/
H A Dplatform_info.c350 int bytes_read; local
393 bytes_read = fread(buf, 1, kBufSize, file);
394 if (bytes_read < 0) {
395 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read);
396 ret = bytes_read;
400 if (XML_ParseBuffer(parser, bytes_read,
401 bytes_read == 0) == XML_STATUS_ERROR) {
408 if (bytes_read == 0)
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/
H A Dvideo_encoder_test.c1047 int bytes_read = 0; local
1060 bytes_read = fread(&dataptr[readOffset],1,length,inputBufferFile);
1063 return bytes_read;
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
H A Ddecoder_driver_test.c1069 int bytes_read = 0; local
1088 bytes_read = fread(&dataptr[readOffset],1, 1,inputBufferFile);
1089 if( !bytes_read)
1151 bytes_read = Read_Buffer_From_DAT_File(&dataptr[readOffset],
1154 readOffset += bytes_read;
1169 int bytes_read=0; local
1192 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile);
1194 if(bytes_read == 0 || bytes_read < frameSize ) {
1197 return bytes_read;
[all...]
H A Domx_vdec_test.cpp2590 int bytes_read=0; local
2615 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize);
2617 DEBUG_PRINT("Actual frame Size [%d] bytes_read using fread[%d]\n",
2618 frameSize, bytes_read);
2620 if(bytes_read == 0 || bytes_read < frameSize ) {
2628 return bytes_read;
2633 int bytes_read=0; local
2635 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, NUMBER_OF_ARBITRARYBYTES_READ);
2636 if(bytes_read
2657 int bytes_read = 0; local
2799 int bytes_read = 0; local
2978 int bytes_read = 0; local
3084 unsigned int read_code = 0, bytes_read, byte_pos = 0, frame_type; local
3214 unsigned int bytes_read = 0; local
[all...]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
H A Ddecoder_driver_test.c1006 int bytes_read = 0; local
1023 bytes_read = fread(&dataptr[readOffset],1, 1,inputBufferFile);
1025 if ( !bytes_read) {
1079 bytes_read = Read_Buffer_From_DAT_File(&dataptr[readOffset],
1082 readOffset += bytes_read;
1098 int bytes_read=0; local
1125 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile);
1127 if (bytes_read == 0 || bytes_read < frameSize ) {
1131 return bytes_read;
[all...]
H A Domx_vdec_test.cpp2831 int bytes_read=0; local
2857 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize);
2859 DEBUG_PRINT("Actual frame Size [%d] bytes_read using fread[%d]\n",
2860 frameSize, bytes_read);
2862 if (bytes_read == 0 || bytes_read < frameSize ) {
2870 return bytes_read;
2875 int bytes_read = 0; local
2884 bytes_read = read(inputBufferFileFd, &dataptr[cnt], 1);
2885 if (!bytes_read) {
2949 int bytes_read=0; local
2973 int bytes_read = 0; local
3106 int bytes_read = 0; local
3276 int bytes_read = 0; local
3373 unsigned int read_code = 0, bytes_read, byte_pos = 0, frame_type; local
3507 unsigned int bytes_read = 0; local
3555 unsigned int bytes_read = 0; local
3595 int bytes_read = 0; local
[all...]
/hardware/qcom/wlan/qcwcn/wifi_hal/
H A Dring_buffer.cpp345 unsigned int bytes_read = 0; local
349 while (bytes_read < max_length) {
364 (max_length - bytes_read)) {
368 cur_cpy_len = max_length - bytes_read;
374 if (rbc->cur_valid_bytes <= bytes_read) {
380 (max_length - bytes_read));
388 (max_length - bytes_read));
391 memcpy((buf + bytes_read),
412 bytes_read += cur_cpy_len;
418 rbc->total_bytes_read += bytes_read;
[all...]
/hardware/qcom/camera/usbcamcore/src/
H A DQCameraMjpegDecode.cpp622 int bytes_to_read, bytes_read, rc; local
632 bytes_read = 0;
644 bytes_read = bytes_to_read;
648 return bytes_read;
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
H A Dhw_hdmi.cpp496 ssize_t bytes_read = 0; local
499 bytes_read = Sys::pread_(fd, config_buffer, kPageSize, 0);
503 DLOGI_IF(kTagDriverConfig, "bytes_read = %d", bytes_read);
505 return (bytes_read > 0);
/hardware/intel/common/libmix/mix_audio/src/
H A Dmixaudio.c1032 gint bytes_read; local
1055 bytes_read = readv(mix->fileDescriptor, vec, iovoutcnt);
1056 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "end readv(), return: %d\n", bytes_read);
1057 if (bytes_read < 0) { // TODO: should not be 0, but driver return 0 right now
1058 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_ERROR, "return: %d\n", bytes_read);
1067 iovout[i].size = bytes_read - bytes_count;
/hardware/qcom/audio/msm8909/mm-audio/aenc-aac/qdsp6/test/
H A Domx_aac_enc_test.c987 size_t bytes_read=0; local
993 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile);
995 pBufHdr->nFilledLen = (OMX_U32)bytes_read;
996 if(bytes_read == 0)
1007 return (int)bytes_read;
/hardware/qcom/audio/msm8909/mm-audio/aenc-amrnb/qdsp6/test/
H A Domx_amr_enc_test.c954 size_t bytes_read=0; local
960 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile);
962 pBufHdr->nFilledLen = (OMX_U32)bytes_read;
969 if(bytes_read == 0)
978 total_pcm_bytes = (unsigned)(total_pcm_bytes + bytes_read);
981 return (int)bytes_read;;
/hardware/qcom/audio/msm8909/mm-audio/aenc-evrc/qdsp6/test/
H A Domx_evrc_enc_test.c997 size_t bytes_read=0; local
1003 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile);
1005 pBufHdr->nFilledLen = (OMX_U32)bytes_read;
1012 if(bytes_read == 0)
1021 total_pcm_bytes = (unsigned)(total_pcm_bytes + bytes_read);
1024 return (int)bytes_read;;
/hardware/qcom/audio/msm8909/mm-audio/aenc-qcelp13/qdsp6/test/
H A Domx_qcelp13_enc_test.c1000 size_t bytes_read=0; local
1006 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile);
1008 pBufHdr->nFilledLen = (OMX_U32)bytes_read;
1015 if(bytes_read == 0)
1024 total_pcm_bytes = (unsigned)(total_pcm_bytes + bytes_read);
1027 return (int)bytes_read;;
/hardware/qcom/media/msm8996/videopp/src/
H A Domx_vdpp.cpp301 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; local
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp150 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; local
H A Domx_vdec_hevc_swvdec.cpp141 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; local
H A Domx_vdec_msm8974.cpp152 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; local
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp146 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; local

Completed in 713 milliseconds

12