Pegasus PIC

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m
(Software)
Line 32: Line 32:
 
* [[XnView]] (as "Konica Camera File")
 
* [[XnView]] (as "Konica Camera File")
 
* PICView v3.21 (Windows 3.x software): [https://archive.org/details/especial-internet-lo-mejor-del-shareware Especial Internet: Lo Mejor Del Shareware] → WIN/GRAPHICS/PICVIEW.ZIP
 
* PICView v3.21 (Windows 3.x software): [https://archive.org/details/especial-internet-lo-mejor-del-shareware Especial Internet: Lo Mejor Del Shareware] → WIN/GRAPHICS/PICVIEW.ZIP
 +
* {{Deark}}
  
 
== Sample files ==
 
== Sample files ==

Revision as of 16:17, 29 January 2023

File Format
Name Pegasus PIC
Ontology
Extension(s) .pic, .kqp
Released ≤1995

Pegasus PIC is a raster graphics format associated with some products from Pegasus Imaging Corporation. It may also be known as Pegasus JPEG, or PIC JPEG. It was also rebranded in some form as Konica Quality Photo (KQP).

PIC format is an incompatible extension of BMP.

Contents

Discussion

Though the PICView software gives the impression that they are different formats, it's not clear that there is any distinction between PIC and KQP. If there is a difference, it could be that KQP is a restricted profile of PIC, and/or that KQP files are the ones that lack a JPEG "DHT" segment.

Format details

A PIC file contains embedded JPEG data, but it lacks the critical DQT segment(s), and may lack DHT segment(s), so it can't just be extracted as a standard JPEG file.

Notes on decoding

The following information is not based on official sources. It may be wrong or incomplete.

If the PIC file does not contain a DHT (Huffman table definition) segment, use the example tables given in the JPEG specification (T.81 section K.3.3; see JPEG#Specifications). These may also be found in the IJG libjpeg source code, in the file jcparam.c (see JPEG#Software).

To construct suitable quantization tables (DQT segment), start with example luminance and chrominance tables given in the JPEG specification (T.81 section K.1). These may also be found in the IJG libjpeg source code, in the files jcparam.c and wizard.txt. They will likely be used if you create a new JPEG file with "cjpeg -quality 50".

Scale each value in each table by a certain factor. A PIC file should contain an APP1 segment whose data begins with the signature "PIC\0". The second byte after the signature is a code for the luminance, and the third is a code for the chrominance.

The scale factor for the luminance table is (approximately?) the luminance code divided by 32. Likewise for the chrominance table.

Identification

Known PIC/KQP files start with ASCII "BM". They have 44 00 00 00 at offset 14, indicating a BMP "INFOHEADER" size of 68. They have 4a 50 45 47 ("JPEG") at offset 30.

Software

Sample files

See also KQP#Sample files.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox