Grok 20.3.2
grk Namespace Reference

ResWindow. More...

Namespaces

namespace  HWY_NAMESPACE
namespace  ojph
namespace  t1
namespace  t1_t2

Classes

struct  AllLayersPrecinctPacketParser
 Enqueues PacketParser for all layers of a given precinct, to be executed in sequence. More...
struct  AllocatorAligned
struct  AllocatorVanilla
struct  AsocBox
 Association box (defined in ITU 15444-2 Annex M 11.1 ). More...
struct  BackupCache
class  BadAsocException
class  BlockCache
struct  Box
struct  BoxWriteHandler
struct  Buffer
struct  Buffer2d
struct  Buffer2dSimple
struct  BufferedStream
 Manages buffered read/write using callbacks or memory buffer. More...
class  ChronoTimer
class  ChunkBuffer
 Manages a partially ordered deque of buffer chunks that are added asynchronously out of order. More...
struct  ChunkContext
struct  ChunkRequest
struct  ChunkRequestBatch
struct  ChunkTask
class  Codec
class  CodecScheduler
 An abstract class that can execute T1 phase of codec by running a tf::Executor. More...
struct  CoderKey
struct  CoderKeyHash
struct  CoderPool
class  CodeStream
class  CodeStreamCompress
class  CodeStreamDecompress
 Manages decompression. More...
struct  CodingParams
 Coding parameters. More...
struct  ComponentInfo
class  CompressedChunkCache
 Per-file LRU cache that manages compressed tile part data in memory. More...
class  CompressScheduler
class  CompressSchedulerExcalibur
 Compresses a tile using windowed design. More...
class  ConcurrentQueue
 Thread-safe unbounded queue with blocking pop and close signal. More...
class  CorruptJP2BoxException
class  CorruptMarkerException
class  CorruptSOTMarkerException
class  CorruptTLMException
struct  DataSlice
struct  DcShiftParam
class  DebugContext
class  DecodeUnknownMarkerAtEndOfTileException
struct  DecodingParams
class  DecompressScheduler
 schedule and run T1 decompression More...
class  DecompressSchedulerExcalibur
 abstract class to graph and execute T1 tasks for windowed tile More...
struct  DifferentialInfo
 Stores number of layers compressed in differential decompression. More...
class  DiskCache
 Secondary disk-based cache for compressed tile data. More...
class  dwt53
class  dwt53_16
class  dwt97
class  dwt97_16
struct  dwt_line
struct  dwt_scratch
struct  encode_info
struct  EncodingParams
class  EnvVarManager
struct  FetchAuth
struct  FetchJob
class  FetchPathParser
struct  FetchResult
class  FileFormatJP2Compress
class  FileFormatJP2Decompress
class  FileFormatJP2Family
 JPEG 2000 file format reader/writer. More...
class  FileFormatMJ2
class  FileFormatMJ2Compress
class  FileFormatMJ2Decompress
struct  FindHandlerInfo
struct  GpupLoggerAdapter
struct  grk_mct_data
 MCT data. More...
struct  grk_plugin_debug_mqc
struct  grk_ppx
struct  grk_simple_mcc_decorrelation_data
 MCC decorrelation data. More...
struct  grk_stepsize
 Quantization stepsize. More...
class  GrkImage
 Stores header and data for an image. More...
class  GrkImageMeta
class  GrkMatrix
class  GrkObjectWrapperImpl
struct  ICompressor
struct  IDecompressor
 Decompress interface. More...
class  IFetcher
struct  ILogger
class  ImageComponentFlow
 Image component flow storing array of Resflow. More...
struct  IMarkerProcessor
struct  IncludeTracker
class  IniParser
struct  IRequestBatch
class  ISparseCanvas
struct  IStream
struct  ITileComponentWindow
 Type-erased interface for tile component windows. More...
struct  ITileProcessor
 Interface for managing tile compression/decompression. More...
struct  ITileProcessorCompress
 Interface for managing tile compression. More...
struct  LayerIncludeBuffers
 Include buffers for all resolutions in a given layer. More...
class  LimitedQueue
 Queue limited to maximum size. More...
struct  Line
struct  LocationProbe
struct  Logger
class  LRUCache
 Thread-safe LRU cache with configurable capacity and eviction callback. More...
struct  Marker
 Stores individual marker information. More...
struct  MarkerCache
 Stores markers. More...
struct  MarkerParser
struct  MarkerProcessor
struct  MarkerScratch
class  Mct
class  MemAdvisor
class  MemoryManager
struct  MemStream
class  MinHeap
 Thread-safe min-heap for values with customizable locking. More...
class  MinHeapBase
 Base class providing common functionality for min-heap implementations. More...
struct  MinHeapComparator
 Comparator for min-heap ordering based on getIndex() (value version). More...
class  MinHeapFakeLocker
 No-op locker for single-threaded or unsynchronized min-heap access. More...
class  MinHeapLocker
 RAII locker for synchronizing access to a min-heap with a real mutex. More...
class  MinHeapPtr
 Thread-safe min-heap for pointers with customizable locking. More...
struct  MinHeapPtrComparator
 Comparator for min-heap ordering based on getIndex() (pointer version). More...
struct  minpf_dynamic_library
struct  minpf_object_params
struct  minpf_platform_services
struct  minpf_plugin_api_version
struct  minpf_plugin_manager
struct  minpf_register_params
struct  mj2_chunk
 Chunk. More...
struct  mj2_cparameters
 Compression parameters. More...
struct  mj2_sample
 Sample. More...
struct  mj2_sampletochunk
 Sample to chunk. More...
struct  mj2_tk
 Video Track Parameters. More...
struct  mj2_tts
 Time To Sample. More...
struct  mj2_url
 URL. More...
struct  mj2_urn
 URN. More...
struct  MJ2SampleRecord
 Records the offset and size of a compressed sample within the mdat box. More...
class  NetworkFileChecker
struct  NoopDeleter
class  PacketCache
 Manages packet buffers and associated packet parsers. More...
struct  PacketIter
 Iterates through JPEG 2000 packets following a progression order. More...
struct  PacketIterInfoComponent
 Component-level information for packet iteration. More...
struct  PacketIterInfoResolution
 Resolution-level precinct grid geometry for packet iteration. More...
class  PacketLengthCache
 Cached packet lengths from PLT or PLM marker. More...
class  PacketManager
class  PacketParser
 Parses packet header and packer data. More...
struct  PacketProgressionState
 Stores the maximum number of layers read corresponding to packet data that has been read, for each resolution. More...
class  PacketTracker
struct  ParsedFetchPath
class  Partial53
class  Partial97
struct  PartialBandInfo
class  PartialInterleaver
struct  PLMarker
 Manages raw (uncompressed) PLT and PLM markers. More...
struct  PluginDecodeCallbackInfo
class  PluginDecodeUnsupportedException
struct  Point
class  PPMMarker
struct  Precinct
 Lightweight precinct struct storing only bounds, some book-keeping variables and a pointer to the PrecinctImpl. More...
struct  PrecinctCompress
struct  PrecinctDecompress
struct  PrecinctImpl
 Stores tag trees and code blocks belonging to a Precinct A reference to the Precinct is also stored. More...
struct  PrecinctImplCompress
struct  PrecinctImplDecompress
class  Profile
struct  prog_order
struct  Quantizer
class  QuantizerFactory
class  RateControl
struct  RateControlStats
 Per-tile rate control statistics collected during T1 encoding. More...
class  RateInfo
struct  Rect
struct  Rect32_16
class  RefCounted
struct  RefCountedDeleter
struct  ResBlocks
 store decompression blocks for a resolution More...
struct  Resflow
 Stores FlowComponent for packets, blocks, horizontal wavelet and vertical wavelet, for a given resolution. More...
struct  Resolution
 Stores a tile component resolution's dimensions, sub bands and other information. More...
class  ResolutionChecker
struct  ResolutionPacketParser
 Enqueues sequence of AllLayersPrecinctPacketParser for a given resolutions. More...
struct  ResPrecinctInfo
 Cached geometric state of a tile component's resolution, relative to its precinct grid. More...
struct  ResSimple
struct  ResWindow
struct  ScheduledFetch
struct  ScheduleInfo
class  SchedulerExcalibur
 abstract class to graph and execute T1 tasks for windowed tile More...
class  SchedulerFreebyrd
 Stub — freebyrd thread pool has been removed. More...
class  SchedulerStandard
 abstract class to graph and execute T1 tasks for whole tile More...
class  Scheduling
class  SequentialCache
 Dynamic array of pointers of type T. More...
struct  SharedPtrSeq
 Sequence of shared_ptr<T>. More...
struct  ShiftInfo
class  SimpleHeap
 A simple non-thread-safe min-heap for tracking contiguous sequences of size_t indices. More...
class  SimpleXmlParser
class  SIZMarker
class  SlabPool
 A thread-safe slab-based buffer pool with configurable slot size and number of slots. More...
class  SOTMarker
struct  SparseBlock
class  SparseBuffer
 Manages a list of buffers (named chunks) which can be treated as one single contiguous buffer. More...
class  SparseBufferIncompleteException
class  SparseBufferOverrunException
class  SparseCache
class  SparseCanvas
struct  StreamCallbacks
 Stores callbacks. More...
class  StreamGenerator
struct  StripConfig
 Configuration for strip-based decompression. More...
class  StripDecompressor
 Stub — freebyrd thread pool has been removed. More...
struct  StripGeometry
 Geometry for a single cascade DWT strip at a given resolution. More...
class  StripPartitioner
 Computes strip geometry for cascade DWT at a given resolution. More...
struct  Subband
 Stores sub band bounds and precincts. More...
struct  SubbandRange
 Sub-band row range needed by a strip (inclusive begin, exclusive end). More...
struct  T2Compress
 Tier-2 coding. More...
class  T2Decompress
 T2 parsing of packets. More...
class  TagTree
struct  Tile
class  TileCache
 Caches tile processors so that repeated decompress calls on the same codec can reuse SOT metadata, packet data, and decompressed images. More...
struct  TileCacheEntry
 Stores a tile processor together with its cache state. More...
struct  TileCodingParams
 Tile coding parameters : this structure is used to store coding/decoding parameters common to all tiles (information like COD, COC in main header). More...
class  TileCodingParamsPool
class  TileCompletion
 Tracks per-tile completion and fires row callbacks for incremental compositing. More...
struct  TileComponent
 Stores sub-sampled, unreduced tile component dimensions, along with reduction information. More...
struct  TileComponentCodingParams
 Tile-component coding parameters. More...
struct  TileComponentWindow
struct  TileComponentWindowBase
struct  TileFetchContext
struct  TilePartInfo
struct  TilePartLength
 Stores tile part's length and tile index. More...
struct  TilePartLengthPOD
struct  TileProcessor
struct  TileProcessorCompress
struct  TileRequestBatch
class  TileWindow
 Stores state of rectangular window of tiles slated for decompression Each tile's slated or completely parsed state is stored. More...
class  TLMFile
struct  TLMMarker
 Reads/writes TLM markers. More...
class  TLMMarkerManager
 Manages a collection of TLM markers, assuming strictly increasing marker ids. More...
struct  TPFetch
 Stores concurrent fetch request information for a single tile part. More...
struct  TPFetchSeq
struct  TPSeq
 Sequence of shared_ptr<DataSlice> tile parts parsed from either TLM or SOT marker. More...
class  TruncatedPacketHeaderException
struct  UUIDBox
struct  vec
class  WaveletFwdImpl
struct  WaveletFwdScheduleData
class  WaveletPoolData
 Per-image pool of per-thread scratch buffers for the 5/3 wavelet. More...
class  WaveletReverse

Concepts

