-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a framework in support of an image cache, a work in-progress
- Loading branch information
Cristy
committed
Mar 14, 2021
1 parent
af1f009
commit ba2deb1
Showing
8 changed files
with
168 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization | ||
dedicated to making software imaging solutions freely available. | ||
You may not use this file except in compliance with the License. You may | ||
obtain a copy of the License at | ||
https://imagemagick.org/script/license.php | ||
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. | ||
MagickCore image cache private methods. | ||
*/ | ||
#ifndef MAGICKCORE_IMAGE_CACHE_PRIVATE_H | ||
#define MAGICKCORE_IMAGE_CACHE_PRIVATE_H | ||
|
||
#if defined(__cplusplus) || defined(c_plusplus) | ||
extern "C" { | ||
#endif | ||
|
||
#if defined(__cplusplus) || defined(c_plusplus) | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % | ||
% % | ||
% IIIII M M AAA GGGG EEEEE % | ||
% I MM MM A A G E % | ||
% I M M M AAAAA G GG EEE % | ||
% I M M A A G G E % | ||
% IIIII M M A A GGGG EEEEE % | ||
% % | ||
% CCCC AAA CCCC H H EEEEE % | ||
% C A A C H H E % | ||
% C AAAAA C HHHHH EEE % | ||
% C A A C H H E % | ||
% CCCC A A CCCC H H EEEEE % | ||
% % | ||
% % | ||
% MagickCore Image Cache Methods % | ||
% % | ||
% Software Design % | ||
% Cristy % | ||
% March 2021 % | ||
% % | ||
% % | ||
% Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization % | ||
% dedicated to making software imaging solutions freely available. % | ||
% % | ||
% You may not use this file except in compliance with the License. You may % | ||
% obtain a copy of the License at % | ||
% % | ||
% https://imagemagick.org/script/license.php % | ||
% % | ||
% 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. % | ||
% % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% The image cache stores and retrieves images from disk with a minimal of | ||
% memory that can scale to billions of images. Once an image is retrieved | ||
% from the cache, you can dynamically access any pixel, apply image | ||
% processing operators, or convert the image to a blob in a specific image | ||
% format suitable for display on a web page. | ||
% | ||
% | ||
*/ | ||
|
||
/* | ||
Include declarations. | ||
*/ | ||
#include "MagickCore/studio.h" | ||
#include "MagickCore/MagickCore.h" | ||
#include "MagickCore/exception-private.h" | ||
#include "MagickCore/memory-private.h" | ||
#include "MagickCore/monitor-private.h" | ||
#include "MagickCore/thread-private.h" | ||
|
||
/* | ||
Typedef declarations. | ||
*/ | ||
struct _ImageCache | ||
{ | ||
char | ||
*path; | ||
|
||
MagickBooleanType | ||
debug; | ||
|
||
size_t | ||
signature; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization | ||
dedicated to making software imaging solutions freely available. | ||
You may not use this file except in compliance with the License. You may | ||
obtain a copy of the License at | ||
https://imagemagick.org/script/license.php | ||
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. | ||
MagickCore image cache methods. | ||
*/ | ||
#ifndef MAGICKCORE_IMAGE_CACHE_H | ||
#define MAGICKCORE_IMAGE_CACHE_H | ||
|
||
#if defined(__cplusplus) || defined(c_plusplus) | ||
extern "C" { | ||
#endif | ||
|
||
#if defined(__cplusplus) || defined(c_plusplus) | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters