Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2922352ybg; Sat, 6 Jun 2020 05:49:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/6Xn1NARVxrF6N1ohLqmApm1M2xxUm/5kPg+QhWcUBIUSSVNQjm05CgV2GEyb6+HarqWW X-Received: by 2002:a17:906:670d:: with SMTP id a13mr13444151ejp.290.1591447751387; Sat, 06 Jun 2020 05:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591447751; cv=none; d=google.com; s=arc-20160816; b=GDlW1TsFnhIGtMMsoSxeYbjKKKHRf34qXIXe2Fc11iWVKgOsIQtN3GGaMX05VGldjs P1WLqDprnsKVZz44CZ6uVz02B/fCjOIc1PUKIbWjs88X7Rj3z9+B2JapF0H2JCJX3r35 qlOdLEk9/aVAyriB5qk+zEFftWorrCSk3jxH1Itx36/BPDUeTNohUec0G+Espgb4w4/+ w8/eWS0F4W3fjLqyYJoA1AFl+/NJzoGgnQofOVAgW4u7fY295ee7Mj3vyhUYL+jPgBKB lAcHCN/yubDnoR4LSD2zMP/FM1EPPWozRfXXpKEgW+D0PUKgwfMr50m4NR8ahIKIbm0b FZBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aIiB9wvX9JqQxrAQEQ3KjZ3Kb+hdGI9GFJ+OCHkh9og=; b=bn+R+bpt6uNsxv1f2njoConeXeA5dIlI6CoJAgEQpBk/f9xRwVXSBMkf4HtIYlm/iW Uj1yiSnJZM522Uli2iYYxgLbjjKLHoK89goJnShS29Hx6DKbXAtNFSMf6cHb0t95XIXo LPMTTRaWPfq7O6ge0PmzfHR2rVlwvEdtOQk+i2qICSSwvPc3g2pTI909FO5PyNh+bEAc 7dWIzSavTgoPNGtMcsX8/toVmK6xWvqjMDTPRa3MZWt8gV8yd90hoP8KbpIXzC/NGcri 64L1tVJUsm6qXKckDduzQIGNpImO0/q7/sSSVHYXDb5hPVqBE/ownmplQdnOIUKBJ1jJ D8lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=de2zzi92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si5604557ejt.522.2020.06.06.05.48.46; Sat, 06 Jun 2020 05:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=de2zzi92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728838AbgFFMqY (ORCPT + 99 others); Sat, 6 Jun 2020 08:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728828AbgFFMqX (ORCPT ); Sat, 6 Jun 2020 08:46:23 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 077F3C08C5C2 for ; Sat, 6 Jun 2020 05:46:23 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id y13so13130859eju.2 for ; Sat, 06 Jun 2020 05:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aIiB9wvX9JqQxrAQEQ3KjZ3Kb+hdGI9GFJ+OCHkh9og=; b=de2zzi92V7UV3Gre9gbtutLsXA4WJD3hagaFTOKIH8+eS1vYOtUvDoc/XuwBKh4uQP e9NiTKyJQPAG9XeY7Rb95UJiNMz/puFFss53KYpUZquETFzmPrRLWv1gSQShuX7HfVsW zRhdYKruBxFscBPt0xwRigKPtgTOnXuUJcggq8VxCD21zEyrV8VZhcXJh/U8W9eLOLpB 2052nsmQu7wB6O5n20l06RPz/IIVUwfICrBH3J2aN4c/BF6GrVj4xPecrDc6DKNmbJdy UzOKWZD0ylddth/9F83ZyRPCWoSDLqrEpXczRrevS3FSgmPNj+sG5BJUBIbEFCQG1lbs x2Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aIiB9wvX9JqQxrAQEQ3KjZ3Kb+hdGI9GFJ+OCHkh9og=; b=WxGDLQuyBHjTZhWnm5KMCTIhkjmbtgRQIIbJgsDb1FlRcHYNbZmRHRjNkLQcvvuTPo wdnSN1qVVHWMf0BN8CIoH4lymn0cr1Queg4rh7BZmZQAm15USxgnXLCz0lfTt9p/QmlO HytvCLFxHskJWATkhAw4AN+RgSygDlS9nnDgrG9nKU2RMhgJj14hLJfiavJ03b/u4K+u uAHGY0y95DGwUihLSsryV3iAcCpCEY2xvK3BJL5rlQwFynNIhKqnXe37W1UozokQdsEG qrUMpE3ZlY9Ew1RF6dkL1Yzbuc62vW6aDYMTGwhYl8VpOGLybBj5VnzDppdGr23EhvU5 EKWA== X-Gm-Message-State: AOAM533ING5sV+sqavPNoyOCFKth/8O+Ac/R+00PYv0bauHhhZIViA/H 3VeyByQpUGdqnamVKs6vVZ0NmakzwyzimZGXdvMCvQ== X-Received: by 2002:a17:906:d216:: with SMTP id w22mr12635147ejz.420.1591447581711; Sat, 06 Jun 2020 05:46:21 -0700 (PDT) MIME-Version: 1.0 References: <20200604185745.23568-1-jernej.skrabec@siol.net> In-Reply-To: <20200604185745.23568-1-jernej.skrabec@siol.net> From: Ezequiel Garcia Date: Sat, 6 Jun 2020 09:46:10 -0300 Message-ID: Subject: Re: [PATCH 0/3] media: uapi: cedrus: Fix decoding interlaced H264 content To: Jernej Skrabec Cc: Paul Kocialkowski , Maxime Ripard , devel@driverdev.osuosl.org, Jonas Karlman , Greg KH , Linux Kernel Mailing List , Nicolas Dufresne , Chen-Yu Tsai , Hans Verkuil , Mauro Carvalho Chehab , linux-arm-kernel , linux-media Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jernej, On Thu, 4 Jun 2020 at 15:55, Jernej Skrabec wrote: > > Currently H264 interlaced content it's not properly decoded on Cedrus. > There are two reasons for this: > 1. slice parameters control doesn't provide enough information > 2. bug in frame list construction in Cedrus driver > > As described in commit message in patch 1, references stored in > reference lists should tell if reference targets top or bottom field. > However, this information is currently not provided. Patch 1 adds > it in form of flags which are set for each reference. Patch 2 then > uses those flags in Cedrus driver. > > Frame list construction is fixed in patch 3. > > This solution was extensively tested using Kodi on LibreELEC with A64, > H3, H5 and H6 SoCs in slightly different form (flags were transmitted > in MSB bits in index). > So, if I understand correctly the field needs to be passed per-reference, and the current per-DPB entry is not good? If you could point at the userspace code for this, it would be interesting to take a look. > Note: I'm not 100% sure if flags for both, top and bottom fields are > needed. Any input here would be welcome. > Given enum v4l2_field is already part of the uAPI, perhaps it makes sense to just reuse that for the field type? Maybe it's an overkill, but it would make sense to reuse the concepts and types that already exist. We can still add a reserved field to make this new reference type extensive. Thanks, Ezequiel > Please take a look. > > Best regards, > Jernej > > Jernej Skrabec (3): > media: uapi: h264: update reference lists > media: cedrus: h264: Properly configure reference field > media: cedrus: h264: Fix frame list construction > > .../media/v4l/ext-ctrls-codec.rst | 40 ++++++++++++++++++- > .../staging/media/sunxi/cedrus/cedrus_h264.c | 27 +++++++------ > include/media/h264-ctrls.h | 12 +++++- > 3 files changed, 62 insertions(+), 17 deletions(-) > > -- > 2.27.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel