/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLId.java | 26 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 D | GLES20IdImpl.java | 19 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/java/tests/Refocus/src/com/android/rs/test/d1new/ |
H A D | RefocusFilterd1new.java | 38 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); 70 buffers.outAllocation.copyTo(buffers.outputImage); 71 return buffers.outputImage; 79 Bitmap mBitmap = Bitmap.createBitmap(buffers [all...] |
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/f32/ |
H A D | RefocusFilterF32.java | 37 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); 68 buffers.outAllocation.copyTo(buffers.outputImage); 69 return buffers.outputImage; 77 Bitmap mBitmap = Bitmap.createBitmap(buffers [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | MediaBufferGroup.h | 34 // create a media buffer group with preallocated buffers 35 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0); 54 size_t buffers() const { return mBuffers.size(); } function in class:android::MediaBufferGroup
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | MediaBufferGroup.cpp | 30 // MediaBufferGroup may create shared memory buffers at a 39 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit) argument 42 if (mGrowthLimit > 0 && buffers > mGrowthLimit) { 43 ALOGW("Preallocated buffers %zu > growthLimit %zu, increasing growthLimit", 44 buffers, mGrowthLimit); 45 mGrowthLimit = buffers; 55 size_t total = (augmented_size + alignment - 1) / alignment * alignment * buffers; 58 for (size_t i = 0; i < buffers; ++i) { 61 ALOGW("Only allocated %zu shared buffers of size %zu", i, buffer_size); 72 for (size_t i = 0; i < buffers; [all...] |
/frameworks/av/include/private/media/ |
H A D | AudioTrackShared.h | 205 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, 222 void* const mBuffers; // starting address of buffers 238 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 356 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument 358 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, 407 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 457 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument 459 : ClientProxy(cblk, buffers, frameCount, frameSize, 479 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 550 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_ argument 652 AudioRecordServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool clientInServer) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | IStreamSource.cpp | 65 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument 68 data.writeInt64(static_cast<int64_t>(buffers.size())); 69 for (size_t i = 0; i < buffers.size(); ++i) { 70 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i))); 109 Vector<sp<IMemory> > buffers; local 115 buffers.push(mem); 120 setBuffers(buffers);
|
H A D | IMediaSource.cpp | 117 Vector<MediaBuffer *> buffers; local 118 status_t ret = readMultiple(&buffers, 1 /* maxNumBuffers */, options); 119 *buffer = buffers.size() == 0 ? nullptr : buffers[0]; 126 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers, const ReadOptions *options) { 128 if (buffers == NULL || !buffers->isEmpty()) { 147 "Received %u+ buffers and requested %u buffers", 180 buffers 125 readMultiple( Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers, const ReadOptions *options) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | GraphicsStatsService.java | 43 * its primary job is merely to manage distributing these buffers. However, 45 * directly to ThreadedRenderer for dumping buffers. 134 ActiveBuffer buffers = mActive.get(i); 135 if (buffers.mPid == pid 136 && buffers.mUid == uid) { 137 return buffers; 142 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName); 143 mActive.add(buffers); 144 return buffers;
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 31 // 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/media/java/android/media/ |
H A D | MediaCodec.java | 54 asynchronously and uses a set of input and output buffers. At a simplistic level, you request 56 processing. The codec uses up the data and transforms it into one of its empty output buffers. 65 buffers without mapping or copying them to ByteBuffers; thus, it is much more efficient. 68 efficient than using ByteBuffers, as some native buffers may be mapped into {@linkplain 75 Input buffers (for decoders) and output buffers (for encoders) contain compressed data according 80 of audio. In either case, buffers do not start or end on arbitrary byte boundaries, but rather on 85 Raw audio buffers contain entire frames of PCM audio data, which is one sample for each channel 107 In ByteBuffer mode video buffers are laid out according to their {@linkplain 115 <li><strong>flexible YUV buffers</stron 2819 invalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument 2829 validateInputByteBuffer( @ullable ByteBuffer[] buffers, int index) argument 2840 revalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument 2852 validateOutputByteBuffer( @ullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) argument 2863 invalidateByteBuffers(@ullable ByteBuffer[] buffers) argument 2880 freeByteBuffers(@ullable ByteBuffer[] buffers) argument [all...] |
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 42 static char* buffers[BUFFER_COUNT]; variable 150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { 175 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); 200 buffers[i] = malloc(BUFFER_SIZE);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3BufferManager.h | 35 * A class managing the graphic buffers that is used by camera output streams. It allocates and 36 * hands out Gralloc buffers to the clients (e.g., Camera3OutputStream) based on the requests. 39 * buffer maintained by the buffer manager, it will dynamically deallocate some buffers that are 56 * usage flags, etc. for the buffer manager to allocate and hand out buffers for this stream. 65 * over the buffer allocation role and provides buffers to this stream via getBufferForStream(). 70 * uses buffer manager to manage the stream buffers, it should disable the BufferQueue 91 * After all streams for a given stream set are unregistered, all the buffers solely owned (for 92 * this stream set) by this buffer manager will be freed; all buffers subsequently returned to 109 * it and increment its count of handed-out buffers. When the total number of allocated buffers [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioTrackDecoder.java | 77 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 D | BufferObjectManager.cpp | 85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) argument 89 const GLuint t = *buffers++;
|
H A D | BufferObjectManager.h | 64 void deleteBuffers(GLsizei n, const GLuint* buffers);
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 229 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 D | stream.cpp | 51 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 88 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { argument 89 mBuffers = buffers; 131 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 205 const Vector<sp<IMemory> > &buffers) { 206 mBuffers = buffers; 204 setBuffers( const Vector<sp<IMemory> > &buffers) argument
|
/frameworks/av/include/media/ |
H A D | IStreamSource.h | 33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegCompressor.h | 19 * This class simulates a hardware JPEG compressor. It receives image buffers 49 // Start compressing COMPRESSED format buffers; JpegCompressor takes 51 status_t start(Vector<CpuConsumer::LockedBuffer*> buffers,
|
H A D | JpegCompressor.cpp | 39 status_t JpegCompressor::start(Vector<CpuConsumer::LockedBuffer*> buffers, argument 51 mBuffers = buffers;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiLogger.java | 296 byte[][] buffers = e.getValue(); 300 for (int i = 0; i < buffers.length; i++) { 301 size += buffers[i].length; 306 for (int i = 0; i < buffers.length; i++) { 307 System.arraycopy(buffers[i], 0, buffer, index, buffers[i].length); 308 index += buffers[i].length; 426 Log.e(TAG, "no ring buffers found"); 441 if (DBG) Log.d(TAG, "No ring buffers to log anything!"); 491 Log.e(TAG, "Not ring buffers availabl [all...] |
/frameworks/native/libs/ui/ |
H A D | Gralloc1.cpp | 157 std::vector<buffer_handle_t> buffers(descriptors.size()); 160 buffers.data()); 163 *outBuffers = std::move(buffers); 186 std::vector<buffer_handle_t> buffers; local 187 error = allocate(descriptors, &buffers); 189 *outBuffer = buffers[0];
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDecoderBase.cpp | 94 status_t NuPlayer::DecoderBase::getInputBuffers(Vector<sp<ABuffer> > *buffers) const { 96 msg->setPointer("buffers", buffers); 174 CHECK(msg->findPointer("buffers", (void **)&dstBuffers)); 218 // We cannot immediately release the codec due to buffers still outstanding
|