michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: michael@0: #ifndef __INC_HEADER_H michael@0: #define __INC_HEADER_H michael@0: michael@0: /* 24 bits total */ michael@0: typedef struct michael@0: { michael@0: unsigned int type: 1; michael@0: unsigned int version: 3; michael@0: unsigned int show_frame: 1; michael@0: michael@0: /* Allow 2^20 bytes = 8 megabits for first partition */ michael@0: michael@0: unsigned int first_partition_length_in_bytes: 19; michael@0: michael@0: #ifdef PACKET_TESTING michael@0: unsigned int frame_number; michael@0: unsigned int update_gold: 1; michael@0: unsigned int uses_gold: 1; michael@0: unsigned int update_last: 1; michael@0: unsigned int uses_last: 1; michael@0: #endif michael@0: michael@0: } VP8_HEADER; michael@0: michael@0: #ifdef PACKET_TESTING michael@0: #define VP8_HEADER_SIZE 8 michael@0: #else michael@0: #define VP8_HEADER_SIZE 3 michael@0: #endif michael@0: michael@0: michael@0: #endif