2011-05-02 21:26:50 +04:00
|
|
|
;;================================================================================================;;
|
2012-02-24 02:09:09 +04:00
|
|
|
;;//// xcf.inc //// (c) dunkaist, 2011-2012 //////////////////////////////////////////////////////;;
|
2011-05-02 21:26:50 +04:00
|
|
|
;;================================================================================================;;
|
|
|
|
;; ;;
|
|
|
|
;; This file is part of Common development libraries (Libs-Dev). ;;
|
|
|
|
;; ;;
|
|
|
|
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
|
|
|
|
;; Lesser General Public License as published by the Free Software Foundation, either version 2.1 ;;
|
|
|
|
;; of the License, or (at your option) any later version. ;;
|
|
|
|
;; ;;
|
|
|
|
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ;;
|
|
|
|
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;
|
|
|
|
;; Lesser General Public License for more details. ;;
|
|
|
|
;; ;;
|
|
|
|
;; You should have received a copy of the GNU Lesser General Public License along with Libs-Dev. ;;
|
|
|
|
;; If not, see <http://www.gnu.org/licenses/>. ;;
|
|
|
|
;; ;;
|
|
|
|
;;================================================================================================;;
|
|
|
|
|
2012-02-24 02:09:09 +04:00
|
|
|
XCF_BASETYPE_RGB = 0
|
|
|
|
XCF_BASETYPE_GRAY = 1
|
|
|
|
XCF_BASETYPE_INDEXED = 2
|
2011-05-02 21:26:50 +04:00
|
|
|
|
2012-02-24 02:09:09 +04:00
|
|
|
struct xcf_header
|
|
|
|
magic_string rb 9
|
|
|
|
version rd 1
|
|
|
|
reserved rb 1
|
|
|
|
width rd 1
|
|
|
|
height rd 1
|
|
|
|
base_type rd 1
|
|
|
|
ends
|
2011-05-02 21:26:50 +04:00
|
|
|
|
2012-02-24 02:09:09 +04:00
|
|
|
struct xcf_ext
|
|
|
|
visible rd 1
|
|
|
|
layer_mode rd 1
|
|
|
|
offset_x rd 1
|
|
|
|
offset_y rd 1
|
|
|
|
opacity rd 1
|
|
|
|
apply_mask rd 1
|
|
|
|
type rd 1
|
|
|
|
planes rd 1
|
|
|
|
ends
|