From patchwork Thu Apr 13 07:09:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5b6Q56aP6ZqG?= <839789740@qq.com> X-Patchwork-Id: 41134 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp1031742pzb; Thu, 13 Apr 2023 00:09:39 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/H1PH3ubIMFsBEZ7k/o68u0DlM5sGiunrzdC4hMhCszGuQW/l/NYENWrbw0ALsyta/U7W X-Received: by 2002:a17:906:3e56:b0:94a:9651:51f0 with SMTP id t22-20020a1709063e5600b0094a965151f0mr1434766eji.58.1681369779248; Thu, 13 Apr 2023 00:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681369779; cv=none; d=google.com; s=arc-20160816; b=TV6nWt9FeE51FyxDJu4JEWroK1msbyTYoJoQTdQPVL9cAi23Khdd4t6jUb3feUPbuu zwql2q+KVNZew+/UCkG90TRYeKRMsKHYq3fFxAKgSJf4v8RUg8eZS+int+X1djCoVmkK 2/JiHG/oRy1AvUuOsgUYb+0WTnttEiGW5BYcMuOQmu8u5EncAla4Cy0s3nvQqVOnMxuE QQN9jA/y1Yrb4ATU9zvrt8WQn9vuVbkpyt5nTd0BnN9Hclu8rh9xZHjGXrhtTVEXK483 aBNklhmXoGIVxOWoUd5ajxSrZg4ezsZ8km3KVH2Y/nGtG3iOO7k1yrkyVllRjG3S3BdR 6Rbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:date:to:from:message-id :dkim-signature:delivered-to; bh=zO6As5Yx8u6j1JSDKh1Jc3mowVlXQAADKwhNwHxvDt0=; b=SiE09Gs0MTs2oBoCqOQg/YVUDPbcMepznP9rGDzM8Kp2b2j/w8yf+yFuvw8flJKvIR 7YAB4ed27zHh3GtA6g3UTizj8zxWdFhm/R6weXDf10u5BMIAlbZQNnLRLTptumcDwVFc ie3XjvTjoW9jGk6gasbq3znpNX80zkpRCKqMM0yLKQjRWAxQkkO0z6dwLZZUzuA6aIqI jDuDX9IonDISiq5s1e0lCqxJGFaOcywAa3Ihq6q1yxdTf1jdH60Zx8ddYuvWJ4R1fF3m LIqjS1O2zJ/q6iYUgkSSxcs61FaN2z6YGJwEAPhFDUazNh/oqUdgyYMFYUImeqFVJFGA 3USQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@qq.com header.s=s201512 header.b=HIlcgFu8; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id jr22-20020a170906515600b0094a9d4b4276si955607ejc.653.2023.04.13.00.09.38; Thu, 13 Apr 2023 00:09:39 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@qq.com header.s=s201512 header.b=HIlcgFu8; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D479468BB3A; Thu, 13 Apr 2023 10:09:34 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out203-205-251-27.mail.qq.com (out203-205-251-27.mail.qq.com [203.205.251.27]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2B54A689FE5 for ; Thu, 13 Apr 2023 10:09:26 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1681369763; bh=zRHkTvEVbHWE58V2CGwKwGR9DWSvNdvhqb9/xbhDEYA=; h=From:To:Cc:Subject:Date; b=HIlcgFu8w6cwOpgTxSfKKsXRoXbWoIzkW86jhb5uMJ8UxXh7EuGAkg4JByvlYoKNK Dk37wLcfYX3ZuOOhHJWMMqCOtqK48RlOEdVryIbVMldiMrQixeGh9OPOai9bpSaN/4 z+2fr/qeWuYeyKbbllREuDf3v6SDDbk9qs2BwTsI= Received: from localhost.localdomain ([59.41.119.190]) by newxmesmtplogicsvrszc1-0.qq.com (NewEsmtp) with SMTP id 256392D2; Thu, 13 Apr 2023 15:09:22 +0800 X-QQ-mid: xmsmtpt1681369762t80vg5lr4 Message-ID: X-QQ-XMAILINFO: Nnix8U0Z5Nyu5h8qx2hdjhttmGv+rzxo73DM+RfJweSLxNsrWwdn1f2hEK8w/P WpQQwQE2FUAOjPSZGjh2K2rpAReF+rPIFDjmpC3WuQAEcNC+1nlWrjvBeyevrVg5Atnu11R1th8p 3YY/IaMdvi7ABogjUoyhnQxbokA2qHDeZETslp/Yt3XQmTT+0Pw4QVjpMMOliRTkQ6/VBVHeM6jS +SKKlaZQC8FmchUOjB86E2eCxDDMs57iD7tRExGXyLAT94cYltAuScg0STt5V6q8OV88/l72yXwF jsfvGY8r/kyW/bSBejvCHD0eu36ljwx8ZRa4lCCrCjIMQFdLngj09yS4e/4x0RGDgixkJQeVrvSz zdHY+s4B7zkVkPSe+uQD9pqfcbajx62UMxyw5aLoQEbcTZPYE3UyxfHlUAvOgVuLBztzw8W6mxGJ gVEeHG1hU6jhjZl06PK5SFWJWFSB3KwZ0F3YWFD29Pe7ZIQk11AdX229by77HivYMOokj+AojHbh IazWj1hueRc/3PTa5Mfxfd2g+h3ytdcc7H70I6Ht9bYKeFT01cJIRpxTB9Ji2jBy57tKny/el4+1 RVgKFuFN3MSJelRpA3t0IiexOIoDWmnjsVXVBFdtkRDk6mAbrvR/zSXlzPd+sReZ99k1Al/vRixJ YNG1Q5+OJEDECcPSsEAcL9he0H5i6NS9VJWBptf/6YD/lpqx6r9pYeYRSVZJGxB0uzwqv5cGDWhs tE1nUC3KO4EBJymdcJiOGFtXzsNhlJhJnvN4bhAuFP7ZAWAnYCS0TxgFbO7GTpH0iBn9vVbaTFZL 54p2a5OgrJA2wHZfgHdIBrhskYUhp1PUTPZEu82c+ajNuEJot+hIq7LsuXfeANVLggFV2YPLymCe zpuPjWMk+MaWCcRNIMiJX2S+OV90zTu278mWVD9O2Rr1j6BGTWrJoQ2/ILhNhMf5SUtpm6W6uCWT JiZNjPkLxFvq/ih3qNKByyzPVO+W9q7jn0DxcNn84crqB/3D3RwrZTP332P6e28PtVHHoVFxy8Lf yGn9mARJsmKvHEjty6VKF5W8jIyxQ= From: xufuji456 <839789740@qq.com> To: ffmpeg-devel@ffmpeg.org Date: Thu, 13 Apr 2023 15:09:19 +0800 X-OQ-MSGID: <20230413070919.24336-1-839789740@qq.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] checkasm: pass context as pointer 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 Cc: xufuji456 <839789740@qq.com> Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Ti5wKvoZC1Di Signed-off-by: xufuji456 <839789740@qq.com> --- tests/checkasm/hevc_add_res.c | 6 +++--- tests/checkasm/hevc_deblock.c | 8 ++++---- tests/checkasm/hevc_idct.c | 12 ++++++------ tests/checkasm/hevc_sao.c | 12 ++++++------ tests/checkasm/huffyuvdsp.c | 8 ++++---- tests/checkasm/llviddsp.c | 32 ++++++++++++++++---------------- 6 files changed, 39 insertions(+), 39 deletions(-) diff --git a/tests/checkasm/hevc_add_res.c b/tests/checkasm/hevc_add_res.c index f17d121939..f35e9fccd9 100644 --- a/tests/checkasm/hevc_add_res.c +++ b/tests/checkasm/hevc_add_res.c @@ -66,7 +66,7 @@ static void compare_add_res(int size, ptrdiff_t stride, int overflow_test, int m bench_new(dst1, res1, stride); } -static void check_add_res(HEVCDSPContext h, int bit_depth) +static void check_add_res(HEVCDSPContext *h, int bit_depth) { int i; int mask = bit_depth == 8 ? 0xFFFF : bit_depth == 10 ? 0x03FF : 0x07FF; @@ -76,7 +76,7 @@ static void check_add_res(HEVCDSPContext h, int bit_depth) int size = block_size * block_size; ptrdiff_t stride = block_size << (bit_depth > 8); - if (check_func(h.add_residual[i - 2], "hevc_add_res_%dx%d_%d", block_size, block_size, bit_depth)) { + if (check_func(h->add_residual[i - 2], "hevc_add_res_%dx%d_%d", block_size, block_size, bit_depth)) { compare_add_res(size, stride, 0, mask); // overflow test for res = -32768 compare_add_res(size, stride, 1, mask); @@ -92,7 +92,7 @@ void checkasm_check_hevc_add_res(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_add_res(h, bit_depth); + check_add_res(&h, bit_depth); } report("add_residual"); } diff --git a/tests/checkasm/hevc_deblock.c b/tests/checkasm/hevc_deblock.c index e003f98d02..5e4338af1c 100644 --- a/tests/checkasm/hevc_deblock.c +++ b/tests/checkasm/hevc_deblock.c @@ -45,7 +45,7 @@ static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }; } \ } while (0) -static void check_deblock_chroma(HEVCDSPContext h, int bit_depth) +static void check_deblock_chroma(HEVCDSPContext *h, int bit_depth) { int32_t tc[2] = { 0, 0 }; // no_p, no_q can only be { 0,0 } for the simpler assembly (non *_c @@ -57,7 +57,7 @@ static void check_deblock_chroma(HEVCDSPContext h, int bit_depth) declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *pix, ptrdiff_t stride, int32_t *tc, uint8_t *no_p, uint8_t *no_q); - if (check_func(h.hevc_h_loop_filter_chroma, "hevc_h_loop_filter_chroma%d", bit_depth)) { + if (check_func(h->hevc_h_loop_filter_chroma, "hevc_h_loop_filter_chroma%d", bit_depth)) { for (int i = 0; i < 4; i++) { randomize_buffers(buf0, buf1, BUF_SIZE); // see betatable[] in hevc_filter.c @@ -72,7 +72,7 @@ static void check_deblock_chroma(HEVCDSPContext h, int bit_depth) bench_new(buf1 + BUF_OFFSET, BUF_STRIDE, tc, no_p, no_q); } - if (check_func(h.hevc_v_loop_filter_chroma, "hevc_v_loop_filter_chroma%d", bit_depth)) { + if (check_func(h->hevc_v_loop_filter_chroma, "hevc_v_loop_filter_chroma%d", bit_depth)) { for (int i = 0; i < 4; i++) { randomize_buffers(buf0, buf1, BUF_SIZE); // see betatable[] in hevc_filter.c @@ -95,7 +95,7 @@ void checkasm_check_hevc_deblock(void) for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) { HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_deblock_chroma(h, bit_depth); + check_deblock_chroma(&h, bit_depth); } report("chroma"); } diff --git a/tests/checkasm/hevc_idct.c b/tests/checkasm/hevc_idct.c index 446d69f931..49cfc4801f 100644 --- a/tests/checkasm/hevc_idct.c +++ b/tests/checkasm/hevc_idct.c @@ -36,7 +36,7 @@ } \ } while (0) -static void check_idct(HEVCDSPContext h, int bit_depth) +static void check_idct(HEVCDSPContext *h, int bit_depth) { int i; LOCAL_ALIGNED(32, int16_t, coeffs0, [32 * 32]); @@ -50,7 +50,7 @@ static void check_idct(HEVCDSPContext h, int bit_depth) randomize_buffers(coeffs0, size); memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size); - if (check_func(h.idct[i - 2], "hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) { + if (check_func(h->idct[i - 2], "hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) { call_ref(coeffs0, col_limit); call_new(coeffs1, col_limit); if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size)) @@ -60,7 +60,7 @@ static void check_idct(HEVCDSPContext h, int bit_depth) } } -static void check_idct_dc(HEVCDSPContext h, int bit_depth) +static void check_idct_dc(HEVCDSPContext *h, int bit_depth) { int i; LOCAL_ALIGNED(32, int16_t, coeffs0, [32 * 32]); @@ -74,7 +74,7 @@ static void check_idct_dc(HEVCDSPContext h, int bit_depth) randomize_buffers(coeffs0, size); memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size); - if (check_func(h.idct_dc[i - 2], "hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) { + if (check_func(h->idct_dc[i - 2], "hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) { call_ref(coeffs0); call_new(coeffs1); if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size)) @@ -113,7 +113,7 @@ void checkasm_check_hevc_idct(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_idct_dc(h, bit_depth); + check_idct_dc(&h, bit_depth); } report("idct_dc"); @@ -121,7 +121,7 @@ void checkasm_check_hevc_idct(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_idct(h, bit_depth); + check_idct(&h, bit_depth); } report("idct"); diff --git a/tests/checkasm/hevc_sao.c b/tests/checkasm/hevc_sao.c index 4a23010243..cfee2ddf50 100644 --- a/tests/checkasm/hevc_sao.c +++ b/tests/checkasm/hevc_sao.c @@ -66,7 +66,7 @@ static const uint32_t sao_size[5] = {8, 16, 32, 48, 64}; } \ } while (0) -static void check_sao_band(HEVCDSPContext h, int bit_depth) +static void check_sao_band(HEVCDSPContext *h, int bit_depth) { int i; LOCAL_ALIGNED_32(uint8_t, dst0, [BUF_SIZE]); @@ -83,7 +83,7 @@ static void check_sao_band(HEVCDSPContext h, int bit_depth) declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, uint8_t *src, ptrdiff_t dst_stride, ptrdiff_t src_stride, int16_t *sao_offset_val, int sao_left_class, int width, int height); - if (check_func(h.sao_band_filter[i], "hevc_sao_band_%d_%d", block_size, bit_depth)) { + if (check_func(h->sao_band_filter[i], "hevc_sao_band_%d_%d", block_size, bit_depth)) { for (int w = prev_size + 4; w <= block_size; w += 4) { randomize_buffers(src0, src1, BUF_SIZE); @@ -103,7 +103,7 @@ static void check_sao_band(HEVCDSPContext h, int bit_depth) } } -static void check_sao_edge(HEVCDSPContext h, int bit_depth) +static void check_sao_edge(HEVCDSPContext *h, int bit_depth) { int i; LOCAL_ALIGNED_32(uint8_t, dst0, [BUF_SIZE]); @@ -127,7 +127,7 @@ static void check_sao_edge(HEVCDSPContext h, int bit_depth) memset(dst0, 0, BUF_SIZE); memset(dst1, 0, BUF_SIZE); - if (check_func(h.sao_edge_filter[i], "hevc_sao_edge_%d_%d", block_size, bit_depth)) { + if (check_func(h->sao_edge_filter[i], "hevc_sao_edge_%d_%d", block_size, bit_depth)) { call_ref(dst0, src0 + offset, stride, offset_val, eo, w, block_size); call_new(dst1, src1 + offset, stride, offset_val, eo, w, block_size); for (int j = 0; j < block_size; j++) { @@ -148,7 +148,7 @@ void checkasm_check_hevc_sao(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_sao_band(h, bit_depth); + check_sao_band(&h, bit_depth); } report("sao_band"); @@ -156,7 +156,7 @@ void checkasm_check_hevc_sao(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_sao_edge(h, bit_depth); + check_sao_edge(&h, bit_depth); } report("sao_edge"); } diff --git a/tests/checkasm/huffyuvdsp.c b/tests/checkasm/huffyuvdsp.c index 16e6bfb808..6ba27e267f 100644 --- a/tests/checkasm/huffyuvdsp.c +++ b/tests/checkasm/huffyuvdsp.c @@ -35,7 +35,7 @@ buf[j] = rnd() & 0xFFFF; \ } while (0) -static void check_add_int16(HuffYUVDSPContext c, unsigned mask, int width, const char * name) +static void check_add_int16(HuffYUVDSPContext *c, unsigned mask, int width, const char * name) { uint16_t *src0 = av_mallocz(width * sizeof(uint16_t)); uint16_t *src1 = av_mallocz(width * sizeof(uint16_t)); @@ -50,7 +50,7 @@ static void check_add_int16(HuffYUVDSPContext c, unsigned mask, int width, const randomize_buffers(src0, width); memcpy(src1, src0, width * sizeof(uint16_t)); - if (check_func(c.add_int16, "%s", name)) { + if (check_func(c->add_int16, "%s", name)) { call_ref(dst0, src0, mask, width); call_new(dst1, src1, mask, width); if (memcmp(dst0, dst1, width * sizeof(uint16_t))) @@ -72,10 +72,10 @@ void checkasm_check_huffyuvdsp(void) ff_huffyuvdsp_init(&c, AV_PIX_FMT_YUV422P); /*! test width not multiple of mmsize */ - check_add_int16(c, 65535, width, "add_int16_rnd_width"); + check_add_int16(&c, 65535, width, "add_int16_rnd_width"); report("add_int16_rnd_width"); /*! test always with the same size (for perf test) */ - check_add_int16(c, 65535, 16*128, "add_int16_128"); + check_add_int16(&c, 65535, 16*128, "add_int16_128"); report("add_int16_128"); } diff --git a/tests/checkasm/llviddsp.c b/tests/checkasm/llviddsp.c index d948a9832d..00ad21a7cc 100644 --- a/tests/checkasm/llviddsp.c +++ b/tests/checkasm/llviddsp.c @@ -42,7 +42,7 @@ randomize_buffers(a0, width * sizeof(type));\ memcpy(a1, a0, width*sizeof(type));\ -static void check_add_bytes(LLVidDSPContext c, int width) +static void check_add_bytes(LLVidDSPContext *c, int width) { uint8_t *dst0 = av_mallocz(width); uint8_t *dst1 = av_mallocz(width); @@ -56,7 +56,7 @@ static void check_add_bytes(LLVidDSPContext c, int width) fail(); - if (check_func(c.add_bytes, "add_bytes")) { + if (check_func(c->add_bytes, "add_bytes")) { call_ref(dst0, src0, width); call_new(dst1, src1, width); if (memcmp(dst0, dst1, width)) @@ -70,7 +70,7 @@ static void check_add_bytes(LLVidDSPContext c, int width) av_free(dst1); } -static void check_add_median_pred(LLVidDSPContext c, int width) { +static void check_add_median_pred(LLVidDSPContext *c, int width) { int A0, A1, B0, B1; uint8_t *dst0 = av_mallocz(width); uint8_t *dst1 = av_mallocz(width); @@ -91,7 +91,7 @@ static void check_add_median_pred(LLVidDSPContext c, int width) { B1 = B0; - if (check_func(c.add_median_pred, "add_median_pred")) { + if (check_func(c->add_median_pred, "add_median_pred")) { call_ref(dst0, src0, diff0, width, &A0, &B0); call_new(dst1, src1, diff1, width, &A1, &B1); if (memcmp(dst0, dst1, width) || (A0 != A1) || (B0 != B1)) @@ -107,7 +107,7 @@ static void check_add_median_pred(LLVidDSPContext c, int width) { av_free(dst1); } -static void check_add_left_pred(LLVidDSPContext c, int width, int acc, const char * report) +static void check_add_left_pred(LLVidDSPContext *c, int width, int acc, const char * report) { int res0, res1; uint8_t *dst0 = av_mallocz(width); @@ -121,7 +121,7 @@ static void check_add_left_pred(LLVidDSPContext c, int width, int acc, const cha if (!dst0 || !dst1) fail(); - if (check_func(c.add_left_pred, "%s", report)) { + if (check_func(c->add_left_pred, "%s", report)) { res0 = call_ref(dst0, src0, width, acc); res1 = call_new(dst1, src1, width, acc); if ((res0 & 0xFF) != (res1 & 0xFF)||\ @@ -136,7 +136,7 @@ static void check_add_left_pred(LLVidDSPContext c, int width, int acc, const cha av_free(dst1); } -static void check_add_left_pred_16(LLVidDSPContext c, unsigned mask, int width, unsigned acc, const char * report) +static void check_add_left_pred_16(LLVidDSPContext *c, unsigned mask, int width, unsigned acc, const char * report) { int res0, res1; uint16_t *dst0 = av_calloc(width, sizeof(*dst0)); @@ -150,7 +150,7 @@ static void check_add_left_pred_16(LLVidDSPContext c, unsigned mask, int width, if (!dst0 || !dst1) fail(); - if (check_func(c.add_left_pred_int16, "%s", report)) { + if (check_func(c->add_left_pred_int16, "%s", report)) { res0 = call_ref(dst0, src0, mask, width, acc); res1 = call_new(dst1, src1, mask, width, acc); if ((res0 &0xFFFF) != (res1 &0xFFFF)||\ @@ -165,7 +165,7 @@ static void check_add_left_pred_16(LLVidDSPContext c, unsigned mask, int width, av_free(dst1); } -static void check_add_gradient_pred(LLVidDSPContext c, int w) { +static void check_add_gradient_pred(LLVidDSPContext *c, int w) { int src_size, stride; uint8_t *src0, *src1; declare_func(void, uint8_t *src, const ptrdiff_t stride, @@ -178,7 +178,7 @@ static void check_add_gradient_pred(LLVidDSPContext c, int w) { init_buffer(src0, src1, uint8_t, src_size); - if (check_func(c.add_gradient_pred, "add_gradient_pred")) { + if (check_func(c->add_gradient_pred, "add_gradient_pred")) { call_ref(src0 + stride + 32, stride, w); call_new(src1 + stride + 32, stride, w); if (memcmp(src0, src1, stride)||/* previous line doesn't change */ @@ -200,21 +200,21 @@ void checkasm_check_llviddsp(void) ff_llviddsp_init(&c); - check_add_bytes(c, width); + check_add_bytes(&c, width); report("add_bytes"); - check_add_median_pred(c, width); + check_add_median_pred(&c, width); report("add_median_pred"); - check_add_left_pred(c, width, 0, "add_left_pred_zero"); + check_add_left_pred(&c, width, 0, "add_left_pred_zero"); report("add_left_pred_zero"); - check_add_left_pred(c, width, accRnd, "add_left_pred_rnd_acc"); + check_add_left_pred(&c, width, accRnd, "add_left_pred_rnd_acc"); report("add_left_pred_rnd_acc"); - check_add_left_pred_16(c, 255, width, accRnd, "add_left_pred_int16"); + check_add_left_pred_16(&c, 255, width, accRnd, "add_left_pred_int16"); report("add_left_pred_int16"); - check_add_gradient_pred(c, width); + check_add_gradient_pred(&c, width); report("add_gradient_pred"); }