×

Method and apparatus for allocating off-screen display memory

  • US 5,291,188 A
  • Filed: 06/17/1991
  • Issued: 03/01/1994
  • Est. Priority Date: 06/17/1991
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system comprising a frame buffer memory, a method for allocating space in a selected portion of a frame buffer memory to store off-screen information, said method comprising the steps of:

  • dividing said selected portion of frame buffer memory into a matrix of blocks, each block having equal width and equal height, said block width and block height being equal to a power of two;

    adjusting a requested memory size comprising a requested width and a requested height, rounding said requested width and requested height to the next power of two larger than the larger of said requested width and height;

    searching said selected portion of said frame buffer memory for a free area to allocate, said free area being equal to said adjusted requested size comprising an integral multiple of said frame buffer memory blocks, said search being systematically conducted in an initial corner area and a series of three adjacent area sets until said free area is found, said initial corner area and each of the three adjacent areas of the first three adjacent area set being equal in size to said free area being sought, each of the three adjacent areas of the nth three adjacent area set being four times in size of each of the three adjacent areas of the n-1th three adjacent area set and two of the three adjacent areas of the nth three adjacent area set being adjacent to two of the three adjacent areas of the n-1th three adjacent area set, each of the three adjacent areas of the nth three adjacent area set being searched in the same manner as said initial corner area and n-1 three adjacent area sets were searched;

    allocating said memory blocks within said free area found by said search.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×