My question is about "compute_ideal_colors_and_weight_1plane" in astc encoder , it computes a color line to fitting the texels in blocks, but it doesn't use the least squal method to fit the texels , instead it use the average color and dominant directions. I guess the least square method will get less fitting errors , am I right? and I also found the fitting errors is not included in the mode selection, instead it use the color line weight as the ideal weight which error is 0, but actually it has included different fitting error.
Thanks for reading
Thanks for answering my questions. For fitting error I mean the distance colors in the block to the color line, but I finally realized that it would get the same result when it is included in the block mode selection. Thanks .