concept  HasGetIndex
 Concept ensuring a type T has a getIndex() method returning an integral type.

Typedefs

typedef std::function< bool(void)> PROCEDURE_FUNC
typedef void(* mct_function) (const void *p_src_data, void *p_dest_data, uint64_t nb_elem)
typedef std::function< bool(uint8_t *headerData, uint16_t headerSize)> MARKER_CALLBACK
typedef std::vector< std::unique_ptr< Buffer8 > > RAW_PL_MARKER
 collection of raw marker data stored in Buffer8
typedef std::map< uint32_t, std::unique_ptr< RAW_PL_MARKER > > RAW_PL_MARKER_MAP
 collection of RAW_PL_MARKER pointers
using ResolutionLayerKey = std::pair<uint8_t, uint16_t>
using QueueMap = std::map<ResolutionLayerKey, std::queue<t1::mqcoder>>
typedef std::function< bool(uint8_t *headerData, uint32_t headerSize)> BOX_FUNC
typedef std::function< uint8_t *(uint32_t *len)> WRITE_FUNC
typedef struct grk::minpf_object_params minpf_object_params
typedef struct grk::minpf_plugin_api_version minpf_plugin_api_version
typedef void *(* minpf_create_func) (minpf_object_params *)
typedef int32_t(* minpf_destroy_func) (void *)
typedef struct grk::minpf_register_params minpf_register_params
typedef int32_t(* minpf_register_func) (const char *nodeType, const minpf_register_params *params)
typedef int32_t(* minpf_invoke_service_func) (const char *serviceName, void *serviceParams)
typedef struct grk::minpf_platform_services minpf_platform_services
typedef int32_t(* minpf_exit_func) ()
typedef minpf_exit_func(* minpf_post_load_func) (const minpf_platform_services *)
typedef struct grk::minpf_plugin_manager minpf_plugin_manager
typedef uint32_t(* PLUGIN_GET_DEBUG_STATE) (void)
typedef void(* PLUGIN_DEBUG_MQC_NEXT_CXD) (grk_plugin_debug_mqc *mqc, uint32_t d)
typedef void(* PLUGIN_DEBUG_MQC_NEXT_PLANE) (grk_plugin_debug_mqc *mqc)
typedef bool(* PLUGIN_INIT) (gpup_init_info initInfo)
typedef int32_t(* PLUGIN_ENCODE) (gpup_compress_params *encoding_parameters, GPUP_COMPRESS_USER_CALLBACK callback)
typedef int32_t(* PLUGIN_BATCH_ENCODE) (gpup_compress_batch_info info)
typedef void(* PLUGIN_STOP_BATCH_ENCODE) (void)
typedef void(* PLUGIN_WAIT_FOR_BATCH_COMPLETE) (void)
typedef int32_t(* PLUGIN_DECODE_USER_CALLBACK) (PluginDecodeCallbackInfo *info)
typedef int32_t(* PLUGIN_DECODE) (gpup_decompress_params *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback)
typedef int32_t(* PLUGIN_INIT_BATCH_DECODE) (const char *input_dir, const char *output_dir, gpup_decompress_params *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback)
typedef int32_t(* PLUGIN_BATCH_DECODE) (void)
typedef void(* PLUGIN_STOP_BATCH_DECODE) (void)
typedef std::unordered_map< CoderKey, std::vector< std::shared_ptr< t1::ICoder > >, CoderKeyHashCODERMAP
using StripOutputCallback
typedef std::vector< ResBlocksComponentBlocks
typedef std::vector< ComponentBlocksTileBlocks
using TileFetchCallback = std::function<void(size_t requestIndex, TileFetchContext* context)>
typedef size_t(* CURL_FETCHER_WRITE_CALLBACK) (void *contents, size_t size, size_t nmemb, void *userp)
typedef size_t(* readZeroCopyCallback) (uint8_t **buffer, size_t numBytes, void *user_data)
typedef int32_t grk_handle
using TPSEQ_VEC = std::vector<std::unique_ptr<TPSeq>>
using TagTreeU8 = TagTree<uint8_t>
using TagTreeU16 = TagTree<uint16_t>
using Buffer8 = Buffer<uint8_t, AllocatorVanilla>
using BufferAligned8 = Buffer<uint8_t, AllocatorAligned>
using Buffer2dAligned32 = Buffer2d<int32_t, AllocatorAligned>
using Point32 = Point<uint32_t>
using Point16 = Point<uint16_t>
using Point8 = Point<uint8_t>
using Line32 = Line<uint32_t>
using Rect32 = Rect<uint32_t>
using Rect16 = Rect<uint16_t>
using RectF = Rect<float>
using RectD = Rect<double>
typedef vec< float, 4 > vec4f

Enumerations

enum  eSplitOrientation { SPLIT_L , SPLIT_H , SPLIT_NUM_ORIENTATIONS }
enum  MCT_ELEMENT_TYPE { MCT_TYPE_INT16 = 0 , MCT_TYPE_INT32 = 1 , MCT_TYPE_FLOAT = 2 , MCT_TYPE_DOUBLE = 3 }
 Type of elements storing in the MCT data. More...
enum  MCT_ARRAY_TYPE { MCT_TYPE_DEPENDENCY = 0 , MCT_TYPE_DECORRELATION = 1 , MCT_TYPE_OFFSET = 2 }
 Type of MCT array. More...
enum  JP2_STATE {
  JP2_STATE_NONE = 0x0 , JP2_STATE_SIGNATURE = 0x1 , JP2_STATE_FILE_TYPE = 0x2 , JP2_STATE_HEADER = 0x4 ,
  JP2_STATE_CODESTREAM = 0x8 , JP2_STATE_END_CODESTREAM = 0x10
}
enum class  GrkAccessPattern { ACCESS_SEQUENTIAL , ACCESS_RANDOM , ACCESS_NORMAL , ACCESS_DONTNEED }
enum  T2_MODE { THRESH_CALC = 0 , FINAL_PASS = 1 }

Functions

uint32_t max_resolution (const Resolution *GRK_RESTRICT r, uint32_t i)
static Rect32_16 intersect (const Rect32 *lhs, const Rect32_16 &rhs)
template<class T>
constexpr T getFilterPad (bool lossless)
template<typename S, typename D>
void write (const void *p_src_data, void *p_dest_data, uint64_t nb_elem)
void MycmsLogErrorHandlerFunction (cmsContext ContextID, cmsUInt32Number ErrorCode, const char *Text)
static uint8_t * assemble_super_box (uint32_t box_type, uint8_t **sub_boxes, const uint32_t *sub_sizes, uint32_t count, uint32_t *p_nb_bytes_written)
static uint32_t toBigEndian (uint32_t value)
bool minpf_get_full_path (const char *path, const void *addr, dynamic_handle_t handle, char *fullPath, size_t fullPathLen)
bool minpf_unload_dynamic_library (minpf_dynamic_library *library)
minpf_dynamic_libraryminpf_load_dynamic_library (const char *path, char *error)
void * minpf_get_symbol (minpf_dynamic_library *library, const char *symbol)
PLUGIN_API minpf_exit_func minpf_init_plugin (const char *pluginPath, const minpf_platform_services *params)
static int32_t minpf_post_load_plugin (const char *pluginPath, minpf_post_load_func initFunc)
static const char * get_filename_ext (const char *filename)
static int32_t minpf_load (const char *path)
static uint32_t minpf_is_valid_plugin (const char *id, const minpf_register_params *params)
int32_t minpf_register_object (const char *id, const minpf_register_params *params)
const char * minpf_get_dynamic_library_extension (void)
void minpf_initialize_plugin_manager (minpf_plugin_manager *manager)
minpf_plugin_managerminpf_get_plugin_manager (void)
void minpf_cleanup_plugin_manager (void)
int32_t minpf_load_from_path (const char *path, minpf_invoke_service_func func)
int32_t minpf_load_from_dir (const char *directory_path, minpf_invoke_service_func func)
bool tile_equals (grk_plugin_tile *plugin_tile, const Tile *tilePtr)
void compress_synch_with_plugin (ITileProcessorCompress *tileProcessor, uint16_t compno, uint8_t resno, uint8_t bandIndex, uint64_t precinctIndex, uint32_t cblkno, Subband *band, t1::CodeblockCompress *cblk, uint32_t *num_pix)
void grk_to_gpup_compress_params (const grk_cparameters *src, gpup_compress_params *dst)
void grk_to_gpup_decompress_params (const grk_decompress_parameters *src, gpup_decompress_params *dst)
void gpup_to_grk_header_info (const gpup_header_info *src, grk_header_info *dst)
void grk_to_gpup_header_info (const grk_header_info *src, gpup_header_info *dst)
gpup_imagegrk_to_gpup_image (const grk_image *src)
void gpup_image_free_shell (gpup_image *img)
void gpup_to_grk_image_shallow (const gpup_image *src, grk_image *dst)
grk_plugin_tilegpup_tile_to_grk (gpup_tile *src)
void gpup_tile_update_grk (grk_plugin_tile *dst, gpup_tile *src)
void grk_tile_sync_metadata_to_gpup (grk_plugin_tile *wrapper, gpup_tile *original)
void grk_plugin_tile_free_wrapper (grk_plugin_tile *t)
gpup_tilegrk_tile_to_gpup (grk_plugin_tile *src)
void gpup_tile_free_wrapper (gpup_tile *t)
void grk_to_gpup_stream_params (const grk_stream_params *src, gpup_stream_params *dst)
void gpup_to_grk_stream_params (const gpup_stream_params *src, grk_stream_params *dst)
tf::Executor & executor ()
 Returns a reference to the core library's tf::Executor.
size_t num_workers ()
 Returns the total number of worker threads in the core pool.
uint32_t worker_id ()
 Returns the TaskFlow worker id of the calling thread.
static int32_t get_file_open_mode (const char *mode)
static uint64_t size_proc (grk_handle fd)
static void * grk_map (grk_handle fd, size_t len, bool do_read)
static int32_t unmap (void *ptr, size_t len)
static grk_handle open_fd (const char *fname, const char *mode)
static int32_t close_fd (grk_handle fd)
static void mem_map_free (void *user_data)
IStreamcreateMappedFileReadStream (grk_stream_params *stream_param)
IStreamcreate_mapped_file_write_stream (const char *fname)
bool detectFormat (const uint8_t *buffer, GRK_CODEC_FORMAT *fmt)
 Detect JPEG 2000 format from buffer Format is either GRK_FMT_J2K or GRK_FMT_JP2.
static void memStreamUserDataFree (void *user_data)
static void memStreamFree (void *user_data)
static size_t memStreamZeroCopyRead (uint8_t **buffer, size_t numBytes, void *src)
static size_t memStreamRead (uint8_t *dest, size_t numBytes, void *src)
static size_t memStreamWrite (const uint8_t *src, size_t numBytes, void *dest)
static bool memStreamSeek (uint64_t numBytes, void *src)
void memStreamSetup (IStream *stream, bool isReadStream)
IStreammemStreamCreate (uint8_t *buf, size_t len, bool ownsBuffer, grk_stream_free_user_data_fn freeCallback, GRK_CODEC_FORMAT format, bool readStream)
 Create stream from buffer.
