xp_comm_proj/rd_dicom/Papyrus3/JpegDir/JpgLless/read.c
/*
 *--------------------------------------------------------------
 *
 * ReadScanHeader --
 *
 *	Read the start of a scan (everything through the SOS marker).
 *
 * Results:
 *	1 if find SOS, 0 if find EOI
 *
 * Side effects:
 *	Bitstream is parsed, may exit on errors.
 *
 *--------------------------------------------------------------
 */
ReadScanHeader
Read the start of a scan (everything through the SOS marker).

1 if find SOS, 0 if find EOI

Side effects:
Bitstream is parsed, may exit on errors.
ReadScanHeader Read the start of a scan ( everything through the SOS marker ) . 1 if find SOS 0 if find EOI Side effects : Bitstream is parsed may exit on errors .
int ReadScanHeader (DecompressInfo *dcPtr)
{
    int c;
    c = ProcessTables (dcPtr);
    switch (c) {
    case M_SOS:
	GetSos (dcPtr);
	return 1;
    case M_EOI:
	return 0;
    default:
	fprintf (stderr, "Unexpected marker 0x%02x", c);
	break;
    }
    return 0;
}
int ReadScanHeader ( DecompressInfo * dcPtr ) { int c ; c = ProcessTables ( dcPtr ) ; switch ( c ) { case M_SOS : GetSos ( dcPtr ) ; return 1 ; case M_EOI : return 0 ; default : fprintf ( stderr , " " , c ) ; break ; } return 0 ; }
ReadScanHeader
      Read the start of a scan (everything through the SOS marker).
ReadScanHeader Read the start of a scan ( everything through the SOS marker ) .
/*
     * Process markers until SOS or EOI
     */