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

Side by Side Diff: source/libvpx/vp8/encoder/onyx_int.h

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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/encoder/onyx_if.c ('k') | source/libvpx/vp8/encoder/pickinter.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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 int mvsadcosts[2][MVfpvals+1]; 709 int mvsadcosts[2][MVfpvals+1];
710 int mbmode_cost[2][MB_MODE_COUNT]; 710 int mbmode_cost[2][MB_MODE_COUNT];
711 int intra_uv_mode_cost[2][MB_MODE_COUNT]; 711 int intra_uv_mode_cost[2][MB_MODE_COUNT];
712 int bmode_costs[10][10][10]; 712 int bmode_costs[10][10][10];
713 int inter_bmode_costs[B_MODE_COUNT]; 713 int inter_bmode_costs[B_MODE_COUNT];
714 int token_costs[BLOCK_TYPES][COEF_BANDS] 714 int token_costs[BLOCK_TYPES][COEF_BANDS]
715 [PREV_COEF_CONTEXTS][MAX_ENTROPY_TOKENS]; 715 [PREV_COEF_CONTEXTS][MAX_ENTROPY_TOKENS];
716 } rd_costs; 716 } rd_costs;
717 } VP8_COMP; 717 } VP8_COMP;
718 718
719 void vp8_alloc_compressor_data(VP8_COMP *cpi);
720 int vp8_reverse_trans(int x);
721 void vp8_new_framerate(VP8_COMP *cpi, double framerate);
722 void vp8_loopfilter_frame(VP8_COMP *cpi, VP8_COMMON *cm);
723
719 void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, 724 void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest,
720 unsigned char *dest_end, unsigned long *size); 725 unsigned char *dest_end, unsigned long *size);
721 726
722 void vp8_tokenize_mb(VP8_COMP *, MACROBLOCK *, TOKENEXTRA **); 727 void vp8_tokenize_mb(VP8_COMP *, MACROBLOCK *, TOKENEXTRA **);
723 728
724 void vp8_set_speed_features(VP8_COMP *cpi); 729 void vp8_set_speed_features(VP8_COMP *cpi);
725 730
726 #if CONFIG_DEBUG 731 #if CONFIG_DEBUG
727 #define CHECK_MEM_ERROR(lval,expr) do {\ 732 #define CHECK_MEM_ERROR(lval,expr) do {\
728 lval = (expr); \ 733 lval = (expr); \
729 if(!lval) \ 734 if(!lval) \
730 vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR,\ 735 vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR,\
731 "Failed to allocate "#lval" at %s:%d", \ 736 "Failed to allocate "#lval" at %s:%d", \
732 __FILE__,__LINE__);\ 737 __FILE__,__LINE__);\
733 } while(0) 738 } while(0)
734 #else 739 #else
735 #define CHECK_MEM_ERROR(lval,expr) do {\ 740 #define CHECK_MEM_ERROR(lval,expr) do {\
736 lval = (expr); \ 741 lval = (expr); \
737 if(!lval) \ 742 if(!lval) \
738 vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR,\ 743 vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR,\
739 "Failed to allocate "#lval);\ 744 "Failed to allocate "#lval);\
740 } while(0) 745 } while(0)
741 #endif 746 #endif
742 #ifdef __cplusplus 747 #ifdef __cplusplus
743 } // extern "C" 748 } // extern "C"
744 #endif 749 #endif
745 750
746 #endif // VP8_ENCODER_ONYX_INT_H_ 751 #endif // VP8_ENCODER_ONYX_INT_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/onyx_if.c ('k') | source/libvpx/vp8/encoder/pickinter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698