Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 16 of 16) 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.cpp39 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit) in MediaBufferGroup() argument
48 if (buffer_size >= kSharedMemoryThreshold) { in MediaBufferGroup()
54 size_t augmented_size = buffer_size + sizeof(MediaBuffer::SharedControl); in MediaBufferGroup()
61 ALOGW("Only allocated %zu shared buffers of size %zu", i, buffer_size); in MediaBufferGroup()
73 MediaBuffer *buffer = new MediaBuffer(buffer_size); in MediaBufferGroup()
76 ALOGW("Only allocated %zu malloc buffers of size %zu", i, buffer_size); in MediaBufferGroup()
/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.cpp213 int32 buffer_size; in PVInitVideoDecoder() local
214 if ((buffer_size = BitstreamOpen(stream, idx)) < 0) in PVInitVideoDecoder()
220 video->memoryUsage += buffer_size; in PVInitVideoDecoder()
1056 … uint32 timestamp[], int32 buffer_size[], uint use_ext_timestamp[], uint8 *currYUV) in PVDecodeVideoFrame() argument
1061 …status = (PV_STATUS)PVDecodeVopHeader(decCtrl, buffer, timestamp, buffer_size, &header_info, use_e… in PVDecodeVideoFrame()
1065 if (PVDecodeVopBody(decCtrl, buffer_size) != PV_TRUE) in PVDecodeVideoFrame()
1084 …uint32 timestamp[], int32 buffer_size[], VopHeaderInfo *header_info, uint use_ext_timestamp [], ui… in PVDecodeVopHeader() argument
1106 if (buffer_size[idx] <= 0) in PVDecodeVopHeader()
1120 BitstreamReset(stream, buffer[idx], buffer_size[idx]); in PVDecodeVopHeader()
1129 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/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/av/media/libstagefright/include/
DMediaBufferGroup.h35 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp148 size_t buffer_size; in ReadPng() local
149 if (!in->Next((const void**)&signature, &buffer_size)) { in ReadPng()
155 if (buffer_size < kPngSignatureSize || png_sig_cmp(signature, 0, kPngSignatureSize) != 0) { in ReadPng()
162 in->BackUp(buffer_size - kPngSignatureSize); in ReadPng()
/frameworks/opt/net/wifi/libwifi_hal/
Dhal_tool.cpp254 char* buffer, int buffer_size) { in wifi_get_firmware_version_stub() argument
275 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.cpp1358 jbyteArray nmeaArray, jint buffer_size) { in android_location_GnssLocationProvider_read_nmea() argument
1362 if (length > buffer_size) in android_location_GnssLocationProvider_read_nmea()
1363 length = buffer_size; in android_location_GnssLocationProvider_read_nmea()