| OLD | NEW |
| 1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // This code is licensed under the same terms as WebM: | 3 // Use of this source code is governed by a BSD-style license |
| 4 // Software License Agreement: http://www.webmproject.org/license/software/ | 4 // that can be found in the COPYING file in the root of the source |
| 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. |
| 6 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 7 // | 9 // |
| 8 // Quantization | 10 // Quantization |
| 9 // | 11 // |
| 10 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 11 | 13 |
| 12 #include <assert.h> | 14 #include <assert.h> |
| 13 #include <math.h> | 15 #include <math.h> |
| 14 | 16 |
| 15 #include "./vp8enci.h" | 17 #include "./vp8enci.h" |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 SimpleQuantize(it, rd); | 1043 SimpleQuantize(it, rd); |
| 1042 } | 1044 } |
| 1043 is_skipped = (rd->nz == 0); | 1045 is_skipped = (rd->nz == 0); |
| 1044 VP8SetSkip(it, is_skipped); | 1046 VP8SetSkip(it, is_skipped); |
| 1045 return is_skipped; | 1047 return is_skipped; |
| 1046 } | 1048 } |
| 1047 | 1049 |
| 1048 #if defined(__cplusplus) || defined(c_plusplus) | 1050 #if defined(__cplusplus) || defined(c_plusplus) |
| 1049 } // extern "C" | 1051 } // extern "C" |
| 1050 #endif | 1052 #endif |
| OLD | NEW |