1. 30 Nov, 2012 1 commit
  2. 29 Nov, 2012 8 commits
  3. 28 Nov, 2012 5 commits
    • Yaowu Xu's avatar
      remove the vp9_default_mode_contexts_a · 1cc57396
      Yaowu Xu authored
      Given the way mode_context is updated, the benefit of an additional
      default is not signficant.
      
      Change-Id: I67489453e8781340b18e26a1cc2f04e9221004a2
      1cc57396
    • Jim Bankoski's avatar
      fixed includes to be fully specified · c6787398
      Jim Bankoski authored
      Change-Id: Ia1cce221f8511561b9cbd8edb7726fbc286ff243
      c6787398
    • Yaowu Xu's avatar
      Localize Y2 entropy coding context · 3e976bba
      Yaowu Xu authored
      This commit makes sure Y2 entropy coding context is always updated on
      every macroblock even there is no Y2 block.
      
      Change-Id: Ie307cfc46526efe55613be39f9f178d2531b56ba
      3e976bba
    • Yaowu Xu's avatar
      removed redundant mode_context data structures · 12da793d
      Yaowu Xu authored
      This commit removed a couple of redundant data structures in frame
      coding contextsm, mode_context and mode_context_a, and changed to
      use vp9_mode_contexts only. The switch of the context for different
      frame type now relies on the switch of frame coding context between
      lfc and lfc_a. This commit also removed a number of memcpy among
      these redundant data structure.
      
      Change-Id: I42e8174bd60f466b0860afc44c1263896471b0f3
      12da793d
    • John Koleszar's avatar
      Clamp decoded feature data · a1f15814
      John Koleszar authored
      Not all segment feature data elements are full-range powers of two, so
      there are values that can be encoded that are invalid. Add a new function
      to clamp values to the maximum allowed.
      
      Change-Id: Ie47cb80ef2d54292e6b8db9f699c57214a915bc4
      a1f15814
  4. 27 Nov, 2012 1 commit
    • John Koleszar's avatar
      Add vp9_ prefix to all vp9 files · fcccbcbb
      John Koleszar authored
      Support for gyp which doesn't support multiple objects in the same
      static library having the same basename.
      
      Change-Id: Ib947eefbaf68f8b177a796d23f875ccdfa6bc9dc
      fcccbcbb
  5. 25 Nov, 2012 2 commits
    • Ronald S. Bultje's avatar
      Move switch(tx_size) around txsize to detokenize.c. · 25b609b6
      Ronald S. Bultje authored
      Add a new function vp9_decode_mb_tokens() that handles the switch
      between different per-tx-size detokenize functions. Make actual
      implementations (vp9_decode_mb_tokens_NxN()) static.
      
      Change-Id: I9e0c4ef410bfa90128a02b472c079a955776816d
      25b609b6
    • Jim Bankoski's avatar
      removed the idct rtcd idct calls · 510557e2
      Jim Bankoski authored
      More cleanup to do after this,  but this is a good chunk of removing rtcd.
      
      Change-Id: I551db75e341a0a85c3ad650df1e9a60dc305681a
      510557e2
  6. 23 Nov, 2012 4 commits
    • Ronald S. Bultje's avatar
      Restructure vp9_decode_mb_tokens_8x8() a bit. · 9970d8b6
      Ronald S. Bultje authored
      Don't declare variables if they only ever have a single value and are
      used only as argument to another function call; instead, just hardcode
      the value in the function call directly. Split out UV and Y coefficient
      loops for clarity. Use xd->block[].qcoeff instead of xd->qcoeff + magic
      to remove use of magic offset variables.
      
      Change-Id: I5b17eda1bb666c69c2b7ea957d5525cd78192e33
      9970d8b6
    • Ronald S. Bultje's avatar
      Restructure vp9_decode_mb_tokens_16x16() a bit. · f090b6b4
      Ronald S. Bultje authored
      Don't declare variables if they only ever have a single value and are
      used only as argument to another function call; instead, just hardcode
      the value in the function call directly. Also remove unneeded brackets
      around a code block, and remove the magic offsets 64 and 256 for chroma
      values in the coefficient memory block.
      
      Change-Id: I14fc14120a81ea1d6fb862674e8bf8cf6ba3d114
      f090b6b4
    • Ronald S. Bultje's avatar
      Make get_eob() function static. · 0312c3d6
      Ronald S. Bultje authored
      Change-Id: Idde3ab97960eda7022367c1f91a873a479bc9d7b
      0312c3d6
    • Ronald S. Bultje's avatar
      Rename "block_type" function argument to "txfm_size". · 44228471
      Ronald S. Bultje authored
      Also fix the type (TX_SIZE instead of int).
      
      Change-Id: Ib9b3f33835e58a6e758ed5f37bb64543e62b6a86
      44228471
  7. 21 Nov, 2012 1 commit
  8. 17 Nov, 2012 7 commits
  9. 16 Nov, 2012 4 commits
    • Yunqing Wang's avatar
      Add const before the dequant(dq) · 47d9d48f
      Yunqing Wang authored
      Modified code to use const before dq.
      
      Change-Id: I6fa59c2ed9743ded33ad08df70e15c2fe1ae7b99
      47d9d48f
    • Ronald S. Bultje's avatar
      Support 32x32 intra modes in non-keyframe superblocks. · 5b11052a
      Ronald S. Bultje authored
      Change-Id: Icf8ad313c543462e523bff89690e5daa8d49bcc0
      5b11052a
    • Paul Wilkins's avatar
      Further experimentation with the mode context · a57dbd95
      Paul Wilkins authored
      Experiments with a larger set of contexts and some
      clean up to replace magic numbers regarding the
      number of contexts.
      
      The starting values and rate of backwards adaption
      are still suspect and based on a small set of tests.
      Added forwards adjustment of probabilities.
      
      The net result of adding the new context and forward
      update is small compared to the old context from the
      legacy find_near function.  (down a little on derf but
      up by a similar amount for HD)
      
      HOWEVER.... with the new context and forward update
      the impact of disabling the reverse update (which may be
      necessary in some use cases to facilitate parallel decoding)
      is hugely reduced.
      
      For the old context without forward update, the impact of
      turning off reverse update (Experiment was with SB off) was
      Derf - 0.9, Yt -1.89, ythd -2.75 and sthd -8.35. The impact was
      mainly at low data rates.
      
      With the new context and forward update enabled the impact
      for all the test sets was no more than 0.5-1% (again most at
      the low end).
      
      Change-Id: Ic751b414c8ce7f7f3ebc6f19a741d774d2b4b556
      a57dbd95
    • Deb Mukherjee's avatar
      Compound inter-intra experiment · 0c917fc9
      Deb Mukherjee authored
      A patch on compound inter-intra prediction.
      
      In compound inter-intra prediction, a new predictor for
      16x16 inter coded MBs are obtained by combining a single
      inter predictor with a 16x16 intra predictor, in a manner
      that the weight varies with distance from the top/left
      boundary. The current search strategy is to combine the best
      inter mode with the best intra mode obtained independently.
      
      Results so far:
      
      derf +0.31%
      yt +0.32%
      std-hd +0.35%
      hd +0.42%
      
      It is conceivable that the results would improve somewhat
      with a more thorough search strategy where all intra modes
      are searched given the best mv, or even a joint search for
      the best mv and the best intra mode.
      
      Change-Id: I7951f1ed0d6eb31ca32ac24d120f1585bcd8d79b
      0c917fc9
  10. 15 Nov, 2012 3 commits
    • John Koleszar's avatar
      Pack invisible frames without lengths · 64bcffc1
      John Koleszar authored
      Modify the decoder to return the ending position of the bool decoder and
      use that as the starting position for the next frame.
      
      The constant-space algorithm for parsing the appended frame lengths is
      O(n^2), which is a potential DoS concern if n is unbounded. Revisit
      the appended lengths for use as partition lengths when multipartition
      support is added.
      
      In addition, this allows decoding of raw streams outside of a container
      without additional framing information, though it's insufficient to
      be able to remux said stream into a container.
      
      Change-Id: I71e801a9c3e37abe559a56a597635b0cbae1934b
      64bcffc1
    • John Koleszar's avatar
      support building vp8 and vp9 into a single lib · a9c7597a
      John Koleszar authored
      Change-Id: Ib8f8a66c9fd31e508cdc9caa662192f38433aa3d
      a9c7597a
    • John Koleszar's avatar
      detokenize: use SEG_LVL_EOB feature consistently · 6becad42
      John Koleszar authored
      Update decode_coefs() to break when c >= eob, since it's possible that
      c starts the loop from 1 and eob is 0. The loop won't terminate in that
      case.
      
      Add new get_eob() function to consistently clamp the eob based on the
      segment level EOB and the block size. It's possible to code a segment
      level EOB that's greater than the block size, and that leads to an
      out of bounds access.
      
      Change-Id: I859563b30414615cf1b30dcc2aef8a1de358c42d
      6becad42
  11. 14 Nov, 2012 1 commit
  12. 13 Nov, 2012 3 commits
    • John Koleszar's avatar
      Don't write recon.yuv by default · 854e41f0
      John Koleszar authored
      CONFIG_DEBUG was turning on some code to dump the reconstructed frame
      to a buffer from within the decoder. Move this code to a more specific
      debugging define.
      
      Change-Id: I3ca9ea634bdbd186f2470bd644d3695ee0ab3037
      854e41f0
    • John Koleszar's avatar
      SEG_LVL_MODE: don't code ref_frame if it's implicit · 6d482706
      John Koleszar authored
      If the SEG_LVL_MODE is an intra mode, then the reference frame must be
      INTRA_FRAME.
      
      Change-Id: I2cdeeac3780c077c74b39ce89a528bc280674231
      6d482706
    • Yunqing Wang's avatar
      Optimize 8x8 dequant and idct · e60478d4
      Yunqing Wang authored
      Similar to 16x16 dequant and idct, based on the value of eobs, the
      8x8 dequant and idct calculation was simplified to improve decorder
      performance.
      
      Combined vp9_dequant_idct_add_8x8 and vp9_dequant_dc_idct_add_8x8
      to eliminate duplicate code.
      
      Change-Id: Ia58e50ab27f7012b7379c495837c9c0b5ba9cf7f
      e60478d4