[G4 Themes and Apps] stewie-droid:
Hi guys. Just wanted to let you know what this mode is not working the way it is set to work, meaning photo quality is NOT at 100% and LG still snaps 97% compression rating in full sunlight, nature pics saturated with data, landscape. I suspect but not tested yet that low light pics will be 70% compression ratting meaning this mod is just not working. I will verify this. I have LP 5.1, rooted, busybox all working fine, flashed mod, rebooted. Same results. Here is data. Sucks balls. LG is blocking this mod somewhere else not in xml file. Basically 97% is first LG default value camera is using so it's not using modded value but still using default 97,xx,70 default values, meaning mod did not take effect.

Verified camera XML profile is set to

</EncoderProfile>

<ImageEncoding quality="100"/>

<ImageEncoding quality="100"/>

<ImageEncoding quality="100"/>

<ImageDecoding memCap="20000000"/>

However here is analysis of jpge taken with that profile analyzing copmression rating and it's at 97%.

"Approx quality factor = 96.95 (scaling=6.11 variance=1.09)" down below

Compression stats:

Compression Ratio: 6.50:1

Bits per pixel: 3.69:1

Program used, works good before on my G3 which had 100% photo quality. this software was doing 99.6% or something close.

JPEGsnoop 1.7.3 by Calvin Hass http://www.impulseadventure.com/photo/ -------------------------------------

Filename: [C:\Users\SEBASS\Desktop\Camera MOd jpge comp check\20160601_124953.jpg]

Filesize: [7520210] Bytes

Start Offset: 0x00000000

*** Marker: SOI (xFFD8) ***

OFFSET: 0x00000000

*** Marker: APP1 (xFFE1) ***

OFFSET: 0x00000002

Length = 34157

Identifier = [Exif]

Identifier TIFF = 0x[4D4D002A 00000008]

Endian = Motorola (big)

TAG Mark x002A = 0x002A

EXIF IFD0 @ Absolute 0x00000014

Dir Length = 0x000A

[DateTime ] = "2016:06:01 12:49:53"

[GPSOffset ] = @ 0x0B8A

[Model ] = "LG-H811"

[YCbCrPositioning ] = Centered

[ResolutionUnit ] = Inch

[YResolution ] = 72/1

[Orientation ] = 1 = Row 0: top, Col 0: left

[ExifOffset ] = @ 0x00C1

[XResolution ] = 72/1

[Make ] = "LG Electronics"

Offset to Next IFD = 0x00000BB8

EXIF IFD1 @ Absolute 0x00000BC4

Dir Length = 0x0007

[YResolution ] = 72/1

[JpegIFByteCount ] = 0x[00007943] / 31043

[JpegIFOffset ] = @ +0x0C22 = @ 0x0C2E

[Compression ] = JPEG

[ResolutionUnit ] = Inch

[XResolution ] = 72/1

Offset to Next IFD = 0x00000000

EXIF SubIFD @ Absolute 0x000000CD

Dir Length = 0x001F

[ColorSpace ] = sRGB

[DateTimeDigitized ] = "2016:06:01 12:49:53"

[FNumber ] = F1.8

[FocalLength ] = 4 mm

[ApertureValue ] = 169/100

[ExposureMode ] = Auto exposure

[SubSecTimeDigitized ] = "676134"

[ExifImageHeight ] = 0x[00000BAC] / 2988

[SceneCaptureType ] = Standard

[SceneType ] = A directly photographed image

[SubSecTimeOriginal ] = "676134"

[DigitalZoomRatio ] = 100/100

[ExposureProgram ] = Not defined

[WhiteBalance ] = Auto white balance

[ExifImageWidth ] = 0x[000014C0] / 5312

[SubSecTime ] = "676134"

[ShutterSpeedValue ] = 9721/1000

[MeteringMode ] = CenterWeightedAverage

[DateTimeOriginal ] = "2016:06:01 12:49:53"

[UserComment ] = " FC000000000"

[ComponentsConfiguration ] = [Y Cb Cr .]

[Flash ] = Flash did not fire

[ExifVersion ] = 02.20

[ExifInteroperabilityOffset ] = @ 0x0B6C

[ExposureBiasValue ] = 0.00 eV

[BrightnessValue ] = 743/100

[ISOSpeedRatings ] = 50

[SensingMethod ] = Not defined

[FlashPixVersion ] = 01.00

[MakerNote ] = @ 0x04B0

[ExposureTime ] = 1/844 s

