Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/libpng/pngwtran.c

    r2 r561  
    22/* pngwtran.c - transforms the data in a row for PNG writers
    33 *
    4  * Last changed in libpng 1.2.9 April 14, 2006
    5  * For conditions of distribution and use, see copyright notice in png.h
    6  * Copyright (c) 1998-2006 Glenn Randers-Pehrson
     4 * Last changed in libpng 1.2.37 [June 4, 2009]
     5 * Copyright (c) 1998-2009 Glenn Randers-Pehrson
    76 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
    87 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
     8 *
     9 * This code is released under the libpng license.
     10 * For conditions of distribution and use, see the disclaimer
     11 * and license in png.h
    912 */
    1013
     
    1922png_do_write_transformations(png_structp png_ptr)
    2023{
    21    png_debug(1, "in png_do_write_transformations\n");
     24   png_debug(1, "in png_do_write_transformations");
    2225
    2326   if (png_ptr == NULL)
     
    2629#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
    2730   if (png_ptr->transformations & PNG_USER_TRANSFORM)
    28       if(png_ptr->write_user_transform_fn != NULL)
    29         (*(png_ptr->write_user_transform_fn)) /* user write transform function */
     31      if (png_ptr->write_user_transform_fn != NULL)
     32        (*(png_ptr->write_user_transform_fn)) /* User write transform function */
    3033          (png_ptr,                    /* png_ptr */
    3134           &(png_ptr->row_info),       /* row_info:     */
     
    8790png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
    8891{
    89    png_debug(1, "in png_do_pack\n");
     92   png_debug(1, "in png_do_pack");
    9093   if (row_info->bit_depth == 8 &&
    9194#if defined(PNG_USELESS_TESTS_SUPPORTED)
     
    213216png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth)
    214217{
    215    png_debug(1, "in png_do_shift\n");
     218   png_debug(1, "in png_do_shift");
    216219#if defined(PNG_USELESS_TESTS_SUPPORTED)
    217220   if (row != NULL && row_info != NULL &&
     
    249252      }
    250253
    251       /* with low row depths, could only be grayscale, so one channel */
     254      /* With low row depths, could only be grayscale, so one channel */
    252255      if (row_info->bit_depth < 8)
    253256      {
     
    337340png_do_write_swap_alpha(png_row_infop row_info, png_bytep row)
    338341{
    339    png_debug(1, "in png_do_write_swap_alpha\n");
     342   png_debug(1, "in png_do_write_swap_alpha");
    340343#if defined(PNG_USELESS_TESTS_SUPPORTED)
    341344   if (row != NULL && row_info != NULL)
     
    425428png_do_write_invert_alpha(png_row_infop row_info, png_bytep row)
    426429{
    427    png_debug(1, "in png_do_write_invert_alpha\n");
     430   png_debug(1, "in png_do_write_invert_alpha");
    428431#if defined(PNG_USELESS_TESTS_SUPPORTED)
    429432   if (row != NULL && row_info != NULL)
     
    440443            for (i = 0, sp = dp = row; i < row_width; i++)
    441444            {
    442                /* does nothing
     445               /* Does nothing
    443446               *(dp++) = *(sp++);
    444447               *(dp++) = *(sp++);
     
    458461            for (i = 0, sp = dp = row; i < row_width; i++)
    459462            {
    460                /* does nothing
     463               /* Does nothing
    461464               *(dp++) = *(sp++);
    462465               *(dp++) = *(sp++);
     
    496499            for (i = 0, sp = dp = row; i < row_width; i++)
    497500            {
    498                /* does nothing
     501               /* Does nothing
    499502               *(dp++) = *(sp++);
    500503               *(dp++) = *(sp++);
     
    511514
    512515#if defined(PNG_MNG_FEATURES_SUPPORTED)
    513 /* undoes intrapixel differencing  */
     516/* Undoes intrapixel differencing  */
    514517void /* PRIVATE */
    515518png_do_write_intrapixel(png_row_infop row_info, png_bytep row)
    516519{
    517    png_debug(1, "in png_do_write_intrapixel\n");
     520   png_debug(1, "in png_do_write_intrapixel");
    518521   if (
    519522#if defined(PNG_USELESS_TESTS_SUPPORTED)
     
    559562            png_uint_32 s1   = (*(rp+2) << 8) | *(rp+3);
    560563            png_uint_32 s2   = (*(rp+4) << 8) | *(rp+5);
    561             png_uint_32 red  = (png_uint_32)((s0-s1) & 0xffffL);
    562             png_uint_32 blue = (png_uint_32)((s2-s1) & 0xffffL);
     564            png_uint_32 red  = (png_uint_32)((s0 - s1) & 0xffffL);
     565            png_uint_32 blue = (png_uint_32)((s2 - s1) & 0xffffL);
    563566            *(rp  ) = (png_byte)((red >> 8) & 0xff);
    564567            *(rp+1) = (png_byte)(red & 0xff);
Note: See TracChangeset for help on using the changeset viewer.