Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / theora-old / lib / pp.h
blob341e6236f21174de6b7b4a6055325c3890f5b296
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2003 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
10 * *
11 ********************************************************************
13 function:
14 last mod: $Id$
16 ********************************************************************/
18 /* Constants. */
19 #define INTERNAL_BLOCK_HEIGHT 8
20 #define INTERNAL_BLOCK_WIDTH 8
23 /* NEW Line search values. */
24 #define UP 0
25 #define DOWN 1
26 #define LEFT 2
27 #define RIGHT 3
29 #define FIRST_ROW 0
30 #define NOT_EDGE_ROW 1
31 #define LAST_ROW 2
33 #define YDIFF_CB_ROWS (INTERNAL_BLOCK_HEIGHT * 3)
34 #define CHLOCALS_CB_ROWS (INTERNAL_BLOCK_HEIGHT * 3)
35 #define PMAP_CB_ROWS (INTERNAL_BLOCK_HEIGHT * 3)
36 #define PSCORE_CB_ROWS (INTERNAL_BLOCK_HEIGHT * 4)
38 /* Status values in block coding map */
39 #define CANDIDATE_BLOCK_LOW -2
40 #define CANDIDATE_BLOCK -1
41 #define BLOCK_NOT_CODED 0
42 #define BLOCK_CODED_BAR 3
43 #define BLOCK_CODED_SGC 4
44 #define BLOCK_CODED_LOW 4
45 #define BLOCK_CODED 5
47 #define MAX_PREV_FRAMES 16
48 #define MAX_SEARCH_LINE_LEN 7