Home
last modified time | relevance | path

Searched refs:buffer (Results 5351 - 5375 of 8428) sorted by relevance

1...<<211212213214215216217218219220>>...338

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DMemoryBarrierTest.cpp18 // COMMAND_BARRIER_BIT: shader write -> indirect buffer read
21 // BUFFER_UPDATE_BARRIER_BIT: shader write -> buffer data upload/map
25 // SHADER_STORAGE_BARRIER_BIT: shader write -> buffer access
26 // any access -> buffer write
145 GLuint buffer,
200 void createUBOVerifyProgram(GLuint buffer, GLProgram *programOut);
211 void createIndirectVerifyProgram(GLuint buffer, GLProgram *programOut);
251 void createXfbVerifyProgram(GLuint buffer, GLProgram *programOut);
262 void createAtomicCounterVerifyProgram(GLuint buffer, GLProgram *programOut);
389 GLuint buffer, in createStorageBuffer()
388 createStorageBuffer(WriteResource writeResource, GLuint buffer, GLuint textureBuffer, size_t size, const void *initialData) createStorageBuffer() argument
1023 createUBOVerifyProgram(GLuint buffer, GLProgram *programOut) createUBOVerifyProgram() argument
1171 createIndirectVerifyProgram(GLuint buffer, GLProgram *programOut) createIndirectVerifyProgram() argument
1679 createXfbVerifyProgram(GLuint buffer, GLProgram *programOut) createXfbVerifyProgram() argument
1837 createAtomicCounterVerifyProgram(GLuint buffer, GLProgram *programOut) createAtomicCounterVerifyProgram() argument
[all...]
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/
H A Dwakeup_engine_impl.cpp273 [&](uint8_t *buffer, uint32_t size, bool isEnd) { in StartAudioSource()
274 ReadBufferCallback(buffer, size, isEnd); in StartAudioSource()
675 void WakeupEngineImpl::ReadBufferCallback(uint8_t *buffer, uint32_t size, bool isEnd) in ReadBufferCallback() argument
678 auto ret = IntellVoiceUtil::DeinterleaveAudioData(reinterpret_cast<int16_t *>(buffer), in ReadBufferCallback()
/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/
H A Dnative_audio_encoder.cpp22 #include "buffer/avsharedmemory.h"
81 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) override
89 AVCODEC_LOGD("At flush, eos or stop, no buffer available");
93 OH_AVMemory *data = GetInputData(codec_, index, buffer);
99 std::shared_ptr<AVSharedMemory> buffer) override
112 OH_AVMemory *data = GetOutputData(codec_, index, buffer);
131 CHECK_AND_RETURN_RET_LOG(memory != nullptr, nullptr, "get input buffer is nullptr!"); in GetInputData()
157 CHECK_AND_RETURN_RET_LOG(memory != nullptr, nullptr, "get output buffer is nullptr!"); in GetOutputData()
374 CHECK_AND_RETURN_RET_LOG(attr.size >= 0, AV_ERR_INVALID_VAL, "Invalid buffer size!"); in OH_AudioEncoder_PushInputData()
H A Dnative_audio_decoder.cpp22 #include "buffer/avsharedmemory.h"
77 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) override
85 AVCODEC_LOGD("At flush, eos or stop, no buffer available");
89 OH_AVMemory *data = GetInputData(codec_, index, buffer);
95 std::shared_ptr<AVSharedMemory> buffer) override
112 OH_AVMemory *data = GetOutputData(codec_, index, buffer);
131 CHECK_AND_RETURN_RET_LOG(memory != nullptr, nullptr, "get input buffer is nullptr!"); in GetInputData()
157 CHECK_AND_RETURN_RET_LOG(memory != nullptr, nullptr, "get output buffer is nullptr!"); in GetOutputData()
376 CHECK_AND_RETURN_RET_LOG(attr.size >= 0, AV_ERR_INVALID_VAL, "Invalid buffer size!"); in OH_AudioDecoder_PushInputData()
/foundation/multimedia/audio_framework/frameworks/native/audioutils/include/
H A Daudio_utils.h212 static void WriteDumpFile(FILE *dumpFile, void *buffer, size_t bufferSize);
332 bool CheckAudioData(uint8_t *buffer, size_t bufferLen);
333 bool DetectSignalData(int32_t *buffer, size_t bufferLen);
361 bool MockPcmData(uint8_t *buffer, size_t bufferLen); // mute data and insert signal data
/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/
H A Davdemuxer_demo_runner.cpp27 #include "buffer/avsharedmemorybase.h"
89 char* buffer = new char[length]; in AVSourceReadAt() local
90 infile.read(buffer, length); in AVSourceReadAt()
94 OH_AVBuffer_GetCapacity(data), buffer, length); in AVSourceReadAt()
95 delete[] buffer; in AVSourceReadAt()
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/
H A DInnerParamCheckTest.cpp451 std::shared_ptr<AVSharedMemory> buffer = signal_->inInnerBufQueue_.front(); in HWTEST_F() local
452 ASSERT_NE(nullptr, buffer); in HWTEST_F()
504 std::shared_ptr<AVSharedMemory> buffer = signal_->inInnerBufQueue_.front(); in HWTEST_F() local
505 ASSERT_NE(nullptr, buffer); in HWTEST_F()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/post_processor/
H A Dvideo_post_processor.cpp447 struct stat buffer; in copyFileByFd() local
448 DP_CHECK_ERROR_RETURN_LOG(fstat(srcFd, &buffer) == -1, in copyFileByFd()
453 while (offset < buffer.st_size) { in copyFileByFd()
454 bytesSent = sendfile(dstFd, srcFd, &offset, buffer.st_size - offset); in copyFileByFd()
/foundation/communication/netstack/frameworks/native/websocket_client/
H A Dwebsocket_client.cpp157 auto buffer = std::make_unique<unsigned char[]>(LWS_PRE + messageLen); in LwsCallbackClientWritable() local
158 if (buffer == nullptr) { in LwsCallbackClientWritable()
161 int result = memcpy_s(buffer.get() + LWS_PRE, LWS_PRE + messageLen, message, messageLen); in LwsCallbackClientWritable()
166 int bytesSent = lws_write(wsi, buffer.get() + LWS_PRE, messageLen, sendData.protocol); in LwsCallbackClientWritable()
/foundation/distributeddatamgr/pasteboard/framework/test/src/
H A Dconvert_utils_test.cpp84 std::vector<std::uint8_t> buffer; in TlvData() local
85 data->Init(buffer); in TlvData()
86 data->Encode(buffer); in TlvData()
88 decodePasteData.Decode(buffer); in TlvData()
/third_party/ffmpeg/libavcodec/
H A Ddxva2_h264.c318 /* Create an annex B bitstream buffer with only slice NAL and finalize slice */ in commit_bitstream_and_slice_buffer()
444 av_unused const uint8_t *buffer, in dxva2_h264_start_frame()
468 const uint8_t *buffer, in dxva2_h264_decode_slice()
482 ctx_pic->bitstream = buffer; in dxva2_h264_decode_slice()
485 position = buffer - ctx_pic->bitstream; in dxva2_h264_decode_slice()
443 dxva2_h264_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) dxva2_h264_start_frame() argument
467 dxva2_h264_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) dxva2_h264_decode_slice() argument
H A Dvaapi_decode.c40 VABufferID buffer; in ff_vaapi_decode_make_param_buffer() local
45 type, size, 1, (void*)data, &buffer); in ff_vaapi_decode_make_param_buffer()
48 "buffer (type %d): %d (%s).\n", in ff_vaapi_decode_make_param_buffer()
53 pic->param_buffers[pic->nb_param_buffers++] = buffer; in ff_vaapi_decode_make_param_buffer()
55 av_log(avctx, AV_LOG_DEBUG, "Param buffer (type %d, %zu bytes) " in ff_vaapi_decode_make_param_buffer()
56 "is %#x.\n", type, size, buffer); in ff_vaapi_decode_make_param_buffer()
96 "parameter buffer: %d (%s).\n", vas, vaErrorStr(vas)); in ff_vaapi_decode_make_slice_buffer()
100 av_log(avctx, AV_LOG_DEBUG, "Slice %d param buffer (%zu bytes) " in ff_vaapi_decode_make_slice_buffer()
110 "data buffer (size %zu): %d (%s).\n", in ff_vaapi_decode_make_slice_buffer()
117 av_log(avctx, AV_LOG_DEBUG, "Slice %d data buffer ( in ff_vaapi_decode_make_slice_buffer()
[all...]
H A Dvdpau_hevc.c35 const uint8_t *buffer, uint32_t size) in vdpau_hevc_start_frame()
397 return ff_vdpau_common_start_frame(pic_ctx, buffer, size); in vdpau_hevc_start_frame()
403 const uint8_t *buffer, uint32_t size) in vdpau_hevc_decode_slice()
413 val = ff_vdpau_add_buffer(pic_ctx, buffer, size); in vdpau_hevc_decode_slice()
34 vdpau_hevc_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) vdpau_hevc_start_frame() argument
402 vdpau_hevc_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) vdpau_hevc_decode_slice() argument
/third_party/ffmpeg/libavdevice/
H A Ddecklink_enc.cpp80 virtual HRESULT STDMETHODCALLTYPE GetBytes (void **buffer) in GetBytes() argument
84 *buffer = (void *)(_avframe->data[0] + _avframe->linesize[0] * (_avframe->height - 1)); in GetBytes()
86 *buffer = (void *)(_avframe->data[0]); in GetBytes()
88 *buffer = (void *)(_avpacket->data); in GetBytes()
225 av_log(avctx, AV_LOG_DEBUG, "output: %s, preroll: %d, frames buffer size: %d\n", in decklink_setup_video()
/third_party/ffmpeg/libavfilter/
H A Dvaapi_vpp.c570 VABufferID buffer; in ff_vaapi_vpp_make_param_buffers() local
576 type, size, count, (void*)data, &buffer); in ff_vaapi_vpp_make_param_buffers()
579 "buffer (type %d): %d (%s).\n", in ff_vaapi_vpp_make_param_buffers()
584 ctx->filter_buffers[ctx->nb_filter_buffers++] = buffer; in ff_vaapi_vpp_make_param_buffers()
586 av_log(avctx, AV_LOG_DEBUG, "Param buffer (type %d, %zu bytes, count %d) " in ff_vaapi_vpp_make_param_buffers()
587 "is %#x.\n", type, size, count, buffer); in ff_vaapi_vpp_make_param_buffers()
617 av_log(avctx, AV_LOG_ERROR, "Failed to create parameter buffer: " in ff_vaapi_vpp_render_picture()
622 av_log(avctx, AV_LOG_DEBUG, "Pipeline parameter buffer is %#x.\n", in ff_vaapi_vpp_render_picture()
628 av_log(avctx, AV_LOG_ERROR, "Failed to render parameter buffer: " in ff_vaapi_vpp_render_picture()
646 av_log(avctx, AV_LOG_ERROR, "Failed to free parameter buffer in ff_vaapi_vpp_render_picture()
[all...]
/third_party/ffmpeg/libavformat/
H A Dtls_schannel.c71 static void init_sec_buffer(SecBuffer *buffer, unsigned long type, in init_sec_buffer() argument
74 buffer->cbBuffer = size; in init_sec_buffer()
75 buffer->BufferType = type; in init_sec_buffer()
76 buffer->pvBuffer = data; in init_sec_buffer()
198 av_log(h, AV_LOG_ERROR, "Failed to allocate input buffer\n"); in tls_client_handshake_loop()
432 /* input buffer */ in tls_read()
446 /* grow buffer if needed */ in tls_read()
460 /* copy decrypted data to buffer */ in tls_read()
478 av_log(h, AV_LOG_ERROR, "Cannot renegotiate, encrypted data buffer not empty\n"); in tls_read()
/third_party/alsa-lib/src/pcm/
H A Dpcm_plugin.c350 snd_pcm_plugin_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) in snd_pcm_plugin_writei() argument
353 snd_pcm_areas_from_buf(pcm, areas, (void*)buffer); in snd_pcm_plugin_writei()
368 snd_pcm_plugin_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) in snd_pcm_plugin_readi() argument
371 snd_pcm_areas_from_buf(pcm, areas, buffer); in snd_pcm_plugin_readi()
484 * But this is needed, if the ring buffer wrap is reached and in snd_pcm_plugin_sync_hw_ptr_capture()
H A Dpcm_mmap.c134 * \brief Write interleaved frames to a PCM using direct buffer (mmap)
136 * \param buffer frames containing buffer
145 * all requested bytes are played or put to the playback ring buffer.
150 snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) in snd_pcm_mmap_writei() argument
153 snd_pcm_areas_from_buf(pcm, areas, (void*)buffer); in snd_pcm_mmap_writei()
159 * \brief Write non interleaved frames to a PCM using direct buffer (mmap)
170 * all requested bytes are played or put to the playback ring buffer.
184 * \brief Read interleaved frames from a PCM using direct buffer (mmap)
186 * \param buffer frame
200 snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) snd_pcm_mmap_readi() argument
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dusettest.c544 uint16_t buffer[1000]; in TestSerialized() local
562 length=uset_serialize(set, buffer, UPRV_LENGTHOF(buffer), &errorCode); in TestSerialized()
569 uset_getSerializedSet(&sset, buffer, length); in TestSerialized()
/third_party/icu/icu4c/source/common/
H A Ducnvsel.cpp284 void* buffer, int32_t bufferCapacity, UErrorCode* status) { in ucnvsel_serialize()
290 uint8_t *p = (uint8_t *)buffer; in ucnvsel_serialize()
466 ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* status) { in ucnvsel_openFromSerialized() argument
472 const uint8_t *p = (const uint8_t *)buffer; in ucnvsel_openFromSerialized()
283 ucnvsel_serialize(const UConverterSelector* sel, void* buffer, int32_t bufferCapacity, UErrorCode* status) ucnvsel_serialize() argument
/third_party/icu/icu4c/source/i18n/
H A Dfmtable.cpp846 UnicodeString buffer; in streamOut() local
854 defDateFormat->format(obj.getDate(), buffer); in streamOut()
855 stream << buffer; in streamOut() local
868 stream << '"' << obj.getString(buffer) << '"'; in streamOut()
/third_party/libsnd/src/
H A Dmpeg_decode.c43 static ssize_t mpeg_dec_io_read (void *priv, void *buffer, size_t nbytes) ;
47 mpeg_dec_io_read (void *priv, void *buffer, size_t nbytes) in mpeg_dec_io_read() argument
54 psf_binheader_readf (psf, "b", buffer, nbytes) ; in mpeg_dec_io_read()
59 return psf_fread (buffer, 1, nbytes, psf) ; in mpeg_dec_io_read()
555 ** buffer first. in mpeg_decoder_init()
/third_party/libuv/src/unix/
H A Dsunos.c379 * We could use a static buffer for the path manipulations that we need outside
383 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
387 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
394 res = readlink(buf, buffer, res); in uv_exepath()
399 buffer[res] = '\0'; in uv_exepath()
/third_party/libsnd/src/ALAC/
H A Dalac_decoder.c54 static void Zero32 (int32_t * buffer, uint32_t numItems, uint32_t stride) ;
133 - the decoded samples are interleaved into the output buffer in the order they arrive in
179 // bail if we ran off the end of the buffer in alac_decode()
241 // if shift active, skip the shift buffer but remember where it starts in alac_decode()
268 // uncompressed frame, copy data into the mix buffer to use common output code in alac_decode()
296 // now read the shifted values into the shift buffer in alac_decode()
306 // convert 32-bit integers into output buffer in alac_decode()
483 // now read the shifted values into the shift buffer in alac_decode()
641 static void Zero32 (int32_t * buffer, uint32_t numItems, uint32_t stride) in Zero32() argument
645 memset (buffer, in Zero32()
[all...]
/third_party/lzma/CPP/7zip/Archive/7z/
H A D7zEncode.cpp229 CByteBuffer_Wipe buffer(sizeInBytes); in CreateMixerCoder()
233 ((Byte *)buffer)[i * 2] = (Byte)c; in CreateMixerCoder()
234 ((Byte *)buffer)[i * 2 + 1] = (Byte)(c >> 8); in CreateMixerCoder()
236 RINOK(cryptoSetPassword->CryptoSetPassword((const Byte *)buffer, (UInt32)sizeInBytes)) in CreateMixerCoder()

Completed in 30 milliseconds

1...<<211212213214215216217218219220>>...338