!432 Support intermediate dumping & Fix size problem

Merge pull request !432 from zhanghongquan112/master
This commit is contained in:
openharmony_ci 2022-02-16 10:00:29 +00:00 committed by Gitee
commit 95973ad862
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,6 @@ void GaussianBlurFilter::DoProcess(ProcessData& data)
horizontalBlurFilter_->Process(data);
verticalBlurFilter_->Process(data);
upSampleFilter_->Process(data);
std::swap(data.srcTextureID, data.dstTextureID);
}
void GaussianBlurFilter::SetValue(const std::string& key, void* value, int size)

View File

@ -43,6 +43,7 @@ void Output::DoProcess(ProcessData& data)
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, data.textureWidth, data.textureHeight, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, data.dstTextureID, 0);
Use();
glViewPort(0, 0, data.textureWidth, data.textureHeight);
glBindVertexArray(mesh_->VAO_);
glBindTexture(GL_TEXTURE_2D, data.srcTextureID);
glDrawElements(GL_TRIANGLES, AlgoFilter::DRAW_ELEMENTS_NUMBER, GL_UNSIGNED_INT, 0);
@ -70,7 +71,6 @@ void Output::DoProcess(ProcessData& data)
imagePacker.AddImage(*pixelMap);
int64_t packedSize = 0;
imagePacker.FinalizePacking(packedSize);
AddNextFilter(nullptr);
}
void Output::SetValue(const std::string& key, void* value, int size)