void grk_write (uint8_t *dest, const uint8_t *value, uint8_t sizeOfType, uint32_t numBytes)
template<typename TYPE>
void grk_write (uint8_t *dest, TYPE value, uint32_t numBytes)
template<typename TYPE>
void grk_write (uint8_t *dest, TYPE value)
template<typename TYPE>
void grk_write (uint8_t **dest, TYPE value)
template<typename TYPE>
void grk_read (const uint8_t *src, TYPE *value, uint32_t numBytes)
template<typename TYPE>
void grk_read (uint8_t **src, uint32_t *bytesRemaining, TYPE *value, uint32_t numBytes)
template<typename TYPE>
void grk_read (uint8_t **src, TYPE *value, uint32_t numBytes)
template<typename TYPE>
void grk_read (const uint8_t *dest, TYPE *value)
template<typename TYPE>
void grk_read (uint8_t **dest, uint32_t *bytesRemaining, TYPE *value)
template<typename TYPE>
void grk_read (uint8_t **dest, TYPE *value)
template<typename T>
void grk_copy_strided (uint32_t w, uint32_t stride, uint32_t h, const T *src, int32_t *dest)
 Assume that source stride == source width == destination width.
template<typename T>
clip (int64_t val)
template<typename T>
satAdd (int64_t lhs, int64_t rhs)
template<typename T>
satAdd (T lhs, T rhs)
template<typename T>
satSub (T lhs, T rhs)
template<typename T>
satSub (int64_t lhs, int64_t rhs)
template<typename T>
void clip (grk_image_comp *component, uint8_t precision)
void hwy_clip_i32 (int32_t *data, uint32_t w, uint32_t h, uint32_t stride, int32_t minVal, int32_t maxVal)
void hwy_scale_mul_i32 (int32_t *data, uint32_t w, uint32_t h, uint32_t stride, int32_t scale)
void hwy_scale_div_i32 (int32_t *data, uint32_t w, uint32_t h, uint32_t stride, int32_t scale)
void hwy_sycc444_to_rgb_i32 (const int32_t *y, const int32_t *cb, const int32_t *cr, int32_t *r, int32_t *g, int32_t *b, uint32_t w, uint32_t h, uint32_t src_stride, uint32_t dst_stride, int32_t offset, int32_t upb)
void hwy_esycc_to_rgb_i32 (int32_t *yd, int32_t *bd, int32_t *rd, uint32_t w, uint32_t h, uint32_t stride, int32_t max_value, int32_t flip_value, bool sign1, bool sign2)
void hwy_planar_to_packed_8 (const int32_t *r, const int32_t *g, const int32_t *b, uint8_t *out, uint32_t w, uint32_t h, uint32_t src_stride)
void hwy_packed_to_planar_8 (const uint8_t *in, int32_t *r, int32_t *g, int32_t *b, uint32_t w, uint32_t h, uint32_t dst_stride)
void hwy_planar_to_packed_16 (const int32_t *r, const int32_t *g, const int32_t *b, uint16_t *out, uint32_t w, uint32_t h, uint32_t src_stride)
void hwy_packed_to_planar_16 (const uint16_t *in, int32_t *r, int32_t *g, int32_t *b, uint32_t w, uint32_t h, uint32_t dst_stride)
void hwy_copy_tile_to_swath (const grk_image *tile_img, const grk_swath_buffer *buf)
 Copy a decoded tile image (int32_t planar) into a swath output buffer described by grk_swath_buffer.
GRK_SIMD_API void hwy_unpack_8u_to_i32 (const uint8_t *src, int32_t *dest, size_t w, bool invert)
GRK_SIMD_API void hwy_unpack_8s_to_i32 (const uint8_t *src, int32_t *dest, size_t w, bool invert)
GRK_SIMD_API void hwy_unpack_16be_to_i32 (const uint8_t *src, int32_t *dest, size_t w, bool invert)
GRK_SIMD_API void hwy_unpack_16le_to_i32 (const uint16_t *src, int32_t *dest, size_t w, bool invert)
GRK_SIMD_API void hwy_deinterleave_i32 (const int32_t *src, int32_t *const *dest, uint32_t w, uint16_t numComps)
GRK_SIMD_API void hwy_pack_planar_to_8 (const int32_t *const *src, uint32_t numPlanes, uint8_t *dest, uint32_t w, int32_t adjust)
GRK_SIMD_API void hwy_pack_planar_to_16 (const int32_t *const *src, uint32_t numPlanes, uint16_t *dest, uint32_t w, int32_t adjust)
GRK_SIMD_API void hwy_pack_planar_to_16be (const int32_t *const *src, uint32_t numPlanes, uint8_t *dest, uint32_t w, int32_t adjust)
GRK_SIMD_API void hwy_scale_component_up (int32_t *data, uint32_t w, uint32_t h, uint32_t stride, int32_t scale)
GRK_SIMD_API void hwy_scale_component_down (int32_t *data, uint32_t w, uint32_t h, uint32_t stride, int32_t scale)
template<typename T>
uint32_t ceildiv (T a, T b)
 Divide an integer by another integer and round upwards.
template<typename T>
ceildivpow2 (T a, uint8_t b)
static uint32_t floordivpow2 (uint32_t a, uint8_t b)
 Divide an unsigned integer by a power of 2 and round downwards.
static int32_t fix_mul (int32_t a, int32_t b)
 Multiply two fixed-point numbers.
static uint8_t floorlog2 (uint32_t a)
 Get logarithm of an integer and round downwards.
template<typename T>
uint32_t grk_make_aligned_width (uint32_t width)
void * grk_malloc (size_t size)
void * grk_calloc (size_t num, size_t size)
void * grk_aligned_malloc (size_t bytes)
void * grk_aligned_malloc (size_t alignment, size_t bytes)
void * grk_realloc (void *ptr, size_t new_size)
void grk_free (void *ptr)
void grk_aligned_free (void *ptr)
void grk_print_memory_stats ()
template<typename T>
T * grk_unref (T *w)
template<typename T>
T * grk_ref (T *w)
uint32_t get_PLL_COLS_53 ()
uint32_t get_PLL_COLS_16_53 ()
uint32_t get_PLL_COLS_16_97 ()

Variables

const uint32_t default_numbers_segments = 10
const uint32_t default_header_size = 4096
const uint32_t default_number_mcc_records = 10
const uint32_t default_number_mct_records = 10
const uint32_t sotMarkerSegmentLen = 12U
const uint32_t SPCodSPCocLen = 5U
const uint32_t codSocLen = 5U
const uint32_t tlmMarkerBytesPerTilePart = 6
const uint32_t GRK_COMP_PARAM_DEFAULT_CBLOCKW = 64
const uint32_t GRK_COMP_PARAM_DEFAULT_CBLOCKH = 64
const GRK_PROG_ORDER GRK_DEFAULT_PROG_ORDER = GRK_LRCP
const uint32_t GRK_DEFAULT_NUMRESOLUTION = 6
const uint8_t CP_CSTY_PRT = 0x01
const uint8_t CP_CSTY_SOP = 0x02
const uint8_t CP_CSTY_EPH = 0x04
const uint8_t CCP_CSTY_PRECINCT = 0x01
const uint8_t CCP_QNTSTY_NOQNT = 0x00
const uint8_t CCP_QNTSTY_SIQNT = 0x01
const uint8_t CCP_QNTSTY_SEQNT = 0x02
const uint16_t SOC = 0xff4f
const uint16_t SOT = 0xff90
 SOC marker.
const uint16_t SOD = 0xff93
 SOT marker.
const uint16_t EOC = 0xffd9
 SOD marker.
const uint16_t CAP = 0xff50
 EOC marker.
const uint16_t SIZ = 0xff51
 CAP marker.
const uint16_t COD = 0xff52
 SIZ marker.
const uint16_t COC = 0xff53
 COD marker.
const uint16_t RGN = 0xff5e
 COC marker.
const uint16_t QCD = 0xff5c
 RGN marker.
const uint16_t QCC = 0xff5d
 QCD marker.
const uint16_t POC = 0xff5f
 QCC marker.
const uint16_t TLM = 0xff55
 POC marker.
const uint16_t PLM = 0xff57
 TLM marker.
const uint16_t PLT = 0xff58
 PLM marker.
const uint16_t PPM = 0xff60
 PLT marker.
const uint16_t PPT = 0xff61
 PPM marker.
const uint16_t SOP = 0xff91
 PPT marker.
const uint16_t EPH = 0xff92
 SOP marker.
const uint16_t CRG = 0xff63
 EPH marker.
const uint16_t COM = 0xff64
 CRG marker.
const uint16_t CBD = 0xff78
 COM marker.
const uint16_t MCC = 0xff75
 CBD marker.
const uint16_t MCT = 0xff74
 MCC marker.
const uint16_t MCO = 0xff77
 MCT marker.
const uint16_t UNK = 0
 MCO marker.
const uint8_t MARKER_BYTES = 2
 UNKNOWN marker.
const uint8_t MARKER_LENGTH_BYTES = 2
const uint8_t MARKER_BYTES_PLUS_MARKER_LENGTH_BYTES = MARKER_BYTES + MARKER_LENGTH_BYTES
const uint32_t MCT_ELEMENT_SIZE [] = {2, 4, 4, 8}
const uint16_t maxNumComponentsJ2K = 16384
const uint8_t maxPrecisionJ2K = 38
const uint8_t maxPassesPerSegmentJ2K = (maxPrecisionJ2K - 1) * 3 + 1
const uint16_t maxNumTilesJ2K = 65535
const uint8_t maxTilePartsPerTileJ2K = 255
const uint16_t maxTotalTilePartsJ2K = 65535
const uint32_t maxTilePartSizeJ2K = UINT_MAX
const uint16_t maxNumLayersJ2K = 65535
const uint32_t maxBitPlanesJ2K = 30
const uint16_t maxCompressLayersGRK = 100
static const mct_function mct_write_functions_from_float []
static prog_order prog_order_list []
const uint16_t plWriteBufferLen = USHRT_MAX - 4
const uint32_t tlm_marker_start_bytes = 6
static const uint16_t tabMaxSubLevelFromMainLevel []
const uint32_t JP2_DTBL = 0x6474626c
const uint32_t JP2_UINF = 0x75696e66
 Data Reference box.
const uint32_t JP2_ULST = 0x756c7374
 UUID info box (super-box).
const uint32_t JP2_URL = 0x75726c20
 UUID list box.
const uint32_t JP2_JUMB = 0x6a756d62
 Data entry URL box.
const uint8_t IPTC_UUID [16]
 JUMBF super box (ISO/IEC 19566-5).
const uint8_t XMP_UUID [16]
const uint8_t EXIF_UUID [16]
const uint8_t EXIF_UUID_PS [16]
const uint8_t GEOTIFF_UUID [16]
const uint8_t MSIG_UUID [16]
const uint32_t JP2_JP = 0x6a502020
const uint32_t JP2_SIG = 0x0d0a870a
 JPEG 2000 signature box.
const uint32_t JP2_FTYP = 0x66747970
 JPEG 2000 signature.
const uint32_t JP2_JP2 = 0x6a703220
 File type box.
const uint32_t JP2_JPH = 0x6A706820
 File type fields.
const uint32_t JP2_JPX = 0x6a707820
const uint32_t JP2_JP2H = 0x6a703268
 JPX file type.
const uint32_t JP2_IHDR = 0x69686472
 JP2 header box (super-box).
const uint32_t JP2_BPCC = 0x62706363
 Image header box.
const uint32_t JP2_COLR = 0x636f6c72
 Bits per component box.
const uint32_t JP2_PCLR = 0x70636c72
 Colour specification box.
const uint32_t JP2_CMAP = 0x636d6170
 Palette box.
const uint32_t JP2_CDEF = 0x63646566
 Component Mapping box.
const uint32_t JP2_RES = 0x72657320
 Channel Definition box.
const uint32_t JP2_CAPTURE_RES = 0x72657363
 Resolution box (super-box).
const uint32_t JP2_DISPLAY_RES = 0x72657364
 Capture resolution box.
const uint32_t JP2_JP2C = 0x6a703263
 Display resolution box.
const uint32_t JP2_JP2I = 0x6a703269
 Contiguous code stream box.