EXIF MakerIFD @ Absolute 0x000004BC

Makernote decode option not enabled.

EXIF GPSIFD @ Absolute 0x00000B96

Dir Length = 0x0002

[GPSAltitude ] = 0.000 m

[GPSAltitudeRef ] = Above Sea Level

EXIF InteropIFD @ Absolute 0x00000B78

Dir Length = 0x0002

[InteroperabilityIndex ] = "R98"

[InteroperabilityVersion ] = 01.00

*** Marker: DQT (xFFDB) ***

Define a Quantization Table.

OFFSET: 0x00008571

Table length = 132

----

Precision=8 bits

Destination ID=0 (Luminance)

DQT, Row #0: 1 1 1 1 1 2 3 4

DQT, Row #1: 1 1 1 1 2 3 4 3

DQT, Row #2: 1 1 1 1 2 3 4 3

DQT, Row #3: 1 1 1 2 3 5 5 4

DQT, Row #4: 1 1 2 3 4 7 6 5

DQT, Row #5: 1 2 3 4 5 6 7 6

DQT, Row #6: 3 4 5 5 6 7 7 6

DQT, Row #7: 4 6 6 6 7 6 6 6

Approx quality factor = 96.95 (scaling=6.11 variance=1.09)

----

Precision=8 bits

Destination ID=1 (Chrominance)

DQT, Row #0: 1 1 1 3 6 6 6 6

DQT, Row #1: 1 1 2 4 6 6 6 6

DQT, Row #2: 1 2 3 6 6 6 6 6

DQT, Row #3: 3 4 6 6 6 6 6 6

DQT, Row #4: 6 6 6 6 6 6 6 6

DQT, Row #5: 6 6 6 6 6 6 6 6

DQT, Row #6: 6 6 6 6 6 6 6 6

DQT, Row #7: 6 6 6 6 6 6 6 6

Approx quality factor = 96.99 (scaling=6.01 variance=0.24)

*** Marker: SOF0 (Baseline DCT) (xFFC0) ***

OFFSET: 0x000085F7

Frame header length = 17

Precision = 8

Number of Lines = 2988

Samples per Line = 5312

Image Size = 5312 x 2988

Raw Image Orientation = Landscape

Number of Img components = 3

Component[1]: ID=0x01, Samp Fac=0x22 (Subsamp 1 x 1), Quant Tbl Sel=0x00 (Lum: Y)

Component[2]: ID=0x02, Samp Fac=0x11 (Subsamp 2 x 2), Quant Tbl Sel=0x01 (Chrom: Cb)

Component[3]: ID=0x03, Samp Fac=0x11 (Subsamp 2 x 2), Quant Tbl Sel=0x01 (Chrom: Cr)

*** Marker: DHT (Define Huffman Table) (xFFC4) ***

OFFSET: 0x0000860A

Huffman table length = 418

----

Destination ID = 0

Class = 0 (DC / Lossless Table)

Codes of length 01 bits (000 total):

Codes of length 02 bits (001 total): 00

Codes of length 03 bits (005 total): 01 02 03 04 05

Codes of length 04 bits (001 total): 06

Codes of length 05 bits (001 total): 07

Codes of length 06 bits (001 total): 08

Codes of length 07 bits (001 total): 09

Codes of length 08 bits (001 total): 0A

Codes of length 09 bits (001 total): 0B

Codes of length 10 bits (000 total):

Codes of length 11 bits (000 total):

Codes of length 12 bits (000 total):

Codes of length 13 bits (000 total):

Codes of length 14 bits (000 total):

Codes of length 15 bits (000 total):

Codes of length 16 bits (000 total):

Total number of codes: 012

----

Destination ID = 0

Class = 1 (AC Table)

Codes of length 01 bits (000 total):

Codes of length 02 bits (002 total): 01 02

Codes of length 03 bits (001 total): 03

Codes of length 04 bits (003 total): 00 04 11

Codes of length 05 bits (003 total): 05 12 21

Codes of length 06 bits (002 total): 31 41

Codes of length 07 bits (004 total): 06 13 51 61

Codes of length 08 bits (003 total): 07 22 71

Codes of length 09 bits (005 total): 14 32 81 91 A1

Codes of length 10 bits (005 total): 08 23 42 B1 C1

Codes of length 11 bits (004 total): 15 52 D1 F0

Codes of length 12 bits (004 total): 24 33 62 72

Codes of length 13 bits (000 total):

Codes of length 14 bits (000 total):

