Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757852AbcKCPMI (ORCPT ); Thu, 3 Nov 2016 11:12:08 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:45232 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755269AbcKCPMG (ORCPT ); Thu, 3 Nov 2016 11:12:06 -0400 Subject: Re: [RFC] v4l2 support for thermopile devices To: Attila Kinali , Matt Ranostay References: <767cacf5-5f91-2596-90ef-31358b8e1db9@xs4all.nl> <20161103142134.4a59dfc34c593391086c0508@kinali.ch> Cc: Hans Verkuil , Linux Media Mailing List , Linux Kernel , Jonathan Cameron , Lars-Peter Clausen , Marek Vasut From: Luca Barbato Message-ID: <0e410f78-840b-842a-c9ab-bc0ffc159249@gentoo.org> Date: Thu, 3 Nov 2016 16:11:52 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Thunderbird/50.0 MIME-Version: 1.0 In-Reply-To: <20161103142134.4a59dfc34c593391086c0508@kinali.ch> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1185 Lines: 34 On 03/11/2016 14:21, Attila Kinali wrote: > On Wed, 2 Nov 2016 23:10:41 -0700 > Matt Ranostay wrote: > >> >> So does anyone know of any software that is using V4L2_PIX_FMT_Y12 >> currently? Want to test my driver but seems there isn't anything that >> uses that format (ffmpeg, mplayer, etc). >> >> Raw data seems correct but would like to visualize it :). Suspect I'll >> need to write a test case application though > > I was pretty sure that MPlayer supports 12bit greyscale, but I cannot > find where it was handled. You can of course pass it to the MPlayer > internas as 8bit greyscale, which would be IMGFMT_Y8 or just pass > it on as 16bit which would be IMGFMT_Y16_LE (LE = little endian). > > You can find the internal #defines of the image formats in > libmpcodecs/img_format.h and can use https://www.fourcc.org/yuv.php > to decode their meaning. > > The equivalent for libav would be libavutil/pixfmt.h > > Luca Barbato tells me that adding Y12 support to libav would be easy. > > Attila Kinali > So easy that is [done][1], it still needs to be tested/reviewed/polished though. [1]:https://github.com/lu-zero/libav/commits/gray12 lu