Commit graph

242 commits

Author SHA1 Message Date
Courtney Goeltzenleuchter
15c151bd6d Merge "Add SMPTE2086 structures" 2017-01-30 16:35:57 +00:00
Courtney Goeltzenleuchter
75d8680794 Merge "Add enums for 10bit color formats" 2017-01-30 15:49:53 +00:00
TreeHugger Robot
45f6de6a4a Merge "Add dataspace for sensor direct report" 2017-01-27 23:43:45 +00:00
Courtney Goeltzenleuchter
cae6767698 Add SMPTE2086 structures
Add necessary data structures to hold SMPTE2086 data
describing the capabilities of the mastering display.
Test: TBD
Bug: 29940137

Change-Id: I085112f07e453d9f8bc73bbd6a8f91605c12e75d
2017-01-26 16:48:22 -07:00
Courtney Goeltzenleuchter
bde1241327 Add enums for 10bit color formats
To improve wide-color behavior it's useful to have more bits
per color component. This defines 10:10:10:2 and 10:10:10:X
for that use.
This can be used for any color space / dataspace that is
compatible with unsigned integer components, e.g. Display-P3,
BT2020, etc.
Test: TBD
Bug: 29940137

Change-Id: Ieb8757e76b1d5bc45ce37c2473289eed7db66139
2017-01-26 16:48:13 -07:00
Ian Elliott
4b8a262feb Remove old macro/function to get {min|max}RefreshDuration
Test: make
Change-Id: I1d35500eb677985fdc426ae7b38d697dcb7c38bd
2017-01-26 10:54:41 -07:00
Ian Elliott
94ef994d0e Vulkan: only report refresh duration (add new call for new way)
As part of discussions within Khronos, it was decided that
VK_GOOGLE_display_timing should only report one refresh duration for a display,
and assume that it's refresh rate is fixed (which is the case for our current
devices).

