Solved

How do you load a PCX the Fast Way

Posted on 1997-05-31
2
235 Views
Last Modified: 2010-04-10
I am currently loading a pcx but by doing a byte by byte way and plotting it on the screen then I started using a virtual screen, but still I did not want the long pause of blackness during the loading of the pcx.  

Is there a way to read word by word or even better double word.
0
Comment
Question by:kane020397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
byang earned 90 total points
ID: 1163781
You can read it line by line. Since you know the width of the image from the header, you know the maximum possible compressed line size, which is 2 times the width assuming no compression is possible.

The fastest way is to read the entire file into a memory buffer in one shot, the write an assembler routine to decode it.
0
 

Author Comment

by:kane020397
ID: 1163782
I was expecting more of a errmmm..... Faster method like the one the use in games such as jazz jack rabbit etc....

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question