suica/jxl/render does not have a README file
pub(all) struct EpfKernelParams {
iters : Int
channel_scale : FixedArray[Float]
pass0_sigma_scale : Float
pass2_sigma_scale : Float
border_sad_mul : Float
sigma_for_modular : Float
}pub enum FrameRender {
Empty
Rendering
InProgress(RenderCache)
Done(ImageWithRegion)
Blended(ImageWithRegion)
Failed(JxlError)
ErrTaken
}pub struct FrameRenderHandle {
frame : IndexedFrame
image_region : Region
render : FrameRender
render_op : (FrameRender, Region) -> FrameRender
refs : FixedArray[Reference?]
}fn FrameRenderHandle::from_cache(frame : IndexedFrame, image_region : Region, cache : RenderCache, render_op : (FrameRender, Region) -> FrameRender, refs : FixedArray[Reference?]) -> FrameRenderHandlefn FrameRenderHandle::new(frame : IndexedFrame, image_region : Region, render_op : (FrameRender, Region) -> FrameRender, refs : FixedArray[Reference?]) -> FrameRenderHandlefn ImageBuffer::convert_to_float_modular(self : ImageBuffer, bit_depth : BitDepth) -> Grid[Float] raise JxlErrorfn ImageBuffer::convert_to_float_modular_xyb(yxb : FixedArray[ImageBuffer], lf_dequant : LfChannelDequantization) -> FixedArray[Grid[Float]] raise JxlErrorfn ImageBuffer::upsample_nn(self : ImageBuffer, factor : Int, tracker : AllocTracker?) -> ImageBuffer raise JxlErrorfn ImageBuffer::zeroed_f32(width : Int, height : Int, tracker : AllocTracker?) -> ImageBuffer raise JxlErrorpub struct ImageWithRegion {
buffer : Array[ImageBuffer]
regions : Array[(Region, ChannelShift)]
color_channels : Int
ct_done : Bool
blend_done : Bool
tracker : AllocTracker?
}fn ImageWithRegion::append_channel(self : ImageWithRegion, buffer : ImageBuffer, region : Region) -> Unitfn ImageWithRegion::append_channel_shifted(self : ImageWithRegion, buffer : ImageBuffer, original_region : Region, shift : ChannelShift) -> Unitfn ImageWithRegion::color_groups_with_group_id(self : ImageWithRegion, frame_header : FrameHeader) -> Array[(Int, FixedArray[SubGrid[Float]])]fn ImageWithRegion::convert_channel_to_float_modular(self : ImageWithRegion, index : Int, bit_depth : BitDepth) -> Grid[Float] raise JxlErrorfn ImageWithRegion::convert_modular_color(self : ImageWithRegion, bit_depth : BitDepth) -> Unit raise JxlErrorfn ImageWithRegion::convert_modular_xyb(self : ImageWithRegion, lf_dequant : LfChannelDequantization) -> Unit raise JxlErrorfn ImageWithRegion::fill_opaque_alpha(self : ImageWithRegion, ec_info : Array[ExtraChannelInfo]) -> Unitfn ImageWithRegion::prepare_color_upsampling(self : ImageWithRegion, frame_header : FrameHeader) -> Unitfn ImageWithRegion::replace_channel(self : ImageWithRegion, index : Int, buffer : ImageBuffer, region : Region) -> Unitfn ImageWithRegion::replace_channel_shifted(self : ImageWithRegion, index : Int, buffer : ImageBuffer, original_region : Region, shift : ChannelShift) -> Unitfn ImageWithRegion::swap_channel_f32(self : ImageWithRegion, index : Int, buffer : Grid[Float], region : Region) -> Grid[Float]fn ImageWithRegion::upsample_jpeg(self : ImageWithRegion, valid_region : Region, bit_depth : BitDepth) -> Unit raise JxlErrorfn ImageWithRegion::upsample_lf(self : ImageWithRegion, lf_level : Int) -> ImageWithRegion raise JxlErrorfn ImageWithRegion::upsample_nonseparable(self : ImageWithRegion, image_header : ImageHeader, frame_header : FrameHeader, upsampled_valid_region : Region, ec_to_color_only : Bool) -> Unit raise JxlErrorfn IndexedFrame::pass_group_bitstream(self : IndexedFrame, pass_idx : Int, group_idx : Int) -> PassGroupBitstream? raise JxlErrorfn IndexedFrame::try_parse_hf_global(self : IndexedFrame, cached_lf_global : LfGlobal?) -> HfGlobal? raise JxlErrorfn IndexedFrame::try_parse_lf_group(self : IndexedFrame, lf_global_vardct : LfGlobalVarDct?, global_ma_config : MaConfig?, mlf_group : TransformedModularSubimage?, lf_group_idx : Int) -> LfGroup? raise JxlErrorfn[S] PaddedGrid::with_alloc_tracker(width : Int, height : Int, padding : Int, init : S, tracker : AllocTracker?) -> PaddedGrid[S] raise JxlErrorpub struct RenderContext {
image_header : ImageHeader
tracker : AllocTracker?
frames : Array[IndexedFrame]
renders_wide : Array[FrameRenderHandle]
keyframes : Array[Int]
keyframe_in_progress : Int?
refcounts : Array[Int]
frame_deps : Array[FrameDependence]
lf_frame : FixedArray[Int]
reference : FixedArray[Int]
loading_frame : IndexedFrame?
loading_render_cache_wide : RenderCache?
loading_region : Region?
requested_image_region : Region
embedded_icc : Bytes
requested_color_encoding : ColorEncodingWithProfile
cms : &ColorManagementSystem
cached_transform : ColorTransform?
force_wide_buffers : Bool
}fn RenderContext::load_frame_header(self : RenderContext, bitstream : Bitstream) -> IndexedFrame raise JxlErrorfn RenderContext::render_keyframe(self : RenderContext, keyframe_idx : Int) -> ImageWithRegion raise JxlErrorfn RenderContext::render_loading_keyframe(self : RenderContext) -> (IndexedFrame, ImageWithRegion) raise JxlErrorfn RenderContext::request_color_encoding(self : RenderContext, encoding : ColorEncodingWithProfile) -> Unitpub struct RenderContextBuilder {
embedded_icc : Bytes
tracker : AllocTracker?
force_wide_buffers : Bool
}fn RenderContextBuilder::alloc_tracker(self : RenderContextBuilder, tracker : AllocTracker) -> RenderContextBuilderfn RenderContextBuilder::build(self : RenderContextBuilder, image_header : ImageHeader) -> RenderContext raise JxlErrorfn RenderContextBuilder::embedded_icc(self : RenderContextBuilder, icc : Bytes) -> RenderContextBuilderfn RenderContextBuilder::force_wide_buffers(self : RenderContextBuilder, force_wide_buffers : Bool) -> RenderContextBuilderfn RenderedImage::blend(self : RenderedImage, oriented_image_region : Region?) -> ImageWithRegion raise JxlErrorfn adaptive_lf_smoothing(shifts : FixedArray[ChannelShift], lf_image : FixedArray[Grid[Float]], lf_dequant : LfChannelDequantization, quantizer : Quantizer, tracker : AllocTracker?) -> Unit raise JxlErrorfn apply_epf(fb_image : ImageWithRegion, fb_scratch_arr : FixedArray[Grid[Float]], color_padded_region : Region, lf_groups : Map[Int, LfGroup], frame_header : FrameHeader, epf_params : EpfParams) -> Unitfn apply_gabor_like(fb : ImageWithRegion, color_padded_region : Region, fb_scratch : FixedArray[Grid[Float]], weights : FixedArray[FixedArray[Float]]) -> Unitfn apply_jpeg_upsampling_single(grid : SubGrid[Float], shift : ChannelShift, target_region : Region, tracker : AllocTracker?) -> Grid[Float] raise JxlErrorfn apply_jpeg_upsampling_single_raw(grid : SubGrid[Float], hshift : Int, vshift : Int, target_width : Int, target_height : Int, tracker : AllocTracker?) -> Grid[Float] raise JxlErrorfn compute_modular_region(frame_header : FrameHeader, gmodular : GlobalModular, region : Region, is_lf : Bool) -> Regionfn convert_color_for_record(image_header : ImageHeader, do_ycbcr : Bool, fb : ImageWithRegion) -> Unit raise JxlErrorfn image_region_to_frame(frame : IndexedFrame, image_region : Region, ignore_lf_level : Bool) -> Regionfn load_lf_groups(frame : IndexedFrame, lf_global : LfGlobal, lf_groups : Map[Int, LfGroup], mlf_groups : Array[TransformedModularSubimage], lf_region : Region) -> ImageWithRegion? raise JxlErrorfn pad_color_region(image_header : ImageHeader, frame_header : FrameHeader, frame_region : Region) -> Regionfn pad_upsampling(image_header : ImageHeader, frame_header : FrameHeader, frame_region : Region) -> Regionfn patch(image_header : ImageHeader, base_grid : ImageWithRegion, patch_ref_grid : ImageWithRegion, patch_ref : PatchRef) -> Unit raise JxlErrorfn render_modular(frame : IndexedFrame, cache : RenderCache, region : Region) -> ImageWithRegion raise JxlErrorfn render_noise(header : FrameHeader, visible_frames_num : Int, invisible_frames_num : Int, base_correlations_xb : (Float, Float)?, grid : ImageWithRegion, params : NoiseParameters) -> Unit raise JxlErrorfn render_noise_raw(frame_width : Int, frame_height : Int, group_dim : Int, visible_frames_num : Int, invisible_frames_num : Int, base_correlations_xb : (Float, Float)?, grid_x : Grid[Float], grid_y : Grid[Float], grid_b : Grid[Float], left : Int, top : Int, width : Int, height : Int, lut : FixedArray[Float], tracker : AllocTracker?) -> Unit raise JxlErrorfn render_spline(frame_header : FrameHeader, base_grid : ImageWithRegion, splines : Splines, base_correlations_xb : (Float, Float)?) -> Unit raise JxlErrorfn render_spline_raw(frame_width : Int, frame_height : Int, channels : Array[Grid[Float]], region_left : Int, region_top : Int, quant_points : Array[(Int64, Int64)], quant_xyb_dct : FixedArray[FixedArray[Int]], quant_sigma_dct : FixedArray[Int], quant_adjust : Int, base_correlations_xb : (Float, Float)?) -> Unitfn render_spot_color(color_channels : FixedArray[Grid[Float]], ec_grid : Grid[Float], ec_ty : ExtraChannelType) -> Unit raise JxlErrorfn upsample(grid : SubGrid[Float], out_region : Ref[Region], image_header : ImageHeader, factor : Int, tracker : AllocTracker?) -> Grid[Float]? raise JxlErrorfn upsample_raw(grid : SubGrid[Float], up2_weight : FixedArray[Float], up4_weight : FixedArray[Float], up8_weight : FixedArray[Float], factor : Int, tracker : AllocTracker?) -> Grid[Float]? raise JxlError