Image type module.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | IMAGE_ID_LEN | = | UUID_LEN |
Returns whether images are equal.
Returns .true.
if given images are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(image_type), | intent(in) | :: | image1 |
The first image. |
||
type(image_type), | intent(in) | :: | image2 |
The second image. |
Image type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=IMAGE_ID_LEN), | public | :: | id | = | ' ' |
Image id (UUIDv4). |
|
character(len=NODE_ID_LEN), | public | :: | node_id | = | ' ' |
Node id. |
|
character(len=SENSOR_ID_LEN), | public | :: | sensor_id | = | ' ' |
Sensor id. |
|
character(len=TARGET_ID_LEN), | public | :: | target_id | = | ' ' |
Target id. |
|
character(len=TIME_LEN), | public | :: | timestamp | = | TIME_DEFAULT |
Image timestamp (ISO 8601). |
|
character(len=MIME_LEN), | public | :: | mime | = | ' ' |
Image format (MIME type). |
|
integer, | public | :: | width | = | 0 |
Image width [px]. |
|
integer, | public | :: | height | = | 0 |
Image height [px]. |
|
integer(kind=i8), | public | :: | size | = | 0_i8 |
Image file size [byte]. |
Returns .true.
if given images are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(image_type), | intent(in) | :: | image1 |
The first image. |
||
type(image_type), | intent(in) | :: | image2 |
The second image. |
Returns .true.
if passed image is valid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(image_type), | intent(in) | :: | image |
Image type. |
Returns path of image file from image id, MIME type, and base path:
<base>/<id>.<suffix>
. On error, the returned string is allocated
but empty.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(image_type), | intent(in) | :: | image |
Image type. |
||
character(len=*), | intent(in), | optional | :: | base |
Image base path. |
Image path.
Prints image to standard output or given file unit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(image_type), | intent(inout) | :: | image | |||
integer, | intent(in), | optional | :: | unit |
Sets image attributes.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(image_type), | intent(inout) | :: | image |
Image type. |
||
character(len=UUID_LEN), | intent(in), | optional | :: | id |
Image id. |
|
character(len=*), | intent(in), | optional | :: | node_id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | sensor_id |
Sensor id. |
|
character(len=*), | intent(in), | optional | :: | target_id |
Target id. |
|
character(len=TIME_LEN), | intent(in), | optional | :: | timestamp |
Image timestamp. |
|
character(len=*), | intent(in), | optional | :: | mime |
Image format. |
|
integer, | intent(in), | optional | :: | width |
Image width [px]. |
|
integer, | intent(in), | optional | :: | height |
Image height [px]. |
|
integer(kind=i8), | intent(in), | optional | :: | size |
Image size [byte]. |