| OLD | NEW |
| 1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
| 4 // that can be found in the COPYING file in the root of the source | 4 // that can be found in the COPYING file in the root of the source |
| 5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
| 8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 9 // | 9 // |
| 10 // Incremental decoding | 10 // Incremental decoding |
| 11 // | 11 // |
| 12 // Author: somnath@google.com (Somnath Banerjee) | 12 // Author: somnath@google.com (Somnath Banerjee) |
| 13 | 13 |
| 14 #include <assert.h> | 14 #include <assert.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 #include <stdlib.h> | 16 #include <stdlib.h> |
| 17 | 17 |
| 18 #include "./alphai.h" | 18 #include "./alphai_dec.h" |
| 19 #include "./webpi.h" | 19 #include "./webpi_dec.h" |
| 20 #include "./vp8i.h" | 20 #include "./vp8i_dec.h" |
| 21 #include "../utils/utils.h" | 21 #include "../utils/utils.h" |
| 22 | 22 |
| 23 // In append mode, buffer allocations increase as multiples of this value. | 23 // In append mode, buffer allocations increase as multiples of this value. |
| 24 // Needs to be a power of 2. | 24 // Needs to be a power of 2. |
| 25 #define CHUNK_SIZE 4096 | 25 #define CHUNK_SIZE 4096 |
| 26 #define MAX_MB_SIZE 4096 | 26 #define MAX_MB_SIZE 4096 |
| 27 | 27 |
| 28 //------------------------------------------------------------------------------ | 28 //------------------------------------------------------------------------------ |
| 29 // Data structures for memory and states | 29 // Data structures for memory and states |
| 30 | 30 |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 return 0; | 883 return 0; |
| 884 } | 884 } |
| 885 | 885 |
| 886 idec->io_.put = put; | 886 idec->io_.put = put; |
| 887 idec->io_.setup = setup; | 887 idec->io_.setup = setup; |
| 888 idec->io_.teardown = teardown; | 888 idec->io_.teardown = teardown; |
| 889 idec->io_.opaque = user_data; | 889 idec->io_.opaque = user_data; |
| 890 | 890 |
| 891 return 1; | 891 return 1; |
| 892 } | 892 } |
| OLD | NEW |