const uint32_t JP2_XML = 0x786d6c20
 Intellectual property box.
const uint32_t JP2_UUID = 0x75756964
 XML box.
const uint32_t JP2_ASOC = 0x61736f63
 UUID box.
const uint32_t JP2_LBL = 0x6c626c20
 Associated data box.
const uint32_t JP2_RREQ = 0x72726571
 Label box.
minpf_plugin_managermanagerInstance
const uint8_t gain_b [4] = {0, 1, 1, 2}
static const char * JP2_RFC3745_MAGIC = "\x00\x00\x00\x0c\x6a\x50\x20\x20\x0d\x0a\x87\x0a"
static const char * CODESTREAM_MAGIC = "\xff\x4f\xff\x51"
static const char * JP2_MAGIC = "\x6a\x70"
static const char * MJ2_MAGIC = "\x6d\x6a"
constexpr size_t GRK_INCLUDE_TRACKER_CHUNK_SIZE = 1024
 Chunk size for chunked resolution include buffer.
const double slopeCutoff = pow(2, 64)
const double scale = 256 / log(2)
const double invScale = log(2) / 256
const double shift = 1 << 16
const uint32_t singleTileRowsPerStrip = 32
constexpr uint32_t GRK_CIE_DAY = ((((uint32_t)'C') << 24) + (((uint32_t)'T') << 16))
constexpr uint32_t GRK_CIE_D50 = ((uint32_t)0x00443530)
constexpr uint32_t GRK_CIE_D65 = ((uint32_t)0x00443635)
constexpr uint32_t GRK_CIE_D75 = ((uint32_t)0x00443735)
constexpr uint32_t GRK_CIE_SA = ((uint32_t)0x00005341)
constexpr uint32_t GRK_CIE_SC = ((uint32_t)0x00005343)
constexpr uint32_t GRK_CIE_F2 = ((uint32_t)0x00004632)
constexpr uint32_t GRK_CIE_F7 = ((uint32_t)0x00004637)
constexpr uint32_t GRK_CIE_F11 = ((uint32_t)0x00463131)
ILoggergrklog = Logger::logger_
const size_t grk_buffer_alignment = 64

Detailed Description

ResWindow.

Manage all buffers for a single DWT resolution. This class stores a buffer for the resolution (in REL coordinates), and also buffers for the 4 sub-bands generated by the DWT transform (in Canvas coordinates).

Note: if highest resolution window is set, then only this window allocates memory, and all other ResWindow buffers attach themselves to the highest resolution buffer

Typedef Documentation

◆ BOX_FUNC

typedef std::function<bool(uint8_t* headerData, uint32_t headerSize)> grk::BOX_FUNC

◆ Buffer2dAligned32

◆ Buffer8

◆ BufferAligned8

◆ CODERMAP

typedef std::unordered_map<CoderKey, std::vector<std::shared_ptr<t1::ICoder> >, CoderKeyHash> grk::CODERMAP

◆ ComponentBlocks

typedef std::vector<ResBlocks> grk::ComponentBlocks

◆ CURL_FETCHER_WRITE_CALLBACK

typedef size_t(* grk::CURL_FETCHER_WRITE_CALLBACK) (void *contents, size_t size, size_t nmemb, void *userp)

◆ grk_handle

typedef int32_t grk::grk_handle

◆ Line32

using grk::Line32 = Line<uint32_t>

◆ MARKER_CALLBACK

typedef std::function<bool(uint8_t* headerData, uint16_t headerSize)> grk::MARKER_CALLBACK

◆ mct_function

typedef void(* grk::mct_function) (const void *p_src_data, void *p_dest_data, uint64_t nb_elem)

◆ minpf_create_func

typedef void *(* grk::minpf_create_func) (minpf_object_params *)

◆ minpf_destroy_func

typedef int32_t(* grk::minpf_destroy_func) (void *)

◆ minpf_exit_func

typedef int32_t(* grk::minpf_exit_func) ()

◆ minpf_invoke_service_func

typedef int32_t(* grk::minpf_invoke_service_func) (const char *serviceName, void *serviceParams)

◆ minpf_object_params

typedef struct grk::minpf_object_params grk::minpf_object_params

◆ minpf_platform_services

typedef struct grk::minpf_platform_services grk::minpf_platform_services

◆ minpf_plugin_api_version

typedef struct grk::minpf_plugin_api_version grk::minpf_plugin_api_version

◆ minpf_plugin_manager

typedef struct grk::minpf_plugin_manager grk::minpf_plugin_manager

◆ minpf_post_load_func

typedef minpf_exit_func(* grk::minpf_post_load_func) (const minpf_platform_services *)

◆ minpf_register_func

typedef int32_t(* grk::minpf_register_func) (const char *nodeType, const minpf_register_params *params)

◆ minpf_register_params

typedef struct grk::minpf_register_params grk::minpf_register_params

◆ PLUGIN_BATCH_DECODE

typedef int32_t(* grk::PLUGIN_BATCH_DECODE) (void)

◆ PLUGIN_BATCH_ENCODE

typedef int32_t(* grk::PLUGIN_BATCH_ENCODE) (gpup_compress_batch_info info)

◆ PLUGIN_DEBUG_MQC_NEXT_CXD

typedef void(* grk::PLUGIN_DEBUG_MQC_NEXT_CXD) (grk_plugin_debug_mqc *mqc, uint32_t d)

◆ PLUGIN_DEBUG_MQC_NEXT_PLANE

typedef void(* grk::PLUGIN_DEBUG_MQC_NEXT_PLANE) (grk_plugin_debug_mqc *mqc)

◆ PLUGIN_DECODE

typedef int32_t(* grk::PLUGIN_DECODE) (gpup_decompress_params *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback)

◆ PLUGIN_DECODE_USER_CALLBACK

typedef int32_t(* grk::PLUGIN_DECODE_USER_CALLBACK) (PluginDecodeCallbackInfo *info)

◆ PLUGIN_ENCODE

typedef int32_t(* grk::PLUGIN_ENCODE) (gpup_compress_params *encoding_parameters, GPUP_COMPRESS_USER_CALLBACK callback)

◆ PLUGIN_GET_DEBUG_STATE

typedef uint32_t(* grk::PLUGIN_GET_DEBUG_STATE) (void)

◆ PLUGIN_INIT

typedef bool(* grk::PLUGIN_INIT) (gpup_init_info initInfo)

◆ PLUGIN_INIT_BATCH_DECODE

typedef int32_t(* grk::PLUGIN_INIT_BATCH_DECODE) (const char *input_dir, const char *output_dir, gpup_decompress_params *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback)

◆ PLUGIN_STOP_BATCH_DECODE

typedef void(* grk::PLUGIN_STOP_BATCH_DECODE) (void)

◆ PLUGIN_STOP_BATCH_ENCODE

typedef void(* grk::PLUGIN_STOP_BATCH_ENCODE) (void)

◆ PLUGIN_WAIT_FOR_BATCH_COMPLETE

typedef void(* grk::PLUGIN_WAIT_FOR_BATCH_COMPLETE) (void)

◆ Point16

using grk::Point16 = Point<uint16_t>

◆ Point32

using grk::Point32 = Point<uint32_t>

◆ Point8

using grk::Point8 = Point<uint8_t>

◆ PROCEDURE_FUNC

typedef std::function<bool(void)> grk::PROCEDURE_FUNC

◆ QueueMap

using grk::QueueMap = std::map<ResolutionLayerKey, std::queue<t1::mqcoder>>

◆ RAW_PL_MARKER

typedef std::vector<std::unique_ptr<Buffer8> > grk::RAW_PL_MARKER

collection of raw marker data stored in Buffer8

Packet lengths are stored using comma code

◆ RAW_PL_MARKER_MAP

typedef std::map<uint32_t, std::unique_ptr<RAW_PL_MARKER> > grk::RAW_PL_MARKER_MAP

collection of RAW_PL_MARKER pointers

RAW_PL_MARKERs are index by map key. According to the standard this key should be <= 255 but in practice it is allowed to be larger

Note: order is important for this map

◆ readZeroCopyCallback

typedef size_t(* grk::readZeroCopyCallback) (uint8_t **buffer, size_t numBytes, void *user_data)

◆ Rect16

typedef Rect< uint16_t > grk::Rect16 = Rect<uint16_t>

◆ Rect32

typedef Rect< uint32_t > grk::Rect32 = Rect<uint32_t>

◆ RectD

using grk::RectD = Rect<double>

◆ RectF

using grk::RectF = Rect<float>

◆ ResolutionLayerKey

using grk::ResolutionLayerKey = std::pair<uint8_t, uint16_t>

◆ StripOutputCallback

Initial value:
std::function<void(uint32_t row0, uint32_t numRows, const void* rowData, uint32_t rowStride)>

◆ TagTreeU16

using grk::TagTreeU16 = TagTree<uint16_t>

◆ TagTreeU8

using grk::TagTreeU8 = TagTree<uint8_t>

◆ TileBlocks

typedef std::vector<ComponentBlocks> grk::TileBlocks

◆ TileFetchCallback

using grk::TileFetchCallback = std::function<void(size_t requestIndex, TileFetchContext* context)>

◆ TPSEQ_VEC

using grk::TPSEQ_VEC = std::vector<std::unique_ptr<TPSeq>>

◆ vec4f

typedef vec<float, 4> grk::vec4f

◆ WRITE_FUNC

typedef std::function<uint8_t*(uint32_t* len)> grk::WRITE_FUNC

Enumeration Type Documentation

◆ eSplitOrientation

Enumerator
SPLIT_L 
SPLIT_H 
SPLIT_NUM_ORIENTATIONS 

◆ GrkAccessPattern

enum class grk::GrkAccessPattern
strong
Enumerator
ACCESS_SEQUENTIAL 
ACCESS_RANDOM 
ACCESS_NORMAL 
ACCESS_DONTNEED 

◆ JP2_STATE

Enumerator
JP2_STATE_NONE 
JP2_STATE_SIGNATURE 
JP2_STATE_FILE_TYPE 
JP2_STATE_HEADER 
JP2_STATE_CODESTREAM 
JP2_STATE_END_CODESTREAM 

◆ MCT_ARRAY_TYPE

Type of MCT array.

Enumerator
MCT_TYPE_DEPENDENCY 
MCT_TYPE_DECORRELATION 
MCT_TYPE_OFFSET 

◆ MCT_ELEMENT_TYPE

Type of elements storing in the MCT data.

Enumerator
MCT_TYPE_INT16 
MCT_TYPE_INT32 

MCT data is stored as signed shorts.

MCT_TYPE_FLOAT 

MCT data is stored as signed integers.

MCT_TYPE_DOUBLE 

MCT data is stored as floats.

◆ T2_MODE

Enumerator
THRESH_CALC 
FINAL_PASS 

Function called in rate allocation process.

Function Documentation

◆ assemble_super_box()

uint8_t * grk::assemble_super_box ( uint32_t box_type,
uint8_t ** sub_boxes,
const uint32_t * sub_sizes,
uint32_t count,
uint32_t * p_nb_bytes_written )
static

◆ ceildiv()

◆ ceildivpow2()

◆ clip() [1/2]

template<typename T>
void grk::clip ( grk_image_comp * component,
uint8_t precision )

◆ clip() [2/2]

template<typename T>
T grk::clip ( int64_t val)

◆ close_fd()

int32_t grk::close_fd ( grk_handle fd)
static

Referenced by mem_map_free().

◆ compress_synch_with_plugin()

◆ create_mapped_file_write_stream()

IStream * grk::create_mapped_file_write_stream ( const char * fname)

◆ createMappedFileReadStream()

◆ detectFormat()