Codes of length 15 bits (001 total): 82

Codes of length 16 bits (125 total): 09 0A 16 17 18 19 1A 25 26 27 28 29 2A 34 35 36

37 38 39 3A 43 44 45 46 47 48 49 4A 53 54 55 56

57 58 59 5A 63 64 65 66 67 68 69 6A 73 74 75 76

77 78 79 7A 83 84 85 86 87 88 89 8A 92 93 94 95

96 97 98 99 9A A2 A3 A4 A5 A6 A7 A8 A9 AA B2 B3

B4 B5 B6 B7 B8 B9 BA C2 C3 C4 C5 C6 C7 C8 C9 CA

D2 D3 D4 D5 D6 D7 D8 D9 DA E1 E2 E3 E4 E5 E6 E7

E8 E9 EA F1 F2 F3 F4 F5 F6 F7 F8 F9 FA

Total number of codes: 162

----

Destination ID = 1

Class = 0 (DC / Lossless Table)

Codes of length 01 bits (000 total):

Codes of length 02 bits (003 total): 00 01 02

Codes of length 03 bits (001 total): 03

Codes of length 04 bits (001 total): 04

Codes of length 05 bits (001 total): 05

Codes of length 06 bits (001 total): 06

Codes of length 07 bits (001 total): 07

Codes of length 08 bits (001 total): 08

Codes of length 09 bits (001 total): 09

Codes of length 10 bits (001 total): 0A

Codes of length 11 bits (001 total): 0B

Codes of length 12 bits (000 total):

Codes of length 13 bits (000 total):

Codes of length 14 bits (000 total):

Codes of length 15 bits (000 total):

Codes of length 16 bits (000 total):

Total number of codes: 012

----

Destination ID = 1

Class = 1 (AC Table)

Codes of length 01 bits (000 total):

Codes of length 02 bits (002 total): 00 01

Codes of length 03 bits (001 total): 02

Codes of length 04 bits (002 total): 03 11

Codes of length 05 bits (004 total): 04 05 21 31

Codes of length 06 bits (004 total): 06 12 41 51

Codes of length 07 bits (003 total): 07 61 71

Codes of length 08 bits (004 total): 13 22 32 81

Codes of length 09 bits (007 total): 08 14 42 91 A1 B1 C1

Codes of length 10 bits (005 total): 09 23 33 52 F0

Codes of length 11 bits (004 total): 15 62 72 D1

Codes of length 12 bits (004 total): 0A 16 24 34

Codes of length 13 bits (000 total):

Codes of length 14 bits (001 total): E1

Codes of length 15 bits (002 total): 25 F1

Codes of length 16 bits (119 total): 17 18 19 1A 26 27 28 29 2A 35 36 37 38 39 3A 43

44 45 46 47 48 49 4A 53 54 55 56 57 58 59 5A 63

64 65 66 67 68 69 6A 73 74 75 76 77 78 79 7A 82

83 84 85 86 87 88 89 8A 92 93 94 95 96 97 98 99

9A A2 A3 A4 A5 A6 A7 A8 A9 AA B2 B3 B4 B5 B6 B7

B8 B9 BA C2 C3 C4 C5 C6 C7 C8 C9 CA D2 D3 D4 D5

D6 D7 D8 D9 DA E2 E3 E4 E5 E6 E7 E8 E9 EA F2 F3

F4 F5 F6 F7 F8 F9 FA

Total number of codes: 162

*** Marker: SOS (Start of Scan) (xFFDA) ***

OFFSET: 0x000087AE

Scan header length = 12

Number of img components = 3

Component[1]: selector=0x01, table=0(DC),0(AC)

Component[2]: selector=0x02, table=1(DC),1(AC)

Component[3]: selector=0x03, table=1(DC),1(AC)

Spectral selection = 0 .. 63

Successive approximation = 0x00

*** Decoding SCAN Data ***

OFFSET: 0x000087BC

Scan Decode Mode: No IDCT (DC only)

NOTE: Low-resolution DC component shown. Can decode full-res with [Options->Scan Segment->Full IDCT]

Scan Data encountered marker 0xFFD9 @ 0x0070479C.0

Compression stats:

Compression Ratio: 6.50:1

Bits per pixel: 3.69:1

Huffman code histogram stats:

Huffman Table: (Dest ID: 0, Class: DC)

# codes of length 01 bits: 0 ( 0%)

# codes of length 02 bits: 56846 ( 23%)

# codes of length 03 bits: 56497 ( 23%)

