# Announcement: JPEG reader / image viewer

**URL:** <https://forums.developer.nvidia.com/t/announcement-jpeg-reader-image-viewer/24131>\
**Category:** CUDA Programming and Performance\
**Created:** [August 28, 2011, 6:29pm UTC](https://forums.developer.nvidia.com/t/announcement-jpeg-reader-image-viewer/24131 "2011-08-28T18:29:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qtmlr](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@qtmlr](https://forums.developer.nvidia.com/u/qtmlr)\
**Post date:** [August 28, 2011, 6:29pm UTC](https://forums.developer.nvidia.com/t/announcement-jpeg-reader-image-viewer/24131/1 "2011-08-28T18:29:04Z")

</div>

Hi,

please let me announce a CUDA based library that i wrote and an image viewer that uses that library.

CUJPEG:

> **[cujpeg](https://sourceforge.net/projects/cujpeg/)**
>
> Download cujpeg for free. A library based on NVidias CUDA for decoding JPEG images. Decoding is accelerated by the GPU.

This library decodes JPEG images to RGB, either on the GPU or on the CPU.  
For JPEGs that contain restart intervals, also the huffman decoding is done in parallel on the GPU, which can boost performance a lot.

CUVIEW:

> **[cuview](https://sourceforge.net/projects/cuview/)**
>
> Download cuview for free. A 2D/3D image viewer that uses of NVidias CUDA

The viewer displays not only JPEGs but also other 2D and 3D images on different output devices.

Drawbacks:

- There isn’t yet a build system, some hints on how to create dynamic libraries from CUDA sourcefiles are really appreciated.
- Quitting the viewer takes some seconds, not sure why. Any hints are appreciated.

Please let me know your comments.

Best regards,  
Torsten.

---

<div class="post-metadata">

**Author:** ![zhqi007](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhqi007](https://forums.developer.nvidia.com/u/zhqi007)\
**Post date:** [November 10, 2011, 6:49am UTC](https://forums.developer.nvidia.com/t/announcement-jpeg-reader-image-viewer/24131/2 "2011-11-10T06:49:31Z")

</div>

HI:  
guys,I use cujpeg lib for deoceing multiframe files which is constructed by jpegs picture,but i find cujpeg\_decode() spend mush time as 140ms, in my programms,code like this:

while(av\_read\_frame(pFormatCtx, &packet)\>=0)  
{  
// use avcodec to parser a frame from XXX.mjpg  
if(packet.stream\_index==videoStream)  
{

```
		framePtr = (char*)packet.data;
		frameLength = packet.size;
			
		jj.mode = CUJPEG_MODE_RGBDEV;
	
		clock_t temp = clock();
		
		cujpeg_decode(&jj,(const unsigned char*)packet.data,packet.size);

		clock_t time_clock = (clock() - temp);

		printf("single single time =%d ms\n ",(time_clock)*1000/CLOCKS_PER_SEC);

```

anyone can provide advice?thanks a lot

---

<div class="post-metadata">

**Author:** ![oliviasophia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@oliviasophia](https://forums.developer.nvidia.com/u/oliviasophia)\
**Post date:** [November 2, 2016, 1:58pm UTC](https://forums.developer.nvidia.com/t/announcement-jpeg-reader-image-viewer/24131/3 "2016-11-02T13:58:57Z")

</div>

KrojamSoft PhotoViewerPro is great to view all images within a folder . You can organize and view/edit images. View images on a calendar etc.Try it out
