Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 22 of 22) sorted by relevance

/frameworks/compile/libbcc/bcinfo/Wrap/
Dfile_wrapper_output.cpp38 bool FileWrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { in Write() argument
43 if (buffer_size > 0) { in Write()
44 return buffer_size == fwrite(buffer, 1, buffer_size, _file); in Write()
Dwrapper_output.cpp19 bool WrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { in Write() argument
21 for (size_t i = 0; i < buffer_size; ++i) { in Write()
/frameworks/av/media/libstagefright/foundation/
DMediaBufferGroup.cpp51 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit) in MediaBufferGroup() argument
53 init(buffers, buffer_size, growthLimit); in MediaBufferGroup()
56 void MediaBufferGroup::init(size_t buffers, size_t buffer_size, size_t growthLimit) { in init() argument
66 if (buffer_size >= kSharedMemoryThreshold) { in init()
72 size_t augmented_size = buffer_size + sizeof(MediaBuffer::SharedControl); in init()
79 ALOGW("Only allocated %zu shared buffers of size %zu", i, buffer_size); in init()
94 MediaBuffer *buffer = new MediaBuffer(buffer_size); in init()
97 ALOGW("Only allocated %zu malloc buffers of size %zu", i, buffer_size); in init()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferGroup.h38 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
76 size_t buffers, size_t buffer_size, size_t growthLimit) -> bool { in wrap()
77 ((MediaBufferGroup*)handle)->init(buffers, buffer_size, growthLimit); in wrap()
109 void init(size_t buffers, size_t buffer_size, size_t growthLimit);
/frameworks/base/media/mca/filterfw/native/core/
Dnative_program.cpp136 static const int buffer_size = 1024; in CallGetValue() local
137 char result[buffer_size]; in CallGetValue()
138 result[buffer_size - 1] = '\0'; in CallGetValue()
139 getvalue_function_(key.c_str(), result, buffer_size, user_data_); in CallGetValue()
Dshader_program.cpp377 int buffer_size; in ScanUniforms() local
381 glGetProgramiv(program_, GL_ACTIVE_UNIFORM_MAX_LENGTH, &buffer_size); in ScanUniforms()
382 std::vector<GLchar> name(buffer_size); in ScanUniforms()
384 glGetActiveUniform(program_, i, buffer_size, NULL, &capacity, &type, &name[0]); in ScanUniforms()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp215 int32 buffer_size; in PVInitVideoDecoder() local
217 if ((buffer_size = BitstreamOpen(stream, idx)) < 0) in PVInitVideoDecoder()
223 video->memoryUsage += buffer_size; in PVInitVideoDecoder()
1017 … uint32 timestamp[], int32 buffer_size[], uint use_ext_timestamp[], uint8 *currYUV) in PVDecodeVideoFrame() argument
1022 …status = (PV_STATUS)PVDecodeVopHeader(decCtrl, buffer, timestamp, buffer_size, &header_info, use_e… in PVDecodeVideoFrame()
1026 if (PVDecodeVopBody(decCtrl, buffer_size) != PV_TRUE) in PVDecodeVideoFrame()
1045 …uint32 timestamp[], int32 buffer_size[], VopHeaderInfo *header_info, uint use_ext_timestamp [], ui… in PVDecodeVopHeader() argument
1067 if (buffer_size[idx] <= 0) in PVDecodeVopHeader()
1081 BitstreamReset(stream, buffer[idx], buffer_size[idx]); in PVDecodeVopHeader()
1090 buffer_size[idx] = 0; in PVDecodeVopHeader()
[all …]
Dbitstream.cpp124 void BitstreamReset(BitstreamDecVideo *stream, uint8 *buffer, int32 buffer_size) in BitstreamReset() argument
128 stream->data_end_pos = buffer_size; in BitstreamReset()
142 int buffer_size = 0; in BitstreamOpen() local
152 return buffer_size; in BitstreamOpen()
Dbitstream.h35 void BitstreamReset(BitstreamDecVideo *stream, uint8 *buffer, int32 buffer_size);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/include/
Dmp4dec_api.h157 …deoDecControls *decCtrl, uint8 *bitstream[], uint32 *timestamp, int32 *buffer_size, uint use_ext_t…
158 …(VideoDecControls *decCtrl, uint8 *buffer[], uint32 timestamp[], int32 buffer_size[], VopHeaderInf…
159 Bool PVDecodeVopBody(VideoDecControls *decCtrl, int32 buffer_size[]);
/frameworks/base/tools/aapt2/io/
DFileStream.cpp153 const size_t buffer_size = buffer_capacity_ - buffer_offset_; in Next() local
155 *size = buffer_size; in Next()
156 total_byte_count_ += buffer_size; in Next()
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
Dwrapper_output.h40 virtual bool Write(const uint8_t* buffer, size_t buffer_size);
Dfile_wrapper_output.h36 virtual bool Write(const uint8_t* buffer, size_t buffer_size);
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp58 size_t buffer_size = 0; in Next() local
60 if (!in_->Next(reinterpret_cast<const void**>(&buffer), &buffer_size)) { in Next()
70 if (XML_Parse(parser_, buffer, buffer_size, done) == XML_STATUS_ERROR) { in Next()
DXmlDom.cpp199 size_t buffer_size = 0; in Inflate() local
200 while (in->Next(reinterpret_cast<const void**>(&buffer), &buffer_size)) { in Inflate()
201 if (XML_Parse(parser.get(), buffer, buffer_size, false) == XML_STATUS_ERROR) { in Inflate()
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp154 size_t buffer_size; in ReadPng() local
155 if (!in->Next((const void**)&signature, &buffer_size)) { in ReadPng()
164 if (buffer_size < kPngSignatureSize || png_sig_cmp(signature, 0, kPngSignatureSize) != 0) { in ReadPng()
170 in->BackUp(buffer_size - kPngSignatureSize); in ReadPng()
/frameworks/av/include/media/
DMediaExtractorPluginApi.h67 bool (*init)(void *handle, size_t buffers, size_t buffer_size, size_t growthLimit);
DMediaExtractorPluginHelper.h94 bool init(size_t buffers, size_t buffer_size, size_t growthLimit = 0) {
95 return mGroup->init(mGroup->handle, buffers, buffer_size, growthLimit);
/frameworks/opt/net/wifi/libwifi_hal/
Dhal_tool.cpp258 char* buffer, int buffer_size) { in wifi_get_firmware_version_stub() argument
279 char* buffer, int buffer_size) { in wifi_get_driver_version_stub() argument
/frameworks/native/libs/vr/libpdx_uds/
Dremote_method_tests.cpp758 const int buffer_size = 20; in TEST_F() local
759 std::vector<std::uint8_t> buffer(buffer_size, 'x'); in TEST_F()
760 std::vector<std::uint8_t> expected(buffer_size, 0); in TEST_F()
763 EXPECT_EQ(buffer_size, ret); in TEST_F()
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp2132 jbyteArray nmeaArray, jint buffer_size) { in android_location_GnssLocationProvider_read_nmea() argument
2136 if (length > buffer_size) in android_location_GnssLocationProvider_read_nmea()
2137 length = buffer_size; in android_location_GnssLocationProvider_read_nmea()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp2879 unsigned int buffer_size = sizeof(fsverity_measurement) + kSha256Size; in assertFsverityRootHashMatches() local
2880 std::vector<char> buffer(buffer_size, 0); in assertFsverityRootHashMatches()