Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 166) sorted by relevance

1234567

/frameworks/base/media/mca/filterfw/jni/
Djni_gl_frame.cpp51 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 …]
Djni_native_frame.cpp58 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 …]
Djni_vertex_frame.cpp38 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/media/mca/filterfw/java/android/filterfw/core/
DCachedFrameManager.java64 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 …]
DFilterContext.java69 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 …]
DFrameManager.java35 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
DFilterPort.java98 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()
DStreamPort.java41 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()
DSimpleFrameManager.java90 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()
DNativeFrame.java204 public void setDataFromFrame(Frame frame) { in setDataFromFrame() argument
206 if (getFormat().getSize() < frame.getFormat().getSize()) { in setDataFromFrame()
208 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " + in setDataFromFrame()
213 if (frame instanceof NativeFrame) { in setDataFromFrame()
214 nativeCopyFromNative((NativeFrame)frame); in setDataFromFrame()
215 } else if (frame instanceof GLFrame) { in setDataFromFrame()
216 nativeCopyFromGL((GLFrame)frame); in setDataFromFrame()
217 } else if (frame instanceof SimpleFrame) { in setDataFromFrame()
218 setObjectValue(frame.getObjectValue()); in setDataFromFrame()
220 super.setDataFromFrame(frame); in setDataFromFrame()
[all …]
DFieldPort.java43 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()
DGLFrame.java254 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/policy/src/com/android/internal/policy/impl/keyguard/
DKeyguardViewStateManager.java178 private int getChallengeTopRelativeToFrame(KeyguardWidgetFrame frame, int top) { in getChallengeTopRelativeToFrame() argument
181 mapPoint((View) mChallengeLayout, frame, mTmpPoint); in getChallengeTopRelativeToFrame() local
221 … KeyguardWidgetFrame frame = mKeyguardWidgetPager.getWidgetPageAt(mPageListeningToSlider); in onScrollStateChanged() local
222 if (frame == null) return; in onScrollStateChanged()
226 frame.resetSize(); in onScrollStateChanged()
232 if (frame.isSmall()) { in onScrollStateChanged()
235 frame.setFrameHeight(frame.getSmallFrameHeight()); in onScrollStateChanged()
238 frame.hideFrame(this); in onScrollStateChanged()
253 … KeyguardWidgetFrame frame = mKeyguardWidgetPager.getWidgetPageAt(mPageListeningToSlider); in onScrollStateChanged() local
254 if (frame == null) return; in onScrollStateChanged()
[all …]
DKeyguardWidgetPager.java186 KeyguardWidgetFrame frame = getWidgetPageAt(i); in updateWidgetFramesImportantForAccessibility() local
187 updateWidgetFrameImportantForAccessibility(frame); in updateWidgetFramesImportantForAccessibility()
191 private void updateWidgetFrameImportantForAccessibility(KeyguardWidgetFrame frame) { in updateWidgetFrameImportantForAccessibility() argument
192 if (frame.getContentAlpha() <= 0) { in updateWidgetFrameImportantForAccessibility()
193 frame.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); in updateWidgetFrameImportantForAccessibility()
195 frame.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in updateWidgetFrameImportantForAccessibility()
296 KeyguardWidgetFrame frame; in addWidget() local
299 frame = new KeyguardWidgetFrame(getContext()); in addWidget()
307 frame.addView(widget, lp); in addWidget()
314 frame.setWidgetLockedSmall(false); in addWidget()
[all …]
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DProfiledWebView.java211 for (int frame = 0; frame < data.frames.length; frame++) { in stopScrollTest()
212 data.frames[frame] = new TileData[ in stopScrollTest()
213 getWebViewClassic().tileProfilingNumTilesInFrame(frame)]; in stopScrollTest()
214 for (int tile = 0; tile < data.frames[frame].length; tile++) { in stopScrollTest()
215 int left = getWebViewClassic().tileProfilingGetInt(frame, tile, "left"); in stopScrollTest()
216 int top = getWebViewClassic().tileProfilingGetInt(frame, tile, "top"); in stopScrollTest()
217 int right = getWebViewClassic().tileProfilingGetInt(frame, tile, "right"); in stopScrollTest()
218 int bottom = getWebViewClassic().tileProfilingGetInt(frame, tile, "bottom"); in stopScrollTest()
221 frame, tile, "isReady") == 1; in stopScrollTest()
222 int level = getWebViewClassic().tileProfilingGetInt(frame, tile, "level"); in stopScrollTest()
[all …]
DPlaybackGraphs.java50 public double getValue(TileData[] frame); in getValue() argument
61 public double getValue(TileData[] frame) {
62 int renderTimeUS = frame[0].level;
78 public double getValue(TileData[] frame) {
80 for (int tileID = 1; tileID < frame.length; tileID++) {
81 TileData data = frame[tileID];
82 double coverage = viewportCoverage(frame[0], data);
217 TileData frame[] = data.frames[frameIndex]; in gatherFrameMetric() local
218 int newBar = (int)((frame[0].top + frame[0].bottom) * frame[0].scale / 2.0f); in gatherFrameMetric()
221 double absoluteValue = s.getValue(frame); in gatherFrameMetric()
/frameworks/av/media/libstagefright/
DStagefrightMetadataRetriever.cpp266 VideoFrame *frame = new VideoFrame; in extractVideoFrameWithCodecFlags() local
267 frame->mWidth = crop_right - crop_left + 1; in extractVideoFrameWithCodecFlags()
268 frame->mHeight = crop_bottom - crop_top + 1; in extractVideoFrameWithCodecFlags()
269 frame->mDisplayWidth = frame->mWidth; in extractVideoFrameWithCodecFlags()
270 frame->mDisplayHeight = frame->mHeight; in extractVideoFrameWithCodecFlags()
271 frame->mSize = frame->mWidth * frame->mHeight * 2; in extractVideoFrameWithCodecFlags()
272 frame->mData = new uint8_t[frame->mSize]; in extractVideoFrameWithCodecFlags()
273 frame->mRotationAngle = rotationAngle; in extractVideoFrameWithCodecFlags()
277 frame->mDisplayWidth = displayWidth; in extractVideoFrameWithCodecFlags()
280 frame->mDisplayHeight = displayHeight; in extractVideoFrameWithCodecFlags()
[all …]
/frameworks/av/media/libmediaplayerservice/
DMetadataRetrieverClient.cpp187 VideoFrame *frame = mRetriever->getFrameAtTime(timeUs, option); in getFrameAtTime() local
188 if (frame == NULL) { in getFrameAtTime()
192 size_t size = sizeof(VideoFrame) + frame->mSize; in getFrameAtTime()
196 delete frame; in getFrameAtTime()
202 delete frame; in getFrameAtTime()
206 frameCopy->mWidth = frame->mWidth; in getFrameAtTime()
207 frameCopy->mHeight = frame->mHeight; in getFrameAtTime()
208 frameCopy->mDisplayWidth = frame->mDisplayWidth; in getFrameAtTime()
209 frameCopy->mDisplayHeight = frame->mDisplayHeight; in getFrameAtTime()
210 frameCopy->mSize = frame->mSize; in getFrameAtTime()
[all …]
/frameworks/av/services/camera/libcameraservice/camera2/
DFrameProcessor.cpp98 CameraMetadata frame; in processNewFrames() local
99 while ( (res = client->getCameraDevice()->getNextFrame(&frame)) == OK) { in processNewFrames()
102 entry = frame.find(ANDROID_REQUEST_FRAME_COUNT); in processNewFrames()
110 res = processFaceDetect(frame, client); in processNewFrames()
113 res = processListeners(frame, client); in processNewFrames()
116 if (!frame.isEmpty()) { in processNewFrames()
117 mLastFrame.acquire(frame); in processNewFrames()
129 status_t FrameProcessor::processListeners(const CameraMetadata &frame, in processListeners() argument
135 entry = frame.find(ANDROID_REQUEST_ID); in processListeners()
165 (*item)->onFrameAvailable(frameId, frame); in processListeners()
[all …]
DZslProcessor.cpp72 void ZslProcessor::onFrameAvailable(int32_t frameId, const CameraMetadata &frame) { in onFrameAvailable() argument
75 entry = frame.find(ANDROID_SENSOR_TIMESTAMP); in onFrameAvailable()
81 mFrameList.editItemAt(mFrameListHead) = frame; in onFrameAvailable()
258 if (!mZslQueue[index].frame.isEmpty()) { in pushToReprocess()
259 request = mZslQueue[index].frame; in pushToReprocess()
443 queueHead.frame.release(); in processNewZslBuffer()
462 if (!queueEntry.frame.isEmpty()) { in findMatchesLocked()
463 entry = queueEntry.frame.find(ANDROID_SENSOR_TIMESTAMP); in findMatchesLocked()
469 if (queueEntry.frame.isEmpty() && bufferTimestamp != 0) { in findMatchesLocked()
473 CameraMetadata &frame = mFrameList.editItemAt(j); in findMatchesLocked() local
[all …]
/frameworks/base/services/java/com/android/server/wm/
DWindowState.java440 final Rect frame = mFrame; in computeFrameLw() local
441 final int fw = frame.width(); in computeFrameLw()
442 final int fh = frame.height(); in computeFrameLw()
458 (int) (y + mAttrs.verticalMargin * ph), frame); in computeFrameLw()
463 Gravity.applyDisplay(mAttrs.gravity, df, frame); in computeFrameLw()
467 if (content.left < frame.left) content.left = frame.left; in computeFrameLw()
468 if (content.top < frame.top) content.top = frame.top; in computeFrameLw()
469 if (content.right > frame.right) content.right = frame.right; in computeFrameLw()
470 if (content.bottom > frame.bottom) content.bottom = frame.bottom; in computeFrameLw()
471 if (visible.left < frame.left) visible.left = frame.left; in computeFrameLw()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/common/src/
Ddpb.cpp95 …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/wilhelm/tests/examples/
DslesTestDecodeAac.cpp110 unsigned char *frame; variable
281 } else if (!(filelen < 7 || frame[0] != 0xFF || (frame[1] & 0xF0) != 0xF0)) { in AndroidBufferQueueCallback()
286 unsigned framelen = ((frame[3] & 3) << 11) | (frame[4] << 3) | (frame[5] >> 5); in AndroidBufferQueueCallback()
290 frame, framelen, NULL, 0); in AndroidBufferQueueCallback()
292 frame += framelen; in AndroidBufferQueueCallback()
300 frame - (unsigned char *) ptr, framelen, filelen); in AndroidBufferQueueCallback()
301 frame += filelen; in AndroidBufferQueueCallback()
306 frame - (unsigned char *) ptr, filelen); in AndroidBufferQueueCallback()
307 frame += filelen; in AndroidBufferQueueCallback()
437 frame = (unsigned char *) ptr; in TestDecToBuffQueue()
[all …]
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java364 final Rect frame = mFrame; in onInterceptTouchEvent() local
367 handle.getHitRect(frame); in onInterceptTouchEvent()
368 if (!mTracking && !frame.contains((int) x, (int) y)) { in onInterceptTouchEvent()
587 final Rect frame = mFrame; in moveHandle() local
590 handle.getHitRect(frame); in moveHandle()
591 region.set(frame); in moveHandle()
593 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle()
594 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle()
595 frame.bottom - deltaY + mContent.getHeight()); in moveHandle()
617 final Rect frame = mFrame; in moveHandle() local
[all …]
/frameworks/base/core/java/android/view/
DWindowInfo.java44 public final Rect frame = new Rect(); field in WindowInfo
70 parcel.writeParcelable(frame, 0); in writeToParcel()
82 frame.set((Rect) parcel.readParcelable(null)); in initFromParcel()
94 info.frame.set(other.frame); in obtain()
136 frame.setEmpty(); in clear()
154 builder.append(", frame:").append(frame); in toString()

1234567