# codes of length 04 bits: 35238 ( 14%)

# codes of length 05 bits: 41636 ( 17%)

# codes of length 06 bits: 37006 ( 15%)

# codes of length 07 bits: 17624 ( 7%)

# codes of length 08 bits: 3354 ( 1%)

# codes of length 09 bits: 135 ( 0%)

# codes of length 10 bits: 0 ( 0%)

# codes of length 11 bits: 0 ( 0%)

# codes of length 12 bits: 0 ( 0%)

# codes of length 13 bits: 0 ( 0%)

# codes of length 14 bits: 0 ( 0%)

# codes of length 15 bits: 0 ( 0%)

# codes of length 16 bits: 0 ( 0%)

Huffman Table: (Dest ID: 1, Class: DC)

# codes of length 01 bits: 0 ( 0%)

# codes of length 02 bits: 65907 ( 53%)

# codes of length 03 bits: 20929 ( 17%)

# codes of length 04 bits: 15755 ( 13%)

# codes of length 05 bits: 11324 ( 9%)

# codes of length 06 bits: 6922 ( 6%)

# codes of length 07 bits: 2869 ( 2%)

# codes of length 08 bits: 449 ( 0%)

# codes of length 09 bits: 13 ( 0%)

# codes of length 10 bits: 0 ( 0%)

# codes of length 11 bits: 0 ( 0%)

# codes of length 12 bits: 0 ( 0%)

# codes of length 13 bits: 0 ( 0%)

# codes of length 14 bits: 0 ( 0%)

# codes of length 15 bits: 0 ( 0%)

# codes of length 16 bits: 0 ( 0%)

Huffman Table: (Dest ID: 0, Class: AC)

# codes of length 01 bits: 0 ( 0%)

# codes of length 02 bits: 3354578 ( 40%)

# codes of length 03 bits: 1198743 ( 14%)

# codes of length 04 bits: 1585461 ( 19%)

# codes of length 05 bits: 1072972 ( 13%)

# codes of length 06 bits: 136922 ( 2%)

# codes of length 07 bits: 597879 ( 7%)

# codes of length 08 bits: 267933 ( 3%)

# codes of length 09 bits: 58601 ( 1%)

# codes of length 10 bits: 65634 ( 1%)

# codes of length 11 bits: 14483 ( 0%)

# codes of length 12 bits: 3816 ( 0%)

# codes of length 13 bits: 0 ( 0%)

# codes of length 14 bits: 0 ( 0%)

# codes of length 15 bits: 149 ( 0%)

# codes of length 16 bits: 12873 ( 0%)

Huffman Table: (Dest ID: 1, Class: AC)

# codes of length 01 bits: 0 ( 0%)

# codes of length 02 bits: 266868 ( 48%)

# codes of length 03 bits: 83986 ( 15%)

# codes of length 04 bits: 95372 ( 17%)

# codes of length 05 bits: 74009 ( 13%)

# codes of length 06 bits: 23326 ( 4%)

# codes of length 07 bits: 1450 ( 0%)

# codes of length 08 bits: 5579 ( 1%)

# codes of length 09 bits: 1461 ( 0%)

# codes of length 10 bits: 239 ( 0%)

# codes of length 11 bits: 379 ( 0%)

# codes of length 12 bits: 92 ( 0%)

# codes of length 13 bits: 0 ( 0%)

# codes of length 14 bits: 20 ( 0%)

# codes of length 15 bits: 11 ( 0%)

# codes of length 16 bits: 17 ( 0%)

YCC clipping in DC:

Y component: [<0= 0] [>255= 0]

Cb component: [<0= 0] [>255= 0]

Cr component: [<0= 0] [>255= 0]

RGB clipping in DC:

R component: [<0= 0] [>255= 0]

G component: [<0= 0] [>255= 0]

B component: [<0= 0] [>255= 0]

Average Pixel Luminance (Y):

Y=[133] (range: 0..255)

Brightest Pixel Search:

YCC=[ 1016, -8, 0] RGB=[255,255,253] @ MCU[ 0, 0]

Finished Decoding SCAN Data

Number of RESTART markers decoded: 0

Next position in scan buffer: Offset 0x0070479C.0

*** Marker: EOI (End of Image) (xFFD9) ***

OFFSET: 0x0070479C

*** Searching Compression Signatures ***

Signature: 010564D93F295ADB889B91604DC82EE1

Signature (Rotated): 014302FE54745F4DBB58A0D51CDC66BD

