/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deBlockBuffer.cpp | 63 Consumer (MessageBuffer& buffer, int numProducers) in Consumer() argument 64 : m_buffer (buffer) in Consumer() 89 /* Feed back rest of messages to buffer (they are end messages) so other consumers wake up. */ in run() 126 Producer (MessageBuffer& buffer, deUint16 threadId, int numMessages) in Producer() argument 127 : m_buffer (buffer) in Producer() 171 MessageBuffer buffer (blockSize, numBlocks); in runTest() 176 producers.push_back(new Producer(buffer, (deUint16)i, dataSize)); in runTest() 179 consumers.push_back(new Consumer(buffer, numProducers)); in runTest() 196 buffer.write(1, &endMsg); in runTest() 197 buffer in runTest() 232 Producer(BlockBuffer<deUint8>* buffer, deUint32 seed) Producer() argument 271 Consumer(BlockBuffer<deUint8>* buffer, deUint32 seed) Consumer() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_client_profile.cpp | 46 static void ReceiveData(uint16_t connectHandle, uint16_t event, void *eventData, Buffer *buffer, void *context); 54 void ReceiveDataProcess(uint16_t connectHandle, uint16_t event, AttEventData *data, Buffer *buffer, 70 void FindIncludeServicesParsing(uint16_t connectHandle, uint16_t handle, Buffer *buffer); 80 uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter); 82 uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter); 86 uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter); 88 uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter); 90 uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter); 95 void WriteLongCharacteristicValueParsing(uint16_t connectHandle, uint16_t handle, uint16_t offset, Buffer *buffer, 98 void NotificationParsing(uint16_t connectHandle, AttEventData *data, Buffer *buffer); 539 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), len); ReadMultipleCharacteristicValue() local 597 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), len); WriteWithoutResponse() local 619 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), len); SignedWriteWithoutResponse() local 647 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), len); WriteCharacteristicValue() local 678 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), 0x00, bufSize); WriteLongCharacteristicValue() local 704 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), len); WriteDescriptorValue() local 753 Buffer *buffer = GattServiceBase::BuildBuffer(value->get(), 0x00, len); ReliableWriteCharacteristicValue() local 874 ReceiveData( uint16_t connectHandle, uint16_t event, void *eventData, Buffer *buffer, void *context) ReceiveData() argument 906 ReceiveDataProcess(uint16_t connectHandle, uint16_t event, AttEventData *data, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator attResp) ReceiveDataProcess() argument 1386 FindIncludeServicesParsing(uint16_t connectHandle, uint16_t handle, Buffer *buffer) FindIncludeServicesParsing() argument 1574 ReadCharacteristicValueParsing( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) ReadCharacteristicValueParsing() argument 1601 ReadLongCharacteristicValueParsing( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) ReadLongCharacteristicValueParsing() argument 1655 ReadMultipleCharacteristicParsing( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) ReadMultipleCharacteristicParsing() argument 1672 ReadCharacteristicDescriptorsParsing( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) ReadCharacteristicDescriptorsParsing() argument 1699 ReadLongCharacteristicDescriptorsParsing( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) ReadLongCharacteristicDescriptorsParsing() argument 1791 SplitReadRsp( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) SplitReadRsp() argument 1824 SplitReadBlobRsp( uint16_t connectHandle, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) SplitReadBlobRsp() argument 1862 SplitPrepareWriteRsp(uint16_t connectHandle, AttEventData *data, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) SplitPrepareWriteRsp() argument 1971 WriteLongCharacteristicValueParsing(uint16_t connectHandle, uint16_t handle, uint16_t offset, Buffer *buffer, std::list<std::pair<uint16_t, GattRequestInfo>>::iterator iter) WriteLongCharacteristicValueParsing() argument 2032 NotificationParsing(uint16_t connectHandle, AttEventData *data, Buffer *buffer) NotificationParsing() argument 2047 IndicationParsing(uint16_t connectHandle, const AttEventData *data, Buffer *buffer) IndicationParsing() argument 2346 uint8_t *buffer = nullptr; GetReadValueCache() local [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/ |
H A D | engine_util.cpp | 64 int32_t EngineUtil::WriteAudio(const uint8_t *buffer, uint32_t size) in WriteAudio() argument 71 if (buffer == nullptr || size == 0) { in WriteAudio() 72 INTELL_VOICE_LOG_ERROR("buffer is invalid, size:%{public}u", size); in WriteAudio() 76 std::vector<uint8_t> audioBuff(&buffer[0], &buffer[size]); in WriteAudio() 138 void EngineUtil::WriteBufferFromAshmem(uint8_t *&buffer, uint32_t size, sptr<OHOS::Ashmem> ashmem) in WriteBufferFromAshmem() argument 151 buffer = new (std::nothrow) uint8_t[size]; in WriteBufferFromAshmem() 152 if (buffer == nullptr) { in WriteBufferFromAshmem() 153 INTELL_VOICE_LOG_ERROR("allocate buffer failed"); in WriteBufferFromAshmem() 157 if (memcpy_s(buffer, siz in WriteBufferFromAshmem() 166 uint8_t *buffer = nullptr; ProcDspModel() local [all...] |
/foundation/graphic/graphic_surface/surface/src/ |
H A D | buffer_queue_consumer.cpp | 31 GSError BufferQueueConsumer::AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, in AcquireBuffer() argument 37 return bufferQueue_->AcquireBuffer(buffer, fence, timestamp, damages); in AcquireBuffer() 49 GSError BufferQueueConsumer::ReleaseBuffer(sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence) in ReleaseBuffer() argument 54 return bufferQueue_->ReleaseBuffer(buffer, fence); in ReleaseBuffer() 57 GSError BufferQueueConsumer::AttachBufferToQueue(sptr<SurfaceBuffer> buffer) in AttachBufferToQueue() argument 62 return bufferQueue_->AttachBufferToQueue(buffer, InvokerType::CONSUMER_INVOKER); in AttachBufferToQueue() 65 GSError BufferQueueConsumer::DetachBufferFromQueue(sptr<SurfaceBuffer> buffer) in DetachBufferFromQueue() argument 70 return bufferQueue_->DetachBufferFromQueue(buffer, InvokerType::CONSUMER_INVOKER); in DetachBufferFromQueue() 73 GSError BufferQueueConsumer::AttachBuffer(sptr<SurfaceBuffer>& buffer) in AttachBuffer() argument 75 return AttachBuffer(buffer, in AttachBuffer() 78 AttachBuffer(sptr<SurfaceBuffer>& buffer, int32_t timeOut) AttachBuffer() argument 86 DetachBuffer(sptr<SurfaceBuffer>& buffer) DetachBuffer() argument [all...] |
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | bcm203x.c | 57 unsigned char *buffer; member 80 memcpy(data->buffer, "#", 1); in bcm203x_complete() 83 data->buffer, 1, bcm203x_complete, data); in bcm203x_complete() 93 data->buffer, 32, bcm203x_complete, data, 1); in bcm203x_complete() 102 if (data->buffer[0] != '#') { in bcm203x_complete() 113 data->buffer, 32, bcm203x_complete, data, 1); in bcm203x_complete() 130 if (data->buffer[0] != '.') { in bcm203x_complete() 186 data->buffer = kmalloc(size, GFP_KERNEL); in bcm203x_probe() 187 if (!data->buffer) { in bcm203x_probe() 194 memcpy(data->buffer, firmwar in bcm203x_probe() [all...] |
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | sclp_con.c | 34 /* Pointer to current console buffer */ 48 sclp_conbuf_callback(struct sclp_buffer *buffer, int rc) in sclp_conbuf_callback() argument 54 page = sclp_unmake_buffer(buffer); in sclp_conbuf_callback() 57 /* Remove buffer from outqueue */ in sclp_conbuf_callback() 58 list_del(&buffer->list); in sclp_conbuf_callback() 61 /* Check if there is a pending buffer on the out queue. */ in sclp_conbuf_callback() 62 buffer = NULL; in sclp_conbuf_callback() 64 buffer = list_first_entry(&sclp_con_outqueue, in sclp_conbuf_callback() 66 if (!buffer || sclp_con_suspended) { in sclp_conbuf_callback() 72 } while (sclp_emit_buffer(buffer, sclp_conbuf_callbac in sclp_conbuf_callback() 80 struct sclp_buffer* buffer; sclp_conbuf_emit() local 140 struct sclp_buffer *buffer; sclp_console_drop_buffer() local [all...] |
/kernel/linux/linux-5.10/sound/firewire/tascam/ |
H A D | amdtp-tascam.c | 36 __be32 *buffer, unsigned int frames, in write_pcm_s32() 56 buffer[c] = cpu_to_be32(*src); in write_pcm_s32() 59 buffer += s->data_block_quadlets; in write_pcm_s32() 66 __be32 *buffer, unsigned int frames, in read_pcm_s32() 85 buffer += 1; in read_pcm_s32() 89 *dst = be32_to_cpu(buffer[c]); in read_pcm_s32() 92 buffer += s->data_block_quadlets; in read_pcm_s32() 98 static void write_pcm_silence(struct amdtp_stream *s, __be32 *buffer, in write_pcm_silence() argument 108 buffer[c] = 0x00000000; in write_pcm_silence() 109 buffer in write_pcm_silence() 35 write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int frames, unsigned int pcm_frames) write_pcm_s32() argument 65 read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int frames, unsigned int pcm_frames) read_pcm_s32() argument 129 read_status_messages(struct amdtp_stream *s, __be32 *buffer, unsigned int data_blocks) read_status_messages() argument [all...] |
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | bcm203x.c | 56 unsigned char *buffer; member 79 memcpy(data->buffer, "#", 1); in bcm203x_complete() 82 data->buffer, 1, bcm203x_complete, data); in bcm203x_complete() 92 data->buffer, 32, bcm203x_complete, data, 1); in bcm203x_complete() 101 if (data->buffer[0] != '#') { in bcm203x_complete() 112 data->buffer, 32, bcm203x_complete, data, 1); in bcm203x_complete() 129 if (data->buffer[0] != '.') { in bcm203x_complete() 185 data->buffer = kmalloc(size, GFP_KERNEL); in bcm203x_probe() 186 if (!data->buffer) { in bcm203x_probe() 193 memcpy(data->buffer, firmwar in bcm203x_probe() [all...] |
/kernel/linux/linux-6.6/sound/firewire/tascam/ |
H A D | amdtp-tascam.c | 36 __be32 *buffer, unsigned int frames, in write_pcm_s32() 56 buffer[c] = cpu_to_be32(*src); in write_pcm_s32() 59 buffer += s->data_block_quadlets; in write_pcm_s32() 66 __be32 *buffer, unsigned int frames, in read_pcm_s32() 85 buffer += 1; in read_pcm_s32() 89 *dst = be32_to_cpu(buffer[c]); in read_pcm_s32() 92 buffer += s->data_block_quadlets; in read_pcm_s32() 98 static void write_pcm_silence(struct amdtp_stream *s, __be32 *buffer, in write_pcm_silence() argument 108 buffer[c] = 0x00000000; in write_pcm_silence() 109 buffer in write_pcm_silence() 35 write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int frames, unsigned int pcm_frames) write_pcm_s32() argument 65 read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int frames, unsigned int pcm_frames) read_pcm_s32() argument 129 read_status_messages(struct amdtp_stream *s, __be32 *buffer, unsigned int data_blocks) read_status_messages() argument [all...] |
/third_party/node/deps/v8/src/base/numbers/ |
H A D | fast-dtoa.cc | 32 // Input: * buffer containing the digits of too_high / 10^kappa 33 // * the buffer's length 36 // * rest = (too_high - buffer * 10^kappa).f() * unit 39 // Output: returns true if the buffer is guaranteed to contain the closest 41 // Modifies the generated digits in the buffer to approach (round towards) w. 42 static bool RoundWeed(Vector<char> buffer, int length, in RoundWeed() argument 54 // Basically the buffer currently contains a number in the unsafe interval in RoundWeed() 73 // buffer --------------------------------------------------+-------+-------- in RoundWeed() 84 // Note that the value of buffer could lie anywhere inside the range too_low in RoundWeed() 95 // If the number inside the buffer lie in RoundWeed() 156 RoundWeedCounted(Vector<char> buffer, int length, uint64_t rest, uint64_t ten_kappa, uint64_t unit, int* kappa) RoundWeedCounted() argument 357 DigitGen(DiyFp low, DiyFp w, DiyFp high, Vector<char> buffer, int* length, int* kappa) global() argument 477 DigitGenCounted(DiyFp w, int requested_digits, Vector<char> buffer, int* length, int* kappa) global() argument 562 Grisu3(double v, Vector<char> buffer, int* length, int* decimal_exponent) global() argument 623 Grisu3Counted(double v, int requested_digits, Vector<char> buffer, int* length, int* decimal_exponent) global() argument 662 FastDtoa(double v, FastDtoaMode mode, int requested_digits, Vector<char> buffer, int* length, int* decimal_point) global() argument [all...] |
/third_party/skia/src/shaders/ |
H A D | SkComposeShader.cpp | 73 sk_sp<SkFlattenable> SkShader_Blend::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 74 sk_sp<SkShader> dst(buffer.readShader()); in CreateProc() 75 sk_sp<SkShader> src(buffer.readShader()); in CreateProc() 76 if (!buffer.validate(dst && src)) { in CreateProc() 81 unsigned mode = buffer.read32(); in CreateProc() 84 blender = buffer.readBlender(); in CreateProc() 85 if (buffer.validate(blender != nullptr)) { in CreateProc() 89 if (buffer.validate(mode <= (unsigned)SkBlendMode::kLastMode)) { in CreateProc() 96 void SkShader_Blend::flatten(SkWriteBuffer& buffer) const { in flatten() 97 buffer in flatten() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/src/ |
H A D | image_receiver.cpp | 91 static int32_t SaveSTP(uint32_t *buffer, in SaveSTP() argument 97 std::unique_ptr<PixelMap> pixelMap = PixelMap::Create(buffer, bufferSize, initializationOpts); in SaveSTP() 117 OHOS::sptr<OHOS::SurfaceBuffer> buffer, in SaveBufferAsImage() 121 if (buffer != nullptr) { in SaveBufferAsImage() 122 uint32_t *addr = reinterpret_cast<uint32_t *>(buffer->GetVirAddr()); in SaveBufferAsImage() 123 int32_t size = buffer->GetSize(); in SaveBufferAsImage() 126 (iraContext_->GetReceiverBufferConsumer())->ReleaseBuffer(buffer, -1); in SaveBufferAsImage() 131 IMAGE_LOGD("SaveBufferAsImage buffer == nullptr"); in SaveBufferAsImage() 146 void ImageReceiver::ReleaseBuffer(OHOS::sptr<OHOS::SurfaceBuffer> &buffer) __attribute__((no_sanitize("cfi"))) in ReleaseBuffer() argument 149 if (buffer ! in ReleaseBuffer() 116 SaveBufferAsImage(int &fd, OHOS::sptr<OHOS::SurfaceBuffer> buffer, InitializationOptions initializationOpts) SaveBufferAsImage() argument 234 OHOS::sptr<OHOS::SurfaceBuffer> buffer; ReadNextImage() local 251 OHOS::sptr<OHOS::SurfaceBuffer> buffer; ReadNextImage() local 267 OHOS::sptr<OHOS::SurfaceBuffer> buffer; ReadLastImage() local 286 OHOS::sptr<OHOS::SurfaceBuffer> buffer; ReadLastImage() local [all...] |
/kernel/linux/linux-5.10/sound/firewire/motu/ |
H A D | amdtp-motu.c | 117 __be32 *buffer, unsigned int data_blocks, in read_pcm_s32() 137 byte = (u8 *)buffer + p->pcm_byte_offset; in read_pcm_s32() 146 buffer += s->data_block_quadlets; in read_pcm_s32() 153 __be32 *buffer, unsigned int data_blocks, in write_pcm_s32() 173 byte = (u8 *)buffer + p->pcm_byte_offset; in write_pcm_s32() 183 buffer += s->data_block_quadlets; in write_pcm_s32() 189 static void write_pcm_silence(struct amdtp_stream *s, __be32 *buffer, in write_pcm_silence() argument 199 byte = (u8 *)buffer + p->pcm_byte_offset; in write_pcm_silence() 208 buffer += s->data_block_quadlets; in write_pcm_silence() 234 static void write_midi_messages(struct amdtp_stream *s, __be32 *buffer, in write_midi_messages() argument 116 read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int data_blocks, unsigned int pcm_frames) read_pcm_s32() argument 152 write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int data_blocks, unsigned int pcm_frames) write_pcm_s32() argument 260 read_midi_messages(struct amdtp_stream *s, __be32 *buffer, unsigned int data_blocks) read_midi_messages() argument 280 copy_sph(u32 *frames, __be32 *buffer, unsigned int data_blocks, unsigned int data_block_quadlets) copy_sph() argument 294 copy_message(u64 *frames, __be32 *buffer, unsigned int data_blocks, unsigned int data_block_quadlets) copy_message() argument 380 write_sph(struct amdtp_stream *s, __be32 *buffer, unsigned int data_blocks) write_sph() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/radio/ |
H A D | radio-mr800.c | 123 u8 *buffer; member 124 struct mutex lock; /* buffer locking */ 141 radio->buffer[0] = 0x00; in amradio_send_cmd() 142 radio->buffer[1] = 0x55; in amradio_send_cmd() 143 radio->buffer[2] = 0xaa; in amradio_send_cmd() 144 radio->buffer[3] = extralen; in amradio_send_cmd() 145 radio->buffer[4] = cmd; in amradio_send_cmd() 146 radio->buffer[5] = arg; in amradio_send_cmd() 147 radio->buffer[6] = 0x00; in amradio_send_cmd() 148 radio->buffer[ in amradio_send_cmd() [all...] |
/kernel/linux/linux-6.6/drivers/media/radio/ |
H A D | radio-mr800.c | 123 u8 *buffer; member 124 struct mutex lock; /* buffer locking */ 141 radio->buffer[0] = 0x00; in amradio_send_cmd() 142 radio->buffer[1] = 0x55; in amradio_send_cmd() 143 radio->buffer[2] = 0xaa; in amradio_send_cmd() 144 radio->buffer[3] = extralen; in amradio_send_cmd() 145 radio->buffer[4] = cmd; in amradio_send_cmd() 146 radio->buffer[5] = arg; in amradio_send_cmd() 147 radio->buffer[6] = 0x00; in amradio_send_cmd() 148 radio->buffer[ in amradio_send_cmd() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | tcp_mmap.c | 136 void *buffer; in mmap_large_buffer() local 141 buffer = mmap(NULL, sz, PROT_READ | PROT_WRITE, in mmap_large_buffer() 144 if (buffer == (void *)-1) { in mmap_large_buffer() 146 buffer = mmap(NULL, sz, PROT_READ | PROT_WRITE, in mmap_large_buffer() 149 if (buffer != (void *)-1) in mmap_large_buffer() 153 return buffer; in mmap_large_buffer() 174 unsigned char *buffer = NULL; in child_thread() local 191 buffer = mmap_large_buffer(chunk_size, &buffer_sz); in child_thread() 192 if (buffer == (void *)-1) { in child_thread() 246 lu = read(fd, buffer, mi in child_thread() 449 unsigned char *buffer; main() local [all...] |
/kernel/linux/linux-6.6/sound/firewire/motu/ |
H A D | amdtp-motu.c | 94 __be32 *buffer, unsigned int data_blocks, in read_pcm_s32() 114 byte = (u8 *)buffer + p->pcm_byte_offset; in read_pcm_s32() 123 buffer += s->data_block_quadlets; in read_pcm_s32() 130 __be32 *buffer, unsigned int data_blocks, in write_pcm_s32() 150 byte = (u8 *)buffer + p->pcm_byte_offset; in write_pcm_s32() 160 buffer += s->data_block_quadlets; in write_pcm_s32() 166 static void write_pcm_silence(struct amdtp_stream *s, __be32 *buffer, in write_pcm_silence() argument 176 byte = (u8 *)buffer + p->pcm_byte_offset; in write_pcm_silence() 185 buffer += s->data_block_quadlets; in write_pcm_silence() 211 static void write_midi_messages(struct amdtp_stream *s, __be32 *buffer, in write_midi_messages() argument 93 read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int data_blocks, unsigned int pcm_frames) read_pcm_s32() argument 129 write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int data_blocks, unsigned int pcm_frames) write_pcm_s32() argument 237 read_midi_messages(struct amdtp_stream *s, __be32 *buffer, unsigned int data_blocks) read_midi_messages() argument 257 copy_sph(u32 *frames, __be32 *buffer, unsigned int data_blocks, unsigned int data_block_quadlets) copy_sph() argument 271 copy_message(u64 *frames, __be32 *buffer, unsigned int data_blocks, unsigned int data_block_quadlets) copy_message() argument 373 write_sph(struct amdtp_motu_cache *cache, __be32 *buffer, unsigned int data_blocks, unsigned int data_block_quadlets) write_sph() argument [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | buffer.c | 48 ref->buffer = buf; in buffer_create() 112 atomic_fetch_add_explicit(&buf->buffer->refcount, 1, memory_order_relaxed); in av_buffer_ref() 121 b = (*dst)->buffer; in buffer_replace() 149 if (buf->buffer->flags & AV_BUFFER_FLAG_READONLY) in av_buffer_is_writable() 152 return atomic_load(&buf->buffer->refcount) == 1; in av_buffer_is_writable() 157 return buf->buffer->opaque; in av_buffer_get_opaque() 162 return atomic_load(&buf->buffer->refcount); in av_buffer_get_ref_count() 190 /* allocate a new buffer with av_realloc(), so it will be reallocatable in av_buffer_realloc() 202 buf->buffer->flags_internal |= BUFFER_FLAG_REALLOCATABLE; in av_buffer_realloc() 209 if (!(buf->buffer in av_buffer_realloc() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | LocaleIDParser.java | 36 * Temporary buffer for parsed sections of data. 38 private StringBuilder buffer; field in LocaleIDParser 66 buffer = new StringBuilder(id.length + 5); in LocaleIDParser() 72 buffer = new StringBuilder(id.length + 5); in reset() 75 // utilities for working on text in the buffer 78 * Append c to the buffer. 81 buffer.append(c); in append() 89 * Returns the text in the buffer from start to blen as a String. 92 return buffer.substring(start); in getString() 96 * Set the length of the buffer t [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | LocaleIDParser.java | 38 * Temporary buffer for parsed sections of data. 40 private StringBuilder buffer; field in LocaleIDParser 68 buffer = new StringBuilder(id.length + 5); in LocaleIDParser() 74 buffer = new StringBuilder(id.length + 5); in reset() 77 // utilities for working on text in the buffer 80 * Append c to the buffer. 83 buffer.append(c); in append() 91 * Returns the text in the buffer from start to blen as a String. 94 return buffer.substring(start); in getString() 98 * Set the length of the buffer t [all...] |
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_video_buffer.c | 199 vl_video_buffer_destroy(struct pipe_video_buffer *buffer) in vl_video_buffer_destroy() argument 201 struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; in vl_video_buffer_destroy() 215 vl_video_buffer_set_associated_data(buffer, NULL, NULL, NULL); in vl_video_buffer_destroy() 217 FREE(buffer); in vl_video_buffer_destroy() 221 vl_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) in vl_video_buffer_sampler_view_planes() argument 223 struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; in vl_video_buffer_sampler_view_planes() 224 unsigned num_planes = util_format_get_num_planes(buffer->buffer_format); in vl_video_buffer_sampler_view_planes() 257 vl_video_buffer_sampler_view_components(struct pipe_video_buffer *buffer) in vl_video_buffer_sampler_view_components() argument 259 struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; in vl_video_buffer_sampler_view_components() 305 vl_video_buffer_surfaces(struct pipe_video_buffer *buffer) in vl_video_buffer_surfaces() argument 445 struct vl_video_buffer *buffer; vl_video_buffer_create_ex2() local [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | ByteString.java | 100 * System.arraycopy} is nullification of a new buffer before the copy. It has been shown the 376 static ByteString wrap(ByteBuffer buffer) { in wrap() argument 377 if (buffer.hasArray()) { in wrap() 378 final int offset = buffer.arrayOffset(); in wrap() 379 return ByteString.wrap(buffer.array(), offset + buffer.position(), buffer.remaining()); in wrap() 381 return new NioByteString(buffer); in wrap() 406 * @param bytes source buffer 531 * buffer i 999 private byte[] buffer; global() field in ByteString.Output 1057 copyArray(byte[] buffer, int length) copyArray() argument 1174 private final byte[] buffer; global() field in ByteString.CodedBuilder [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | strutil.h | 60 // to identifiers in the protocol buffer language, not to natural-language 302 // a dest buffer. This should be used for non performance critical 458 // All functions take the output buffer as an arg. 460 // which may not be the beginning of the input buffer. 463 // Suggested buffer size for FastToBuffer functions. Also works with 467 PROTOBUF_EXPORT char* FastInt32ToBuffer(int32 i, char* buffer); 468 PROTOBUF_EXPORT char* FastInt64ToBuffer(int64 i, char* buffer); 469 char* FastUInt32ToBuffer(uint32 i, char* buffer); // inline below 470 char* FastUInt64ToBuffer(uint64 i, char* buffer); // inline below 471 PROTOBUF_EXPORT char* FastHexToBuffer(int i, char* buffer); 476 FastIntToBuffer(int i, char* buffer) FastIntToBuffer() argument 480 FastUIntToBuffer(unsigned int i, char* buffer) FastUIntToBuffer() argument 484 FastLongToBuffer(long i, char* buffer) FastLongToBuffer() argument 488 FastULongToBuffer(unsigned long i, char* buffer) FastULongToBuffer() argument 515 FastUInt32ToBuffer(uint32 i, char* buffer) FastUInt32ToBuffer() argument 519 FastUInt64ToBuffer(uint64 i, char* buffer) FastUInt64ToBuffer() argument [all...] |
/foundation/graphic/graphic_2d/rosen/samples/hello_native_buffer/ |
H A D | hello_native_buffer.cpp | 68 OH_NativeBuffer* buffer = OH_NativeBuffer_Alloc(&config); in main() local 69 if (buffer == nullptr) { in main() 73 int32_t ret = OH_NativeBuffer_Reference(buffer); in main() 79 OH_NativeBuffer_GetConfig(buffer, &checkConfig); in main() 82 uint32_t hwBufferID = OH_NativeBuffer_GetSeqNum(buffer); in main() 83 OHOS::SurfaceBuffer *sfBuffer = SurfaceBuffer::NativeBufferToSurfaceBuffer(buffer); in main() 94 ret = OH_NativeBuffer_Map(buffer, &virAddr); in main() 104 ret = OH_NativeBuffer_Unreference(buffer); in main() 113 ret = OH_NativeBuffer_Unmap(buffer); in main() 118 ret = OH_NativeBuffer_Unreference(buffer); in main() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/systemtest/ |
H A D | hdilayer_context_systest.cpp | 54 sptr<SurfaceBuffer> buffer; in DrawBufferColor() local 64 GSError ret = pSurface_->RequestBuffer(buffer, releaseFence, config); in DrawBufferColor() 71 if (buffer == nullptr) { in DrawBufferColor() 75 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); in DrawBufferColor() 76 DrawColor(addr, (uint32_t)buffer->GetWidth(), (uint32_t)buffer->GetHeight()); in DrawBufferColor() 85 ret = pSurface_->FlushBuffer(buffer, -1, flushConfig); in DrawBufferColor() 102 sptr<SurfaceBuffer> buffer = nullptr; in FillHdiLayer() local 106 GSError ret = cSurface_->AcquireBuffer(buffer, acquireFence, timestamp, damage); in FillHdiLayer() 113 hdiLayer_->SetBuffer(buffer, acquireSyncFenc in FillHdiLayer() [all...] |