Home
last modified time | relevance | path

Searched refs:buffers (Results 1 – 25 of 154) sorted by relevance

1234567

/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/
DRefocusFilterd1new.java38 ImageBuffersForRenderScriptd1new buffers; field in RefocusFilterd1new
54 buffers = new ImageBuffersForRenderScriptd1new(inputImage, margin, in initializeScriptAndBuffers()
56 buffers.initializeRenderScript(focalLayer, scriptC); in initializeScriptAndBuffers()
66 scriptC.forEach_PackOutputImage(buffers.outAllocation); in extractResultImage()
71 buffers.outAllocation.copyTo(buffers.outputImage); in extractResultImage()
75 return buffers.outputImage; in extractResultImage()
83 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage()
84 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractSharpImage()
96 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage()
97 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractFuzzyImage()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/
DRefocusFilterF32.java37 ImageBuffersForRenderScriptF32 buffers; field in RefocusFilterF32
53 buffers = new ImageBuffersForRenderScriptF32(inputImage, margin, in initializeScriptAndBuffers()
55 buffers.initializeRenderScript(focalLayer, scriptC); in initializeScriptAndBuffers()
64 scriptC.forEach_PackOutputImage(buffers.outAllocation); in extractResultImage()
69 buffers.outAllocation.copyTo(buffers.outputImage); in extractResultImage()
73 return buffers.outputImage; in extractResultImage()
81 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage()
82 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractSharpImage()
94 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage()
95 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractFuzzyImage()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument
20 GLES20.glGenBuffers(n, buffers, offset); in glGenBuffers()
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument
33 GLES20.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers()
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset); in glDeleteFramebuffers()
DGLId.java26 public void glGenBuffers(int n, int[] buffers, int offset); in glGenBuffers() argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); in glDeleteBuffers() argument
32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); in glDeleteFramebuffers() argument
/frameworks/av/media/codec2/sfplugin/
DCCodecBufferChannel.cpp150 input->buffers.reset(new DummyInputBuffers("")); in CCodecBufferChannel()
219 work->input.buffers.clear(); in queueInputBufferInternal()
228 if (!input->buffers->releaseBuffer(buffer, &c2buffer, false)) { in queueInputBufferInternal()
233 copy = input->buffers->cloneAndReleaseBuffer(buffer); in queueInputBufferInternal()
239 bool released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
248 work->input.buffers.push_back(c2buffer); in queueInputBufferInternal()
277 work->input.buffers.clear(); in queueInputBufferInternal()
300 released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
626 if (!output->buffers || in feedInputBufferIfAvailableInternal()
627 output->buffers->hasPending() || in feedInputBufferIfAvailableInternal()
[all …]
DPipelineWatcher.cpp50 std::vector<std::shared_ptr<C2Buffer>> &&buffers, in onWorkQueued() argument
54 buffers.size(), in onWorkQueued()
62 (void)mFramesInPipeline.try_emplace(frameIndex, std::move(buffers), queuedAt); in onWorkQueued()
75 if (it->second.buffers.size() <= arrayIndex) { in onInputBufferReleased()
77 (unsigned long long)frameIndex, it->second.buffers.size(), arrayIndex); in onInputBufferReleased()
80 std::shared_ptr<C2Buffer> buffer(std::move(it->second.buffers[arrayIndex])); in onInputBufferReleased()
111 for (const std::shared_ptr<C2Buffer> &buffer : value.second.buffers) { in pipelineFull()
DPipelineWatcher.h76 std::vector<std::shared_ptr<C2Buffer>> &&buffers,
129 : buffers(b), in Frame()
131 std::vector<std::shared_ptr<C2Buffer>> buffers; member
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DDumpManager.kt39 private val buffers: MutableMap<String, RegisteredDumpable<LogBuffer>> = ArrayMap() constant in com.android.systemui.dump.DumpManager
74 buffers[name] = RegisteredDumpable(name, buffer) in registerBuffer()
95 for (buffer in buffers.values) { in dumpTarget()
128 for (buffer in buffers.values) { in dumpBuffers()
138 for (buffer in buffers.values) { in listBuffers()
145 for (buffer in buffers.values) { in freezeBuffers()
152 for (buffer in buffers.values) { in unfreezeBuffers()
182 val existingDumpable = dumpables[name]?.dumpable ?: buffers[name]?.dumpable in canAssignToNameLocked()
/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
59 if (mInternal->mGrowthLimit > 0 && buffers > mInternal->mGrowthLimit) { in init()
61 buffers, mInternal->mGrowthLimit); in init()
62 mInternal->mGrowthLimit = buffers; in init()
73 size_t total = (augmented_size + alignment - 1) / alignment * alignment * buffers; in init()
76 for (size_t i = 0; i < buffers; ++i) { in init()
93 for (size_t i = 0; i < buffers; ++i) { in init()
230 size_t MediaBufferGroup::buffers() const { in buffers() function in android::MediaBufferGroup
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp31 std::shared_ptr<RawGraphicOutputBuffers> buffers = in TEST() local
36 buffers->setFormat(format); in TEST()
43 auto registerBuffer = [&buffers, &clientBuffers, &pool] { in TEST()
52 ASSERT_EQ(OK, buffers->registerBuffer(c2Buffer, &index, &clientBuffer)); in TEST()
65 auto releaseBuffer = [&buffers, &clientBuffers, kWidth, kHeight](int index) { in TEST()
67 ASSERT_TRUE(buffers->releaseBuffer(clientBuffers[index], &c2Buffer)) in TEST()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferGroup.h38 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
57 size_t buffers() const;
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/graphics/java/android/graphics/
DGraphicsStatsService.java238 ArrayList<HistoricalBuffer> buffers; in pullGraphicsStatsImpl() local
240 buffers = new ArrayList<>(mActive.size()); in pullGraphicsStatsImpl()
245 buffers.add(new HistoricalBuffer(buffer)); in pullGraphicsStatsImpl()
258 HashSet<File> skipList = dumpActiveLocked(dump, buffers); in pullGraphicsStatsImpl()
259 buffers.clear(); in pullGraphicsStatsImpl()
396 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode); in fetchActiveBuffersLocked() local
397 mActive.add(buffers); in fetchActiveBuffersLocked()
398 return buffers; in fetchActiveBuffersLocked()
404 private HashSet<File> dumpActiveLocked(long dump, ArrayList<HistoricalBuffer> buffers) { in dumpActiveLocked() argument
405 HashSet<File> skipFiles = new HashSet<>(buffers.size()); in dumpActiveLocked()
[all …]
/frameworks/av/include/private/media/
DAudioTrackShared.h207 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
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,
362 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument
417 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
473 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument
475 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy()
495 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
577 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioTrackServerProxy() argument
579 : ServerProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, clientInServer), in AudioTrackServerProxy()
[all …]
/frameworks/av/media/libmedia/
DIStreamSource.cpp54 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers()
57 data.writeInt64(static_cast<int64_t>(buffers.size())); in setBuffers()
58 for (size_t i = 0; i < buffers.size(); ++i) { in setBuffers()
59 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i))); in setBuffers()
98 Vector<sp<IMemory> > buffers; in onTransact() local
104 buffers.push(mem); in onTransact()
109 setBuffers(buffers); in onTransact()
DIMediaSource.cpp119 Vector<MediaBufferBase *> buffers; in read() local
120 status_t ret = readMultiple(&buffers, 1 /* maxNumBuffers */, options); in read()
121 *buffer = buffers.size() == 0 ? nullptr : buffers[0]; in read()
128 Vector<MediaBufferBase *> *buffers, uint32_t maxNumBuffers, in readMultiple() argument
131 if (buffers == NULL || !buffers->isEmpty()) { in readMultiple()
183 buffers->push_back(buf); in readMultiple()
/frameworks/native/libs/gui/tests/
DSurfaceTextureGLToGL_test.cpp160 sp<GraphicBuffer> buffers[2]; in TEST_F() local
183 buffers[i] = mST->getCurrentBuffer(); in TEST_F()
196 EXPECT_EQ(1, buffers[0]->getStrongCount()); in TEST_F()
201 EXPECT_EQ(3, buffers[1]->getStrongCount()); in TEST_F()
206 sp<GraphicBuffer> buffers[3]; in TEST_F() local
230 buffers[i] = mST->getCurrentBuffer(); in TEST_F()
246 EXPECT_EQ(1, buffers[1]->getStrongCount()); in TEST_F()
254 if (buffers[2] != buffers[0]) { in TEST_F()
255 EXPECT_EQ(1, buffers[0]->getStrongCount()); in TEST_F()
256 EXPECT_EQ(1, buffers[2]->getStrongCount()); in TEST_F()
[all …]
/frameworks/base/media/java/android/media/
DMediaCodec.java3713 @Nullable ByteBuffer[] buffers, int index) { in invalidateByteBuffer()
3714 if (buffers != null && index >= 0 && index < buffers.length) { in invalidateByteBuffer()
3715 ByteBuffer buffer = buffers[index]; in invalidateByteBuffer()
3723 @Nullable ByteBuffer[] buffers, int index) { in validateInputByteBuffer()
3724 if (buffers != null && index >= 0 && index < buffers.length) { in validateInputByteBuffer()
3725 ByteBuffer buffer = buffers[index]; in validateInputByteBuffer()
3734 @Nullable ByteBuffer[] buffers, int index) { in revalidateByteBuffer()
3736 if (buffers != null && index >= 0 && index < buffers.length) { in revalidateByteBuffer()
3737 ByteBuffer buffer = buffers[index]; in revalidateByteBuffer()
3746 @Nullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) { in validateOutputByteBuffer()
[all …]
/frameworks/base/tools/aapt2/
DStringPool_test.cpp261 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; in TEST() local
262 StringPool::FlattenUtf8(&buffers[0], pool, &diag); in TEST()
263 StringPool::FlattenUtf16(&buffers[1], pool, &diag); in TEST()
266 for (const BigBuffer& buffer : buffers) { in TEST()
345 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; in TEST() local
348 EXPECT_THAT(StringPool::FlattenUtf8(&buffers[0], pool, &diag), Eq(true)); in TEST()
349 std::unique_ptr<uint8_t[]> data = util::Copy(buffers[0]); in TEST()
350 test.setTo(data.get(), buffers[0].size()); in TEST()
354 EXPECT_THAT(StringPool::FlattenUtf16(&buffers[1], pool, &diag), Eq(true)); in TEST()
355 data = util::Copy(buffers[1]); in TEST()
[all …]
/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c42 static char* buffers[BUFFER_COUNT]; variable
150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { in capture_thread()
174 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); in play_thread()
198 buffers[i] = malloc(BUFFER_SIZE); in init_audio()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java229 ByteBuffer[] buffers = null; in stream() local
233 if (buffers == null) { in stream()
234 buffers = codec.getOutputBuffers(); in stream()
237 ByteBuffer buffer = buffers[index]; in stream()
245 buffers = null; in stream()
/frameworks/av/cmds/stagefright/
Dstream.cpp54 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
91 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers() argument
92 mBuffers = buffers; in setBuffers()
134 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
208 const Vector<sp<IMemory> > &buffers) { in setBuffers()
209 mBuffers = buffers; in setBuffers()
/frameworks/native/libs/vr/libpdx/
Dencoder_performance_test.cpp280 const std::vector<BufferInfo>& buffers) { in RunTests() argument
302 buffers.size() * (buffer_column_width + buffer_column_separator.size()); in RunTests()
318 for (const auto& buffer_info : buffers) { in RunTests()
328 for (size_t i = 0; i < buffers.size(); i++) { in RunTests()
346 for (const auto& buffer_info : buffers) { in RunTests()
368 for (const auto& buffer_info : buffers) { in RunTests()
491 std::vector<TestRunner::BufferInfo> buffers; in main() local
494 buffers.emplace_back("Non-TLS Buffer", &buffer, &buffer, in main()
500 buffers.emplace_back( in main()
506 buffers.emplace_back( in main()
[all …]
/frameworks/av/media/codec2/components/raw/
DC2SoftRawDec.cpp154 work->worklets.front()->output.buffers.clear(); in process()
156 if (!work->input.buffers.empty()) { in process()
157 work->worklets.front()->output.buffers.push_back(work->input.buffers[0]); in process()
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp150 if (!work->input.buffers.empty()) { in process()
151 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
167 work->worklets.front()->output.buffers.clear(); in process()
201 work->worklets.front()->output.buffers.clear(); in process()
202 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block)); in process()
/frameworks/av/media/codec2/components/gsm/
DC2SoftGsmDec.cpp185 if (!work->input.buffers.empty()) { in process()
186 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
197 work->worklets.front()->output.buffers.clear(); in process()
235 work->worklets.front()->output.buffers.clear(); in process()
236 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()

1234567