Closed ksharindam closed 4 years ago
Hi @ksharindam .
First I'll try to decompose this into gnumeric. And then we'll see.
https://github.com/ImageProcessing-ElectronicPublications/photoquick-plugins/blob/a2ae6b610f08d86b75742177c6270e12b1a05e7a/src/transform/pixart-scaler/xbr.cpp#L41 https://github.com/ImageProcessing-ElectronicPublications/photoquick-plugins/blob/a2ae6b610f08d86b75742177c6270e12b1a05e7a/src/transform/pixart-scaler/xbr.cpp#L359-L382
PS: If you multiply the coefficients by 4096 (2**12), then you can multiply with integers, and at the end make the shift >>12
.
got it. actually rb is simply red-blue, and gb is simply green-blue
Hi @zvezdochiot XBR scaler code uses a precomputed array for RGB to YUV conversion. that occupies 64MB or memory even if the code is not executed. I want to compute rgb to yuv when the code is executed. and will not use that array.
Trying to find a way to convert from r, g and b to rg and bg. by trying to create a reverse equation of
c = bg + (rg<<16) + 0x010101 * startg;
Please help me.