Searched refs:buffer_private (Results 1 – 2 of 2) sorted by relevance
75 std::unique_ptr<FrameBufferPrivate> buffer_private(new (std::nothrow) in GetFrameBuffer() local77 if (buffer_private == nullptr) return kLibgav1StatusOutOfMemory; in GetFrameBuffer()81 buffer_private->data[i] = new (std::nothrow) uint8_t[size]; in GetFrameBuffer()82 if (buffer_private->data[i] == nullptr) { in GetFrameBuffer()87 uint8_t* const y_buffer = buffer_private->data[0]; in GetFrameBuffer()89 (info.uv_buffer_size != 0) ? buffer_private->data[1] : nullptr; in GetFrameBuffer()91 (info.uv_buffer_size != 0) ? buffer_private->data[2] : nullptr; in GetFrameBuffer()94 buffer_private.release(), frame_buffer); in GetFrameBuffer()105 auto* buffer_private = static_cast<FrameBufferPrivate*>(buffer_private_data); in ReleaseFrameBuffer() local106 for (auto& data : buffer_private->data) { in ReleaseFrameBuffer()[all …]
131 FrameBufferPrivate* buffer_private = in GetFrameBuffer() local133 if (buffer_private == NULL) return kLibgav1StatusOutOfMemory; in GetFrameBuffer()137 buffer_private->data[i] = (uint8_t*)malloc(sizeof(uint8_t) * size); in GetFrameBuffer()138 if (buffer_private->data[i] == NULL) { in GetFrameBuffer()140 free(buffer_private->data[j]); in GetFrameBuffer()142 free(buffer_private); in GetFrameBuffer()147 uint8_t* const y_buffer = buffer_private->data[0]; in GetFrameBuffer()149 (info.uv_buffer_size != 0) ? buffer_private->data[1] : NULL; in GetFrameBuffer()151 (info.uv_buffer_size != 0) ? buffer_private->data[2] : NULL; in GetFrameBuffer()154 buffer_private, frame_buffer); in GetFrameBuffer()[all …]