Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 44
Registered: ‎01-06-2012
My Device: PlayBook
My Carrier: Orange

HDMI Support

Is it possible to integrate HDMI support into an NDK application (a game)? By this I don't mean simply allowing the device to scale/letter box the 1024x600 picture onto a 1920x1080 output, but instead can the NDK allow a game to drive the full 1920x1080 pixels? I appreciate that if this is possible there may be severe GPU performance implications, but I'd like to know if it is at least possible and if so, how?


Kind regards,

 

Steve

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: HDMI Support

While I haven't tried it myself, I understand this should be possible and supported by the APIs in this link and "neighbouring" ones in the Screen and Windowing API: https://bdsc.webapps.blackberry.com/native/reference/com.qnx.doc.screen.lib_ref/topic/cscreen_displa...

 

I did write some Python code to retrieve display info while connected to HDMI and got back the expected sort of results (i.e. higher resolution than the 1024x600 screen.  The code is part of the "display_info.py" script packaged as part of the BBX Python demo (bbxpython-demo-0.0.2.10.bar) mentioned here http://microcode.ca/bbx-python

 

Output follows, from when connected to an LG 34" TV, which can do 720P (note 1080P is listed, but "interlaced"):

 

--------------- running display_info.py
num displays = 2
display #0
  detachable? False
  attached? True
  num formats 4
  formats [6, 8, 9, 12]
  rotation 0
  gamma 256
  mirror mode? 0
  power mode 30339
  num keep awakes 0
  id 1
  id string b'INTERNAL1'
  type 30304
  physical size 153 90
  resolution 1024 600
  pixel size 0.15mm (170.0dpi)
  num modes 1
    mode #0: 1024 x 600 @60Hz, interlaced? 0, index 0, flags 1, aspect_ratio 0/0
display #1
  detachable? True
  attached? True
  num formats 4
  formats [6, 8, 9, 12]
  rotation 0
  gamma 256
  mirror mode? 1
  power mode 30339
  num keep awakes 0
  id 2
  id string b'GSA-1-31362-2007-11'
  type 30311
  physical size 0 0
  resolution 1280 720
  num modes 14
    mode #0: 1280 x 720 @60Hz, interlaced? 0, index 0, flags 1, aspect_ratio 16/9
    mode #1: 1920 x 1080 @60Hz, interlaced? 1, index 1, flags 0, aspect_ratio 16/9
    mode #2: 720 x 480 @60Hz, interlaced? 0, index 2, flags 0, aspect_ratio 16/9
    mode #3: 720 x 480 @60Hz, interlaced? 0, index 3, flags 0, aspect_ratio 4/3
    mode #4: 640 x 480 @60Hz, interlaced? 0, index 4, flags 0, aspect_ratio 0/0
    mode #5: 800 x 600 @60Hz, interlaced? 0, index 5, flags 0, aspect_ratio 0/0
    mode #6: 1024 x 768 @60Hz, interlaced? 0, index 6, flags 0, aspect_ratio 0/0
    mode #7: 800 x 600 @56Hz, interlaced? 0, index 7, flags 0, aspect_ratio 0/0
    mode #8: 640 x 480 @75Hz, interlaced? 0, index 8, flags 0, aspect_ratio 0/0
    mode #9: 640 x 480 @73Hz, interlaced? 0, index 9, flags 0, aspect_ratio 0/0
    mode #10: 1024 x 768 @75Hz, interlaced? 0, index 10, flags 0, aspect_ratio 0/0
    mode #11: 1024 x 768 @70Hz, interlaced? 0, index 11, flags 0, aspect_ratio 0/0
    mode #12: 800 x 600 @75Hz, interlaced? 0, index 12, flags 0, aspect_ratio 0/0
    mode #13: 800 x 600 @72Hz, interlaced? 0, index 13, flags 0, aspect_ratio 0/0

 


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!