Address review feedback on VRegion (#2684) (#2696)

* Add VRegion8.h to Makefile.am, meson.build, Doxyfile.in.

* Fix inaccurate function documentation.

* Add stride method to VRegion.
This commit is contained in:
shado23 2022-02-28 17:17:40 +01:00 committed by GitHub
parent 3073ee90b7
commit c02b69eaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 1 deletions

View File

@ -835,6 +835,7 @@ INPUT = \
@DOXY_INPUT_DIRECTORY@/include/vips/VError8.h \
@DOXY_INPUT_DIRECTORY@/include/vips/VImage8.h \
@DOXY_INPUT_DIRECTORY@/include/vips/VInterpolate8.h \
@DOXY_INPUT_DIRECTORY@/include/vips/VRegion8.h \
@DOXY_INPUT_DIRECTORY@/include/vips/vips8
# This tag can be used to specify the character encoding of the source files

View File

@ -2,6 +2,7 @@ pkginclude_HEADERS = \
VError8.h \
VImage8.h \
VInterpolate8.h \
VRegion8.h \
VConnection8.h \
vips8

View File

@ -1057,7 +1057,7 @@ public:
}
/**
* Acquire VRegion covering the whole image.
* Acquire an unprepared VRegion.
*/
VRegion
region() const;

View File

@ -122,6 +122,15 @@ public:
return VIPS_REGION_ADDR( get_region(), x, y );
}
/**
* Get the stride (bytes per row, including padding) of the region.
*/
size_t
stride() const
{
return VIPS_REGION_LSKIP( get_region() );
}
/**
* Get VipsPel at the given index of the region.
*/

View File

@ -2,6 +2,7 @@ public_cpp_headers = files(
'VError8.h',
'VImage8.h',
'VInterpolate8.h',
'VRegion8.h',
'VConnection8.h',
'vips8',
)