Searched refs:buffers (Results 1 - 25 of 89) sorted by relevance

1234

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLId.java26 public void glGenBuffers(int n, int[] buffers, int offset); argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); argument
32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); argument
H A DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { argument
20 GLES20.glGenBuffers(n, buffers, offset);
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument
33 GLES20.glDeleteBuffers(n, buffers, offset);
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/
H A DRefocusFilterd1new.java38 ImageBuffersForRenderScriptd1new buffers; field in class:RefocusFilterd1new
49 // Allocates, binds, and initializes buffers that interface between Java
54 buffers = new ImageBuffersForRenderScriptd1new(inputImage, margin,
56 buffers.initializeRenderScript(focalLayer, scriptC);
62 // Extracts the result from .rs file to {@code buffers.outputImage} in Java.
66 scriptC.forEach_PackOutputImage(buffers.outAllocation);
71 buffers.outAllocation.copyTo(buffers.outputImage);
75 return buffers.outputImage;
83 Bitmap mBitmap = Bitmap.createBitmap(buffers
[all...]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/
H A DRefocusFilterF32.java37 ImageBuffersForRenderScriptF32 buffers; field in class:RefocusFilterF32
48 // Allocates, binds, and initializes buffers that interface between Java
53 buffers = new ImageBuffersForRenderScriptF32(inputImage, margin,
55 buffers.initializeRenderScript(focalLayer, scriptC);
60 // Extracts the result from .rs file to {@code buffers.outputImage} in Java.
64 scriptC.forEach_PackOutputImage(buffers.outAllocation);
69 buffers.outAllocation.copyTo(buffers.outputImage);
73 return buffers.outputImage;
81 Bitmap mBitmap = Bitmap.createBitmap(buffers
[all...]
/frameworks/av/include/media/stagefright/
H A DMediaBufferGroup.h35 // create a media buffer group with preallocated buffers
36 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
55 size_t buffers() const;
/frameworks/av/media/libmediaextractor/include/media/stagefright/
H A DMediaBufferGroup.h35 // create a media buffer group with preallocated buffers
36 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
55 size_t buffers() const;
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DMediaBufferGroup.h35 // create a media buffer group with preallocated buffers
36 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
55 size_t buffers() const;
/frameworks/base/libs/hwui/debug/
H A DMockGlesDriver.h32 MOCK_METHOD2(glGenBuffers_, void(GLsizei n, GLuint* buffers));
H A DNullGlesDriver.cpp32 static void nullglGenCommon(GLsizei n, GLuint* buffers) { argument
36 buffers[i] = ++nextId;
40 void NullGlesDriver::glGenBuffers_(GLsizei n, GLuint* buffers) { argument
41 nullglGenCommon(n, buffers);
/frameworks/av/media/libmediaextractor/
H A DMediaBufferGroup.cpp34 // MediaBufferGroup may create shared memory buffers at a
51 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit) argument
55 if (mInternal->mGrowthLimit > 0 && buffers > mInternal->mGrowthLimit) {
56 ALOGW("Preallocated buffers %zu > growthLimit %zu, increasing growthLimit",
57 buffers, mInternal->mGrowthLimit);
58 mInternal->mGrowthLimit = buffers;
68 size_t total = (augmented_size + alignment - 1) / alignment * alignment * buffers;
71 for (size_t i = 0; i < buffers; ++i) {
74 ALOGW("Only allocated %zu shared buffers of size %zu", i, buffer_size);
85 for (size_t i = 0; i < buffers;
216 size_t MediaBufferGroup::buffers() const { function in class:android::MediaBufferGroup
[all...]
/frameworks/base/cmds/statsd/src/perfetto/
H A Dperfetto_config.proto50 repeated BufferConfig buffers = 1;
/frameworks/av/include/private/media/
H A DAudioTrackShared.h207 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
224 void* const mBuffers; // starting address of buffers
240 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
360 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
362 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/,
417 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
473 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
475 : ClientProxy(cblk, buffers, frameCount, frameSize,
495 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
570 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_ argument
688 AudioRecordServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool clientInServer) argument
[all...]
/frameworks/av/media/libmedia/
H A DIStreamSource.cpp54 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument
57 data.writeInt64(static_cast<int64_t>(buffers.size()));
58 for (size_t i = 0; i < buffers.size(); ++i) {
59 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i)));
98 Vector<sp<IMemory> > buffers; local
104 buffers.push(mem);
109 setBuffers(buffers);
H A DIMediaSource.cpp118 Vector<MediaBufferBase *> buffers; local
119 status_t ret = readMultiple(&buffers, 1 /* maxNumBuffers */, options);
120 *buffer = buffers.size() == 0 ? nullptr : buffers[0];
127 Vector<MediaBufferBase *> *buffers, uint32_t maxNumBuffers,
130 if (buffers == NULL || !buffers->isEmpty()) {
149 "Received %u+ buffers and requested %u buffers",
182 buffers
126 readMultiple( Vector<MediaBufferBase *> *buffers, uint32_t maxNumBuffers, const MediaSource::ReadOptions *options) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaCodec.java57 asynchronously and uses a set of input and output buffers. At a simplistic level, you request
59 processing. The codec uses up the data and transforms it into one of its empty output buffers.
68 buffers without mapping or copying them to ByteBuffers; thus, it is much more efficient.
71 efficient than using ByteBuffers, as some native buffers may be mapped into {@linkplain
78 Input buffers (for decoders) and output buffers (for encoders) contain compressed data according
83 of audio. In either case, buffers do not start or end on arbitrary byte boundaries, but rather on
88 Raw audio buffers contain entire frames of PCM audio data, which is one sample for each channel
110 In ByteBuffer mode video buffers are laid out according to their {@linkplain
118 <li><strong>flexible YUV buffers</stron
2947 invalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument
2957 validateInputByteBuffer( @ullable ByteBuffer[] buffers, int index) argument
2968 revalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument
2980 validateOutputByteBuffer( @ullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) argument
2991 invalidateByteBuffers(@ullable ByteBuffer[] buffers) argument
3008 freeByteBuffers(@ullable ByteBuffer[] buffers) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DGraphicsStatsService.java156 Log.w(TAG, String.format("Failed to notify '%s' (pid=%d) to rotate buffers",
253 Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, "deleting old graphicsstats buffers");
314 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode);
315 mActive.add(buffers);
316 return buffers;
322 private HashSet<File> dumpActiveLocked(long dump, ArrayList<HistoricalBuffer> buffers) { argument
323 HashSet<File> skipFiles = new HashSet<>(buffers.size());
324 for (int i = 0; i < buffers.size(); i++) {
325 HistoricalBuffer buffer = buffers.get(i);
359 ArrayList<HistoricalBuffer> buffers;
[all...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureGLToGL_test.cpp31 // This test requires 3 buffers to avoid deadlock because we're
86 // This test requires 3 buffers to complete run on a single thread.
160 sp<GraphicBuffer> buffers[2]; local
183 buffers[i] = mST->getCurrentBuffer();
186 // Destroy the GL texture object to release its ref on buffers[2].
196 EXPECT_EQ(1, buffers[0]->getStrongCount());
201 EXPECT_EQ(3, buffers[1]->getStrongCount());
206 sp<GraphicBuffer> buffers[3]; local
230 buffers[i] = mST->getCurrentBuffer();
234 // on buffers[
[all...]
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c42 static char* buffers[BUFFER_COUNT]; variable
150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) {
174 err = pcm_write(pcm, buffers[index], BUFFER_SIZE);
198 buffers[i] = malloc(BUFFER_SIZE);
/frameworks/base/tools/aapt2/
H A DStringPool_test.cpp261 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; local
262 StringPool::FlattenUtf8(&buffers[0], pool, &diag);
263 StringPool::FlattenUtf16(&buffers[1], pool, &diag);
265 // Test both UTF-8 and UTF-16 buffers.
266 for (const BigBuffer& buffer : buffers) {
314 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; local
317 EXPECT_THAT(StringPool::FlattenUtf8(&buffers[0], pool, &diag), Eq(true));
318 std::unique_ptr<uint8_t[]> data = util::Copy(buffers[0]);
319 test.setTo(data.get(), buffers[0].size());
323 EXPECT_THAT(StringPool::FlattenUtf16(&buffers[
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
78 ByteBuffer buffer = buffers[bufferIndex];
76 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
/frameworks/native/opengl/libagl/
H A DBufferObjectManager.cpp85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) argument
89 const GLuint t = *buffers++;
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DDisplaySourceService.java229 ByteBuffer[] buffers = null;
233 if (buffers == null) {
234 buffers = codec.getOutputBuffers();
237 ByteBuffer buffer = buffers[index];
245 buffers = null;
/frameworks/av/cmds/stagefright/
H A Dstream.cpp54 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
91 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { argument
92 mBuffers = buffers;
134 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
208 const Vector<sp<IMemory> > &buffers) {
209 mBuffers = buffers;
207 setBuffers( const Vector<sp<IMemory> > &buffers) argument
/frameworks/native/libs/vr/libpdx/
H A Dencoder_performance_test.cpp98 // Simple callback function to clear/reset the input/output buffers for
280 const std::vector<BufferInfo>& buffers) {
302 buffers.size() * (buffer_column_width + buffer_column_separator.size());
318 for (const auto& buffer_info : buffers) {
328 for (size_t i = 0; i < buffers.size(); i++) {
346 for (const auto& buffer_info : buffers) {
368 for (const auto& buffer_info : buffers) {
490 // Various backing buffers to run the tests on.
491 std::vector<TestRunner::BufferInfo> buffers; local
494 buffers
279 RunTests(size_t iteration_count, const std::vector<BufferInfo>& buffers) argument
[all...]
/frameworks/av/include/media/
H A DIStreamSource.h33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;

Completed in 791 milliseconds

1234