Ignore:
Timestamp:
Jul 13, 2017, 11:01:58 AM (7 years ago)
Author:
meunier
Message:
  • Mise à jour NR2 et Rosenfeld
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/nrc2/include/nrset1.h

    r772 r826  
    1111#define _NRSET1_H_
    1212
    13 #ifdef __cplusplus
    14 #ifdef PRAGMA_VERBOSE
    15 #pragma message ("C++")
    16 #endif
    17 extern "C" {
    18 #endif
    19 
    20 #ifdef PRAGMA_VERBOSE
    21 //#pragma message("- include nrset1.h")
    22 #endif
    2313
    2414/*
    2515 * ------------
    2616 * --- Zero ---
     17 * --- set_vector ---
     18 * --- set_vector_param ---
     19 * --- set_vector_j ---
    2720 * ------------
    2821 */
    2922
    30 IMAGE_EXPORT(void) zero_si8vector  (sint8   *v, long nl, long nh);
    31 IMAGE_EXPORT(void) zero_ui8vector  (uint8   *v, long nl, long nh);
    32 IMAGE_EXPORT(void) zero_si16vector (sint16  *v, long nl, long nh);
    33 IMAGE_EXPORT(void) zero_ui16vector (uint16  *v, long nl, long nh);
    34 IMAGE_EXPORT(void) zero_si32vector (sint32  *v, long nl, long nh);
    35 IMAGE_EXPORT(void) zero_ui32vector (uint32  *v, long nl, long nh);
    36 IMAGE_EXPORT(void) zero_si64vector (sint64  *v, long nl, long nh);
    37 IMAGE_EXPORT(void) zero_ui64vector (uint64  *v, long nl, long nh);
     23#define zero_set_type_vector(t) \
     24void short_name(t,zero_,vector)(t * v, int32_t nl, int32_t nh); \
     25void short_name(t,set_,vector)(t * v, int32_t nl, int32_t nh, t x); \
     26void short_name(t,set_,vector_param)(t * v, int32_t nl, int32_t nh, t x, t xstep); \
     27void short_name(t,set_,vector_j)(t * v, int32_t nl, int32_t nh);
    3828
    39 IMAGE_EXPORT(void) zero_f32vector  (float32 *v, long nl, long nh);
    40 IMAGE_EXPORT(void) zero_f64vector  (float64 *v, long nl, long nh);
     29zero_set_type_vector(int8_t);
     30zero_set_type_vector(uint8_t);
     31zero_set_type_vector(int16_t);
     32zero_set_type_vector(uint16_t);
     33zero_set_type_vector(int32_t);
     34zero_set_type_vector(uint32_t);
     35zero_set_type_vector(int64_t);
     36zero_set_type_vector(uint64_t);
     37zero_set_type_vector(float);
     38zero_set_type_vector(double);
     39zero_set_type_vector(rgb8);
     40zero_set_type_vector(rgbx8);
    4141
    42 IMAGE_EXPORT(void) zero_rgb8vector (rgb8    *v, long nl, long nh);
    43 IMAGE_EXPORT(void) zero_rgbx8vector(rgbx8   *v, long nl, long nh);
    44 
    45 /*
    46  * ------------------
    47  * --- set_vector ---
    48  * ------------------
    49  */
    50 
    51 IMAGE_EXPORT(void) set_si8vector  (sint8   *v, long nl, long nh, sint8   x);
    52 IMAGE_EXPORT(void) set_ui8vector  (uint8   *v, long nl, long nh, uint8   x);
    53 IMAGE_EXPORT(void) set_si16vector (sint16  *v, long nl, long nh, int16   x);
    54 IMAGE_EXPORT(void) set_ui16vector (uint16  *v, long nl, long nh, uint16  x);
    55 IMAGE_EXPORT(void) set_si32vector (sint32  *v, long nl, long nh, sint32  x);
    56 IMAGE_EXPORT(void) set_ui32vector (uint32  *v, long nl, long nh, uint32  x);
    57 IMAGE_EXPORT(void) set_si64vector (sint64  *v, long nl, long nh, sint64  x);
    58 IMAGE_EXPORT(void) set_ui64vector (uint64  *v, long nl, long nh, uint64  x);
    59 
    60 IMAGE_EXPORT(void) set_f32vector  (float32 *v, long nl, long nh, float32 x);
    61 IMAGE_EXPORT(void) set_f64vector  (float64 *v, long nl, long nh, float64 x);
    62 
    63 IMAGE_EXPORT(void) set_rgb8vector (rgb8    *v, long nl, long nh, rgb8    x);
    64 IMAGE_EXPORT(void) set_rgbx8vector(rgbx8   *v, long nl, long nh, rgbx8   x);
    65 
    66 /*
    67  * ------------------------
    68  * --- set_vector_param ---
    69  * ------------------------
    70  */
    71 
    72 IMAGE_EXPORT(void) set_si8vector_param  (sint8   *v, long nl, long nh, sint8   x, sint8  xstep);
    73 IMAGE_EXPORT(void) set_ui8vector_param  (uint8   *v, long nl, long nh, uint8   x, uint8  xstep);
    74 IMAGE_EXPORT(void) set_si16vector_param (sint16  *v, long nl, long nh, int16   x, sint16 xstep);
    75 IMAGE_EXPORT(void) set_ui16vector_param (uint16  *v, long nl, long nh, uint16  x, uint16 xstep);
    76 IMAGE_EXPORT(void) set_si32vector_param (sint32  *v, long nl, long nh, sint32  x, sint32 xstep);
    77 IMAGE_EXPORT(void) set_ui32vector_param (uint32  *v, long nl, long nh, uint32  x, uint32 xstep);
    78 IMAGE_EXPORT(void) set_si64vector_param (sint64  *v, long nl, long nh, sint64  x, sint64 xstep);
    79 IMAGE_EXPORT(void) set_ui64vector_param (uint64  *v, long nl, long nh, uint64  x, uint64 xstep);
    80 
    81 IMAGE_EXPORT(void) set_f32vector_param  (float32 *v, long nl, long nh, float32 x, float32 xstep);
    82 IMAGE_EXPORT(void) set_f64vector_param  (float64 *v, long nl, long nh, float64 x, float64 xstep);
    83 
    84 IMAGE_EXPORT(void) set_rgb8vector_param (rgb8    *v, long nl, long nh, rgb8    x, rgb8  xstep);
    85 IMAGE_EXPORT(void) set_rgbx8vector_param(rgbx8   *v, long nl, long nh, rgbx8   x, rgbx8 xstep);
    86 
    87 /*
    88  * --------------------
    89  * --- set_vector_j ---
    90  * --------------------
    91  */
    92 
    93 IMAGE_EXPORT(void) set_si8vector_j  (sint8   *v, long nl, long nh);
    94 IMAGE_EXPORT(void) set_ui8vector_j  (uint8   *v, long nl, long nh);
    95 IMAGE_EXPORT(void) set_si16vector_j (sint16  *v, long nl, long nh);
    96 IMAGE_EXPORT(void) set_ui16vector_j (uint16  *v, long nl, long nh);
    97 IMAGE_EXPORT(void) set_si32vector_j (sint32  *v, long nl, long nh);
    98 IMAGE_EXPORT(void) set_ui32vector_j (uint32  *v, long nl, long nh);
    99 
    100 IMAGE_EXPORT(void) set_f32vector_j  (float32 *v, long nl, long nh);
    101 IMAGE_EXPORT(void) set_f64vector_j  (float64 *v, long nl, long nh);
    102 
    103 IMAGE_EXPORT(void) set_rgb8vector_j (rgb8    *v, long nl, long nh);
    104 IMAGE_EXPORT(void) set_rgbx8vector_j(rgbx8   *v, long nl, long nh);
    10542
    10643/*
     
    11047 */
    11148
    112 IMAGE_EXPORT(void) set_si8vector_str  (sint8  *v, long nl, long nh, char *str);
    113 IMAGE_EXPORT(void) set_ui8vector_str  (uint8  *v, long nl, long nh, char *str);
    114 IMAGE_EXPORT(void) set_si16vector_str (sint16 *v, long nl, long nh, char *str);
    115 IMAGE_EXPORT(void) set_ui16vector_str (uint16 *v, long nl, long nh, char *str);
    116 IMAGE_EXPORT(void) set_si32vector_str (sint32 *v, long nl, long nh, char *str);
    117 IMAGE_EXPORT(void) set_ui32vector_str (uint32 *v, long nl, long nh, char *str);
     49#define set_type_vector_str(t) \
     50void short_name(t,set_,vector_str)(t * v, int32_t nl, int32_t nh, char * str);
    11851
    119 #ifdef __cplusplus
    120 }
    121 #endif
     52set_type_vector_str(int8_t);
     53set_type_vector_str(uint8_t);
     54set_type_vector_str(int16_t);
     55set_type_vector_str(uint16_t);
     56set_type_vector_str(int32_t);
     57set_type_vector_str(uint32_t);
     58set_type_vector_str(int64_t);
     59set_type_vector_str(uint64_t);
     60
    12261
    12362#endif /* __NRSET1_H__ */
     63
Note: See TracChangeset for help on using the changeset viewer.