/third_party/ffmpeg/libavcodec/ |
H A D | flac_parser.c | 60 uint8_t *buffer; member 68 int offset; /**< byte offset from start of FLACParseContext->buffer */ 87 CRC-8 verified header within buffer */ 88 FLACHeaderMarker *best_header; /**< highest scoring header within buffer */ 94 FifoBuffer fifo_buf; /**< buffer to store all data until headers 97 uint8_t *wrap_buf; /**< general fifo read buffer when wrapped */ 98 int wrap_buf_allocated_size; /**< actual allocated size of the buffer */ 140 return (f->wptr - f->buffer) + (f->end - f->rptr); in flac_fifo_size() 146 return f->end - f->buffer - flac_fifo_size(f); in flac_fifo_space() 152 * If possible the pointer points within the fifo buffer [all...] |
/third_party/backends/backend/ |
H A D | test-picture.c | 47 init_picture_buffer (Test_Device * test_device, SANE_Byte ** buffer, in init_picture_buffer() argument 62 DBG (2, "(child) init_picture_buffer test_device=%p, buffer=%p, " in init_picture_buffer() 63 "buffer_size=%p\n",(void*)test_device,(void*)buffer,(void*)buffer_size); in init_picture_buffer() 77 DBG (1, "(child) init_picture_buffer: couldn't malloc buffer\n"); in init_picture_buffer() 81 if (buffer) in init_picture_buffer() 82 *buffer = b; in init_picture_buffer() 126 DBG (1, "(child) init_picture_buffer: couldn't malloc buffer\n"); in init_picture_buffer() 129 if (buffer) in init_picture_buffer() 130 *buffer = b; in init_picture_buffer() 226 DBG (1, "(child) init_picture_buffer: couldn't malloc buffer\ in init_picture_buffer() [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/test/util/ |
H A D | eventlogger_util_test.cpp | 26 char buffer[BUF_SIZE_64] = {'\0'}; in InitSeLinuxEnabled() local 29 fgets(buffer, sizeof(buffer), fp); in InitSeLinuxEnabled() 30 std::string str = buffer; in InitSeLinuxEnabled() 31 printf("buffer is %s\n", str.c_str()); in InitSeLinuxEnabled()
|
/base/account/os_account/interfaces/kits/capi/osaccount/src/ |
H A D | os_account.cpp | 24 OsAccount_ErrCode OH_OsAccount_GetName(char *buffer, size_t buffer_size) in OH_OsAccount_GetName() argument 26 if ((buffer == nullptr) || (buffer_size == 0)) { in OH_OsAccount_GetName() 42 err = strncpy_s(buffer, buffer_size, accountName.c_str(), accountSize); in OH_OsAccount_GetName() 47 buffer[accountSize] = '\0'; in OH_OsAccount_GetName()
|
/base/startup/init/test/moduletest/ |
H A D | param_test_module.c | 42 char buffer[32] = { 0 }; // 32 buffer size
in PluginParamCmdWriteParam() local 46 int ret = sprintf_s(buffer, sizeof(buffer), "%d", count);
in PluginParamCmdWriteParam() 48 SystemWriteParam(argv[0], buffer);
in PluginParamCmdWriteParam()
|
/base/usb/usb_manager/services/native/include/ |
H A D | usb_descriptor_parser.h | 27 static int32_t ParseDeviceDescriptor(const uint8_t *buffer, uint32_t length, UsbDevice &dev); 30 static int32_t ParseConfigDescriptor(const uint8_t *buffer, uint32_t length, uint32_t &cursor, USBConfig &config); 31 static int32_t ParseInterfaceDescriptor(const uint8_t *buffer, uint32_t length, uint32_t &cursor, 33 static int32_t ParseEndpointDescriptor(const uint8_t *buffer, uint32_t length, uint32_t &cursor, USBEndpoint &ep);
|
/third_party/ffmpeg/libavfilter/ |
H A D | gblur.h | 45 float *buffer; member 46 float *localbuf; ///< temporary buffer for horiz_slice. NULL if not used 54 void (*horiz_slice)(float *buffer, int width, int height, int steps, float nu, float bscale, float *localbuf); 55 void (*verti_slice)(float *buffer, int width, int height, int slice_start, int slice_end, int steps, 57 void (*postscale_slice)(float *buffer, int length, float postscale, float min, float max);
|
/third_party/libsnd/tests/ |
H A D | sftest.c | 34 static short buffer [BUFFER_SIZE] ; variable 53 while ((count = sf_read_short (file, buffer, BUFFER_SIZE))) in main() 55 if (abs (buffer [k]) > max) in main() 56 max = abs (buffer [k]) ; in main()
|
/third_party/littlefs/bd/ |
H A D | lfs_rambd.h | 43 // Optional statically allocated buffer for the block device. 44 void *buffer; member 49 uint8_t *buffer; member 63 lfs_off_t off, void *buffer, lfs_size_t size); 69 lfs_off_t off, const void *buffer, lfs_size_t size);
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | radeon_video.h | 39 /* video buffer representation */ 48 /* create a buffer in the winsys */ 49 bool si_vid_create_buffer(struct pipe_screen *screen, struct rvid_buffer *buffer, unsigned size, 52 /* create a tmz buffer in the winsys */ 53 bool si_vid_create_tmz_buffer(struct pipe_screen *screen, struct rvid_buffer *buffer, unsigned size, 56 /* destroy a buffer */ 57 void si_vid_destroy_buffer(struct rvid_buffer *buffer); 59 /* reallocate a buffer, preserving its content */ 63 /* clear the buffer with zeros */ 64 void si_vid_clear_buffer(struct pipe_context *context, struct rvid_buffer *buffer); [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | numbertest_doubleconversion.cpp | 24 char buffer[DoubleToStringConverter::kBase10MaximalLength + 1]; in testDoubleConversionApi() local 33 buffer, in testDoubleConversionApi() 34 sizeof(buffer), in testDoubleConversionApi() 40 UnicodeString result(buffer, length); in testDoubleConversionApi()
|
/third_party/node/deps/v8/src/codegen/ppc/ |
H A D | cpu-ppc.cc | 16 void CpuFeatures::FlushICache(void* buffer, size_t size) { in FlushICache() argument 24 : "r"(buffer) in FlushICache() 32 reinterpret_cast<byte*>(reinterpret_cast<intptr_t>(buffer) & ~mask); in FlushICache() 33 byte* end = static_cast<byte*>(buffer) + size; in FlushICache()
|
/third_party/node/deps/v8/src/base/ |
H A D | file-utils.cc | 24 auto buffer = std::make_unique<char[]>(basename_start + name_length + 1); in RelativePath() local 25 if (basename_start > 0) memcpy(buffer.get(), exec_path, basename_start); in RelativePath() 26 memcpy(buffer.get() + basename_start, name, name_length); in RelativePath() 27 return buffer; in RelativePath()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_buffer.h | 33 /// Pipe video buffer interface starts 37 * creates a video buffer 43 * destroy this video buffer 46 d3d12_video_buffer_destroy(struct pipe_video_buffer *buffer); 52 d3d12_video_buffer_get_sampler_view_planes(struct pipe_video_buffer *buffer); 58 d3d12_video_buffer_get_sampler_view_components(struct pipe_video_buffer *buffer); 64 d3d12_video_buffer_get_surfaces(struct pipe_video_buffer *buffer); 86 /// Pipe video buffer interface ends
|
/third_party/mesa3d/src/gallium/winsys/i915/drm/ |
H A D | i915_drm_winsys.h | 62 i915_drm_buffer(struct i915_winsys_buffer *buffer) in i915_drm_buffer() argument 64 return (struct i915_drm_buffer *)buffer; in i915_drm_buffer() 68 intel_bo(struct i915_winsys_buffer *buffer) in intel_bo() argument 70 return i915_drm_buffer(buffer)->bo; in intel_bo()
|
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | _flushlbf.c | 24 * @tc.desc : Verify that flushing the line buffer was successful. 29 char buffer[1024] = {0}; in flushlbf_0100() local 41 int32_t rsize = fread(buffer, 1, 10, fd); in flushlbf_0100() 47 fread(buffer, 1, 20, fp); in flushlbf_0100() 48 EXPECT_STREQ("flushlbf_0100", buffer, array); in flushlbf_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/ |
H A D | unistd_Exit_test.cpp | 33 char buffer[BUF_SIZE]; in HWTEST_F() local 34 read(pipefd[0], buffer, sizeof(buffer)); in HWTEST_F() 36 EXPECT_STREQ("before exit", buffer); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/time/ |
H A D | strftime_l.c | 46 char buffer[gBufferSize]; in strftime_l_0100() local 48 strftime_l(buffer, sizeof(buffer) - 1, "%c", timeptr, m_locale); in strftime_l_0100() 49 EXPECT_STREQ("strftime_l_0100", buffer, test_asctime_data[i].result); in strftime_l_0100()
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
H A D | FrameBufferOzone.cpp | 21 buffer = sw::Surface::create(width, height, 1, format, nullptr, in FrameBufferOzone() 28 delete buffer; in ~FrameBufferOzone() 33 framebuffer = buffer->lockInternal(0, 0, 0, sw::LOCK_READWRITE, sw::PUBLIC); in lock() 40 buffer->unlockInternal(); in unlock()
|
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/ |
H A D | Buffer.cpp | 26 buffer = device.createBuffer(bufferInfo); in Buffer() 28 auto memRequirements = device.getBufferMemoryRequirements(buffer); in Buffer() 35 device.bindBufferMemory(buffer, bufferMemory, 0); in Buffer() 41 device.destroyBuffer(buffer); in ~Buffer()
|
/third_party/skia/src/utils/ |
H A D | SkJSONWriter.cpp | 35 char buffer[kBufferSize]; in appendf() local 39 int length = _vsnprintf_s(buffer, kBufferSize, _TRUNCATE, fmt, argp); in appendf() 41 int length = vsnprintf(buffer, kBufferSize, fmt, argp); in appendf() 45 this->write(buffer, length); in appendf()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 83 int32_t ReadCurrentFile(unzFile &uf, unz_file_info &fileInfo, std::unique_ptr<uint8_t[]> &buffer, in ReadCurrentFile() argument 86 buffer = std::make_unique<uint8_t[]>(fileInfo.uncompressed_size); in ReadCurrentFile() 88 if (buffer == nullptr) { in ReadCurrentFile() 89 RESMGR_HILOGE(RESMGR_TAG, "Error allocating memory for read buffer"); in ReadCurrentFile() 99 err = unzReadCurrentFile(uf, buffer.get(), bufLen); in ReadCurrentFile() 108 int32_t HapParser::ReadFileFromZip(unzFile &uf, const char *fileName, std::unique_ptr<uint8_t[]> &buffer, in ReadFileFromZip() argument 118 if (ReadCurrentFile(uf, fileInfo, buffer, bufLen) != OK) { in ReadFileFromZip() 188 int32_t ReadFileInfoFromZip(unzFile &uf, const char *fileName, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen) in ReadFileInfoFromZip() argument 190 int err = HapParser::ReadFileFromZip(uf, fileName, buffer, bufLen); in ReadFileInfoFromZip() 199 int32_t HapParser::ReadIndexFromFile(const char *zipFile, std::unique_ptr<uint8_t[]> &buffer, in ReadIndexFromFile() argument 419 ParseString(const char *buffer, uint32_t &offset, std::string &id, bool includeTemi = true) ParseString() argument 440 ParseStringArray(const char *buffer, uint32_t &offset, std::vector<std::string> &values) ParseStringArray() argument 481 ParseIdItem(const char *buffer, uint32_t &offset, std::shared_ptr<IdItem> idItem, const uint32_t &selectedTypes) ParseIdItem() argument 512 ParseId(const char *buffer, uint32_t &offset, std::shared_ptr<ResId> id, const uint32_t &selectedTypes) ParseId() argument 551 ParseKey(const char *buffer, uint32_t &offset, std::shared_ptr<ResKey> key, bool &match, const std::shared_ptr<ResConfigImpl> defaultConfig, const std::string &deviceType, const uint32_t &selectedTypes) ParseKey() argument 605 ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc, const std::shared_ptr<ResConfigImpl> defaultConfig, const uint32_t &selectedTypes) ParseResHex() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | CommandEncoder.cpp | 62 "%s sample count (%u) is not 1 when copying to or from a buffer.", in ValidateTextureSampleCountInBufferCopyCommands() 72 // For depth-stencil texture, buffer offset must be a multiple of 4. in ValidateLinearTextureCopyOffset() 95 "buffer copy.", in ValidateTextureDepthStencilToBufferCopyRestrictions() 393 "The destination buffer %s offset (%u) is not a multiple of 256.", in ValidateQuerySetResolve() 397 // The destination buffer must have enough storage, from destination offset, to contain in ValidateQuerySetResolve() 425 // Timestamp availability storage buffer in EncodeTimestampsToNanosecondsConversion() 436 // Timestamp params uniform buffer in EncodeTimestampsToNanosecondsConversion() 661 "Source and destination are the same buffer (%s).", source); in APICopyBufferToBuffer() 701 DAWN_TRY_CONTEXT(ValidateCanUseAs(source->buffer, wgpu::BufferUsage::CopySrc), in APICopyBufferToTexture() 702 "validating source %s usage.", source->buffer); in APICopyBufferToTexture() 882 APIClearBuffer(BufferBase* buffer, uint64_t offset, uint64_t size) APIClearBuffer() argument 1033 APIWriteBuffer(BufferBase* buffer, uint64_t bufferOffset, const uint8_t* data, uint64_t size) APIWriteBuffer() argument [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/encoder/include/ |
H A D | videoenc_api11_sample.h | 88 void SetBufferParameter(OH_AVBuffer *buffer); 89 void SetLTRParameter(OH_AVBuffer *buffer); 106 void SetEOS(uint32_t index, OH_AVBuffer *buffer); 107 int32_t PushData(OH_AVBuffer *buffer, uint32_t index, int32_t &result); 122 void DumpLtrInfo(OH_AVBuffer *buffer); 123 void DumpQPInfo(OH_AVBuffer *buffer); 124 void DumpInfo(OH_AVCodecBufferAttr attr, OH_AVBuffer *buffer);
|
/test/xts/hats/hdf/camera/cameraHdi/buffer_manager/ |
H A D | buffer_manager_utest.h | 56 void DequeueBuffer(std::shared_ptr<IBuffer>& buffer); 120 virtual void Deliver(std::shared_ptr<IBuffer>& buffer); 121 virtual void Receive(std::shared_ptr<IBuffer>& buffer); 122 virtual void Process(std::shared_ptr<IBuffer>& buffer); 137 void Deliver(std::shared_ptr<IBuffer>& buffer) override; 147 void Process(std::shared_ptr<IBuffer>& buffer) override; 166 void DeliverBuffer(std::shared_ptr<IBuffer>& buffer);
|