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

Side by Side Diff: source/libvpx/vp8/encoder/bitstream.c

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 months 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
« no previous file with comments | « source/libvpx/vp8/decoder/threading.c ('k') | source/libvpx/vp8/encoder/denoising.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « source/libvpx/vp8/decoder/threading.c ('k') | source/libvpx/vp8/encoder/denoising.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698