LCOV - code coverage report
Current view: top level - media/libvpx/libvpx/vp8/common - mbpitch.c (source / functions) Hit Total Coverage
Test: output.info Lines: 0 25 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
       3             :  *
       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
       6             :  *  tree. An additional intellectual property rights grant can be found
       7             :  *  in the file PATENTS.  All contributing project authors may
       8             :  *  be found in the AUTHORS file in the root of the source tree.
       9             :  */
      10             : 
      11             : #include "blockd.h"
      12             : 
      13           0 : void vp8_setup_block_dptrs(MACROBLOCKD *x) {
      14             :   int r, c;
      15             : 
      16           0 :   for (r = 0; r < 4; ++r) {
      17           0 :     for (c = 0; c < 4; ++c) {
      18           0 :       x->block[r * 4 + c].predictor = x->predictor + r * 4 * 16 + c * 4;
      19             :     }
      20             :   }
      21             : 
      22           0 :   for (r = 0; r < 2; ++r) {
      23           0 :     for (c = 0; c < 2; ++c) {
      24           0 :       x->block[16 + r * 2 + c].predictor =
      25           0 :           x->predictor + 256 + r * 4 * 8 + c * 4;
      26             :     }
      27             :   }
      28             : 
      29           0 :   for (r = 0; r < 2; ++r) {
      30           0 :     for (c = 0; c < 2; ++c) {
      31           0 :       x->block[20 + r * 2 + c].predictor =
      32           0 :           x->predictor + 320 + r * 4 * 8 + c * 4;
      33             :     }
      34             :   }
      35             : 
      36           0 :   for (r = 0; r < 25; ++r) {
      37           0 :     x->block[r].qcoeff = x->qcoeff + r * 16;
      38           0 :     x->block[r].dqcoeff = x->dqcoeff + r * 16;
      39           0 :     x->block[r].eob = x->eobs + r;
      40             :   }
      41           0 : }
      42             : 
      43           0 : void vp8_build_block_doffsets(MACROBLOCKD *x) {
      44             :   int block;
      45             : 
      46           0 :   for (block = 0; block < 16; ++block) /* y blocks */
      47             :   {
      48           0 :     x->block[block].offset =
      49           0 :         (block >> 2) * 4 * x->dst.y_stride + (block & 3) * 4;
      50             :   }
      51             : 
      52           0 :   for (block = 16; block < 20; ++block) /* U and V blocks */
      53             :   {
      54           0 :     x->block[block + 4].offset = x->block[block].offset =
      55           0 :         ((block - 16) >> 1) * 4 * x->dst.uv_stride + (block & 1) * 4;
      56             :   }
      57           0 : }

Generated by: LCOV version 1.13