Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/hardware/intel/common/libva/va/
Dsysdeps.h51 # define va_log_error(buffer) do { ALOGE("%s", buffer); } while (0) argument
52 # define va_log_info(buffer) do { ALOGI("%s", buffer); } while (0) argument
54 # define va_log_error(buffer) do { LOGE("%s", buffer); } while (0) argument
55 # define va_log_info(buffer) do { LOGI("%s", buffer); } while (0) argument
60 #define va_log_error(buffer) do { \ argument
61 fprintf(stderr, "libva error: %s", buffer); \
66 #define va_log_info(buffer) do { \ argument
67 fprintf(stderr, "libva info: %s", buffer); \
/hardware/libhardware_legacy/audio/
DAudioHardwareGeneric.cpp169 char buffer[SIZE]; in dumpInternals() local
172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals()
173 result.append(buffer); in dumpInternals()
233 ssize_t AudioStreamOutGeneric::write(const void* buffer, size_t bytes) in write() argument
236 return ssize_t(::write(mFd, buffer, bytes)); in write()
248 char buffer[SIZE]; in dump() local
250 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n"); in dump()
251 result.append(buffer); in dump()
252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
253 result.append(buffer); in dump()
[all …]
DAudioHardwareStub.cpp102 char buffer[SIZE]; in dumpInternals() local
105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false"); in dumpInternals()
106 result.append(buffer); in dumpInternals()
128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) in write() argument
144 char buffer[SIZE]; in dump() local
146 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); in dump()
147 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
148 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize()); in dump()
149 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
150 snprintf(buffer, SIZE, "\tformat: %d\n", format()); in dump()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_reader.c21 int vp9_reader_init(vp9_reader *r, const uint8_t *buffer, size_t size) { in vp9_reader_init() argument
22 if (size && !buffer) { in vp9_reader_init()
25 r->buffer_end = buffer + size; in vp9_reader_init()
26 r->buffer = buffer; in vp9_reader_init()
37 const uint8_t *buffer = r->buffer; in vp9_reader_fill() local
42 const int bits_left = (int)((buffer_end - buffer) * CHAR_BIT); in vp9_reader_fill()
53 value |= (BD_VALUE)*buffer++ << shift; in vp9_reader_fill()
58 r->buffer = buffer; in vp9_reader_fill()
67 r->buffer--; in vp9_reader_find_end()
69 return r->buffer; in vp9_reader_find_end()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dand_constructor.c113 int32_t buffer[4]; in inv_playback() local
155 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
157 int32_to_long(buffer, accel, 3); in inv_playback()
160 buffer[0], buffer[1], buffer[2], ts); in inv_playback()
166 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
168 int32_to_long(buffer, compass, 3); in inv_playback()
171 buffer[0], buffer[1], buffer[2], ts); in inv_playback()
175 r = fread(buffer, sizeof(buffer[0]), 1, inv_construct.file); in inv_playback()
177 inv_build_temp(buffer[0], ts); in inv_playback()
179 buffer[0], ts); in inv_playback()
[all …]
/hardware/samsung_slsi/exynos5/mobicore/common/LogWrapper/
Dlog.h141 char buffer[CPL * 4 + OVERHEAD]; in LOG_I_Buf() local
152 index += sprintf(&buffer[index], "%s", szDescriptor); in LOG_I_Buf()
159 index += sprintf(&buffer[index], "memory dump"); in LOG_I_Buf()
161 index += sprintf(&buffer[index], " (0x%08x, %d bytes)", (uint32_t)blob,sizeOfBlob); in LOG_I_Buf()
162 LOG_I("%s", buffer); in LOG_I_Buf()
167 index += sprintf(&buffer[index], "Data at 0x%08x: ", (uint32_t)blob); in LOG_I_Buf()
171 LOG_I("%s", buffer); in LOG_I_Buf()
185 index += sprintf(&buffer[index], "0x%08X | ",addr); in LOG_I_Buf()
191 index += sprintf(&buffer[index], "%02x ", ((const char *)blob)[i] ); in LOG_I_Buf()
198 index += sprintf(&buffer[index], " "); in LOG_I_Buf()
[all …]
/hardware/ril/librilutils/
Drecord_stream.c37 unsigned char *buffer; member
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); in record_stream_new()
57 ret->unconsumed = ret->buffer; in record_stream_new()
58 ret->read_end = ret->buffer; in record_stream_new()
59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; in record_stream_new()
67 free(rs->buffer); in record_stream_free()
143 if (p_rs->unconsumed == p_rs->buffer in record_stream_get_next()
153 if (p_rs->unconsumed != p_rs->buffer) { in record_stream_get_next()
159 memmove(p_rs->buffer, p_rs->unconsumed, toMove); in record_stream_get_next()
162 p_rs->read_end = p_rs->buffer + toMove; in record_stream_get_next()
[all …]
/hardware/intel/common/omx-components/videocodec/
DOMXVideoDecoderAVC.cpp133 OMX_ERRORTYPE OMXVideoDecoderAVC::PrepareDecodeBuffer(OMX_BUFFERHEADERTYPE *buffer, buffer_retain_t… in PrepareDecodeBuffer() argument
135 ret = OMXVideoDecoderBase::PrepareDecodeBuffer(buffer, retain, p); in PrepareDecodeBuffer()
140 if (buffer->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { in PrepareDecodeBuffer()
146 if (buffer->nFlags & (OMX_BUFFERFLAG_ENDOFFRAME | OMX_BUFFERFLAG_EOS)) { in PrepareDecodeBuffer()
149 mTimeStamp = buffer->nTimeStamp; in PrepareDecodeBuffer()
155 ret = AccumulateBuffer(buffer); in PrepareDecodeBuffer()
166 mTimeStamp = buffer->nTimeStamp; in PrepareDecodeBuffer()
169 if (mTimeStamp != buffer->nTimeStamp && mFilledLen != 0) { in PrepareDecodeBuffer()
178 ret = AccumulateBuffer(buffer); in PrepareDecodeBuffer()
183 if (buffer->nFilledLen != 0) { in PrepareDecodeBuffer()
[all …]
/hardware/intel/common/omx-components/videocodec/securevideo/moorefield/
DOMXVideoDecoderAVCSecure.cpp259 OMX_ERRORTYPE OMXVideoDecoderAVCSecure::PrepareWVCDecodeBuffer(OMX_BUFFERHEADERTYPE *buffer, buffer… in PrepareWVCDecodeBuffer() argument
267 if (buffer->nOffset != 0) { in PrepareWVCDecodeBuffer()
268 ALOGW("buffer offset %u is not zero!!!", buffer->nOffset); in PrepareWVCDecodeBuffer()
271 DataBuffer *dataBuffer = (DataBuffer *)buffer->pBuffer; in PrepareWVCDecodeBuffer()
273 p->data = dataBuffer->data + buffer->nOffset; in PrepareWVCDecodeBuffer()
274 p->size = buffer->nFilledLen; in PrepareWVCDecodeBuffer()
283 nalu_headers.frame_size = buffer->nFilledLen; in PrepareWVCDecodeBuffer()
294 nalu_headers.parse_size = buffer->nFilledLen; in PrepareWVCDecodeBuffer()
303 … failed. Error = %#x, frame_size: %d, len = %u", res, nalu_headers.frame_size, buffer->nFilledLen); in PrepareWVCDecodeBuffer()
329 OMX_ERRORTYPE OMXVideoDecoderAVCSecure::PrepareCENCDecodeBuffer(OMX_BUFFERHEADERTYPE *buffer, buffe… in PrepareCENCDecodeBuffer() argument
[all …]
/hardware/libhardware/modules/usbaudio/
Dalsa_device_profile.c393 char buffer[128]; in profile_get_sample_rate_strs() local
394 buffer[0] = '\0'; in profile_get_sample_rate_strs()
395 int buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs()
403 strncat(buffer, "|", buffSize); in profile_get_sample_rate_strs()
406 strncat(buffer, numBuffer, buffSize); in profile_get_sample_rate_strs()
409 return strdup(buffer); in profile_get_sample_rate_strs()
419 char buffer[128]; in profile_get_format_strs() local
420 buffer[0] = '\0'; in profile_get_format_strs()
421 int buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs()
427 strncat(buffer, "|", buffSize); in profile_get_format_strs()
[all …]
/hardware/intel/img/hwcomposer/common/buffers/
DGraphicBuffer.cpp43 bool GraphicBuffer::isProtectedBuffer(GraphicBuffer *buffer) in isProtectedBuffer() argument
45 if (buffer == NULL) { in isProtectedBuffer()
49 return isProtectedUsage(buffer->mUsage); in isProtectedBuffer()
61 bool GraphicBuffer::isCompressionBuffer(GraphicBuffer *buffer) in isCompressionBuffer() argument
63 if (buffer == NULL) { in isCompressionBuffer()
67 return isCompressionUsage(buffer->mUsage); in isCompressionBuffer()
DBufferManager.cpp148 void BufferManager::put(DataBuffer *buffer) in put() argument
150 delete buffer; in put()
153 BufferMapper* BufferManager::map(DataBuffer& buffer) in map() argument
161 mapper = mBufferPool->getMapper(buffer.getKey()); in map()
171 mapper = createBufferMapper(mGrallocModule, buffer); in map()
183 ret = mBufferPool->addMapper(buffer.getKey(), mapper); in map()
251 DataBuffer *buffer = NULL; in allocFrameBuffer() local
255 buffer = lockDataBuffer(handle); in allocFrameBuffer()
256 if (!buffer) { in allocFrameBuffer()
261 mapper = createBufferMapper(mGrallocModule, *buffer); in allocFrameBuffer()
[all …]
/hardware/intel/common/libmix/videodecoder/securevideo/merrifield/
DVideoDecoderAVCSecure.cpp65 Decode_Status VideoDecoderAVCSecure::start(VideoConfigBuffer *buffer) { in start() argument
68 Decode_Status status = VideoDecoderAVC::start(buffer); in start()
102 Decode_Status VideoDecoderAVCSecure::processModularInputBuffer(VideoDecodeBuffer *buffer, vbp_data_… in processModularInputBuffer() argument
122 if (buffer->flag & IS_SECURE_DATA) { in processModularInputBuffer()
124 pFrameInfo = (frame_info_t *) buffer->data; in processModularInputBuffer()
197 mFrameSize = buffer->size; in processModularInputBuffer()
198 mFrameData = buffer->data; in processModularInputBuffer()
199 clear_data = buffer->data; in processModularInputBuffer()
200 clear_data_size = buffer->size; in processModularInputBuffer()
217 Decode_Status VideoDecoderAVCSecure::processClassicInputBuffer(VideoDecodeBuffer *buffer, vbp_data_… in processClassicInputBuffer() argument
[all …]
DVideoDecoderAVCSecure.h27 virtual Decode_Status start(VideoConfigBuffer *buffer);
31 virtual Decode_Status decode(VideoDecodeBuffer *buffer);
33 virtual Decode_Status decodeFrame(VideoDecodeBuffer *buffer, vbp_data_h264 *data);
37 Decode_Status parseClassicSliceHeader(VideoDecodeBuffer *buffer, vbp_data_h264 *data);
38 Decode_Status parseModularSliceHeader(VideoDecodeBuffer *buffer, vbp_data_h264 *data);
43 Decode_Status processClassicInputBuffer(VideoDecodeBuffer *buffer, vbp_data_h264 **data);
44 Decode_Status processModularInputBuffer(VideoDecodeBuffer *buffer, vbp_data_h264 **data);
/hardware/akm/AK8975_FS/libsensors/
DAdxlSensor.cpp88 char buffer[2]; in setEnable() local
96 buffer[0] = '\0'; in setEnable()
97 buffer[1] = '\0'; in setEnable()
100 if(enabled) buffer[0] = '0'; in setEnable()
102 if(!enabled) buffer[0] = '1'; in setEnable()
104 if (buffer[0] != '\0') { in setEnable()
106 err = write_sys_attribute(input_sysfs_path, buffer, 1); in setEnable()
110 ALOGD("AdxlSensor: Control set %s", buffer); in setEnable()
131 char buffer[16]; in setDelay() local
156 bytes = sprintf(buffer, "%d", rate_val); in setDelay()
[all …]
/hardware/intel/common/libmix/videoencoder/
Dbitstream.h24 unsigned int *buffer; member
44 bs->buffer = (unsigned int*)calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
55 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
71 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); in bitstream_put_ui()
74 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
75 bs->buffer[pos] = va_swap32(bs->buffer[pos]); in bitstream_put_ui()
79 … bs->buffer = (unsigned int*)realloc(bs->buffer, bs->max_size_in_dword * sizeof(unsigned int)); in bitstream_put_ui()
80 if (bs->buffer == NULL) in bitstream_put_ui()
84 bs->buffer[pos + 1] = val; in bitstream_put_ui()
321 *header_buffer = (unsigned char *)bs.buffer; in build_packed_seq_buffer()
[all …]
/hardware/invensense/60xx/mlsdk/mllite/
Dmldl.c154 unsigned char *buffer) in inv_get_mpu_memory_original() argument
167 memcpy(buffer, &localDmpMemory[offset], length); in inv_get_mpu_memory_original()
733 unsigned short length, unsigned char *buffer) in inv_get_mpu_memory_one_bank() argument
739 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) { in inv_get_mpu_memory_one_bank()
744 memcpy(buffer, &mldlCfg.ram[bank][memAddr], length); in inv_get_mpu_memory_one_bank()
748 ((bank << 8) | memAddr), length, buffer); in inv_get_mpu_memory_one_bank()
779 const unsigned char *buffer) in inv_set_mpu_memory_one_bank() argument
785 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) { in inv_set_mpu_memory_one_bank()
789 different = memcmp(&mldlCfg.ram[bank][memAddr], buffer, length); in inv_set_mpu_memory_one_bank()
790 memcpy(&mldlCfg.ram[bank][memAddr], buffer, length); in inv_set_mpu_memory_one_bank()
[all …]
/hardware/libhardware/include/hardware/
Dcamera2.h79 buffer_handle_t** buffer);
95 buffer_handle_t* buffer);
100 buffer_handle_t* buffer);
165 buffer_handle_t** buffer);
170 buffer_handle_t* buffer);
235 camera_metadata_t **buffer);
269 camera_metadata_t **buffer);
276 camera_metadata_t *buffer);
282 camera_metadata_t *buffer);
/hardware/qcom/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2081 OMX_IN OMX_U8* buffer) in use_input_buffer() argument
2089 …t = %u appData = %p bytes = %u buffer = %p",(unsigned int)port,appData,(unsigned int)bytes,buffer); in use_input_buffer()
2141 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_input_buffer()
2178 m_pInput_pmem[i].buffer = (OMX_U8 *)SECURE_BUFPTR; in use_input_buffer()
2180 m_pInput_pmem[i].buffer = (unsigned char *)mmap( in use_input_buffer()
2184 if (m_pInput_pmem[i].buffer == MAP_FAILED) { in use_input_buffer()
2202 m_pInput_pmem[i].buffer = (unsigned char *)buffer; in use_input_buffer()
2212 (*bufferHdr), (*bufferHdr)->pBuffer, m_pInput_pmem[i].buffer); in use_input_buffer()
2248 OMX_IN OMX_U8* buffer) in use_output_buffer() argument
2333 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_output_buffer()
[all …]
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp132 OMX_IN OMX_U8 *buffer = p_buf_hdr->pBuffer; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/intel/common/libmix/videodecoder/securevideo/moorefield/
DVideoDecoderAVCSecure.cpp65 Decode_Status VideoDecoderAVCSecure::start(VideoConfigBuffer *buffer) { in start() argument
68 Decode_Status status = VideoDecoderAVC::start(buffer); in start()
102 Decode_Status VideoDecoderAVCSecure::processModularInputBuffer(VideoDecodeBuffer *buffer, vbp_data_… in processModularInputBuffer() argument
122 if (buffer->flag & IS_SECURE_DATA) { in processModularInputBuffer()
124 pFrameInfo = (frame_info_t *) buffer->data; in processModularInputBuffer()
208 mFrameSize = buffer->size; in processModularInputBuffer()
209 mFrameData = buffer->data; in processModularInputBuffer()
210 clear_data = buffer->data; in processModularInputBuffer()
211 clear_data_size = buffer->size; in processModularInputBuffer()
228 Decode_Status VideoDecoderAVCSecure::processClassicInputBuffer(VideoDecodeBuffer *buffer, vbp_data_… in processClassicInputBuffer() argument
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dboolhuff.h35 unsigned char *buffer; member
44 extern void vp8_start_encode(BOOL_CODER *bc, unsigned char *buffer, unsigned char *buffer_end);
108 while (x >= 0 && br->buffer[x] == 0xff) in vp8_encode_bool()
110 br->buffer[x] = (unsigned char)0; in vp8_encode_bool()
114 br->buffer[x] += 1; in vp8_encode_bool()
117 validate_buffer(br->buffer + br->pos, 1, br->buffer_end, br->error); in vp8_encode_bool()
118 br->buffer[br->pos++] = (lowvalue >> (24 - offset)); in vp8_encode_bool()
/hardware/samsung_slsi/exynos5/mobicore/daemon/Common/
DConnection.cpp101 size_t Connection::readData(void *buffer, uint32_t len) in readData() argument
103 return readData(buffer, len, -1); in readData()
108 size_t Connection::readData(void *buffer, uint32_t len, int32_t timeout) in readData() argument
115 assert(NULL != buffer); in readData()
149 ret = recv(socketDescriptor, buffer, len, MSG_DONTWAIT); in readData()
159 size_t Connection::writeData(void *buffer, uint32_t len) in writeData() argument
163 assert(NULL != buffer); in writeData()
166 ret = send(socketDescriptor, buffer, len, 0); in writeData()
/hardware/broadcom/libbt/src/
Dupio.c256 char buffer = '0'; in upio_set_bluetooth_power() local
261 buffer = '0'; in upio_set_bluetooth_power()
265 buffer = '1'; in upio_set_bluetooth_power()
300 sz = write(fd, &buffer, 1); in upio_set_bluetooth_power()
330 char buffer; in upio_set() local
356 buffer = '1'; in upio_set()
360 buffer = '0'; in upio_set()
370 if (write(fd, &buffer, 1) < 0) in upio_set()
453 buffer = '0'; in upio_set()
456 buffer = '1'; in upio_set()
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/venc/src/
Domx_video_base.cpp2056 OMX_IN OMX_U8* buffer) in use_input_buffer() argument
2063 …_HIGH("use_input_buffer: port = %d appData = %p bytes = %d buffer = %p",port,appData,bytes,buffer); in use_input_buffer()
2124 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_input_buffer()
2157 … m_pInput_pmem[i].buffer = (unsigned char *)mmap(NULL,m_pInput_pmem[i].size,PROT_READ|PROT_WRITE, in use_input_buffer()
2160 if(m_pInput_pmem[i].buffer == MAP_FAILED) in use_input_buffer()
2180 m_pInput_pmem[i].buffer = (unsigned char *)buffer; in use_input_buffer()
2192 (*bufferHdr), (*bufferHdr)->pBuffer, m_pInput_pmem[i].buffer); in use_input_buffer()
2231 OMX_IN OMX_U8* buffer) in use_output_buffer() argument
2325 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_output_buffer()
2357 … m_pOutput_pmem[i].buffer = (unsigned char *)mmap(NULL,m_pOutput_pmem[i].size,PROT_READ|PROT_WRITE, in use_output_buffer()
[all …]

12345678910>>...17