Ignore:
Timestamp:
Jul 28, 2017 2:51:44 AM (7 years ago)
Author:
nanang
Message:

Re #2004: Update libyuv version from libyuv git master repo dated 27 July 2017, the compile errors on old gcc versions issue persists though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/yuv/include/libyuv/rotate.h

    r5358 r5633  
    99 */ 
    1010 
    11 #ifndef INCLUDE_LIBYUV_ROTATE_H_  // NOLINT 
     11#ifndef INCLUDE_LIBYUV_ROTATE_H_ 
    1212#define INCLUDE_LIBYUV_ROTATE_H_ 
    1313 
     
    2121// Supported rotation. 
    2222typedef enum RotationMode { 
    23   kRotate0 = 0,  // No rotation. 
    24   kRotate90 = 90,  // Rotate 90 degrees clockwise. 
     23  kRotate0 = 0,      // No rotation. 
     24  kRotate90 = 90,    // Rotate 90 degrees clockwise. 
    2525  kRotate180 = 180,  // Rotate 180 degrees. 
    2626  kRotate270 = 270,  // Rotate 270 degrees clockwise. 
     
    3434// Rotate I420 frame. 
    3535LIBYUV_API 
    36 int I420Rotate(const uint8* src_y, int src_stride_y, 
    37                const uint8* src_u, int src_stride_u, 
    38                const uint8* src_v, int src_stride_v, 
    39                uint8* dst_y, int dst_stride_y, 
    40                uint8* dst_u, int dst_stride_u, 
    41                uint8* dst_v, int dst_stride_v, 
    42                int src_width, int src_height, enum RotationMode mode); 
     36int I420Rotate(const uint8* src_y, 
     37               int src_stride_y, 
     38               const uint8* src_u, 
     39               int src_stride_u, 
     40               const uint8* src_v, 
     41               int src_stride_v, 
     42               uint8* dst_y, 
     43               int dst_stride_y, 
     44               uint8* dst_u, 
     45               int dst_stride_u, 
     46               uint8* dst_v, 
     47               int dst_stride_v, 
     48               int src_width, 
     49               int src_height, 
     50               enum RotationMode mode); 
    4351 
    4452// Rotate NV12 input and store in I420. 
    4553LIBYUV_API 
    46 int NV12ToI420Rotate(const uint8* src_y, int src_stride_y, 
    47                      const uint8* src_uv, int src_stride_uv, 
    48                      uint8* dst_y, int dst_stride_y, 
    49                      uint8* dst_u, int dst_stride_u, 
    50                      uint8* dst_v, int dst_stride_v, 
    51                      int src_width, int src_height, enum RotationMode mode); 
     54int NV12ToI420Rotate(const uint8* src_y, 
     55                     int src_stride_y, 
     56                     const uint8* src_uv, 
     57                     int src_stride_uv, 
     58                     uint8* dst_y, 
     59                     int dst_stride_y, 
     60                     uint8* dst_u, 
     61                     int dst_stride_u, 
     62                     uint8* dst_v, 
     63                     int dst_stride_v, 
     64                     int src_width, 
     65                     int src_height, 
     66                     enum RotationMode mode); 
    5267 
    5368// Rotate a plane by 0, 90, 180, or 270. 
    5469LIBYUV_API 
    55 int RotatePlane(const uint8* src, int src_stride, 
    56                 uint8* dst, int dst_stride, 
    57                 int src_width, int src_height, enum RotationMode mode); 
     70int RotatePlane(const uint8* src, 
     71                int src_stride, 
     72                uint8* dst, 
     73                int dst_stride, 
     74                int src_width, 
     75                int src_height, 
     76                enum RotationMode mode); 
    5877 
    5978// Rotate planes by 90, 180, 270. Deprecated. 
    6079LIBYUV_API 
    61 void RotatePlane90(const uint8* src, int src_stride, 
    62                    uint8* dst, int dst_stride, 
    63                    int width, int height); 
     80void RotatePlane90(const uint8* src, 
     81                   int src_stride, 
     82                   uint8* dst, 
     83                   int dst_stride, 
     84                   int width, 
     85                   int height); 
    6486 
    6587LIBYUV_API 
    66 void RotatePlane180(const uint8* src, int src_stride, 
    67                     uint8* dst, int dst_stride, 
    68                     int width, int height); 
     88void RotatePlane180(const uint8* src, 
     89                    int src_stride, 
     90                    uint8* dst, 
     91                    int dst_stride, 
     92                    int width, 
     93                    int height); 
    6994 
    7095LIBYUV_API 
    71 void RotatePlane270(const uint8* src, int src_stride, 
    72                     uint8* dst, int dst_stride, 
    73                     int width, int height); 
     96void RotatePlane270(const uint8* src, 
     97                    int src_stride, 
     98                    uint8* dst, 
     99                    int dst_stride, 
     100                    int width, 
     101                    int height); 
    74102 
    75103LIBYUV_API 
    76 void RotateUV90(const uint8* src, int src_stride, 
    77                 uint8* dst_a, int dst_stride_a, 
    78                 uint8* dst_b, int dst_stride_b, 
    79                 int width, int height); 
     104void RotateUV90(const uint8* src, 
     105                int src_stride, 
     106                uint8* dst_a, 
     107                int dst_stride_a, 
     108                uint8* dst_b, 
     109                int dst_stride_b, 
     110                int width, 
     111                int height); 
    80112 
    81113// Rotations for when U and V are interleaved. 
     
    84116// rotating them. Deprecated. 
    85117LIBYUV_API 
    86 void RotateUV180(const uint8* src, int src_stride, 
    87                  uint8* dst_a, int dst_stride_a, 
    88                  uint8* dst_b, int dst_stride_b, 
    89                  int width, int height); 
     118void RotateUV180(const uint8* src, 
     119                 int src_stride, 
     120                 uint8* dst_a, 
     121                 int dst_stride_a, 
     122                 uint8* dst_b, 
     123                 int dst_stride_b, 
     124                 int width, 
     125                 int height); 
    90126 
    91127LIBYUV_API 
    92 void RotateUV270(const uint8* src, int src_stride, 
    93                  uint8* dst_a, int dst_stride_a, 
    94                  uint8* dst_b, int dst_stride_b, 
    95                  int width, int height); 
     128void RotateUV270(const uint8* src, 
     129                 int src_stride, 
     130                 uint8* dst_a, 
     131                 int dst_stride_a, 
     132                 uint8* dst_b, 
     133                 int dst_stride_b, 
     134                 int width, 
     135                 int height); 
    96136 
    97137// The 90 and 270 functions are based on transposes. 
     
    100140// Deprecated. 
    101141LIBYUV_API 
    102 void TransposePlane(const uint8* src, int src_stride, 
    103                     uint8* dst, int dst_stride, 
    104                     int width, int height); 
     142void TransposePlane(const uint8* src, 
     143                    int src_stride, 
     144                    uint8* dst, 
     145                    int dst_stride, 
     146                    int width, 
     147                    int height); 
    105148 
    106149LIBYUV_API 
    107 void TransposeUV(const uint8* src, int src_stride, 
    108                  uint8* dst_a, int dst_stride_a, 
    109                  uint8* dst_b, int dst_stride_b, 
    110                  int width, int height); 
     150void TransposeUV(const uint8* src, 
     151                 int src_stride, 
     152                 uint8* dst_a, 
     153                 int dst_stride_a, 
     154                 uint8* dst_b, 
     155                 int dst_stride_b, 
     156                 int width, 
     157                 int height); 
    111158 
    112159#ifdef __cplusplus 
     
    115162#endif 
    116163 
    117 #endif  // INCLUDE_LIBYUV_ROTATE_H_  NOLINT 
     164#endif  // INCLUDE_LIBYUV_ROTATE_H_ 
Note: See TracChangeset for help on using the changeset viewer.