bool grk::detectFormat ( const uint8_t * buffer,
GRK_CODEC_FORMAT * fmt )

Detect JPEG 2000 format from buffer Format is either GRK_FMT_J2K or GRK_FMT_JP2.

Parameters
bufferbuffer
fmtpointer to detected format
Returns
true if format was detected, otherwise false

References CODESTREAM_MAGIC, GRK_CODEC_J2K, GRK_CODEC_JP2, GRK_CODEC_MJ2, GRK_CODEC_UNK, grklog, JP2_MAGIC, JP2_RFC3745_MAGIC, and MJ2_MAGIC.

Referenced by createMappedFileReadStream(), grk_detect_format(), memStreamCreate(), and grk::StreamGenerator::validateStream().

◆ executor()

tf::Executor & grk::executor ( )
inline

Returns a reference to the core library's tf::Executor.

The executor is created by grk_initialize() and destroyed by grk_deinitialize(). Calling this outside that window is undefined.

References grk_thread_pool().

Referenced by grk::TileProcessorCompress::pcrdBisectFeasible(), and grk::TileProcessorCompress::pcrdBisectSimple().

◆ fix_mul()

int32_t grk::fix_mul ( int32_t a,
int32_t b )
inlinestatic

Multiply two fixed-point numbers.

Parameters
aN-bit precision fixed point number
b13-bit precision fixed point number
Returns
a * b in N-bit precision fixed point

◆ floordivpow2()

uint32_t grk::floordivpow2 ( uint32_t a,
uint8_t b )
inlinestatic

◆ floorlog2()

uint8_t grk::floorlog2 ( uint32_t a)
inlinestatic

◆ get_file_open_mode()

int32_t grk::get_file_open_mode ( const char * mode)
static

Referenced by open_fd().

◆ get_filename_ext()

const char * grk::get_filename_ext ( const char * filename)
static

Referenced by minpf_load_from_dir().

◆ get_PLL_COLS_16_53()

uint32_t grk::get_PLL_COLS_16_53 ( )

◆ get_PLL_COLS_16_97()

uint32_t grk::get_PLL_COLS_16_97 ( )

◆ get_PLL_COLS_53()

uint32_t grk::get_PLL_COLS_53 ( )

◆ getFilterPad()

template<class T>
T grk::getFilterPad ( bool lossless)
constexpr

◆ gpup_image_free_shell()

void grk::gpup_image_free_shell ( gpup_image * img)
inline

◆ gpup_tile_free_wrapper()

void grk::gpup_tile_free_wrapper ( gpup_tile * t)
inline

◆ gpup_tile_to_grk()

◆ gpup_tile_update_grk()

◆ gpup_to_grk_header_info()

◆ gpup_to_grk_image_shallow()

void grk::gpup_to_grk_image_shallow ( const gpup_image * src,
grk_image * dst )
inline

◆ gpup_to_grk_stream_params()

◆ grk_aligned_free()

◆ grk_aligned_malloc() [1/2]

void * grk::grk_aligned_malloc ( size_t alignment,
size_t bytes )
inline

◆ grk_aligned_malloc() [2/2]

◆ grk_calloc()

◆ grk_copy_strided()

template<typename T>
void grk::grk_copy_strided ( uint32_t w,
uint32_t stride,
uint32_t h,
const T * src,
int32_t * dest )

Assume that source stride == source width == destination width.

Referenced by grk::TileProcessorCompress::ingestUncompressedData().

◆ grk_free()

◆ grk_make_aligned_width()

template<typename T>
uint32_t grk::grk_make_aligned_width ( uint32_t width)

◆ grk_malloc()

◆ grk_map()

void * grk::grk_map ( grk_handle fd,
size_t len,
bool do_read )
static

◆ grk_plugin_tile_free_wrapper()

void grk::grk_plugin_tile_free_wrapper ( grk_plugin_tile * t)
inline

◆ grk_print_memory_stats()

void grk::grk_print_memory_stats ( )
inline

◆ grk_read() [1/6]

template<typename TYPE>
void grk::grk_read ( const uint8_t * dest,
TYPE * value )

References grk_read().

◆ grk_read() [2/6]

template<typename TYPE>
void grk::grk_read ( const uint8_t * src,
TYPE * value,
uint32_t numBytes )

Referenced by grk::FileFormatMJ2Decompress::decompressSampleInternal(), grk_read(), grk_read(), grk_read(), grk_read(), grk_read(), grk::PPMMarker::merge(), grk::PPMMarker::read(), grk::SIZMarker::read(), grk::TLMMarker::read(), grk::FileFormatJP2Family::read_asoc(), grk::FileFormatJP2Family::read_box_header(), grk::FileFormatJP2Family::read_box_header(), grk::FileFormatJP2Family::read_bpc(), grk::FileFormatJP2Family::read_channel_definition(), grk::FileFormatJP2Family::read_colr(), grk::FileFormatJP2Family::read_component_mapping(), grk::FileFormatMJ2Decompress::read_dref(), grk::FileFormatMJ2Decompress::read_fiel(), grk::FileFormatJP2Family::read_ftyp(), grk::FileFormatMJ2Decompress::read_hdlr(), grk::FileFormatJP2Family::read_ihdr(), grk::FileFormatMJ2Decompress::read_jp2p(), grk::FileFormatMJ2Decompress::read_jsub(), grk::FileFormatMJ2Decompress::read_mdhd(), grk::FileFormatMJ2Decompress::read_mvhd(), grk::FileFormatMJ2Decompress::read_orfo(), grk::FileFormatJP2Family::read_palette_clr(), grk::FileFormatJP2Family::read_res_box(), grk::FileFormatJP2Family::read_signature(), grk::FileFormatMJ2Decompress::read_smj2(), grk::FileFormatMJ2Decompress::read_stco(), grk::FileFormatMJ2Decompress::read_stsc(), grk::FileFormatMJ2Decompress::read_stsd(), grk::FileFormatMJ2Decompress::read_stsz(), grk::FileFormatMJ2Decompress::read_stts(), grk::FileFormatMJ2Decompress::read_tkhd(), grk::FileFormatMJ2Decompress::read_url(), grk::FileFormatMJ2Decompress::read_urn(), grk::FileFormatMJ2Decompress::read_version_and_flag(), grk::FileFormatMJ2Decompress::read_vmhd(), grk::CodeStreamDecompress::readCAP(), grk::CodeStreamDecompress::readCBD(), grk::TileCodingParams::readCoc(), grk::TileCodingParams::readCod(), grk::CodingParams::readCom(), grk::CodeStreamDecompress::readCRG(), grk::FileFormatMJ2Decompress::readHeader(), grk::TileCodingParams::readMcc(), grk::TileCodingParams::readMco(), grk::TileCodingParams::readMct(), grk::TileCodingParams::readPoc(), grk::TileCodingParams::readPpt(), grk::TileCodingParams::readQcc(), grk::TileCodingParams::readRgn(), grk::MarkerParser::readShort(), grk::CodeStreamDecompress::readSOC(), grk::CodeStreamDecompress::readSOT(), grk::TileProcessor::readSOT(), grk::TileCodingParams::readSPCodSPCoc(), and grk::TileCodingParams::readSQcdSQcc().

◆ grk_read() [3/6]

template<typename TYPE>
void grk::grk_read ( uint8_t ** dest,
TYPE * value )

References grk_read().

◆ grk_read() [4/6]

template<typename TYPE>
void grk::grk_read ( uint8_t ** dest,
uint32_t * bytesRemaining,
TYPE * value )

References grk_read().

◆ grk_read() [5/6]

template<typename TYPE>
void grk::grk_read ( uint8_t ** src,
TYPE * value,
uint32_t numBytes )

References grk_read().

◆ grk_read() [6/6]

template<typename TYPE>
void grk::grk_read ( uint8_t ** src,
uint32_t * bytesRemaining,
TYPE * value,
uint32_t numBytes )

References grk_read().

◆ grk_realloc()

◆ grk_ref()

◆ grk_tile_sync_metadata_to_gpup()

void grk::grk_tile_sync_metadata_to_gpup ( grk_plugin_tile * wrapper,
gpup_tile * original )
inline

◆ grk_tile_to_gpup()

gpup_tile * grk::grk_tile_to_gpup ( grk_plugin_tile * src)
inline

References GRK_MAX_PASSES.

◆ grk_to_gpup_compress_params()

void grk::grk_to_gpup_compress_params ( const grk_cparameters * src,
gpup_compress_params * dst )
inline

References _gpup_compress_params::allocationByQuality, _gpup_compress_params::allocationByRateDistoration, _gpup_compress_params::cblk_sty, _gpup_compress_params::cblockh_init, _gpup_compress_params::cblockw_init, _gpup_compress_params::cod_format, _gpup_compress_params::csty, _gpup_compress_params::decod_format, _gpup_compress_params::deviceId, _gpup_compress_params::duration, _gpup_compress_params::enableTilePartGeneration, _gpup_compress_params::framerate, GPUP_MAX_LAYERS, GPUP_MAXRLVLS, GPUP_PATH_LEN, _gpup_compress_params::image_offset_x0, _gpup_compress_params::image_offset_y0, _gpup_compress_params::infile, _gpup_compress_params::irreversible, _gpup_compress_params::kernelBuildOptions, _gpup_compress_params::layer_distortion, _gpup_compress_params::layer_rate, _gpup_compress_params::max_comp_size, _gpup_compress_params::max_cs_size, _gpup_compress_params::mct, _gpup_compress_params::newTilePartProgressionDivider, _gpup_compress_params::numgbits, _gpup_compress_params::numlayers, _gpup_compress_params::numpocs, _gpup_compress_params::numresolution, _gpup_compress_params::numThreads, _gpup_compress_params::outfile, _gpup_compress_params::prch_init, _gpup_compress_params::prcw_init, _gpup_compress_params::prog_order, _gpup_compress_params::rateControlAlgorithm, _gpup_compress_params::repeats, _gpup_compress_params::res_spec, _gpup_compress_params::roi_compno, _gpup_compress_params::roi_shift, _gpup_compress_params::rsiz, _gpup_compress_params::sharedMemoryInterface, _gpup_compress_params::subsampling_dx, _gpup_compress_params::subsampling_dy, _gpup_compress_params::t_height, _gpup_compress_params::t_width, _gpup_compress_params::tile_size_on, _gpup_compress_params::tx0, _gpup_compress_params::ty0, and _gpup_compress_params::verbose.

Referenced by grk_plugin_batch_compress(), and grk_plugin_compress().

◆ grk_to_gpup_decompress_params()

◆ grk_to_gpup_header_info()

◆ grk_to_gpup_image()

gpup_image * grk::grk_to_gpup_image ( const grk_image * src)
inline

◆ grk_to_gpup_stream_params()

◆ grk_unref()

◆ grk_write() [1/4]

template<typename TYPE>
void grk::grk_write ( uint8_t ** dest,
TYPE value )

References grk_write().

◆ grk_write() [2/4]

◆ grk_write() [3/4]

template<typename TYPE>
void grk::grk_write ( uint8_t * dest,
TYPE value )

References grk_write().

◆ grk_write() [4/4]

template<typename TYPE>
void grk::grk_write ( uint8_t * dest,
TYPE value,
uint32_t numBytes )

References grk_write().

◆ hwy_clip_i32()

void grk::hwy_clip_i32 ( int32_t * data,
uint32_t w,
uint32_t h,
uint32_t stride,
int32_t minVal,
int32_t maxVal )

Referenced by clip().

◆ hwy_copy_tile_to_swath()

void grk::hwy_copy_tile_to_swath ( const grk_image * tile_img,
const grk_swath_buffer * buf )

