Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6779376imm; Sun, 20 May 2018 10:25:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqCKbuLnN5KiR22zb7IexVOAs4gHk1WymjX8x9Y7L+3oiMcEcAbvbF9U1mA0ANILxGunP2g X-Received: by 2002:a17:902:5610:: with SMTP id h16-v6mr17311541pli.140.1526837155636; Sun, 20 May 2018 10:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526837155; cv=none; d=google.com; s=arc-20160816; b=HI+rVcqUCWwLj3it+OCH6qjh0Daehvlz8G1HEakOVq0+CCMsLUVWBonAwR19Jc9zIz yCEp7modljGs2DKM+I5dsQhrpsXQDhRAiuDThdyc/hhMq/WfOh9HnYVF+9CghZQD4m2w hppZ8m0N6dEvTxzjGEkR32SBc85LjLA4lfoP8CguzEV91XWU3Zzwf/K/oUX2pysGsHHL IbJARzwXHrHwvgEoCrXdomNLTNMtWBifPmJ5lfwb+znTKcMfzLYgJb/IW31CHrktFwmi /GigzkWZN8kUIXiBMQ1DKYsxCQp+XxUJwBe5ZmrXNcNVNuEH4RZHDAZy/HVOZVs+ZO1O c+Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=04IS36QnV9ttUSWVdUDykubNPgrbwWBXk1l1Ckt5tWY=; b=vBa5fmuZTyBRgButCXxaoqWaQFw/agxug+NIKMSKAdx/+MPJjYGwhg041PCIn07Nm5 xJcowpGwVbOTQ4fhSVMbuo4VR53Q1gpDu5R05vkVBJnYxW4Rx6AlhhWDbpMx6mcFt4oa iVSMjtbfHCtVhCal8bgBVMQjlmhucTU/AYt7N0vbvF573K4CT7+7cGZ/4JgDbvVjONzH 7X+CaD921N05AOiaD1OWx5+gQc0rw7L9pVu3nL+ZZ1Us6VfJj5TTYRFCZfD8H2EGeHKT 04+f6uPrVfZHziC/DoxTDZmnfxKDXRiU1Fhacg/mkcMN0/uo7T1TcpYPb1VNEPjB9C39 7Odg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si12467375plh.552.2018.05.20.10.25.41; Sun, 20 May 2018 10:25:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613AbeETRXS (ORCPT + 99 others); Sun, 20 May 2018 13:23:18 -0400 Received: from kozue.soulik.info ([108.61.200.231]:37400 "EHLO kozue.soulik.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751862AbeETRXO (ORCPT ); Sun, 20 May 2018 13:23:14 -0400 X-Greylist: delayed 346 seconds by postgrey-1.27 at vger.kernel.org; Sun, 20 May 2018 13:23:14 EDT Received: from misaki.sumomo.pri (unknown [IPv6:2001:470:b30d:2:ec4:7aff:fe92:7ff4]) by kozue.soulik.info (Postfix) with ESMTPA id 68E29100078; Mon, 21 May 2018 02:17:25 +0900 (JST) From: Randy Li To: dri-devel@lists.freedesktop.org Cc: Randy Li , hjc@rock-chips.com, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, nicolas.dufresne@collabora.com, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie Subject: [PATCH 0/2] Add support for a YUV 10bits pixel format Date: Mon, 21 May 2018 01:17:03 +0800 Message-Id: <20180520171705.29690-1-ayaka@soulik.info> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This pixel format is current used in the rockchip platform. I think any model higher than rk322x would support this pixel format. Xilinx may support it but I am not sure. More than a year ago, I post the patch Add pixel formats for 10/16 bits YUV video to the mail list, it has been update to version 8, but they are not merged yet. So I decide to submit these independent patches, I hope that they would be reviewed and merged in a short time. I have added a patch to Gstreamer and it is merged now. Any future information can be found on the bugzilla of the Gstreamer: https://bugzilla.gnome.org/show_bug.cgi?id=795462 I have verified this patch on the rk3288, with the following command: gst-launch-1.0 filesrc location=conv_3840_2160.nv12_10le40 ! \ rawvideoparse format=81 width=3840 height=2160 ! imagefreeze ! kmssink Also you can find video sample video on above page, but you may need to set the plane offset and stride when you are using the other files. Randy Li (2): drm/fourcc: add a 10bits fully packed variant of NV12 drm/rockchip: Support 10 bits yuv format in vop drivers/gpu/drm/drm_fourcc.c | 1 + drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 27 +++++++++++++++++++++++++-- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 1 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 ++ include/uapi/drm/drm_fourcc.h | 3 +++ 5 files changed, 32 insertions(+), 2 deletions(-) -- 2.14.3