aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGravatar Weiliang Chen <weiliangc@chromium.org>2018-05-22 18:44:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-23 18:50:53 +0000
commitbed9d5ec3e1c83d17325069c739853a856564a83 (patch)
tree13228152dbc650ddfa80fe4add68280cfb639890 /docs
parent4fa5824fa2ae896670517d01c58ed4aef4a97941 (diff)
Add usage of SkYUVAIndex as pre-step to transfer to new YUVA API
The plan foward is to have a new API on SkImage to make from YUVA textures which a combination of array of textures and array of SkYUVAIndex struct indicating which texture and channel to read for each plane. This is a pre-step to let the old API use these ideas. Bug: skia: 7903 Change-Id: I6a696db31a574247eb2abff60f2186a74b640142 Reviewed-on: https://skia-review.googlesource.com/128601 Commit-Queue: Weiliang Chen <weiliangc@chromium.org> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/SkImageInfo_Reference.bmh16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/SkImageInfo_Reference.bmh b/docs/SkImageInfo_Reference.bmh
index c477d4f752..c877f7ff30 100644
--- a/docs/SkImageInfo_Reference.bmh
+++ b/docs/SkImageInfo_Reference.bmh
@@ -1037,6 +1037,22 @@ with studio range of 16 to 235 range for components.
# ------------------------------------------------------------------------------
+#Struct SkYUVAIndex
+
+Describes which image source and which channel to read for each YUVA planes.
+
+#Member int fIndex
+Describes which image source to be reading from. The Alpha plane is optional and could be set to -1.
+##
+
+#Member SkImageSourceChannel fChannel
+Describes which of the RGBA channel to read from.
+##
+
+#Struct SkYUVAIndex ##
+
+# ------------------------------------------------------------------------------
+
#Struct SkImageInfo
Describes pixel dimensions and encoding. Bitmap, Image, PixMap, and Surface