Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ericsson/ETCPACK
/ functions
Functions
211 in github.com/Ericsson/ETCPACK
⨍
Functions
211
◇
Types & classes
3
↓ 21 callers
Function
decompressColor
The color bits are expanded to the full color NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:482
↓ 16 callers
Function
computeAverageColor2x4noQuantFloat
Computes the average color in a 2x4 area and returns the average color as a float. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2
source/etcpack.cxx:846
↓ 16 callers
Function
computeAverageColor4x2noQuantFloat
Computes the average color in a 4x2 area and returns the average color as a float. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2
source/etcpack.cxx:867
↓ 16 callers
Function
tryalltables_3bittable2x4
Find the best table to use for a 2x4 area by testing all. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:1409
↓ 16 callers
Function
tryalltables_3bittable4x2
Find the best table to use for a 4x2 area by testing all. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:1488
↓ 14 callers
Function
compressColor
Each color component is compressed to fit in its specified number of bits NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All
source/etcpack.cxx:6006
↓ 13 callers
Function
calcBlockErrorRGB
Calculate the error of a block NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:7546
↓ 12 callers
Function
clamp
takes as input a value, returns the value clamped to the interval [0,255]. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All
source/etcdec.cxx:1638
↓ 12 callers
Function
copyColors
Copy colors from source to dest NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:6397
↓ 12 callers
Function
removeSpaces
Removes white spaces in a .ppm file NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/image.cxx:76
↓ 12 callers
Function
swapColors
Swapping two RGB-colors NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:6029
↓ 10 callers
Function
calcBlockPerceptualErrorRGB
Calculate the perceptually weighted error of a block NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:7568
↓ 9 callers
Function
computeColorLBGHalfIntensityFast
Calculation of the two block colors using the LBG-algorithm The following method scales down the intensity, since this can be compensated for anyway b
source/etcpack.cxx:5074
↓ 9 callers
Function
decompressBlockDiffFlip
source/etcdec.cxx:1027
↓ 8 callers
Function
stuff58bits
During search it is not convenient to store the bits the way they are stored in the file format. Hence, after search, it is converted to this format.
source/etcpack.cxx:4529
↓ 8 callers
Function
stuff59bits
During search it is not convenient to store the bits the way they are stored in the file format. Hence, after search, it is converted to this format.
source/etcpack.cxx:4651
↓ 8 callers
Function
tryalltables_3bittable2x4percep
Find the best table to use for a 2x4 area by testing all. Uses perceptual weighting. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005
source/etcpack.cxx:1463
↓ 8 callers
Function
tryalltables_3bittable2x4percep1000
Find the best table to use for a 2x4 area by testing all. Uses perceptual weighting. Uses fixed point implementation where 1000 equals 1.0 NO WARRANTY
source/etcpack.cxx:1435
↓ 8 callers
Function
tryalltables_3bittable4x2percep
Find the best table to use for a 4x2 area by testing all. Uses perceptual weighting. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005
source/etcpack.cxx:1540
↓ 8 callers
Function
tryalltables_3bittable4x2percep1000
Find the best table to use for a 4x2 area by testing all. Uses perceptual weighting. Uses fixed point implementation where 1000 equals 1.0 NO WARRANTY
source/etcpack.cxx:1515
↓ 7 callers
Function
calculatePaintColors59T
source/etcdec.cxx:501
↓ 7 callers
Function
find_pos_of_extension
Find the position of a file extension such as .ppm or .pkm NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved
source/etcpack.cxx:437
↓ 7 callers
Function
indexConversion
converts indices from |a0|a1|e0|e1|i0|i1|m0|m1|b0|b1|f0|f1|j0|j1|n0|n1|c0|c1|g0|g1|k0|k1|o0|o1|d0|d1|h0|h1|l0|l1|p0|p1| previously used by T- and H-m
source/etcpack.cxx:270
↓ 7 callers
Function
write_big_endian_2byte_word
Write a word in big endian style NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:8422
↓ 6 callers
Function
multiplyMatrices
Multiplies two matrices NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:3703
↓ 6 callers
Function
packBlock59T
Put the compress params into the compression block |63 62 61 60 59|58 57 56 55|54 53 52 51|50 49 48 47|46 45 44 43|42 41 40 39|38 37 36 35|34 33 32|
source/etcpack.cxx:6378
↓ 6 callers
Function
quantize555ColorCombined
The below code quantizes a float RGB value to RGB555. The format often allows a pixel to completely compensate an intensity error of the base color.
source/etcpack.cxx:1746
↓ 6 callers
Function
read_big_endian_2byte_word
Read a word in big endian style NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:287
↓ 6 callers
Function
removeComments
Removes comments in a .ppm file (i.e., lines starting with #) NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reser
source/image.cxx:61
↓ 6 callers
Function
sortColorsRGB444
Makes sure that col0 < col1; NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:6877
↓ 6 callers
Function
stuff57bits
During search it is not convenient to store the bits the way they are stored in the file format. Hence, after search, it is converted to this format.
source/etcpack.cxx:4436
↓ 5 callers
Function
calculateError59T
Calculate the error for the block at position (startx,starty) The parameters needed for reconstruction is calculated as well Please note that the fun
source/etcpack.cxx:6144
↓ 5 callers
Function
calculateErrorAndCompress58H
Calculate the error for the block at position (startx,starty) The parameters needed for reconstruction is calculated as well In the 58H bit mode, we
source/etcpack.cxx:6811
↓ 5 callers
Function
calculatePaintColors58H
Calculate the paint colors from the block colors using a distance d and one of the H- or T-patterns. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C)
source/etcdec.cxx:599
↓ 5 callers
Function
getbit
bit number frompos is extracted from input, and moved to bit number topos in the return value. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericss
source/etcdec.cxx:1628
↓ 4 callers
Function
compressBlockDiffFlipFast
Compress an ETC1 block (or the individual and differential modes of an ETC2 block) NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2
source/etcpack.cxx:7590
↓ 4 callers
Function
compressBlockDiffFlipFastPerceptual
Compress an ETC1 block (or the individual and differential modes of an ETC2 block) Uses perceptual error metric. NO WARRANTY --- SEE STATEMENT IN TOP
source/etcpack.cxx:7630
↓ 4 callers
Function
compressBlockPlanar57
This function uses least squares in order to determine the best values of the plane. This is close to optimal, but not quite, due to nonlinearities in
source/etcpack.cxx:4295
↓ 4 callers
Function
decompressBlockPlanar57
source/etcdec.cxx:745
↓ 4 callers
Function
decompressBlockPlanar57c
Decompress the planar mode. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:701
↓ 4 callers
Function
decompressBlockTHUMB58H
source/etcdec.cxx:694
↓ 4 callers
Function
decompressBlockTHUMB59T
source/etcdec.cxx:591
↓ 4 callers
Function
fileExist
Tests if a file exists. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:301
↓ 4 callers
Function
get16bits11bits
Does decompression and then immediately converts from 11 bit signed to a 16-bit format Calculates the 11 bit value represented by base, table, mul and
source/etcdec.cxx:1736
↓ 4 callers
Function
get16bits11signed
Does decompression and then immediately converts from 11 bit signed to a 16-bit format. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB
source/etcdec.cxx:1688
↓ 4 callers
Function
quantize444ColorCombined
The below code quantizes a float RGB value to RGB444. The format often allows a pixel to completely compensate an intensity error of the base color.
source/etcpack.cxx:1571
↓ 4 callers
Function
quantize444ColorCombinedPerceptual
The below code quantizes a float RGB value to RGB444. The format often allows a pixel to completely compensate an intensity error of the base color.
source/etcpack.cxx:1901
↓ 4 callers
Function
quantize555ColorCombinedPerceptual
The below code quantizes a float RGB value to RGB555. The format often allows a pixel to completely compensate an intensity error of the base color.
source/etcpack.cxx:2055
↓ 4 callers
Function
setupAlphaTableAndValtab
source/etcpack.cxx:8466
↓ 3 callers
Function
calcBlockErrorRGBA
Calculate RGBA error --- only count non-transparent pixels (alpha > 128) NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All R
source/etcpack.cxx:7896
↓ 3 callers
Function
compressBlockTHUMB58HFastest
The below code should compress the block to 58 bits. This is supposed to match the first of the three modes in TWOTIMER. The bit layout is thought to
source/etcpack.cxx:7005
↓ 3 callers
Function
compressBlockTHUMB58HFastestPerceptual1000
The below code should compress the block to 58 bits. The bit layout is thought to be: |63 62 61 60 59 58|57 56 55 54|53 52 51 50|49 48 47 46|45 44 43
source/etcpack.cxx:6927
↓ 3 callers
Function
decompressBlockDiffFlipC
Decompress an ETC1 block (or ETC2 using individual or differential mode). NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All
source/etcdec.cxx:751
↓ 3 callers
Function
decompressBlockDifferentialWithAlphaC
Decompress an ETC2 block with punchthrough alpha NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:1105
↓ 3 callers
Function
decompressBlockTHUMB58Hc
Decompress an H-mode block NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:643
↓ 3 callers
Function
decompressBlockTHUMB59Tc
Decompress a T-mode block (simple packing) Simple 59T packing: |63 62 61 60 59|58 57 56 55|54 53 52 51|50 49 48 47|46 45 44 43|42 41 40 39|38 37 36 35
source/etcdec.cxx:550
↓ 3 callers
Function
fReadPPM
fReadPPM reads a ppm file with P6 header (meaning binary, as opposed to P5, which is ascII) and returns the image in pixels. The header must look li
source/image.cxx:103
↓ 3 callers
Function
unstuff57bits
The format stores the bits for the three extra modes in a roundabout way to be able to fit them without increasing the bit rate. This function convert
source/etcdec.cxx:331
↓ 3 callers
Function
unstuff58bits
The format stores the bits for the three extra modes in a roundabout way to be able to fit them without increasing the bit rate. This function convert
source/etcdec.cxx:401
↓ 3 callers
Function
unstuff59bits
The format stores the bits for the three extra modes in a roundabout way to be able to fit them without increasing the bit rate. This function convert
source/etcdec.cxx:435
↓ 2 callers
Function
calcBBBgreen
Calculating the minimum error for the block (in planar mode) if we know the green component for O and V. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE
source/etcpack.cxx:3966
↓ 2 callers
Function
calcBBBred
In the planar mode in ETC2, the block can be partitioned as follows: O A A A H B D1 D3 C3 B D2 C2 D5 B C1 D4 D6 V Here A-pixels, B-pixels and C-pi
source/etcpack.cxx:3765
↓ 2 callers
Function
calcCCCgreen
Calculating the minimum error for the block (in planar mode) if we know the green component for H and V. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE
source/etcpack.cxx:3987
↓ 2 callers
Function
calcCCCred
Calculating the minimum error for the block if we know the red component for H and V. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 200
source/etcpack.cxx:3785
↓ 2 callers
Function
calculateError59Tperceptual1000
Calculate the error for the block at position (startx,starty) The parameters needed for reconstruction are calculated as well Please note that the fu
source/etcpack.cxx:6057
↓ 2 callers
Function
calculateErrorAndCompress58Hperceptual1000
Calculate the error for the block at position (startx,starty) The parameters needed for reconstruction is calculated as well In the 58H bit mode, we
source/etcpack.cxx:6652
↓ 2 callers
Function
calculateWeightedPSNR
Calculate weighted PSNR NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:9035
↓ 2 callers
Function
compressBlockAlpha16
compressBlockAlpha16 Compresses a block using the 11-bit EAC formats. Depends on the global variable formatSigned. COMPRESSED_R11_EAC (if formatSign
source/etcpack.cxx:8802
↓ 2 callers
Function
compressBlockDifferentialExhaustive
Compresses the differential mode exhaustively. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:11444
↓ 2 callers
Function
compressBlockDifferentialExhaustivePerceptual
Compresses the differential mode exhaustively (perecptual error metric). NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All R
source/etcpack.cxx:11046
↓ 2 callers
Function
compressBlockDifferentialWithAlpha
Compresses the differential mode of an ETC2 block with punchthrough alpha NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All
source/etcpack.cxx:7664
↓ 2 callers
Function
compressBlockETC2Fast
Compress a block with ETC2 RGB NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:8126
↓ 2 callers
Function
compressBlockIndividualExhaustive
Compresses the individual mode exhaustively. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:10763
↓ 2 callers
Function
compressBlockIndividualExhaustivePerceptual
Compresses the individual mode exhaustively (perecptual error metric). NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rig
source/etcpack.cxx:10478
↓ 2 callers
Function
compressBlockTHUMB58HFast
The below code should compress the block to 58 bits. This is supposed to match the first of the three modes in TWOTIMER. The bit layout is thought to
source/etcpack.cxx:7146
↓ 2 callers
Function
compressBlockTHUMB59TFast
The below code should compress the block to 59 bits. This is supposed to match the first of the three modes in TWOTIMER. |63 62 61 60 59|58 57 56 55|
source/etcpack.cxx:6579
↓ 2 callers
Function
compressBlockTHUMB59TFastest
The below code should compress the block to 59 bits. This is supposed to match the first of the three modes in TWOTIMER. |63 62 61 60 59|58 57 56 55|
source/etcpack.cxx:6538
↓ 2 callers
Function
compressBlockTHUMB59TFastestPerceptual1000
The below code should compress the block to 59 bits. This is supposed to match the first of the three modes in TWOTIMER. |63 62 61 60 59|58 57 56 55|
source/etcpack.cxx:6496
↓ 2 callers
Function
computeColorLBGNotIntensity
Calculation of the two block colors using the LBG-algorithm The following method completely ignores the intensity, since this can be compensated for a
source/etcpack.cxx:5460
↓ 2 callers
Function
decompressBlockAlpha16bit
source/etcdec.cxx:1839
↓ 2 callers
Function
decompressBlockDifferentialWithAlpha
source/etcdec.cxx:1322
↓ 2 callers
Function
decompressBlockPlanar57errorPerComponent
Decompress the planar mode and calculate the error per component compared to original image. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson
source/etcpack.cxx:4712
↓ 2 callers
Function
decompressBlockTHUMB58HAlphaC
Decompress an H-mode block with alpha NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:1402
↓ 2 callers
Function
decompressBlockTHUMB59TAlphaC
similar to regular decompression, but alpha channel is set to 0 if pixel index is 2, otherwise 255. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) E
source/etcdec.cxx:1330
↓ 2 callers
Function
fReadPGM
reads a ppm file with the P6 header (means raw RGB), puts data into pixel pointer and returns bit depth (8 or 16 bpp) */ the header looks like this:
source/image.cxx:299
↓ 2 callers
Function
fWritePGM
WritePGM NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/image.cxx:260
↓ 2 callers
Function
fWritePPM
Write PPM NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/image.cxx:229
↓ 2 callers
Function
precompute_3bittable_all_subblocksRG_withtest
Precomutes a table that is used when compressing a block exhaustively NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Righ
source/etcpack.cxx:9773
↓ 2 callers
Function
precompute_3bittable_all_subblocksRG_withtest_perceptual1000
Precomutes a table that is used when compressing a block exhaustively NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Righ
source/etcpack.cxx:9636
↓ 2 callers
Function
precompute_3bittable_all_subblocksR_with_test
Precomutes a table that is used when compressing a block exhaustively NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Righ
source/etcpack.cxx:10038
↓ 2 callers
Function
precompute_3bittable_all_subblocksR_with_test_perceptual1000
Precomutes a table that is used when compressing a block exhaustively NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Righ
source/etcpack.cxx:9906
↓ 2 callers
Function
readAlpha
Reads alpha data NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:8498
↓ 2 callers
Function
readCompressParams
source/etcpack.cxx:822
↓ 2 callers
Function
readSrcFileNoExpand
Reads a file without expanding it to be divisible by 4. Is used when doing PSNR calculation between two files. NO WARRANTY --- SEE STATEMENT IN TOP OF
source/etcpack.cxx:553
↓ 2 callers
Function
read_big_endian_4byte_word
Read a word in big endian style NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcdec.cxx:305
↓ 2 callers
Function
tryalltables_3bittable_all_subblocks_using_precalc
Tries all index-tables, used when compressing a block exhaustively NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights
source/etcpack.cxx:10170
↓ 2 callers
Function
tryalltables_3bittable_all_subblocks_using_precalc_perceptual1000
Tries all index-tables, used when compressing a block exhaustively using perceptual error measure NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Eri
source/etcpack.cxx:10324
↓ 2 callers
Function
uncompressFile
Decompresses a file NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:9103
↓ 2 callers
Function
write_big_endian_4byte_word
Write a word in big endian style NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:8439
↓ 1 callers
Function
calcBBBblue
Calculating the minimum error for the block (in planar mode) if we know the blue component for O and V. NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (
source/etcpack.cxx:4110
next →
1–100 of 211, ranked by callers