jpegdef.h

来自「symbian 下的helix player源代码」· C头文件 代码 · 共 126 行

H
126
字号
/* ***** BEGIN LICENSE BLOCK ***** 
 * Version: RCSL 1.0/RPSL 1.0 
 *  
 * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
 *      
 * The contents of this file, and the files included with this file, are 
 * subject to the current version of the RealNetworks Public Source License 
 * Version 1.0 (the "RPSL") available at 
 * http://www.helixcommunity.org/content/rpsl unless you have licensed 
 * the file under the RealNetworks Community Source License Version 1.0 
 * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
 * in which case the RCSL will apply. You may also obtain the license terms 
 * directly from RealNetworks.  You may not use this file except in 
 * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
 * applicable to this file, the RCSL.  Please see the applicable RPSL or 
 * RCSL for the rights, obligations and limitations governing use of the 
 * contents of the file.  
 *  
 * This file is part of the Helix DNA Technology. RealNetworks is the 
 * developer of the Original Code and owns the copyrights in the portions 
 * it created. 
 *  
 * This file, and the files included with this file, is distributed and made 
 * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
 * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
 * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
 * 
 * Technology Compatibility Kit Test Suite(s) Location: 
 *    http://www.helixcommunity.org/content/tck 
 * 
 * Contributor(s): 
 *  
 * ***** END LICENSE BLOCK ***** */ 

/*
  
Notes:
  - There are parameterless segments (denoted with a '*' below) that DON'T
    have a size specification (and no contents), just $ff and the type byte.
  - Any number of $ff bytes between segments is legal and must be skipped.
  
   *TEM   = $01   usually causes a decoding error, may be ignored
    SOF0  = $c0   Start Of Frame (baseline JPEG), for details see below
    SOF1  = $c1   dito
    SOF2  = $c2   usually unsupported
    SOF3  = $c3   usually unsupported
    SOF5  = $c5   usually unsupported
    SOF6  = $c6   usually unsupported
    SOF7  = $c7   usually unsupported
    SOF9  = $c9   for arithmetic coding, usually unsupported
    SOF10 = $ca   usually unsupported
    SOF11 = $cb   usually unsupported
    SOF13 = $cd   usually unsupported
    SOF14 = $ce   usually unsupported
    SOF15 = $cf   usually unsupported
    DHT   = $c4   Define Huffman Table, for details see below
    JPG   = $c8   undefined/reserved (causes decoding error)
    DAC   = $cc   Define Arithmetic Table, usually unsupported
   *RST0  = $d0   RSTn are used for resync, may be ignored
   *RST1  = $d1
   *RST2  = $d2
   *RST3  = $d3
   *RST4  = $d4
   *RST5  = $d5
   *RST6  = $d6
   *RST7  = $d7
    SOI   = $d8   Start Of Image
    EOI   = $d9   End Of Image
    SOS   = $da   Start Of Scan, for details see below
    DQT   = $db   Define Quantization Table, for details see below
    DNL   = $dc   usually unsupported, ignore
    DRI   = $dd   Define Restart Interval, for details see below
    DHP   = $de   ignore (skip)
    EXP   = $df   ignore (skip)
    APP0  = $e0   JFIF APP0 segment marker, for details see below
    APP15 = $ef   ignore
    JPG0  = $f0   ignore (skip)
    JPG13 = $fd   ignore (skip)
    COM   = $fe   Comment, may be ignored
*/
#ifndef JPEGDEF_H
#define JPEGDEF_H

#define JPEG_MARKER_FLAG  0xff
#define JPEG_MARKER_TEM   0x01
#define JPEG_MARKER_SOF0  0xc0
#define JPEG_MARKER_SOF1  0xc1
#define JPEG_MARKER_SOF2  0xc2
#define JPEG_MARKER_SOF3  0xc3
#define JPEG_MARKER_SOF5  0xc5
#define JPEG_MARKER_SOF6  0xc6
#define JPEG_MARKER_SOF7  0xc7
#define JPEG_MARKER_SOF9  0xc9
#define JPEG_MARKER_SOF10 0xca
#define JPEG_MARKER_SOF11 0xcb
#define JPEG_MARKER_SOF13 0xcd
#define JPEG_MARKER_SOF14 0xce
#define JPEG_MARKER_SOF15 0xcf
#define JPEG_MARKER_DHT   0xc4
#define JPEG_MARKER_JPG   0xc8
#define JPEG_MARKER_DAC   0xcc
#define JPEG_MARKER_RST0  0xd0
#define JPEG_MARKER_RST1  0xd1
#define JPEG_MARKER_RST2  0xd2
#define JPEG_MARKER_RST3  0xd3
#define JPEG_MARKER_RST4  0xd4
#define JPEG_MARKER_RST5  0xd5
#define JPEG_MARKER_RST6  0xd6
#define JPEG_MARKER_RST7  0xd7
#define JPEG_MARKER_SOI   0xd8
#define JPEG_MARKER_EOI   0xd9
#define JPEG_MARKER_SOS   0xda
#define JPEG_MARKER_DQT   0xdb
#define JPEG_MARKER_DNL   0xdc
#define JPEG_MARKER_DRI   0xdd
#define JPEG_MARKER_DHP   0xde
#define JPEG_MARKER_EXP   0xdf
#define JPEG_MARKER_APP0  0xe0
#define JPEG_MARKER_APP15 0xef
#define JPEG_MARKER_JPG0  0xf0
#define JPEG_MARKER_JPG13 0xfd
#define JPEG_MARKER_COM   0xfe

#endif /* #ifndef JPEGDEF_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?