Searched refs:buffers (Results 1 - 25 of 94) 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.h34 // 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/include/
H A DMediaBufferGroup.h34 // 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/include/
H A DMediaBufferGroup.h34 // 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/base/libs/hwui/debug/
H A DMockGlesDriver.h31 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/libstagefright/foundation/
H A DMediaBufferGroup.cpp30 // 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 DAudioTrackShared.h205 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 DIStreamSource.cpp65 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 DIMediaSource.cpp117 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/media/java/android/media/
H A DMediaCodec.java56 asynchronously and uses a set of input and output buffers. At a simplistic level, you request
58 processing. The codec uses up the data and transforms it into one of its empty output buffers.
67 buffers without mapping or copying them to ByteBuffers; thus, it is much more efficient.
70 efficient than using ByteBuffers, as some native buffers may be mapped into {@linkplain
77 Input buffers (for decoders) and output buffers (for encoders) contain compressed data according
82 of audio. In either case, buffers do not start or end on arbitrary byte boundaries, but rather on
87 Raw audio buffers contain entire frames of PCM audio data, which is one sample for each channel
109 In ByteBuffer mode video buffers are laid out according to their {@linkplain
117 <li><strong>flexible YUV buffers</stron
2871 invalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument
2881 validateInputByteBuffer( @ullable ByteBuffer[] buffers, int index) argument
2892 revalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument
2904 validateOutputByteBuffer( @ullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) argument
2915 invalidateByteBuffers(@ullable ByteBuffer[] buffers) argument
2932 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",
252 Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, "deleting old graphicsstats buffers");
313 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode);
314 mActive.add(buffers);
315 return buffers;
321 private HashSet<File> dumpActiveLocked(long dump, ArrayList<HistoricalBuffer> buffers) { argument
322 HashSet<File> skipFiles = new HashSet<>(buffers.size());
323 for (int i = 0; i < buffers.size(); i++) {
324 HistoricalBuffer buffer = buffers.get(i);
358 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/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.cpp51 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/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;
/frameworks/av/media/libmedia/include/media/
H A DIStreamSource.h33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DJpegCompressor.h19 * This class simulates a hardware JPEG compressor. It receives image buffers
49 // Start compressing COMPRESSED format buffers; JpegCompressor takes
51 status_t start(const Vector<CpuConsumer::LockedBuffer*>& buffers,

Completed in 510 milliseconds

1234