/aosp12/frameworks/av/services/camera/libcameraservice/tests/ |
H A D | DepthProcessorTest.cpp | 83 DepthPhotoInputFrame inputFrame; in TEST() local 85 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in TEST() 109 inputFrame.mDepthMapWidth = inputFrame.mDepthMapStride = kTestBufferWidth; in TEST() 128 DepthPhotoInputFrame inputFrame; in TEST() local 132 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in TEST() 137 inputFrame.mDepthMapWidth = inputFrame.mDepthMapStride = kTestBufferWidth; in TEST() 180 DepthPhotoInputFrame inputFrame; in TEST() local 184 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in TEST() 189 inputFrame.mDepthMapWidth = inputFrame.mDepthMapStride = kTestBufferWidth; in TEST() 270 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in TEST() [all …]
|
/aosp12/frameworks/av/services/camera/libcameraservice/common/ |
H A D | DepthPhotoProcessor.cpp | 269 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate0AndUnpack() 281 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate90AndUnpack() 292 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate180AndUnpack() 304 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate270AndUnpack() 312 switch (inputFrame.mOrientation) { in rotateAndUnpack() 343 size_t pointCount = inputFrame.mDepthMapWidth * inputFrame.mDepthMapHeight; in processDepthMapFrame() 415 if ((inputFrame.mMainJpegBuffer == nullptr) || (inputFrame.mDepthMapBuffer == nullptr) || in processDepthPhotoFrame() 464 inputFrame.mLensDistortion[0], inputFrame.mLensDistortion[4], in processDepthPhotoFrame() 465 inputFrame.mLensDistortion[1], 0.f, inputFrame.mLensDistortion[2], 0.f}; in processDepthPhotoFrame() 475 if (inputFrame.mIsLogical) { in processDepthPhotoFrame() [all …]
|
/aosp12/frameworks/av/services/camera/libcameraservice/fuzzer/ |
H A 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()
|
/aosp12/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | HeicCompositeStream.cpp | 834 (inputFrame.appSegmentBuffer.data != nullptr || inputFrame.exifError) && in processInputFrame() 835 !inputFrame.appSegmentWritten && inputFrame.result != nullptr && in processInputFrame() 936 res = inputFrame.muxer->setOrientationHint(inputFrame.orientation); in startMuxerForInputFrame() 943 ssize_t trackId = inputFrame.muxer->addTrack(inputFrame.format); in startMuxerForInputFrame() 969 inputFrame.appSegmentBuffer.width * inputFrame.appSegmentBuffer.height, in processAppSegment() 1020 auto res = inputFrame.muxer->writeSampleData(aBuffer, inputFrame.trackIndex, in processAppSegment() 1104 aBuffer, inputFrame.trackIndex, inputFrame.timestamp, 0 /*flags*/); in processOneCodecOutputFrame() 1118 inputFrame.codecOutputBuffers.erase(inputFrame.codecOutputBuffers.begin()); in processOneCodecOutputFrame() 1128 inputFrame.muxer->stop(); in processCompletedInputFrame() 1155 inputFrame.fileFd = -1; in processCompletedInputFrame() [all …]
|
H A D | DepthCompositeStream.cpp | 195 inputFrame.second.error = true; in compilePendingInputLocked() 252 inputFrame.jpegBuffer.width); in processInputFrame() 255 jpegSize = inputFrame.jpegBuffer.width; in processInputFrame() 263 inputFrame.jpegBuffer.width * inputFrame.jpegBuffer.height > in processInputFrame() 271 inputFrame.depthBuffer.width * inputFrame.depthBuffer.height * 3 / 2); in processInputFrame() 395 if (inputFrame == nullptr) { in releaseInputFrameLocked() 401 inputFrame->depthBuffer.data = nullptr; in releaseInputFrameLocked() 405 if (inputFrame->jpegBuffer.data != nullptr) { in releaseInputFrameLocked() 407 inputFrame->jpegBuffer.data = nullptr; in releaseInputFrameLocked() 411 if ((inputFrame->error || mErrorState) && !inputFrame->errorNotified) { in releaseInputFrameLocked() [all …]
|
H A 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*/);
|
H A D | DepthCompositeStream.h | 110 status_t processInputFrame(nsecs_t ts, const InputFrame &inputFrame); 114 void releaseInputFrameLocked(InputFrame *inputFrame /*out*/);
|
/aosp12/packages/services/Car/cpp/evs/apps/demo_app_evs_support_lib/ |
H A D | evs_app_support_lib.cpp | 29 void render(const Frame& inputFrame, const Frame& outputFrame) { in render() argument 32 if (inputFrame.data == nullptr || outputFrame.data == nullptr) { in render() 40 int stride = inputFrame.stride; in render() 41 uint8_t* inDataPtr = inputFrame.data; in render() 43 for (int i = 0; i < inputFrame.width; i++) in render() 44 for (int j = 0; j < inputFrame.height; j++) { in render()
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A 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()
|
H A D | ThroughputFilter.java | 66 Frame inputFrame = getConnectedInputPort("frame").pullFrame(); in onProcess() local 85 inputFrame.getElementCount()); in onProcess() 93 getConnectedOutputPort("frame").pushFrame(inputFrame); in onProcess()
|
H A D | BranchFilter.java | 67 Frame inputFrame = getConnectedInputPort("input").pullFrame(); in onProcess() local 70 outputPort.pushFrame(inputFrame); in onProcess()
|
/aosp12/packages/services/Car/cpp/computepipe/tests/runner/graph/ |
H A D | LocalPrebuiltGraphTest.cpp | 133 runner::InputFrame inputFrame(0, 0, PixelFormat::RGB, 0, nullptr); in TEST() local 135 /*streamIndex =*/0, /*timestamp =*/0, /*inputFrame =*/inputFrame), in TEST() 138 /*streamIndex =*/0, /*timestamp =*/0, /*inputFrame =*/inputFrame), in TEST() 141 /*streamIndex =*/0, /*timestamp =*/0, /*inputFrame =*/inputFrame), in TEST() 144 /*streamIndex =*/1, /*timestamp =*/0, /*inputFrame =*/inputFrame), in TEST() 147 /*streamIndex =*/1, /*timestamp =*/0, /*inputFrame =*/inputFrame), in TEST()
|
/aosp12/frameworks/base/media/mca/effect/java/android/media/effect/effects/ |
H A D | IdentityEffect.java | 37 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local 40 outputFrame.setDataFromFrame(inputFrame); in apply() 42 inputFrame.release(); in apply()
|
/aosp12/frameworks/base/media/mca/effect/java/android/media/effect/ |
H A 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()
|
H A 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()
|
/aosp12/packages/services/Car/cpp/computepipe/tests/fuzz/ |
H A D | GrpcGraphFuzzer.cpp | 92 runner::InputFrame inputFrame(0, 0, PixelFormat::RGB, 0, nullptr); in LLVMFuzzerTestOneInput() local 94 /*inputFrame =*/inputFrame); in LLVMFuzzerTestOneInput() 141 runner::InputFrame inputFrame(0, 0, PixelFormat::RGB, 0, nullptr); in LLVMFuzzerTestOneInput() local 143 /*inputFrame =*/inputFrame); in LLVMFuzzerTestOneInput()
|
H A D | LocalPrebuildGraphFuzzer.cpp | 93 runner::InputFrame inputFrame(0, 0, PixelFormat::RGB, 0, nullptr); in LLVMFuzzerTestOneInput() local 95 /*inputFrame =*/inputFrame); in LLVMFuzzerTestOneInput()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/graph/ |
H A D | LocalPrebuiltGraph.cpp | 307 const runner::InputFrame& inputFrame) { in SetInputStreamPixelData() argument 317 mappedFn(streamIndex, timestamp, inputFrame.getFramePtr(), in SetInputStreamPixelData() 318 inputFrame.getFrameInfo().width, inputFrame.getFrameInfo().height, in SetInputStreamPixelData() 319 inputFrame.getFrameInfo().stride, in SetInputStreamPixelData() 321 static_cast<int>(inputFrame.getFrameInfo().format))); in SetInputStreamPixelData()
|
H A D | GrpcGraph.h | 85 const runner::InputFrame& inputFrame) override;
|
/aosp12/frameworks/av/media/codecs/m4v_h263/enc/src/ |
H A 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()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/input_manager/ |
H A D | VideoDecoder.cpp | 322 InputFrame inputFrame(height, width, prebuiltFormat, stride, in readDecodedFrame() local 324 mEngine->dispatchInputFrame(mConfig.stream_id(), frameTimeMicros, inputFrame); in readDecodedFrame() 339 InputFrame inputFrame(5, 5, prebuiltFormat, 5, in sendEosFlag() local 342 mEngine->dispatchInputFrame(mConfig.stream_id(), 0, inputFrame); in sendEosFlag()
|
H A D | EvsInputManager.cpp | 47 InputFrame inputFrame(frame.height, frame.width, PixelFormat::RGBA, frame.stride * 4, in analyze() local 49 mInputEngineInterface->dispatchInputFrame(mInputStreamId, timestamp, inputFrame); in analyze()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/stream_manager/ |
H A D | PixelStreamManager.cpp | 68 Status PixelMemHandle::setFrameData(uint64_t timestamp, const InputFrame& inputFrame) { in setFrameData() argument 70 FrameInfo frameInfo = inputFrame.getFrameInfo(); in setFrameData() 113 memcpy(mappedBuffer, inputFrame.getFramePtr(), mDesc.stride * mDesc.height * bytesPerPixel); in setFrameData() 117 inputFrame.getFramePtr() + y * frameInfo.stride, in setFrameData()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/graph/include/ |
H A D | PrebuiltGraph.h | 67 const runner::InputFrame& inputFrame) = 0;
|
/aosp12/packages/services/Car/cpp/evs/support_library/ |
H A D | StreamHandler.cpp | 360 Frame inputFrame = { in processFrame() local 374 mRenderCallback->render(inputFrame, outputFrame); in processFrame()
|