Re: [Cellar] enumeration lists for EBML Schema

Steve Lhomme <slhomme@matroska.org> Sat, 04 February 2017 13:23 UTC

Return-Path: <slhomme@matroska.org>
X-Original-To: cellar@ietfa.amsl.com
Delivered-To: cellar@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C4E31129645 for <cellar@ietfa.amsl.com>; Sat, 4 Feb 2017 05:23:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.7
X-Spam-Level:
X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=matroska-org.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B5ybhUJCf-wG for <cellar@ietfa.amsl.com>; Sat, 4 Feb 2017 05:23:13 -0800 (PST)
Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A6028129629 for <cellar@ietf.org>; Sat, 4 Feb 2017 05:23:13 -0800 (PST)
Received: by mail-yw0-x233.google.com with SMTP id v200so27281970ywc.3 for <cellar@ietf.org>; Sat, 04 Feb 2017 05:23:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=matroska-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=deW8mGyK3c8CkvIhGqmRALs/5Igs1kyVtFhhsBE6hUc=; b=jfyZ379T9EAWAq1pPaBIOutVSogJwx16fhxWjwl04BHuJKIKIrEHxWN9BRYye+EsYY uVpiaq6qa3PIf0Ime4r8y2kZMqRoz5QWh3i3gOxegICmMipmrnsvVDVbABZo11fHs/LB QUgcLWQWI2buF52LbQSbUs83f/9qJZfxdpCVEx2nShCDaTFMGYNTOwY9YSc0VWjH3iTh dJ7q0wd7UxCaZ64gwIRRUs5Y0ZPRK/S9ONn6Mgy9LyJTImBpW/0EKydV+dUv9N/1EjSn aKByIrqhkhG9H9KSzxJkfWJPSRE5lFRmBu/S2YI4qMWrQB6mNynevdWK/cqTVyjNN1a5 z2PA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=deW8mGyK3c8CkvIhGqmRALs/5Igs1kyVtFhhsBE6hUc=; b=I17CtQSi1htCryDUREiigF0IGbdlVbQPHvlQqEUxwlF7xk1DkGfJjkTGqwJ7a7Oxz7 KWAc+t9f/z7OYZtGTEx/znIOcFxCrlsk/56IRBO8wL7fu1G+ThsEa2tZCGPcdEXgIKN0 mEGBsQ4dtG6QIoj8fFoFKvTGZ6pftMMpnZZ3dXm2kuvm/g/NEGwN8/NvnVCgZGOYQh0i bEadclFFIZRd/wklGuXi3R+kKF0IFDOVNKhjt9/oVBhdjgd8SrJxZsNIT1svp0dQMfcN JMNYcGrMulF9MGhf48pWyb26OUdcoRFho0LByiXQv6M/JQrbjrqQwWinLKq3wgEK8aZw vJ3Q==
X-Gm-Message-State: AIkVDXKhg4kqn9CwIVhQNSPW7BdDPaBRuSCY34+habWFnSd6mgHPCx/9GoodkmW8bYvFXY7yGZW2HU6A9XlpkQ==
X-Received: by 10.13.241.199 with SMTP id a190mr1217360ywf.311.1486214592927; Sat, 04 Feb 2017 05:23:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.83.46.203 with HTTP; Sat, 4 Feb 2017 05:23:12 -0800 (PST)
In-Reply-To: <8A89A5B6-BBDE-40F4-92C9-68FCF2881B21@dericed.com>
References: <8A89A5B6-BBDE-40F4-92C9-68FCF2881B21@dericed.com>
From: Steve Lhomme <slhomme@matroska.org>
Date: Sat, 04 Feb 2017 14:23:12 +0100
Message-ID: <CAOXsMFKVhN+cLFvj-J18JBZDvP-3HkKiKSsHhMqUpXBUO+mU-w@mail.gmail.com>
To: Dave Rice <dave@dericed.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cellar/_86-uYqnhnzc6wX_C-H56NNhPbM>
Cc: Codec Encoding for LossLess Archiving and Realtime transmission <cellar@ietf.org>
Subject: Re: [Cellar] enumeration lists for EBML Schema
X-BeenThere: cellar@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Codec Encoding for LossLess Archiving and Realtime transmission <cellar.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cellar>, <mailto:cellar-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cellar/>
List-Post: <mailto:cellar@ietf.org>
List-Help: <mailto:cellar-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cellar>, <mailto:cellar-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Feb 2017 13:23:15 -0000

Both LGTM. Reto pointed a possible typo but other than that it's fine.

2017-02-02 1:01 GMT+01:00 Dave Rice <dave@dericed.com>:
> Hi cellar,
>
> These pull requests relate to an issue Steve opened at https://github.com/Matroska-Org/ebml-specification/issues/114 for defining an enumeration list for EBML Elements.
>
> This pull request includes an update to the EBMLSchema.xsd to allow <enum> elements along with documentation in the EBML spec, https://github.com/Matroska-Org/ebml-specification/pull/130. And this updates the EBML Schema for Matroska accordingly: https://github.com/Matroska-Org/matroska-specification/pull/92. This is inspired by the restriction element of XML Schemas (http://www.w3schools.com/xml/schema_facets.asp).
>
> So:
>
> <element name="TrackType" path="1*1(\Segment\Tracks\TrackEntry\TrackType)" id="0x83" type="uinteger" minOccurs="1" maxOccurs="1" minver="1" range="1-254”>
>   <documentation lang="en">A set of track types coded on 8 bits (1: video, 2: audio, 3: complex, 0x10: logo, 0x11: subtitle, 0x12: buttons, 0x20: control).</documentation>
> </element>
>
> becomes:
>
> <element name="TrackType" path="1*1(\Segment\Tracks\TrackEntry\TrackType)" id="0x83" type="uinteger" minOccurs="1" maxOccurs="1" minver="1" range="1-254">
>   <documentation lang="en">A set of track types coded on 8 bits.</documentation>
>   <restriction>
>     <enum value="1" label="video" />
>     <enum value="2" label="audio" />
>     <enum value="3" label="complex" />
>     <enum value="16" label="logo" />
>     <enum value="17" label="subtitle" />
>     <enum value="18" label="buttons" />
>     <enum value="32" label="control" />
>   </restriction>
> </element>
>
> This impacts the definition of the following Elements:
>
> ChapterTranslateCodec
> TrackType
> TrackTranslateCodec
> FlagInterlaced
> FieldOrder
> StereoMode
> OldStereoMode
> DisplayUnit
> AspectRatioType
> MatrixCoefficients
> ChromaSitingHorz
> ChromaSitingVert
> Range
> TransferCharacteristics
> Primaries
> ProjectionType
> TrackPlaneType
> ChapProcessTime
>
> Comments welcome,
> Dave
> _______________________________________________
> Cellar mailing list
> Cellar@ietf.org
> https://www.ietf.org/mailman/listinfo/cellar



-- 
Steve Lhomme
Matroska association Chairman