LCOV - code coverage report
Current view: top level - media/libyuv/libyuv/source - rotate_common.cc (source / functions) Hit Total Coverage
Test: output.info Lines: 0 46 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  *  Copyright 2011 The LibYuv 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 "libyuv/row.h"
      12             : #include "libyuv/rotate_row.h"
      13             : 
      14             : #ifdef __cplusplus
      15             : namespace libyuv {
      16             : extern "C" {
      17             : #endif
      18             : 
      19           0 : void TransposeWx8_C(const uint8* src,
      20             :                     int src_stride,
      21             :                     uint8* dst,
      22             :                     int dst_stride,
      23             :                     int width) {
      24             :   int i;
      25           0 :   for (i = 0; i < width; ++i) {
      26           0 :     dst[0] = src[0 * src_stride];
      27           0 :     dst[1] = src[1 * src_stride];
      28           0 :     dst[2] = src[2 * src_stride];
      29           0 :     dst[3] = src[3 * src_stride];
      30           0 :     dst[4] = src[4 * src_stride];
      31           0 :     dst[5] = src[5 * src_stride];
      32           0 :     dst[6] = src[6 * src_stride];
      33           0 :     dst[7] = src[7 * src_stride];
      34           0 :     ++src;
      35           0 :     dst += dst_stride;
      36             :   }
      37           0 : }
      38             : 
      39           0 : void TransposeUVWx8_C(const uint8* src,
      40             :                       int src_stride,
      41             :                       uint8* dst_a,
      42             :                       int dst_stride_a,
      43             :                       uint8* dst_b,
      44             :                       int dst_stride_b,
      45             :                       int width) {
      46             :   int i;
      47           0 :   for (i = 0; i < width; ++i) {
      48           0 :     dst_a[0] = src[0 * src_stride + 0];
      49           0 :     dst_b[0] = src[0 * src_stride + 1];
      50           0 :     dst_a[1] = src[1 * src_stride + 0];
      51           0 :     dst_b[1] = src[1 * src_stride + 1];
      52           0 :     dst_a[2] = src[2 * src_stride + 0];
      53           0 :     dst_b[2] = src[2 * src_stride + 1];
      54           0 :     dst_a[3] = src[3 * src_stride + 0];
      55           0 :     dst_b[3] = src[3 * src_stride + 1];
      56           0 :     dst_a[4] = src[4 * src_stride + 0];
      57           0 :     dst_b[4] = src[4 * src_stride + 1];
      58           0 :     dst_a[5] = src[5 * src_stride + 0];
      59           0 :     dst_b[5] = src[5 * src_stride + 1];
      60           0 :     dst_a[6] = src[6 * src_stride + 0];
      61           0 :     dst_b[6] = src[6 * src_stride + 1];
      62           0 :     dst_a[7] = src[7 * src_stride + 0];
      63           0 :     dst_b[7] = src[7 * src_stride + 1];
      64           0 :     src += 2;
      65           0 :     dst_a += dst_stride_a;
      66           0 :     dst_b += dst_stride_b;
      67             :   }
      68           0 : }
      69             : 
      70           0 : void TransposeWxH_C(const uint8* src,
      71             :                     int src_stride,
      72             :                     uint8* dst,
      73             :                     int dst_stride,
      74             :                     int width,
      75             :                     int height) {
      76             :   int i;
      77           0 :   for (i = 0; i < width; ++i) {
      78             :     int j;
      79           0 :     for (j = 0; j < height; ++j) {
      80           0 :       dst[i * dst_stride + j] = src[j * src_stride + i];
      81             :     }
      82             :   }
      83           0 : }
      84             : 
      85           0 : void TransposeUVWxH_C(const uint8* src,
      86             :                       int src_stride,
      87             :                       uint8* dst_a,
      88             :                       int dst_stride_a,
      89             :                       uint8* dst_b,
      90             :                       int dst_stride_b,
      91             :                       int width,
      92             :                       int height) {
      93             :   int i;
      94           0 :   for (i = 0; i < width * 2; i += 2) {
      95             :     int j;
      96           0 :     for (j = 0; j < height; ++j) {
      97           0 :       dst_a[j + ((i >> 1) * dst_stride_a)] = src[i + (j * src_stride)];
      98           0 :       dst_b[j + ((i >> 1) * dst_stride_b)] = src[i + (j * src_stride) + 1];
      99             :     }
     100             :   }
     101           0 : }
     102             : 
     103             : #ifdef __cplusplus
     104             : }  // extern "C"
     105             : }  // namespace libyuv
     106             : #endif

Generated by: LCOV version 1.13