1 /*
2 * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
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
632 * by the formula: (AX + BXminusAX, AY + BYminusAY) == (BX, BY).
633 * The contents of both bounds objects are modified to represent their
634 * mutual intersection.
635 */
636 JNIEXPORT void JNICALL
637 SurfaceData_IntersectBlitBounds(SurfaceDataBounds *Abounds,
638 SurfaceDataBounds *Bbounds,
639 jint BXminusAX, jint BYminusAY);
640
641
642 /*
643 * This function creates and initializes the ops structure. The function
644 * is called by "subclasses" of SurfaceData (e.g., BufImgSurfaceData)
645 * which pass in the size of the structure to allocate (subclasses generally
646 * need additional fields in the ops structure particular to their usage
647 * of the structure). The structure is allocated and initialized
648 * and is stored in the SurfaceData java object for later retrieval.
649 * Subclasses of SurfaceData should call this function instead of allocating
650 * the memory directly.
651 */
652 SurfaceDataOps *SurfaceData_InitOps(JNIEnv *env, jobject sData, int opsSize);
653
654 /*
655 * This function invokes the ops-specific disposal function.
656 * It is a part of the finalizers-free disposal mechanism.
657 * (see Disposer and DefaultDisposerRecord classes for more information)
658 * It also destroys the ops structure created in SurfaceData_InitOps.
659 */
660 void SurfaceData_DisposeOps(JNIEnv *env, jlong ops);
661
662 #ifdef __cplusplus
663 };
664 #endif
665
666 #endif
|
1 /*
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
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
632 * by the formula: (AX + BXminusAX, AY + BYminusAY) == (BX, BY).
633 * The contents of both bounds objects are modified to represent their
634 * mutual intersection.
635 */
636 JNIEXPORT void JNICALL
637 SurfaceData_IntersectBlitBounds(SurfaceDataBounds *Abounds,
638 SurfaceDataBounds *Bbounds,
639 jint BXminusAX, jint BYminusAY);
640
641
642 /*
643 * This function creates and initializes the ops structure. The function
644 * is called by "subclasses" of SurfaceData (e.g., BufImgSurfaceData)
645 * which pass in the size of the structure to allocate (subclasses generally
646 * need additional fields in the ops structure particular to their usage
647 * of the structure). The structure is allocated and initialized
648 * and is stored in the SurfaceData java object for later retrieval.
649 * Subclasses of SurfaceData should call this function instead of allocating
650 * the memory directly.
651 */
652 JNIEXPORT SurfaceDataOps * JNICALL
653 SurfaceData_InitOps(JNIEnv *env, jobject sData, int opsSize);
654
655 /*
656 * This function invokes the ops-specific disposal function.
657 * It is a part of the finalizers-free disposal mechanism.
658 * (see Disposer and DefaultDisposerRecord classes for more information)
659 * It also destroys the ops structure created in SurfaceData_InitOps.
660 */
661 void SurfaceData_DisposeOps(JNIEnv *env, jlong ops);
662
663 #ifdef __cplusplus
664 };
665 #endif
666
667 #endif
|