-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from oblivioncth/in_stream_type_info
Encode type before header, simplify access to pixel data
- Loading branch information
Showing
31 changed files
with
750 additions
and
306 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,18 @@ | ||
#ifndef _INTERNAL_H | ||
#define _INTERNAL_H | ||
|
||
// Qt Includes | ||
#include <QSize> | ||
|
||
// Shared Library Support | ||
#include "pxcrypt/pxcrypt_codec_export.h" | ||
|
||
/*! @cond */ | ||
namespace _PxCrypt | ||
{ | ||
//-Namespace Functions------------------------------------------------------------------------------------------------- | ||
PXCRYPT_CODEC_EXPORT quint64 calculateMaximumPayloadBits(const QSize& dim, quint16 tagSize, quint8 bpc); | ||
} | ||
/*! @endcond */ | ||
|
||
#endif // _INTERNAL_H |
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,22 @@ | ||
// Unit Includes | ||
#include "pxcrypt/_internal.h" | ||
|
||
// Project Includes | ||
#include "encdec_p.h" | ||
|
||
namespace _PxCrypt | ||
{ | ||
//-Namespace Functions------------------------------------------------------------------------------------------------- | ||
/*! | ||
* @warning This functions exists primarily for testing the library. The practical amount of storage | ||
* available within an image is always lower than this. Use calculateMaximumStorage() instead. | ||
* | ||
* Returns the maximum number of bits that can be stored within an image of dimensions @a dim and tag of size | ||
* @a tagSize when using @a bpc bits per channel. | ||
*/ | ||
quint64 calculateMaximumPayloadBits(const QSize& dim, quint16 tagSize, quint8 bpc) | ||
{ | ||
return PxCrypt::calcMaxPayloadBits(dim, tagSize, bpc); | ||
} | ||
|
||
} |
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
Oops, something went wrong.