janalysis/jpeg.py
def _encode_dc(component):
    """Perform differential pulse-code modulation on the DC coefficients."""
    for index, matrix in reversed(list(enumerate(component))):
        if index == 0:
            continue  # Don't subtract the first DC term
        component[index][0][0] = matrix[0][0] - component[index - 1][0][0]
Perform differential pulse-code modulation on the DC coefficients.
Perform differential pulse-code modulation on the DC coefficients.
Perform differential pulse - code modulation on the DC coefficients .
def _encode_dc(component):
    for index, matrix in reversed(list(enumerate(component))):
        if index == 0:
            continue  
        component[index][0][0] = matrix[0][0] - component[index - 1][0][0]
def _encode_dc ( component ) : for index , matrix in reversed ( list ( enumerate ( component ) ) ) : if index == 0 : continue component [ index ] [ 0 ] [ 0 ] = matrix [ 0 ] [ 0 ] - component [ index - 1 ] [ 0 ] [ 0 ]
Perform differential pulse-code modulation on the DC coefficients.
Perform differential pulse - code modulation on the DC coefficients .
"""Perform differential pulse-code modulation on the DC coefficients.""" # Don't subtract the first DC term
component