1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/common/header.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 + 1.15 +#ifndef __INC_HEADER_H 1.16 +#define __INC_HEADER_H 1.17 + 1.18 +/* 24 bits total */ 1.19 +typedef struct 1.20 +{ 1.21 + unsigned int type: 1; 1.22 + unsigned int version: 3; 1.23 + unsigned int show_frame: 1; 1.24 + 1.25 + /* Allow 2^20 bytes = 8 megabits for first partition */ 1.26 + 1.27 + unsigned int first_partition_length_in_bytes: 19; 1.28 + 1.29 +#ifdef PACKET_TESTING 1.30 + unsigned int frame_number; 1.31 + unsigned int update_gold: 1; 1.32 + unsigned int uses_gold: 1; 1.33 + unsigned int update_last: 1; 1.34 + unsigned int uses_last: 1; 1.35 +#endif 1.36 + 1.37 +} VP8_HEADER; 1.38 + 1.39 +#ifdef PACKET_TESTING 1.40 +#define VP8_HEADER_SIZE 8 1.41 +#else 1.42 +#define VP8_HEADER_SIZE 3 1.43 +#endif 1.44 + 1.45 + 1.46 +#endif