Skip to content

Commit

Permalink
fix doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
SludgePhD committed Jun 19, 2023
1 parent f095ec6 commit 7aa9c75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ impl JpegInfo {
///
/// This type encapsulates [`Surface`]s and [`Context`]s for decoding baseline JPEG files of a
/// particular size. It will also convert the JPEG to standard sRGB color space.
///
/// [`Surface`]: crate::surface::Surface
pub struct JpegDecodeSession {
width: u32,
height: u32,
Expand All @@ -433,6 +435,8 @@ impl JpegDecodeSession {
/// This function will return an error if VA-API object creation fails. This typically means
/// that the implementation does not support JPEG decoding, but it can also indicate that the
/// JPEG is simply too large and smaller ones would work.
///
/// [`Surface`]: crate::surface::Surface
pub fn new(display: &Display, width: u16, height: u16) -> Result<Self> {
let width = u32::from(width);
let height = u32::from(height);
Expand Down

0 comments on commit 7aa9c75

Please sign in to comment.