Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4a9342ed
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4a9342ed
编写于
3月 11, 2014
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
588051e0
39188874
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
src/share/native/sun/awt/medialib/awt_ImagingLib.c
src/share/native/sun/awt/medialib/awt_ImagingLib.c
+13
-13
未找到文件。
src/share/native/sun/awt/medialib/awt_ImagingLib.c
浏览文件 @
4a9342ed
/*
/*
* Copyright (c) 1997, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -373,14 +373,14 @@ Java_sun_awt_image_ImagingLib_convolveBI(JNIEnv *env, jobject this,
...
@@ -373,14 +373,14 @@ Java_sun_awt_image_ImagingLib_convolveBI(JNIEnv *env, jobject this,
/* Parse the source image */
/* Parse the source image */
if
(
(
status
=
awt_parseImage
(
env
,
jsrc
,
&
srcImageP
,
FALSE
)
)
<=
0
)
{
if
(
awt_parseImage
(
env
,
jsrc
,
&
srcImageP
,
FALSE
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
free
(
dkern
);
free
(
dkern
);
return
0
;
return
0
;
}
}
/* Parse the destination image */
/* Parse the destination image */
if
(
(
status
=
awt_parseImage
(
env
,
jdst
,
&
dstImageP
,
FALSE
)
)
<=
0
)
{
if
(
awt_parseImage
(
env
,
jdst
,
&
dstImageP
,
FALSE
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
awt_freeParsedImage
(
srcImageP
,
TRUE
);
awt_freeParsedImage
(
srcImageP
,
TRUE
);
free
(
dkern
);
free
(
dkern
);
...
@@ -627,7 +627,7 @@ Java_sun_awt_image_ImagingLib_convolveRaster(JNIEnv *env, jobject this,
...
@@ -627,7 +627,7 @@ Java_sun_awt_image_ImagingLib_convolveRaster(JNIEnv *env, jobject this,
}
}
/* Parse the source raster */
/* Parse the source raster */
if
(
(
status
=
awt_parseRaster
(
env
,
jsrc
,
srcRasterP
)
)
<=
0
)
{
if
(
awt_parseRaster
(
env
,
jsrc
,
srcRasterP
)
<=
0
)
{
/* Can't handle any custom rasters */
/* Can't handle any custom rasters */
free
(
srcRasterP
);
free
(
srcRasterP
);
free
(
dstRasterP
);
free
(
dstRasterP
);
...
@@ -636,7 +636,7 @@ Java_sun_awt_image_ImagingLib_convolveRaster(JNIEnv *env, jobject this,
...
@@ -636,7 +636,7 @@ Java_sun_awt_image_ImagingLib_convolveRaster(JNIEnv *env, jobject this,
}
}
/* Parse the destination raster */
/* Parse the destination raster */
if
(
(
status
=
awt_parseRaster
(
env
,
jdst
,
dstRasterP
)
)
<=
0
)
{
if
(
awt_parseRaster
(
env
,
jdst
,
dstRasterP
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
awt_freeParsedRaster
(
srcRasterP
,
TRUE
);
awt_freeParsedRaster
(
srcRasterP
,
TRUE
);
free
(
dstRasterP
);
free
(
dstRasterP
);
...
@@ -839,13 +839,13 @@ Java_sun_awt_image_ImagingLib_transformBI(JNIEnv *env, jobject this,
...
@@ -839,13 +839,13 @@ Java_sun_awt_image_ImagingLib_transformBI(JNIEnv *env, jobject this,
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
jmatrix
,
matrix
,
JNI_ABORT
);
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
jmatrix
,
matrix
,
JNI_ABORT
);
/* Parse the source image */
/* Parse the source image */
if
(
(
status
=
awt_parseImage
(
env
,
jsrc
,
&
srcImageP
,
FALSE
)
)
<=
0
)
{
if
(
awt_parseImage
(
env
,
jsrc
,
&
srcImageP
,
FALSE
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
return
0
;
return
0
;
}
}
/* Parse the destination image */
/* Parse the destination image */
if
(
(
status
=
awt_parseImage
(
env
,
jdst
,
&
dstImageP
,
FALSE
)
)
<=
0
)
{
if
(
awt_parseImage
(
env
,
jdst
,
&
dstImageP
,
FALSE
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
awt_freeParsedImage
(
srcImageP
,
TRUE
);
awt_freeParsedImage
(
srcImageP
,
TRUE
);
return
0
;
return
0
;
...
@@ -1059,7 +1059,7 @@ Java_sun_awt_image_ImagingLib_transformRaster(JNIEnv *env, jobject this,
...
@@ -1059,7 +1059,7 @@ Java_sun_awt_image_ImagingLib_transformRaster(JNIEnv *env, jobject this,
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
jmatrix
,
matrix
,
JNI_ABORT
);
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
jmatrix
,
matrix
,
JNI_ABORT
);
/* Parse the source raster */
/* Parse the source raster */
if
(
(
status
=
awt_parseRaster
(
env
,
jsrc
,
srcRasterP
)
)
<=
0
)
{
if
(
awt_parseRaster
(
env
,
jsrc
,
srcRasterP
)
<=
0
)
{
/* Can't handle any custom rasters */
/* Can't handle any custom rasters */
free
(
srcRasterP
);
free
(
srcRasterP
);
free
(
dstRasterP
);
free
(
dstRasterP
);
...
@@ -1067,7 +1067,7 @@ Java_sun_awt_image_ImagingLib_transformRaster(JNIEnv *env, jobject this,
...
@@ -1067,7 +1067,7 @@ Java_sun_awt_image_ImagingLib_transformRaster(JNIEnv *env, jobject this,
}
}
/* Parse the destination raster */
/* Parse the destination raster */
if
(
(
status
=
awt_parseRaster
(
env
,
jdst
,
dstRasterP
)
)
<=
0
)
{
if
(
awt_parseRaster
(
env
,
jdst
,
dstRasterP
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
awt_freeParsedRaster
(
srcRasterP
,
TRUE
);
awt_freeParsedRaster
(
srcRasterP
,
TRUE
);
free
(
dstRasterP
);
free
(
dstRasterP
);
...
@@ -1305,13 +1305,13 @@ Java_sun_awt_image_ImagingLib_lookupByteBI(JNIEnv *env, jobject thisLib,
...
@@ -1305,13 +1305,13 @@ Java_sun_awt_image_ImagingLib_lookupByteBI(JNIEnv *env, jobject thisLib,
if
(
s_timeIt
)
(
*
start_timer
)(
3600
);
if
(
s_timeIt
)
(
*
start_timer
)(
3600
);
/* Parse the source image */
/* Parse the source image */
if
(
(
status
=
awt_parseImage
(
env
,
jsrc
,
&
srcImageP
,
FALSE
)
)
<=
0
)
{
if
(
awt_parseImage
(
env
,
jsrc
,
&
srcImageP
,
FALSE
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
return
0
;
return
0
;
}
}
/* Parse the destination image */
/* Parse the destination image */
if
(
(
status
=
awt_parseImage
(
env
,
jdst
,
&
dstImageP
,
FALSE
)
)
<=
0
)
{
if
(
awt_parseImage
(
env
,
jdst
,
&
dstImageP
,
FALSE
)
<=
0
)
{
/* Can't handle any custom images */
/* Can't handle any custom images */
awt_freeParsedImage
(
srcImageP
,
TRUE
);
awt_freeParsedImage
(
srcImageP
,
TRUE
);
return
0
;
return
0
;
...
@@ -1553,14 +1553,14 @@ Java_sun_awt_image_ImagingLib_lookupByteRaster(JNIEnv *env,
...
@@ -1553,14 +1553,14 @@ Java_sun_awt_image_ImagingLib_lookupByteRaster(JNIEnv *env,
}
}
/* Parse the source raster - reject custom images */
/* Parse the source raster - reject custom images */
if
(
(
status
=
awt_parseRaster
(
env
,
jsrc
,
srcRasterP
)
)
<=
0
)
{
if
(
awt_parseRaster
(
env
,
jsrc
,
srcRasterP
)
<=
0
)
{
free
(
srcRasterP
);
free
(
srcRasterP
);
free
(
dstRasterP
);
free
(
dstRasterP
);
return
0
;
return
0
;
}
}
/* Parse the destination image - reject custom images */
/* Parse the destination image - reject custom images */
if
(
(
status
=
awt_parseRaster
(
env
,
jdst
,
dstRasterP
)
)
<=
0
)
{
if
(
awt_parseRaster
(
env
,
jdst
,
dstRasterP
)
<=
0
)
{
awt_freeParsedRaster
(
srcRasterP
,
TRUE
);
awt_freeParsedRaster
(
srcRasterP
,
TRUE
);
free
(
dstRasterP
);
free
(
dstRasterP
);
return
0
;
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录