Home
last modified time | relevance | path

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

/frameworks/rs/driver/
DrsdScriptGroup.cpp35 bool rsdScriptGroupInit(const Context *rsc, ScriptGroupBase *sg) { in rsdScriptGroupInit() argument
38 sg->mHal.drv = dc->mCpuRef->createScriptGroup(sg); in rsdScriptGroupInit()
39 return sg->mHal.drv != nullptr; in rsdScriptGroupInit()
42 void rsdScriptGroupSetInput(const Context *rsc, const ScriptGroup *sg, in rsdScriptGroupSetInput() argument
46 void rsdScriptGroupSetOutput(const Context *rsc, const ScriptGroup *sg, in rsdScriptGroupSetOutput() argument
50 void rsdScriptGroupExecute(const Context *rsc, const ScriptGroupBase *sg) { in rsdScriptGroupExecute() argument
52 (RsdCpuReference::CpuScriptGroupBase *)sg->mHal.drv; in rsdScriptGroupExecute()
56 void rsdScriptGroupDestroy(const Context *rsc, const ScriptGroupBase *sg) { in rsdScriptGroupDestroy() argument
58 (RsdCpuReference::CpuScriptGroupBase *)sg->mHal.drv; in rsdScriptGroupDestroy()
63 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/
DrsScriptGroup.cpp207 ScriptGroup *sg = new ScriptGroup(rsc); in create() local
209 sg->mKernels.reserve(kernelCount); in create()
211 sg->mKernels.push_back(kernels[ct]); in create()
214 sg->mLinks.reserve(linkCount); in create()
221 sg->mLinks.push_back(l); in create()
224 sg->calcOrder(); in create()
227 for (size_t ct=0; ct < sg->mNodes.size(); ct++) { in create()
228 const Node *n = sg->mNodes[ct]; in create()
247 rsc->mHal.funcs.scriptgroup.init(rsc, sg); in create()
249 sg->incUserRef(); in create()
[all …]
Drs_hal.h365 bool (*init)(const Context *rsc, ScriptGroupBase *sg);
366 void (*setInput)(const Context *rsc, const ScriptGroup *sg,
368 void (*setOutput)(const Context *rsc, const ScriptGroup *sg,
370 void (*execute)(const Context *rsc, const ScriptGroupBase *sg);
371 void (*destroy)(const Context *rsc, const ScriptGroupBase *sg);
372 void (*updateCachedObject)(const Context *rsc, const ScriptGroup *sg, rs_script_group *obj);
DrsHidlAdaptation.cpp1005 void RsHidlAdaptation::ScriptGroupSetOutput (RsContext context, RsScriptGroup sg, RsScriptKernelID … in ScriptGroupSetOutput() argument
1007 uint64_t _sg = (uint64_t)(uintptr_t)sg; in ScriptGroupSetOutput()
1014 void RsHidlAdaptation::ScriptGroupSetInput (RsContext context, RsScriptGroup sg, RsScriptKernelID k… in ScriptGroupSetInput() argument
1016 uint64_t _sg = (uint64_t)(uintptr_t)sg; in ScriptGroupSetInput()
1023 void RsHidlAdaptation::ScriptGroupExecute (RsContext context, RsScriptGroup sg) in ScriptGroupExecute() argument
1025 uint64_t _sg = (uint64_t)(uintptr_t)sg; in ScriptGroupExecute()
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dbwfilter.rscript21 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/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dbwfilter.rscript21 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/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dbwfilter.rscript21 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/base/core/java/com/android/internal/graphics/
DColorUtils.java457 double sg = g / 255.0; in RGBToXYZ()
458 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
462 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
463 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
464 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java799 double sg = g / 255.0; in RGBToXYZ()
800 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
804 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
805 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
806 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup.h33 CpuScriptGroupImpl(RsdCpuReferenceImpl *ctx, const ScriptGroupBase *sg);
DrsCpuScriptGroup.cpp27 CpuScriptGroupImpl::CpuScriptGroupImpl(RsdCpuReferenceImpl *ctx, const ScriptGroupBase *sg) { in CpuScriptGroupImpl() argument
29 mSG = (ScriptGroup*)sg; in CpuScriptGroupImpl()
Drsd_cpu.h132 virtual void* createScriptGroup(const ScriptGroupBase *sg) = 0;
DrsCpuCore.h177 void* createScriptGroup(const ScriptGroupBase *sg) override;
DrsCpuCore.cpp1023 void* RsdCpuReferenceImpl::createScriptGroup(const ScriptGroupBase *sg) { in createScriptGroup() argument
1024 switch (sg->getApiVersion()) { in createScriptGroup()
1026 CpuScriptGroupImpl *sgi = new CpuScriptGroupImpl(this, sg); in createScriptGroup()
1034 return new CpuScriptGroup2Impl(this, sg); in createScriptGroup()
DrsCpuScriptGroup2.cpp158 const ScriptGroupBase *sg) : in CpuScriptGroup2Impl() argument
159 mCpuRefImpl(cpuRefImpl), mGroup((const ScriptGroup2*)(sg)), in CpuScriptGroup2Impl()
/frameworks/av/media/extractors/mp4/
DAC4Parser.cpp522 for (uint32_t sg = 0; sg < n_substream_groups_minus2 + 2; sg++) { in parse() local
523 if (!parseSubstreamGroupDSI(presentation, sg)) { in parse()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptGroup.java959 ScriptGroup sg = new ScriptGroup(id, mRS); in create() local
960 sg.mOutputs = new IO[outputs.size()]; in create()
962 sg.mOutputs[ct] = outputs.get(ct); in create()
965 sg.mInputs = new IO[inputs.size()]; in create()
967 sg.mInputs[ct] = inputs.get(ct); in create()
969 sg.mNodes = mNodes; in create()
970 sg.mUseIncSupp = mUseIncSupp; in create()
971 return sg; in create()
/frameworks/base/rs/java/android/renderscript/
DScriptGroup.java843 ScriptGroup sg = new ScriptGroup(id, mRS); in create() local
844 sg.mOutputs = new IO[outputs.size()]; in create()
846 sg.mOutputs[ct] = outputs.get(ct); in create()
849 sg.mInputs = new IO[inputs.size()]; in create()
851 sg.mInputs[ct] = inputs.get(ct); in create()
854 return sg; in create()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirGen.h732 SineGen sg = sgg.valueAdvance(); // current sine generator for "j" inner loop.
742 y = I0SqrRat(sqrbeta * (1.0 - sqr(x * xfrac)), yscale * sg.valueAdvance(), x);
745 sg.advance();