1997-08-17 21:09:35 +00:00
|
|
|
/*-
|
2017-11-26 02:00:33 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*
|
2012-01-07 16:13:56 +00:00
|
|
|
* Copyright (c) 1991-1997 Søren Schmidt
|
1997-08-17 21:09:35 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer,
|
|
|
|
* in this position and unchanged.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. The name of the author may not be used to endorse or promote products
|
2002-06-02 20:05:59 +00:00
|
|
|
* derived from this software without specific prior written permission.
|
1997-08-17 21:09:35 +00:00
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2001-09-16 21:35:07 +00:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
1997-08-17 21:09:35 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <signal.h>
|
2000-10-08 21:34:00 +00:00
|
|
|
#include <sys/fbio.h>
|
1997-08-17 21:09:35 +00:00
|
|
|
#include "vgl.h"
|
|
|
|
|
1999-11-08 11:37:46 +00:00
|
|
|
#define min(x, y) (((x) < (y)) ? (x) : (y))
|
|
|
|
|
1997-08-17 21:09:35 +00:00
|
|
|
static byte mask[8] = {0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, 0x03, 0x01};
|
|
|
|
static int color2bit[16] = {0x00000000, 0x00000001, 0x00000100, 0x00000101,
|
|
|
|
0x00010000, 0x00010001, 0x00010100, 0x00010101,
|
|
|
|
0x01000000, 0x01000001, 0x01000100, 0x01000101,
|
|
|
|
0x01010000, 0x01010001, 0x01010100, 0x01010101};
|
|
|
|
|
|
|
|
static void
|
|
|
|
WriteVerticalLine(VGLBitmap *dst, int x, int y, int width, byte *line)
|
|
|
|
{
|
2019-05-03 13:06:46 +00:00
|
|
|
int bwidth, i, pos, last, planepos, start_offset, end_offset, offset;
|
1999-11-08 11:37:46 +00:00
|
|
|
int len;
|
1997-08-17 21:09:35 +00:00
|
|
|
unsigned int word = 0;
|
|
|
|
byte *address;
|
1999-11-08 11:37:46 +00:00
|
|
|
byte *VGLPlane[4];
|
1997-08-17 21:09:35 +00:00
|
|
|
|
|
|
|
switch (dst->Type) {
|
|
|
|
case VIDBUF4:
|
1999-11-08 11:37:46 +00:00
|
|
|
case VIDBUF4S:
|
1997-08-17 21:09:35 +00:00
|
|
|
start_offset = (x & 0x07);
|
|
|
|
end_offset = (x + width) & 0x07;
|
2019-05-03 13:06:46 +00:00
|
|
|
bwidth = (width + start_offset) / 8;
|
1999-11-08 11:37:46 +00:00
|
|
|
if (end_offset)
|
2019-05-03 13:06:46 +00:00
|
|
|
bwidth++;
|
1999-11-08 11:37:46 +00:00
|
|
|
VGLPlane[0] = VGLBuf;
|
2019-05-03 13:06:46 +00:00
|
|
|
VGLPlane[1] = VGLPlane[0] + bwidth;
|
|
|
|
VGLPlane[2] = VGLPlane[1] + bwidth;
|
|
|
|
VGLPlane[3] = VGLPlane[2] + bwidth;
|
1997-08-17 21:09:35 +00:00
|
|
|
pos = 0;
|
|
|
|
planepos = 0;
|
1999-11-08 11:37:46 +00:00
|
|
|
last = 8 - start_offset;
|
1997-08-17 21:09:35 +00:00
|
|
|
while (pos < width) {
|
|
|
|
word = 0;
|
|
|
|
while (pos < last && pos < width)
|
|
|
|
word = (word<<1) | color2bit[line[pos++]&0x0f];
|
|
|
|
VGLPlane[0][planepos] = word;
|
|
|
|
VGLPlane[1][planepos] = word>>8;
|
|
|
|
VGLPlane[2][planepos] = word>>16;
|
|
|
|
VGLPlane[3][planepos] = word>>24;
|
|
|
|
planepos++;
|
1999-11-08 11:37:46 +00:00
|
|
|
last += 8;
|
1997-08-17 21:09:35 +00:00
|
|
|
}
|
|
|
|
planepos--;
|
|
|
|
if (end_offset) {
|
|
|
|
word <<= (8 - end_offset);
|
|
|
|
VGLPlane[0][planepos] = word;
|
|
|
|
VGLPlane[1][planepos] = word>>8;
|
|
|
|
VGLPlane[2][planepos] = word>>16;
|
|
|
|
VGLPlane[3][planepos] = word>>24;
|
|
|
|
}
|
1999-11-08 11:37:46 +00:00
|
|
|
outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */
|
|
|
|
outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */
|
1997-08-17 21:09:35 +00:00
|
|
|
for (i=0; i<4; i++) {
|
|
|
|
outb(0x3c4, 0x02);
|
|
|
|
outb(0x3c5, 0x01<<i);
|
|
|
|
outb(0x3ce, 0x04);
|
|
|
|
outb(0x3cf, i);
|
1999-11-08 11:37:46 +00:00
|
|
|
pos = VGLAdpInfo.va_line_width*y + x/8;
|
|
|
|
if (dst->Type == VIDBUF4) {
|
|
|
|
if (end_offset)
|
|
|
|
VGLPlane[i][planepos] |= dst->Bitmap[pos+planepos] & mask[end_offset];
|
|
|
|
if (start_offset)
|
|
|
|
VGLPlane[i][0] |= dst->Bitmap[pos] & ~mask[start_offset];
|
2019-05-03 13:06:46 +00:00
|
|
|
bcopy(&VGLPlane[i][0], dst->Bitmap + pos, bwidth);
|
1999-11-08 11:37:46 +00:00
|
|
|
} else { /* VIDBUF4S */
|
|
|
|
if (end_offset) {
|
|
|
|
offset = VGLSetSegment(pos + planepos);
|
|
|
|
VGLPlane[i][planepos] |= dst->Bitmap[offset] & mask[end_offset];
|
|
|
|
}
|
|
|
|
offset = VGLSetSegment(pos);
|
|
|
|
if (start_offset)
|
|
|
|
VGLPlane[i][0] |= dst->Bitmap[offset] & ~mask[start_offset];
|
2019-05-03 13:06:46 +00:00
|
|
|
for (last = bwidth; ; ) {
|
1999-11-08 11:37:46 +00:00
|
|
|
len = min(VGLAdpInfo.va_window_size - offset, last);
|
2019-05-03 13:06:46 +00:00
|
|
|
bcopy(&VGLPlane[i][bwidth - last], dst->Bitmap + offset, len);
|
1999-11-08 11:37:46 +00:00
|
|
|
pos += len;
|
|
|
|
last -= len;
|
|
|
|
if (last <= 0)
|
|
|
|
break;
|
|
|
|
offset = VGLSetSegment(pos);
|
|
|
|
}
|
|
|
|
}
|
1997-08-17 21:09:35 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case VIDBUF8X:
|
1999-11-08 11:37:46 +00:00
|
|
|
address = dst->Bitmap + VGLAdpInfo.va_line_width * y + x/4;
|
1997-08-17 21:09:35 +00:00
|
|
|
for (i=0; i<4; i++) {
|
|
|
|
outb(0x3c4, 0x02);
|
1999-08-22 03:31:13 +00:00
|
|
|
outb(0x3c5, 0x01 << ((x + i)%4));
|
|
|
|
for (planepos=0, pos=i; pos<width; planepos++, pos+=4)
|
1997-08-17 21:09:35 +00:00
|
|
|
address[planepos] = line[pos];
|
1999-08-22 03:31:13 +00:00
|
|
|
if ((x + i)%4 == 3)
|
|
|
|
++address;
|
|
|
|
}
|
1997-08-17 21:09:35 +00:00
|
|
|
break;
|
1999-11-08 11:37:46 +00:00
|
|
|
case VIDBUF8S:
|
2001-01-13 11:30:17 +00:00
|
|
|
case VIDBUF16S:
|
|
|
|
case VIDBUF24S:
|
|
|
|
case VIDBUF32S:
|
|
|
|
width = width * dst->PixelBytes;
|
|
|
|
pos = (dst->VXsize * y + x) * dst->PixelBytes;
|
|
|
|
while (width > 0) {
|
|
|
|
offset = VGLSetSegment(pos);
|
|
|
|
i = min(VGLAdpInfo.va_window_size - offset, width);
|
|
|
|
bcopy(line, dst->Bitmap + offset, i);
|
|
|
|
line += i;
|
|
|
|
pos += i;
|
|
|
|
width -= i;
|
|
|
|
}
|
|
|
|
break;
|
1997-08-17 21:09:35 +00:00
|
|
|
case MEMBUF:
|
2019-04-08 04:54:15 +00:00
|
|
|
case VIDBUF8:
|
2001-01-13 11:30:17 +00:00
|
|
|
case VIDBUF16:
|
|
|
|
case VIDBUF24:
|
|
|
|
case VIDBUF32:
|
|
|
|
address = dst->Bitmap + (dst->VXsize * y + x) * dst->PixelBytes;
|
|
|
|
bcopy(line, address, width * dst->PixelBytes);
|
|
|
|
break;
|
1997-08-17 21:09:35 +00:00
|
|
|
default:
|
2002-05-30 21:03:02 +00:00
|
|
|
;
|
1997-08-17 21:09:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
__VGLBitmapCopy(VGLBitmap *src, int srcx, int srcy,
|
|
|
|
VGLBitmap *dst, int dstx, int dsty, int width, int hight)
|
|
|
|
{
|
2019-04-24 16:03:35 +00:00
|
|
|
byte *buffer, *p;
|
|
|
|
int mousemerge, srcline, dstline, yend, yextra, ystep;
|
|
|
|
|
|
|
|
mousemerge = 0;
|
|
|
|
if (hight < 0) {
|
|
|
|
hight = -hight;
|
|
|
|
mousemerge = (dst == VGLDisplay &&
|
|
|
|
VGLMouseOverlap(dstx, dsty, width, hight));
|
|
|
|
if (mousemerge)
|
|
|
|
buffer = alloca(width*src->PixelBytes);
|
|
|
|
}
|
1999-11-08 11:37:46 +00:00
|
|
|
if (srcx>src->VXsize || srcy>src->VYsize
|
|
|
|
|| dstx>dst->VXsize || dsty>dst->VYsize)
|
1997-08-17 21:09:35 +00:00
|
|
|
return -1;
|
|
|
|
if (srcx < 0) {
|
|
|
|
width=width+srcx; dstx-=srcx; srcx=0;
|
|
|
|
}
|
|
|
|
if (srcy < 0) {
|
|
|
|
hight=hight+srcy; dsty-=srcy; srcy=0;
|
|
|
|
}
|
|
|
|
if (dstx < 0) {
|
|
|
|
width=width+dstx; srcx-=dstx; dstx=0;
|
|
|
|
}
|
|
|
|
if (dsty < 0) {
|
|
|
|
hight=hight+dsty; srcy-=dsty; dsty=0;
|
|
|
|
}
|
1999-11-08 11:37:46 +00:00
|
|
|
if (srcx+width > src->VXsize)
|
|
|
|
width=src->VXsize-srcx;
|
|
|
|
if (srcy+hight > src->VYsize)
|
|
|
|
hight=src->VYsize-srcy;
|
|
|
|
if (dstx+width > dst->VXsize)
|
|
|
|
width=dst->VXsize-dstx;
|
|
|
|
if (dsty+hight > dst->VYsize)
|
|
|
|
hight=dst->VYsize-dsty;
|
1997-08-17 21:09:35 +00:00
|
|
|
if (width < 0 || hight < 0)
|
|
|
|
return -1;
|
2019-04-19 20:29:49 +00:00
|
|
|
yend = srcy + hight;
|
|
|
|
yextra = 0;
|
|
|
|
ystep = 1;
|
|
|
|
if (src->Bitmap == dst->Bitmap && srcy < dsty) {
|
2019-04-26 13:04:10 +00:00
|
|
|
yend = srcy - 1;
|
2019-04-19 20:29:49 +00:00
|
|
|
yextra = hight - 1;
|
|
|
|
ystep = -1;
|
|
|
|
}
|
2019-04-21 16:17:35 +00:00
|
|
|
for (srcline = srcy + yextra, dstline = dsty + yextra; srcline != yend;
|
|
|
|
srcline += ystep, dstline += ystep) {
|
2019-04-24 16:03:35 +00:00
|
|
|
p = src->Bitmap+(srcline*src->VXsize+srcx)*dst->PixelBytes;
|
|
|
|
if (mousemerge && VGLMouseOverlap(dstx, dstline, width, 1)) {
|
|
|
|
bcopy(p, buffer, width*src->PixelBytes);
|
|
|
|
p = buffer;
|
|
|
|
VGLMouseMerge(dstx, dstline, width, p);
|
|
|
|
}
|
|
|
|
WriteVerticalLine(dst, dstx, dstline, width, p);
|
1997-08-17 21:09:35 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
VGLBitmapCopy(VGLBitmap *src, int srcx, int srcy,
|
|
|
|
VGLBitmap *dst, int dstx, int dsty, int width, int hight)
|
|
|
|
{
|
2019-04-24 16:03:35 +00:00
|
|
|
int error;
|
1997-08-17 21:09:35 +00:00
|
|
|
|
2019-04-24 16:03:35 +00:00
|
|
|
if (hight < 0)
|
|
|
|
return -1;
|
2019-04-21 16:17:35 +00:00
|
|
|
if (src == VGLDisplay)
|
|
|
|
src = &VGLVDisplay;
|
2019-03-27 18:03:34 +00:00
|
|
|
if (src->Type != MEMBUF)
|
2019-04-21 16:17:35 +00:00
|
|
|
return -1; /* invalid */
|
|
|
|
if (dst == VGLDisplay) {
|
2019-04-24 15:35:29 +00:00
|
|
|
VGLMouseFreeze();
|
2019-04-24 16:03:35 +00:00
|
|
|
__VGLBitmapCopy(src, srcx, srcy, &VGLVDisplay, dstx, dsty, width, hight);
|
2019-04-24 15:35:29 +00:00
|
|
|
error = __VGLBitmapCopy(src, srcx, srcy, &VGLVDisplay, dstx, dsty,
|
|
|
|
width, hight);
|
2019-04-24 16:03:35 +00:00
|
|
|
if (error != 0)
|
2019-04-24 15:35:29 +00:00
|
|
|
return error;
|
2019-04-21 16:17:35 +00:00
|
|
|
src = &VGLVDisplay;
|
|
|
|
srcx = dstx;
|
|
|
|
srcy = dsty;
|
|
|
|
} else if (dst->Type != MEMBUF)
|
|
|
|
return -1; /* invalid */
|
2019-04-24 16:03:35 +00:00
|
|
|
error = __VGLBitmapCopy(src, srcx, srcy, dst, dstx, dsty, width, -hight);
|
|
|
|
if (dst == VGLDisplay)
|
2019-03-27 18:03:34 +00:00
|
|
|
VGLMouseUnFreeze();
|
1997-08-17 21:09:35 +00:00
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|
1999-11-08 11:37:46 +00:00
|
|
|
VGLBitmap
|
|
|
|
*VGLBitmapCreate(int type, int xsize, int ysize, byte *bits)
|
|
|
|
{
|
|
|
|
VGLBitmap *object;
|
|
|
|
|
|
|
|
if (type != MEMBUF)
|
|
|
|
return NULL;
|
|
|
|
if (xsize < 0 || ysize < 0)
|
|
|
|
return NULL;
|
|
|
|
object = (VGLBitmap *)malloc(sizeof(*object));
|
|
|
|
if (object == NULL)
|
|
|
|
return NULL;
|
|
|
|
object->Type = type;
|
|
|
|
object->Xsize = xsize;
|
|
|
|
object->Ysize = ysize;
|
|
|
|
object->VXsize = xsize;
|
|
|
|
object->VYsize = ysize;
|
|
|
|
object->Xorigin = 0;
|
|
|
|
object->Yorigin = 0;
|
|
|
|
object->Bitmap = bits;
|
Fix buffer overruns in modes with color depth more than 8.
Support for 16-bit and 32-bit Truecolor modes was supposed to be
complete in r70991 of main.c and in nearby revisions for other files, but
it was broken by the overruns in most cases (all cases were the mouse
is enabled, and most cases where bitmaps are used). r70991 also
uninintentionally added support for depths 9-15, 17-23 and 25-31.
Depth 24 was more obviously broken and its support is ifdefed out. In
the other ranges, only depth 15 is common. It was broken by buffer
overruns in all cases.
bitmap.c:
- the static buffer was used even when it was too small (but it was
large enough to often work accidentally in depth 16)
- the size of the dynamically allocated buffer was too small
- the sizing info bitmap->PixelBytes was not inititialzed in the bitmap
constructor. It often ended up as 0 for MEMBUFs, so using it in more
places gave more null pointer accesses. (It is per-bitmap, but since
conversion between bitmaps of different depths is not supported (except
from 4 bits by padding to 8), it would work better if it were global.)
main.c:
- depths were rounded down instead of up to a multiple of 8, so PixelBytes
was 1 too small for depths above 8 except 16, 24 and 32.
- PixelBytes was not initialized for 4-bit planar modes. It isn't really
used for frame buffer accesses in these modes, but needs to be 1 in
MEMBUF images.
mouse.c:
- the mouse cursor buffers were too small.
vgl.h:
- PixelBytes was not initialized in the static bitmap constructor. It
should be initialized to the value for the current mode, but that is
impossible in a static constructor. Initialize it to -1 so as to
fail if it is used without further initialization.
All modes that are supposed to be supported now don't crash in
nontrivial tests, and almost work. Missing uses of PixelBytes now
give in-bounds wrong pointers instead of overruns. Misconversions of
bitmaps give multiple miscolored mouse cursors instead of 1 white one,
and similarly for bitmaps copied through a MEMBUF.
2019-03-24 18:57:03 +00:00
|
|
|
object->PixelBytes = VGLDisplay->PixelBytes;
|
1999-11-08 11:37:46 +00:00
|
|
|
return object;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
VGLBitmapDestroy(VGLBitmap *object)
|
|
|
|
{
|
|
|
|
if (object->Bitmap)
|
|
|
|
free(object->Bitmap);
|
|
|
|
free(object);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
VGLBitmapAllocateBits(VGLBitmap *object)
|
|
|
|
{
|
Fix buffer overruns in modes with color depth more than 8.
Support for 16-bit and 32-bit Truecolor modes was supposed to be
complete in r70991 of main.c and in nearby revisions for other files, but
it was broken by the overruns in most cases (all cases were the mouse
is enabled, and most cases where bitmaps are used). r70991 also
uninintentionally added support for depths 9-15, 17-23 and 25-31.
Depth 24 was more obviously broken and its support is ifdefed out. In
the other ranges, only depth 15 is common. It was broken by buffer
overruns in all cases.
bitmap.c:
- the static buffer was used even when it was too small (but it was
large enough to often work accidentally in depth 16)
- the size of the dynamically allocated buffer was too small
- the sizing info bitmap->PixelBytes was not inititialzed in the bitmap
constructor. It often ended up as 0 for MEMBUFs, so using it in more
places gave more null pointer accesses. (It is per-bitmap, but since
conversion between bitmaps of different depths is not supported (except
from 4 bits by padding to 8), it would work better if it were global.)
main.c:
- depths were rounded down instead of up to a multiple of 8, so PixelBytes
was 1 too small for depths above 8 except 16, 24 and 32.
- PixelBytes was not initialized for 4-bit planar modes. It isn't really
used for frame buffer accesses in these modes, but needs to be 1 in
MEMBUF images.
mouse.c:
- the mouse cursor buffers were too small.
vgl.h:
- PixelBytes was not initialized in the static bitmap constructor. It
should be initialized to the value for the current mode, but that is
impossible in a static constructor. Initialize it to -1 so as to
fail if it is used without further initialization.
All modes that are supposed to be supported now don't crash in
nontrivial tests, and almost work. Missing uses of PixelBytes now
give in-bounds wrong pointers instead of overruns. Misconversions of
bitmaps give multiple miscolored mouse cursors instead of 1 white one,
and similarly for bitmaps copied through a MEMBUF.
2019-03-24 18:57:03 +00:00
|
|
|
object->Bitmap = malloc(object->VXsize*object->VYsize*object->PixelBytes);
|
1999-11-08 11:37:46 +00:00
|
|
|
if (object->Bitmap == NULL)
|
|
|
|
return -1;
|
|
|
|
return 0;
|
|
|
|
}
|
2019-04-22 19:31:16 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
VGLBitmapCvt(VGLBitmap *src, VGLBitmap *dst)
|
|
|
|
{
|
|
|
|
u_long color;
|
|
|
|
int dstpos, i, pb, size, srcpb, srcpos;
|
|
|
|
|
|
|
|
size = src->VXsize * src->VYsize;
|
|
|
|
srcpb = src->PixelBytes;
|
|
|
|
if (srcpb <= 0)
|
|
|
|
srcpb = 1;
|
|
|
|
pb = dst->PixelBytes;
|
|
|
|
if (pb == srcpb) {
|
|
|
|
bcopy(src->Bitmap, dst->Bitmap, size * pb);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (srcpb != 1)
|
|
|
|
return; /* not supported */
|
|
|
|
for (srcpos = dstpos = 0; srcpos < size; srcpos++) {
|
|
|
|
color = VGLrgb332ToNative(src->Bitmap[srcpos]);
|
|
|
|
for (i = 0; i < pb; i++, color >>= 8)
|
|
|
|
dst->Bitmap[dstpos++] = color;
|
|
|
|
}
|
|
|
|
}
|