Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/tests/
DDepthProcessorTest.cpp114 DepthPhotoInputFrame inputFrame; in TEST() local
116 inputFrame.mMaxJpegSize = inputFrame.mMainJpegSize * 3; in TEST()
125 std::vector<uint8_t> depthPhotoBuffer(inputFrame.mMaxJpegSize); in TEST()
128 inputFrame.mMainJpegWidth = kTestBufferWidth; in TEST()
129 inputFrame.mMainJpegHeight = kTestBufferHeight; in TEST()
130 inputFrame.mJpegQuality = jpegQuality; in TEST()
131 ASSERT_NE(processFunc(inputFrame, depthPhotoBuffer.size(), depthPhotoBuffer.data(), in TEST()
134 inputFrame.mMainJpegBuffer = reinterpret_cast<const char*> (colorJpegBuffer.data()); in TEST()
135 inputFrame.mMainJpegSize = colorJpegBuffer.size(); in TEST()
136 ASSERT_NE(processFunc(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.cpp633 for (auto &inputFrame : mPendingInputFrames) { in compilePendingInputLocked() local
634 if (inputFrame.second.frameNumber == *it) { in compilePendingInputLocked()
635 inputFrame.second.error = true; in compilePendingInputLocked()
653 InputFrame& inputFrame(it->second); in compilePendingInputLocked() local
654 if (inputFrame.codecInputCounter < mGridRows * mGridCols) { in compilePendingInputLocked()
658 mGridRows * mGridCols - inputFrame.codecInputCounter); in compilePendingInputLocked()
661 { mCodecInputBuffers[0], mGridTimestampUs++, inputFrame.codecInputCounter }; in compilePendingInputLocked()
662 inputFrame.codecInputBuffers.push_back(inputInfo); in compilePendingInputLocked()
665 inputFrame.codecInputCounter++; in compilePendingInputLocked()
714 InputFrame &inputFrame) { in processInputFrame() argument
[all …]
DDepthCompositeStream.cpp199 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(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.depthBuffer.width * inputFrame.depthBuffer.height * 3 / 2); in processInputFrame()
272 auto entry = inputFrame.result.find(ANDROID_JPEG_QUALITY); in processInputFrame()
313 depthPhoto.mMainJpegBuffer = reinterpret_cast<const char*> (inputFrame.jpegBuffer.data); in processInputFrame()
[all …]
DHeicCompositeStream.h182 status_t processInputFrame(nsecs_t timestamp, InputFrame &inputFrame);
183 status_t processCodecInputFrame(InputFrame &inputFrame);
184 status_t startMuxerForInputFrame(nsecs_t timestamp, InputFrame &inputFrame);
185 status_t processAppSegment(nsecs_t timestamp, InputFrame &inputFrame);
186 status_t processOneCodecOutputFrame(nsecs_t timestamp, InputFrame &inputFrame);
187 status_t processCompletedInputFrame(nsecs_t timestamp, InputFrame &inputFrame);
189 void releaseInputFrameLocked(InputFrame *inputFrame /*out*/);
DDepthCompositeStream.h100 status_t processInputFrame(const InputFrame &inputFrame);
104 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.java72 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() local
75 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply()
79 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()