annotate libswscale/cs_test.c @ 28250:a4aa7ecd8cbe

Factor calc_drwXY out of vo_xv and vo_xvmc.
author cehoyos
date Fri, 09 Jan 2009 15:25:24 +0000
parents c547b2f6d825
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
1 /*
20094
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
2 * Copyright (C) 2002 Michael Niedermayer <michaelni@gmx.at>
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
3 *
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
4 * This file is part of FFmpeg.
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
5 *
26397
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
6 * FFmpeg is free software; you can redistribute it and/or
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
8 * License as published by the Free Software Foundation; either
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
9 * version 2.1 of the License, or (at your option) any later version.
20094
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
10 *
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
11 * FFmpeg is distributed in the hope that it will be useful,
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26397
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
14 * Lesser General Public License for more details.
20094
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
15 *
26397
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
f250e353a56b Relicense test/example files as LGPL with Michael's permission.
diego
parents: 23702
diff changeset
17 * License along with FFmpeg; if not, write to the Free Software
23702
5159b5f8784e license header consistency cosmetics
diego
parents: 23140
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20094
aca9e9783f67 Change license headers to say 'FFmpeg' instead of 'this program'.
diego
parents: 20030
diff changeset
19 */
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
20
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
21 #include <stdio.h>
19470
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
22 #include <string.h> /* for memset() */
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
23 #include <unistd.h>
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
24 #include <stdlib.h>
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
25 #include <inttypes.h>
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
26
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
27 #include "swscale.h"
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
28 #include "rgb2rgb.h"
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
29
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
30 #define SIZE 1000
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
31 #define srcByte 0x55
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
32 #define dstByte 0xBB
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
33
22964
5922ce1dfefc Replace huge switch statement by a lookup table.
ivo
parents: 22829
diff changeset
34 #define FUNC(s,d,n) {s,d,#n,n}
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
35
19470
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
36 static int cpu_caps;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
37
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
38 static char *args_parse(int argc, char *argv[])
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
39 {
19470
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
40 int o;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
41
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
42 while ((o = getopt(argc, argv, "m23")) != -1) {
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
43 switch (o) {
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
44 case 'm':
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
45 cpu_caps |= SWS_CPU_CAPS_MMX;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
46 break;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
47 case '2':
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
48 cpu_caps |= SWS_CPU_CAPS_MMX2;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
49 break;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
50 case '3':
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
51 cpu_caps |= SWS_CPU_CAPS_3DNOW;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
52 break;
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
53 default:
22029
2fbe2debf5e6 av_logify
lu_zero
parents: 20094
diff changeset
54 av_log(NULL, AV_LOG_ERROR, "Unknown option %c\n", o);
19470
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
55 }
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
56 }
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
57
b3939dba3c13 Allow to compile swscale tests
lucabe
parents: 18861
diff changeset
58 return argv[optind];
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
59 }
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
60
20030
f837670d269c Fix warnings:
diego
parents: 19470
diff changeset
61 int main(int argc, char **argv)
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
62 {
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
63 int i, funcNum;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
64 uint8_t *srcBuffer= (uint8_t*)av_malloc(SIZE);
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
65 uint8_t *dstBuffer= (uint8_t*)av_malloc(SIZE);
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
66 int failedNum=0;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
67 int passedNum=0;
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
68
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
69 av_log(NULL, AV_LOG_INFO, "memory corruption test ...\n");
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
70 args_parse(argc, argv);
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
71 av_log(NULL, AV_LOG_INFO, "CPU capabilities forced to %x\n", cpu_caps);
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
72 sws_rgb2rgb_init(cpu_caps);
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
73
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
74 for(funcNum=0; ; funcNum++){
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
75 struct func_info_s {
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
76 int src_bpp;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
77 int dst_bpp;
27860
c547b2f6d825 Add some const specifiers to function name variables; fixes a bunch of
diego
parents: 26397
diff changeset
78 const char *name;
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
79 void (*func)(const uint8_t *src, uint8_t *dst, long src_size);
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
80 } func_info[] = {
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
81 FUNC(2, 2, rgb15to16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
82 FUNC(2, 3, rgb15to24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
83 FUNC(2, 4, rgb15to32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
84 FUNC(2, 3, rgb16to24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
85 FUNC(2, 4, rgb16to32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
86 FUNC(3, 2, rgb24to15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
87 FUNC(3, 2, rgb24to16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
88 FUNC(3, 4, rgb24to32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
89 FUNC(4, 2, rgb32to15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
90 FUNC(4, 2, rgb32to16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
91 FUNC(4, 3, rgb32to24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
92 FUNC(2, 2, rgb16to15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
93 FUNC(2, 2, rgb15tobgr15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
94 FUNC(2, 2, rgb15tobgr16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
95 FUNC(2, 3, rgb15tobgr24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
96 FUNC(2, 4, rgb15tobgr32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
97 FUNC(2, 2, rgb16tobgr15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
98 FUNC(2, 2, rgb16tobgr16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
99 FUNC(2, 3, rgb16tobgr24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
100 FUNC(2, 4, rgb16tobgr32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
101 FUNC(3, 2, rgb24tobgr15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
102 FUNC(3, 2, rgb24tobgr16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
103 FUNC(3, 3, rgb24tobgr24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
104 FUNC(3, 4, rgb24tobgr32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
105 FUNC(4, 2, rgb32tobgr15),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
106 FUNC(4, 2, rgb32tobgr16),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
107 FUNC(4, 3, rgb32tobgr24),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
108 FUNC(4, 4, rgb32tobgr32),
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
109 FUNC(0, 0, NULL)
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
110 };
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
111 int width;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
112 int failed=0;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
113 int srcBpp=0;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
114 int dstBpp=0;
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
115
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
116 if (!func_info[funcNum].func) break;
22964
5922ce1dfefc Replace huge switch statement by a lookup table.
ivo
parents: 22829
diff changeset
117
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
118 av_log(NULL, AV_LOG_INFO,".");
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
119 memset(srcBuffer, srcByte, SIZE);
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
120
23000
16ae5604c82b test widths all down to one. this tests whether the scalers correctly switch
ivo
parents: 22965
diff changeset
121 for(width=63; width>0; width--){
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
122 int dstOffset;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
123 for(dstOffset=128; dstOffset<196; dstOffset+=4){
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
124 int srcOffset;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
125 memset(dstBuffer, dstByte, SIZE);
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
126
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
127 for(srcOffset=128; srcOffset<196; srcOffset+=4){
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
128 uint8_t *src= srcBuffer+srcOffset;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
129 uint8_t *dst= dstBuffer+dstOffset;
27860
c547b2f6d825 Add some const specifiers to function name variables; fixes a bunch of
diego
parents: 26397
diff changeset
130 const char *name=NULL;
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
131
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
132 if(failed) break; //don't fill the screen with shit ...
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
133
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
134 srcBpp = func_info[funcNum].src_bpp;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
135 dstBpp = func_info[funcNum].dst_bpp;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
136 name = func_info[funcNum].name;
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
137
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
138 func_info[funcNum].func(src, dst, width*srcBpp);
22964
5922ce1dfefc Replace huge switch statement by a lookup table.
ivo
parents: 22829
diff changeset
139
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
140 if(!srcBpp) break;
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
141
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
142 for(i=0; i<SIZE; i++){
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
143 if(srcBuffer[i]!=srcByte){
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
144 av_log(NULL, AV_LOG_INFO, "src damaged at %d w:%d src:%d dst:%d %s\n",
23140
4d3870361b73 cosmetics attack, part I: Remove all tabs and prettyprint/reindent the code.
diego
parents: 23129
diff changeset
145 i, width, srcOffset, dstOffset, name);
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
146 failed=1;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
147 break;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
148 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
149 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
150 for(i=0; i<dstOffset; i++){
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
151 if(dstBuffer[i]!=dstByte){
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
152 av_log(NULL, AV_LOG_INFO, "dst damaged at %d w:%d src:%d dst:%d %s\n",
23140
4d3870361b73 cosmetics attack, part I: Remove all tabs and prettyprint/reindent the code.
diego
parents: 23129
diff changeset
153 i, width, srcOffset, dstOffset, name);
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
154 failed=1;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
155 break;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
156 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
157 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
158 for(i=dstOffset + width*dstBpp; i<SIZE; i++){
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
159 if(dstBuffer[i]!=dstByte){
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
160 av_log(NULL, AV_LOG_INFO, "dst damaged at %d w:%d src:%d dst:%d %s\n",
23140
4d3870361b73 cosmetics attack, part I: Remove all tabs and prettyprint/reindent the code.
diego
parents: 23129
diff changeset
161 i, width, srcOffset, dstOffset, name);
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
162 failed=1;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
163 break;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
164 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
165 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
166 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
167 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
168 }
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
169 if(failed) failedNum++;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
170 else if(srcBpp) passedNum++;
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
171 }
23129
9528d1ebe68f cosmetics: Remove trailing whitespace.
diego
parents: 23000
diff changeset
172
22965
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
173 av_log(NULL, AV_LOG_INFO, "\n%d converters passed, %d converters randomly overwrote memory\n", passedNum, failedNum);
c6be5039a7ca cosmetics, expand all tabs to four spaces.
ivo
parents: 22964
diff changeset
174 return failedNum;
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
175 }