diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-03-13 17:53:01 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-13 17:53:01 +0000 |
commit | 5ee05596015a14d01212ad73c085f0558bb3c863 (patch) | |
tree | 3a812c7dbd0c90142387c73a93ea00342f3dd623 | |
parent | 9e2430163f3d87f97d3bf3ae15decb2b7195e067 (diff) | |
parent | 4c87ad76277114d019bd6c605e788659e02a9161 (diff) | |
download | av-5ee05596015a14d01212ad73c085f0558bb3c863.tar.gz |
Merge "Add media_codecs"android-q-preview-1android-o-mr1-iot-release-1.0.10
-rw-r--r-- | media/libstagefright/xmlparser/Android.bp | 6 | ||||
-rw-r--r-- | media/libstagefright/xmlparser/api/current.txt | 108 | ||||
-rw-r--r-- | media/libstagefright/xmlparser/api/last_current.txt | 0 | ||||
-rw-r--r-- | media/libstagefright/xmlparser/api/last_removed.txt | 0 | ||||
-rw-r--r-- | media/libstagefright/xmlparser/api/removed.txt | 1 | ||||
-rw-r--r-- | media/libstagefright/xmlparser/media_codecs.xsd | 89 |
6 files changed, 204 insertions, 0 deletions
diff --git a/media/libstagefright/xmlparser/Android.bp b/media/libstagefright/xmlparser/Android.bp index edd8fbc22d..ed26e58abc 100644 --- a/media/libstagefright/xmlparser/Android.bp +++ b/media/libstagefright/xmlparser/Android.bp @@ -41,3 +41,9 @@ cc_library_shared { } +xsd_config { + name: "media_codecs", + srcs: ["media_codecs.xsd"], + package_name: "media.codecs", +} + diff --git a/media/libstagefright/xmlparser/api/current.txt b/media/libstagefright/xmlparser/api/current.txt new file mode 100644 index 0000000000..f5245c1c3f --- /dev/null +++ b/media/libstagefright/xmlparser/api/current.txt @@ -0,0 +1,108 @@ +// Signature format: 2.0 +package media.codecs { + + public class Decoders { + ctor public Decoders(); + method public java.util.List<media.codecs.MediaCodec> getMediaCodec(); + } + + public class Encoders { + ctor public Encoders(); + method public java.util.List<media.codecs.MediaCodec> getMediaCodec(); + } + + public class Feature { + ctor public Feature(); + method public String getName(); + method public String getOptional(); + method public String getRequired(); + method public String getValue(); + method public void setName(String); + method public void setOptional(String); + method public void setRequired(String); + method public void setValue(String); + } + + public class Limit { + ctor public Limit(); + method public String getIn(); + method public String getMax(); + method public String getMin(); + method public String getName(); + method public String getRange(); + method public String getRanges(); + method public String getScale(); + method public String getValue(); + method public String get_default(); + method public void setIn(String); + method public void setMax(String); + method public void setMin(String); + method public void setName(String); + method public void setRange(String); + method public void setRanges(String); + method public void setScale(String); + method public void setValue(String); + method public void set_default(String); + } + + public class MediaCodec { + ctor public MediaCodec(); + method public java.util.List<media.codecs.Feature> getFeature(); + method public java.util.List<media.codecs.Limit> getLimit(); + method public String getName(); + method public java.util.List<media.codecs.Quirk> getQuirk(); + method public java.util.List<media.codecs.Type> getType(); + method public String getType(); + method public String getUpdate(); + method public void setName(String); + method public void setType(String); + method public void setUpdate(String); + } + + public class MediaCodecs { + ctor public MediaCodecs(); + method public java.util.List<media.codecs.Decoders> getDecoders(); + method public java.util.List<media.codecs.Encoders> getEncoders(); + method public java.util.List<media.codecs.Settings> getSettings(); + } + + public class Quirk { + ctor public Quirk(); + method public String getName(); + method public void setName(String); + } + + public class Setting { + ctor public Setting(); + method public String getName(); + method public String getUpdate(); + method public String getValue(); + method public void setName(String); + method public void setUpdate(String); + method public void setValue(String); + } + + public class Settings { + ctor public Settings(); + method public java.util.List<media.codecs.Setting> getSetting(); + } + + public class Type { + ctor public Type(); + method public java.util.List<media.codecs.Feature> getFeature(); + method public java.util.List<media.codecs.Limit> getLimit(); + method public String getName(); + method public String getUpdate(); + method public void setName(String); + method public void setUpdate(String); + } + + public class XmlParser { + ctor public XmlParser(); + method public static media.codecs.MediaCodecs read(java.io.InputStream) throws javax.xml.datatype.DatatypeConfigurationException, java.io.IOException, org.xmlpull.v1.XmlPullParserException; + method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; + method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; + } + +} + diff --git a/media/libstagefright/xmlparser/api/last_current.txt b/media/libstagefright/xmlparser/api/last_current.txt new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/media/libstagefright/xmlparser/api/last_current.txt diff --git a/media/libstagefright/xmlparser/api/last_removed.txt b/media/libstagefright/xmlparser/api/last_removed.txt new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/media/libstagefright/xmlparser/api/last_removed.txt diff --git a/media/libstagefright/xmlparser/api/removed.txt b/media/libstagefright/xmlparser/api/removed.txt new file mode 100644 index 0000000000..d802177e24 --- /dev/null +++ b/media/libstagefright/xmlparser/api/removed.txt @@ -0,0 +1 @@ +// Signature format: 2.0 diff --git a/media/libstagefright/xmlparser/media_codecs.xsd b/media/libstagefright/xmlparser/media_codecs.xsd new file mode 100644 index 0000000000..4faba87775 --- /dev/null +++ b/media/libstagefright/xmlparser/media_codecs.xsd @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2019 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- TODO: define a targetNamespace. Note that it will break retrocompatibility --> +<xs:schema version="2.0" + elementFormDefault="qualified" + attributeFormDefault="unqualified" + xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:element name="MediaCodecs"> + <xs:complexType> + <xs:sequence> + <xs:element name="Decoders" type="Decoders" maxOccurs="unbounded"/> + <xs:element name="Encoders" type="Encoders" maxOccurs="unbounded"/> + <xs:element name="Settings" type="Settings" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:complexType name="Decoders"> + <xs:sequence> + <xs:element name="MediaCodec" type="MediaCodec" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="Encoders"> + <xs:sequence> + <xs:element name="MediaCodec" type="MediaCodec" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="Settings"> + <xs:sequence> + <xs:element name="Setting" type="Setting" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="MediaCodec"> + <xs:sequence> + <xs:element name="Quirk" type="Quirk" maxOccurs="unbounded"/> + <xs:element name="Type" type="Type" maxOccurs="unbounded"/> + <xs:element name="Limit" type="Limit" maxOccurs="unbounded"/> + <xs:element name="Feature" type="Feature" maxOccurs="unbounded"/> + </xs:sequence> + <xs:attribute name="name" type="xs:string"/> + <xs:attribute name="type" type="xs:string"/> + <xs:attribute name="update" type="xs:string"/> + </xs:complexType> + <xs:complexType name="Quirk"> + <xs:attribute name="name" type="xs:string"/> + </xs:complexType> + <xs:complexType name="Type"> + <xs:sequence> + <xs:element name="Limit" type="Limit" maxOccurs="unbounded"/> + <xs:element name="Feature" type="Feature" maxOccurs="unbounded"/> + </xs:sequence> + <xs:attribute name="name" type="xs:string"/> + <xs:attribute name="update" type="xs:string"/> + </xs:complexType> + <xs:complexType name="Limit"> + <xs:attribute name="name" type="xs:string"/> + <xs:attribute name="default" type="xs:string"/> + <xs:attribute name="in" type="xs:string"/> + <xs:attribute name="max" type="xs:string"/> + <xs:attribute name="min" type="xs:string"/> + <xs:attribute name="range" type="xs:string"/> + <xs:attribute name="ranges" type="xs:string"/> + <xs:attribute name="scale" type="xs:string"/> + <xs:attribute name="value" type="xs:string"/> + </xs:complexType> + <xs:complexType name="Feature"> + <xs:attribute name="name" type="xs:string"/> + <xs:attribute name="optional" type="xs:string"/> + <xs:attribute name="required" type="xs:string"/> + <xs:attribute name="value" type="xs:string"/> + </xs:complexType> + <xs:complexType name="Setting"> + <xs:attribute name="name" type="xs:string"/> + <xs:attribute name="value" type="xs:string"/> + <xs:attribute name="update" type="xs:string"/> + </xs:complexType> +</xs:schema> |