Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/draco/src/draco/compression/encode.cc
- This file was moved from extern/draco/dracoenc/src/draco/compression/encode.cc.
| Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
| void Encoder::SetEncodingMethod(int encoding_method) { | void Encoder::SetEncodingMethod(int encoding_method) { | ||||
| Base::SetEncodingMethod(encoding_method); | Base::SetEncodingMethod(encoding_method); | ||||
| } | } | ||||
| Status Encoder::SetAttributePredictionScheme(GeometryAttribute::Type type, | Status Encoder::SetAttributePredictionScheme(GeometryAttribute::Type type, | ||||
| int prediction_scheme_method) { | int prediction_scheme_method) { | ||||
| Status status = CheckPredictionScheme(type, prediction_scheme_method); | Status status = CheckPredictionScheme(type, prediction_scheme_method); | ||||
| if (!status.ok()) | if (!status.ok()) { | ||||
| return status; | return status; | ||||
| } | |||||
| options().SetAttributeInt(type, "prediction_scheme", | options().SetAttributeInt(type, "prediction_scheme", | ||||
| prediction_scheme_method); | prediction_scheme_method); | ||||
| return status; | return status; | ||||
| } | } | ||||
| } // namespace draco | } // namespace draco | ||||