forked from tTh/FloatImg
added mollyguard
This commit is contained in:
parent
b35f72f9c2
commit
1840a5bddd
|
@ -19,6 +19,11 @@ fprintf(stderr," type %d size %dx%d\n", img->type,
|
||||||
img->width, img->height);
|
img->width, img->height);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (img->type != FIMG_TYPE_RGB) {
|
||||||
|
fprintf(stderr, "%s : type %d invalide\n", __func__, img->type);
|
||||||
|
return -99;
|
||||||
|
}
|
||||||
|
|
||||||
pr = img->R; pg = img->G; pb = img->B;
|
pr = img->R; pg = img->G; pb = img->B;
|
||||||
|
|
||||||
for (y=1; y < img->height-1; y++) {
|
for (y=1; y < img->height-1; y++) {
|
||||||
|
@ -56,6 +61,12 @@ fprintf(stderr," type %d size %dx%d\n", img->type,
|
||||||
img->width, img->height);
|
img->width, img->height);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (img->type != FIMG_TYPE_RGB) {
|
||||||
|
fprintf(stderr, "%s : type %d invalide\n", __func__, img->type);
|
||||||
|
return -99;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
h = img->height; w = img->width;
|
h = img->height; w = img->width;
|
||||||
|
|
||||||
for (idx=0; idx<h; idx++) {
|
for (idx=0; idx<h; idx++) {
|
||||||
|
|
Loading…
Reference in New Issue