rename helper methods

This commit is contained in:
Vukašin Stepanović
2023-02-15 12:52:59 +00:00
parent bfcdb397ad
commit 935519ced5
133 changed files with 858 additions and 1044 deletions

View File

@@ -166,7 +166,7 @@ impl PlanarYUVLuminanceSource {
inverted: bool,
) -> Result<Self, Exceptions> {
if left + width > data_width || top + height > data_height {
return Err(Exceptions::illegalArgument(
return Err(Exceptions::illegalArgumentWith(
"Crop rectangle does not fit within image data.",
));
}
@@ -328,7 +328,7 @@ impl LuminanceSource for PlanarYUVLuminanceSource {
self.invert,
) {
Ok(new) => Ok(Box::new(new)),
Err(_err) => Err(Exceptions::unsupportedOperationEmpty()),
Err(_err) => Err(Exceptions::unsupportedOperation),
}
}