{"id":15995,"url":"https://patchwork.libcamera.org/api/covers/15995/?format=json","web_url":"https://patchwork.libcamera.org/cover/15995/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220520190106.425386-1-ecurtin@redhat.com>","date":"2022-05-20T19:01:02","name":"[libcamera-devel,v9,0/4] Add SDL Sink","submitter":{"id":101,"url":"https://patchwork.libcamera.org/api/people/101/?format=json","name":"Eric Curtin","email":"ecurtin@redhat.com"},"mbox":"https://patchwork.libcamera.org/cover/15995/mbox/","series":[{"id":3132,"url":"https://patchwork.libcamera.org/api/series/3132/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3132","date":"2022-05-20T19:01:02","name":"Add SDL Sink","version":9,"mbox":"https://patchwork.libcamera.org/series/3132/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15995/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id D48FEC0F2A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 20 May 2022 19:02:03 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 329F061FB9;\n\tFri, 20 May 2022 21:02:03 +0200 (CEST)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.129.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 4027B60440\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 20 May 2022 21:02:01 +0200 (CEST)","from mail-wm1-f71.google.com (mail-wm1-f71.google.com\n\t[209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\tus-mta-581-7MqM8C10NGK3h7pVvPz83w-1; Fri, 20 May 2022 15:01:58 -0400","by mail-wm1-f71.google.com with SMTP id\n\th206-20020a1c21d7000000b003972daa86deso964043wmh.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 20 May 2022 12:01:58 -0700 (PDT)","from p1.Home ([2001:8a0:6724:4500:a69c:e66f:828e:b340])\n\tby smtp.gmail.com with ESMTPSA id\n\tu30-20020adfa19e000000b0020d10a249eesm3337016wru.13.2022.05.20.12.01.55\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 20 May 2022 12:01:56 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1653073323;\n\tbh=lS83kmizViKvsLB77YecUcn9ihA1OXNKTZYFYkmXMTA=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=pbT6VfypyKu2iHVlMxmZ3Qf3CXJIYRJPo1Vsy/xHVNH92kg3ANYE4CRpo0uqpkAse\n\tLfaV0ceL9YiVOzvnMpjOVZQ9m+Eqhw+PN6IALa2rLMpJGQbXzQYqBcc6BTxojwfT0H\n\tIyf5DRv/tiVUZOA7VQOJFsvwxeaAsZ2XU5CdWXQg13p+FOa1zg1W8E9DkT+GHATw3r\n\tLb7k/1oKE/bpB8JP2i+EjDuQL4SjmBsWm/9OAk6p54m2PwpfFwNIa9GZb43HaZKmJR\n\t86aCgrudyRIuYazqKZ+NbNsN56yAPlq3s4761IQh0lRhfOJRA1yuWMdn544xLByqoK\n\tmlM0fAZIx1ojg==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1653073319;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding;\n\tbh=QX787Ag6j1JSjJ0rdECyBq0C4zahV+cH9GWGupn+f80=;\n\tb=gwwhjenG7pDpFm95mtVyIA59utGIY/aMbJC88JuYr0Nei0GYAwdGUM7n7zjahg3423d0Nk\n\tUYwC1Vf4GfcKBDR+dX0Yz8vmxkOm6jQCPJO2x/Oz2iPwYBL/j9Z+9LrO0lsWGvC4yJjXuk\n\tap2pV286tVadugWFhXbZH78i6NoUSeI="],"Authentication-Results":["lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"gwwhjenG\"; \n\tdkim-atps=neutral","relay.mimecast.com;\n\tauth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ecurtin@redhat.com"],"X-MC-Unique":"7MqM8C10NGK3h7pVvPz83w-1","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=QX787Ag6j1JSjJ0rdECyBq0C4zahV+cH9GWGupn+f80=;\n\tb=CjBC1agQOG/yY8FZ/SgrQI76C/qqt28229ldZvN5E/8Pq/C4C4KQR+pGGpBK4luscL\n\t3qJLw3McFmROPwwU7eGUHq59X/ygDoSJRHZlqca/VhLBEhLucVlbkKb8p07v1szMi4Ik\n\tPA4Eslifgb2yGy2l6gA7O5fE+4JUqi9nZiPzKfZlxvJ5vaiMKDzx5YKPY4dU7NRvYOVM\n\tnxV0//k8kule4X+xd3VjVgnLkIn84dPlzj7AdWjT4/t79bIR5q1GesUDm/Mo1xN8ePr3\n\tx2qLNbo9dhqD8rYa20O7HOe6l8X2dauH1Ct7nS1WFNiOk4VUtndXTXDRqnaO3viXIdOh\n\trklA==","X-Gm-Message-State":"AOAM530evpiopmNb0LrsuZvmNVsDzzFg8FrhPvQ+Z0ojrupoqbJCR+DM\n\tXs4agIvfRzaJHGToIGXrxLGlWvEIEHuRFl6ZCESmYX/bRFF5gDNtWomtsIqHc52FAVjpfGW/dsS\n\t523tQSzKwvG4TaiDbD666BYaOnmOEU1rmKRoSAHP1+lfZiBwac21sn0I+H3FhClvkCmwXNqpM7f\n\tMjoUszocNI","X-Received":["by 2002:a05:600c:4ec9:b0:394:7d73:325e with SMTP id\n\tg9-20020a05600c4ec900b003947d73325emr9748239wmq.61.1653073317142; \n\tFri, 20 May 2022 12:01:57 -0700 (PDT)","by 2002:a05:600c:4ec9:b0:394:7d73:325e with SMTP id\n\tg9-20020a05600c4ec900b003947d73325emr9748211wmq.61.1653073316713; \n\tFri, 20 May 2022 12:01:56 -0700 (PDT)"],"X-Google-Smtp-Source":"ABdhPJwz23VWjZ8u220bjR2T7iRAPG73HsFQT6z3ZpBBW5yG6DFDSkdJDSHciMAtW9065foXVw3jKQ==","To":"libcamera-devel@lists.libcamera.org, laurent.pinchart@ideasonboard.com, \n\tkieran.bingham@ideasonboard.com, jacopo@jmondi.org, javierm@redhat.com","Date":"Fri, 20 May 2022 20:01:02 +0100","Message-Id":"<20220520190106.425386-1-ecurtin@redhat.com>","X-Mailer":"git-send-email 2.35.3","MIME-Version":"1.0","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain; charset=\"US-ASCII\"; x-default=true","Subject":"[libcamera-devel] [PATCH v9 0/4] Add SDL Sink","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Eric Curtin via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Eric Curtin <ecurtin@redhat.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Changes in v9:\n- Added some todo's\n- Changed includes, options, etc. to be in alphabetical order\n- Fixed meson build file to identify SDL and SDL_image dependancies\n  correctly\n- Some commit message changes\n- chrono usage changes\n- clear events on EventLoop::exit\n- Function rename from addFDEvent -> addFdEvent\n- SDLTexture::destroy() is now moved to destructor\n- Removed sdl prefix from various variables\n- Added SPDX and copyright\n- Made ptr protected and added get\n- A NULL to nullptr change\n\nEric Curtin (4):\n  cam: event_loop: Rename addEvent to addFdEvent\n  cam: event_loop: Add timer events to event loop\n  cam: sdl_sink: Add SDL sink with initial YUYV support\n  cam: sdl_sink: Add MJPG support to SDL sink\n\n src/cam/camera_session.cpp   |   8 ++\n src/cam/drm.cpp              |   4 +-\n src/cam/event_loop.cpp       |  31 +++++-\n src/cam/event_loop.h         |  11 +-\n src/cam/main.cpp             |   4 +\n src/cam/main.h               |   1 +\n src/cam/meson.build          |  21 ++++\n src/cam/sdl_sink.cpp         | 202 +++++++++++++++++++++++++++++++++++\n src/cam/sdl_sink.h           |  49 +++++++++\n src/cam/sdl_texture.cpp      |  37 +++++++\n src/cam/sdl_texture.h        |  29 +++++\n src/cam/sdl_texture_mjpg.cpp |  25 +++++\n src/cam/sdl_texture_mjpg.h   |  17 +++\n src/cam/sdl_texture_yuyv.cpp |  20 ++++\n src/cam/sdl_texture_yuyv.h   |  17 +++\n 15 files changed, 469 insertions(+), 7 deletions(-)\n create mode 100644 src/cam/sdl_sink.cpp\n create mode 100644 src/cam/sdl_sink.h\n create mode 100644 src/cam/sdl_texture.cpp\n create mode 100644 src/cam/sdl_texture.h\n create mode 100644 src/cam/sdl_texture_mjpg.cpp\n create mode 100644 src/cam/sdl_texture_mjpg.h\n create mode 100644 src/cam/sdl_texture_yuyv.cpp\n create mode 100644 src/cam/sdl_texture_yuyv.h"}