/frameworks/av/services/camera/libcameraservice/tests/ |
D | DepthProcessorTest.cpp | 83 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/ |
D | DepthPhotoProcessor.cpp | 269 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/ |
D | DepthProcessorFuzzer.cpp | 39 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/ |
D | HeicCompositeStream.cpp | 764 InputFrame& inputFrame(it->second); in compilePendingInputLocked() local 765 if (inputFrame.codecInputCounter < mGridRows * mGridCols) { in compilePendingInputLocked() 769 mGridRows * mGridCols - inputFrame.codecInputCounter); in compilePendingInputLocked() 772 { mCodecInputBuffers[0], mGridTimestampUs++, inputFrame.codecInputCounter }; in compilePendingInputLocked() 773 inputFrame.codecInputBuffers.push_back(inputInfo); in compilePendingInputLocked() 776 inputFrame.codecInputCounter++; in compilePendingInputLocked() 834 InputFrame &inputFrame) { in processInputFrame() argument 839 (inputFrame.appSegmentBuffer.data != nullptr || inputFrame.exifError) && in processInputFrame() 840 !inputFrame.appSegmentWritten && inputFrame.result != nullptr && in processInputFrame() 841 inputFrame.muxer != nullptr; in processInputFrame() [all …]
|
D | DepthCompositeStream.cpp | 199 for (auto &inputFrame : mPendingInputFrames) { in compilePendingInputLocked() local 200 if (inputFrame.second.frameNumber == *it) { in compilePendingInputLocked() 201 inputFrame.second.error = true; in compilePendingInputLocked() 250 status_t DepthCompositeStream::processInputFrame(nsecs_t ts, const InputFrame &inputFrame) { in processInputFrame() argument 257 auto jpegSize = android::camera2::JpegProcessor::findJpegSize(inputFrame.jpegBuffer.data, in processInputFrame() 258 inputFrame.jpegBuffer.width); in processInputFrame() 261 jpegSize = inputFrame.jpegBuffer.width; in processInputFrame() 269 inputFrame.jpegBuffer.width * inputFrame.jpegBuffer.height > in processInputFrame() 277 inputFrame.depthBuffer.width * inputFrame.depthBuffer.height * 3 / 2); in processInputFrame() 281 auto entry = inputFrame.result.find(ANDROID_JPEG_QUALITY); in processInputFrame() [all …]
|
D | HeicCompositeStream.h | 190 status_t processInputFrame(int64_t frameNumber, InputFrame &inputFrame); 191 status_t processCodecInputFrame(InputFrame &inputFrame); 192 status_t startMuxerForInputFrame(int64_t frameNumber, InputFrame &inputFrame); 193 status_t processAppSegment(int64_t frameNumber, InputFrame &inputFrame); 194 status_t processOneCodecOutputFrame(int64_t frameNumber, InputFrame &inputFrame); 195 status_t processCompletedInputFrame(int64_t frameNumber, InputFrame &inputFrame); 197 void releaseInputFrameLocked(int64_t frameNumber, InputFrame *inputFrame /*out*/);
|
D | DepthCompositeStream.h | 110 status_t processInputFrame(nsecs_t ts, const InputFrame &inputFrame); 114 void releaseInputFrameLocked(InputFrame *inputFrame /*out*/);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | StatsFilter.java | 63 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()
|
D | ThroughputFilter.java | 66 Frame inputFrame = getConnectedInputPort("frame").pullFrame(); in onProcess() local 85 inputFrame.getElementCount()); in onProcess() 93 getConnectedOutputPort("frame").pushFrame(inputFrame); in onProcess()
|
D | BranchFilter.java | 67 Frame inputFrame = getConnectedInputPort("input").pullFrame(); in onProcess() local 70 outputPort.pushFrame(inputFrame); in onProcess()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | NavigationBarController.java | 259 final View inputFrame = mService.mInputFrame; in updateTouchableInsets() local 262 if (inputFrame.getVisibility() == View.VISIBLE) { in updateTouchableInsets() 263 inputFrame.getLocationInWindow(mTempPos); in updateTouchableInsets() 265 mTempPos[0] + inputFrame.getWidth(), in updateTouchableInsets() 266 mTempPos[1] + inputFrame.getHeight()); in updateTouchableInsets() 271 if (inputFrame.getVisibility() == View.VISIBLE) { in updateTouchableInsets() 272 inputFrame.getLocationInWindow(mTempPos); in updateTouchableInsets() 274 mTempPos[0] + inputFrame.getWidth() , in updateTouchableInsets() 275 mTempPos[1] + inputFrame.getHeight()); in updateTouchableInsets() 280 if (inputFrame.getVisibility() == View.VISIBLE) { in updateTouchableInsets() [all …]
|
/frameworks/base/media/mca/effect/java/android/media/effect/effects/ |
D | IdentityEffect.java | 37 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/ |
D | SizeChangeEffect.java | 44 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local 45 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply() 53 inputFrame.release(); in apply()
|
D | SingleFilterEffect.java | 71 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local 74 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply() 78 inputFrame.release(); in apply()
|
/frameworks/av/media/codecs/m4v_h263/enc/src/ |
D | fastcodemb.cpp | 74 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()
|