Lines Matching refs:buffer
27 * allocated buffer, but does not necessarily represent the offset in
35 * allocated buffer.
40 * The number of image layers that must be in the allocated buffer.
62 * Creates a buffer descriptor. The descriptor can be used with IAllocator
65 * Since the buffer descriptor fully describes a buffer, any device
80 * @return descriptor Newly created buffer descriptor.
87 * Imports a raw buffer handle to create an imported buffer handle for use
90 * A buffer handle is considered raw when it is cloned (e.g., with
91 * `native_handle_clone()`) from another buffer handle locally, or when it
93 * buffer handle must not be used to access the underlying graphic
94 * buffer. It must be imported to create an imported handle first.
102 * Because of passthrough HALs, a raw buffer handle received from a HAL
108 * @param rawHandle Raw buffer handle to import.
114 * @return buffer Imported buffer handle that has the type
117 importBuffer(handle rawHandle) generates (Error error, pointer buffer);
120 * Frees a buffer handle. Buffer handles returned by importBuffer() must be
128 * @param buffer Imported buffer handle.
131 * - `BAD_BUFFER` if the buffer is invalid.
133 freeBuffer(pointer buffer) generates (Error error);
136 * Validates that the buffer can be safely accessed by a caller who assumes
138 * that the buffer size is large enough. Validating the buffer against
139 * individual buffer attributes is optional.
141 * @param buffer Buffer to validate against.
142 * @param description Attributes of the buffer.
146 * - `BAD_BUFFER` if the buffer is invalid.
147 * - `BAD_VALUE` if the buffer cannot be safely accessed.
149 validateBufferSize(pointer buffer,
155 * Calculates the transport size of a buffer. An imported buffer handle is a
156 * raw buffer handle with the process-local runtime data appended. This
158 * data at the tail when serializing the imported buffer handle.
161 * when sending an imported buffer handle. The mapper must support both
164 * @param buffer Buffer to get the transport size from.
167 * - `BAD_BUFFER` if the buffer is invalid.
171 getTransportSize(pointer buffer)
177 * Locks the given buffer for the specified CPU usage.
179 * Locking the same buffer simultaneously from multiple threads is
180 * permitted, but if any of the threads attempt to lock the buffer for
183 * buffer content in an indeterminate state or returning an error are both
189 * The client must not modify the content of the buffer outside of
195 * On success, @p data must be filled with a pointer to the locked buffer
197 * buffer, even if @p accessRegion does not begin at the top-left corner.
200 * the buffer. If the bytesPerPixel is unknown or variable, a value of -1
202 * the buffer. If the bytesPerStride is unknown or variable, a value of -1
205 * @param buffer Buffer to lock.
208 * @param accessRegion Portion of the buffer that the client intends to
212 * mapper to lock the buffer. @p acquireFence may be an empty fence if
216 * - `BAD_BUFFER` if the buffer is invalid or is incompatible with this
219 * is incompatible with the buffer.
220 * - `NO_RESOURCES` if the buffer cannot be locked at this time. Note
222 * @return data CPU-accessible pointer to the buffer data.
223 * @return bytesPerPixel the number of bytes per pixel in the buffer
224 * @return bytesPerStride the number of bytes per stride of the buffer
226 lock(pointer buffer,
236 * Locks a YCbCr buffer for the specified CPU usage.
239 * pointer directly to the buffer data, it returns a `YCbCrLayout` struct
247 * @param buffer Buffer to lock.
250 * @param accessRegion Portion of the buffer that the client intends to
254 * mapper to lock the buffer. @p acquireFence may be empty if it is
258 * - `BAD_BUFFER` if the buffer is invalid or is incompatible with this
261 * is incompatible with the buffer.
262 * - `NO_RESOURCES` if the buffer cannot be locked at this time. Note
264 * @return layout Data layout of the locked buffer.
266 lockYCbCr(pointer buffer,
274 * Unlocks a buffer to indicate all CPU accesses to the buffer have
277 * @param buffer Buffer to unlock.
280 * - `BAD_BUFFER` if the buffer is invalid or not locked.
286 unlock(pointer buffer) generates (Error error, handle releaseFence);
291 * If this function returns true, it means that a buffer with the given
296 * @param description the description of the buffer