MCPcopy Create free account

hub / github.com/Ericsson/ETCPACK / functions

Functions211 in github.com/Ericsson/ETCPACK

↓ 21 callersFunctiondecompressColor
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 callersFunctioncomputeAverageColor2x4noQuantFloat
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 callersFunctioncomputeAverageColor4x2noQuantFloat
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 callersFunctiontryalltables_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 callersFunctiontryalltables_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 callersFunctioncompressColor
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 callersFunctioncalcBlockErrorRGB
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 callersFunctionclamp
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 callersFunctioncopyColors
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 callersFunctionremoveSpaces
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 callersFunctionswapColors
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 callersFunctioncalcBlockPerceptualErrorRGB
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 callersFunctioncomputeColorLBGHalfIntensityFast
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 callersFunctiondecompressBlockDiffFlip
source/etcdec.cxx:1027
↓ 8 callersFunctionstuff58bits
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 callersFunctionstuff59bits
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 callersFunctiontryalltables_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 callersFunctiontryalltables_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 callersFunctiontryalltables_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 callersFunctiontryalltables_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 callersFunctioncalculatePaintColors59T
source/etcdec.cxx:501
↓ 7 callersFunctionfind_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 callersFunctionindexConversion
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 callersFunctionwrite_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 callersFunctionmultiplyMatrices
Multiplies two matrices NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:3703
↓ 6 callersFunctionpackBlock59T
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 callersFunctionquantize555ColorCombined
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 callersFunctionread_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 callersFunctionremoveComments
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 callersFunctionsortColorsRGB444
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 callersFunctionstuff57bits
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 callersFunctioncalculateError59T
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 callersFunctioncalculateErrorAndCompress58H
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 callersFunctioncalculatePaintColors58H
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 callersFunctiongetbit
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 callersFunctioncompressBlockDiffFlipFast
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 callersFunctioncompressBlockDiffFlipFastPerceptual
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 callersFunctioncompressBlockPlanar57
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 callersFunctiondecompressBlockPlanar57
source/etcdec.cxx:745
↓ 4 callersFunctiondecompressBlockPlanar57c
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 callersFunctiondecompressBlockTHUMB58H
source/etcdec.cxx:694
↓ 4 callersFunctiondecompressBlockTHUMB59T
source/etcdec.cxx:591
↓ 4 callersFunctionfileExist
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 callersFunctionget16bits11bits
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 callersFunctionget16bits11signed
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 callersFunctionquantize444ColorCombined
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 callersFunctionquantize444ColorCombinedPerceptual
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 callersFunctionquantize555ColorCombinedPerceptual
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 callersFunctionsetupAlphaTableAndValtab
source/etcpack.cxx:8466
↓ 3 callersFunctioncalcBlockErrorRGBA
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 callersFunctioncompressBlockTHUMB58HFastest
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 callersFunctioncompressBlockTHUMB58HFastestPerceptual1000
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 callersFunctiondecompressBlockDiffFlipC
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 callersFunctiondecompressBlockDifferentialWithAlphaC
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 callersFunctiondecompressBlockTHUMB58Hc
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 callersFunctiondecompressBlockTHUMB59Tc
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 callersFunctionfReadPPM
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 callersFunctionunstuff57bits
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 callersFunctionunstuff58bits
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 callersFunctionunstuff59bits
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 callersFunctioncalcBBBgreen
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 callersFunctioncalcBBBred
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 callersFunctioncalcCCCgreen
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 callersFunctioncalcCCCred
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 callersFunctioncalculateError59Tperceptual1000
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 callersFunctioncalculateErrorAndCompress58Hperceptual1000
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 callersFunctioncalculateWeightedPSNR
Calculate weighted PSNR NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:9035
↓ 2 callersFunctioncompressBlockAlpha16
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 callersFunctioncompressBlockDifferentialExhaustive
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 callersFunctioncompressBlockDifferentialExhaustivePerceptual
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 callersFunctioncompressBlockDifferentialWithAlpha
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 callersFunctioncompressBlockETC2Fast
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 callersFunctioncompressBlockIndividualExhaustive
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 callersFunctioncompressBlockIndividualExhaustivePerceptual
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 callersFunctioncompressBlockTHUMB58HFast
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 callersFunctioncompressBlockTHUMB59TFast
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 callersFunctioncompressBlockTHUMB59TFastest
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 callersFunctioncompressBlockTHUMB59TFastestPerceptual1000
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 callersFunctioncomputeColorLBGNotIntensity
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 callersFunctiondecompressBlockAlpha16bit
source/etcdec.cxx:1839
↓ 2 callersFunctiondecompressBlockDifferentialWithAlpha
source/etcdec.cxx:1322
↓ 2 callersFunctiondecompressBlockPlanar57errorPerComponent
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 callersFunctiondecompressBlockTHUMB58HAlphaC
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 callersFunctiondecompressBlockTHUMB59TAlphaC
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 callersFunctionfReadPGM
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 callersFunctionfWritePGM
WritePGM NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/image.cxx:260
↓ 2 callersFunctionfWritePPM
Write PPM NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/image.cxx:229
↓ 2 callersFunctionprecompute_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 callersFunctionprecompute_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 callersFunctionprecompute_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 callersFunctionprecompute_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 callersFunctionreadAlpha
Reads alpha data NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:8498
↓ 2 callersFunctionreadCompressParams
source/etcpack.cxx:822
↓ 2 callersFunctionreadSrcFileNoExpand
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 callersFunctionread_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 callersFunctiontryalltables_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 callersFunctiontryalltables_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 callersFunctionuncompressFile
Decompresses a file NO WARRANTY --- SEE STATEMENT IN TOP OF FILE (C) Ericsson AB 2005-2013. All Rights Reserved.
source/etcpack.cxx:9103
↓ 2 callersFunctionwrite_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 callersFunctioncalcBBBblue
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