Table of Contents

NAME

QccIMGImageComponentExtractBlock, QccIMGImageComponentInsertBlock - block extraction and insertion from/to image component

SYNOPSIS

#include "libQccPack.h"

int QccIMGImageComponentExtractBlock(const QccIMGImageComponent *image_component, int image_row, int image_col, QccMatrix block, int block_num_rows, int block_num_cols);
int QccIMGImageComponentInsertBlock(QccIMGImageComponent *image_component, int image_row, int image_col, const QccMatrix block, int block_num_rows, int block_num_cols);

DESCRIPTION

QccIMGImageComponentExtractBlock() extracts a block of size block_num_rows by block_num_cols from image_component. The block is extracted such that the upper-left corner of the extracted block lies at location (image_col, image_row) in image_component. If any part of the extracted block lies beyond the bounds of image_component, the corresponding pixels in block beyond the image-component bounds are set to 0.

QccIMGImageComponentInsertBlock() inserts a block of size block_num_rows by block_num_cols into image_component at location (image_col, image_row). Any part of the inserted block that would lie beyond the bounds of image_component is ignored, i.e., not inserted into image_component.

RETURN VALUES

These routines return 0 on success and 1 on error.

SEE ALSO

QccIMGImageComponent(3) , QccPackIMG(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads