mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:22:39 +00:00
Sync follow-ups: rustdoc links in main's new and changed crates
next documents the whole workspace with -D warnings; main does not, so these come in with the sync: - craft-gpu: the crate docs link GpuJob::provider_id; ProviderId is not exported. - craft-gpu-null, craft-gpu-wgpu: GpuContext is in scope, so its links need no explicit target. - craft-video: TrackDecoder exists only with a decoder feature, so the error docs name it in code. - craft-plotter: outer's docs name the grid in words; Grid is private. - craft-develop: best_offset and synthesize are PhotoCraft's and were not ported, so the inpaint docs name them in code.
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
//! every patch overlapping the hole, its most similar fully-known patch, then re-estimates hole
|
||||
//! pixels by a similarity-weighted vote of the overlapping matches. Coarse-to-fine over an image
|
||||
//! pyramid (the coarsest level is initialised by membrane interpolation), so large holes stay cheap.
|
||||
//! * [`best_offset`], proximity match: the single displacement whose surrounding ring best matches the
|
||||
//! * `best_offset`, proximity match: the single displacement whose surrounding ring best matches the
|
||||
//! ring around the hole (sum of squared differences), i.e. an automatic Healing Brush source.
|
||||
//! * [`synthesize`], create texture: patch-based texture synthesis in the style of A. Efros,
|
||||
//! * `synthesize`, create texture: patch-based texture synthesis in the style of A. Efros,
|
||||
//! W. Freeman, *Image Quilting for Texture Synthesis and Transfer*, SIGGRAPH 2001 (blocks picked from
|
||||
//! random candidates by overlap error, feathered overlap instead of a min-cut seam).
|
||||
//!
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! CPU-only [`GpuContext`](craft_gpu::GpuContext) for tests and CI.
|
||||
//! CPU-only [`GpuContext`] for tests and CI.
|
||||
|
||||
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! wgpu-backed [`GpuContext`](craft_gpu::GpuContext).
|
||||
//! wgpu-backed [`GpuContext`].
|
||||
//!
|
||||
//! WebGPU on `wasm32`; native APIs when backend features are enabled. With the `adapter-probe`
|
||||
//! feature (native only, pollster) and at least one `native-*` backend feature,
|
||||
@@ -13,7 +13,7 @@
|
||||
//! Readback is asynchronous end to end (`request_read` + `poll_reads`), because WebGPU can only
|
||||
//! map a buffer that way. Native, with a real device, drives it with `Buffer::map_async` plus
|
||||
//! `Device::poll`. The blocking `read_buffer` convenience (see
|
||||
//! [`GpuContext`](craft_gpu::GpuContext)'s trait docs) blocks efficiently on native by polling
|
||||
//! [`GpuContext`]'s trait docs) blocks efficiently on native by polling
|
||||
//! the device while it waits. On `wasm32` the backing is always the in-memory staging store
|
||||
//! today, whose reads complete synchronously, and `read_buffer` serves them; only a read that
|
||||
//! did not complete synchronously returns a fault there, since blocking would freeze the one
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! GPU traits, job envelope, and provider registry for Craft apps and the web runtime.
|
||||
//!
|
||||
//! Application crates register [`GpuProvider`] implementations; generic hosts dispatch
|
||||
//! [`GpuJob`] values by [`ProviderId`] without importing app project types.
|
||||
//! [`GpuJob`] values by [`GpuJob::provider_id`] without importing app project types.
|
||||
|
||||
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ pub fn bounds(p: &[(i64, i64)]) -> [i64; 4] {
|
||||
/// it is not, and copies of one outline are not inside each other. A path is tested only against
|
||||
/// closed paths larger than it (by the area of their box, then the area they enclose, then paint
|
||||
/// order), so no two paths are each inside the other, and only against the closed paths in the
|
||||
/// [`Grid`] cell of its box's first corner. `None` once `work` is spent: a grid cell filled and a
|
||||
/// grid cell of its box's first corner. `None` once `work` is spent: a grid cell filled and a
|
||||
/// box compared cost one each, and each segment tested costs the closed path's points for its
|
||||
/// crossings and again for each part of it.
|
||||
pub fn outer(paths: &[Vec<(i64, i64)>], boxes: &[[i64; 4]], work: &mut u64) -> Option<Vec<Vec<usize>>> {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
//! [`VideoError`], the error of the codec-agnostic layer ([`crate::TrackDecoder`]).
|
||||
//! [`VideoError`], the error of the codec-agnostic layer (`TrackDecoder`).
|
||||
|
||||
use crate::frame::FrameError;
|
||||
|
||||
/// Errors from the codec-agnostic layer.
|
||||
///
|
||||
/// Codec errors convert into it, so code mixing [`crate::TrackDecoder`] with the codec modules can
|
||||
/// Codec errors convert into it, so code mixing `TrackDecoder` with the codec modules can
|
||||
/// use `?` throughout: a codec's "unsupported" stays [`VideoError::Unsupported`], anything else in
|
||||
/// the input is [`VideoError::Malformed`]. The message starts with the codec's name.
|
||||
#[non_exhaustive]
|
||||
|
||||
Reference in New Issue
Block a user