Mercurial > libavcodec.hg
comparison libpostproc/postprocess.c @ 1847:ef661c4dc5a6 libavcodec
attribute_used patch by (mitya at school dot ioffe dot ru (Dmitry Baryshkov))
| author | michael |
|---|---|
| date | Mon, 01 Mar 2004 12:46:20 +0000 |
| parents | 3875b8b30399 |
| children | f65d87bfdd5a |
comparison
equal
deleted
inserted
replaced
| 1846:cea4f1a80059 | 1847:ef661c4dc5a6 |
|---|---|
| 101 #define OPTIONS_ARRAY_SIZE 10 | 101 #define OPTIONS_ARRAY_SIZE 10 |
| 102 #define BLOCK_SIZE 8 | 102 #define BLOCK_SIZE 8 |
| 103 #define TEMP_STRIDE 8 | 103 #define TEMP_STRIDE 8 |
| 104 //#define NUM_BLOCKS_AT_ONCE 16 //not used yet | 104 //#define NUM_BLOCKS_AT_ONCE 16 //not used yet |
| 105 | 105 |
| 106 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) | |
| 107 # define attribute_used __attribute__((used)) | |
| 108 #else | |
| 109 # define attribute_used | |
| 110 #endif | |
| 111 | |
| 106 #ifdef ARCH_X86 | 112 #ifdef ARCH_X86 |
| 107 static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL; | 113 static uint64_t __attribute__((aligned(8))) attribute_used w05= 0x0005000500050005LL; |
| 108 static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL; | 114 static uint64_t __attribute__((aligned(8))) attribute_used w20= 0x0020002000200020LL; |
| 109 static uint64_t __attribute__((aligned(8))) b00= 0x0000000000000000LL; | 115 static uint64_t __attribute__((aligned(8))) attribute_used b00= 0x0000000000000000LL; |
| 110 static uint64_t __attribute__((aligned(8))) b01= 0x0101010101010101LL; | 116 static uint64_t __attribute__((aligned(8))) attribute_used b01= 0x0101010101010101LL; |
| 111 static uint64_t __attribute__((aligned(8))) b02= 0x0202020202020202LL; | 117 static uint64_t __attribute__((aligned(8))) attribute_used b02= 0x0202020202020202LL; |
| 112 static uint64_t __attribute__((aligned(8))) b08= 0x0808080808080808LL; | 118 static uint64_t __attribute__((aligned(8))) attribute_used b08= 0x0808080808080808LL; |
| 113 static uint64_t __attribute__((aligned(8))) b80= 0x8080808080808080LL; | 119 static uint64_t __attribute__((aligned(8))) attribute_used b80= 0x8080808080808080LL; |
| 114 #endif | 120 #endif |
| 115 | 121 |
| 116 | 122 |
| 117 static uint8_t clip_table[3*256]; | 123 static uint8_t clip_table[3*256]; |
| 118 static uint8_t * const clip_tab= clip_table + 256; | 124 static uint8_t * const clip_tab= clip_table + 256; |
| 119 | 125 |
| 120 static int verbose= 0; | 126 static int verbose= 0; |
| 121 | 127 |
| 122 static const int deringThreshold= 20; | 128 static const int attribute_used deringThreshold= 20; |
| 123 | 129 |
| 124 | 130 |
| 125 static struct PPFilter filters[]= | 131 static struct PPFilter filters[]= |
| 126 { | 132 { |
| 127 {"hb", "hdeblock", 1, 1, 3, H_DEBLOCK}, | 133 {"hb", "hdeblock", 1, 1, 3, H_DEBLOCK}, |