Copy a decoded tile image (int32_t planar) into a swath output buffer described by grk_swath_buffer.

Handles any output type (uint8, int16, uint16, int32, uint32) and any GDAL-style pixel/line/band spacing (BIP, BSQ, etc.). Conversion follows GDALCopyWords semantics: values are clamped to the output range. Assumes component subsampling dx == dy == 1.

Referenced by grk_copy_tile_to_swath(), and grk::CodeStreamDecompress::scheduleSwathCopy().

◆ hwy_deinterleave_i32()

GRK_SIMD_API void grk::hwy_deinterleave_i32 ( const int32_t * src,
int32_t *const * dest,
uint32_t w,
uint16_t numComps )

References GRK_SIMD_API.

◆ hwy_esycc_to_rgb_i32()

void grk::hwy_esycc_to_rgb_i32 ( int32_t * yd,
int32_t * bd,
int32_t * rd,
uint32_t w,
uint32_t h,
uint32_t stride,
int32_t max_value,
int32_t flip_value,
bool sign1,
bool sign2 )

◆ hwy_pack_planar_to_16()

GRK_SIMD_API void grk::hwy_pack_planar_to_16 ( const int32_t *const * src,
uint32_t numPlanes,
uint16_t * dest,
uint32_t w,
int32_t adjust )

References GRK_SIMD_API.

◆ hwy_pack_planar_to_16be()

GRK_SIMD_API void grk::hwy_pack_planar_to_16be ( const int32_t *const * src,
uint32_t numPlanes,
uint8_t * dest,
uint32_t w,
int32_t adjust )

References GRK_SIMD_API.

◆ hwy_pack_planar_to_8()

GRK_SIMD_API void grk::hwy_pack_planar_to_8 ( const int32_t *const * src,
uint32_t numPlanes,
uint8_t * dest,
uint32_t w,
int32_t adjust )

References GRK_SIMD_API.

◆ hwy_packed_to_planar_16()

void grk::hwy_packed_to_planar_16 ( const uint16_t * in,
int32_t * r,
int32_t * g,
int32_t * b,
uint32_t w,
uint32_t h,
uint32_t dst_stride )

Referenced by grk::GrkImage::applyICC().

◆ hwy_packed_to_planar_8()

void grk::hwy_packed_to_planar_8 ( const uint8_t * in,
int32_t * r,
int32_t * g,
int32_t * b,
uint32_t w,
uint32_t h,
uint32_t dst_stride )

Referenced by grk::GrkImage::applyICC().

◆ hwy_planar_to_packed_16()

void grk::hwy_planar_to_packed_16 ( const int32_t * r,
const int32_t * g,
const int32_t * b,
uint16_t * out,
uint32_t w,
uint32_t h,
uint32_t src_stride )

Referenced by grk::GrkImage::applyICC().

◆ hwy_planar_to_packed_8()

void grk::hwy_planar_to_packed_8 ( const int32_t * r,
const int32_t * g,
const int32_t * b,
uint8_t * out,
uint32_t w,
uint32_t h,
uint32_t src_stride )

Referenced by grk::GrkImage::applyICC().

◆ hwy_scale_component_down()

GRK_SIMD_API void grk::hwy_scale_component_down ( int32_t * data,
uint32_t w,
uint32_t h,
uint32_t stride,
int32_t scale )

References GRK_SIMD_API, and scale.

◆ hwy_scale_component_up()

GRK_SIMD_API void grk::hwy_scale_component_up ( int32_t * data,
uint32_t w,
uint32_t h,
uint32_t stride,
int32_t scale )

References GRK_SIMD_API, and scale.

◆ hwy_scale_div_i32()

void grk::hwy_scale_div_i32 ( int32_t * data,
uint32_t w,
uint32_t h,
uint32_t stride,
int32_t scale )

References scale.

Referenced by grk::GrkImage::scaleComponent().

◆ hwy_scale_mul_i32()

void grk::hwy_scale_mul_i32 ( int32_t * data,
uint32_t w,
uint32_t h,
uint32_t stride,
int32_t scale )

References scale.

Referenced by grk::GrkImage::scaleComponent().

◆ hwy_sycc444_to_rgb_i32()

void grk::hwy_sycc444_to_rgb_i32 ( const int32_t * y,
const int32_t * cb,
const int32_t * cr,
int32_t * r,
int32_t * g,
int32_t * b,
uint32_t w,
uint32_t h,
uint32_t src_stride,
uint32_t dst_stride,
int32_t offset,
int32_t upb )

◆ hwy_unpack_16be_to_i32()

GRK_SIMD_API void grk::hwy_unpack_16be_to_i32 ( const uint8_t * src,
int32_t * dest,
size_t w,
bool invert )

References GRK_SIMD_API.

◆ hwy_unpack_16le_to_i32()

GRK_SIMD_API void grk::hwy_unpack_16le_to_i32 ( const uint16_t * src,
int32_t * dest,
size_t w,
bool invert )

References GRK_SIMD_API.

◆ hwy_unpack_8s_to_i32()

GRK_SIMD_API void grk::hwy_unpack_8s_to_i32 ( const uint8_t * src,
int32_t * dest,
size_t w,
bool invert )

References GRK_SIMD_API.

◆ hwy_unpack_8u_to_i32()

GRK_SIMD_API void grk::hwy_unpack_8u_to_i32 ( const uint8_t * src,
int32_t * dest,
size_t w,
bool invert )

References GRK_SIMD_API.

◆ intersect()

◆ max_resolution()

◆ mem_map_free()

void grk::mem_map_free ( void * user_data)
static

References close_fd(), grklog, and unmap().

Referenced by createMappedFileReadStream().

◆ memStreamCreate()

IStream * grk::memStreamCreate ( uint8_t * buf,
size_t len,
bool ownsBuffer,
grk_stream_free_user_data_fn freeCallback,
GRK_CODEC_FORMAT format,
bool readStream )

Create stream from buffer.

Parameters
bufbuffer
lenlength of buffer
ownsBufferif true, library will delete[] buffer. Otherwise, it is the caller's responsibility to delete the buffer
readStreamwhether the stream is a read stream (true) or not (false)

References detectFormat(), GRK_CODEC_UNK, GRK_JPEG_2000_NUM_IDENTIFIER_BYTES, grklog, memStreamFree(), and memStreamSetup().

Referenced by grk::StreamGenerator::createBufferStream(), grk::FileFormatMJ2Decompress::decompressSampleInternal(), and grk::CompressedChunkCache::reloadFromDisk().

◆ memStreamFree()

void grk::memStreamFree ( void * user_data)
static

Referenced by memStreamCreate().

◆ memStreamRead()

size_t grk::memStreamRead ( uint8_t * dest,
size_t numBytes,
void * src )
static

Referenced by memStreamSetup().

◆ memStreamSeek()

bool grk::memStreamSeek ( uint64_t numBytes,
void * src )
static

Referenced by memStreamSetup().

◆ memStreamSetup()

◆ memStreamUserDataFree()

void grk::memStreamUserDataFree ( void * user_data)
static

◆ memStreamWrite()

size_t grk::memStreamWrite ( const uint8_t * src,
size_t numBytes,
void * dest )
static

Referenced by memStreamSetup().

◆ memStreamZeroCopyRead()

size_t grk::memStreamZeroCopyRead ( uint8_t ** buffer,
size_t numBytes,
void * src )
static

Referenced by memStreamSetup().

◆ minpf_cleanup_plugin_manager()

void grk::minpf_cleanup_plugin_manager ( void )

◆ minpf_get_dynamic_library_extension()

const char * grk::minpf_get_dynamic_library_extension ( void )

◆ minpf_get_full_path()

bool grk::minpf_get_full_path ( const char * path,
const void * addr,
dynamic_handle_t handle,
char * fullPath,
size_t fullPathLen )

Referenced by minpf_load().

◆ minpf_get_plugin_manager()

◆ minpf_get_symbol()

◆ minpf_init_plugin()

PLUGIN_API minpf_exit_func grk::minpf_init_plugin ( const char * pluginPath,
const minpf_platform_services * params )

References PLUGIN_API.

◆ minpf_initialize_plugin_manager()

◆ minpf_is_valid_plugin()

uint32_t grk::minpf_is_valid_plugin ( const char * id,
const minpf_register_params * params )
static

Referenced by minpf_register_object().

◆ minpf_load()

◆ minpf_load_dynamic_library()

minpf_dynamic_library * grk::minpf_load_dynamic_library ( const char * path,
char * error )

◆ minpf_load_from_dir()

◆ minpf_load_from_path()

◆ minpf_post_load_plugin()

◆ minpf_register_object()

◆ minpf_unload_dynamic_library()

bool grk::minpf_unload_dynamic_library ( minpf_dynamic_library * library)

◆ MycmsLogErrorHandlerFunction()

void grk::MycmsLogErrorHandlerFunction ( cmsContext ContextID,
cmsUInt32Number ErrorCode,
const char * Text )

References grklog.

Referenced by grk::FileFormatJP2Compress::init().

◆ num_workers()

size_t grk::num_workers ( )
inline

Returns the total number of worker threads in the core pool.

References grk_num_workers().

◆ open_fd()

grk_handle grk::open_fd ( const char * fname,
const char * mode )
static

References get_file_open_mode(), and grklog.

Referenced by createMappedFileReadStream().

◆ satAdd() [1/2]

template<typename T>
T grk::satAdd ( int64_t lhs,
int64_t rhs )

◆ satAdd() [2/2]

template<typename T>
T grk::satAdd ( T lhs,
T rhs )

References clip().

◆ satSub() [1/2]

template<typename T>
T grk::satSub ( int64_t lhs,
int64_t rhs )

References clip().

◆ satSub() [2/2]

template<typename T>
T grk::satSub ( T lhs,
T rhs )

References clip().

Referenced by grk::Rect< uint32_t >::grow_IN_PLACE().

◆ size_proc()

uint64_t grk::size_proc ( grk_handle fd)
static

◆ tile_equals()

bool grk::tile_equals ( grk_plugin_tile * plugin_tile,
const Tile * tilePtr )

◆ toBigEndian()

uint32_t grk::toBigEndian ( uint32_t value)
static

◆ unmap()

int32_t grk::unmap ( void * ptr,
size_t len )
static

Referenced by mem_map_free().

◆ worker_id()

uint32_t grk::worker_id ( )
inline

Returns the TaskFlow worker id of the calling thread.

Returns
worker id if called from inside a TaskFlow task, 0 otherwise

References grk_worker_id().

◆ write()

template<typename S, typename D>
void grk::write ( const void * p_src_data,
void * p_dest_data,
uint64_t nb_elem )

References D, grk_write(), and S.

Referenced by grk::TLMFile< T >::writeToFileWithLock().

Variable Documentation

◆ CAP

◆ CBD

◆ CCP_CSTY_PRECINCT

◆ CCP_QNTSTY_NOQNT

◆ CCP_QNTSTY_SEQNT

const uint8_t grk::CCP_QNTSTY_SEQNT = 0x02

◆ CCP_QNTSTY_SIQNT

◆ COC

◆ COD

◆ CODESTREAM_MAGIC

const char* grk::CODESTREAM_MAGIC = "\xff\x4f\xff\x51"
static

Referenced by detectFormat().

◆ codSocLen

const uint32_t grk::codSocLen = 5U

◆ COM

◆ CP_CSTY_EPH

◆ CP_CSTY_PRT

◆ CP_CSTY_SOP

◆ CRG

const uint16_t grk::CRG = 0xff63

◆ default_header_size

const uint32_t grk::default_header_size = 4096

◆ default_number_mcc_records

const uint32_t grk::default_number_mcc_records = 10

◆ default_number_mct_records

