Home
last modified time | relevance | path

Searched refs:sg (Results 1 – 18 of 18) sorted by relevance

/frameworks/rs/driver/
DrsdScriptGroup.cpp31 bool rsdScriptGroupInit(const Context *rsc, ScriptGroupBase *sg) { in rsdScriptGroupInit() argument
34 sg->mHal.drv = dc->mCpuRef->createScriptGroup(sg); in rsdScriptGroupInit()
35 return sg->mHal.drv != nullptr; in rsdScriptGroupInit()
38 void rsdScriptGroupSetInput(const Context *rsc, const ScriptGroup *sg, in rsdScriptGroupSetInput() argument
42 void rsdScriptGroupSetOutput(const Context *rsc, const ScriptGroup *sg, in rsdScriptGroupSetOutput() argument
46 void rsdScriptGroupExecute(const Context *rsc, const ScriptGroupBase *sg) { in rsdScriptGroupExecute() argument
48 (RsdCpuReference::CpuScriptGroupBase *)sg->mHal.drv; in rsdScriptGroupExecute()
52 void rsdScriptGroupDestroy(const Context *rsc, const ScriptGroupBase *sg) { in rsdScriptGroupDestroy() argument
54 (RsdCpuReference::CpuScriptGroupBase *)sg->mHal.drv; in rsdScriptGroupDestroy()
59 const ScriptGroup *sg, in rsdScriptGroupUpdateCachedObject() argument
[all …]
DrsdScriptGroup.h23 android::renderscript::ScriptGroupBase *sg);
25 const android::renderscript::ScriptGroup *sg,
29 const android::renderscript::ScriptGroup *sg,
33 const android::renderscript::ScriptGroupBase *sg);
35 const android::renderscript::ScriptGroupBase *sg);
37 const android::renderscript::ScriptGroup *sg,
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dbwfilter.rs21 static float sg = 0.f;
27 sg = gw;
30 float imageMin = min(sg,sb);
32 float imageMax = max(sg,sb);
36 sg /= avg;
43 float g = in->g * sg;
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dbwfilter.rs21 static float sg = 0.f;
27 sg = gw;
30 float imageMin = min(sg,sb);
32 float imageMax = max(sg,sb);
36 sg /= avg;
43 float g = in->g * sg;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dbwfilter.rs21 static float sg = 0.f;
27 sg = gw;
30 float imageMin = min(sg,sb);
32 float imageMax = max(sg,sb);
36 sg /= avg;
43 float g = in->g * sg;
/frameworks/rs/
DrsScriptGroup.cpp225 ScriptGroup *sg = new ScriptGroup(rsc); in create() local
227 sg->mKernels.reserve(kernelCount); in create()
229 sg->mKernels.add(kernels[ct]); in create()
232 sg->mLinks.reserve(linkCount); in create()
239 sg->mLinks.add(l); in create()
242 sg->calcOrder(); in create()
245 for (size_t ct=0; ct < sg->mNodes.size(); ct++) { in create()
246 const Node *n = sg->mNodes[ct]; in create()
267 rsc->mHal.funcs.scriptgroup.init(rsc, sg); in create()
269 sg->incUserRef(); in create()
[all …]
Drs_hal.h362 bool (*init)(const Context *rsc, ScriptGroupBase *sg);
363 void (*setInput)(const Context *rsc, const ScriptGroup *sg,
365 void (*setOutput)(const Context *rsc, const ScriptGroup *sg,
367 void (*execute)(const Context *rsc, const ScriptGroupBase *sg);
368 void (*destroy)(const Context *rsc, const ScriptGroupBase *sg);
369 void (*updateCachedObject)(const Context *rsc, const ScriptGroup *sg, rs_script_group *obj);
/frameworks/support/core-utils/java/android/support/v4/graphics/
DColorUtils.java382 double sg = g / 255.0; in RGBToXYZ()
383 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
387 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
388 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
389 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java516 double sg = g / 255.0; in RGBToXYZ()
517 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
521 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
522 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
523 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptGroup.java954 ScriptGroup sg = new ScriptGroup(id, mRS); in create() local
955 sg.mOutputs = new IO[outputs.size()]; in create()
957 sg.mOutputs[ct] = outputs.get(ct); in create()
960 sg.mInputs = new IO[inputs.size()]; in create()
962 sg.mInputs[ct] = inputs.get(ct); in create()
964 sg.mNodes = mNodes; in create()
965 sg.mUseIncSupp = mUseIncSupp; in create()
966 return sg; in create()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup.h33 CpuScriptGroupImpl(RsdCpuReferenceImpl *ctx, const ScriptGroupBase *sg);
DrsCpuScriptGroup.cpp25 CpuScriptGroupImpl::CpuScriptGroupImpl(RsdCpuReferenceImpl *ctx, const ScriptGroupBase *sg) { in CpuScriptGroupImpl() argument
27 mSG = (ScriptGroup*)sg; in CpuScriptGroupImpl()
Drsd_cpu.h128 virtual void* createScriptGroup(const ScriptGroupBase *sg) = 0;
DrsCpuCore.h175 void* createScriptGroup(const ScriptGroupBase *sg) override;
DrsCpuCore.cpp1025 void* RsdCpuReferenceImpl::createScriptGroup(const ScriptGroupBase *sg) { in createScriptGroup() argument
1026 switch (sg->getApiVersion()) { in createScriptGroup()
1028 CpuScriptGroupImpl *sgi = new CpuScriptGroupImpl(this, sg); in createScriptGroup()
1036 return new CpuScriptGroup2Impl(this, sg); in createScriptGroup()
DrsCpuScriptGroup2.cpp159 const ScriptGroupBase *sg) : in CpuScriptGroup2Impl() argument
160 mCpuRefImpl(cpuRefImpl), mGroup((const ScriptGroup2*)(sg)), in CpuScriptGroup2Impl()
/frameworks/base/rs/java/android/renderscript/
DScriptGroup.java838 ScriptGroup sg = new ScriptGroup(id, mRS); in create() local
839 sg.mOutputs = new IO[outputs.size()]; in create()
841 sg.mOutputs[ct] = outputs.get(ct); in create()
844 sg.mInputs = new IO[inputs.size()]; in create()
846 sg.mInputs[ct] = inputs.get(ct); in create()
849 return sg; in create()
/frameworks/av/services/audioflinger/
DAudioResamplerFirGen.h683 SineGen sg = sgg.valueAdvance(); // current sine generator for "j" inner loop.
693 y = I0SqrRat(sqrbeta * (1.0 - sqr(x * xfrac)), yscale * sg.valueAdvance(), x);
696 sg.advance();