Project import generated by Copybara.

GitOrigin-RevId: 1138530ad1578c5d6615b3e3d041775c75d310c4
This commit is contained in:
MediaPipe Team
2019-09-11 14:29:38 -07:00
committed by jqtang
parent 423c21b454
commit 61bc4556af
173 changed files with 1806 additions and 1824 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ REGISTER_CALCULATOR(GlSurfaceSinkCalculator);
const auto& input = TagOrIndex(cc->Inputs(), "VIDEO", 0).Get<GpuBuffer>();
if (!initialized_) {
renderer_ = absl::make_unique<QuadRenderer>();
RETURN_IF_ERROR(renderer_->GlSetup());
MP_RETURN_IF_ERROR(renderer_->GlSetup());
initialized_ = true;
}
@@ -124,7 +124,7 @@ REGISTER_CALCULATOR(GlSurfaceSinkCalculator);
glActiveTexture(GL_TEXTURE1);
glBindTexture(src.target(), src.name());
RETURN_IF_ERROR(
MP_RETURN_IF_ERROR(
renderer_->GlRender(src.width(), src.height(), dst_width, dst_height,
scale_mode_, FrameRotation::kNone,
/*flip_horizontal=*/false, /*flip_vertical=*/false,