Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-573

Error loading EPG channel icons of low colour depth

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 0.2.0.0
    • 0.2.0.0
    • TV / TVGuide
    • None
    • Operating System: XP
      Platform: Intel

    Description

      Several of the EPG channel icons downloaded using the xmltv.exe tool are not loading in MP. An error is logged for each "bad" icon. The only difference I can see is that the image properties differ slighly from those of other "working" icons.

      Image properties for all "bad" icons:
      WxH: 30x30 pixels
      Resolution: 96 dpi
      Bit Depth: 8

      It looks like all other "working" icons have a resolution of 72 dpi, and a bit depth of 24.

      Receiving the following error in error.log:
      9/19/2005 11:04:03 AM TextureManage:LoadGraphic(thumbs\tv\logos\ESPN2.jp g) failed:Error in the application.
      -2005529767 (D3DXERR_INVALIDDATA)
      at Microsoft.DirectX.Direct3D.TextureLoader.FromFile( Device device, String srcFile, Int32 width, Int32 height, Int32 mipLevels, Usage usage, Format format, Pool pool, Filter filter, Filter mipFilter, Int32 colorKey, ImageInformation& srcInformation, PaletteEntry[]& palette)
      at Microsoft.DirectX.Direct3D.TextureLoader.FromFile( Device device, String srcFile, Int32 width, Int32 height, Int32 mipLevels, Usage usage, Format format, Pool pool, Filter filter, Filter mipFilter, Int32 colorKey, ImageInformation& srcInformation)
      at MediaPortal.GUI.Library.GUITextureManager.LoadGrap hic(String strFileName, Int64 lColorKey, Int32 iMaxWidth, Int32 iMaxHeight, Int32& iWidth, Int32& iHeight)



      h4. Steps to Reproduce
      1. copy attached image "ESPN2.jpg" to MediaPortal\thumbs\tv\logos\[name].jpg, where [name] is a valid channel name in MP Setup > Television > TV Channels.
      2. open mediaportal, navigate to MyTV > TVGuide.
      3. scroll down the EPG listing until the channel line is displayed
      4. graphic is gray in color (blank)
      5. exit mediaportal
      6. view error.log for error text

      h4. Additional Information
      Problem lies in the fact that directx cannot load icons with 96 dpi.
      Only way to fix it is:
      - load icons using gdi
      - rescale to 72 dpi
      - save icons to disk again
      - finally load them using directx

      disadvantages:
      - major change
      - slow

      Is this worth it???

      Attachments

        Activity

          People

            Frodo Frodo (Inactive)
            DMAN DMAN (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: