axedcode
Posts: 1
Joined: Sun Dec 23, 2012 8:10 pm

vc_dispmanx_update_start and vc_dispmanx_display_open

Sun Dec 23, 2012 8:20 pm

Hi, I was just wondering what the correct return value of both of these functions should be. Last week the update function was returning 0 which I thought was correct. Since I've rebooted, and every boot thereafter, it is now returning a really long number, much like the display_open function which has always returned 268435456. What should I be getting as values for these handles?

MindChild
Posts: 7
Joined: Sat Dec 29, 2012 12:41 pm

Re: vc_dispmanx_update_start and vc_dispmanx_display_open

Sat Dec 29, 2012 1:01 pm

These should return an DISPMANX_UPDATE_HANDLE_T and a DISPMANX_DISPLAY_HANDLE_T respectively. 0 is never going to be a valid handle to anything

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5551
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: vc_dispmanx_update_start and vc_dispmanx_display_open

Sat Dec 29, 2012 2:14 pm

I think dispmanx can return a handle of:
DISPMANX_NO_HANDLE=0
DISPMANX_INVALID=-1

Anything else is a valid handle. Otherwise it is an opaque type (some of the lower bits are an incrementing handle number, and some higher bits contain internal flags).

Return to “General programming discussion”