imageutil

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package imageutil contains code shared by image-related packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinearToSRGB16

func LinearToSRGB16(lin uint16) uint16

Fast 16-bit linear to 16-bit sRGB conversion. Returns the correctly rounded result for 74.6% of inputs, error within -58 and +58 (from 8192, within -1 and +1).

func LinearToSRGB8

func LinearToSRGB8(lin uint16) uint8

Fast 16-bit linear to 8-bit sRGB conversion. Returns the correctly rounded result for 99.8% of inputs, error within -1 and +1.

func NYCbCrAUpsample

func NYCbCrAUpsample(img *image.NYCbCrA) *image.NYCbCrA

NYCbCrAUpsample upsamples a chroma subsampled NYCbCrA image. The returned image has YCbCrSubsampleRatio444.

func SRGB16ToLinear

func SRGB16ToLinear(srgb uint16) uint16

Fast 16-bit sRGB to 16-bit linear conversion. Returns the correctly rounded result for 78.5% of inputs, error within -1 and +1.

func SRGB8ToLinear

func SRGB8ToLinear(srgb uint8) uint16

Fast 8-bit sRGB to 16-bit linear conversion. Returns the correctly rounded result.

func YCbCrUpsample

func YCbCrUpsample(img *image.YCbCr) *image.YCbCr

YCbCrUpsample upsamples a chroma subsampled YCbCr image. The returned image has YCbCrSubsampleRatio444.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL