Home
last modified time | relevance | path

Searched refs:inputFrame (Results 1 – 17 of 17) sorted by relevance

/frameworks/av/services/camera/libcameraservice/tests/
DDepthProcessorTest.cpp83 DepthPhotoInputFrame inputFrame; in TEST() local
85 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in TEST()
94 std::vector<uint8_t> depthPhotoBuffer(inputFrame.mMaxJpegSize); in TEST()
97 inputFrame.mMainJpegWidth = kTestBufferWidth; in TEST()
98 inputFrame.mMainJpegHeight = kTestBufferHeight; in TEST()
99 inputFrame.mJpegQuality = jpegQuality; in TEST()
100 ASSERT_NE(processDepthPhotoFrame(inputFrame, depthPhotoBuffer.size(), depthPhotoBuffer.data(), in TEST()
103 inputFrame.mMainJpegBuffer = reinterpret_cast<const char*> (colorJpegBuffer.data()); in TEST()
104 inputFrame.mMainJpegSize = colorJpegBuffer.size(); in TEST()
105 ASSERT_NE(processDepthPhotoFrame(inputFrame, depthPhotoBuffer.size(), depthPhotoBuffer.data(), in TEST()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DDepthPhotoProcessor.cpp269 void rotate0AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate0AndUnpack() argument
271 for (size_t i = 0; i < inputFrame.mDepthMapHeight; i++) { in rotate0AndUnpack()
272 for (size_t j = 0; j < inputFrame.mDepthMapWidth; j++) { in rotate0AndUnpack()
273 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate0AndUnpack()
281 void rotate90AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate90AndUnpack() argument
283 for (size_t i = 0; i < inputFrame.mDepthMapWidth; i++) { in rotate90AndUnpack()
284 for (ssize_t j = inputFrame.mDepthMapHeight-1; j >= 0; j--) { in rotate90AndUnpack()
285 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate90AndUnpack()
292 void rotate180AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate180AndUnpack() argument
294 for (ssize_t i = inputFrame.mDepthMapHeight-1; i >= 0; i--) { in rotate180AndUnpack()
[all …]
/frameworks/av/services/camera/libcameraservice/fuzzer/
DDepthProcessorFuzzer.cpp39 DepthPhotoInputFrame inputFrame; in LLVMFuzzerTestOneInput() local
41 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in LLVMFuzzerTestOneInput()
43 std::vector<uint8_t> depthPhotoBuffer(inputFrame.mMaxJpegSize); in LLVMFuzzerTestOneInput()
49 inputFrame.mMainJpegBuffer = reinterpret_cast<const char*> (data); in LLVMFuzzerTestOneInput()
50 inputFrame.mMainJpegSize = size; in LLVMFuzzerTestOneInput()
51 inputFrame.mDepthMapBuffer = depth16Buffer.data(); in LLVMFuzzerTestOneInput()
52 inputFrame.mDepthMapStride = kTestBufferWidth; in LLVMFuzzerTestOneInput()
53 inputFrame.mDepthMapWidth = kTestBufferWidth; in LLVMFuzzerTestOneInput()
54 inputFrame.mDepthMapHeight = kTestBufferHeight; in LLVMFuzzerTestOneInput()
56 inputFrame, in LLVMFuzzerTestOneInput()
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp796 InputFrame& inputFrame(it->second); in compilePendingInputLocked() local
797 if (inputFrame.codecInputCounter < mGridRows * mGridCols) { in compilePendingInputLocked()
801 mGridRows * mGridCols - inputFrame.codecInputCounter); in compilePendingInputLocked()
804 { mCodecInputBuffers[0], mGridTimestampUs++, inputFrame.codecInputCounter }; in compilePendingInputLocked()
805 inputFrame.codecInputBuffers.push_back(inputInfo); in compilePendingInputLocked()
808 inputFrame.codecInputCounter++; in compilePendingInputLocked()
866 InputFrame &inputFrame) { in processInputFrame() argument
871 (inputFrame.appSegmentBuffer.data != nullptr || inputFrame.exifError) && in processInputFrame()
872 !inputFrame.appSegmentWritten && inputFrame.result != nullptr && in processInputFrame()
873 inputFrame.muxer != nullptr; in processInputFrame()
[all …]
DJpegRCompositeStream.cpp180 for (auto &inputFrame : mPendingInputFrames) { in compilePendingInputLocked() local
181 if (inputFrame.second.frameNumber == *it) { in compilePendingInputLocked()
182 inputFrame.second.error = true; in compilePendingInputLocked()
235 status_t JpegRCompositeStream::processInputFrame(nsecs_t ts, const InputFrame &inputFrame) { in processInputFrame() argument
247 inputFrame.jpegBuffer.width * inputFrame.jpegBuffer.height > in processInputFrame()
254 maxJpegRBufferSize = inputFrame.p010Buffer.width * inputFrame.p010Buffer.height; in processInputFrame()
258 auto entry = inputFrame.result.find(ANDROID_JPEG_QUALITY); in processInputFrame()
299 p010.height = inputFrame.p010Buffer.height; in processInputFrame()
300 p010.width = inputFrame.p010Buffer.width; in processInputFrame()
302 p010.data = inputFrame.p010Buffer.data; in processInputFrame()
[all …]
DDepthCompositeStream.cpp200 for (auto &inputFrame : mPendingInputFrames) { in compilePendingInputLocked() local
201 if (inputFrame.second.frameNumber == *it) { in compilePendingInputLocked()
202 inputFrame.second.error = true; in compilePendingInputLocked()
251 status_t DepthCompositeStream::processInputFrame(nsecs_t ts, const InputFrame &inputFrame) { in processInputFrame() argument
258 auto jpegSize = android::camera2::JpegProcessor::findJpegSize(inputFrame.jpegBuffer.data, in processInputFrame()
259 inputFrame.jpegBuffer.width); in processInputFrame()
262 jpegSize = inputFrame.jpegBuffer.width; in processInputFrame()
270 inputFrame.jpegBuffer.width * inputFrame.jpegBuffer.height > in processInputFrame()
278 inputFrame.depthBuffer.width * inputFrame.depthBuffer.height * 3 / 2); in processInputFrame()
282 auto entry = inputFrame.result.find(ANDROID_JPEG_QUALITY); in processInputFrame()
[all …]
DHeicCompositeStream.h194 status_t processInputFrame(int64_t frameNumber, InputFrame &inputFrame);
195 status_t processCodecInputFrame(InputFrame &inputFrame);
196 status_t startMuxerForInputFrame(int64_t frameNumber, InputFrame &inputFrame);
197 status_t processAppSegment(int64_t frameNumber, InputFrame &inputFrame);
198 status_t processOneCodecOutputFrame(int64_t frameNumber, InputFrame &inputFrame);
199 status_t processCompletedInputFrame(int64_t frameNumber, InputFrame &inputFrame);
201 void releaseInputFrameLocked(int64_t frameNumber, InputFrame *inputFrame /*out*/);
DJpegRCompositeStream.h94 status_t processInputFrame(nsecs_t ts, const InputFrame &inputFrame);
98 void releaseInputFrameLocked(InputFrame *inputFrame /*out*/);
DDepthCompositeStream.h115 status_t processInputFrame(nsecs_t ts, const InputFrame &inputFrame);
119 void releaseInputFrameLocked(InputFrame *inputFrame /*out*/);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DStatsFilter.java63 FrameType inputFrame = FrameType.buffer2D(FrameType.ELEMENT_INT8); in getSignature() local
66 .addInputPort("buffer", Signature.PORT_REQUIRED, inputFrame) in getSignature()
97 FrameBuffer2D inputFrame = getConnectedInputPort("buffer").pullFrame().asFrameImage2D(); in onProcess() local
98 ByteBuffer pixelBuffer = inputFrame.lockBytes(Frame.MODE_READ); in onProcess()
100 calcMeanAndStd(pixelBuffer, inputFrame.getWidth(), inputFrame.getHeight(), mCropRect); in onProcess()
101 inputFrame.unlock(); in onProcess()
DThroughputFilter.java66 Frame inputFrame = getConnectedInputPort("frame").pullFrame(); in onProcess() local
85 inputFrame.getElementCount()); in onProcess()
93 getConnectedOutputPort("frame").pushFrame(inputFrame); in onProcess()
DBranchFilter.java67 Frame inputFrame = getConnectedInputPort("input").pullFrame(); in onProcess() local
70 outputPort.pushFrame(inputFrame); in onProcess()
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
DIdentityEffect.java37 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local
40 outputFrame.setDataFromFrame(inputFrame); in apply()
42 inputFrame.release(); in apply()
/frameworks/base/media/mca/effect/java/android/media/effect/
DSizeChangeEffect.java44 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local
45 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply()
53 inputFrame.release(); in apply()
DSingleFilterEffect.java71 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local
74 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply()
78 inputFrame.release(); in apply()
/frameworks/base/core/java/android/inputmethodservice/
DNavigationBarController.java319 final View inputFrame = mService.mInputFrame; in updateTouchableInsets() local
322 if (inputFrame.getVisibility() == View.VISIBLE) { in updateTouchableInsets()
323 inputFrame.getLocationInWindow(mTempPos); in updateTouchableInsets()
325 mTempPos[0] + inputFrame.getWidth(), in updateTouchableInsets()
326 mTempPos[1] + inputFrame.getHeight()); in updateTouchableInsets()
331 if (inputFrame.getVisibility() == View.VISIBLE) { in updateTouchableInsets()
332 inputFrame.getLocationInWindow(mTempPos); in updateTouchableInsets()
334 mTempPos[0] + inputFrame.getWidth(), in updateTouchableInsets()
335 mTempPos[1] + inputFrame.getHeight()); in updateTouchableInsets()
340 if (inputFrame.getVisibility() == View.VISIBLE) { in updateTouchableInsets()
[all …]
/frameworks/av/media/module/codecs/m4v_h263/enc/src/
Dfastcodemb.cpp74 VideoEncFrameIO *inputFrame = video->input; in CodeMB_H263() local
130 input = inputFrame->yChan + offset; in CodeMB_H263()
162 input = inputFrame->uChan + offsetc; in CodeMB_H263()
183 input = inputFrame->vChan + offsetc; in CodeMB_H263()
305 VideoEncFrameIO *inputFrame = video->input; in CodeMB_MPEG() local
357 input = inputFrame->yChan + offset; in CodeMB_MPEG()
389 input = inputFrame->uChan + offsetc; in CodeMB_MPEG()
405 input = inputFrame->vChan + offsetc; in CodeMB_MPEG()