Lines Matching refs:fs
201 void ProgramCache::generateEOTF(Formatter& fs, const Key& needs) { in generateEOTF() argument
204 fs << R"__SHADER__( in generateEOTF()
219 fs << R"__SHADER__( in generateEOTF()
234 fs << R"__SHADER__( in generateEOTF()
250 fs << R"__SHADER__( in generateEOTF()
259 void ProgramCache::generateToneMappingProcess(Formatter& fs, const Key& needs) { in generateToneMappingProcess() argument
263 fs << R"__SHADER__( in generateToneMappingProcess()
270 fs << R"__SHADER__( in generateToneMappingProcess()
280 fs << R"__SHADER__( in generateToneMappingProcess()
297 fs << R"__SHADER__( in generateToneMappingProcess()
304 fs << R"__SHADER__( in generateToneMappingProcess()
311 fs << R"__SHADER__( in generateToneMappingProcess()
373 fs << R"__SHADER__( in generateToneMappingProcess()
421 fs << R"__SHADER__( in generateToneMappingProcess()
428 fs << R"__SHADER__( in generateToneMappingProcess()
435 fs << R"__SHADER__( in generateToneMappingProcess()
445 void ProgramCache::generateOOTF(Formatter& fs, const ProgramCache::Key& needs) { in generateOOTF() argument
447 fs << R"__SHADER__( in generateOOTF()
453 generateToneMappingProcess(fs, needs); in generateOOTF()
454 fs << R"__SHADER__( in generateOOTF()
464 void ProgramCache::generateOETF(Formatter& fs, const Key& needs) { in generateOETF() argument
467 fs << R"__SHADER__( in generateOETF()
483 fs << R"__SHADER__( in generateOETF()
498 fs << R"__SHADER__( in generateOETF()
514 fs << R"__SHADER__( in generateOETF()
548 Formatter fs; in generateFragmentShader() local
550 fs << "#extension GL_OES_EGL_image_external : require"; in generateFragmentShader()
554 fs << "precision mediump float;"; in generateFragmentShader()
557 fs << "uniform samplerExternalOES sampler;" in generateFragmentShader()
560 fs << "uniform sampler2D sampler;" in generateFragmentShader()
566 fs << R"__SHADER__( in generateFragmentShader()
589 fs << "uniform vec4 color;"; in generateFragmentShader()
593 fs << R"__SHADER__( in generateFragmentShader()
609 fs << "uniform float displayMaxLuminance;"; in generateFragmentShader()
613 fs << "uniform mat4 inputTransformMatrix;"; in generateFragmentShader()
614 fs << R"__SHADER__( in generateFragmentShader()
620 fs << R"__SHADER__( in generateFragmentShader()
630 fs << "uniform mat4 outputTransformMatrix;"; in generateFragmentShader()
631 fs << R"__SHADER__( in generateFragmentShader()
637 fs << R"__SHADER__( in generateFragmentShader()
644 generateEOTF(fs, needs); in generateFragmentShader()
645 generateOOTF(fs, needs); in generateFragmentShader()
646 generateOETF(fs, needs); in generateFragmentShader()
649 fs << "void main(void) {" << indent; in generateFragmentShader()
651 fs << "gl_FragColor = texture2D(sampler, outTexCoords);"; in generateFragmentShader()
653 fs << "gl_FragColor.rgb = convertY410BT2020(gl_FragColor.rgb);"; in generateFragmentShader()
656 fs << "gl_FragColor.rgb = color.rgb;"; in generateFragmentShader()
657 fs << "gl_FragColor.a = 1.0;"; in generateFragmentShader()
660 fs << "gl_FragColor.a = 1.0;"; in generateFragmentShader()
666 fs << "gl_FragColor *= color.a;"; in generateFragmentShader()
668 fs << "gl_FragColor.a *= color.a;"; in generateFragmentShader()
676 fs << "gl_FragColor.rgb = gl_FragColor.rgb / (gl_FragColor.a + 0.0019);"; in generateFragmentShader()
678 fs << "gl_FragColor.rgb = " in generateFragmentShader()
682 fs << "gl_FragColor.rgb = gl_FragColor.rgb * (gl_FragColor.a + 0.0019);"; in generateFragmentShader()
688 fs << "gl_FragColor *= vec4(applyCornerRadius(outCropCoords));"; in generateFragmentShader()
690 fs << "gl_FragColor.a *= applyCornerRadius(outCropCoords);"; in generateFragmentShader()
694 fs << dedent << "}"; in generateFragmentShader()
695 return fs.getString(); in generateFragmentShader()
705 String8 fs = generateFragmentShader(needs); in generateProgram() local
707 return std::make_unique<Program>(needs, vs.string(), fs.string()); in generateProgram()