1 /* 2 * Copyright (C) 2009 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Image patch chunk types 18 #define CHUNK_NORMAL 0 19 #define CHUNK_GZIP 1 // version 1 only 20 #define CHUNK_DEFLATE 2 // version 2 only 21 #define CHUNK_RAW 3 // version 2 only 22 23 // The gzip header size is actually variable, but we currently don't 24 // support gzipped data with any of the optional fields, so for now it 25 // will always be ten bytes. See RFC 1952 for the definition of the 26 // gzip format. 27 #define GZIP_HEADER_LEN 10 28 29 // The gzip footer size really is fixed. 30 #define GZIP_FOOTER_LEN 8 31