Home
last modified time | relevance | path

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

12

/aosp12/frameworks/av/services/camera/libcameraservice/tests/
H A DDepthProcessorTest.cpp83 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 DDepthPhotoProcessor.cpp269 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 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()
/aosp12/frameworks/av/services/camera/libcameraservice/api2/
H A DHeicCompositeStream.cpp834 (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 DDepthCompositeStream.cpp195 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 DHeicCompositeStream.h190 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 DDepthCompositeStream.h110 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 Devs_app_support_lib.cpp29 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 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()
H A DThroughputFilter.java66 Frame inputFrame = getConnectedInputPort("frame").pullFrame(); in onProcess() local
85 inputFrame.getElementCount()); in onProcess()
93 getConnectedOutputPort("frame").pushFrame(inputFrame); in onProcess()
H A DBranchFilter.java67 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 DLocalPrebuiltGraphTest.cpp133 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 DIdentityEffect.java37 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 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()
H A 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()
/aosp12/packages/services/Car/cpp/computepipe/tests/fuzz/
H A DGrpcGraphFuzzer.cpp92 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 DLocalPrebuildGraphFuzzer.cpp93 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 DLocalPrebuiltGraph.cpp307 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 DGrpcGraph.h85 const runner::InputFrame& inputFrame) override;
/aosp12/frameworks/av/media/codecs/m4v_h263/enc/src/
H A 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()
/aosp12/packages/services/Car/cpp/computepipe/runner/input_manager/
H A DVideoDecoder.cpp322 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 DEvsInputManager.cpp47 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 DPixelStreamManager.cpp68 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 DPrebuiltGraph.h67 const runner::InputFrame& inputFrame) = 0;
/aosp12/packages/services/Car/cpp/evs/support_library/
H A DStreamHandler.cpp360 Frame inputFrame = { in processFrame() local
374 mRenderCallback->render(inputFrame, outputFrame); in processFrame()

12