Skip to content

Commit

Permalink
add reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba-z committed Apr 3, 2022
1 parent e31832f commit d3ac93a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/avif/img/Crop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ namespace avif::img {

template <size_t BitsPerComponent>
Image<BitsPerComponent> crop(Image<BitsPerComponent> const& src, CleanApertureBox const& clap) {
// ISO/IEC 14496-12:2015(E)
// p.157

float const horizOff = static_cast<float>(clap.horizOffN)/static_cast<float>(clap.horizOffD);
float const vertOff = static_cast<float>(clap.vertOffN)/static_cast<float>(clap.vertOffD);

Expand Down

0 comments on commit d3ac93a

Please sign in to comment.