2020-09-24 04:21:33 +08:00
|
|
|
// Copyright 2020 Google LLC
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2020-10-11 16:20:40 +08:00
|
|
|
#include "func.h" // NOLINT(build/include)
|
2020-09-24 04:21:33 +08:00
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFGetField1(TIFF* tif, uint32_t tag, void* param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFGetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFGetField2(TIFF* tif, uint32_t tag, void* param1, void* param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFGetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFGetField3(TIFF* tif, uint32_t tag, void* param1, void* param2,
|
2020-09-24 04:21:33 +08:00
|
|
|
void* param3) {
|
|
|
|
return TIFFGetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldUChar1(TIFF* tif, uint32_t tag, uint8_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldUChar2(TIFF* tif, uint32_t tag, uint8_t param1,
|
|
|
|
uint8_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldUChar3(TIFF* tif, uint32_t tag, uint8_t param1, uint8_t param2,
|
|
|
|
uint8_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSChar1(TIFF* tif, uint32_t tag, int8_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSChar2(TIFF* tif, uint32_t tag, int8_t param1, int8_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSChar3(TIFF* tif, uint32_t tag, int8_t param1, int8_t param2,
|
|
|
|
int8_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldU1(TIFF* tif, uint32_t tag, uint32_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldU2(TIFF* tif, uint32_t tag, uint32_t param1, uint32_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldU3(TIFF* tif, uint32_t tag, uint32_t param1, uint32_t param2,
|
|
|
|
uint32_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldS1(TIFF* tif, uint32_t tag, int param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldS2(TIFF* tif, uint32_t tag, int param1, int param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldS3(TIFF* tif, uint32_t tag, int param1, int param2,
|
2020-09-24 04:21:33 +08:00
|
|
|
int param3) {
|
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldUShort1(TIFF* tif, uint32_t tag, uint16_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldUShort2(TIFF* tif, uint32_t tag, uint16_t param1,
|
|
|
|
uint16_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldUShort3(TIFF* tif, uint32_t tag, uint16_t param1,
|
|
|
|
uint16_t param2, uint16_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSShort1(TIFF* tif, uint32_t tag, int16_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSShort2(TIFF* tif, uint32_t tag, int16_t param1,
|
|
|
|
int16_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSShort3(TIFF* tif, uint32_t tag, int16_t param1, int16_t param2,
|
|
|
|
int16_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldULLong1(TIFF* tif, uint32_t tag, uint64_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldULLong2(TIFF* tif, uint32_t tag, uint64_t param1,
|
|
|
|
uint64_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldULLong3(TIFF* tif, uint32_t tag, uint64_t param1,
|
|
|
|
uint64_t param2, uint64_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSLLong1(TIFF* tif, uint32_t tag, int64_t param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSLLong2(TIFF* tif, uint32_t tag, int64_t param1,
|
|
|
|
int64_t param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldSLLong3(TIFF* tif, uint32_t tag, int64_t param1, int64_t param2,
|
|
|
|
int64_t param3) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldFloat1(TIFF* tif, uint32_t tag, float param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldFloat2(TIFF* tif, uint32_t tag, float param1, float param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldFloat3(TIFF* tif, uint32_t tag, float param1, float param2,
|
2020-09-24 04:21:33 +08:00
|
|
|
float param3) {
|
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldDouble1(TIFF* tif, uint32_t tag, double param) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldDouble2(TIFF* tif, uint32_t tag, double param1, double param2) {
|
2020-09-24 04:21:33 +08:00
|
|
|
return TIFFSetField(tif, tag, param1, param2);
|
|
|
|
}
|
|
|
|
|
2020-12-08 19:15:32 +08:00
|
|
|
int TIFFSetFieldDouble3(TIFF* tif, uint32_t tag, double param1, double param2,
|
2020-09-24 04:21:33 +08:00
|
|
|
double param3) {
|
|
|
|
return TIFFSetField(tif, tag, param1, param2, param3);
|
|
|
|
}
|