~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythtv/osdsurface.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey), Jamie Bennett, Mario Limonciello, Dave Walker (Daviey)
  • Date: 2010-03-23 19:32:33 UTC
  • mfrom: (1.1.49 upstream)
  • Revision ID: james.westby@ubuntu.com-20100323193233-5sv9djoxtlmwt3ca
Tags: 0.23.0+fixes23789-0ubuntu1
[ Jamie Bennett ]
* Fix FTBFS on armel (LP: #537714)

[ Mario Limonciello ]
* mythtv-{common,backend}.{config,templates,postinst}: (LP: #483748)
  - Simplify debconf questions by avoiding showing the generated pw
  - Don't warn about mythtv group.
  - Don't notify about running mythtv-setup.  This is optional (but
    of course encouraged!)
* Set version to include a "+" delimitter.
* Restore libfaad-dev dependency. (LP: #546552)

[ Dave Walker (Daviey) ]
* New snapshot (r23789), based from 0.23-fixes.
* debian/control:
  - mythtv-frontend set to Conflict with mythflix, as it's dropped
    upstream. (LP: #544521)
  - Remove unnecessary and potentially problematic use of Pre-Depends.
  - Set the debug package to Priority extra.
  - Change *-perl Section's from libs to perl
  - add ${shlibs:Depends} for mythtv-common Depends field
  - Minor spelling fix.
  - Fixes the long description for one of the packages, ensuring the
    description doesn't exceed 80 characters.
  - Vcs-* set to -fixes, rather than -trunk.
* debian/rules:
  - Use debconf-updatepo to update translations when required
  - Ensure license files are not included in the binary packages, except 
    for debian/copyright.
  - Fixes the permissions of certain files in the packaging.
* debian/copyright:
  - updated to reflect that mythtv is GPL-2 only.
  - inserted better licence statement and Copyright reference.
* debian/mythtv-*.templates
  - Simplified strings; removed verbosity and improved readability.
* Prevent the maintainer scripts from failing in case any questions 
  can't be displayed.
* Added holding debian/mythtv-frontend.config, mainly to appease lintian.
* debian/mythtv-frontend.menu: Changed section to Applications/Graphics.
* debian/mythtv-backend.postinst: Load debconf libraries.
* debian/source.lintian-overrides: Removes the unecessary override of the 
  binNMU warnings.
* Fix perl binding installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
    unsigned char tmp2[8];
445
445
 
446
446
    dithertoia44_8_c(src, tmp2, alpha, dmp, xpos, context);
447
 
  
 
447
 
448
448
    unsigned char tmp[8];
449
449
 
450
450
    tmp[0] = dmp[((xpos+0) & (DM_WIDTH - 1))];
674
674
            g = (argb >> 8) & 0xff;
675
675
            b = (argb) & 0xff;
676
676
 
677
 
            RGBA_OUT(&argbptr[i * 4], (a * r) >> 8, (a * g) >> 8, 
 
677
            RGBA_OUT(&argbptr[i * 4], (a * r) >> 8, (a * g) >> 8,
678
678
                     (a * b) >> 8, 128);
679
679
        }
680
680
    }
692
692
 *  \param blend_to_black Uses Alpha to blend buffer to black
693
693
 *  \param threshold      Alpha threshold above which to perform blending
694
694
 */
695
 
void OSDSurface::BlendToARGB(unsigned char *argbptr, uint stride, 
 
695
void OSDSurface::BlendToARGB(unsigned char *argbptr, uint stride,
696
696
                             uint outheight, bool blend_to_black,
697
697
                             uint threshold) const
698
698
{
761
761
                    dest += 32;
762
762
                    alpha += 8;
763
763
                    x += 7;
764
 
                } 
 
764
                }
765
765
            }
766
766
        }
767
767
    }
789
789
    int amask = ifirst ? 0x0f : 0xf0;
790
790
 
791
791
    int ishift = ifirst ? 4 : 0;
792
 
    int imask = ifirst ? 0xf0 : 0x0f; 
 
792
    int imask = ifirst ? 0xf0 : 0x0f;
793
793
 
794
794
    dithertoia44_8_fun ditherer = dithertoia44_8_init(surface);
795
795
    dither8_context *dcontext = init_dithertoia44_8_context(ifirst);