From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC223E00A6 for ; Mon, 18 May 2026 07:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779090127; cv=none; b=td4D13mhvSaoJ9e23imwp1u9cZVE4M7ZbeXZtANiikwrDgKJfqXLSofOgXwRuDDEys9iJcSkT6kJGraWVc33mBEBxqUgRgr2SO8wCOd0VTFgpqroDHm2nluWGv/Pbc7bfWdkejDy6ZmTqkaRdY740j8LBueRj7NJaK6NMmbKcYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779090127; c=relaxed/simple; bh=sRgGDxB/bAdisraAN7obD4EfYDrSYP9dOD9kJ2R09BU=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=bXwj0quM4jDEKlC+lAK8vXdTrVIiMx6gmRy1gC89dx0juNcK1s25M6IpeNkVHAZecZ0pqvxPpkY49BZo29H3B7Z+ae6WzEfPpY+iWtI93iYxHUG+otrkzD+7o6VEaZsTsuiN5ftEDW9NZDhaESBozxll5TuJ0s/CmTo1dPLf45U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Pc1ShZfW; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Pc1ShZfW" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-44dd5cb0f81so1840935f8f.0 for ; Mon, 18 May 2026 00:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1779090124; x=1779694924; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=ppNDAHzhFb5s5vvuYDLOkdSd7qRyRqLYBSTq1x9HR6o=; b=Pc1ShZfWtQzzuYMz6FJYbwBh/gvoqmyez6l2wdMKVwc/hUl5R+T+So4dzte40dFDp0 skJ8bT06gzV5QZmnvpgmEKurnP2hDYGOcY0hVVGzwRVTcu+WdL3qo1QcouppXIHNo6rD lFvzAtjhpsOqh8Orfne/oSSzHQfLGuJ2ATF9Rbk2C0079ob+ycUjrlKLWGTSSXvt3FGy c6/iaEn1FTV4lPdgmQfMLAD/IEvtJt+vUitqHeK/DkQDi4oYA3SZj4G4GW+c30SJV5qt 0UnWBUeGfbVICYr0WbX2+QVkjuBmP49u6G6oV4sEhRPlVCyc7OZUGhdDnW0mmmlYnny9 Ejjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779090124; x=1779694924; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ppNDAHzhFb5s5vvuYDLOkdSd7qRyRqLYBSTq1x9HR6o=; b=Y3MxXGWeG9V/Zdh+R+DiyhZ5DR1AKGvWxl98sqGLJrMjTT8PGsMMUB6r16gzMXGMZc YAJ9VRUJQ5cHoAAHE/L8dV2a68vLzxc6kl/ykxuubFlhcvyGjwhGLaAqYHrsAgS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1804b1-48fe537fb6fmr186021655e9.9.1779090124361; Mon, 18 May 2026 00:42:04 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:64e2:72b:b9ed:6dcf? ([2a01:e0a:106d:1080:64e2:72b:b9ed:6dcf]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe53804aesm224907495e9.15.2026.05.18.00.42.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 May 2026 00:42:04 -0700 (PDT) Message-ID: <3b3fbaab-1463-4593-beeb-40168658de7c@linaro.org> Date: Mon, 18 May 2026 09:42:03 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH v3 0/6] media: qcom: iris: add support for decoding 10bit formats To: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260511-topic-sm8x50-iris-10bit-decoding-v3-0-7fc049b93042@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJt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+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/13/26 19:33, Vikash Garodia wrote: > > On 5/11/2026 2:50 PM, Neil Armstrong wrote: >> This adds the plumbing to support decoding HEVC, VP9 and AV1 >> streams into 10bit pixel formats, linear and compressed. >> >> This has only been tested on SM8550 & SM8650 with HEVC, and was >> inspired by Venus, DRM MSM and the downstream vidc driver for the >> buffer calculations and HFI messages. >> >> I was unable to get 10bit decoding working with ffmpeg since P010 >> support for v4l2 decoding is missing, but v4l2-ctl works with: >> v4l2-ctl --verbose --set-fmt-video-out=pixelformat=HEVC --set-fmt-video=pixelformat=P010 --stream-mmap --stream-out-mmap --stream-from-hdr Big_Buck_Bunny_1080_10s_30MB_main10.h265.hdr --stream-to out.P010 >> v4l2-ctl --verbose --set-fmt-video-out=pixelformat=HEVC --set-fmt-video=pixelformat=Q10C --stream-mmap --stream-out-mmap --stream-from-hdr Big_Buck_Bunny_1080_10s_30MB_main10.h265.hdr --stream-to out.QC10 >> >> The non-10bit decoding still works as before. >> >> With Big_Buck_Bunny_1080_10s_30MB reencoded in 10-bit profile >> and tranformed in v4l2 header format with [1]: >> ffmpeg -i Big_Buck_Bunny_1080_10s_30MB.h264 -pix_fmt yuv420p10le -c:v libx265 -crf 28 -x265-params profile=main10 Big_Buck_Bunny_1080_10s_30MB_main10.h265 >> /path/to/mkhdr.sh Big_Buck_Bunny_1080_10s_30MB_main10.h265 raw Big_Buck_Bunny_1080_10s_30MB_main10.h265.hdr >> >> Fluster HEVC results on SM8650: >> >> ./fluster.py run -ts JCT-VC-HEVC_V1 -d GStreamer-H.265-V4L2-Gst1.0 - 131/147 >> The failing test case: >> - Pixel Format mismatch >>   - TSUNEQBD_A_MAIN10_Technicolor_2 - Gstreamer waits NV12 but decoder returns P010 >> - Unsupported resolution >>   - PICSIZE_A_Bossen_1 - resolution is higher than max supported >>   - PICSIZE_B_Bossen_1 - resolution is higher than max supported >>   - WPP_D_ericsson_MAIN_2 - resolution is lower than min supported >>   - WPP_D_ericsson_MAIN10_2 - resolution is lower than min supported >> - CRC mismatch >>   - RAP_A_docomo_6 >> - CRC mismatch - bitstream issue - fails with ffmpeg sw decoder as well >>   - VPSSPSPPS_A_MainConcept_1 > > From earlier SOC reports, 10bit tests which were failing were > - DBLK_A_MAIN10_VIXS_4 > - INITQP_B_Main10_Sony_1 > - TSUNEQBD_A_MAIN10_Technicolor_2 > - WP_A_MAIN10_Toshiba_3 > - WP_MAIN10_B_Toshiba_3 > - WPP_A_ericsson_MAIN10_2 > - WPP_B_ericsson_MAIN10_2 > - WPP_C_ericsson_MAIN10_2 > - WPP_E_ericsson_MAIN10_2 > - WPP_F_ericsson_MAIN10_2 > > I was in the opinion that once we enable 10bit, these tests would pass. Though i do not see these in your failing tests, but the count of 131/147 have not improved. Could you check if these tests are passing and count is better than 131 pass ? Sorry there's a copy paste error I'll fix on v4, here's the fluster log: |Test|GStreamer-H.265-V4L2| |-|-| |TOTAL|141/147| |TOTAL TIME|8.600s| |-|-| ... |PICSIZE_A_Bossen_1|☠| |PICSIZE_B_Bossen_1|☠| ... |RAP_A_docomo_6|❌| ... |TSUNEQBD_A_MAIN10_Technicolor_2|☠| ... |WPP_D_ericsson_MAIN10_2|☠| |WPP_D_ericsson_MAIN_2|☠| ... |-|-| |Test|GStreamer-H.265-V4L2| |TOTAL|140/147| |TOTAL TIME|8.600s| |-|-| |Profile|GStreamer-H.265-V4L2| |MAIN|131/135| |MAIN_10|9/11| |MAIN_STILL_PICTURE|1/1| So the failing cases: - Pixel Format mismatch - TSUNEQBD_A_MAIN10_Technicolor_2 - Gstreamer waits NV12 but decoder returns P010 - Unsupported resolution - PICSIZE_A_Bossen_1 - resolution is higher than max supported - PICSIZE_B_Bossen_1 - resolution is higher than max supported - WPP_D_ericsson_MAIN_2 - resolution is lower than min supported - WPP_D_ericsson_MAIN10_2 - resolution is lower than min supported - CRC mismatch - RAP_A_docomo_6 > > Regards, > Vikash