OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 #endif | 1536 #endif |
1537 | 1537 |
1538 vp8_clear_system_state(); | 1538 vp8_clear_system_state(); |
1539 | 1539 |
1540 #if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING | 1540 #if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING |
1541 pack_coef_probs(cpi); | 1541 pack_coef_probs(cpi); |
1542 #else | 1542 #else |
1543 if (pc->refresh_entropy_probs == 0) | 1543 if (pc->refresh_entropy_probs == 0) |
1544 { | 1544 { |
1545 /* save a copy for later refresh */ | 1545 /* save a copy for later refresh */ |
1546 vpx_memcpy(&cpi->common.lfc, &cpi->common.fc, sizeof(cpi->common.fc)); | 1546 memcpy(&cpi->common.lfc, &cpi->common.fc, sizeof(cpi->common.fc)); |
1547 } | 1547 } |
1548 | 1548 |
1549 vp8_update_coef_probs(cpi); | 1549 vp8_update_coef_probs(cpi); |
1550 #endif | 1550 #endif |
1551 | 1551 |
1552 #ifdef VP8_ENTROPY_STATS | 1552 #ifdef VP8_ENTROPY_STATS |
1553 active_section = 2; | 1553 active_section = 2; |
1554 #endif | 1554 #endif |
1555 | 1555 |
1556 /* Write out the mb_no_coeff_skip flag */ | 1556 /* Write out the mb_no_coeff_skip flag */ |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 write_partition_size(dp, cpi->partition_sz[i]); | 1613 write_partition_size(dp, cpi->partition_sz[i]); |
1614 dp += 3; | 1614 dp += 3; |
1615 } | 1615 } |
1616 } | 1616 } |
1617 | 1617 |
1618 if (!cpi->output_partition) | 1618 if (!cpi->output_partition) |
1619 { | 1619 { |
1620 /* concatenate partition buffers */ | 1620 /* concatenate partition buffers */ |
1621 for(i = 0; i < num_part; i++) | 1621 for(i = 0; i < num_part; i++) |
1622 { | 1622 { |
1623 vpx_memmove(dp, cpi->partition_d[i+1], cpi->partition_sz[i+1]); | 1623 memmove(dp, cpi->partition_d[i+1], cpi->partition_sz[i+1]); |
1624 cpi->partition_d[i+1] = dp; | 1624 cpi->partition_d[i+1] = dp; |
1625 dp += cpi->partition_sz[i+1]; | 1625 dp += cpi->partition_sz[i+1]; |
1626 } | 1626 } |
1627 } | 1627 } |
1628 | 1628 |
1629 /* update total size */ | 1629 /* update total size */ |
1630 *size = 0; | 1630 *size = 0; |
1631 for(i = 0; i < num_part+1; i++) | 1631 for(i = 0; i < num_part+1; i++) |
1632 { | 1632 { |
1633 *size += cpi->partition_sz[i]; | 1633 *size += cpi->partition_sz[i]; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 fprintf(f, " },\n"); | 1728 fprintf(f, " },\n"); |
1729 } | 1729 } |
1730 | 1730 |
1731 fprintf(f, " },\n"); | 1731 fprintf(f, " },\n"); |
1732 } | 1732 } |
1733 | 1733 |
1734 fprintf(f, "};\n"); | 1734 fprintf(f, "};\n"); |
1735 fclose(f); | 1735 fclose(f); |
1736 } | 1736 } |
1737 #endif | 1737 #endif |
OLD | NEW |