Jim Bankoski [Thu, 17 Apr 2014 22:42:27 +0000 (15:42 -0700)]
Merge "rename mode_index to ref index in vp9_rd_pick_inter_mode_sub_8x8"
Jingning Han [Thu, 17 Apr 2014 22:22:41 +0000 (15:22 -0700)]
Merge "Skip fetching original frame pointers for UV in background check"
James Zern [Thu, 17 Apr 2014 21:58:55 +0000 (14:58 -0700)]
Merge "examples: remove off_t overrides"
Dmitry Kovalev [Thu, 17 Apr 2014 21:34:26 +0000 (14:34 -0700)]
Merge "Replacing cpu_used with speed in VP9_CONFIG."
Yaowu Xu [Thu, 17 Apr 2014 20:47:47 +0000 (13:47 -0700)]
Merge "Relax the threshold for datarate test by 5%"
Jingning Han [Wed, 16 Apr 2014 22:43:38 +0000 (15:43 -0700)]
Skip fetching original frame pointers for UV in background check
The background detection only tracks luma component. This commits
removes the frame buffer pointer retrieval for chroma components.
Change-Id: I098bd2950f5e5829ed5dc2b48568167248da7fad
James Zern [Thu, 17 Apr 2014 17:47:08 +0000 (10:47 -0700)]
examples: remove off_t overrides
this is error prone, int64 will suffice for all cases
Change-Id: I94883f93518cfc356ed57b14dc39d79aebccf47d
Jingning Han [Thu, 17 Apr 2014 16:36:30 +0000 (09:36 -0700)]
Merge "Remove redundant buffer initialization and mode_info assignments"
Yaowu Xu [Thu, 17 Apr 2014 15:45:00 +0000 (08:45 -0700)]
Relax the threshold for datarate test by 5%
Change-Id: Ibc770df77939a68f9f0d1d78c0edd737b0d398ad
Jim Bankoski [Thu, 17 Apr 2014 15:40:47 +0000 (08:40 -0700)]
rename mode_index to ref index in vp9_rd_pick_inter_mode_sub_8x8
Change-Id: I00bceb9de2009963c91e5102564c05c31ac1ad78
Jim Bankoski [Thu, 17 Apr 2014 14:30:55 +0000 (07:30 -0700)]
add a context tree structure to encoder
This patch sets up a quad_tree structure (pc_tree) for holding all of
pick_mode_context data we use at any square block size during encoding
or picking modes. That includes contexts for 2 horizontal and 2 vertical
splits, one none, and pointers to 4 sub pc_tree nodes corresponding
to split. It also includes a pointer to the current chosen partitioning.
This replaces code that held an index for every level in the pick
modes array including: sb_index, mb_index,
b_index, ab_index.
These were used as stateful indexes that pointed to the current pick mode
contexts you had at each level stored in the following arrays
array ab4x4_context[][][],
sb8x4_context[][][], sb4x8_context[][][], sb8x8_context[][][],
sb8x16_context[][][], sb16x8_context[][][], mb_context[][], sb32x16[][],
sb16x32[], sb32_context[], sb32x64_context[], sb64x32_context[],
sb64_context
and the partitioning that had been stored in the following:
b_partitioning, mb_partitioning, sb_partitioning, and sb64_partitioning.
Prior to this patch before doing an encode you had to set the appropriate
index for your block size ( switch statement), update it ( up to 3
lookups for the index array value) and then make your call into a recursive
function at which point you'd have to call get_context which then
had to do a switch statement based on the blocksize, and then up to 3
lookups based upon the block size to find the context to use.
With the new code the context for the block size is passed around directly
avoiding the extraneous switch statements and multi dimensional array
look ups that were listed above. At any level in the search all of the
contexts are local to the pc_tree you are working on (in?).
In addition in most places code that used to call sub functions and
then check if the block size was 4x4 and index was > 0 and return
now don't preferring instead to call the right none function on the inside.
Change-Id: I06e39318269d9af2ce37961b3f95e181b57f5ed9
Dmitry Kovalev [Thu, 17 Apr 2014 02:27:49 +0000 (19:27 -0700)]
Merge "Cleaning up vp9_init_second_pass()."
Dmitry Kovalev [Thu, 17 Apr 2014 01:31:42 +0000 (18:31 -0700)]
Replacing cpu_used with speed in VP9_CONFIG.
Change-Id: I86b85b5c11388e84a48f8936330c0d920df5d1f0
Jingning Han [Wed, 16 Apr 2014 17:39:23 +0000 (10:39 -0700)]
Remove redundant buffer initialization and mode_info assignments
There is no need to initialize source/dst frame buffers at frame
level. These will be done at block coding stage. This commit hence
removes the redundant operations.
Change-Id: I11d9f2556058c6205c8e58ed53e31f78622c41b7
Jingning Han [Thu, 17 Apr 2014 00:00:13 +0000 (17:00 -0700)]
Merge "Enable more precise background detection for partition decision"
Yaowu Xu [Wed, 16 Apr 2014 22:41:04 +0000 (15:41 -0700)]
Merge "Prevent reading of uninitialized value"
Dmitry Kovalev [Wed, 16 Apr 2014 22:17:53 +0000 (15:17 -0700)]
Cleaning up vp9_init_second_pass().
Change-Id: Ibf360fe0728e07de448e77e3841c49eb25d3ba2d
Paul Wilkins [Wed, 16 Apr 2014 21:24:25 +0000 (14:24 -0700)]
Merge "Remove old activity masking code."
Dmitry Kovalev [Wed, 16 Apr 2014 21:21:32 +0000 (14:21 -0700)]
Merge "Renaming VP9D_CONFIG to VP9DecoderConfig."
Dmitry Kovalev [Wed, 16 Apr 2014 21:07:46 +0000 (14:07 -0700)]
Merge "Adding sad function generation macros."
Jingning Han [Tue, 15 Apr 2014 18:41:39 +0000 (11:41 -0700)]
Enable more precise background detection for partition decision
This commit compares the current original frame to the previous
original frame at 64x64 block level and decides if the entire
block belongs to background area. If it is in the background area,
skip non-RD partition search and copy the partition types of the
collocated block in the previous frame.
For vidyo1 in the rtc set, this makes the speed -5 coding speed
about 8% faster. The overall compression performance is down by
1.37% for rtc set.
Change-Id: Iccf920562fcc88f21d377fb6a44c547c8689b7ea
Yaowu Xu [Wed, 16 Apr 2014 19:22:49 +0000 (12:22 -0700)]
Prevent reading of uninitialized value
This commit added a check of reference frame to make sure that pre
buffer pointers are initialized only when necessary and make them
to 0 if ref frame is intra, hence those buffer should never be used.
Change-Id: Ieb474fcd9feb759f02e2f9c282b7348a8fa31117
Yaowu Xu [Wed, 16 Apr 2014 19:55:48 +0000 (12:55 -0700)]
Merge "Add consts in set_fixed_partitioning()"
Yaowu Xu [Wed, 16 Apr 2014 19:29:12 +0000 (12:29 -0700)]
Merge "Refactor common code into a function"
Paul Wilkins [Mon, 14 Apr 2014 19:38:57 +0000 (12:38 -0700)]
Remove old activity masking code.
Delete code relating to the old VP8_TUNE_SSIM flag
as this code does not currently work and is largely made
redundant in VP9 by the various AQ modes.
Change-Id: I71f28e1f680573d296422254489000678552b17b
Paul Wilkins [Wed, 16 Apr 2014 19:07:42 +0000 (12:07 -0700)]
Merge "Fix rate control bug."
Alex Converse [Fri, 11 Apr 2014 19:42:13 +0000 (12:42 -0700)]
Unfork rd_thresh sub8x8.
Remove duplicate rd_thresh code introduced when vp9_rd_pick_inter_mode_sub8x8()
was forked from vp9_rd_pick_inter_mode_sb().
Change-Id: I3c9b7143d182e1f28b29c16518eaca81dc2ecfed
Paul Wilkins [Wed, 16 Apr 2014 02:15:43 +0000 (19:15 -0700)]
Fix rate control bug.
Fix rate control bug whereby the rate factor heuristics
were being updated on arf overlays causing a rate surge
for a few frames followed by a corrective drop.
This fix eliminates many of the overshoot problems that
we were seeing on hard clips (even without applying
stricter vbr rate control) and also helps quality on
almost all clips with some hard clips improving by >5%.
Overall quality results measured at speed 2.
Derf +1.78% opsnr , +2.44% SSIM
Stdhd +2.41% opsnr, +2.85% SSIM
Change-Id: I2369df6295c2705963fa6307877f6acb304bcc39
Vignesh Venkatasubramanian [Wed, 16 Apr 2014 16:47:24 +0000 (09:47 -0700)]
Merge "webmdec: Fix return values for webm_read_frame"
Dmitry Kovalev [Wed, 16 Apr 2014 06:00:16 +0000 (23:00 -0700)]
Merge "Renaming av_per_frame_bandwidth to avg_frame_bandwidth."
Dmitry Kovalev [Wed, 16 Apr 2014 05:59:37 +0000 (22:59 -0700)]
Merge "Consistent mode names."
Dmitry Kovalev [Thu, 10 Apr 2014 18:28:29 +0000 (11:28 -0700)]
Renaming av_per_frame_bandwidth to avg_frame_bandwidth.
Just to be consistent with min_frame_bandwidth & max_frame_bandwidth names.
Change-Id: I36702c708cba9ad1a5c36393f37758a2edeadb90
Dmitry Kovalev [Wed, 16 Apr 2014 00:55:13 +0000 (17:55 -0700)]
Merge "Adding scale_if_required() function."
Dmitry Kovalev [Wed, 16 Apr 2014 00:46:45 +0000 (17:46 -0700)]
Adding sad function generation macros.
Change-Id: If6f013835b69ae61b0a0c6006fe0955303f579a5
Dmitry Kovalev [Tue, 15 Apr 2014 23:39:27 +0000 (16:39 -0700)]
Merge "Adding get_search_range() function."
Dmitry Kovalev [Tue, 15 Apr 2014 21:58:31 +0000 (14:58 -0700)]
Merge "Cleaning up vp9_rc_compute_frame_size_bounds()."
Dmitry Kovalev [Tue, 15 Apr 2014 21:57:33 +0000 (14:57 -0700)]
Merge "Cleaning up vp9_twopass_worst_quality()."
Dmitry Kovalev [Tue, 15 Apr 2014 21:43:45 +0000 (14:43 -0700)]
Adding scale_if_required() function.
Change-Id: I87819fed5aebb6ffe2f4d4655df226235a3d21cb
Dmitry Kovalev [Tue, 15 Apr 2014 21:40:40 +0000 (14:40 -0700)]
Adding get_search_range() function.
Change-Id: I988eea8f78f71135b914661420c5c75674e5c010
Dmitry Kovalev [Tue, 15 Apr 2014 19:00:23 +0000 (12:00 -0700)]
Merge "More user friendly vpxenc help strings."
Vignesh Venkatasubramanian [Mon, 14 Apr 2014 22:21:22 +0000 (15:21 -0700)]
webmdec: Fix return values for webm_read_frame
Fix return values for webm_read_frame so that we can distinguish between
error and end of stream. 0 - Success, 1 - End of stream, -1 error.
Change-Id: Ic35d0c7d7a166e027711a3d2300ecdda25a5d0cc
Yaowu Xu [Tue, 15 Apr 2014 17:49:27 +0000 (10:49 -0700)]
Add consts in set_fixed_partitioning()
Change-Id: Ib8c1b3b0a5a5689d3261dc822a69e9d473b89be1
Dmitry Kovalev [Tue, 15 Apr 2014 17:39:31 +0000 (10:39 -0700)]
Merge "Moving frame_frags field from VP9Common to VP9_COMP."
Dmitry Kovalev [Tue, 15 Apr 2014 17:25:14 +0000 (10:25 -0700)]
Merge "Using anonymous enum instead of macros."
Dmitry Kovalev [Tue, 15 Apr 2014 17:24:59 +0000 (10:24 -0700)]
Merge "Adding get_skip_encode_frame()."
Yaowu Xu [Tue, 15 Apr 2014 17:02:33 +0000 (10:02 -0700)]
Refactor common code into a function
Change-Id: Id156af5662ebe6fbe1cab636564f5f4bedb85ab0
Vignesh Venkatasubramanian [Tue, 15 Apr 2014 16:54:01 +0000 (09:54 -0700)]
Merge "Remove fatal() call in webmdec.c"
Dmitry Kovalev [Tue, 15 Apr 2014 00:05:15 +0000 (17:05 -0700)]
Merge "Removing unused vp9_mcomp_x86.h file."
Dmitry Kovalev [Tue, 15 Apr 2014 00:05:04 +0000 (17:05 -0700)]
Merge "Replacing int_mv with MV."
Paul Wilkins [Mon, 14 Apr 2014 23:41:09 +0000 (16:41 -0700)]
Merge "Remove vp9_ prefix on static inline function."
Dmitry Kovalev [Mon, 14 Apr 2014 22:19:43 +0000 (15:19 -0700)]
Adding get_skip_encode_frame().
Change-Id: Id687aa617650a859463e7ae63dd4c0dc4f3e4779
Dmitry Kovalev [Mon, 14 Apr 2014 22:11:13 +0000 (15:11 -0700)]
Using anonymous enum instead of macros.
Change-Id: I5ed360585dae2c9fea6c32058dbfb8ec07700677
Yaowu Xu [Mon, 14 Apr 2014 21:39:50 +0000 (14:39 -0700)]
Merge "Reduce code duplication"
Adrian Grange [Mon, 14 Apr 2014 21:39:46 +0000 (14:39 -0700)]
Merge "Enable vpxenc to specify internal coded frame size"
Vignesh Venkatasubramanian [Mon, 14 Apr 2014 21:21:47 +0000 (14:21 -0700)]
Remove fatal() call in webmdec.c
Remove call to fatal() in webmdec.c so that it does not depend on
tools_common.c for compilation.
Change-Id: I3eec483afe6fae72436993c72b26d61d14a7f2bf
Dmitry Kovalev [Mon, 14 Apr 2014 21:09:39 +0000 (14:09 -0700)]
Consistent mode names.
Change-Id: Icb4851d98c951506fe5d73d8d5a8ac7e53fecfd0
Dmitry Kovalev [Mon, 14 Apr 2014 19:12:50 +0000 (12:12 -0700)]
More user friendly vpxenc help strings.
Change-Id: I257fb32673c47848258dc7e6e22147d0beb49f86
Paul Wilkins [Mon, 14 Apr 2014 19:08:42 +0000 (12:08 -0700)]
Merge "Speed 2 alternative balance."
Dmitry Kovalev [Mon, 14 Apr 2014 18:42:56 +0000 (11:42 -0700)]
Replacing int_mv with MV.
Change-Id: I35b9d1856d7951b8df7c933df6936dfc52a28451
Dmitry Kovalev [Mon, 14 Apr 2014 18:32:58 +0000 (11:32 -0700)]
Removing unused vp9_mcomp_x86.h file.
We don't use declarations from this file. The real declarations
(differently named) are in vp9_rtcd_defs.pl, e.g. vp9_full_search_sad.
Change-Id: I73cbf064305710ba20747233cfdbe67366f069a0
Yaowu Xu [Mon, 14 Apr 2014 18:23:19 +0000 (11:23 -0700)]
Reduce code duplication
Change-Id: I6ea1c335da9ca5b65f6a11466b417ad196fd0d65
Adrian Grange [Wed, 9 Apr 2014 21:51:29 +0000 (14:51 -0700)]
Enable vpxenc to specify internal coded frame size
Added command line flags "resize-width" & "resize-height"
to allow the user to specify the frame size to encode at.
These two flags are ignored if the "resize-allowed" switch
is not set to 1.
All frames in the clip are then encoded at this size, which
must be smaller than the raw frame size.
Change-Id: I3d64bd9303d5c0bd678461a866a1ea621700d744
Dmitry Kovalev [Mon, 14 Apr 2014 17:33:43 +0000 (10:33 -0700)]
Merge "Cleaning up check_best_zero_mv()."
Dmitry Kovalev [Mon, 14 Apr 2014 17:32:58 +0000 (10:32 -0700)]
Merge "Cleaning up optimize_b()."
Dmitry Kovalev [Mon, 14 Apr 2014 17:30:38 +0000 (10:30 -0700)]
Merge "Removing redundant mvsadcost local variables."
Dmitry Kovalev [Mon, 14 Apr 2014 17:29:22 +0000 (10:29 -0700)]
Merge "Removing redundant checks from vp9_change_config()."
Paul Wilkins [Mon, 14 Apr 2014 17:04:35 +0000 (10:04 -0700)]
Remove vp9_ prefix on static inline function.
This prefix reserved for global scope functions etc.
Change-Id: I671cda2a63e01a40aae3d7407dd1bb4d338d709c
Paul Wilkins [Fri, 28 Mar 2014 15:21:26 +0000 (15:21 +0000)]
Speed 2 alternative balance.
A previous path improved speed 2 quality a little but
more extensive testing showed that it slowed encode
by a few %.
The change will have a similar effect for speed 3 but
should not impact speeds 4+;
This experiment should reverse that and give a speed
up at the cost of a small quality loss.
Borg results pending.
Change-Id: I4493fc1541aaf44587f1a41ff219f7088da9252c
Yaowu Xu [Mon, 14 Apr 2014 03:21:54 +0000 (20:21 -0700)]
Merge "Add a few "const""
Dmitry Kovalev [Sat, 12 Apr 2014 04:28:56 +0000 (21:28 -0700)]
Merge "Adding consts in vp9_picklpf.c."
Dmitry Kovalev [Sat, 12 Apr 2014 04:26:59 +0000 (21:26 -0700)]
Merge "Fixing error found by ioc."
Dmitry Kovalev [Sat, 12 Apr 2014 01:27:34 +0000 (18:27 -0700)]
Merge "Adding vp9_rc_update_framerate() function."
Dmitry Kovalev [Sat, 12 Apr 2014 00:14:15 +0000 (17:14 -0700)]
Fixing error found by ioc.
vp9/encoder/vp9_rdopt.c:3913:44: runtime error: index -1 out of bounds for
type 'RefBuffer [3]'.
Change-Id: Ic0ec755328853b359e3a1ee84d319589183e38b7
hkuang [Fri, 11 Apr 2014 23:46:14 +0000 (16:46 -0700)]
Merge "Fix the VP9 encoding unit test failure on ARM."
Dmitry Kovalev [Fri, 11 Apr 2014 22:57:39 +0000 (15:57 -0700)]
Removing redundant checks from vp9_change_config().
Both values are already checked as command line arguments:
RANGE_CHECK_HI(cfg, g_lag_in_frames, MAX_LAG_BUFFERS);
RANGE_CHECK_HI(extra_cfg, sharpness, 7);
Change-Id: I584798d587152d88dfd517c210054b466f4e5f8a
Yaowu Xu [Thu, 10 Apr 2014 23:22:52 +0000 (16:22 -0700)]
Add a few "const"
Change-Id: I258351fc1fff70ff2e9fa4845e575b0bb6a423d1
Yaowu Xu [Fri, 11 Apr 2014 22:50:02 +0000 (15:50 -0700)]
Merge "Replace the call to set_offsets()"
Dmitry Kovalev [Fri, 11 Apr 2014 22:33:50 +0000 (15:33 -0700)]
Adding consts in vp9_picklpf.c.
Change-Id: I84af62cc52954fc2eaf0b737245be76551fc8005
Dmitry Kovalev [Fri, 11 Apr 2014 21:50:11 +0000 (14:50 -0700)]
Renaming VP9D_CONFIG to VP9DecoderConfig.
Change-Id: I9677aab1c7bb0ca9e989cb21348a3a2c926d8f5a
Dmitry Kovalev [Fri, 11 Apr 2014 21:32:07 +0000 (14:32 -0700)]
Cleaning up check_best_zero_mv().
Change-Id: I5c450a4932fb4f20449487596932458ee3b48ae0
Dmitry Kovalev [Fri, 11 Apr 2014 21:23:13 +0000 (14:23 -0700)]
Adding vp9_rc_update_framerate() function.
Change-Id: Ie0c905b6f32a37e4360bbb44ceeae77c42ad1dc5
James Zern [Fri, 11 Apr 2014 21:23:11 +0000 (14:23 -0700)]
Merge "rename README.webm -> README.libvpx"
Dmitry Kovalev [Fri, 11 Apr 2014 21:02:17 +0000 (14:02 -0700)]
Removing redundant mvsadcost local variables.
Change-Id: I19a197b9525172579f253702c77fa76af88f6565
Dmitry Kovalev [Fri, 11 Apr 2014 21:09:17 +0000 (14:09 -0700)]
Merge "Removing offset argument of mvcomp macros."
Dmitry Kovalev [Fri, 11 Apr 2014 21:08:16 +0000 (14:08 -0700)]
Merge "Adding RD_OPT struct."
Dmitry Kovalev [Fri, 11 Apr 2014 20:50:44 +0000 (13:50 -0700)]
Merge "Removing unused cost arguments from mcomp functions."
Dmitry Kovalev [Fri, 11 Apr 2014 20:46:54 +0000 (13:46 -0700)]
Merge "Renaming zz_motion_search() to get_block_variance()."
Dmitry Kovalev [Fri, 11 Apr 2014 20:45:53 +0000 (13:45 -0700)]
Merge "Adding temp variable q to vp9_cyclic_refresh_setup()."
Yaowu Xu [Thu, 10 Apr 2014 22:57:38 +0000 (15:57 -0700)]
Replace the call to set_offsets()
With a more approriate one vp9_setup_src_planes() as only src buffer
pointers need to be initialized here.
Change-Id: I40fac4d8b2d39eb7d0c65b9b6afab45138a13936
James Zern [Fri, 11 Apr 2014 19:28:01 +0000 (12:28 -0700)]
rename README.webm -> README.libvpx
matches the project name and doesn't share a media file extension
Change-Id: I9ad6c0a180e36c41f8fc49120615a070ea792a30
Dmitry Kovalev [Fri, 11 Apr 2014 18:03:56 +0000 (11:03 -0700)]
Renaming zz_motion_search() to get_block_variance().
Change-Id: Ibec06411c8cd843c2ca33b528a511a656e551983
Dmitry Kovalev [Wed, 9 Apr 2014 22:00:14 +0000 (15:00 -0700)]
Adding RD_OPT struct.
Change-Id: I2d1b5c1481aefe226082e1f096ca9edd340d4d31
Dmitry Kovalev [Fri, 11 Apr 2014 17:36:10 +0000 (10:36 -0700)]
vp9_rc_postencode_update() cleanup.
Change-Id: Idb1289aa0eadff8f75dcf995547ab3a1b9e27375
Dmitry Kovalev [Fri, 11 Apr 2014 17:31:54 +0000 (10:31 -0700)]
Adding temp variable q to vp9_cyclic_refresh_setup().
Change-Id: If0e9c811c8ae78c0914d615bad0067a5b57e4a71
Dmitry Kovalev [Fri, 11 Apr 2014 17:27:46 +0000 (10:27 -0700)]
Merge "Removing legacy XMA code from vp8."
Dmitry Kovalev [Fri, 11 Apr 2014 06:28:52 +0000 (23:28 -0700)]
Removing unused cost arguments from mcomp functions.
Change-Id: Id81a76d18be6b2de69f81bb563d74c3bb356d434
Dmitry Kovalev [Fri, 11 Apr 2014 17:23:35 +0000 (10:23 -0700)]
Merge "Removing unused initial_{width, height} from VP9Decoder."
Dmitry Kovalev [Fri, 11 Apr 2014 17:23:23 +0000 (10:23 -0700)]
Merge "Removing unnecessary typedef."
Dmitry Kovalev [Fri, 11 Apr 2014 17:23:18 +0000 (10:23 -0700)]
Merge "Replacing int_mv with MV."
Paul Wilkins [Fri, 4 Apr 2014 13:39:39 +0000 (14:39 +0100)]
Adjust active minQ calculation for normal frames.
This increases the range of Q values available to
normal inter frames to allow encoder a better chance
to hit the target rate.
Change-Id: I33cd96469a46577fdcea631e26d3355710909e6d