const uint32_t grk::default_number_mct_records = 10

◆ default_numbers_segments

const uint32_t grk::default_numbers_segments = 10

◆ EOC

◆ EPH

const uint16_t grk::EPH = 0xff92

◆ EXIF_UUID

const uint8_t grk::EXIF_UUID[16]
Initial value:
= {0x4A, 0x70, 0x67, 0x54, 0x69, 0x66, 0x66, 0x45,
0x78, 0x69, 0x66, 0x2D, 0x3E, 0x4A, 0x50, 0x32}

Referenced by grk::FileFormatJP2Compress::init(), and grk::FileFormatJP2Decompress::readHeader().

◆ EXIF_UUID_PS

const uint8_t grk::EXIF_UUID_PS[16]
Initial value:
= {0x05, 0x37, 0xCD, 0xAB, 0x9D, 0x0C, 0x44, 0x31,
0xA7, 0x2A, 0xFA, 0x56, 0x1F, 0x2A, 0x11, 0x3E}

Referenced by grk::FileFormatJP2Decompress::readHeader().

◆ gain_b

const uint8_t grk::gain_b[4] = {0, 1, 1, 2}

◆ GEOTIFF_UUID

const uint8_t grk::GEOTIFF_UUID[16]
Initial value:
= {0xB1, 0x4B, 0xF8, 0xBD, 0x08, 0x3D, 0x4B, 0x43,
0xA5, 0xAE, 0x8C, 0xD7, 0xD5, 0xA6, 0xCE, 0x03}

Referenced by grk::FileFormatJP2Compress::init(), and grk::FileFormatJP2Decompress::readHeader().

◆ grk_buffer_alignment

const size_t grk::grk_buffer_alignment = 64

◆ GRK_CIE_D50

uint32_t grk::GRK_CIE_D50 = ((uint32_t)0x00443530)
constexpr

◆ GRK_CIE_D65

uint32_t grk::GRK_CIE_D65 = ((uint32_t)0x00443635)
constexpr

◆ GRK_CIE_D75

uint32_t grk::GRK_CIE_D75 = ((uint32_t)0x00443735)
constexpr

◆ GRK_CIE_DAY

uint32_t grk::GRK_CIE_DAY = ((((uint32_t)'C') << 24) + (((uint32_t)'T') << 16))
constexpr

◆ GRK_CIE_F11

uint32_t grk::GRK_CIE_F11 = ((uint32_t)0x00463131)
constexpr

◆ GRK_CIE_F2

uint32_t grk::GRK_CIE_F2 = ((uint32_t)0x00004632)
constexpr

◆ GRK_CIE_F7

uint32_t grk::GRK_CIE_F7 = ((uint32_t)0x00004637)
constexpr

◆ GRK_CIE_SA

uint32_t grk::GRK_CIE_SA = ((uint32_t)0x00005341)
constexpr

◆ GRK_CIE_SC

uint32_t grk::GRK_CIE_SC = ((uint32_t)0x00005343)
constexpr

◆ GRK_COMP_PARAM_DEFAULT_CBLOCKH

const uint32_t grk::GRK_COMP_PARAM_DEFAULT_CBLOCKH = 64

◆ GRK_COMP_PARAM_DEFAULT_CBLOCKW

const uint32_t grk::GRK_COMP_PARAM_DEFAULT_CBLOCKW = 64

◆ GRK_DEFAULT_NUMRESOLUTION

const uint32_t grk::GRK_DEFAULT_NUMRESOLUTION = 6

◆ GRK_DEFAULT_PROG_ORDER

const GRK_PROG_ORDER grk::GRK_DEFAULT_PROG_ORDER = GRK_LRCP

◆ GRK_INCLUDE_TRACKER_CHUNK_SIZE

size_t grk::GRK_INCLUDE_TRACKER_CHUNK_SIZE = 1024
constexpr

Chunk size for chunked resolution include buffer.

Referenced by grk::LayerIncludeBuffers::update().

◆ grklog

ILogger & grk::grklog = Logger::logger_

Referenced by grk::MarkerParser::add(), grk::PLMarker::addNewMarker(), grk::TileCodingParams::advanceTilePartCounter(), grk::GrkImage::allComponentsSanityCheck(), grk::dwt_scratch< ST >::alloc(), grk::SparseCanvas< T, LBW, LBH >::alloc(), grk::t1::BlockCoder::alloc(), grk::Buffer2d< T, AllocatorAligned >::alloc2d(), grk::GrkImage::allocCompositeData(), grk::GrkImage::allocData(), grk::GrkImage::apply_channel_definition(), grk::GrkImage::apply_palette_clr(), grk::GrkImage::applyColourManagement(), grk::GrkImage::applyICC(), grk::TileProcessorCompress::buildCompressDAG(), grk::TileComponent::canCreateWindow(), grk::GrkImage::check_color(), grk::t1::BlockCoder::checkSegSym(), grk::GrkImage::cieLabToRGB(), grk::GrkImage::color_cmyk_to_rgb(), grk::GrkImage::color_esycc_to_rgb(), grk::GrkImage::color_sycc_to_rgb(), grk::TileCompletion::complete(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositePlanar(), grk::CodeStreamCompress::compress(), compress_synch_with_plugin(), grk::T2Compress::compressHeader(), grk::T2Compress::compressPacket(), grk::T2Compress::compressPackets(), grk::T2Compress::compressPacketSimulate(), grk::T2Compress::compressPacketsSimulate(), grk::CodeStreamCompress::compressValidation(), grk::GrkImage::convertPrecision(), grk::GrkImage::convertToRGB_T(), grk::GrkImage::create(), grk::StreamGenerator::create(), grk::StreamGenerator::createBufferStream(), grk::StreamGenerator::createCurlFetchStream(), grk::StreamGenerator::createFileStream(), createMappedFileReadStream(), grk::Subband::createPrecinct(), grk::GrkImage::createRGB(), grk::MarkerParser::currentProcessor(), grk::FileFormatJP2Decompress::decompress(), grk::FileFormatMJ2Decompress::decompress(), grk::t1::CodeblockDecompressImpl::decompress(), grk::t1::ojph::T1OJPH::decompress(), grk::TileProcessor::decompress_synch_plugin_with_host(), grk::t1::BlockCoder::decompressBackup(), grk::t1::BlockCoder::decompressFinish(), grk::TileProcessor::decompressPrepareWithTLM(), grk::FileFormatMJ2Decompress::decompressSampleInternal(), grk::CodeStreamDecompress::decompressSequential(), grk::CodeStreamDecompress::decompressTile(), grk::FileFormatMJ2Decompress::decompressTile(), grk::SchedulerFreebyrd::decompressTile(), grk::CodeStreamDecompress::decompressTileImpl(), detectFormat(), grk::TileProcessorCompress::doCompress(), grk::AllLayersPrecinctPacketParser::enqueue(), grk::GrkImage::execUpsample(), grk::TileCodingParams::finalizePocs(), grk::PLMarker::findMarker(), grk::ChronoTimer::finish(), grk::BufferedStream::flush(), grk::Resolution::genPrecinctPartition(), grk::PrecinctImpl::getIMsbTagTree(), grk::PrecinctImpl::getIncludeTagTree(), grk::CodeStreamCompress::getNumTileParts(), grk_compress_init(), grk_decompress_init(), grk_initialize(), grk_transcode(), grkDecompressCreate(), grk::Buffer< uint8_t, AllocatorVanilla >::increment_offset(), grk::ChunkBuffer< T >::increment_offset(), grk::CodeStreamCompress::init(), grk::FileFormatJP2Compress::init(), grk::TileProcessor::init(), grk::TileCodingParams::initDefault(), grk::Profile::isBroadcastCompliant(), grk::Profile::isCinemaCompliant(), grk::Profile::isImfCompliant(), grk::CodeStreamCompress::mct_validation(), mem_map_free(), memStreamCreate(), grk::PPMMarker::merge(), grk::TileCodingParams::mergePpt(), minpf_get_symbol(), MycmsLogErrorHandlerFunction(), grk::TileProcessor::needsMctDecompress(), grk::PacketLengthCache< T >::next(), grk::TLMMarker::next(), open_fd(), grk::IniParser::parse(), grk::FetchPathParser::parseBucketKey(), grk::FetchPathParser::parseHostPort(), grk::FetchPathParser::parseHttpsPath(), grk::t1::CodeblockDecompressImpl::parsePacketData(), grk::T2Decompress::parsePackets(), grk::TileProcessor::parseTilePart(), grk::FetchPathParser::parseVsiPath(), grk::WaveletReverse::partial_tile(), grk::PLMarker::pop(), grk::CodeStreamDecompress::postMultiTile(), grk::FileFormatJP2Decompress::postProcess(), grk::t1::part1::Coder::preCompress(), grk::TileProcessorCompress::preCompressTile(), grk::TileProcessor::prepareForDecompression(), grk::GrkImage::print(), grk::Rect32_16::print(), grk::Rect< uint32_t >::print(), grk::ResPrecinctInfo::print(), grk::t1::Segment::print(), grk::PacketIter::printDynamicState(), grk::PacketIter::printStaticState(), grk::MarkerScratch::process(), grk::MarkerParser::processMarker(), grk::TPSeq::push_back(), grk::TileCache::put(), grk::BufferedStream::read(), grk::PPMMarker::read(), grk::SIZMarker::read(), grk::SparseBuffer::read(), grk::TLMMarker::read(), grk::FileFormatJP2Family::read_asoc(), grk::FileFormatJP2Family::read_asoc(), grk::FileFormatJP2Family::read_box_header(), grk::FileFormatJP2Family::read_box_header(), grk::FileFormatJP2Family::read_bpc(), grk::FileFormatJP2Family::read_channel_definition(), grk::FileFormatJP2Family::read_colr(), grk::FileFormatJP2Family::read_component_mapping(), grk::FileFormatMJ2Decompress::read_dref(), grk::FileFormatJP2Family::read_ftyp(), grk::FileFormatJP2Family::read_ihdr(), grk::FileFormatJP2Decompress::read_ipr(), grk::FileFormatJP2Family::read_jp2h(), grk::FileFormatMJ2Decompress::read_mvhd(), grk::FileFormatJP2Family::read_palette_clr(), grk::FileFormatJP2Family::read_res(), grk::FileFormatJP2Family::read_res_box(), grk::FileFormatJP2Family::read_signature(), grk::FileFormatMJ2Decompress::read_smj2(), grk::FileFormatMJ2Decompress::read_stco(), grk::FileFormatMJ2Decompress::read_stsc(), grk::FileFormatMJ2Decompress::read_stsd(), grk::FileFormatMJ2Decompress::read_stsz(), grk::FileFormatMJ2Decompress::read_url(), grk::FileFormatMJ2Decompress::read_urn(), grk::FileFormatJP2Decompress::read_uuid(), grk::FileFormatMJ2Decompress::read_version_and_flag_check(), grk::FileFormatJP2Decompress::read_xml(), grk::CodeStreamDecompress::readCAP(), grk::CodeStreamDecompress::readCBD(), grk::TileCodingParams::readCoc(), grk::TileCodingParams::readCod(), grk::CodingParams::readCom(), grk::CodeStreamDecompress::readCRG(), grk::PacketParser::readData(), grk::BufferedStream::readDirect(), grk::FileFormatJP2Decompress::readHeader(), grk::FileFormatJP2Family::readHeader(), grk::FileFormatMJ2Decompress::readHeader(), grk::PacketParser::readHeader(), grk::CodeStreamDecompress::readHeaderProcedure(), grk::FileFormatJP2Family::readHeaderProcedure(), grk::MarkerParser::readId(), grk::TileCodingParams::readMcc(), grk::TileCodingParams::readMco(), grk::TileCodingParams::readMct(), grk::t1::CodeblockDecompressImpl::readPacketHeader(), grk::PLMarker::readPLM(), grk::PLMarker::readPLT(), grk::TileCodingParams::readPoc(), grk::TileCodingParams::readPpt(), grk::TileCodingParams::readQcc(), grk::TileCodingParams::readQcd(), grk::TileCodingParams::readRgn(), grk::CodeStreamDecompress::readSOT(), grk::TileProcessor::readSOT(), grk::MarkerParser::readSOTafterSOD(), grk::MarkerParser::readSOTorEOC(), grk::TileCodingParams::readSPCodSPCoc(), grk::TileCodingParams::readSQcdSQcc(), grk::CodeStreamDecompress::readUNK(), grk::SparseCanvas< T, LBW, LBH >::readWrite(), grk::PLMarker::rewind(), grk::TLMMarker::rewind(), grk::GrkImage::scaleComponent(), grk::TileProcessor::scheduleAndRunDecompress(), grk::DecompressScheduler::scheduleT1(), grk::DecompressSchedulerExcalibur::scheduleT1(), grk::TLMMarker::seekNextSlated(), grk::CodeStreamDecompress::sequentialParseAndSchedule(), grk::FileFormatJP2Family::serializeAsoc(), grk::ChunkBuffer< T >::set_offset(), grk::Profile::setCinemaParams(), grk::CodeStreamDecompress::setDecompressRegion(), grk::SparseBuffer::skip(), grk::PacketIter::skipPackets(), grk::FileFormatMJ2Compress::start(), grk::GrkImage::subsampleAndReduce(), grk::GrkImage::sycc420_to_rgb(), grk::GrkImage::sycc422_to_rgb(), grk::TileCodingParams::TileCodingParams(), grk::TileCompletion::TileCompletion(), grk::FileFormatJP2Compress::transcode(), grk::FileFormatJP2Compress::transcodeCodestream(), grk::HWY_NAMESPACE::DecompressIrrev16::transform(), grk::HWY_NAMESPACE::DecompressIrrev::transform(), grk::HWY_NAMESPACE::DecompressRev16::transform(), grk::HWY_NAMESPACE::DecompressRev::transform(), grk::RefCounted::unref(), grk::GrkImage::validateICC(), grk::TLMMarkerManager::validateMarkerId(), grk::CodeStreamCompress::validateProgressionOrders(), grk::TileCodingParams::validateQuantization(), grk::StreamGenerator::validateStream(), grk::CodeStreamDecompress::wait(), grk::CodeStreamDecompress::wait(), grk::TileCompletion::wait(), grk::CodeStreamCompress::write_cod(), grk::CodeStreamCompress::write_com(), grk::FileFormatJP2Family::write_ftyp(), grk::FileFormatJP2Compress::write_jp2c(), grk::FileFormatJP2Compress::write_jp2h(), grk::CodeStreamCompress::write_qcd(), grk::TLMMarker::writeBegin(), grk::TLMMarker::writeEnd(), grk::CodeStreamCompress::writeTilePart(), and grk::CodeStreamCompress::writeTileParts().

◆ invScale

const double grk::invScale = log(2) / 256

◆ IPTC_UUID

const uint8_t grk::IPTC_UUID[16]
Initial value:
= {0x33, 0xC7, 0xA4, 0xD2, 0xB8, 0x1D, 0x47, 0x23,
0xA0, 0xBA, 0xF1, 0xA3, 0xE0, 0x97, 0xAD, 0x38}

JUMBF super box (ISO/IEC 19566-5).

Referenced by grk::FileFormatJP2Compress::init(), and grk::FileFormatJP2Decompress::readHeader().

◆ JP2_ASOC

◆ JP2_BPCC

const uint32_t grk::JP2_BPCC = 0x62706363

◆ JP2_CAPTURE_RES

const uint32_t grk::JP2_CAPTURE_RES = 0x72657363

◆ JP2_CDEF

const uint32_t grk::JP2_CDEF = 0x63646566

◆ JP2_CMAP

const uint32_t grk::JP2_CMAP = 0x636d6170

◆ JP2_COLR

const uint32_t grk::JP2_COLR = 0x636f6c72

◆ JP2_DISPLAY_RES

const uint32_t grk::JP2_DISPLAY_RES = 0x72657364

◆ JP2_DTBL

const uint32_t grk::JP2_DTBL = 0x6474626c

◆ JP2_FTYP

const uint32_t grk::JP2_FTYP = 0x66747970

◆ JP2_IHDR

const uint32_t grk::JP2_IHDR = 0x69686472

◆ JP2_JP

◆ JP2_JP2

const uint32_t grk::JP2_JP2 = 0x6a703220

File type box.

Referenced by grk::FileFormatJP2Compress::init().

◆ JP2_JP2C

◆ JP2_JP2H

◆ JP2_JP2I

const uint32_t grk::JP2_JP2I = 0x6a703269

◆ JP2_JPH

const uint32_t grk::JP2_JPH = 0x6A706820

File type fields.

Referenced by grk::FileFormatJP2Compress::init().

◆ JP2_JPX

const uint32_t grk::JP2_JPX = 0x6a707820

◆ JP2_JUMB

const uint32_t grk::JP2_JUMB = 0x6a756d62

Data entry URL box.

Referenced by grk::FileFormatJP2Decompress::FileFormatJP2Decompress().

◆ JP2_LBL

const uint32_t grk::JP2_LBL = 0x6c626c20

◆ JP2_MAGIC

const char* grk::JP2_MAGIC = "\x6a\x70"
static

Referenced by detectFormat().

◆ JP2_PCLR

const uint32_t grk::JP2_PCLR = 0x70636c72

◆ JP2_RES

const uint32_t grk::JP2_RES = 0x72657320

◆ JP2_RFC3745_MAGIC

const char* grk::JP2_RFC3745_MAGIC = "\x00\x00\x00\x0c\x6a\x50\x20\x20\x0d\x0a\x87\x0a"
static

Referenced by detectFormat().

◆ JP2_RREQ

const uint32_t grk::JP2_RREQ = 0x72726571

◆ JP2_SIG

const uint32_t grk::JP2_SIG = 0x0d0a870a

◆ JP2_UINF

const uint32_t grk::JP2_UINF = 0x75696e66

Data Reference box.

◆ JP2_ULST

const uint32_t grk::JP2_ULST = 0x756c7374

UUID info box (super-box).

◆ JP2_URL

const uint32_t grk::JP2_URL = 0x75726c20

UUID list box.

◆ JP2_UUID

const uint32_t grk::JP2_UUID = 0x75756964

◆ JP2_XML

◆ managerInstance

◆ MARKER_BYTES

◆ MARKER_BYTES_PLUS_MARKER_LENGTH_BYTES

◆ MARKER_LENGTH_BYTES

const uint8_t grk::MARKER_LENGTH_BYTES = 2

◆ maxBitPlanesJ2K

const uint32_t grk::maxBitPlanesJ2K = 30

◆ maxCompressLayersGRK

◆ maxNumComponentsJ2K

const uint16_t grk::maxNumComponentsJ2K = 16384

◆ maxNumLayersJ2K

const uint16_t grk::maxNumLayersJ2K = 65535

◆ maxNumTilesJ2K

const uint16_t grk::maxNumTilesJ2K = 65535

◆ maxPassesPerSegmentJ2K

const uint8_t grk::maxPassesPerSegmentJ2K = (maxPrecisionJ2K - 1) * 3 + 1

◆ maxPrecisionJ2K

const uint8_t grk::maxPrecisionJ2K = 38

◆ maxTilePartSizeJ2K

const uint32_t grk::maxTilePartSizeJ2K = UINT_MAX

◆ maxTilePartsPerTileJ2K

◆ maxTotalTilePartsJ2K

const uint16_t grk::maxTotalTilePartsJ2K = 65535

◆ MCC

◆ MCO

◆ MCT

◆ MCT_ELEMENT_SIZE

const uint32_t grk::MCT_ELEMENT_SIZE[] = {2, 4, 4, 8}

◆ mct_write_functions_from_float

const mct_function grk::mct_write_functions_from_float[]
static
Initial value:
= {
write_float_to_int16, write_float_to_int32, write_float_to_float, write_float_to_float64}

Referenced by grk::CodeStreamCompress::init_mct_encoding().

◆ MJ2_MAGIC

const char* grk::MJ2_MAGIC = "\x6d\x6a"
static

Referenced by detectFormat().

◆ MSIG_UUID

const uint8_t grk::MSIG_UUID[16]
Initial value:
= {0x96, 0xA9, 0xF1, 0xF1, 0xDC, 0x98, 0x40, 0x2D,
0xA7, 0xAE, 0xD6, 0x8E, 0x34, 0x45, 0x18, 0x09}

◆ PLM

const uint16_t grk::PLM = 0xff57

◆ PLT

const uint16_t grk::PLT = 0xff58

◆ plWriteBufferLen

const uint16_t grk::plWriteBufferLen = USHRT_MAX - 4

Referenced by grk::PLMarker::pushPL().

◆ POC

◆ PPM

const uint16_t grk::PPM = 0xff60

◆ PPT

const uint16_t grk::PPT = 0xff61

◆ prog_order_list

prog_order grk::prog_order_list[]
static
Initial value:
= {{GRK_CPRL, "CPRL"}, {GRK_LRCP, "LRCP"},
{GRK_PCRL, "PCRL"}, {GRK_RLCP, "RLCP"},
{GRK_RPCL, "RPCL"}, {(GRK_PROG_ORDER)-1, ""}}
enum _GRK_PROG_ORDER GRK_PROG_ORDER
Environment variables.
@ GRK_RPCL
resolution-layer-component-precinct order
Definition grok.h:78
@ GRK_CPRL
precinct-component-resolution-layer order
Definition grok.h:80
@ GRK_RLCP
layer-resolution-component-precinct order
Definition grok.h:77
@ GRK_LRCP
unknown progression order
Definition grok.h:76
@ GRK_PCRL
resolution-precinct-component-layer order
Definition grok.h:79

Referenced by grk::CodeStreamCompress::convertProgressionOrder().

◆ QCC

◆ QCD

◆ RGN

◆ scale

◆ shift

◆ singleTileRowsPerStrip

const uint32_t grk::singleTileRowsPerStrip = 32

◆ SIZ

◆ slopeCutoff

const double grk::slopeCutoff = pow(2, 64)

◆ SOC

◆ SOD

◆ SOP

const uint16_t grk::SOP = 0xff91

◆ SOT

◆ sotMarkerSegmentLen

◆ SPCodSPCocLen

const uint32_t grk::SPCodSPCocLen = 5U

◆ tabMaxSubLevelFromMainLevel

const uint16_t grk::tabMaxSubLevelFromMainLevel[]
static
Initial value:
= {15,
1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9}

Referenced by grk::Profile::isImfCompliant().

◆ TLM

◆ tlm_marker_start_bytes

const uint32_t grk::tlm_marker_start_bytes = 6

◆ tlmMarkerBytesPerTilePart

const uint32_t grk::tlmMarkerBytesPerTilePart = 6

◆ UNK

const uint16_t grk::UNK = 0

MCO marker.

Referenced by grk::MarkerParser::markerString().

◆ XMP_UUID

const uint8_t grk::XMP_UUID[16]
Initial value:
= {0xBE, 0x7A, 0xCF, 0xCB, 0x97, 0xA9, 0x42, 0xE8,
0x9C, 0x71, 0x99, 0x94, 0x91, 0xE3, 0xAF, 0xAC}

Referenced by grk::FileFormatJP2Compress::init(), and grk::FileFormatJP2Decompress::readHeader().