Commit graph

23 commits

Author SHA1 Message Date
Sally Qi
af7be76168 Add COLOR_MODE_DISPLAY_BT2020 to graphics header.
Bug: 256551001
Test: build and flash; hidl-gen -Lexport-header -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.2.h
android.hardware.graphics.common@1.2

Change-Id: I989d1171c98f477f174ad092b74d455a062c9bad
2022-12-01 22:25:40 -08:00
Jason Macnak
7cca8a0dee Relax requirements on android_ycbcr to allow P010
The existing comments on android_ycbcr only allowed for formats
with 8 bit channels. The P010 format has 10 bits of data packed
into 16 bit channels with 6 unused bits.

Bug: b/216638710
Test: none, just comment change
Change-Id: I57d5825a87f0c3dbf4a47b3f88ac1f9e65ad97fe
2022-02-17 10:54:15 -08:00
Shuzhen Wang
e944c86092 libsystem: Add JPEG_APP_SEGMENTS and HEIF dataspace
hidl-gen -Lexport-header
    -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.2.h
    android.hardware.graphics.common@1.2

Test: testHeic CTS test
Bug: 79465976
Change-Id: Ic2785f082b95ab4088685d6b17d846a4f93160b2
2019-01-28 18:21:40 -08:00
Emilian Peev
43c59ca7e2 Add graphics-base-v1.2 autogen headers
Graphics headers generated by:
hidl-gen -Lexport-header -o
$ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.2.h
android.hardware.graphics.common@1.2

Bug: 109735087
Test: Android builds successfully
Change-Id: Ie847fdd808ed0daaea917d705a8dc51c6633142a
2019-01-27 20:08:27 -08:00
Kevin DuBois
23a8310e7a libcore: add definitions from graphics.commons@1.2
File was auto-generated by runnnig update-base-files.sh

Test: header addition, built image.
Fixes: 122943743

Roll-forward of build-breaking topic commit. No changes were
needed in this patch. see bug 123404649 for breakage details.
This reverts commit 97f8353776.

Change-Id: I07abe1d49a5b55f7e0bf5e032e48fb309b2a23bd
2019-01-25 10:59:18 -08:00
Kevin DuBois
97f8353776 Revert "libcore: add definitions from graphics.commons@1.2"
This reverts commit e5bfa7ff24.

Reason for revert: broke build

Change-Id: I61cec3bb6c392bbaf73f0dc31d73df79683d77a0
2019-01-25 17:06:14 +00:00
Kevin DuBois
e5bfa7ff24 libcore: add definitions from graphics.commons@1.2
File was auto-generated by runnnig update-base-files.sh

Test: header addition, built image.
Fixes: 122943743
Change-Id: Ic94ae8f6c42d50ae154659b8922fcebf82437eed
2019-01-22 10:41:29 -08:00
Elliott Hughes
643268f325 Move system/core/ off NO_ERROR.
It causes trouble for Windows, and OK already exists.

Bug: N/A
Test: builds
Change-Id: Ida22fd658b0ebb259c710ba39049b07c9e495d9c
2018-10-08 11:15:52 -07:00
Yin-Chia Yeh
c5c84baaf8 Camera: add DISABLE error code
Test: CTS CameraEvictionTest + IdleUidTest
Bug: 77486868
Change-Id: I1411d6667776963435ce25bd643a33c41d224921
2018-05-31 12:14:14 -07:00
Chia-I Wu
7d940ae4af graphics: add render intents and new color modes
Adds

  HAL_COLOR_MODE_BT2020 = 10,
  HAL_COLOR_MODE_BT2100_PQ = 11,
  HAL_COLOR_MODE_BT2100_HLG = 12,
  HAL_DATASPACE_BT2020_ITU_HLG = 302383104,
  HAL_DATASPACE_BT2020_HLG = 168165376,
  HAL_RENDER_INTENT_COLORIMETRIC = 0,
  HAL_RENDER_INTENT_ENHANCE = 1,
  HAL_RENDER_INTENT_TONE_MAP_COLORIMETRIC = 2,
  HAL_RENDER_INTENT_TONE_MAP_ENHANCE = 3,

by running update-base-files.sh.

Bug: 73824924
Test: manual
Change-Id: Ifde249074abf2228ebe016a38b5bcea8bccb5e9d
2018-03-28 10:23:09 -07:00
Chia-I Wu
9bae89be3a graphics: include graphics-sw.h from graphics.h
This reverts commit 94f641c33 in effect.  The way for framework to
avoid including graphics-sw.h is

 - include graphics-base.h directly
 - do not include HAL headers

