mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Replace some hardcoded values with the SUBSAMPLE
Thu Jan 10 16:48:30 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Replace some hardcoded values with the SUBSAMPLE
This commit is contained in:
parent
f74dd2386a
commit
868603bc15
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jan 10 16:48:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* pixops/pixops.c: Replace some hardcoded values with the
|
||||||
|
SUBSAMPLE
|
||||||
|
|
||||||
Wed Jan 9 11:29:44 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jan 9 11:29:44 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Makefile.am (s-enum-types-h): Include glib-object.h,
|
* Makefile.am (s-enum-types-h): Include glib-object.h,
|
||||||
|
@ -1081,8 +1081,8 @@ tile_make_weights (PixopsFilter *filter, double x_scale, double y_scale, double
|
|||||||
for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
|
for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
|
||||||
{
|
{
|
||||||
int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
|
int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
|
||||||
double x = (double)j_offset / 16;
|
double x = (double)j_offset / SUBSAMPLE;
|
||||||
double y = (double)i_offset / 16;
|
double y = (double)i_offset / SUBSAMPLE;
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
for (i = 0; i < n_y; i++)
|
for (i = 0; i < n_y; i++)
|
||||||
@ -1167,8 +1167,8 @@ bilinear_make_fast_weights (PixopsFilter *filter, double x_scale, double y_scale
|
|||||||
for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
|
for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
|
||||||
{
|
{
|
||||||
int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
|
int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
|
||||||
double x = (double)j_offset / 16;
|
double x = (double)j_offset / SUBSAMPLE;
|
||||||
double y = (double)i_offset / 16;
|
double y = (double)i_offset / SUBSAMPLE;
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
if (x_scale > 1.0) /* Bilinear */
|
if (x_scale > 1.0) /* Bilinear */
|
||||||
@ -1311,8 +1311,8 @@ bilinear_make_weights (PixopsFilter *filter, double x_scale, double y_scale, dou
|
|||||||
for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
|
for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
|
||||||
{
|
{
|
||||||
int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
|
int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
|
||||||
double x = (double)j_offset / 16;
|
double x = (double)j_offset / SUBSAMPLE;
|
||||||
double y = (double)i_offset / 16;
|
double y = (double)i_offset / SUBSAMPLE;
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
for (i = 0; i < n_y; i++)
|
for (i = 0; i < n_y; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user