Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1662708ioo; Sun, 22 May 2022 23:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRLaWijrgmELJP+MeaiGkoCYLtYfJx7bQZcEakY4iLoaJZv/Sbb6MzCIT3nQZlI/5SWS3A X-Received: by 2002:a63:e348:0:b0:3db:7729:c0fe with SMTP id o8-20020a63e348000000b003db7729c0femr19065139pgj.482.1653287419303; Sun, 22 May 2022 23:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653287419; cv=none; d=google.com; s=arc-20160816; b=unBQ41g5YX1QSgT07uN8bGVPCyGqRVk2aWpKfpB6ehglgKr3LxuIPNCLLM/FXEmqn9 E9aljzAQasxsN7xOmhasg81esfDFNXLspSehoMzAJ2SqHsqDLq5B6986AgS4LWw4XZDo Oa9T7GAFoAYW1J1VYlK2UI+HLZxIUPx/vw8i/QuS08EmBajrbqkRTi4kbMmtzTRH/GNl JmwvxLg7E8kYF/aaJ7GdbX+0clZNRqLvvyUJAi7Ulnidjs4RzsKVVDn3PIkNtyRezpIz uwmbxbqlGWnIcTcQ5mfla2tTg9utLyA4SeNdOXrReCmwZXlc2q7PxPeJGOKtyhSLEAAh Y7CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7JqWllCs3vhH9VsQsjnqrm5TtmnBoPN+MvjRnZp0YAA=; b=QlBxeHSELPnZi/hw2TT4aDFla76URQJkK/jdOfvcRPk/RYVVFP+RNY5qVnlBywNXiP 2XOffekpz8iqF9qbPra/iBc++DJDG5DFml6dNyUIPlhH7qgeKieDIy44UEvfB0foFb8M qqySAv8AJ0ZvxhhlN5e0mXaDAnExiTuzlOFX35bQfZPfth7NQiHHN8VXjED8bhpnf7Yb VfagKELjnomyOH42ZVHleDgoJckt0WJwAfhx9gH70OfzCOozDx0K2gocK4tRtfTG8EVT pAKMInKhPzgfD1jVbBK3Y0COup9vRuqdgFc8O9t0DLh7N5BgBp56DebQMLI3hNKLc1hK uIfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G6Ubz6L6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f28-20020a631f1c000000b003c283b9e984si9261729pgf.106.2022.05.22.23.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G6Ubz6L6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D9CB22F38B; Sun, 22 May 2022 23:07:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233856AbiEWB6D (ORCPT + 99 others); Sun, 22 May 2022 21:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233814AbiEWB6B (ORCPT ); Sun, 22 May 2022 21:58:01 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C2BA35878; Sun, 22 May 2022 18:57:59 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id ck4so21463907ejb.8; Sun, 22 May 2022 18:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7JqWllCs3vhH9VsQsjnqrm5TtmnBoPN+MvjRnZp0YAA=; b=G6Ubz6L6v5jT0AkYXXJDrCZICkRZdfUi8eKRmLQXCihmG9XmT2X1gTnhT8jpxSVRbE 1/8Idzb5woiYV9wxX3njifVD1zGpQcXtpsjAPuN9gB8PMqw/1dYt0zwtKH1Gqe3fb98I IhVMRSSpbthGHq0kZ/5FQxIzS78/nykd7/XTfJylj2eCwcrj9J2O0+mMYcCZUJhHGfUJ 8pqC+Zvwl0TZL1OjteG3j/n1lpI2BqHuoNVGP9tB7oGqOZuokKLcC5MVzqNJnloToJd8 SPObcaySQ++vrO+kemGbMXG7y3G71/sEP9ocAh1QeqcNk8Qurs+U91F8kcFDqE9PwLW4 Uyvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7JqWllCs3vhH9VsQsjnqrm5TtmnBoPN+MvjRnZp0YAA=; b=Do9jvxNlkj6esRGYP1lG+GVfMzNNAMcRC8QBpt4AsTVeNrj4xie2NlkuizKYpxV3wj zrzvD/jkBJDVXWcFPoMqFejW5o0bUN2BjcdMeS30iPZkhcM5gPDJtmkity8urJBztPGq YNKrO4DzkeOGWeYD+lqcG/baxFMSvY0jpbZCQ5dFyjeU1f0c3k34kFFAZ63nbzir2iNm M17WpicfzGh2SYRT+bwsFSRjUB7uIQoSVejSg/S9xQ1n7KnO040xPtdAQSjmZqpZryPy tKsMhGpcL00Lpc+vyTvlMSVht6GmUljCXUDo6vWEuwFbdm6HGxrko41C4kRaN+Fet5J+ G0yQ== X-Gm-Message-State: AOAM531ouchmeT2lPu1VN5hVdzDsT5W0c1XI5zdaQ9w1A4FzuACBJ5P3 st31Y7bQSbmRUKOaMSeoI1x1BpIb/wFeKLQXoNo4vSXBQaNciA== X-Received: by 2002:a17:907:c290:b0:6fe:c2b8:bb6b with SMTP id tk16-20020a170907c29000b006fec2b8bb6bmr6489890ejc.222.1653271077701; Sun, 22 May 2022 18:57:57 -0700 (PDT) MIME-Version: 1.0 References: <20220520024744.25655-1-milkfafa@gmail.com> <20220520024744.25655-5-milkfafa@gmail.com> <5056559927df64d8cac8831a13db0c266e5fff65.camel@ndufresne.ca> In-Reply-To: <5056559927df64d8cac8831a13db0c266e5fff65.camel@ndufresne.ca> From: Kun-Fa Lin Date: Mon, 23 May 2022 09:57:50 +0800 Message-ID: Subject: Re: [PATCH v3 4/5] media: Add HEXTILE compressed format To: Nicolas Dufresne Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, CS20 KWLiu , Marvin Lin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, Thanks for your review! Regards, Marvin Nicolas Dufresne =E6=96=BC 2022=E5=B9=B45=E6=9C=8821= =E6=97=A5 =E9=80=B1=E5=85=AD =E4=B8=8A=E5=8D=882:43=E5=AF=AB=E9=81=93=EF=BC= =9A > > Le vendredi 20 mai 2022 =C3=A0 10:47 +0800, Marvin Lin a =C3=A9crit : > > Add HEXTILE compressed format. This format is defined in Remote Framebu= ffer > > Protocol (RFC 6143) and is used by Encoding Compression Engine present = on > > Nuvoton NPCM SoCs. > > Ah, ancient RFB compression. I also found that there is encoder/decoders = part of > FFMPEG and GStreamer VMNC (VMWare CODECs) and also a decoder in GStreamer= RFB > plugin. It is though an obsolete format for all of these technology, than= ks for > identifying clearly. > > Reviewed-by: Nicolas Dufresne > > > > > Signed-off-by: Marvin Lin > > --- > > Documentation/userspace-api/media/v4l/pixfmt-reserved.rst | 7 +++++++ > > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > > include/uapi/linux/videodev2.h | 1 + > > 3 files changed, 9 insertions(+) > > > > diff --git a/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst = b/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst > > index cabfa34b7db5..bad2b9a2f16e 100644 > > --- a/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst > > +++ b/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst > > @@ -239,6 +239,13 @@ please make a proposal on the linux-media mailing = list. > > It remains an opaque intermediate format and the MDP hardware mus= t be > > used to convert ``V4L2_PIX_FMT_MT21C`` to ``V4L2_PIX_FMT_NV12M``, > > ``V4L2_PIX_FMT_YUV420M`` or ``V4L2_PIX_FMT_YVU420``. > > + * .. _V4L2-PIX-FMT-HEXTILE: > > + > > + - ``V4L2_PIX_FMT_HEXTILE`` > > + - 'HXTL' > > + - Compressed format used by Nuvoton NPCM video driver. This form= at is > > + defined in Remote Framebuffer Protocol (RFC 6143, chapter 7.7.= 4 Hextile > > + Encoding). > > .. raw:: latex > > > > \normalsize > > diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-= core/v4l2-ioctl.c > > index 96e307fe3aab..9365519d65bb 100644 > > --- a/drivers/media/v4l2-core/v4l2-ioctl.c > > +++ b/drivers/media/v4l2-core/v4l2-ioctl.c > > @@ -1441,6 +1441,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc = *fmt) > > case V4L2_PIX_FMT_SE401: descr =3D "GSPCA SE401"; = break; > > case V4L2_PIX_FMT_S5C_UYVY_JPG: descr =3D "S5C73MX interl= eaved UYVY/JPEG"; break; > > case V4L2_PIX_FMT_MT21C: descr =3D "Mediatek Compr= essed Format"; break; > > + case V4L2_PIX_FMT_HEXTILE: descr =3D "Hextile Compre= ssed Format"; break; > > default: > > if (fmt->description[0]) > > return; > > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videod= ev2.h > > index 3768a0a80830..1c7af015b43b 100644 > > --- a/include/uapi/linux/videodev2.h > > +++ b/include/uapi/linux/videodev2.h > > @@ -746,6 +746,7 @@ struct v4l2_pix_format { > > #define V4L2_PIX_FMT_INZI v4l2_fourcc('I', 'N', 'Z', 'I') /* Intel= Planar Greyscale 10-bit and Depth 16-bit */ > > #define V4L2_PIX_FMT_CNF4 v4l2_fourcc('C', 'N', 'F', '4') /* Intel= 4-bit packed depth confidence information */ > > #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4') /* BTTV = 8-bit dithered RGB */ > > +#define V4L2_PIX_FMT_HEXTILE v4l2_fourcc('H', 'X', 'T', 'L') /* Hexti= le compression */ > > > > /* 10bit raw bayer packed, 32 bytes for every 25 pixels, last LSB 6 bi= ts unused */ > > #define V4L2_PIX_FMT_IPU3_SBGGR10 v4l2_fourcc('i', 'p', '3', 'b') /= * IPU3 packed 10-bit BGGR bayer */ >