NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 69 70 71 72 73 … 93 Next »
ATI CCC development

 
  • 0 Vote(s) - 0 Average
ATI CCC development
Zod
Offline

Member

Posts: 53
Threads: 10
Joined: Jul 2005
#1
2005-08-06, 07:54 AM
While playing with my newly built PVR system and tweaking the ATI Catalyst Control Center settings, I got the idea of trying to write a GB-PVR plugin that would automatically set the overscan mode of a Radeon graphics adapter before and after playing a recorded video. I skimmed through the ATI CCC SDK, and at first it looked like it'd be an easy bit of code. Here's the quick test VB.net sample I tried:

(Ignore the spaces being inserted on longer lines, it's something the forum is doing on its own)

Code:
Imports ATI.ACE.CLI.Aspect.DeviceTV2
Imports ATI.ACE.CLI.Aspect.DeviceTV2.Graphics

Module Main

    Sub Main()
        Dim so As New ATI.ACE.CLI.Aspect.DeviceTV2.Graphics.Shared.ScreenOverscan

        If so.GetOverscanSupported() Then
            MsgBox("Overscan supported, currently: " & so.GetOverscanCurrent().ToString())

            Dim aspect As ATI.ACE.CLI.Foundation.
            Dim tv As New ATI.ACE.CLI.Aspect.DeviceTV2.Graphics.Shared.SDeviceTV2(

            Select Case so.GetOverscanCurrent()
                Case [Shared].TV2SCANTYPE.Underscan
                    If Not so.Set(ATI.ACE.CLI.Aspect.DeviceTV2.Graphics.Shared.TV2SCANTYPE.Middlescan) Then
                        MsgBox("Unable to set scan mode")
                    End If
                Case [Shared].TV2SCANTYPE.Middlescan
                    If Not so.Set(ATI.ACE.CLI.Aspect.DeviceTV2.Graphics.Shared.TV2SCANTYPE.Overscan) Then
                        MsgBox("Unable to set scan mode")
                    End If
                Case [Shared].TV2SCANTYPE.Overscan
                    If Not so.Set(ATI.ACE.CLI.Aspect.DeviceTV2.Graphics.Shared.TV2SCANTYPE.Underscan) Then
                        MsgBox("Unable to set scan mode")
                    End If
            End Select
        Else
            MsgBox("Overscan not supported")
        End If
    End Sub

End Module


It does run, but so.GetOverscanSupported() returns false no matter what I try (including running it on a system with TV-Out). I'm guessing that the new instances I create have no actual relationship to the settings in use on the graphics adapter itself. However, looking through the SDK, I can't figure out any other way to obtain an instance of that object...I can't find anything that returns a "ScreenOverscan" object.

Does anyone have any tips for this newbie?

XP SP2 + Latest Hotfixes, GBPVR v0.98.8, AMD Sempron 2500+, Abit VA-20, 512MB PC3200 RAM, Gigabyte Radeon 9250 128 MB VIVO AGP, ATI TV Wonder Elite PCI w/ Remote Wonder Plus, Creative Audigy 2 Value, 2x Seagate ATA/100 7200.7 IDE
---
Officer, have you ever heard of "Snow Crash"...?
ChristianW
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Aug 2005
#2
2005-08-10, 01:03 AM
Note that I have not (yet) played with either the ATI sdk or the gbpvr sdk so this is just a general programming tip Wink

Are you sure the GetOverscanSupported() returns a boolean?

Christian...
Zod
Offline

Member

Posts: 53
Threads: 10
Joined: Jul 2005
#3
2005-08-10, 08:01 PM
ChristianW Wrote:Are you sure the GetOverscanSupported() returns a boolean?

Heh, I won't pretend I'm a 1337 h4x0r, but I usually get my data types right, at least! From the ATI CCC SDK documentation:

Quote:public bool GetOverscanSupported();
Returns whether overscan screen adjustment are supported


I'm back-burnering this little project for the time being. Either it's going to be really easy to do (similar to what I have written above), or it'll be a bitch (the ATI CCC SDK outlines a somewhat cumbersome dashboard/runtime virtual client/server programming model that I'm in no hurry to learn for something as simple as this). Of course, it doesn't help that, as usual, the SDK sample code only contains one, partially useful sample. Why can't SDK's ever include *real* practical sample code? Ok, that's not true...MS's Platform SDK contained plenty. But still...

XP SP2 + Latest Hotfixes, GBPVR v0.98.8, AMD Sempron 2500+, Abit VA-20, 512MB PC3200 RAM, Gigabyte Radeon 9250 128 MB VIVO AGP, ATI TV Wonder Elite PCI w/ Remote Wonder Plus, Creative Audigy 2 Value, 2x Seagate ATA/100 7200.7 IDE
---
Officer, have you ever heard of "Snow Crash"...?
Zod
Offline

Member

Posts: 53
Threads: 10
Joined: Jul 2005
#4
2005-08-15, 06:09 PM
FYI to anyone else interested in the ATI Catalyst Control Center SDK, it is officially not supported by anyone at ATI (I tried). You can't even get support as a registered developer, since it doesn't fall into the classification of a "3D or Multimedia Application".

If I could only figure out how to create a valid instance of any one of the graphics hardware objects listed in the SDK reference...their sample code is useless for that.

XP SP2 + Latest Hotfixes, GBPVR v0.98.8, AMD Sempron 2500+, Abit VA-20, 512MB PC3200 RAM, Gigabyte Radeon 9250 128 MB VIVO AGP, ATI TV Wonder Elite PCI w/ Remote Wonder Plus, Creative Audigy 2 Value, 2x Seagate ATA/100 7200.7 IDE
---
Officer, have you ever heard of "Snow Crash"...?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Test/Development environment for npvr.db3 scJohn 10 4,359 2020-09-04, 09:14 PM
Last Post: scJohn
  API docs to help with plugin development? McBainUK 3 2,786 2013-06-08, 06:14 PM
Last Post: sub
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,770 2012-10-18, 08:35 PM
Last Post: osx-addict
  New to skins development dspdrew 1 1,346 2010-10-24, 11:22 AM
Last Post: sub
  Webservice API to support Android App development Barsk 4 3,275 2010-10-19, 07:31 AM
Last Post: Barsk
  New to plugin-development - what language/IDE to use? mila06 10 4,275 2010-08-17, 02:44 AM
Last Post: sub
  NPVR plugin development McBainUK 8 3,025 2010-07-14, 06:13 PM
Last Post: sub
  'Videos' Plugin Development reven 37 13,380 2010-05-31, 03:38 AM
Last Post: jezz2020
  WizTools - 1.x Plugin Development Toolkit JavaWiz 308 78,073 2010-03-27, 09:55 PM
Last Post: Ommina
  CommunitySkin 4 Open development thread. Fatman_do 110 24,802 2008-12-14, 09:04 PM
Last Post: McBainUK

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode