blob: cd89a59ac875a96f3b82ab053da85cbe87a91eaf [file] [log] [blame]
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "GrTextureDomain.h"
egdaniel605dd0f2014-11-12 08:35:25 -08009#include "GrInvariantOutput.h"
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000010#include "GrSimpleTextureEffect.h"
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000011#include "SkFloatingPoint.h"
egdanielf5294392015-10-21 07:14:17 -070012#include "gl/GrGLContext.h"
wangyix6af0c932015-07-22 10:21:17 -070013#include "gl/GrGLFragmentProcessor.h"
egdaniel8dcdedc2015-11-11 06:27:20 -080014#include "glsl/GrGLSLProgramBuilder.h"
egdaniel018fb622015-10-28 07:26:40 -070015#include "glsl/GrGLSLProgramDataManager.h"
egdaniel7dc4bd02015-10-29 07:57:01 -070016#include "glsl/GrGLSLTextureSampler.h"
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000017
18GrTextureDomain::GrTextureDomain(const SkRect& domain, Mode mode, int index)
19 : fIndex(index) {
20
21 static const SkRect kFullRect = {0, 0, SK_Scalar1, SK_Scalar1};
commit-bot@chromium.org26632632014-03-25 15:13:18 +000022 if (domain.contains(kFullRect) && kClamp_Mode == mode) {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000023 fMode = kIgnore_Mode;
24 } else {
25 fMode = mode;
26 }
27
28 if (fMode != kIgnore_Mode) {
29 // We don't currently handle domains that are empty or don't intersect the texture.
30 // It is OK if the domain rect is a line or point, but it should not be inverted. We do not
31 // handle rects that do not intersect the [0..1]x[0..1] rect.
32 SkASSERT(domain.fLeft <= domain.fRight);
33 SkASSERT(domain.fTop <= domain.fBottom);
senorblancod0d37ca2015-04-02 04:54:56 -070034 fDomain.fLeft = SkScalarPin(domain.fLeft, kFullRect.fLeft, kFullRect.fRight);
35 fDomain.fRight = SkScalarPin(domain.fRight, kFullRect.fLeft, kFullRect.fRight);
36 fDomain.fTop = SkScalarPin(domain.fTop, kFullRect.fTop, kFullRect.fBottom);
37 fDomain.fBottom = SkScalarPin(domain.fBottom, kFullRect.fTop, kFullRect.fBottom);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000038 SkASSERT(fDomain.fLeft <= fDomain.fRight);
39 SkASSERT(fDomain.fTop <= fDomain.fBottom);
40 }
41}
42
43//////////////////////////////////////////////////////////////////////////////
44
egdaniel2d721d32015-11-11 13:06:05 -080045void GrTextureDomain::GLDomain::sampleTexture(GrGLSLShaderBuilder* builder,
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000046 const GrTextureDomain& textureDomain,
47 const char* outColor,
48 const SkString& inCoords,
egdaniel7dc4bd02015-10-29 07:57:01 -070049 const GrGLSLTextureSampler& sampler,
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000050 const char* inModulateColor) {
reed@google.comd7b1af62013-12-09 20:31:50 +000051 SkASSERT((Mode)-1 == fMode || textureDomain.mode() == fMode);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000052 SkDEBUGCODE(fMode = textureDomain.mode();)
53
egdaniel8dcdedc2015-11-11 06:27:20 -080054 GrGLSLProgramBuilder* program = builder->getProgramBuilder();
joshualitt30ba4362014-08-21 20:18:45 -070055
joshualitt5ae5fc52014-07-29 12:59:27 -070056 if (textureDomain.mode() != kIgnore_Mode && !fDomainUni.isValid()) {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000057 const char* name;
58 SkString uniName("TexDom");
59 if (textureDomain.fIndex >= 0) {
60 uniName.appendS32(textureDomain.fIndex);
61 }
egdaniel8dcdedc2015-11-11 06:27:20 -080062 fDomainUni = program->addUniform(GrGLSLProgramBuilder::kFragment_Visibility,
bsalomon422f56f2014-12-09 10:18:12 -080063 kVec4f_GrSLType, kDefault_GrSLPrecision,
64 uniName.c_str(), &name);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000065 fDomainName = name;
66 }
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000067
joshualitt5ae5fc52014-07-29 12:59:27 -070068 switch (textureDomain.mode()) {
69 case kIgnore_Mode: {
jvanverth3fc65602015-07-22 08:41:51 -070070 builder->codeAppendf("%s = ", outColor);
joshualitt30ba4362014-08-21 20:18:45 -070071 builder->appendTextureLookupAndModulate(inModulateColor, sampler,
joshualitt5ae5fc52014-07-29 12:59:27 -070072 inCoords.c_str());
jvanverth3fc65602015-07-22 08:41:51 -070073 builder->codeAppend(";");
joshualitt5ae5fc52014-07-29 12:59:27 -070074 break;
75 }
76 case kClamp_Mode: {
77 SkString clampedCoords;
jvanverth3fc65602015-07-22 08:41:51 -070078 clampedCoords.appendf("clamp(%s, %s.xy, %s.zw)",
joshualitt5ae5fc52014-07-29 12:59:27 -070079 inCoords.c_str(), fDomainName.c_str(), fDomainName.c_str());
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +000080
jvanverth3fc65602015-07-22 08:41:51 -070081 builder->codeAppendf("%s = ", outColor);
joshualitt30ba4362014-08-21 20:18:45 -070082 builder->appendTextureLookupAndModulate(inModulateColor, sampler,
joshualitt5ae5fc52014-07-29 12:59:27 -070083 clampedCoords.c_str());
jvanverth3fc65602015-07-22 08:41:51 -070084 builder->codeAppend(";");
joshualitt5ae5fc52014-07-29 12:59:27 -070085 break;
86 }
87 case kDecal_Mode: {
88 // Add a block since we're going to declare variables.
egdaniel2d721d32015-11-11 13:06:05 -080089 GrGLSLShaderBuilder::ShaderBlock block(builder);
joshualitt5ae5fc52014-07-29 12:59:27 -070090
91 const char* domain = fDomainName.c_str();
egdaniel472d44e2015-10-22 08:20:00 -070092 if (!program->glslCaps()->canUseAnyFunctionInShader()) {
joshualitt5ae5fc52014-07-29 12:59:27 -070093 // On the NexusS and GalaxyNexus, the other path (with the 'any'
94 // call) causes the compilation error "Calls to any function that
95 // may require a gradient calculation inside a conditional block
96 // may return undefined results". This appears to be an issue with
97 // the 'any' call since even the simple "result=black; if (any())
98 // result=white;" code fails to compile.
jvanverth3fc65602015-07-22 08:41:51 -070099 builder->codeAppend("vec4 outside = vec4(0.0, 0.0, 0.0, 0.0);");
100 builder->codeAppend("vec4 inside = ");
joshualitt30ba4362014-08-21 20:18:45 -0700101 builder->appendTextureLookupAndModulate(inModulateColor, sampler,
joshualitt5ae5fc52014-07-29 12:59:27 -0700102 inCoords.c_str());
jvanverth3fc65602015-07-22 08:41:51 -0700103 builder->codeAppend(";");
104
egdaniel0d3f0612015-10-21 10:45:48 -0700105 builder->codeAppend(GrGLSLShaderVar::PrecisionString(program->glslCaps(),
106 kHigh_GrSLPrecision));
jvanverth3fc65602015-07-22 08:41:51 -0700107 builder->codeAppendf("float x = (%s).x;", inCoords.c_str());
egdaniel0d3f0612015-10-21 10:45:48 -0700108 builder->codeAppend(GrGLSLShaderVar::PrecisionString(program->glslCaps(),
109 kHigh_GrSLPrecision));
jvanverth3fc65602015-07-22 08:41:51 -0700110 builder->codeAppendf("float y = (%s).y;", inCoords.c_str());
joshualitt5ae5fc52014-07-29 12:59:27 -0700111
jvanverth3fc65602015-07-22 08:41:51 -0700112 builder->codeAppendf("x = abs(2.0*(x - %s.x)/(%s.z - %s.x) - 1.0);",
113 domain, domain, domain);
114 builder->codeAppendf("y = abs(2.0*(y - %s.y)/(%s.w - %s.y) - 1.0);",
115 domain, domain, domain);
116 builder->codeAppend("float blend = step(1.0, max(x, y));");
117 builder->codeAppendf("%s = mix(inside, outside, blend);", outColor);
joshualitt5ae5fc52014-07-29 12:59:27 -0700118 } else {
jvanverth3fc65602015-07-22 08:41:51 -0700119 builder->codeAppend("bvec4 outside;\n");
120 builder->codeAppendf("outside.xy = lessThan(%s, %s.xy);", inCoords.c_str(),
joshualitt5ae5fc52014-07-29 12:59:27 -0700121 domain);
jvanverth3fc65602015-07-22 08:41:51 -0700122 builder->codeAppendf("outside.zw = greaterThan(%s, %s.zw);", inCoords.c_str(),
joshualitt5ae5fc52014-07-29 12:59:27 -0700123 domain);
jvanverth3fc65602015-07-22 08:41:51 -0700124 builder->codeAppendf("%s = any(outside) ? vec4(0.0, 0.0, 0.0, 0.0) : ",
joshualitt5ae5fc52014-07-29 12:59:27 -0700125 outColor);
joshualitt30ba4362014-08-21 20:18:45 -0700126 builder->appendTextureLookupAndModulate(inModulateColor, sampler,
joshualitt5ae5fc52014-07-29 12:59:27 -0700127 inCoords.c_str());
jvanverth3fc65602015-07-22 08:41:51 -0700128 builder->codeAppend(";");
joshualitt5ae5fc52014-07-29 12:59:27 -0700129 }
130 break;
131 }
132 case kRepeat_Mode: {
133 SkString clampedCoords;
jvanverth3fc65602015-07-22 08:41:51 -0700134 clampedCoords.printf("mod(%s - %s.xy, %s.zw - %s.xy) + %s.xy",
joshualitt5ae5fc52014-07-29 12:59:27 -0700135 inCoords.c_str(), fDomainName.c_str(), fDomainName.c_str(),
136 fDomainName.c_str(), fDomainName.c_str());
137
jvanverth3fc65602015-07-22 08:41:51 -0700138 builder->codeAppendf("%s = ", outColor);
joshualitt30ba4362014-08-21 20:18:45 -0700139 builder->appendTextureLookupAndModulate(inModulateColor, sampler,
joshualitt5ae5fc52014-07-29 12:59:27 -0700140 clampedCoords.c_str());
jvanverth3fc65602015-07-22 08:41:51 -0700141 builder->codeAppend(";");
joshualitt5ae5fc52014-07-29 12:59:27 -0700142 break;
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000143 }
144 }
145}
146
egdaniel018fb622015-10-28 07:26:40 -0700147void GrTextureDomain::GLDomain::setData(const GrGLSLProgramDataManager& pdman,
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000148 const GrTextureDomain& textureDomain,
149 GrSurfaceOrigin textureOrigin) {
150 SkASSERT(textureDomain.mode() == fMode);
151 if (kIgnore_Mode != textureDomain.mode()) {
egdaniel018fb622015-10-28 07:26:40 -0700152 float values[kPrevDomainCount] = {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000153 SkScalarToFloat(textureDomain.domain().left()),
154 SkScalarToFloat(textureDomain.domain().top()),
155 SkScalarToFloat(textureDomain.domain().right()),
156 SkScalarToFloat(textureDomain.domain().bottom())
157 };
158 // vertical flip if necessary
159 if (kBottomLeft_GrSurfaceOrigin == textureOrigin) {
160 values[1] = 1.0f - values[1];
161 values[3] = 1.0f - values[3];
162 // The top and bottom were just flipped, so correct the ordering
163 // of elements so that values = (l, t, r, b).
164 SkTSwap(values[1], values[3]);
165 }
egdaniel018fb622015-10-28 07:26:40 -0700166 if (0 != memcmp(values, fPrevDomain, kPrevDomainCount * sizeof(float))) {
kkinnunen7510b222014-07-30 00:04:16 -0700167 pdman.set4fv(fDomainUni, 1, values);
egdaniel018fb622015-10-28 07:26:40 -0700168 memcpy(fPrevDomain, values, kPrevDomainCount * sizeof(float));
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000169 }
170 }
171}
172
173
174//////////////////////////////////////////////////////////////////////////////
175
joshualittb0a8a372014-09-23 09:50:21 -0700176class GrGLTextureDomainEffect : public GrGLFragmentProcessor {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000177public:
joshualitteb2a6762014-12-04 11:35:33 -0800178 GrGLTextureDomainEffect(const GrProcessor&);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000179
wangyix7c157a92015-07-22 15:08:53 -0700180 virtual void emitCode(EmitArgs&) override;
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000181
jvanverthcfc18862015-04-28 08:48:20 -0700182 static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000183
wangyixb1daa862015-08-18 11:29:31 -0700184protected:
egdaniel018fb622015-10-28 07:26:40 -0700185 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override;
wangyixb1daa862015-08-18 11:29:31 -0700186
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000187private:
188 GrTextureDomain::GLDomain fGLDomain;
joshualittb0a8a372014-09-23 09:50:21 -0700189 typedef GrGLFragmentProcessor INHERITED;
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000190};
191
joshualitteb2a6762014-12-04 11:35:33 -0800192GrGLTextureDomainEffect::GrGLTextureDomainEffect(const GrProcessor&) {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000193}
194
wangyix7c157a92015-07-22 15:08:53 -0700195void GrGLTextureDomainEffect::emitCode(EmitArgs& args) {
196 const GrTextureDomainEffect& textureDomainEffect = args.fFp.cast<GrTextureDomainEffect>();
joshualitt49586be2014-09-16 08:21:41 -0700197 const GrTextureDomain& domain = textureDomainEffect.textureDomain();
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000198
egdaniel2d721d32015-11-11 13:06:05 -0800199 GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder();
wangyix7c157a92015-07-22 15:08:53 -0700200 SkString coords2D = fsBuilder->ensureFSCoords2D(args.fCoords, 0);
201 fGLDomain.sampleTexture(fsBuilder, domain, args.fOutputColor, coords2D, args.fSamplers[0],
202 args.fInputColor);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000203}
204
egdaniel018fb622015-10-28 07:26:40 -0700205void GrGLTextureDomainEffect::onSetData(const GrGLSLProgramDataManager& pdman,
206 const GrProcessor& processor) {
joshualittb0a8a372014-09-23 09:50:21 -0700207 const GrTextureDomainEffect& textureDomainEffect = processor.cast<GrTextureDomainEffect>();
joshualitt49586be2014-09-16 08:21:41 -0700208 const GrTextureDomain& domain = textureDomainEffect.textureDomain();
joshualittb0a8a372014-09-23 09:50:21 -0700209 fGLDomain.setData(pdman, domain, processor.texture(0)->origin());
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000210}
211
jvanverthcfc18862015-04-28 08:48:20 -0700212void GrGLTextureDomainEffect::GenKey(const GrProcessor& processor, const GrGLSLCaps&,
joshualittb0a8a372014-09-23 09:50:21 -0700213 GrProcessorKeyBuilder* b) {
214 const GrTextureDomain& domain = processor.cast<GrTextureDomainEffect>().textureDomain();
bsalomon63e99f72014-07-21 08:03:14 -0700215 b->add32(GrTextureDomain::GLDomain::DomainKey(domain));
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000216}
217
218
219///////////////////////////////////////////////////////////////////////////////
220
bsalomon0ba8c242015-10-07 09:20:28 -0700221const GrFragmentProcessor* GrTextureDomainEffect::Create(GrTexture* texture,
222 const SkMatrix& matrix,
223 const SkRect& domain,
224 GrTextureDomain::Mode mode,
225 GrTextureParams::FilterMode filterMode,
226 GrCoordSet coordSet) {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000227 static const SkRect kFullRect = {0, 0, SK_Scalar1, SK_Scalar1};
228 if (GrTextureDomain::kIgnore_Mode == mode ||
229 (GrTextureDomain::kClamp_Mode == mode && domain.contains(kFullRect))) {
bsalomon4a339522015-10-06 08:40:50 -0700230 return GrSimpleTextureEffect::Create(texture, matrix, filterMode);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000231 } else {
bsalomon4a339522015-10-06 08:40:50 -0700232 return new GrTextureDomainEffect(texture, matrix, domain, mode, filterMode, coordSet);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000233 }
234}
235
bsalomon4a339522015-10-06 08:40:50 -0700236GrTextureDomainEffect::GrTextureDomainEffect(GrTexture* texture,
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000237 const SkMatrix& matrix,
238 const SkRect& domain,
239 GrTextureDomain::Mode mode,
240 GrTextureParams::FilterMode filterMode,
241 GrCoordSet coordSet)
bsalomon4a339522015-10-06 08:40:50 -0700242 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet)
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000243 , fTextureDomain(domain, mode) {
joshualitt5ae5fc52014-07-29 12:59:27 -0700244 SkASSERT(mode != GrTextureDomain::kRepeat_Mode ||
245 filterMode == GrTextureParams::kNone_FilterMode);
joshualitteb2a6762014-12-04 11:35:33 -0800246 this->initClassID<GrTextureDomainEffect>();
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000247}
248
bsalomon0ba8c242015-10-07 09:20:28 -0700249GrTextureDomainEffect::~GrTextureDomainEffect() {}
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000250
wangyix4b3050b2015-08-04 07:59:37 -0700251void GrTextureDomainEffect::onGetGLProcessorKey(const GrGLSLCaps& caps,
bsalomon0ba8c242015-10-07 09:20:28 -0700252 GrProcessorKeyBuilder* b) const {
joshualitteb2a6762014-12-04 11:35:33 -0800253 GrGLTextureDomainEffect::GenKey(*this, caps, b);
254}
255
wangyixb1daa862015-08-18 11:29:31 -0700256GrGLFragmentProcessor* GrTextureDomainEffect::onCreateGLInstance() const {
halcanary385fe4d2015-08-26 13:07:48 -0700257 return new GrGLTextureDomainEffect(*this);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000258}
259
bsalomon0e08fc12014-10-15 08:19:04 -0700260bool GrTextureDomainEffect::onIsEqual(const GrFragmentProcessor& sBase) const {
joshualitt49586be2014-09-16 08:21:41 -0700261 const GrTextureDomainEffect& s = sBase.cast<GrTextureDomainEffect>();
bsalomon420d7e92014-10-16 09:18:09 -0700262 return this->fTextureDomain == s.fTextureDomain;
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000263}
264
egdaniel605dd0f2014-11-12 08:35:25 -0800265void GrTextureDomainEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000266 if (GrTextureDomain::kDecal_Mode == fTextureDomain.mode()) { // TODO: helper
egdanielf8449ba2014-11-25 10:24:56 -0800267 if (GrPixelConfigIsAlphaOnly(this->texture(0)->config())) {
joshualitt56995b52014-12-11 15:44:02 -0800268 inout->mulByUnknownSingleComponent();
egdanielf8449ba2014-11-25 10:24:56 -0800269 } else {
joshualitt56995b52014-12-11 15:44:02 -0800270 inout->mulByUnknownFourComponents();
egdanielf8449ba2014-11-25 10:24:56 -0800271 }
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000272 } else {
egdaniel1a8ecdf2014-10-03 06:24:12 -0700273 this->updateInvariantOutputForModulation(inout);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000274 }
275}
276
277///////////////////////////////////////////////////////////////////////////////
278
joshualittb0a8a372014-09-23 09:50:21 -0700279GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrTextureDomainEffect);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000280
bsalomonc21b09e2015-08-28 18:46:56 -0700281const GrFragmentProcessor* GrTextureDomainEffect::TestCreate(GrProcessorTestData* d) {
joshualitt0067ff52015-07-08 14:26:19 -0700282 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx :
283 GrProcessorUnitTest::kAlphaTextureIdx;
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000284 SkRect domain;
joshualitt0067ff52015-07-08 14:26:19 -0700285 domain.fLeft = d->fRandom->nextUScalar1();
286 domain.fRight = d->fRandom->nextRangeScalar(domain.fLeft, SK_Scalar1);
287 domain.fTop = d->fRandom->nextUScalar1();
288 domain.fBottom = d->fRandom->nextRangeScalar(domain.fTop, SK_Scalar1);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000289 GrTextureDomain::Mode mode =
joshualitt0067ff52015-07-08 14:26:19 -0700290 (GrTextureDomain::Mode) d->fRandom->nextULessThan(GrTextureDomain::kModeCount);
291 const SkMatrix& matrix = GrTest::TestMatrix(d->fRandom);
292 bool bilerp = mode != GrTextureDomain::kRepeat_Mode ? d->fRandom->nextBool() : false;
293 GrCoordSet coords = d->fRandom->nextBool() ? kLocal_GrCoordSet : kDevice_GrCoordSet;
bsalomon0ba8c242015-10-07 09:20:28 -0700294 return GrTextureDomainEffect::Create(
295 d->fTextures[texIdx],
296 matrix,
297 domain,
298 mode,
299 bilerp ? GrTextureParams::kBilerp_FilterMode : GrTextureParams::kNone_FilterMode,
300 coords);
commit-bot@chromium.org907fbd52013-12-09 17:03:02 +0000301}