Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Side by Side Diff: courgette/adjustment_method_2.cc

Issue 8166013: Further refactoring, move ImageInfo into Disassembler/DisassemblerWin32X86. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase over other changes, fix nit. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « courgette/adjustment_method.cc ('k') | courgette/assembly_program.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "courgette/adjustment_method.h" 5 #include "courgette/adjustment_method.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/format_macros.h" 16 #include "base/format_macros.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/stringprintf.h" 18 #include "base/stringprintf.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "courgette/assembly_program.h" 20 #include "courgette/assembly_program.h"
21 #include "courgette/courgette.h" 21 #include "courgette/courgette.h"
22 #include "courgette/encoded_program.h" 22 #include "courgette/encoded_program.h"
23 #include "courgette/image_info.h"
24 23
25 /* 24 /*
26 25
27 Shingle weighting matching. 26 Shingle weighting matching.
28 27
29 We have a sequence S1 of symbols from alphabet A1={A,B,C,...} called the 'model' 28 We have a sequence S1 of symbols from alphabet A1={A,B,C,...} called the 'model'
30 and a second sequence of S2 of symbols from alphabet A2={U,V,W,....} called the 29 and a second sequence of S2 of symbols from alphabet A2={U,V,W,....} called the
31 'program'. Each symbol in A1 has a unique numerical name or index. We can 30 'program'. Each symbol in A1 has a unique numerical name or index. We can
32 transcribe the sequence S1 to a sequence T1 of indexes of the symbols. We wish 31 transcribe the sequence S1 to a sequence T1 of indexes of the symbols. We wish
33 to assign indexes to the symbols in A2 so that when we transcribe S2 into T2, T2 32 to assign indexes to the symbols in A2 so that when we transcribe S2 into T2, T2
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 1290
1292 //////////////////////////////////////////////////////////////////////////////// 1291 ////////////////////////////////////////////////////////////////////////////////
1293 1292
1294 } // namespace adjustment_method_2 1293 } // namespace adjustment_method_2
1295 1294
1296 AdjustmentMethod* AdjustmentMethod::MakeShingleAdjustmentMethod() { 1295 AdjustmentMethod* AdjustmentMethod::MakeShingleAdjustmentMethod() {
1297 return new adjustment_method_2::Adjuster(); 1296 return new adjustment_method_2::Adjuster();
1298 } 1297 }
1299 1298
1300 } // namespace courgette 1299 } // namespace courgette
OLDNEW
« no previous file with comments | « courgette/adjustment_method.cc ('k') | courgette/assembly_program.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698