This commit adds the new macro/function that will be used long-term.  A future
commit will remove the old macro/function, once it is no longer used (since the
plumbing crosses repository boundaires.

Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.

Change-Id: Icff385db120f3e49fec0b2b8b0f35a06a9db6ca4
2017-01-25 13:01:37 -07:00
Peng Xu
c216a795af Add dataspace for sensor direct report
This CL syncs change in HAL.
Test: compiles

Change-Id: I6b6dca9ca68f25b6d68df2db1605cc31cca0beae
2017-01-24 02:58:07 -08:00
TreeHugger Robot
b7b91d5deb Merge "Plumb refresh cycle duration up to VK_GOOGLE_display_timing." 2017-01-23 22:13:42 +00:00
Ian Elliott
b5663fc093 Plumb refresh cycle duration up to VK_GOOGLE_display_timing.
Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.

Change-Id: Ida765850e185f5bdf6570796534be005791a64a8
2017-01-23 11:45:15 -07:00
Romain Guy
abe4304deb Add Display P3 color mode
Bug: 32984164
Test: compile
Change-Id: Ic3f8e5ae840ad6de8d0dc416221098078d8a1b0f
2017-01-20 16:04:15 -08:00
Brian C. Anderson
eccaae3659 Merge "Update native_window_get_frame_timestamps args" 2017-01-17 01:09:47 +00:00
Brian Anderson
6933088664 Update native_window_get_frame_timestamps args
- Add outLatchTime, outLastRefreshStartTime and
  outDequeueReadyTime.
- Rename outRefreshStartTime to outFirstRefreshStartTime.

Test: Manual testing with Chrome.

Change-Id: I1ed3237e393803546f627a645f65f3a8f1ab9dfc
2017-01-12 12:18:34 -08:00
Tomasz Wasilczyk
0994121251 Merge "Fix typo in radio_metadata_t definition." 2017-01-12 19:09:09 +00:00
Courtney Goeltzenleuchter
6769842f3a Merge "Add DISPLAY-P3 DATASPACE" 2017-01-10 18:31:46 +00:00
Tomasz Wasilczyk
a4b9066685 Make metadata field mandatory for program info struct.
Test: VTS, manual
Change-Id: I7dbd62d36ac21475fdbc49723ba3ea6744460d21
2017-01-06 14:20:13 -08:00
Courtney Goeltzenleuchter
de092983c7 Add DISPLAY-P3 DATASPACE
Industry specifications will include a Display-P3
color space that we'll want to use.
Test: compile

Change-Id: I17107f0c63a4d18a29eedbb248417c643adbbb79
2017-01-06 13:41:42 -07:00
Tomasz Wasilczyk
fd08e55799 Fix typo in radio_metadata_t definition.
Test: none, this code is unused yet.

Change-Id: I515aac5ce56e706225518cf7f6cbd1a28750001b
2016-12-29 11:55:52 -08:00
Romain Guy
f52d65a73b Remove RGBX_FP16 format
Bug: 32984164
Test: compile
Change-Id: I5fb298c7020b9e09bbec041088b296e315e9bec4
2016-12-16 09:57:58 -08:00
Romain Guy
631e0b7dfc Regenerate graphics-base.h
Bug: 32984164
Test: hidl-gen -o system/core/include/system/graphics-base.h -Lexport-header
-r android.hardware:hardware/interfaces
android.hardware.graphics.common@1.0 and compilation

Change-Id: Ied7f53c97b94eb15e11e26db4e73a568cfd982bb
2016-12-14 18:29:28 -08:00
Romain Guy
0c6dde6159 Prevent conflict with deprecated pixel format constants
Bug: 32984164
Test: Compile
Change-Id: Ia075c24740eeb33ca748e3423da156ffb9af0550
2016-12-14 10:10:49 -08:00
Steven Moreland
f4321334d4 Ran hardware/interfaces/update-base-files.sh.
Test: pass
Change-Id: I9301f22e2bec1d61021186da9e22e3c1b3a5df71
2016-12-12 09:48:49 -08:00
Brian C. Anderson
2aaa485e15 Merge "Add NATIVE_WINDOW_ENABLE_FRAME_TIMESTAMPS" 2016-12-04 00:36:23 +00:00
Brian C. Anderson
3e151ecb1a Merge "Add displayPresentTime to NATIVE_WINDOW_GET_FRAME_TIMESTAMPS" 2016-12-01 15:47:49 +00:00
Brian C. Anderson
a8f0b3a2ed Merge "Rename posted to requestedPresent for NATIVE_WINDOW_GET_FRAME_TIMESTAMPS" 2016-11-30 17:25:49 +00:00
Brian Anderson
77e53d990b Add NATIVE_WINDOW_ENABLE_FRAME_TIMESTAMPS
Test: Manual testing with Chrome.

Change-Id: Ia16546064952693f42205de34a06f3b097debea0
2016-11-17 15:52:49 -08:00
Brian Anderson
43f232bd55 Add displayPresentTime to NATIVE_WINDOW_GET_FRAME_TIMESTAMPS
Test: Manual testing with Chrome.

Change-Id: Ifbf0debf9883099b7b5a8a237edbb0a0eb2adf9a
2016-11-17 15:52:39 -08:00
Courtney Goeltzenleuchter
de5df5f520 Update with wide gamut defines
Test: make
Change-Id: I0542bdc5c6d9caedcc86e5b66d263abd9c0596dc
2016-11-17 08:27:10 -07:00
Brian Anderson
18f2903cf7 Rename posted to requestedPresent for NATIVE_WINDOW_GET_FRAME_TIMESTAMPS
Test: Manual testing with Chrome.

Change-Id: Ib7ef5c76dcd71887848c7cb91336f7fcc5815773
2016-11-15 15:41:41 -08:00
Craig Donner
ce54b4d14e Adds ANativeWindowBuffer support for layered images.
This is required for support of buffers that back texture arrays.

Bug: 31686534
Test: manual
Change-Id: I78ce132592f3803482ca858fd4be103c286f21e9
2016-11-11 11:35:08 -08:00
Chia-I Wu
e4c672a2ad graphics.h: generate some of the enums from HIDL
Test: make
Change-Id: I77791f05bdaf2d2696ba995a3572ca28f3a18d5b
2016-11-01 09:35:35 +08:00
Eric Laurent
5d4d06ab1e radio: fix compatibility for 64 bit processes
Clarify use of 32 bit quantities in all internal and HAL structures
to make sure that structures can be passed through binder calls between
processes with different data unit sizes.

NOTE: some structures still contain a pointer to metadata buffer: This pointer
is always at the end of the structures and special care is taken in binder
call implementations to cope with pointer size differences.

Change-Id: I2023f70c3c62f6fa45f9eab3f09d18033f0efe4f
2016-10-26 15:37:33 -07:00
Miodrag Dinic
53be7eb3d0 Merge "[qemu]: Fix payload size format in qemu_pipe_frame_send()" am: e5976bea7a am: 8c274361fb
am: f610eaac14

Change-Id: I890fbb885044e82d4ec66a5a400240124003ac25
2016-09-30 18:00:16 +00:00
Miodrag Dinic
192be1dcae [qemu]: Fix payload size format in qemu_pipe_frame_send()
The following change introduced regression for booting AOSP
on emulator for all architectures:

7c7990e Fix warnings in system/ headers

qemu_pipe expects payload size in the message header to be in hex format,
as stated in the comment for qemu_pipe_frame_send().

Change-Id: I32cfa9c9b2af56f93bbda0ea5597451c389ae45e
Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
2016-09-30 13:58:11 +02:00
Colin Cross
bd45ba6972 Merge "Fix warnings in system/ headers" am: d7f60fd871 am: 299df0bf01
am: 88fd7e2ec4

Change-Id: I94891ea3c3a00ee39b48531fcc8e5e3d6ebe724a
2016-09-22 22:52:44 +00:00
Colin Cross
7c7990e6fd Fix warnings in system/ headers
system/core/include is included in the global include path using
-isystem, which hides all warnings.  Fix warnings in
system/core/include/system in preparation for moving from -isystem to -I.

- Fix invalid doxygen syntax in graphics.h
- Use a pragma to hide a C99 extension warning on the flexible length
  array in graphics.h
- Make static functions in radio.h static inline
- Fix size_t printf and size_t vs. ssize_t comparision in qemu_pipe.h
- Fix old style cast in window.h

Test: m -j native
Bug: 31492149
Change-Id: I857f289e4c8e303494831873282bbb69de155c10
2016-09-21 17:46:59 -07:00
Courtney Goeltzenleuchter
a2e874eabc Add color mode enums
The android_color_mode_t defines the color modes supported
by a display. A display can support multiple different
color modes.

sRGB mode and AdobeRGB are deliberately placed at 7 and 8
so that they match mode ID's used on prior devices.

bug: http://b/27926012
Change-Id: I9ab41b56ec0b495c02539665da5be158ffddf843
2016-09-08 11:39:32 -07:00
Lajos Molnar
0e10df4dd6 add android_flex_layout for describing all flexible formats.
Bug: 22767098
Bug: 24759202
Change-Id: I61e4ca9bd71e8da88a9571ec4effc7165026715b
2016-09-08 11:38:53 -07:00
Dan Stoza
5d636e830f NativeWindow: Add LAST_[DE]QUEUE_DURATION queries
am: 94ededa387

Change-Id: I4fb6c849cf97dcd70cc7b7345e230238870e7d3a
2016-07-06 16:27:37 +00:00
Dan Stoza
94ededa387 NativeWindow: Add LAST_[DE]QUEUE_DURATION queries
Adds two new enums to enable querying the duration of the last
dequeue or queue operations to a Surface/ANativeWindow.

Bug: 29413700
Change-Id: Ifa16755911c4a3c013a7128dd4038d328109c32d
2016-07-01 16:07:00 -07:00
Courtney Goeltzenleuchter
b7d9991277 Add color mode enums
am: bf8132a7c1

Change-Id: I9fcf65efe519cc41358f5031741b5c4d3024cd9f
2016-06-22 00:18:20 +00:00
Courtney Goeltzenleuchter
bf8132a7c1 Add color mode enums
The android_color_mode_t defines the color modes supported
by a display. A display can support multiple different
color modes.

sRGB mode and AdobeRGB are deliberately placed at 7 and 8
so that they match mode ID's used on prior devices.

bug: http://b/27926012
Change-Id: I9ab41b56ec0b495c02539665da5be158ffddf843
2016-06-21 14:47:23 -06:00
David 'Digit' Turner
3a72d0fc79 Merge \\\"[qemu]: Move qemu_pipe.h from include/system/ directory.\\\" am: 44b7339aa2 am: 1c01bae82a
am: 6bcf0cf1e7

Change-Id: I85589757feb3aac19469afd97b8e98a74373acab
2016-06-21 08:10:38 +00:00
David 'Digit' Turner
1c01bae82a Merge \"[qemu]: Move qemu_pipe.h from include/system/ directory.\"
am: 44b7339aa2

Change-Id: I59b9a896058dea76f69b9ba757890d4a42952a66
2016-06-21 08:05:18 +00:00
David 'Digit' Turner
c7b098ceb5 [qemu]: Move qemu_pipe.h from include/system/ directory.
The <hardware/qemu_pipe.h> header isn't related to any loadable
hardware module, this patch thus relocates it to <system/qemu_pipe.h>
which is a much more logical location.

Note the following changes:

  - The pipe name must begin with the 'pipe:' prefix to avoid an
    un-necessary snprintf() and buffer copy.

  - Does not probe for the obsolete /dev/goldfish_pipe device, i.e.
    only use /dev/qemu_pipe instead.

  - Use QEMU_PIPE_DEBUG() instead of D() as the debugging macro.

+ Update ADB to use the newest <system/qemu_pipe.h>

+ Add qemu_pipe_frame_send() and qemu_pipe_frame_recv() utility
  functions which replace the obsolete qemud_channel_send() and
  qemud_channel_recv() from the defunct <hardware/qemud.h>
  header.

BUG=25875346

Change-Id: Ic290a5b79d466c2af64b49bd9134643277c11bfd
2016-06-17 09:21:59 +02:00
Dan Stoza
c873d44942 Merge "add android_flex_layout for describing all flexible formats." into nyc-mr1-dev 2016-06-14 19:59:38 +00:00
Pablo Ceballos
c2efc32a0f Header changes for getFrameTimestamps
Change-Id: Iee9e0485544fac435e800ea869a8e4c2ed90bba9
2016-06-04 03:36:40 +00:00
Lajos Molnar
276f382722 add android_flex_layout for describing all flexible formats.
Bug: 22767098
Bug: 24759202
Change-Id: I61e4ca9bd71e8da88a9571ec4effc7165026715b
2016-06-03 00:59:30 +00:00
Dan Stoza
7f7c1c5de6 graphics.h: Add android_hdr_t
Adds android_hdr_t, which specifies different types of high dynamic
range encodings to be used throughout the system.

Bug: 25684127
Change-Id: Ic92bb5dc64494e643b828a8e24af8760e74e2360
2016-04-06 14:52:10 -07:00
Pablo Ceballos
0e28c1fa4a Merge "Rename single buffer mode to shared buffer mode" into nyc-dev 2016-03-28 19:34:27 +00:00