Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.83 KB

File metadata and controls

65 lines (43 loc) · 1.83 KB

JPEG2000 Image decoding Example using nvJPEG 2000 Library

Description

This code demonstrates how to pipeline the decoding of multiple JPEG 2000 images using the nvJPEG2000 library.

Key Concepts

Image Decoding from nvJPEG2000 Library

Supported SM Architectures

SM 6.0 SM 6.1 SM 7.0 SM 7.2 SM 7.5 SM 8.0

Supported OSes

Linux, Windows

Supported CPU Architecture

x86_64

API Documentation

nvJPEG2000

Prerequisites

Build Instructions on Linux

$ mkdir build
$
$ cd build 
$
$ export CUDACXX=/usr/local/cuda/bin/nvcc
$
$ cmake ..  -DCMAKE_BUILD_TYPE=Release
# Use -DNVJPEG2K_PATH, if nvJPEG2000 is not installed at the default location.
# example  cmake .. -DCMAKE_BUILD_TYPE=Release -DNVJPEG2K_PATH=/opt/libnvjpeg_2k
#
$ make

Usage

./nvjpeg2k_dec_pipelined -h

Usage: ./nvjpeg2k_dec_pipelined -i images_dir [-b batch_size] [-t total_images] [-w warmup_iterations] [-o output_dir] Parameters: 
	images_dir	:	Path to single image or directory of images
	batch_size	:	Decode images from input by batches of specified size
	total_images	:	Decode these many images, if there are fewer images 
				in the input than total images, decoder will loop over the input
	warmup_iterations:	Run these many batches first without measuring performance
	output_dir	:	Write decoded images in BMP/PGM format to this directory