Grok 10.0.5
plugin_interface.h File Reference
#include <plugin/minpf_plugin.h>
#include "grok.h"
#include <cstring>
#include <string>

Go to the source code of this file.

Classes

struct  grk::grk::grk_plugin_debug_mqc
 
struct  grk::grk::plugin_encode_user_callback_info
 
struct  grk::grk::PluginDecodeCallbackInfo
 

Namespaces

namespace  grk
 Copyright (C) 2016-2023 Grok Image Compression Inc.
 

Macros

#define DEBUG_CONTEXT_CACHE_SIZE   3
 

Typedefs

typedef uint32_t(* grk::PLUGIN_GET_DEBUG_STATE) (void)
 
typedef void(* grk::PLUGIN_DEBUG_MQC_NEXT_CXD) (grk_plugin_debug_mqc *mqc, uint32_t d)
 
typedef void(* grk::PLUGIN_DEBUG_MQC_NEXT_PLANE) (grk_plugin_debug_mqc *mqc)
 
typedef void(* grk::PLUGIN_ENCODE_USER_CALLBACK) (plugin_encode_user_callback_info *info)
 
typedef bool(* grk::PLUGIN_INIT) (grk_plugin_init_info initInfo)
 
typedef int32_t(* grk::PLUGIN_ENCODE) (grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK callback)
 
typedef int32_t(* grk::PLUGIN_BATCH_ENCODE) (const char *input_dir, const char *output_dir, grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK userCallback)
 
typedef void(* grk::PLUGIN_STOP_BATCH_ENCODE) (void)
 
typedef bool(* grk::PLUGIN_IS_BATCH_COMPLETE) (void)
 
typedef int32_t(* grk::PLUGIN_DECODE_USER_CALLBACK) (PluginDecodeCallbackInfo *info)
 
typedef int32_t(* grk::PLUGIN_DECODE) (grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback)
 
typedef int32_t(* grk::PLUGIN_INIT_BATCH_DECODE) (const char *input_dir, const char *output_dir, grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback)
 
typedef int32_t(* grk::PLUGIN_BATCH_DECODE) (void)
 
typedef void(* grk::PLUGIN_STOP_BATCH_DECODE) (void)
 

Variables

uint32_t debug_state
 
uint8_t context_number
 
uint32_t * contextStream
 
uint32_t contextStreamByteCount
 
uint8_t contextCache [DEBUG_CONTEXT_CACHE_SIZE]
 
uint32_t contextCacheCount
 
uint8_t orientation
 
uint16_t compno
 
uint32_t level
 
const char * input_file_name
 
bool outputFileNameIsRelative
 
const char * output_file_name
 
grk_cparameterscompressor_parameters
 
grk_imageimage
 
grk_plugin_tiletile
 
int32_t error_code
 
size_t deviceId
 
GROK_INIT_DECOMPRESSORS init_decompressors_func
 
std::string inputFile
 
std::string outputFile
 
GRK_CODEC_FORMAT decod_format
 
GRK_SUPPORTED_FILE_FMT cod_format
 
grk_codec * codec
 
grk_decompress_parametersdecompressor_parameters
 
grk_header_info header_info
 
bool plugin_owns_image
 
uint32_t decompress_flags
 
void * user_data
 

Macro Definition Documentation

◆ DEBUG_CONTEXT_CACHE_SIZE

#define DEBUG_CONTEXT_CACHE_SIZE   3

Variable Documentation

◆ cod_format

◆ codec

◆ compno

uint16_t compno

