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/convert_from_argb.h

    r5358 r5633  
    99 */ 
    1010 
    11 #ifndef INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_  // NOLINT 
     11#ifndef INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ 
    1212#define INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ 
    1313 
     
    2222#define ARGBToARGB ARGBCopy 
    2323LIBYUV_API 
    24 int ARGBCopy(const uint8* src_argb, int src_stride_argb, 
    25              uint8* dst_argb, int dst_stride_argb, 
    26              int width, int height); 
     24int ARGBCopy(const uint8* src_argb, 
     25             int src_stride_argb, 
     26             uint8* dst_argb, 
     27             int dst_stride_argb, 
     28             int width, 
     29             int height); 
    2730 
    2831// Convert ARGB To BGRA. 
    2932LIBYUV_API 
    30 int ARGBToBGRA(const uint8* src_argb, int src_stride_argb, 
    31                uint8* dst_bgra, int dst_stride_bgra, 
    32                int width, int height); 
     33int ARGBToBGRA(const uint8* src_argb, 
     34               int src_stride_argb, 
     35               uint8* dst_bgra, 
     36               int dst_stride_bgra, 
     37               int width, 
     38               int height); 
    3339 
    3440// Convert ARGB To ABGR. 
    3541LIBYUV_API 
    36 int ARGBToABGR(const uint8* src_argb, int src_stride_argb, 
    37                uint8* dst_abgr, int dst_stride_abgr, 
    38                int width, int height); 
     42int ARGBToABGR(const uint8* src_argb, 
     43               int src_stride_argb, 
     44               uint8* dst_abgr, 
     45               int dst_stride_abgr, 
     46               int width, 
     47               int height); 
    3948 
    4049// Convert ARGB To RGBA. 
    4150LIBYUV_API 
    42 int ARGBToRGBA(const uint8* src_argb, int src_stride_argb, 
    43                uint8* dst_rgba, int dst_stride_rgba, 
    44                int width, int height); 
     51int ARGBToRGBA(const uint8* src_argb, 
     52               int src_stride_argb, 
     53               uint8* dst_rgba, 
     54               int dst_stride_rgba, 
     55               int width, 
     56               int height); 
    4557 
    4658// Convert ARGB To RGB24. 
    4759LIBYUV_API 
    48 int ARGBToRGB24(const uint8* src_argb, int src_stride_argb, 
    49                 uint8* dst_rgb24, int dst_stride_rgb24, 
    50                 int width, int height); 
     60int ARGBToRGB24(const uint8* src_argb, 
     61                int src_stride_argb, 
     62                uint8* dst_rgb24, 
     63                int dst_stride_rgb24, 
     64                int width, 
     65                int height); 
    5166 
    5267// Convert ARGB To RAW. 
    5368LIBYUV_API 
    54 int ARGBToRAW(const uint8* src_argb, int src_stride_argb, 
    55               uint8* dst_rgb, int dst_stride_rgb, 
    56               int width, int height); 
     69int ARGBToRAW(const uint8* src_argb, 
     70              int src_stride_argb, 
     71              uint8* dst_rgb, 
     72              int dst_stride_rgb, 
     73              int width, 
     74              int height); 
    5775 
    5876// Convert ARGB To RGB565. 
    5977LIBYUV_API 
    60 int ARGBToRGB565(const uint8* src_argb, int src_stride_argb, 
    61                  uint8* dst_rgb565, int dst_stride_rgb565, 
    62                  int width, int height); 
     78int ARGBToRGB565(const uint8* src_argb, 
     79                 int src_stride_argb, 
     80                 uint8* dst_rgb565, 
     81                 int dst_stride_rgb565, 
     82                 int width, 
     83                 int height); 
    6384 
    6485// Convert ARGB To RGB565 with 4x4 dither matrix (16 bytes). 
     
    6889// const uint8(*dither)[4][4]; 
    6990LIBYUV_API 
    70 int ARGBToRGB565Dither(const uint8* src_argb, int src_stride_argb, 
    71                        uint8* dst_rgb565, int dst_stride_rgb565, 
    72                        const uint8* dither4x4, int width, int height); 
     91int ARGBToRGB565Dither(const uint8* src_argb, 
     92                       int src_stride_argb, 
     93                       uint8* dst_rgb565, 
     94                       int dst_stride_rgb565, 
     95                       const uint8* dither4x4, 
     96                       int width, 
     97                       int height); 
    7398 
    7499// Convert ARGB To ARGB1555. 
    75100LIBYUV_API 
    76 int ARGBToARGB1555(const uint8* src_argb, int src_stride_argb, 
    77                    uint8* dst_argb1555, int dst_stride_argb1555, 
    78                    int width, int height); 
     101int ARGBToARGB1555(const uint8* src_argb, 
     102                   int src_stride_argb, 
     103                   uint8* dst_argb1555, 
     104                   int dst_stride_argb1555, 
     105                   int width, 
     106                   int height); 
    79107 
    80108// Convert ARGB To ARGB4444. 
    81109LIBYUV_API 
    82 int ARGBToARGB4444(const uint8* src_argb, int src_stride_argb, 
    83                    uint8* dst_argb4444, int dst_stride_argb4444, 
    84                    int width, int height); 
     110int ARGBToARGB4444(const uint8* src_argb, 
     111                   int src_stride_argb, 
     112                   uint8* dst_argb4444, 
     113                   int dst_stride_argb4444, 
     114                   int width, 
     115                   int height); 
    85116 
    86117// Convert ARGB To I444. 
    87118LIBYUV_API 
    88 int ARGBToI444(const uint8* src_argb, int src_stride_argb, 
    89                uint8* dst_y, int dst_stride_y, 
    90                uint8* dst_u, int dst_stride_u, 
    91                uint8* dst_v, int dst_stride_v, 
    92                int width, int height); 
     119int ARGBToI444(const uint8* src_argb, 
     120               int src_stride_argb, 
     121               uint8* dst_y, 
     122               int dst_stride_y, 
     123               uint8* dst_u, 
     124               int dst_stride_u, 
     125               uint8* dst_v, 
     126               int dst_stride_v, 
     127               int width, 
     128               int height); 
    93129 
    94130// Convert ARGB To I422. 
    95131LIBYUV_API 
    96 int ARGBToI422(const uint8* src_argb, int src_stride_argb, 
    97                uint8* dst_y, int dst_stride_y, 
    98                uint8* dst_u, int dst_stride_u, 
    99                uint8* dst_v, int dst_stride_v, 
    100                int width, int height); 
     132int ARGBToI422(const uint8* src_argb, 
     133               int src_stride_argb, 
     134               uint8* dst_y, 
     135               int dst_stride_y, 
     136               uint8* dst_u, 
     137               int dst_stride_u, 
     138               uint8* dst_v, 
     139               int dst_stride_v, 
     140               int width, 
     141               int height); 
    101142 
    102143// Convert ARGB To I420. (also in convert.h) 
    103144LIBYUV_API 
    104 int ARGBToI420(const uint8* src_argb, int src_stride_argb, 
    105                uint8* dst_y, int dst_stride_y, 
    106                uint8* dst_u, int dst_stride_u, 
    107                uint8* dst_v, int dst_stride_v, 
    108                int width, int height); 
     145int ARGBToI420(const uint8* src_argb, 
     146               int src_stride_argb, 
     147               uint8* dst_y, 
     148               int dst_stride_y, 
     149               uint8* dst_u, 
     150               int dst_stride_u, 
     151               uint8* dst_v, 
     152               int dst_stride_v, 
     153               int width, 
     154               int height); 
    109155 
    110156// Convert ARGB to J420. (JPeg full range I420). 
    111157LIBYUV_API 
    112 int ARGBToJ420(const uint8* src_argb, int src_stride_argb, 
    113                uint8* dst_yj, int dst_stride_yj, 
    114                uint8* dst_u, int dst_stride_u, 
    115                uint8* dst_v, int dst_stride_v, 
    116                int width, int height); 
     158int ARGBToJ420(const uint8* src_argb, 
     159               int src_stride_argb, 
     160               uint8* dst_yj, 
     161               int dst_stride_yj, 
     162               uint8* dst_u, 
     163               int dst_stride_u, 
     164               uint8* dst_v, 
     165               int dst_stride_v, 
     166               int width, 
     167               int height); 
    117168 
    118169// Convert ARGB to J422. 
    119170LIBYUV_API 
    120 int ARGBToJ422(const uint8* src_argb, int src_stride_argb, 
    121                uint8* dst_yj, int dst_stride_yj, 
    122                uint8* dst_u, int dst_stride_u, 
    123                uint8* dst_v, int dst_stride_v, 
    124                int width, int height); 
    125  
    126 // Convert ARGB To I411. 
    127 LIBYUV_API 
    128 int ARGBToI411(const uint8* src_argb, int src_stride_argb, 
    129                uint8* dst_y, int dst_stride_y, 
    130                uint8* dst_u, int dst_stride_u, 
    131                uint8* dst_v, int dst_stride_v, 
    132                int width, int height); 
     171int ARGBToJ422(const uint8* src_argb, 
     172               int src_stride_argb, 
     173               uint8* dst_yj, 
     174               int dst_stride_yj, 
     175               uint8* dst_u, 
     176               int dst_stride_u, 
     177               uint8* dst_v, 
     178               int dst_stride_v, 
     179               int width, 
     180               int height); 
    133181 
    134182// Convert ARGB to J400. (JPeg full range). 
    135183LIBYUV_API 
    136 int ARGBToJ400(const uint8* src_argb, int src_stride_argb, 
    137                uint8* dst_yj, int dst_stride_yj, 
    138                int width, int height); 
     184int ARGBToJ400(const uint8* src_argb, 
     185               int src_stride_argb, 
     186               uint8* dst_yj, 
     187               int dst_stride_yj, 
     188               int width, 
     189               int height); 
    139190 
    140191// Convert ARGB to I400. 
    141192LIBYUV_API 
    142 int ARGBToI400(const uint8* src_argb, int src_stride_argb, 
    143                uint8* dst_y, int dst_stride_y, 
    144                int width, int height); 
     193int ARGBToI400(const uint8* src_argb, 
     194               int src_stride_argb, 
     195               uint8* dst_y, 
     196               int dst_stride_y, 
     197               int width, 
     198               int height); 
    145199 
    146200// Convert ARGB to G. (Reverse of J400toARGB, which replicates G back to ARGB) 
    147201LIBYUV_API 
    148 int ARGBToG(const uint8* src_argb, int src_stride_argb, 
    149             uint8* dst_g, int dst_stride_g, 
    150             int width, int height); 
     202int ARGBToG(const uint8* src_argb, 
     203            int src_stride_argb, 
     204            uint8* dst_g, 
     205            int dst_stride_g, 
     206            int width, 
     207            int height); 
    151208 
    152209// Convert ARGB To NV12. 
    153210LIBYUV_API 
    154 int ARGBToNV12(const uint8* src_argb, int src_stride_argb, 
    155                uint8* dst_y, int dst_stride_y, 
    156                uint8* dst_uv, int dst_stride_uv, 
    157                int width, int height); 
     211int ARGBToNV12(const uint8* src_argb, 
     212               int src_stride_argb, 
     213               uint8* dst_y, 
     214               int dst_stride_y, 
     215               uint8* dst_uv, 
     216               int dst_stride_uv, 
     217               int width, 
     218               int height); 
    158219 
    159220// Convert ARGB To NV21. 
    160221LIBYUV_API 
    161 int ARGBToNV21(const uint8* src_argb, int src_stride_argb, 
    162                uint8* dst_y, int dst_stride_y, 
    163                uint8* dst_vu, int dst_stride_vu, 
    164                int width, int height); 
     222int ARGBToNV21(const uint8* src_argb, 
     223               int src_stride_argb, 
     224               uint8* dst_y, 
     225               int dst_stride_y, 
     226               uint8* dst_vu, 
     227               int dst_stride_vu, 
     228               int width, 
     229               int height); 
    165230 
    166231// Convert ARGB To NV21. 
    167232LIBYUV_API 
    168 int ARGBToNV21(const uint8* src_argb, int src_stride_argb, 
    169                uint8* dst_y, int dst_stride_y, 
    170                uint8* dst_vu, int dst_stride_vu, 
    171                int width, int height); 
     233int ARGBToNV21(const uint8* src_argb, 
     234               int src_stride_argb, 
     235               uint8* dst_y, 
     236               int dst_stride_y, 
     237               uint8* dst_vu, 
     238               int dst_stride_vu, 
     239               int width, 
     240               int height); 
    172241 
    173242// Convert ARGB To YUY2. 
    174243LIBYUV_API 
    175 int ARGBToYUY2(const uint8* src_argb, int src_stride_argb, 
    176                uint8* dst_yuy2, int dst_stride_yuy2, 
    177                int width, int height); 
     244int ARGBToYUY2(const uint8* src_argb, 
     245               int src_stride_argb, 
     246               uint8* dst_yuy2, 
     247               int dst_stride_yuy2, 
     248               int width, 
     249               int height); 
    178250 
    179251// Convert ARGB To UYVY. 
    180252LIBYUV_API 
    181 int ARGBToUYVY(const uint8* src_argb, int src_stride_argb, 
    182                uint8* dst_uyvy, int dst_stride_uyvy, 
    183                int width, int height); 
     253int ARGBToUYVY(const uint8* src_argb, 
     254               int src_stride_argb, 
     255               uint8* dst_uyvy, 
     256               int dst_stride_uyvy, 
     257               int width, 
     258               int height); 
    184259 
    185260#ifdef __cplusplus 
     
    188263#endif 
    189264 
    190 #endif  // INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_  NOLINT 
     265#endif  // INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ 
Note: See TracChangeset for help on using the changeset viewer.