mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
wrong clang-google-style parts
This commit is contained in:
parent
6f3acfabb0
commit
6a2f0cebd8
|
@ -131,7 +131,7 @@ void TestWriting(const char* mode, int tiled, int height) {
|
|||
EXPECT_THAT(status_or_int.value(), IsTrue())
|
||||
<< "TIFFDeferStrileArrayWriting return unexpected value";
|
||||
|
||||
/* Create other directory */
|
||||
// Create other directory
|
||||
ASSERT_THAT(api.TIFFFreeDirectory(&tif), IsOk())
|
||||
<< "TIFFFreeDirectory fatal error";
|
||||
ASSERT_THAT(api.TIFFCreateDirectory(&tif), IsOk())
|
||||
|
@ -191,7 +191,7 @@ void TestWriting(const char* mode, int tiled, int height) {
|
|||
EXPECT_THAT(status_or_int.value(), IsTrue())
|
||||
<< "TIFFWriteDirectory return unexpected value";
|
||||
|
||||
/* Force writing of strile arrays */
|
||||
// Force writing of strile arrays
|
||||
status_or_int = api.TIFFSetDirectory(&tif, 0);
|
||||
ASSERT_THAT(status_or_int, IsOk()) << "TIFFSetDirectory fatal error";
|
||||
EXPECT_THAT(status_or_int.value(), IsTrue())
|
||||
|
@ -214,7 +214,7 @@ void TestWriting(const char* mode, int tiled, int height) {
|
|||
EXPECT_THAT(status_or_int.value(), IsTrue())
|
||||
<< "TIFFForceStrileArrayWriting return unexpected value";
|
||||
|
||||
/* Now write data on frist directory */
|
||||
// Now write data on frist directory
|
||||
status_or_int = api.TIFFSetDirectory(&tif, 0);
|
||||
ASSERT_THAT(status_or_int, IsOk()) << "TIFFSetDirectory fatal error";
|
||||
EXPECT_THAT(status_or_int.value(), IsTrue())
|
||||
|
|
|
@ -72,7 +72,7 @@ static int CheckRgbaPixel(int pixel, int min_red, int max_red, int min_green,
|
|||
int max_green, int min_blue, int max_blue,
|
||||
int min_alpha, int max_alpha,
|
||||
const sapi::v::Array<unsigned> &buffer) {
|
||||
/* RGBA images are upside down - adjust for normal ordering */
|
||||
// RGBA images are upside down - adjust for normal ordering
|
||||
int adjusted_pixel = pixel % 128 + (127 - (pixel / 128)) * 128;
|
||||
unsigned rgba = buffer[adjusted_pixel];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user