Sundong Ahn | ceaa21b | 2019-03-13 07:53:25 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- Copyright (C) 2019 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <!-- TODO: define a targetNamespace. Note that it will break retrocompatibility --> |
| 17 | <xs:schema version="2.0" |
| 18 | elementFormDefault="qualified" |
| 19 | attributeFormDefault="unqualified" |
| 20 | xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 21 | <xs:element name="MediaSettings"> |
| 22 | <xs:complexType> |
| 23 | <xs:sequence> |
| 24 | <xs:element name="CamcorderProfiles" type="CamcorderProfiles" minOccurs="0" maxOccurs="unbounded"/> |
| 25 | <xs:element name="EncoderOutputFileFormat" minOccurs="0" maxOccurs="unbounded"> |
| 26 | <xs:complexType> |
| 27 | <xs:attribute name="name" type="xs:string"/> |
| 28 | </xs:complexType> |
| 29 | </xs:element> |
| 30 | <xs:element name="VideoEncoderCap" type="VideoEncoderCap" minOccurs="0" maxOccurs="unbounded"/> |
| 31 | <xs:element name="AudioEncoderCap" type="AudioEncoderCap" minOccurs="0" maxOccurs="unbounded"/> |
| 32 | <xs:element name="VideoDecoderCap" type="VideoDecoderCap" minOccurs="0" maxOccurs="unbounded"/> |
| 33 | <xs:element name="AudioDecoderCap" type="AudioDecoderCap" minOccurs="0" maxOccurs="unbounded"/> |
| 34 | </xs:sequence> |
| 35 | </xs:complexType> |
| 36 | </xs:element> |
| 37 | <xs:complexType name="CamcorderProfiles"> |
Sundong Ahn | fcc10c6 | 2019-05-10 15:42:32 +0900 | [diff] [blame] | 38 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 39 | <xs:element name="EncoderProfile" type="EncoderProfile"/> |
| 40 | <xs:element name="ImageEncoding"> |
Sundong Ahn | ceaa21b | 2019-03-13 07:53:25 +0900 | [diff] [blame] | 41 | <xs:complexType> |
| 42 | <xs:attribute name="quality" type="xs:int"/> |
| 43 | </xs:complexType> |
| 44 | </xs:element> |
Sundong Ahn | fcc10c6 | 2019-05-10 15:42:32 +0900 | [diff] [blame] | 45 | <xs:element name="ImageDecoding"> |
Sundong Ahn | 38ac65c | 2019-03-20 14:10:46 +0900 | [diff] [blame] | 46 | <xs:complexType> |
| 47 | <xs:attribute name="memCap" type="xs:int"/> |
| 48 | </xs:complexType> |
| 49 | </xs:element> |
Sundong Ahn | fcc10c6 | 2019-05-10 15:42:32 +0900 | [diff] [blame] | 50 | </xs:choice> |
Sundong Ahn | ceaa21b | 2019-03-13 07:53:25 +0900 | [diff] [blame] | 51 | <xs:attribute name="cameraId" type="xs:int"/> |
| 52 | </xs:complexType> |
| 53 | <xs:complexType name="EncoderProfile"> |
| 54 | <xs:sequence> |
| 55 | <xs:element name="Video" type="Video" minOccurs="0" maxOccurs="unbounded"/> |
| 56 | <xs:element name="Audio" type="Audio" minOccurs="0" maxOccurs="unbounded"/> |
| 57 | </xs:sequence> |
| 58 | <xs:attribute name="quality" type="xs:string"/> |
| 59 | <xs:attribute name="fileFormat" type="xs:string"/> |
| 60 | <xs:attribute name="duration" type="xs:int"/> |
| 61 | </xs:complexType> |
| 62 | <xs:complexType name="Video"> |
| 63 | <xs:attribute name="codec" type="xs:string"/> |
| 64 | <xs:attribute name="bitRate" type="xs:int"/> |
| 65 | <xs:attribute name="width" type="xs:int"/> |
| 66 | <xs:attribute name="height" type="xs:int"/> |
| 67 | <xs:attribute name="frameRate" type="xs:int"/> |
| 68 | </xs:complexType> |
| 69 | <xs:complexType name="Audio"> |
| 70 | <xs:attribute name="codec" type="xs:string"/> |
| 71 | <xs:attribute name="bitRate" type="xs:int"/> |
| 72 | <xs:attribute name="sampleRate" type="xs:int"/> |
| 73 | <xs:attribute name="channels" type="xs:int"/> |
| 74 | </xs:complexType> |
| 75 | <xs:complexType name="VideoEncoderCap"> |
| 76 | <xs:attribute name="name" type="xs:string"/> |
| 77 | <xs:attribute name="enabled" type="xs:boolean"/> |
| 78 | <xs:attribute name="minBitRate" type="xs:int"/> |
| 79 | <xs:attribute name="maxBitRate" type="xs:int"/> |
| 80 | <xs:attribute name="minFrameWidth" type="xs:int"/> |
| 81 | <xs:attribute name="maxFrameWidth" type="xs:int"/> |
| 82 | <xs:attribute name="minFrameHeight" type="xs:int"/> |
| 83 | <xs:attribute name="maxFrameHeight" type="xs:int"/> |
| 84 | <xs:attribute name="minFrameRate" type="xs:int"/> |
| 85 | <xs:attribute name="maxFrameRate" type="xs:int"/> |
| 86 | </xs:complexType> |
| 87 | <xs:complexType name="AudioEncoderCap"> |
| 88 | <xs:attribute name="name" type="xs:string"/> |
| 89 | <xs:attribute name="enabled" type="xs:boolean"/> |
| 90 | <xs:attribute name="minBitRate" type="xs:int"/> |
| 91 | <xs:attribute name="maxBitRate" type="xs:int"/> |
| 92 | <xs:attribute name="minSampleRate" type="xs:int"/> |
| 93 | <xs:attribute name="maxSampleRate" type="xs:int"/> |
| 94 | <xs:attribute name="minChannels" type="xs:int"/> |
| 95 | <xs:attribute name="maxChannels" type="xs:int"/> |
| 96 | </xs:complexType> |
| 97 | <xs:complexType name="VideoDecoderCap"> |
| 98 | <xs:attribute name="name" type="xs:string"/> |
| 99 | <xs:attribute name="enabled" type="xs:boolean"/> |
| 100 | </xs:complexType> |
| 101 | <xs:complexType name="AudioDecoderCap"> |
| 102 | <xs:attribute name="name" type="xs:string"/> |
| 103 | <xs:attribute name="enabled" type="xs:boolean"/> |
| 104 | </xs:complexType> |
| 105 | </xs:schema> |