Referenced by grk::grk::GrkImage::apply_palette_clr(), grk::grk::GrkImage::componentsEqual(), grk::grk::GrkImage::compositePlanar(), grk::grk::T1::compress_cblk(), grk::compress_synch_with_plugin(), grk::grk::T2Compress::compressPacket(), grk::grk::T2Compress::compressPacketSimulate(), grk::grk::T2Compress::compressPacketsSimulate(), grk::grk::CompressScheduler::CompressScheduler(), grk::grk::GrkImage::convertPrecision(), grk::grk::GrkImage::copyHeader(), grk::grk::GrkImage::create(), grk::grk::GrkImage::createRGB(), grk::grk::TileProcessor::createWindowBuffers(), grk::grk::TileProcessor::dcLevelShiftCompress(), grk::grk::TileProcessor::deallocBuffers(), grk::grk::mct::decompress_dc_shift_irrev(), grk::grk::mct::decompress_dc_shift_rev(), grk::decompress_synch_plugin_with_host(), grk::grk::DecompressScheduler::DecompressScheduler(), grk::grk::TileProcessor::decompressT2T1(), grk::grk::CodeStreamDecompress::decompressTile(), grk::grk::CodeStreamDecompress::dump_image_header(), grk::grk::CodeStreamDecompress::dump_tile_info(), grk::grk::GrkImage::duplicate(), grk::grk::TileProcessor::dwt_encode(), grk::grk::TileProcessor::encodeT2(), grk::grk::GrkImage::execUpsample(), grk::grk::PacketIter::generatePrecinctIndex(), grk::grk::PacketIter::genPrecinctInfoOPT(), grk::grk::mct::genShift(), grk::grk::PacketIter::getCompno(), grk::grk::Scheduler::getImageComponentFlow(), grk::grk::TileProcessor::getMaxNumDecompressResolutions(), grk::grk::PacketManager::getParams(), grk::grk::T1::getwmsedec(), grk::grk::Scheduler::graph(), grk::grk::CodeStreamCompress::init(), grk::grk::PacketIter::init(), grk::grk::TileProcessor::init(), grk::grk::GrkImage::isOpacity(), grk::grk::TileProcessor::isWholeTileDecompress(), grk::grk::TileProcessor::makeLayerFeasible(), grk::grk::TileProcessor::makeLayerFinal(), grk::grk::TileProcessor::makeLayerSimple(), grk::grk::TileProcessor::needsMctDecompress(), grk::grk::PacketIter::next_cprl(), grk::grk::PacketIter::next_cprlOPT(), grk::grk::PacketIter::next_lrcp(), grk::grk::PacketIter::next_lrcpOPT(), grk::grk::PacketIter::next_pcrl(), grk::grk::PacketIter::next_pcrlOPT(), grk::grk::PacketIter::next_rlcp(), grk::grk::PacketIter::next_rlcpOPT(), grk::grk::PacketIter::next_rpcl(), grk::grk::PacketIter::next_rpclOPT(), grk::grk::PacketManager::PacketManager(), grk::grk::TileProcessor::pcrdBisectFeasible(), grk::grk::TileProcessor::pcrdBisectSimple(), grk::grk::PacketIter::printDynamicState(), grk::grk::T2Decompress::processPacket(), grk::grk::CodeStreamDecompress::read_SPCod_SPCoc(), grk::grk::DecompressScheduler::releaseBlocks(), grk::grk::CompressScheduler::schedule(), grk::grk::DecompressScheduler::schedule(), grk::grk::CompressScheduler::scheduleBlocks(), grk::grk::DecompressScheduler::scheduleBlocks(), grk::grk::Scheduler::Scheduler(), grk::grk::DecompressScheduler::scheduleWavelet(), grk::set_context_stream(), grk::grk::GrkImage::subsampleAndReduce(), grk::tile_equals(), grk::grk::GrkImage::transferDataFrom(), grk::grk::GrkImage::transferDataTo(), grk::grk::PacketIter::update_dxy(), grk::grk::PacketIter::update_include(), grk::grk::PacketIter::validatePrecinct(), grk::grk::CodeStreamCompress::validateProgressionOrders(), grk::grk::GrkImage::validateZeroed(), grk::grk::CodeStreamCompress::write_all_coc(), grk::grk::CodeStreamCompress::write_all_qcc(), grk::grk::CodeStreamCompress::write_regions(), grk::grk::DecompressScheduler::~DecompressScheduler(), and grk::grk::Scheduler::~Scheduler().

◆ compressor_parameters

grk_cparameters* compressor_parameters

◆ context_number

uint8_t context_number

◆ contextCache

uint8_t contextCache[DEBUG_CONTEXT_CACHE_SIZE]

◆ contextCacheCount

uint32_t contextCacheCount

◆ contextStream

uint32_t* contextStream

◆ contextStreamByteCount

uint32_t contextStreamByteCount

◆ debug_state

uint32_t debug_state

◆ decod_format

GRK_CODEC_FORMAT decod_format

◆ decompress_flags

uint32_t decompress_flags

◆ decompressor_parameters

grk_decompress_parameters* decompressor_parameters

◆ deviceId

size_t deviceId

◆ error_code

int32_t error_code

◆ header_info

◆ image

grk_image* image