Bug: 70526789
Test: builds
Change-Id: I3cd0fbdce2605a59c24f83c680bede95693abfcf
2018-03-13 10:13:51 -07:00
Chia-I Wu
94f641c333 graphics: move some flex pixel formats to graphcis-sw.h
Some of the flex pixel formats are software-only.  Move them to
graphics-sw.h to identify files that use them.

Bug: 70526789
Test: builds
Change-Id: I42757af810028f53bb6389c637a00c493041a4fb
2018-03-09 12:26:45 -08:00
Courtney Goeltzenleuchter
e1128319c4 Add Dataspace and PixelFormats to support HDR
Bug: 63710530
Test: make
Change-Id: I40c668978972598d057e4302f27ebc65f59cf895
2018-01-23 16:15:27 -08:00
Craig Donner
efe9fc5bf7 Create versioned graphics-base-* files.
Rather than constantly updating the one file as HAL change,
have a header per version. For now, the old file just includes
the new ones, until all the usage of graphics-base.h can be
cleaned up.

Bug: 66900669
Test: build
Change-Id: I396ce24f8e62b52c129a2b276698e4f00b1993f7
2018-01-19 10:16:22 -08:00
Courtney Goeltzenleuchter
b6eedba8a1 Add CTA 861.3 info to HDR struct
Test: make
Bug: 63710530
Exempt-From-Owner-Approval: this adds a standard-defined struct
Change-Id: I51aba346f407c1c15d5af2b6fd855db6d3563735
2018-01-04 11:35:58 -08:00
Jeff Tinker
17ffcc4280 Define priority for video threads
Video threads have soft realtime requirements that
must be met in order to maintain reliable frame delivery
even when the system is under high load. This CL
defines a new priority that can be used by video
threads, enabling them to be scheduled appropriately
relative to other system threads.

Change-Id: Idd57207e30309dfdff24389db0acf107532f9e5a
related-to-bug:63898080
2017-09-07 16:14:07 -07:00
Mathias Agopian
324a309cfe fix circular dependency libnativewindow <-> libui
Bug: 37647680, 37648355
Test: compile, manual
Change-Id: Ie0d20e6fe7d64641a2b84f536ec17f3e7971f559
2017-05-09 15:15:50 -07:00
Jiwen Cai
6f273c95de Merge "Add NATIVE_WINDOW_CONSUMER_IS_PROTECTED enum" into oc-dev am: 6399d45725
am: 9815189c9d

Change-Id: Ie349a765da66ae6b140a17d9062c180a52e77cb3
2017-05-02 16:25:11 +00:00
Jiwen 'Steve' Cai
faa4c188d0 Add NATIVE_WINDOW_CONSUMER_IS_PROTECTED enum
The enum is being introduced into libnativewindow, but back ported here
since window-deprecated.h is still being depended by other system
componenets.

Bug: 35726763
Test: videoplayer-nodrm-protected.apk and videoplayer-drm-protected.apk
both works.

Change-Id: I9298ff9b1ddd7f868e59db41e1a84e2cdd3d02b5
2017-05-01 16:41:26 -07:00
Steven Moreland
5c75fd4b4f Merge "libutils: export system_headers" into oc-dev am: e003513ccf
am: 220e6d824c

Change-Id: Ide0ddea7fc3bf2b1a0c46df7dd0d0704c36fc237
2017-04-14 02:04:43 +00:00
Steven Moreland
b084bc3545 libutils: export system_headers
vendor + vendor_available modules built with BOARD_VNDK_VERSION :=
current aren't allowed to use global headers. Since libutils uses
system headers itself, it should export them as well.

Also added some items into windows-deprecated.h. This file is supposed
to be in sync with the libnativewindow variant until all dependencies on
it can be fixed. However, it is missing some updates. This matters when
including libsystem_headers adds system headers before libnativewindow
headers in the lookup paths.

Bug: 33241851
Test: building with BOARD_VNDK_VERSION := current produces many fewer
errors.

Change-Id: I950821f1dae3ddc110db50869247913d5b1aa638
2017-04-13 12:05:16 -07:00
Vijay Venkatraman
88bff3613e Moved all files from include/system to libsystem/include/system
Bug: 33241851
Test: No changes for modules not using VNDK. For compiling with VNDK,
add libsystem_headers as dependency for using these headers

Merged-In: I2acce0ab771e10ac83461c2f931e2c19e922089e
Change-Id: I2acce0ab771e10ac83461c2f931e2c19e922089e
2017-04-11 16:13:42 +00:00
Vijay Venkatraman
49abdb96d2 Moved all files from include/system to libsystem/include/system
Bug: 33241851
Test: No changes for modules not using VNDK. For compiling with VNDK,
add libsystem_headers as dependency for using these headers

Change-Id: I2acce0ab771e10ac83461c2f931e2c19e922089e
2017-04-05 16:45:44 -07:00