< prev index next >

src/java.desktop/share/native/libmlib_image/mlib_ImageConv.h

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 #ifndef __MLIB_IMAGECONV_H
  28 #define __MLIB_IMAGECONV_H
  29 
  30 #ifdef __cplusplus
  31 extern "C" {
  32 #endif /* __cplusplus */
  33 
  34 // Shared macro defined for cleanup of allocated memory.
  35 #ifndef FREE_AND_RETURN_STATUS
  36 #define FREE_AND_RETURN_STATUS \
  37 { \
  38 if (pbuff != buff) mlib_free(pbuff); \
  39 if (k != akernel) mlib_free(k); \
  40 return status; \
  41 }
  42 #endif /* FREE_AND_RETURN_STATUS */
  43 
  44 mlib_status mlib_convMxNext_s32(mlib_image       *dst,
  45                                 const mlib_image *src,
  46                                 const mlib_s32   *kernel,
  47                                 mlib_s32         m,
  48                                 mlib_s32         n,
  49                                 mlib_s32         dx_l,
  50                                 mlib_s32         dx_r,
  51                                 mlib_s32         dy_t,
  52                                 mlib_s32         dy_b,
  53                                 mlib_s32         scale,
  54                                 mlib_s32         cmask);
  55 
  56 mlib_status mlib_convMxNnw_d64(mlib_image       *dst,
  57                                const mlib_image *src,
  58                                const mlib_d64   *ker,
  59                                mlib_s32         m,
  60                                mlib_s32         n,
  61                                mlib_s32         dm,




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 #ifndef __MLIB_IMAGECONV_H
  28 #define __MLIB_IMAGECONV_H
  29 
  30 #ifdef __cplusplus
  31 extern "C" {
  32 #endif /* __cplusplus */
  33 
  34 // Shared macro defined for cleanup of allocated memory.
  35 #ifndef FREE_AND_RETURN_STATUS
  36 #define FREE_AND_RETURN_STATUS \

  37 if (pbuff != buff) mlib_free(pbuff); \
  38 if (k != akernel) mlib_free(k); \
  39 return status

  40 #endif /* FREE_AND_RETURN_STATUS */
  41 
  42 mlib_status mlib_convMxNext_s32(mlib_image       *dst,
  43                                 const mlib_image *src,
  44                                 const mlib_s32   *kernel,
  45                                 mlib_s32         m,
  46                                 mlib_s32         n,
  47                                 mlib_s32         dx_l,
  48                                 mlib_s32         dx_r,
  49                                 mlib_s32         dy_t,
  50                                 mlib_s32         dy_b,
  51                                 mlib_s32         scale,
  52                                 mlib_s32         cmask);
  53 
  54 mlib_status mlib_convMxNnw_d64(mlib_image       *dst,
  55                                const mlib_image *src,
  56                                const mlib_d64   *ker,
  57                                mlib_s32         m,
  58                                mlib_s32         n,
  59                                mlib_s32         dm,


< prev index next >