Home
last modified time | relevance | path

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

12

/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()
1076 … uint32 timestamp[], int32 buffer_size[], uint use_ext_timestamp[], uint8 *currYUV) in PVDecodeVideoFrame() argument
1081 …status = (PV_STATUS)PVDecodeVopHeader(decCtrl, buffer, timestamp, buffer_size, &header_info, use_e… in PVDecodeVideoFrame()
1085 if (PVDecodeVopBody(decCtrl, buffer_size) != PV_TRUE) in PVDecodeVideoFrame()
1104 …uint32 timestamp[], int32 buffer_size[], VopHeaderInfo *header_info, uint use_ext_timestamp [], ui… in PVDecodeVopHeader() argument
1126 if (buffer_size[idx] <= 0) in PVDecodeVopHeader()
1140 BitstreamReset(stream, buffer[idx], buffer_size[idx]); in PVDecodeVopHeader()
1149 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dgzip_stream.cc50 ZeroCopyInputStream* sub_stream, Format format, int buffer_size) in GzipInputStream() argument
61 if (buffer_size == -1) { in GzipInputStream()
64 output_buffer_length_ = buffer_size; in GzipInputStream()
195 buffer_size(kDefaultBufferSize), in Options()
214 input_buffer_length_ = options.buffer_size; in Init()
Dgzip_stream.h73 int buffer_size = -1);
126 int buffer_size; member
Dcoded_stream.cc617 int buffer_size; in Refresh() local
618 if (NextNonEmpty(input_, &void_buffer, &buffer_size)) { in Refresh()
620 buffer_end_ = buffer_ + buffer_size; in Refresh()
621 GOOGLE_CHECK_GE(buffer_size, 0); in Refresh()
623 if (total_bytes_read_ <= INT_MAX - buffer_size) { in Refresh()
624 total_bytes_read_ += buffer_size; in Refresh()
636 overflow_bytes_ = total_bytes_read_ - (INT_MAX - buffer_size); in Refresh()
Dzero_copy_stream_unittest.cc359 options.buffer_size = gzip_buffer_size; in TEST_F()
394 options.buffer_size = gzip_buffer_size; in TEST_F()
426 options.buffer_size = gzip_buffer_size; in TEST_F()
454 options.buffer_size = gzip_buffer_size; in TEST_F()
485 options.buffer_size = gzip_buffer_size; in TEST_F()
/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.cpp2112 jbyteArray nmeaArray, jint buffer_size) { in android_location_GnssLocationProvider_read_nmea() argument
2116 if (length > buffer_size) in android_location_GnssLocationProvider_read_nmea()
2117 length = buffer_size; in android_location_GnssLocationProvider_read_nmea()

12