Lines Matching refs:buffer

67 	// Note:  When allocating buffers, buffer allocation starts at the end of
68 // video memory, and works backward to the end of the video frame buffer.
70 // objects which are ordered by the buffer address with the first object
71 // in the list having the highest buffer address.
82 // Calculate required buffer size as a multiple of 1K.
89 // the address where the buffer area will start. Leave a gap of about 4K
91 // thus, if the overlay buffer overflows it will be less apt to affect the
98 // buffer and the start of the previous buffer to allocate the new
99 // buffer.
101 addr_t currentBuffEndAddr = (addr_t)ovBuff->buffer + ovBuff->size;
103 break; // sufficient space for the new buffer
105 prevBuffAddr = (addr_t)ovBuff->buffer;
114 // thus space must be allocated between the last buffer and the end of
115 // the video frame buffer. Compute where current video frame buffer
117 // the new buffer to be created.
127 "byte buffer\n", buffSize, buffSize);
128 return NULL; // insufficient space for buffer
146 ovBuff->buffer = (void*)(prevBuffAddr - buffSize);
148 + ((addr_t)ovBuff->buffer - si.videoMemAddr));
156 TRACE("AllocateOverlayBuffer() allocated %ld (0x%lx) byte buffer at 0x%lx\n",
157 buffSize, buffSize, ovBuff->buffer);
163 ReleaseOverlayBuffer(const overlay_buffer* buffer)
167 if (buffer == NULL)
170 // Find the buffer to be released.
176 if (ovBuff->buffer == buffer->buffer) {
193 TRACE("ReleaseOverlayBuffer() buffer to release at 0x%lx not found\n",
194 buffer->buffer);
195 return B_ERROR; // buffer to be released not found in chain of buffers
200 GetOverlayConstraints(const display_mode* mode, const overlay_buffer* buffer,
203 if ((mode == NULL) || (buffer == NULL) || (constraints == NULL))
210 if (buffer->space == B_YCbCr422)
214 buffer->space);
223 constraints->view.width.max = buffer->width;
224 constraints->view.height.max = buffer->height;
283 ConfigureOverlay(overlay_token overlayToken, const overlay_buffer* buffer,
291 if (buffer == NULL)
305 if (!Mach64_DisplayOverlay(window, buffer)) {
311 if (!Rage128_DisplayOverlay(window, buffer)) {