From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 3A49C4AA02 for ; Fri, 18 Jul 2025 12:41:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 3B65968CDA2; Fri, 18 Jul 2025 15:41:49 +0300 (EEST) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id A41D268CD97 for ; Fri, 18 Jul 2025 15:41:42 +0300 (EEST) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-60c4f796446so3090370a12.1 for ; Fri, 18 Jul 2025 05:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752842501; x=1753447301; darn=ffmpeg.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=C7heW12jL32wItmo2moC/UE+v7R+AJYaZrav19FITTU=; b=BB/oLjjs02ED32AtwpM702GU22CUFuRxJHviZPKkGHcBHdxsYrOR5Q7ExgGKDAKO5g eWygkdxjA3nK9EgSgdlcteZwGfg0kdGKaNbtGsFyZL7bmHjLkn9Tc8dnAE0g+VRmDrbT p2YIWwf0ocsG0ZGBkObs1PZKHbx6BSYlr+mGu1C8W63pu1b2J2fWI0lM7LyEcOk7hg7m TpM/lW/qeETrbE9rPzfuUSm5toHkpMujyaYYo798/Sv9U4o8sQMP+6jnqLFk10U6Owt1 rxCKA7TbZrW5a3DNNZ80KpQ0gOeOj74vFXdYrve1xo+ZY5LbaIgd77AXVb9oeUB6tbB6 tSmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752842501; x=1753447301; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C7heW12jL32wItmo2moC/UE+v7R+AJYaZrav19FITTU=; b=FX3VQw6shrAlhc8NBtSSNACwAJ9H9RcmAYAIM+6U8HzjzHyOKVVVAgbtLhCoOKT1k/ AqIxxR7GJfFb9ELwq3BRnUuEhHyFdmkrSa7Y/XHQtkgygyS/yhVXTHOJJlL2uTLVjPxr Lyb+4laV6q3QxT4DY4VMk4//pKWRNXgN7n9jc4CRTOnZds81j0BkyQzy5KctOkV8eL2f 2FqB2YyfIXBzZEhSzF3yhiNWc0kWgjhV0Sn1PSn5OVP6gbDyE+vf++JAC+ZVD8E+8fhp sMDsCeck7bc3ESNdZi5H3fUeeTw0YB6shIG0gwckzJ7HG7SaXfwDZKIrFZwH4EU47dOP w+VQ== X-Gm-Message-State: AOJu0YwJDcwgHq7Aopkm0tCodNV/iHumOBuKh8ovzKrfiGKPHV645uQe t3x4rbSfLUN285xdv8jAEwUaPSe2rc8CLKFNi5FV08ueyCfRJMEOm5+VX7FAQQfq5fSl67GuR8m SMp9MjUg/vjUr3uwXDpLznJv6PlwOyDu5Y+JD X-Gm-Gg: ASbGncuOag1C9jsji/G80jZgz3cSHJtpRPjLC6fuN/XkWMzIj9QB8D5X3/LVlXsOzs6 JFa6ZV34+JA/+MMsr8mR1A7xmlJLsMrMnhEse6iXXmoOpL1iSRs+Vo9kdYQURAOkAiXdzn78Vxt 2ttdTlwNzmuTQnMHBJokxKCmwjrJClajDr8QQJs+QscZPqmKpIwJUHiAOSRVYb1LurZBuqBagce zJv X-Google-Smtp-Source: AGHT+IFwouWbTqeB1Zv4DJavlawras+0ywTIhUm6asp4tP2HvFGyLOe4/k/0XKcoV9m4zlCppSCsLceJLH14tdJN55s= X-Received: by 2002:a05:6402:1d4e:b0:612:c4a1:1381 with SMTP id 4fb4d7f45d1cf-612c4a11783mr2769773a12.26.1752842501064; Fri, 18 Jul 2025 05:41:41 -0700 (PDT) MIME-Version: 1.0 References: <20250717104525.1290708-1-ffmpeg@haasn.xyz> In-Reply-To: From: Kacper Michajlow Date: Fri, 18 Jul 2025 14:41:08 +0200 X-Gm-Features: Ac12FXyhegzc0dw1Yv2dN51cv995oceMQMHpOs3wy9uZIEV81__0z6-lV8Ahif0 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avfilter/vf_blackdetect: add AVX2 SIMD version X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Fri, 18 Jul 2025 at 14:14, Kieran Kunhya via ffmpeg-devel wrote: > > > blackdetect8_c: 820.8 ( 1.00x) > > blackdetect8_avx2: 219.2 ( 3.74x) > > blackdetect16_c: 372.8 ( 1.00x) > > blackdetect16_avx2: 201.4 ( 1.85x) > > > > Again, sorry for being pedantic here, but it gives the wrong > > impression especially if you look at this from outside. > > Also misleading as far as I understand because GCC doesn't have > runtime detection like FFmpeg. Speak of... actually GCC does have runtime detection. All you have to do is mark the function with `target_clones` with requested architectures and it will dispatch automatically during runtime the best function to use. See for more information: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-target_005fclones-function-attribute - Kacper _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".