Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 115) sorted by relevance

12345

/frameworks/rs/
DrsScript.cpp44 void Script::setSlot(uint32_t slot, Allocation *a) { in setSlot() argument
46 if (slot >= mHal.info.exportedVariableCount) { in setSlot()
51 mSlots[slot].set(a); in setSlot()
53 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a); in setSlot()
56 void Script::setVar(uint32_t slot, const void *val, size_t len) { in setVar() argument
58 if (slot >= mHal.info.exportedVariableCount) { in setVar()
62 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); in setVar()
65 void Script::getVar(uint32_t slot, const void *val, size_t len) { in getVar() argument
67 if (slot >= mHal.info.exportedVariableCount) { in getVar()
69 "%u >= %zu", slot, mHal.info.exportedVariableCount); in getVar()
[all …]
DrsProgram.cpp152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { in bindAllocation() argument
154 if (slot >= mHal.state.constantsCount) { in bindAllocation()
156 slot, (uintptr_t)this, mHal.state.constantsCount); in bindAllocation()
160 if (alloc->getType() != mConstantTypes[slot].get()) { in bindAllocation()
162 slot, (uintptr_t)this); in bindAllocation()
167 if (mConstants[slot].get() == alloc) { in bindAllocation()
170 if (mConstants[slot].get()) { in bindAllocation()
171 mConstants[slot]->removeProgramToDirty(this); in bindAllocation()
173 mConstants[slot].set(alloc); in bindAllocation()
174 mHal.state.constants[slot] = alloc; in bindAllocation()
[all …]
DrsScript.h37 ScriptKernelID(Context *rsc, Script *s, int slot, int sig);
51 ScriptFieldID(Context *rsc, Script *s, int slot);
102 void setSlot(uint32_t slot, Allocation *a);
103 void setVar(uint32_t slot, const void *val, size_t len);
104 void getVar(uint32_t slot, const void *val, size_t len);
105 void setVar(uint32_t slot, const void *val, size_t len, Element *e,
107 void setVarObj(uint32_t slot, ObjectBase *val);
112 uint32_t slot,
120 uint32_t slot,
128 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) = 0;
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_imdct_synth.cpp319 for (int32 slot = 1; slot < FILTERBANK_BANDS; slot += 6) in pvmp3_imdct_synth() local
321 int32 temp1 = out[slot ]; in pvmp3_imdct_synth()
322 int32 temp2 = out[slot+2]; in pvmp3_imdct_synth()
323 int32 temp3 = out[slot+4]; in pvmp3_imdct_synth()
324 out[slot ] = -temp1; in pvmp3_imdct_synth()
325 out[slot+2] = -temp2; in pvmp3_imdct_synth()
326 out[slot+4] = -temp3; in pvmp3_imdct_synth()
336 int32 slot; in pvmp3_imdct_synth() local
340 for (slot = 0; slot < FILTERBANK_BANDS; slot += 6) in pvmp3_imdct_synth()
342 int32 temp1 = history[slot ]; in pvmp3_imdct_synth()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScript.java46 KernelID(int id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
49 mSlot = slot; in KernelID()
66 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument
67 KernelID k = mKIDs.get(slot); in createKernelID()
75 k = new KernelID(0, mRS, this, slot, sig); in createKernelID()
77 k.mN = mT.thunkCreateKernelID(slot, sig, ein, eout); in createKernelID()
79 mKIDs.put(slot, k); in createKernelID()
84 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID()
89 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
91 mKIDs.put(slot, k); in createKernelID()
[all …]
DScriptCThunker.java43 int slot, int sig, Element ein, Element eout) { in thunkCreateKernelID() argument
54 android.renderscript.Script.KernelID kid = createKernelID(slot, sig, nein, neout); in thunkCreateKernelID()
62 void thunkInvoke(int slot) { in thunkInvoke() argument
64 invoke(slot); in thunkInvoke()
70 void thunkBindAllocation(Allocation va, int slot) { in thunkBindAllocation() argument
76 bindAllocation(nva, slot); in thunkBindAllocation()
90 void thunkInvoke(int slot, FieldPacker v) { in thunkInvoke() argument
94 invoke(slot, nfp); in thunkInvoke()
100 void thunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { in thunkForEach() argument
114 forEach(slot, nin, nout, nfp); in thunkForEach()
[all …]
DRenderScript.java526 native void rsnScriptBindAllocation(int con, int script, int alloc, int slot); in rsnScriptBindAllocation() argument
527 synchronized void nScriptBindAllocation(int script, int alloc, int slot) { in nScriptBindAllocation() argument
529 rsnScriptBindAllocation(mContext, script, alloc, slot); in nScriptBindAllocation()
536 native void rsnScriptInvoke(int con, int id, int slot); in rsnScriptInvoke() argument
537 synchronized void nScriptInvoke(int id, int slot) { in nScriptInvoke() argument
539 rsnScriptInvoke(mContext, id, slot); in nScriptInvoke()
541 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout, byte[] params); in rsnScriptForEach() argument
542 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout); in rsnScriptForEach() argument
543 native void rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, byte[] params, in rsnScriptForEachClipped() argument
545 native void rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, in rsnScriptForEachClipped() argument
[all …]
/frameworks/native/libs/gui/
DBufferQueueCore.cpp107 const BufferSlot& slot(mSlots[s]); in dump() local
108 if (slot.mBufferState != BufferSlot::FREE || in dump()
109 slot.mGraphicBuffer != NULL) { in dump()
116 const BufferSlot& slot(mSlots[s]); in dump() local
117 const sp<GraphicBuffer>& buffer(slot.mGraphicBuffer); in dump()
119 (slot.mBufferState == BufferSlot::ACQUIRED) ? ">" : " ", in dump()
121 BufferSlot::bufferStateName(slot.mBufferState)); in dump()
190 void BufferQueueCore::freeBufferLocked(int slot) { in freeBufferLocked() argument
191 BQ_LOGV("freeBufferLocked: slot %d", slot); in freeBufferLocked()
192 mSlots[slot].mGraphicBuffer.clear(); in freeBufferLocked()
[all …]
DConsumerBase.cpp202 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument
205 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence()
208 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument
210 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked()
214 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked()
218 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
219 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
222 String8::format("%.28s:%d", mName.string(), slot), in addReleaseFenceLocked()
223 mSlots[slot].mFence, fence); in addReleaseFenceLocked()
228 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
DBufferQueueConsumer.cpp146 int slot = front->mSlot; in acquireBuffer() local
148 ATRACE_BUFFER_INDEX(slot); in acquireBuffer()
151 slot, front->mFrameNumber, front->mGraphicBuffer->handle); in acquireBuffer()
154 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
155 mSlots[slot].mNeedsCleanupOnRelease = false; in acquireBuffer()
156 mSlots[slot].mBufferState = BufferSlot::ACQUIRED; in acquireBuffer()
157 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
179 status_t BufferQueueConsumer::detachBuffer(int slot) { in detachBuffer() argument
181 ATRACE_BUFFER_INDEX(slot); in detachBuffer()
182 BQ_LOGV("detachBuffer(C): slot %d", slot); in detachBuffer()
[all …]
DBufferQueueProducer.cpp50 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
52 BQ_LOGV("requestBuffer: slot %d", slot); in requestBuffer()
60 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) { in requestBuffer()
62 slot, BufferQueueDefs::NUM_BUFFER_SLOTS); in requestBuffer()
64 } else if (mSlots[slot].mBufferState != BufferSlot::DEQUEUED) { in requestBuffer()
66 "(state = %d)", slot, mSlots[slot].mBufferState); in requestBuffer()
70 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
71 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
390 status_t BufferQueueProducer::detachBuffer(int slot) { in detachBuffer() argument
392 ATRACE_BUFFER_INDEX(slot); in detachBuffer()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java97 public Type getConstant(int slot) { in getConstant() argument
98 if (slot < 0 || slot >= mConstants.length) { in getConstant()
101 return mConstants[slot]; in getConstant()
117 public TextureType getTextureType(int slot) { in getTextureType() argument
118 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureType()
121 return mTextures[slot]; in getTextureType()
130 public String getTextureName(int slot) { in getTextureName() argument
131 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureName()
134 return mTextureNames[slot]; in getTextureName()
145 public void bindConstants(Allocation a, int slot) { in bindConstants() argument
[all …]
DScript.java39 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
42 mSlot = slot; in KernelID()
51 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument
52 KernelID k = mKIDs.get(slot); in createKernelID()
57 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID()
62 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
63 mKIDs.put(slot, k); in createKernelID()
78 FieldID(long id, RenderScript rs, Script s, int slot) { in FieldID() argument
81 mSlot = slot; in FieldID()
89 protected FieldID createFieldID(int slot, Element e) { in createFieldID() argument
[all …]
DRenderScript.java269 native void rsnContextBindSampler(long con, int sampler, int slot); in rsnContextBindSampler() argument
270 synchronized void nContextBindSampler(int sampler, int slot) { in nContextBindSampler() argument
272 rsnContextBindSampler(mContext, sampler, slot); in nContextBindSampler()
593 native void rsnScriptBindAllocation(long con, long script, long alloc, int slot); in rsnScriptBindAllocation() argument
594 synchronized void nScriptBindAllocation(long script, long alloc, int slot) { in nScriptBindAllocation() argument
596 rsnScriptBindAllocation(mContext, script, alloc, slot); in nScriptBindAllocation()
603 native void rsnScriptInvoke(long con, long id, int slot); in rsnScriptInvoke() argument
604 synchronized void nScriptInvoke(long id, int slot) { in nScriptInvoke() argument
606 rsnScriptInvoke(mContext, id, slot); in nScriptInvoke()
608 native void rsnScriptForEach(long con, long id, int slot, long ain, long aout, byte[] params); in rsnScriptForEach() argument
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp34 void RsdCpuScriptIntrinsic::invokeFunction(uint32_t slot, const void *params, size_t paramLength) { in invokeFunction() argument
50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { in setGlobalVar() argument
55 void RsdCpuScriptIntrinsic::setGlobalVarWithElemDims(uint32_t slot, const void *data, in setGlobalVarWithElemDims() argument
62 void RsdCpuScriptIntrinsic::setGlobalBind(uint32_t slot, Allocation *data) { in setGlobalBind() argument
67 void RsdCpuScriptIntrinsic::setGlobalObj(uint32_t slot, ObjectBase *data) { in setGlobalObj() argument
76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation * ain, in preLaunch() argument
81 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation * ain, in postLaunch() argument
86 void RsdCpuScriptIntrinsic::invokeForEach(uint32_t slot, in invokeForEach() argument
94 preLaunch(slot, ain, aout, usr, usrLen, sc); in invokeForEach()
98 mtls.fep.slot = slot; in invokeForEach()
[all …]
DrsCpuIntrinsic.h31 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength);
33 virtual void invokeForEach(uint32_t slot,
40 virtual void invokeForEachMulti(uint32_t slot,
48 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls);
52 virtual void preLaunch(uint32_t slot, const Allocation * ain,
55 virtual void postLaunch(uint32_t slot, const Allocation * ain,
59 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
60 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
62 virtual void setGlobalBind(uint32_t slot, Allocation *data);
63 virtual void setGlobalObj(uint32_t slot, ObjectBase *data);
DrsCpuScript.h65 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength);
67 virtual void preLaunch(uint32_t slot, const Allocation * ain,
70 virtual void postLaunch(uint32_t slot, const Allocation * ain,
73 virtual void invokeForEach(uint32_t slot,
80 virtual void invokeForEachMulti(uint32_t slot,
90 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
91 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength);
92 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
94 virtual void setGlobalBind(uint32_t slot, Allocation *data);
95 virtual void setGlobalObj(uint32_t slot, ObjectBase *data);
[all …]
Drsd_cpu.h70 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength) = 0;
72 virtual void invokeForEach(uint32_t slot,
79 virtual void invokeForEachMulti(uint32_t slot,
90 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) = 0;
91 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength) = 0;
92 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
94 virtual void setGlobalBind(uint32_t slot, Allocation *data) = 0;
95 virtual void setGlobalObj(uint32_t slot, ObjectBase *obj) = 0;
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp113 int slot; in TEST_F() local
117 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
119 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
129 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
150 int slot; in TEST_F() local
159 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0, in TEST_F()
161 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
162 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
167 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0, in TEST_F()
169 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
[all …]
DStreamSplitter_test.cpp99 int slot; in TEST_F() local
103 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
105 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
116 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
131 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
165 int slot; in TEST_F() local
169 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
171 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
182 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
200 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp69 uint32_t slot, in rsdScriptInvokeForEach() argument
77 cs->invokeForEach(slot, ain, aout, usr, usrLen, sc); in rsdScriptInvokeForEach()
82 uint32_t slot, in rsdScriptInvokeForEachMulti() argument
91 cs->invokeForEachMulti(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
111 uint32_t slot, in rsdScriptInvokeFunction() argument
115 cs->invokeFunction(slot, params, paramLength); in rsdScriptInvokeFunction()
119 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
121 cs->setGlobalVar(slot, data, dataLength); in rsdScriptSetGlobalVar()
125 uint32_t slot, void *data, size_t dataLength) { in rsdScriptGetGlobalVar() argument
127 cs->getGlobalVar(slot, data, dataLength); in rsdScriptGetGlobalVar()
[all …]
DrsdBcc.h33 uint32_t slot,
39 uint32_t slot,
48 uint32_t slot,
65 uint32_t slot, void *data, size_t dataLen);
68 uint32_t slot, void *data, size_t dataLen);
71 uint32_t slot, void *data,
78 uint32_t slot, android::renderscript::Allocation *data);
81 uint32_t slot, android::renderscript::ObjectBase *data);
85 uint32_t slot,
90 uint32_t slot,
DrsdVertexArray.cpp66 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { in logAttrib()
71 idx, slot, in logAttrib()
100 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); in setup() local
102 logAttrib(ct, slot); in setup()
104 if (slot < 0 || slot >= (int32_t)maxAttrs) { in setup()
107 glEnableVertexAttribArray(slot); in setup()
108 state->mAttrsEnabled[slot] = true; in setup()
110 glVertexAttribPointer(slot, in setup()
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp55 status_t MonitoredProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
56 return mProducer->requestBuffer(slot, buf); in requestBuffer()
63 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, in dequeueBuffer() argument
65 return mProducer->dequeueBuffer(slot, fence, async, w, h, format, usage); in dequeueBuffer()
68 status_t MonitoredProducer::detachBuffer(int slot) { in detachBuffer() argument
69 return mProducer->detachBuffer(slot); in detachBuffer()
82 status_t MonitoredProducer::queueBuffer(int slot, const QueueBufferInput& input, in queueBuffer() argument
84 return mProducer->queueBuffer(slot, input, output); in queueBuffer()
87 void MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { in cancelBuffer() argument
88 mProducer->cancelBuffer(slot, fence); in cancelBuffer()
/frameworks/rs/cpp/
DScript.cpp25 void Script::invoke(uint32_t slot, const void *v, size_t len) const { in invoke() argument
26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); in invoke()
29 void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, in forEach() argument
36 …tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr,… in forEach()
44 void Script::bindAllocation(sp<Allocation> va, uint32_t slot) const { in bindAllocation()
45 …(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot)); in bindAllocation()

12345