Referenced by grk::grk::T2Compress::compressPackets(), grk::grk::T2Compress::compressPacketsSimulate(), hwy::Rect::ConstPlaneRow(), hwy::Rect::ConstRow(), grk::grk::TileCodingParams::copy(), grk::grk::GrkImage::create(), grk::grk::Profile::get_broadcast_max_NL(), grk::grk::Profile::get_imf_max_NL(), grk::grk::FileFormatDecompress::getColour(), grk::grk::PacketManager::getImage(), grk::grk::CodeStreamCompress::getNumTileParts(), grk::grk::PacketManager::getParams(), grk::TileCache::getTileImages(), grk::grk::CodeStreamCompress::init(), grk::grk::FileFormatCompress::init(), grk::grk::PacketIter::init(), grk::grk::Profile::is_broadcast_compliant(), grk::grk::Profile::is_cinema_compliant(), grk::grk::Profile::is_imf_compliant(), hwy::Rect::IsInside(), hwy::Rect::MutablePlaneRow(), hwy::Rect::MutableRow(), grk::grk::PacketManager::PacketManager(), grk::grk::SIZMarker::read(), grk::grk::CodeStreamDecompress::read_coc(), grk::grk::CodeStreamDecompress::read_cod(), grk::grk::CodeStreamDecompress::read_mco(), grk::grk::CodeStreamDecompress::read_poc(), grk::grk::CodeStreamDecompress::read_rgn(), grk::grk::FileFormatDecompress::readHeader(), grk::grk::Profile::set_cinema_parameters(), grk::grk::Profile::set_imf_parameters(), grk::grk::CodeStreamDecompress::setDecompressRegion(), grk::grk::PacketManager::updateCompressParams(), grk::grk::CodeStreamCompress::updateRates(), grk::grk::SIZMarker::write(), grk::grk::CodeStreamCompress::write_cbd(), grk::grk::CodeStreamCompress::write_coc(), and grk::grk::CodeStreamCompress::writePoc().

◆ init_decompressors_func

GROK_INIT_DECOMPRESSORS init_decompressors_func

◆ input_file_name

const char* input_file_name

◆ inputFile

std::string inputFile

◆ level

◆ orientation

◆ output_file_name

const char* output_file_name

◆ outputFile

std::string outputFile

◆ outputFileNameIsRelative

bool outputFileNameIsRelative

◆ plugin_owns_image

bool plugin_owns_image

◆ tile

Referenced by grk::grk::CodeStreamCompress::compress(), grk::grk::CompressScheduler::compress(), grk::grk::FileFormatCompress::compress(), grk::grk::T2Compress::compressPacket(), grk::grk::T2Compress::compressPacketSimulate(), grk::grk::CompressScheduler::CompressScheduler(), grk::grk::TileProcessor::createWindowBuffers(), grk::grk::TileProcessor::dcLevelShiftCompress(), grk::grk::TileProcessor::deallocBuffers(), grk::grk::CodeStreamDecompress::decompress(), grk::grk::FileFormatDecompress::decompress(), grk::decompress_synch_plugin_with_host(), grk::grk::TileProcessor::decompressT2T1(), grk::grk::TileProcessor::doCompress(), grk::grk::TileProcessor::dwt_encode(), grk::grk::TileProcessor::getMaxNumDecompressResolutions(), grk::grk::TileProcessor::getTile(), grk::grk::TileProcessor::getUnreducedTileWindow(), grk_compress(), grk_decompress(), grk::grk::TileSet::index(), grk::grk::TileProcessor::ingestImage(), grk::grk::TileProcessor::ingestUncompressedData(), grk::grk::TileProcessor::init(), grk::grk::TileSet::isScheduled(), grk::grk::TileProcessor::isWholeTileDecompress(), grk::grk::TileProcessor::makeLayerFeasible(), grk::grk::TileProcessor::makeLayerFinal(), grk::grk::TileProcessor::makeLayerSimple(), grk::grk::TileProcessor::mct_encode(), grk::grk::TileProcessor::mctDecompress(), grk::grk::TileProcessor::needsMctDecompress(), grk::grk::TileProcessor::pcrdBisectFeasible(), grk::grk::TileProcessor::pcrdBisectSimple(), grk::t1_part1::T1Part1::preCompress(), ojph::T1OJPH::preCompress(), openhtj2k::T1OpenHTJ2K::preCompress(), grk::grk::TileProcessor::preCompressTile(), grk::grk::PacketParser::readData(), grk::grk::PacketParser::readDataFinalize(), grk::grk::TileProcessor::release(), grk::grk::TileSet::schedule(), grk::grk::CompressScheduler::scheduleBlocks(), grk::set_context_stream(), and grk::grk::TileProcessor::t1_encode().

◆ user_data

void* user_data

Referenced by grk::free_mem(), and grk::mem_map_free().