Solved

What is JPEG error #52

Posted on 2000-04-06
6
1,368 Views
Last Modified: 2010-04-04

Does anyone have a list of these jpeg error numbers?  What is this? (Attempting to read and save jpegs).
0
Comment
Question by:jexd99
  • 3
  • 2
6 Comments
 

Author Comment

by:jexd99
Comment Utility
D3 / Win98
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
Comment Utility
hi jexd99,

from borland

--- paste begin
Interpreting Cryptic Jpeg Error Number's
By Corbin Dunn

If you have used the TJpegImage class you may be familiar with the "JPEG error #xx" error that comes up on occasion. You may want to know exactly what went wrong, and how to get more information based on that number.

Luckily, the TJpegImage pascal source is included on the Delphi CD. Looking at the source, you will notice that it is a wrapper around some C code. There is one particular file called "jerror.h" which contains an enumeration of error strings. Based on the offset in this enum, you can find out what a given error number means.

For ease of use, I converted the "jerror.h" file to pascal in the unit JpegErrors.pas. To use this unit, simply reference the string array cJpegErrors, passing a given error number to find the error string, such as:

      Label1.Caption := cJpegErrors[StrToInt(Edit1.Text)]
Note that the JpegErrors.pas unit was based on the Jpeg source that comes with Delphi 5. If the order of the error messages in "jerror.h" ever changes, the JpegErrors.pas will not by in sync with it and has to be updated.
--- paste end

get the jpeg_error.pas file and sample:

http://community.borland.com/article/images/20433/jpeg_errors.zip

hope this helps

meikl
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
specially #52

cstrJERR_NO_SOI = 'Not a JPEG file: starts with 0x%02x 0x%02x';
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 3

Expert Comment

by:bryan7
Comment Utility
listenning
0
 

Author Comment

by:jexd99
Comment Utility
Go ahead and answer this and I'll grade you.

   
0
 

Author Comment

by:jexd99
Comment Utility
Ignore that last message I left :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now