Home
last modified time | relevance | path

Searched refs:inputFrame (Results 1 – 13 of 13) 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.cpp265 void rotate0AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate0AndUnpack() argument
267 for (size_t i = 0; i < inputFrame.mDepthMapHeight; i++) { in rotate0AndUnpack()
268 for (size_t j = 0; j < inputFrame.mDepthMapWidth; j++) { in rotate0AndUnpack()
269 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate0AndUnpack()
277 void rotate90AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate90AndUnpack() argument
279 for (size_t i = 0; i < inputFrame.mDepthMapWidth; i++) { in rotate90AndUnpack()
280 for (ssize_t j = inputFrame.mDepthMapHeight-1; j >= 0; j--) { in rotate90AndUnpack()
281 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate90AndUnpack()
288 void rotate180AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate180AndUnpack() argument
290 for (ssize_t i = inputFrame.mDepthMapHeight-1; i >= 0; i--) { in rotate180AndUnpack()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp757 InputFrame& inputFrame(it->second); in compilePendingInputLocked() local
758 if (inputFrame.codecInputCounter < mGridRows * mGridCols) { in compilePendingInputLocked()
762 mGridRows * mGridCols - inputFrame.codecInputCounter); in compilePendingInputLocked()
765 { mCodecInputBuffers[0], mGridTimestampUs++, inputFrame.codecInputCounter }; in compilePendingInputLocked()
766 inputFrame.codecInputBuffers.push_back(inputInfo); in compilePendingInputLocked()
769 inputFrame.codecInputCounter++; in compilePendingInputLocked()
827 InputFrame &inputFrame) { in processInputFrame() argument
832 (inputFrame.appSegmentBuffer.data != nullptr || inputFrame.exifError) && in processInputFrame()
833 !inputFrame.appSegmentWritten && inputFrame.result != nullptr && in processInputFrame()
834 inputFrame.muxer != nullptr; in processInputFrame()
[all …]
DDepthCompositeStream.cpp177 for (auto &inputFrame : mPendingInputFrames) { in compilePendingInputLocked() local
178 if (inputFrame.second.frameNumber == *it) { in compilePendingInputLocked()
179 inputFrame.second.error = true; in compilePendingInputLocked()
228 status_t DepthCompositeStream::processInputFrame(nsecs_t ts, const InputFrame &inputFrame) { in processInputFrame() argument
235 auto jpegSize = android::camera2::JpegProcessor::findJpegSize(inputFrame.jpegBuffer.data, in processInputFrame()
236 inputFrame.jpegBuffer.width); in processInputFrame()
239 jpegSize = inputFrame.jpegBuffer.width; in processInputFrame()
247 inputFrame.depthBuffer.width * inputFrame.depthBuffer.height * 3 / 2); in processInputFrame()
250 auto entry = inputFrame.result.find(ANDROID_JPEG_QUALITY); in processInputFrame()
291 depthPhoto.mMainJpegBuffer = reinterpret_cast<const char*> (inputFrame.jpegBuffer.data); in processInputFrame()
[all …]
DHeicCompositeStream.h188 status_t processInputFrame(int64_t frameNumber, InputFrame &inputFrame);
189 status_t processCodecInputFrame(InputFrame &inputFrame);
190 status_t startMuxerForInputFrame(int64_t frameNumber, InputFrame &inputFrame);
191 status_t processAppSegment(int64_t frameNumber, InputFrame &inputFrame);
192 status_t processOneCodecOutputFrame(int64_t frameNumber, InputFrame &inputFrame);
193 status_t processCompletedInputFrame(int64_t frameNumber, InputFrame &inputFrame);
195 void releaseInputFrameLocked(int64_t frameNumber, InputFrame *inputFrame /*out*/);
DDepthCompositeStream.h102 status_t processInputFrame(nsecs_t ts, const InputFrame &inputFrame);
106 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/av/media/libstagefright/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()