/frameworks/base/media/mca/filterfw/jni/ |
D | jni_gl_frame.cpp | 51 GLFrame* frame = new GLFrame(gl_env_ptr); in Java_android_filterfw_core_GLFrame_nativeAllocate() local 52 if (frame->Init(width, height)) { in Java_android_filterfw_core_GLFrame_nativeAllocate() 53 return ToJBool(WrapObjectInJava(frame, env, thiz, true)); in Java_android_filterfw_core_GLFrame_nativeAllocate() 55 delete frame; in Java_android_filterfw_core_GLFrame_nativeAllocate() 68 GLFrame* frame = new GLFrame(gl_env_ptr); in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() local 69 if (frame->InitWithTexture(tex_id, width, height)) { in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() 70 return ToJBool(WrapObjectInJava(frame, env, thiz, true)); in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() 72 delete frame; in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() 85 GLFrame* frame = new GLFrame(gl_env_ptr); in Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo() local 86 if (frame->InitWithFbo(fbo_id, width, height)) { in Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo() [all …]
|
D | jni_native_frame.cpp | 58 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); in Java_android_filterfw_core_NativeFrame_setNativeData() local 59 if (frame && data) { in Java_android_filterfw_core_NativeFrame_setNativeData() 62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), in Java_android_filterfw_core_NativeFrame_setNativeData() 75 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); in Java_android_filterfw_core_NativeFrame_getNativeData() local 76 if (frame) { in Java_android_filterfw_core_NativeFrame_getNativeData() 77 const uint8_t* data = frame->Data(); in Java_android_filterfw_core_NativeFrame_getNativeData() 78 if (!data || size > frame->Size()) in Java_android_filterfw_core_NativeFrame_getNativeData() 90 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); in Java_android_filterfw_core_NativeFrame_getNativeBuffer() local 91 if (frame) { in Java_android_filterfw_core_NativeFrame_getNativeBuffer() 92 char* data = reinterpret_cast<char*>(frame->MutableData()); in Java_android_filterfw_core_NativeFrame_getNativeBuffer() [all …]
|
D | jni_vertex_frame.cpp | 38 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_setNativeInts() local 39 if (frame && ints) { in Java_android_filterfw_core_VertexFrame_setNativeInts() 43 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(int_ptr), in Java_android_filterfw_core_VertexFrame_setNativeInts() 55 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_setNativeFloats() local 56 if (frame && floats) { in Java_android_filterfw_core_VertexFrame_setNativeFloats() 60 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(float_ptr), in Java_android_filterfw_core_VertexFrame_setNativeFloats() 74 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_setNativeData() local 75 if (frame && data) { in Java_android_filterfw_core_VertexFrame_setNativeData() 78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), in Java_android_filterfw_core_VertexFrame_setNativeData() 88 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_getNativeVboId() local [all …]
|
/frameworks/base/libs/hwui/ |
D | DamageAccumulator.cpp | 128 void DamageAccumulator::applyMatrix4Transform(DirtyStack* frame) { in applyMatrix4Transform() argument 129 mapRect(frame->matrix4, frame->pendingDirty, &mHead->pendingDirty); in applyMatrix4Transform() 143 static DirtyStack* findParentRenderNode(DirtyStack* frame) { in findParentRenderNode() argument 144 while (frame->prev != frame) { in findParentRenderNode() 145 frame = frame->prev; in findParentRenderNode() 146 if (frame->type == TransformRenderNode) { in findParentRenderNode() 147 return frame; in findParentRenderNode() 153 static DirtyStack* findProjectionReceiver(DirtyStack* frame) { in findProjectionReceiver() argument 154 if (frame) { in findProjectionReceiver() 155 while (frame->prev != frame) { in findProjectionReceiver() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | CachedFrameManager.java | 64 public Frame retainFrame(Frame frame) { in retainFrame() argument 65 return super.retainFrame(frame); in retainFrame() 69 public Frame releaseFrame(Frame frame) { in releaseFrame() argument 70 if (frame.isReusable()) { in releaseFrame() 71 int refCount = frame.decRefCount(); in releaseFrame() 72 if (refCount == 0 && frame.hasNativeAllocation()) { in releaseFrame() 73 if (!storeFrame(frame)) { in releaseFrame() 74 frame.releaseNativeAllocation(); in releaseFrame() 81 super.releaseFrame(frame); in releaseFrame() 83 return frame; in releaseFrame() [all …]
|
D | FilterContext.java | 69 public void onFrameReceived(Filter filter, Frame frame, Object userData); in onFrameReceived() argument 72 public synchronized void storeFrame(String key, Frame frame) { in storeFrame() argument 77 frame.onFrameStore(); in storeFrame() 78 mStoredFrames.put(key, frame.retain()); in storeFrame() 82 Frame frame = mStoredFrames.get(key); in fetchFrame() local 83 if (frame != null) { in fetchFrame() 84 frame.onFrameFetch(); in fetchFrame() 86 return frame; in fetchFrame() 90 Frame frame = mStoredFrames.get(key); in removeFrame() local 91 if (frame != null) { in removeFrame() [all …]
|
D | FrameManager.java | 35 public Frame duplicateFrame(Frame frame) { in duplicateFrame() argument 36 Frame result = newFrame(frame.getFormat()); in duplicateFrame() 37 result.setDataFromFrame(frame); in duplicateFrame() 41 public Frame duplicateFrameToTarget(Frame frame, int newTarget) { in duplicateFrameToTarget() argument 42 MutableFrameFormat newFormat = frame.getFormat().mutableCopy(); in duplicateFrameToTarget() 45 result.setDataFromFrame(frame); in duplicateFrameToTarget() 49 public abstract Frame retainFrame(Frame frame); in retainFrame() argument 51 public abstract Frame releaseFrame(Frame frame); in releaseFrame() argument
|
D | FilterPort.java | 98 public abstract void pushFrame(Frame frame); in pushFrame() argument 100 public abstract void setFrame(Frame frame); in setFrame() argument 118 protected void checkFrameType(Frame frame, boolean forceCheck) { in checkFrameType() argument 121 && !frame.getFormat().isCompatibleWith(mPortFormat)) { in checkFrameType() 123 + "Expected " + mPortFormat + " but got " + frame.getFormat()); in checkFrameType() 127 protected void checkFrameManager(Frame frame, FilterContext context) { in checkFrameManager() argument 128 if (frame.getFrameManager() != null in checkFrameManager() 129 && frame.getFrameManager() != context.getFrameManager()) { in checkFrameManager() 130 throw new RuntimeException("Frame " + frame + " is managed by foreign FrameManager! "); in checkFrameManager()
|
D | StreamPort.java | 41 public void setFrame(Frame frame) { in setFrame() argument 42 assignFrame(frame, true); in setFrame() 46 public void pushFrame(Frame frame) { in pushFrame() argument 47 assignFrame(frame, false); in pushFrame() 50 protected synchronized void assignFrame(Frame frame, boolean persistent) { in assignFrame() argument 52 checkFrameType(frame, persistent); in assignFrame() 62 mFrame = frame.retain(); in assignFrame()
|
D | SimpleFrameManager.java | 90 public Frame retainFrame(Frame frame) { in retainFrame() argument 91 frame.incRefCount(); in retainFrame() 92 return frame; in retainFrame() 96 public Frame releaseFrame(Frame frame) { in releaseFrame() argument 97 int refCount = frame.decRefCount(); in releaseFrame() 98 if (refCount == 0 && frame.hasNativeAllocation()) { in releaseFrame() 99 frame.releaseNativeAllocation(); in releaseFrame() 104 return frame; in releaseFrame()
|
D | NativeFrame.java | 202 public void setDataFromFrame(Frame frame) { in setDataFromFrame() argument 204 if (getFormat().getSize() < frame.getFormat().getSize()) { in setDataFromFrame() 206 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " + in setDataFromFrame() 211 if (frame instanceof NativeFrame) { in setDataFromFrame() 212 nativeCopyFromNative((NativeFrame)frame); in setDataFromFrame() 213 } else if (frame instanceof GLFrame) { in setDataFromFrame() 214 nativeCopyFromGL((GLFrame)frame); in setDataFromFrame() 215 } else if (frame instanceof SimpleFrame) { in setDataFromFrame() 216 setObjectValue(frame.getObjectValue()); in setDataFromFrame() 218 super.setDataFromFrame(frame); in setDataFromFrame() [all …]
|
D | FieldPort.java | 43 public void pushFrame(Frame frame) { in pushFrame() argument 44 setFieldFrame(frame, false); in pushFrame() 48 public void setFrame(Frame frame) { in setFrame() argument 49 setFieldFrame(frame, true); in setFrame() 97 protected synchronized void setFieldFrame(Frame frame, boolean isAssignment) { in setFieldFrame() argument 99 checkFrameType(frame, isAssignment); in setFieldFrame() 102 Object value = frame.getObjectValue(); in setFieldFrame()
|
D | GLFrame.java | 254 public void setDataFromFrame(Frame frame) { in setDataFromFrame() argument 258 if (getFormat().getSize() < frame.getFormat().getSize()) { in setDataFromFrame() 260 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " + in setDataFromFrame() 265 if (frame instanceof NativeFrame) { in setDataFromFrame() 266 nativeCopyFromNative((NativeFrame)frame); in setDataFromFrame() 267 } else if (frame instanceof GLFrame) { in setDataFromFrame() 268 nativeCopyFromGL((GLFrame)frame); in setDataFromFrame() 269 } else if (frame instanceof SimpleFrame) { in setDataFromFrame() 270 setObjectValue(frame.getObjectValue()); in setDataFromFrame() 272 super.setDataFromFrame(frame); in setDataFromFrame() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | InputPort.java | 48 public void onFrameReceived(InputPort port, Frame frame); in onFrameReceived() argument 59 public void onFrameReceived(InputPort port, Frame frame) { in onFrameReceived() argument 62 FrameValues frameValues = frame.asFrameValues(); in onFrameReceived() 65 FrameValue frameValue = frame.asFrameValue(); in onFrameReceived() 69 throw new RuntimeException("Assigning frame " + frame + " to field " in onFrameReceived() 181 Frame frame = mQueue.pullFrame(); in pullFrame() local 182 if (frame != null) { in pullFrame() 184 mListener.onFrameReceived(this, frame); in pullFrame() 187 mFilter.addAutoReleaseFrame(frame); in pullFrame() 188 long timestamp = frame.getTimestamp(); in pullFrame() [all …]
|
D | OutputPort.java | 71 Frame frame = getQueue().fetchAvailableFrame(dimensions); in fetchAvailableFrame() local 72 if (frame != null) { in fetchAvailableFrame() 74 mFilter.addAutoReleaseFrame(frame); in fetchAvailableFrame() 76 return frame; in fetchAvailableFrame() 91 public void pushFrame(Frame frame) { in pushFrame() argument 94 long timestamp = frame.getTimestamp(); in pushFrame() 96 frame.setTimestamp(mFilter.getCurrentTimestamp()); in pushFrame() 97 getQueue().pushFrame(frame); in pushFrame()
|
D | TransformUtils.java | 66 public static void generateMipMaps(FrameImage2D frame) { in generateMipMaps() argument 67 TextureSource texture = frame.lockTextureSource(); in generateMipMaps() 69 frame.unlock(); in generateMipMaps() 72 public static void setTextureParameter(FrameImage2D frame, int param, int value) { in setTextureParameter() argument 73 TextureSource texture = frame.lockTextureSource(); in setTextureParameter() 75 frame.unlock(); in setTextureParameter()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | AverageFilterTest.java | 33 FrameValue frame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testAverageFilter() local 34 frame.setValue(5f); in testAverageFilter() 36 injectInputFrame("sharpness", frame); in testAverageFilter() 44 FrameValue frame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testAverageFilter2() local 45 frame.setValue(4f); in testAverageFilter2() 47 injectInputFrame("sharpness", frame); in testAverageFilter2()
|
/frameworks/av/media/libmediaplayerservice/ |
D | MetadataRetrieverClient.cpp | 206 VideoFrame *frame = mRetriever->getFrameAtTime(timeUs, option); in getFrameAtTime() local 207 if (frame == NULL) { in getFrameAtTime() 211 size_t size = sizeof(VideoFrame) + frame->mSize; in getFrameAtTime() 215 delete frame; in getFrameAtTime() 221 delete frame; in getFrameAtTime() 225 frameCopy->mWidth = frame->mWidth; in getFrameAtTime() 226 frameCopy->mHeight = frame->mHeight; in getFrameAtTime() 227 frameCopy->mDisplayWidth = frame->mDisplayWidth; in getFrameAtTime() 228 frameCopy->mDisplayHeight = frame->mDisplayHeight; in getFrameAtTime() 229 frameCopy->mSize = frame->mSize; in getFrameAtTime() [all …]
|
/frameworks/av/media/libstagefright/ |
D | StagefrightMetadataRetriever.cpp | 362 VideoFrame *frame = new VideoFrame; in extractVideoFrame() local 363 frame->mWidth = crop_right - crop_left + 1; in extractVideoFrame() 364 frame->mHeight = crop_bottom - crop_top + 1; in extractVideoFrame() 365 frame->mDisplayWidth = frame->mWidth; in extractVideoFrame() 366 frame->mDisplayHeight = frame->mHeight; in extractVideoFrame() 367 frame->mSize = frame->mWidth * frame->mHeight * 2; in extractVideoFrame() 368 frame->mData = new uint8_t[frame->mSize]; in extractVideoFrame() 369 frame->mRotationAngle = rotationAngle; in extractVideoFrame() 375 frame->mDisplayWidth = (frame->mDisplayWidth * sarWidth) / sarHeight; in extractVideoFrame() 388 frame->mData, in extractVideoFrame() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/ |
D | FrameSourceFilter.java | 56 public synchronized void injectFrame(Frame frame) { in injectFrame() argument 57 mFrames.add(frame); in injectFrame() 63 Frame frame = obtainFrame(); in onProcess() local 64 if (frame != null) { in onProcess() 65 getConnectedOutputPort("output").pushFrame(frame); in onProcess()
|
D | FrameTargetFilter.java | 29 void onFramePushed(String filterName, Frame frame); in onFramePushed() argument 51 Frame frame = getConnectedInputPort("input").pullFrame(); in onProcess() local 53 frame.retain(); in onProcess() 54 mListener.onFramePushed(getName(), frame); in onProcess() local
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 63 bool FrameProcessor::processSingleFrame(CaptureResult &frame, in processSingleFrame() argument 74 isPartialResult = frame.mResultExtras.partialResultCount < mNumPartialResults; in processSingleFrame() 77 entry = frame.mMetadata.find(ANDROID_QUIRKS_PARTIAL_RESULT); in processSingleFrame() 85 if (!isPartialResult && processFaceDetect(frame.mMetadata, client) != OK) { in processSingleFrame() 90 process3aState(frame, client); in processSingleFrame() 93 return FrameProcessorBase::processSingleFrame(frame, device); in processSingleFrame() 96 status_t FrameProcessor::processFaceDetect(const CameraMetadata &frame, in processFaceDetect() argument 107 entry = frame.find(ANDROID_STATISTICS_FACE_DETECT_MODE); in processFaceDetect() 124 entry = frame.find(ANDROID_STATISTICS_FACE_RECTANGLES); in processFaceDetect() 141 entry = frame.find(ANDROID_STATISTICS_FACE_SCORES); in processFaceDetect() [all …]
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | dpb.cpp | 95 …dpb->fs[num_fs]->frame.RefIdx = refIdx++; /* this value will remain unchanged through out the enco… in InitDPB() 96 dpb->fs[num_fs]->frame.picType = AVC_FRAME; in InitDPB() 97 dpb->fs[num_fs]->frame.isLongTerm = 0; in InitDPB() 98 dpb->fs[num_fs]->frame.isReference = 0; in InitDPB() 99 video->RefPicList0[num_fs] = &(dpb->fs[num_fs]->frame); in InitDPB() 100 dpb->fs[num_fs]->frame.padded = 0; in InitDPB() 280 video->currFS->frame.isReference = FALSE; in DPBInitPic() 281 video->currFS->frame.isLongTerm = FALSE; in DPBInitPic() 284 video->currFS->frame.Sl = video->currFS->frame.Scb = video->currFS->frame.Scr = NULL; in DPBInitPic() 290 video->currPic = &(video->currFS->frame); in DPBInitPic() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | BitmapOverlayFilter.java | 109 Frame frame = createBitmapFrame(context); in process() local 111 Frame[] inputs = {input, frame}; in process() 114 frame.release(); in process() 132 Frame frame = context.getFrameManager().newFrame(format); in createBitmapFrame() local 133 frame.setBitmap(mBitmap); in createBitmapFrame() 138 return frame; in createBitmapFrame()
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 384 final Rect frame = mFrame; in onInterceptTouchEvent() local 387 handle.getHitRect(frame); in onInterceptTouchEvent() 388 if (!mTracking && !frame.contains((int) x, (int) y)) { in onInterceptTouchEvent() 607 final Rect frame = mFrame; in moveHandle() local 610 handle.getHitRect(frame); in moveHandle() 611 region.set(frame); in moveHandle() 613 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle() 614 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle() 615 frame.bottom - deltaY + mContent.getHeight()); in moveHandle() 637 final Rect frame = mFrame; in moveHandle() local [all …]
|