1. 01 Feb, 2011 - 2 commits
    • Scott LaVarnway's avatar
      Removed prediction_error accumulation · 9e7fec21
      Scott LaVarnway authored
      from vp8cx_encode_intra_macro_block.  prediction_error is used when
      deciding if a frame should be a keyframe.  After reviewing this with
      Yaowu, it was pointed out that vp8cx_encode_intra_macro_block
      is only called for keyframes, so the accumulation is unnecessary.
      
      Change-Id: Id79dc81b80d4f5d124f3a0dba1b923887e2e1ec8
      9e7fec21
    • Scott LaVarnway's avatar
      Removed last_auto_filter_prediction_error · 317f0da9
      Scott LaVarnway authored
      last_auto_filter_prediction_error is not really used.
      
      Change-Id: Ic6e56c4076bbd250ef783ee1be46964c85f62864
      317f0da9
  2. 31 Jan, 2011 - 2 commits
  3. 28 Jan, 2011 - 4 commits
    • Yaowu Xu's avatar
      change the threshold of DC check for encode breakout · 8f279596
      Yaowu Xu authored
      Previously, the DC check is to make sure there is no code-able
      DC shift for quantizer Q0, which has been verified rather
      conservative. This commit changes the criteria to have two
      components, DC and AC, to address the conservativeness. First,
      it checks if all AC energy is enough to contribute a single
      non-zero quantized AC coefficient. Second, for DC, the decision
      to skip further considers two possible scenarios: 1. There is
      no code-able 2nd order DC coefficient at all; 2 The residue is
      relatively flat, but the uniform DC change is very small, i.e.
      less than 1/2 gray level per pixel.
      
      Comparing to previous criteria, the new criteria is about 10%
      to 15% faster in encoding time with a very small quality loss.
      (threshold ~1000 and quality range 33db-45db)
      
      It should be noted that this commit enables "automatic" static
      threshold for encodebreakout if a non-zero small value is passed
      in to encoder.
      
      Change-Id: I0f77719a1ac2c2dfddbd950d84920df374515ce3
      8f279596
    • Adrian Grange's avatar
      Changed condition for using RD in Intra Mode · e9f513d7
      Adrian Grange authored
      The condition for using RD when selecting the intra coding mode
      for a MB is that the RD flag is set AND we're not in real-time
      mode.
      
      Previously the code used RD if either the RD flag was set OR
      we were not using real-time mode.
      
      Change-Id: Ic711151298468a3f99babad39ba8375f66d55a08
      e9f513d7
    • Paul Wilkins's avatar
      Inconsistent distortion metric in vp8_rd_pick_intra_mbuv_mode · dcb23e2a
      Paul Wilkins authored
      This function was using a variance metric compared to and SSE metric in
      other places (eg. vp8_rd_inter_uv)
      
      Change-Id: I9109fcc5a13bca9db1d7ead500fe14999ab233eb
      dcb23e2a
    • Tero Rintaluoma's avatar
      Adds "armvX-none-rvct" targets · 11a222f5
      Tero Rintaluoma authored
      Adds following targets to configure script to support RVCT compilation
      without operating system support (for Profiler or bare metal images).
       - armv5te-none-rvct
       - armv6-none-rvct
       - armv7-none-rvct
      
      To strip OS specific parts from the code "os_support"-config was added
      to script and CONFIG_OS_SUPPORT flag is used in the code to exclude OS
      specific parts such as OS specific includes and function calls for
      timers and threads etc. This was done to enable RVCT compilation for
      profiling purposes or running the image on bare metal target with
      Lauterbach.
      
      Removed separate AREA directives for READONLY data in armv6 and neon
      assembly files to fix the RVCT compilation. Otherwise
      "ldr <reg>, =label" syntax would have been needed to prevent linker
      errors. This syntax is not supported by older gnu assemblers.
      
      Change-Id: I14f4c68529e8c27397502fbc3010a54e505ddb43
      11a222f5
  4. 27 Jan, 2011 - 2 commits
    • Johann's avatar
      warning: pointer targets differ in signedness · 73207a1d
      Johann authored
      vp8/encoder/rdopt.c:728: warning: pointer targets in passing argument 3
      of 'macro_block_yrd' differ in signedness
      vp8/encoder/rdopt.c:541: note: expected 'int *' but argument is of type
      'unsigned int *'
      
      distortion is signed when calling macro_block_yrd is both other cases,
      as well as for RDCOST
      
      Change-Id: I5e22358b7da76a116f498793253aac8099cb3461
      73207a1d
    • Johann's avatar
      clean up implicit declaration warnings for neon · 27000ed6
      Johann authored
      Change-Id: I6ca2d89f355839c4c770773c09fc69dcea7c1406
      warning: implicit declaration of function
        'vp8_variance_halfpixvar16x16_[h|v|hv]_neon'
        'vp8_sub_pixel_variance16x16_neon_func'
      27000ed6
  5. 26 Jan, 2011 - 7 commits
    • Scott LaVarnway's avatar
      Performance improvement of first pass · 3c18a2bb
      Scott LaVarnway authored
      Improved the performance of the first pass only
      (~6% on 720p test clip) by making use of LUT instead of the
      float calculations.  Might try a SIMD version later.
      Also started to make use of int_mv instead of
      MV.
      
      Change-Id: If2a217c7d6b59cd2c25c5553e0ca7e0502403af8
      3c18a2bb
    • Yunqing Wang's avatar
      Remove copies of same functions · cac54404
      Yunqing Wang authored
      Reduce the code size.
      
      Change-Id: I2e1998557a3c8776e262c442fd758c25e17aff7a
      cac54404
    • Scott LaVarnway's avatar
      Removed unused members from VP8_COMP · c4887da3
      Scott LaVarnway authored
      Change-Id: I8f3f2642b02975fbdb14982984a29821f80d30d3
      c4887da3
    • Paul Wilkins's avatar
      Rationalize vp8_rd_pick_intra16x16mby_mode() · 35bb74a6
      Paul Wilkins authored
      Use the function macro_block_yrd() to calculate error and distortion
      in keeping with what is done for inter frames.
      
      The old code was using a variance metric for once case and an
      SSE function for measuring distortion in the other case.
      
      The function vp8_encode_intra16x16mbyrd() is no longer used.
      
      Change-Id: Ic228cb00a78ff637f4365b43f58fbe5a9273d36f
      35bb74a6
    • Attila Nagy's avatar
      Adds vpx_vp8_enc_asm_offsets.c.o to OBJS-yes list · 0def48b6
      Attila Nagy authored
      Change-Id: Ibd6e3bc82471839904b1086b499efc55f7c5cbaf
      0def48b6
    • Paul Wilkins's avatar
      Correction to buffer update for non-viewable frames. · a3f71ccf
      Paul Wilkins authored
      The code previously tested cpi->common.refresh_alt_ref_frame
      but there are situations where this flag may be set for viewable frames.
      
      The correct test should be !cm->show_frame.
      
      Change-Id: Ia1a600622992a4a68fe1d38ac23bf6b34b133688
      a3f71ccf
    • Yaowu Xu's avatar
      cap the best quantizer for 2nd order DC · 999e155f
      Yaowu Xu authored
      This commit also removes artificial RDMULT cap for low quantizers.
      The intention is to address some abnormal behavior of mode selections
      at the low quantizer end, where many macroblocks were coded with
      SPLITMV with all partitions using same motion vector including (0,0).
      This change improves the compression quality substantially for high
      quality encodings in both PSNR and SSIM terms. Overall effect on
      mid/low rate range is also positive for all metrics, but smaller
      in magnitude.
      
      Change-Id: I864b29c4bd9ff610d2545fa94a19cc7e80c02667
      999e155f
  6. 25 Jan, 2011 - 5 commits
    • Fritz Koenig's avatar
      Fix for incorrect variable declaration. · 53d8e9dc
      Fritz Koenig authored
      Commit 336aa0b7 incorrectly
      declared current_pos as and int, when it should have been
      a FIRSTPASS_STATS pointer.
      
      Change-Id: I0a51c7a86ebba8546c95dd5d9d1c1143d4613e40
      53d8e9dc
    • Yunqing Wang's avatar
      Refine motion vector prediction for NEWMV mode · dcaaadd8
      Yunqing Wang authored
      Adjust checking points in motion vector prediction to better cover
      possible movements, and get a better prediction. Tests on test
      clips showed a 0.1% improvement in SSIM, and no change in PSNR
      and performance.
      
      Change-Id: Ifdab05d35e10faea1445c61bb73debf888c9d2f8
      dcaaadd8
    • Johann's avatar
      move new neon subpixel function · 2168a944
      Johann authored
      previously wasn't guarded with ifdef ARMV7, causing a link error with
      ARMV6
      
      Change-Id: I0526858be0b5f49b2bf11e9090180b2a6c48926d
      2168a944
    • Attila Nagy's avatar
      Fix issue 262, vp8cx_pack_tokens_into_partitions_armv5 · 3bf235a4
      Attila Nagy authored
      http://code.google.com/p/webm/issues/detail?id=262
      Function was asuming that partitions have equal amount of mb_rows,
      which is not always true.
      
      Change-Id: I59ed40117fd408392a85c633beeb5340ed2f4b25
      3bf235a4
    • Paul Wilkins's avatar
      Incorrect bit allocation in forced KF groups. · 336aa0b7
      Paul Wilkins authored
      The old 2 pass code estimated error distribution when coding a
      forced (by interval) key frame. The result of this was that in some
      cases, when allocating bits at the GF group level within a KF
      group there was either a glut of bits or starvation of bits at the end
      of the KF group.
      
      Added code to rescan and get the correct data once the position of
      a forced key frame has been determined.
      
      Change-Id: I0c811675ef3f9e4109d14bd049d7641682ffcf11
      336aa0b7
  7. 24 Jan, 2011 - 1 commit
    • Scott LaVarnway's avatar
      Added vp8_update_zbin_extra · 0ee525d6
      Scott LaVarnway authored
      vp8cx_mb_init_quantizer was being called for every mode checked
      in vp8_rd_pick_inter_mode.  zbin_extra is the only value that
      really needs to be recalculated.  This calculation is disabled
      when using the fast quantizer for mode selection.
      This gave a small performance boost (~.5% to 1%).
      Note: This needs to be verified with segmentation_enabled.
      
      Change-Id: I62716a870b3c82b4a998bdf95130ff0b02106f1e
      0ee525d6
  8. 21 Jan, 2011 - 2 commits
    • Yunqing Wang's avatar
      Modify sub-pixel filters to eliminate unnecessary calculations · 0822a62f
      Yunqing Wang authored
      In sub-pixel calculation, xoffset and yoffset mostly take some
      specific values. Modified sub-pixel filter functions according to
      these possible values to improve performance.
      
      Change-Id: I83083570af8b00ff65093467914fbb97a4e9ea21
      0822a62f
    • Paul Wilkins's avatar
      Modified static scene check. · 0cdfef1e
      Paul Wilkins authored
      Added code to scan ahead a few frames when we see what
      we think is a static scene in the two pass GF loop to see if the
      conditions persist.
      
      Moved calculation of decay rate out into a fuunction.
      
      Change-Id: I6e9c67e01ec9f555144deafc8ae67ef25bffb449
      0cdfef1e
  9. 20 Jan, 2011 - 2 commits
    • Paul Wilkins's avatar
      Further work to reduce pulsing. · 8064583d
      Paul Wilkins authored
      These changes are specifically targeted at fade transitions to
      static scenes. Here we want to place a GF/ARF immediately
      after the fade and prevent an ARF just  before the fade.
      
      Also some code lines and comment lines shortened to 80 chars
      while I was there.
      
      Change-Id: Iefdc09a4fa7b265048fc017246b73e138693950f
      8064583d
    • Adrian Grange's avatar
      Fixed use of motion percentage in KF/GF group calc · 815e1e9f
      Adrian Grange authored
      In both vp8_find_next_key_frame and define_gf_group,
      motion_pct was initialised at the top of the loop before
      next_frame stats had been read in.
      
      This fix sets motion_pct after next_frame stats have
      been read.
      
      Change-Id: I8c0bebf372ef8aa97b97fd35b42973d1d831ee73
      815e1e9f
  10. 19 Jan, 2011 - 2 commits
    • Paul Wilkins's avatar
      First pass loop bug. · e8675168
      Paul Wilkins authored
      Incorrect value loop_decay_rate used in GF loop.
      
      The intent was to test the  cumulative value decay_accumulator.
      
      Change-Id: I62928c63eb09f4f6936a45ebd1c23784d1c9681b
      e8675168
    • Henrik Lundin's avatar
      Implement error tracking in the decoder · 67fb3a51
      Henrik Lundin authored
      A new vpx_codec_control called VP8D_GET_FRAME_CORRUPTED. The output
      from the function is non-zero if the last decoded frame contains
      corruption due to packet losses.
      
      The decoder is also modified to accept encoded frames of zero length.
      A zero length frame indicates to the decoder that one or more frames
      have been completely lost. This will mark the last decoded reference
      buffer as corrupted. The data pointer can be NULL if the length is
      zero.
      
      Change-Id: Ic5902c785a281c6e05329deea958554b7a6c75ce
      67fb3a51
  11. 18 Jan, 2011 - 4 commits
    • Yunqing Wang's avatar
      Modify calling of NEON code in sub-pixel search · ce6c954d
      Yunqing Wang authored
      In vp8_find_best_sub_pixel_step_iteratively(), many times xoffset
      and yoffset are specific values - (4,0) (0,4) and (4,4). Modified
      code to call simplified NEON version at these specific offsets to
      help with the performance.
      
      Change-Id: Iaf896a0f7aae4697bd36a49e182525dd1ef1ab4d
      ce6c954d
    • Jim Bankoski's avatar
      vp8e -removed undefined max call · edcf74c6
      Jim Bankoski authored
      Change-Id: I42a86b0488f44115f09551fc5ad6d711fd470f0d
      edcf74c6
    • Paul Wilkins's avatar
      Further CQ, Key frame and ARF changes · 57136a26
      Paul Wilkins authored
      This code fixes a bug in the calculation of
      the minimum Q for alt ref frames.
      
      It also allows an extended gf/arf interval for sections
      of clips that completely static (or nearly so).
      
      Change-Id: I1a21aaa16d4f0578e5f99b13bebd78d59403c73b
      57136a26
    • Attila Nagy's avatar
      Fix encoder real-time only configuration. · cb791aaa
      Attila Nagy authored
      Remove allocation/deallocation of stats storage.
      Remove full search functions in machine specific encoder inits.
      Remove last pass validation in  validate_config.
      
      Change-Id: I7f29be69273981a4fef6e80ecdb6217c68cbad4e
      cb791aaa
  12. 17 Jan, 2011 - 1 commit
    • Paul Wilkins's avatar
      Fix CQ range and experimental KF sizing changes. · 339c5127
      Paul Wilkins authored
      The CQ level was not using the q_trans[] array to convert
      to a 0-127 range as per min and maxq
      
      Experimental change to try and match the reconstruction
      error for forced key frames approximately to that of the
      previous frame by means of the recode loop. Though this
      may cause extra recodes and the recode behavior has not
      been optimized, it can only happen on forced key frames.
      
      Change-Id: I1f7e42d526f1b1cb556dd461eff1a692bd1b5b2f
      339c5127
  13. 14 Jan, 2011 - 5 commits
    • Johann's avatar
      update sse2 regular quantizer · 15f9bea7
      Johann authored
      about ~5% gain on 32bit. disabled for 64bit
      
      unset executable bit on ssse3 version (cosmetic)
      
      Change-Id: I1a5860839eb294ce4261f819caea2dcfa78e57ca
      15f9bea7
    • Paul Wilkins's avatar
      Testing of modes with Alt Ref frame · 415371c9
      Paul Wilkins authored
      Previously when a frame was being overlaid on a previously coded
      alt ref frame we only checked the alt ref 0,0 mode. Where there is
      a possibility that the alt ref buffer is a filtered frame we should allow
      the other prediction modes as normal or at the least allow use of
      the last frame buffer.
      
      Change-Id: I4d6227223d125c96b4f3066ec6ec9484fee7768c
      415371c9
    • Adrian Grange's avatar
      ARNR filter pointer update bug fix · 2c1b06e6
      Adrian Grange authored
      In cases where the frame width is not a multiple of 16 the
      ARNR filter would go wrong.
      
      In vp8_temporal_filter_iterate_c when updating pointers
      at the end of a row of MBs,  the image size was
      incorrectly used rather than using Num_MBs_In_Row
      times 16 (Y) or 8 (U,V).
      
      This worked when width is multiple of 16 but failed
      otherwise.
      
      Change-Id: I008919062715bd3d17c7aa2562ab58d1cb37053a
      2c1b06e6
    • Paul Wilkins's avatar
      Experimental change to help with ARNR problem. · 72e22b0b
      Paul Wilkins authored
      Allow use of other reference frames for the ARF overlay frame
      when ARNR filtering is enabled
      
      Change-Id: Icd6a9fb38977a88fbe7cc9b9c18198eb454c0273
      72e22b0b
    • Paul Wilkins's avatar
      KF/GF Pulsing · c8338ebf
      Paul Wilkins authored
      This change is designed to try and reduce pulsing effects when moving
      with a complex transition like a fade, into an easy or static section in
      an otherwise difficult clip in CQ mode.
      
      The active CQ level is relaxed down to the user entered level for frames that
      are generating less than the passed in minimum bandwidth.
      
      Change-Id: Id6d8b551daad4f489c087bd742bc95418a95f3f0
      c8338ebf
  14. 13 Jan, 2011 - 1 commit
    • Paul Wilkins's avatar
      One pass rate control correction. · eda7d538
      Paul Wilkins authored
      Fixed discrepancy cpi->ni_frames vs cm->current_video_frame > 150.
      
      Make one pass path explicit.
      
      There is still scope for some odd behaviour around the transition
      point at cpi->ni_frames > 150.
      
      Change-Id: Icdee130fe6e2a832206d30e45bf65963edd7a74d
      eda7d538