/frameworks/native/libs/vr/libdvr/ |
D | dvr_hardware_composer_client.cpp | 14 android::dvr::ComposerView::Frame frame; member 35 const android::dvr::ParcelableComposerFrame& frame, 60 const android::dvr::ParcelableComposerFrame& frame, in onNewFrame() argument 70 dvr_frame->frame = frame.frame(); in onNewFrame() 113 void dvrHwcFrameDestroy(DvrHwcFrame* frame) { in dvrHwcFrameDestroy() argument 114 delete frame; in dvrHwcFrameDestroy() 117 DvrHwcDisplay dvrHwcFrameGetDisplayId(DvrHwcFrame* frame) { in dvrHwcFrameGetDisplayId() argument 118 return frame->frame.display_id; in dvrHwcFrameGetDisplayId() 121 int32_t dvrHwcFrameGetDisplayWidth(DvrHwcFrame* frame) { in dvrHwcFrameGetDisplayWidth() argument 122 return frame->frame.display_width; in dvrHwcFrameGetDisplayWidth() [all …]
|
/frameworks/native/libs/input/tests/ |
D | TouchVideoFrame_test.cpp | 31 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST() local 33 ASSERT_EQ(data, frame.getData()); in TEST() 34 ASSERT_EQ(height, frame.getHeight()); in TEST() 35 ASSERT_EQ(width, frame.getWidth()); in TEST() 36 ASSERT_EQ(TIMESTAMP.tv_sec, frame.getTimestamp().tv_sec); in TEST() 37 ASSERT_EQ(TIMESTAMP.tv_usec, frame.getTimestamp().tv_usec); in TEST() 44 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST() local 47 ASSERT_EQ(frame, identicalFrame); in TEST() 53 ASSERT_FALSE(frame == changedHeightFrame); in TEST() 57 ASSERT_FALSE(frame == changedWidthFrame); in TEST() [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_gl_frame.cpp | 51 std::unique_ptr<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(WrapOwnedObjectInJava(std::move(frame), env, thiz, true)); in Java_android_filterfw_core_GLFrame_nativeAllocate() 66 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_ptr)); in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() local 67 if (frame->InitWithTexture(tex_id, width, height)) { in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() 68 return ToJBool(WrapOwnedObjectInJava(std::move(frame), env, thiz, true)); in Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture() 81 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_ptr)); in Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo() local 82 if (frame->InitWithFbo(fbo_id, width, height)) { in Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo() 83 return ToJBool(WrapOwnedObjectInJava(std::move(frame), env, thiz, true)); in Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo() 93 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_ptr)); in Java_android_filterfw_core_GLFrame_nativeAllocateExternal() local [all …]
|
D | jni_native_frame.cpp | 38 std::unique_ptr<NativeFrame> frame(new NativeFrame(size)); in Java_android_filterfw_core_NativeFrame_nativeAllocate() local 39 return ToJBool(WrapOwnedObjectInJava(std::move(frame), env, thiz, true)); in Java_android_filterfw_core_NativeFrame_nativeAllocate() 59 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); in Java_android_filterfw_core_NativeFrame_setNativeData() local 60 if (frame && data) { in Java_android_filterfw_core_NativeFrame_setNativeData() 63 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), in Java_android_filterfw_core_NativeFrame_setNativeData() 76 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); in Java_android_filterfw_core_NativeFrame_getNativeData() local 77 if (frame) { in Java_android_filterfw_core_NativeFrame_getNativeData() 78 const uint8_t* data = frame->Data(); in Java_android_filterfw_core_NativeFrame_getNativeData() 79 if (!data || size > frame->Size()) in Java_android_filterfw_core_NativeFrame_getNativeData() 91 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); in Java_android_filterfw_core_NativeFrame_getNativeBuffer() local [all …]
|
D | jni_vertex_frame.cpp | 27 std::unique_ptr<VertexFrame> frame(new VertexFrame(size)); in Java_android_filterfw_core_VertexFrame_nativeAllocate() local 28 return ToJBool(WrapOwnedObjectInJava(std::move(frame), env, thiz, true)); in Java_android_filterfw_core_VertexFrame_nativeAllocate() 39 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_setNativeInts() local 40 if (frame && ints) { in Java_android_filterfw_core_VertexFrame_setNativeInts() 44 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(int_ptr), in Java_android_filterfw_core_VertexFrame_setNativeInts() 56 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_setNativeFloats() local 57 if (frame && floats) { in Java_android_filterfw_core_VertexFrame_setNativeFloats() 61 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(float_ptr), in Java_android_filterfw_core_VertexFrame_setNativeFloats() 75 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); in Java_android_filterfw_core_VertexFrame_setNativeData() local 76 if (frame && data) { in Java_android_filterfw_core_VertexFrame_setNativeData() [all …]
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
D | dvr_hardware_composer_client.h | 20 typedef int(*DvrHwcOnFrameCallback)(void* client_state, DvrHwcFrame* frame); 32 void dvrHwcFrameDestroy(DvrHwcFrame* frame); 36 DvrHwcDisplay dvrHwcFrameGetDisplayId(DvrHwcFrame* frame); 41 int32_t dvrHwcFrameGetDisplayWidth(DvrHwcFrame* frame); 46 int32_t dvrHwcFrameGetDisplayHeight(DvrHwcFrame* frame); 52 bool dvrHwcFrameGetDisplayRemoved(DvrHwcFrame* frame); 56 size_t dvrHwcFrameGetLayerCount(DvrHwcFrame* frame); 60 uint32_t dvrHwcFrameGetActiveConfig(DvrHwcFrame* frame); 65 uint32_t dvrHwcFrameGetColorMode(DvrHwcFrame* frame); 72 void dvrHwcFrameGetColorTransform(DvrHwcFrame* frame, float* out_matrix, [all …]
|
D | dvr_api.h | 310 typedef int (*DvrHwcOnFrameCallback)(void* client_state, DvrHwcFrame* frame); 314 typedef void (*DvrHwcFrameDestroyPtr)(DvrHwcFrame* frame); 315 typedef DvrHwcDisplay (*DvrHwcFrameGetDisplayIdPtr)(DvrHwcFrame* frame); 316 typedef int32_t (*DvrHwcFrameGetDisplayWidthPtr)(DvrHwcFrame* frame); 317 typedef int32_t (*DvrHwcFrameGetDisplayHeightPtr)(DvrHwcFrame* frame); 318 typedef bool (*DvrHwcFrameGetDisplayRemovedPtr)(DvrHwcFrame* frame); 319 typedef size_t (*DvrHwcFrameGetLayerCountPtr)(DvrHwcFrame* frame); 320 typedef DvrHwcLayer (*DvrHwcFrameGetLayerIdPtr)(DvrHwcFrame* frame, 322 typedef uint32_t (*DvrHwcFrameGetActiveConfigPtr)(DvrHwcFrame* frame); 323 typedef uint32_t (*DvrHwcFrameGetColorModePtr)(DvrHwcFrame* frame); [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | track_test_output_v1.0_ref_walleye.txt | 8 frame count(4800), req. frame count(4800) 9 notif. frame count(2400), req. notif. frame count(2400), req. notif. per buff(0) 11 output(13) AF latency (50) AF frame count(960) AF SampleRate(48000) 19 frame count(4800), req. frame count(4800) 20 notif. frame count(1600), req. notif. frame count(2400), req. notif. per buff(0) 22 output(13) AF latency (50) AF frame count(960) AF SampleRate(48000) 30 frame count(4800), req. frame count(4800) 31 notif. frame count(1600), req. notif. frame count(2400), req. notif. per buff(0) 33 output(13) AF latency (50) AF frame count(960) AF SampleRate(48000) 41 frame count(4800), req. frame count(4800) [all …]
|
D | record_test_output_v1.0_ref_walleye.txt | 7 frame count(4800), req. frame count(4800) 8 notif. frame count(960), req. notif. frame count(2400) 16 frame count(4800), req. frame count(4800) 17 notif. frame count(480), req. notif. frame count(2400) 25 frame count(4800), req. frame count(4800) 26 notif. frame count(320), req. notif. frame count(2400) 34 frame count(4800), req. frame count(4800) 35 notif. frame count(160), req. notif. frame count(2400) 43 frame count(4410), req. frame count(4410) 44 notif. frame count(896), req. notif. frame count(2205) [all …]
|
/frameworks/base/libs/hwui/ |
D | DamageAccumulator.cpp | 136 void DamageAccumulator::applyMatrix4Transform(DirtyStack* frame) { in applyMatrix4Transform() argument 137 mapRect(frame->matrix4, frame->pendingDirty, &mHead->pendingDirty); in applyMatrix4Transform() 158 static DirtyStack* findParentRenderNode(DirtyStack* frame) { in findParentRenderNode() argument 159 while (frame->prev != frame) { in findParentRenderNode() 160 frame = frame->prev; in findParentRenderNode() 161 if (frame->type == TransformRenderNode) { in findParentRenderNode() 162 return frame; in findParentRenderNode() 168 static DirtyStack* findProjectionReceiver(DirtyStack* frame) { in findProjectionReceiver() argument 169 if (frame) { in findProjectionReceiver() 170 while (frame->prev != frame) { in findProjectionReceiver() [all …]
|
D | JankTracker.cpp | 109 void JankTracker::finishFrame(const FrameInfo& frame) { in finishFrame() argument 111 int64_t totalDuration = frame.duration(sFrameStart, FrameInfoIndex::FrameCompleted); in finishFrame() 112 if (mDequeueTimeForgiveness && frame[FrameInfoIndex::DequeueBufferDuration] > 500_us) { in finishFrame() 113 nsecs_t expectedDequeueDuration = mDequeueTimeForgiveness + frame[FrameInfoIndex::Vsync] - in finishFrame() 114 frame[FrameInfoIndex::IssueDrawCommandsStart]; in finishFrame() 119 std::min(expectedDequeueDuration, frame[FrameInfoIndex::DequeueBufferDuration]); in finishFrame() 133 if (CC_UNLIKELY(frame[FrameInfoIndex::Flags] & EXEMPT_FRAMES_FLAGS)) { in finishFrame() 142 …bool isTripleBuffered = (mSwapDeadline - frame[FrameInfoIndex::IntendedVsync]) > (mFrameInterval *… in finishFrame() 145 frame[FrameInfoIndex::IntendedVsync] + mFrameInterval); in finishFrame() 148 if (frame[FrameInfoIndex::FrameCompleted] < mSwapDeadline || totalDuration < mFrameInterval) { in finishFrame() [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 | 68 public void onFrameReceived(Filter filter, Frame frame, Object userData); in onFrameReceived() argument 71 public synchronized void storeFrame(String key, Frame frame) { in storeFrame() argument 76 frame.onFrameStore(); in storeFrame() 77 mStoredFrames.put(key, frame.retain()); in storeFrame() 81 Frame frame = mStoredFrames.get(key); in fetchFrame() local 82 if (frame != null) { in fetchFrame() 83 frame.onFrameFetch(); in fetchFrame() 85 return frame; in fetchFrame() 89 Frame frame = mStoredFrames.get(key); in removeFrame() local 90 if (frame != null) { in removeFrame() [all …]
|
D | FrameManager.java | 36 public Frame duplicateFrame(Frame frame) { in duplicateFrame() argument 37 Frame result = newFrame(frame.getFormat()); in duplicateFrame() 38 result.setDataFromFrame(frame); in duplicateFrame() 42 public Frame duplicateFrameToTarget(Frame frame, int newTarget) { in duplicateFrameToTarget() argument 43 MutableFrameFormat newFormat = frame.getFormat().mutableCopy(); in duplicateFrameToTarget() 46 result.setDataFromFrame(frame); in duplicateFrameToTarget() 50 public abstract Frame retainFrame(Frame frame); in retainFrame() argument 52 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()
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 39 const ParcelableComposerFrame& frame, in onNewFrame() argument 41 last_frame_ = frame.frame(); in onNewFrame() 57 const ParcelableComposerFrame& frame, in onNewFrame() argument 59 binder::Status status = TestComposerCallback::onNewFrame(frame, fence); in onNewFrame() 102 ComposerView::Frame frame; in TEST_F() local 104 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() 115 ComposerView::Frame frame; in TEST_F() local 116 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() 125 ComposerView::Frame frame; in TEST_F() local 126 frame.display_id = 1; in TEST_F() [all …]
|
/frameworks/native/libs/gui/ |
D | FrameTimestamps.cpp | 163 bool operator()(const FrameEvents& frame) { in operator ()() 164 return frame.valid && mFrameNumber == frame.frameNumber; in operator ()() 179 auto frame = std::find_if( in getFrame() local 181 return frame == mFrames.end() ? nullptr : &(*frame); in getFrame() 187 auto frame = std::find_if( in getFrame() local 189 if (frame == mFrames.end()) { in getFrame() 190 frame = std::find_if( in getFrame() 192 if (frame == hint) { in getFrame() 196 *iHint = static_cast<size_t>(std::distance(mFrames.begin(), frame)); in getFrame() 197 return &(*frame); in getFrame() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | GIFMovie.cpp | 149 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument 154 GifWord copyWidth = frame->ImageDesc.Width; in blitInterlace() 155 if (frame->ImageDesc.Left + copyWidth > width) { in blitInterlace() 156 copyWidth = width - frame->ImageDesc.Left; in blitInterlace() 159 GifWord copyHeight = frame->ImageDesc.Height; in blitInterlace() 160 if (frame->ImageDesc.Top + copyHeight > height) { in blitInterlace() 161 copyHeight = height - frame->ImageDesc.Top; in blitInterlace() 165 const unsigned char* src = (unsigned char*)frame->RasterBits; in blitInterlace() 168 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace() 171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace() [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()
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 638 MediaBufferHelper *frame = *mPendingFrames.begin(); in clearPendingFrames() local 641 frame->release(); in clearPendingFrames() 642 frame = NULL; in clearPendingFrames() 789 const mkvparser::Block::Frame &frame = block->GetFrame(i); in readBlock() local 790 size_t len = frame.len; in readBlock() 828 status_t err = frame.Read(mExtractor->mReader, data + trackInfo->mHeaderLen); in readBlock() 889 MediaBufferHelper *frame = *mPendingFrames.begin(); in findMP3Header() local 890 size_t size = frame->range_length(); in findMP3Header() 891 size_t offset = frame->range_offset(); in findMP3Header() 895 ALOGV("data[%zu]=%x", i, *((uint8_t*)frame->data() + offset + i)); in findMP3Header() [all …]
|