File Offset: 0 bytes

Chroma subsampling: 2x2

EXIF Make/Model: OK [LG Electronics] [LG-H811]

EXIF Makernotes: OK

EXIF Software: NONE

Searching Compression Signatures: (3347 built-in, 0 user(*) )

EXIF.Make / Software EXIF.Model Quality Subsamp Match?

------------------------- ----------------------------------- ---------------- --------------

CAM:[Leica Camera AG ] [M8 Digital Camera ] [ ] No

CAM:[Leica Camera AG ] [M8 Digital Camera ] [ ] No

CAM:[Leica Camera AG ] [M8 Digital Camera ] [ ] No

CAM:[NIKON ] [E4500 ] [FINE ] No

CAM:[NIKON ] [E5400 ] [FINE ] No

CAM:[NIKON ] [E775 ] [FINE ] No

CAM:[NIKON ] [E775 ] [FINE ] No

CAM:[OLYMPUS CORPORATION ] [C8080WZ ] [ ] No

CAM:[OLYMPUS OPTICAL CO.,LTD ] [C3040Z ] [ ] No

CAM:[OLYMPUS OPTICAL CO.,LTD ] [C40Z,D40Z ] [ ] No

CAM:[Samsung Techwin ] [Digimax V50/a5 ] [ ] No

CAM:[SAMSUNG TECHWIN ] [Pro 815 ] [ ] No

CAM:[SAMSUNG TECHWIN ] [VLUU NV 7, NV 7 ] [ ] No

CAM:[SAMSUNG TECHWIN ] [VLUU NV10, NV10 ] [ ] No

CAM:[SONY ] [CYBERSHOT ] [ ] No

CAM:[SONY ] [DSC-H1 ] [ ] No

CAM:[SONY ] [DSC-H2 ] [ ] No

CAM:[SONY ] [DSC-H5 ] [ ] No

CAM:[SONY ] [DSC-H7 ] [ ] No

CAM:[SONY ] [DSC-H9 ] [ ] No

CAM:[SONY ] [DSC-L1 ] [ ] No

CAM:[SONY ] [DSC-N2 ] [ ] No

CAM:[SONY ] [DSC-P150 ] [ ] No

CAM:[SONY ] [DSC-P200 ] [ ] No

CAM:[SONY ] [DSC-R1 ] [ ] No

CAM:[SONY ] [DSC-S90 ] [ ] No

CAM:[SONY ] [DSC-V1 ] [ ] No

CAM:[SONY ] [DSC-V3 ] [ ] No

CAM:[SONY ] [DSC-W35 ] [ ] No

CAM:[SONY ] [DSC-W7 ] [ ] No

CAM:[SONY ] [SONY ] [ ] No

SW :[IJG Library ] [097 ]

The following IJG-based editors also match this signature:

SW :[GIMP ] [097 ]

SW :[IrfanView ] [097 ]

SW :[idImager ] [097 ]

SW :[FastStone Image Viewer ] [097 ]

SW :[NeatImage ] [097 ]

SW :[Paint.NET ] [097 ]

SW :[Photomatix ] [097 ]

SW :[XnView ] [097 ]

Based on the analysis of compression characteristics and EXIF metadata:

ASSESSMENT: Class 4 - Uncertain if processed or original

While the EXIF fields indicate original, no compression signatures

in the current database were found matching this make/model

Appears to be new signature for known camera.

If the camera/software doesn't appear in list above,

PLEASE ADD TO DATABASE with [Tools->Add Camera to DB]

*** Additional Info ***

NOTE: Data exists after EOF, range: 0x0070479E-0x0072BFD2 (161844 bytes)

HERE IS SOME COMPRESSION RATIONS COMPARISON WHAT AT 100% COMPRESSION CAMERA NEEDED TO HIT. IT MISSED IT BUT 97% IS VERIFIED EVEN THREW THOSE VALUES.

Reference: http://www.graphicsmill.com/blog/2014/11/06/Compression-ratio-for-different-JPEG-quality-values

Q=55 43.27

Q=60 36.90

Q=65 34.24

Q=70 31.50

Q=75 26.00

Q=80 25.06

Q=85 19.08

Q=90 14.30

Q=95 9.88

Q=100 5.27

[IMG="Compression Quality Values"]http://www.graphicsmill.com/media/a0a861af-3d4b-4fb8-8d8c-5cce8742a7e6/MWz-qw/Blog/GM/CompressionRatioJpegQualityResult.png[/IMG]