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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_encoder.h

Issue 1015483002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 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/vp9/encoder/vp9_encodeframe.c ('k') | source/libvpx/vp9/encoder/vp9_encoder.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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 RD_COUNTS rd_counts; 259 RD_COUNTS rd_counts;
260 FRAME_COUNTS *counts; 260 FRAME_COUNTS *counts;
261 261
262 PICK_MODE_CONTEXT *leaf_tree; 262 PICK_MODE_CONTEXT *leaf_tree;
263 PC_TREE *pc_tree; 263 PC_TREE *pc_tree;
264 PC_TREE *pc_root; 264 PC_TREE *pc_root;
265 } ThreadData; 265 } ThreadData;
266 266
267 struct EncWorkerData; 267 struct EncWorkerData;
268 268
269 typedef struct ActiveMap {
270 int enabled;
271 int update;
272 unsigned char *map;
273 } ActiveMap;
274
269 typedef struct VP9_COMP { 275 typedef struct VP9_COMP {
270 QUANTS quants; 276 QUANTS quants;
271 ThreadData td; 277 ThreadData td;
272 DECLARE_ALIGNED(16, int16_t, y_dequant[QINDEX_RANGE][8]); 278 DECLARE_ALIGNED(16, int16_t, y_dequant[QINDEX_RANGE][8]);
273 DECLARE_ALIGNED(16, int16_t, uv_dequant[QINDEX_RANGE][8]); 279 DECLARE_ALIGNED(16, int16_t, uv_dequant[QINDEX_RANGE][8]);
274 VP9_COMMON common; 280 VP9_COMMON common;
275 VP9EncoderConfig oxcf; 281 VP9EncoderConfig oxcf;
276 struct lookahead_ctx *lookahead; 282 struct lookahead_ctx *lookahead;
277 struct lookahead_entry *alt_ref_source; 283 struct lookahead_entry *alt_ref_source;
278 284
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // Get threshold from external input. A suggested threshold is 800 for HD 357 // Get threshold from external input. A suggested threshold is 800 for HD
352 // clips, and 300 for < HD clips. 358 // clips, and 300 for < HD clips.
353 int encode_breakout; 359 int encode_breakout;
354 360
355 unsigned char *segmentation_map; 361 unsigned char *segmentation_map;
356 362
357 // segment threashold for encode breakout 363 // segment threashold for encode breakout
358 int segment_encode_breakout[MAX_SEGMENTS]; 364 int segment_encode_breakout[MAX_SEGMENTS];
359 365
360 CYCLIC_REFRESH *cyclic_refresh; 366 CYCLIC_REFRESH *cyclic_refresh;
367 ActiveMap active_map;
361 368
362 fractional_mv_step_fp *find_fractional_mv_step; 369 fractional_mv_step_fp *find_fractional_mv_step;
363 vp9_full_search_fn_t full_search_sad; 370 vp9_full_search_fn_t full_search_sad;
364 vp9_diamond_search_fn_t diamond_search_sad; 371 vp9_diamond_search_fn_t diamond_search_sad;
365 vp9_variance_fn_ptr_t fn_ptr[BLOCK_SIZES]; 372 vp9_variance_fn_ptr_t fn_ptr[BLOCK_SIZES];
366 uint64_t time_receive_data; 373 uint64_t time_receive_data;
367 uint64_t time_compress_data; 374 uint64_t time_compress_data;
368 uint64_t time_pick_lpf; 375 uint64_t time_pick_lpf;
369 uint64_t time_encode_sb_row; 376 uint64_t time_encode_sb_row;
370 377
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 return cpi->sf.mv.subpel_search_method != SUBPEL_TREE ? cost_list : NULL; 618 return cpi->sf.mv.subpel_search_method != SUBPEL_TREE ? cost_list : NULL;
612 } 619 }
613 620
614 void vp9_new_framerate(VP9_COMP *cpi, double framerate); 621 void vp9_new_framerate(VP9_COMP *cpi, double framerate);
615 622
616 #ifdef __cplusplus 623 #ifdef __cplusplus
617 } // extern "C" 624 } // extern "C"
618 #endif 625 #endif
619 626
620 #endif // VP9_ENCODER_VP9_ENCODER_H_ 627 #endif // VP9_ENCODER_VP9_ENCODER_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encodeframe.c ('k') | source/libvpx/vp9/encoder/vp9_encoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698