Re: [Cellar] [PATCH FFV1] Byte alignment is made explicit
Michael Niedermayer <michael@niedermayer.cc> Wed, 25 May 2016 14:07 UTC
Return-Path: <michael@niedermayer.cc>
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 CBC3212DBB5 for <cellar@ietfa.amsl.com>; Wed, 25 May 2016 07:07:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
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 ISAnZHr9I4uJ for <cellar@ietfa.amsl.com>; Wed, 25 May 2016 07:07:38 -0700 (PDT)
Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:c:538::198]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 19A0812D6E4 for <cellar@ietf.org>; Wed, 25 May 2016 07:04:47 -0700 (PDT)
Received: from mfilter17-d.gandi.net (mfilter17-d.gandi.net [217.70.178.145]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 5DE8BFBA35 for <cellar@ietf.org>; Wed, 25 May 2016 16:04:46 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mfilter17-d.gandi.net
Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter17-d.gandi.net (mfilter17-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id DZlAwgDpx1eb for <cellar@ietf.org>; Wed, 25 May 2016 16:04:44 +0200 (CEST)
X-Originating-IP: 213.47.41.20
Received: from localhost (chello213047041020.graz.surfer.at [213.47.41.20]) (Authenticated sender: michael@niedermayer.cc) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 84CC1FBA04 for <cellar@ietf.org>; Wed, 25 May 2016 16:04:44 +0200 (CEST)
Date: Wed, 25 May 2016 16:02:26 +0200
From: Michael Niedermayer <michael@niedermayer.cc>
To: cellar@ietf.org
Message-ID: <20160525140226.GT25812@nb4>
References: <30dd9d6b-34ab-35fc-a88f-4aa5f3bd7df2@mediaarea.net> <20160524233212.GR25812@nb4> <8a079bdb-749b-bb90-7539-ade377d5274f@mediaarea.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="h3lEC1ebzWnCI526"
Content-Disposition: inline
In-Reply-To: <8a079bdb-749b-bb90-7539-ade377d5274f@mediaarea.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cellar/CcCOuWTqWpPMeluraGHs4ZLqp3g>
Subject: Re: [Cellar] [PATCH FFV1] Byte alignment is made explicit
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: Wed, 25 May 2016 14:07:40 -0000
On Wed, May 25, 2016 at 08:41:21AM +0200, Jerome Martinez wrote:
> Le 25/05/2016 à 01:32, Michael Niedermayer a écrit :
> >On Tue, May 24, 2016 at 10:58:28PM +0200, Jerome Martinez wrote:
> >[...]
> >> # General Description
> >>@@ -541,6 +543,9 @@ See [NUT](#references) for more information about elements.
> >> | for( p = 0; p \< primary\_color\_count; p++ ) { | |
> >> | Line( p, y ) | |
> >> | } | |
> >>+| if ( coder\_type ) | |
> >coder_type == 0
>
> Oops, very stupid typo.
> Fixed.
>
> >
> >
> >>+| while ( !byte\_aligned() ) | |
> >>+| padding | u(1) |
> >> | if( i \|\| version \> 2 ) | |
> >> | slice\_size | u(24) |
> >> | if( ec ) { | |
> >>@@ -551,6 +556,9 @@ See [NUT](#references) for more information about elements.
> >> **primary\_color\_count** is defined as 1 + ( chroma_planes ? 2 : 0 ) + ( alpha_plane ? 1 : 0 ).
> >>+**padding** specifies a bit without any significance and used only for byte alignment.
> >>+MUST be 0.
> >ok, i suggest though to change this for the next version of the
> >bitstream
> >its better to write a 1 bit and then pad with 0 to a byte boundary
> >or (0 bit + padding with 1) that way the end of the previous bitstream
> >can be determind with certanity from the last byte
>
> I keep it in mind for when I open discussions about v4+ improvements.
>
> Jérôme
> ffv1.md | 8 ++++++++
> 1 file changed, 8 insertions(+)
> fe47d32273bedfbe86a2d564af484e4687c311b7 0001-PATCH-Byte-alignment-is-made-explicit.patch
> >From ec4b9647c45834102e278d5f573e9180d13b6fde Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Martinez?= <jerome@mediaarea.net>
> Date: Wed, 25 May 2016 08:28:37 +0200
> Subject: [PATCH] [PATCH] Byte alignment is made explicit
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
- [Cellar] [PATCH FFV1] Byte alignment is made expl… Jerome Martinez
- Re: [Cellar] [PATCH FFV1] Byte alignment is made … Michael Niedermayer
- Re: [Cellar] [PATCH FFV1] Byte alignment is made … Jerome Martinez
- Re: [Cellar] [PATCH FFV1] Byte alignment is made … Michael Niedermayer