mirror of
https://code.videolan.org/videolan/dav1d
synced 2026-06-11 04:03:05 +00:00
riscv64/cdef: Fix up code style
The functions of cdef_filter did not use the conventional names and the macros for declarations. This commit matches the style used for other archs and adjusts the following: - decl_cdef_fn() macro for declaration - dav1d_cdef_filter_wxh as the name
This commit is contained in:
+1
-1
@@ -243,7 +243,7 @@ L(bottom_skip_\w\()x\h):
|
||||
|
||||
|
||||
.macro cdef_fn w, h
|
||||
function cdef_filter_block_\w\()x\h\()_8bpc_rvv, export=1, ext="v,zba,zbb"
|
||||
function cdef_filter_\w\()x\h\()_8bpc_rvv, export=1, ext="v,zba,zbb"
|
||||
csrw vxrm, zero
|
||||
|
||||
addi sp, sp, -32 - 144*2
|
||||
|
||||
@@ -238,7 +238,7 @@ L(bottom_skip_\w\()x\h):
|
||||
.endm
|
||||
|
||||
.macro cdef_fn w, h
|
||||
function cdef_filter_block_\w\()x\h\()_16bpc_rvv, export=1, ext="v,zba,zbb"
|
||||
function cdef_filter_\w\()x\h\()_16bpc_rvv, export=1, ext="v,zba,zbb"
|
||||
csrw vxrm, zero
|
||||
|
||||
addi sp, sp, -32 - 144*2
|
||||
|
||||
+6
-21
@@ -1,31 +1,16 @@
|
||||
#include "src/cpu.h"
|
||||
#include "src/cdef.h"
|
||||
|
||||
extern void BF(dav1d_cdef_filter_block_4x4, rvv)(pixel *dst, const ptrdiff_t dst_stride,
|
||||
const pixel (*left)[2],
|
||||
const pixel *const top, const pixel *const bottom,
|
||||
const int pri_strength, const int sec_strength, const int dir,
|
||||
const int damping, const enum CdefEdgeFlags edges HIGHBD_DECL_SUFFIX);
|
||||
|
||||
extern void BF(dav1d_cdef_filter_block_4x8, rvv)(pixel *dst, const ptrdiff_t dst_stride,
|
||||
const pixel (*left)[2],
|
||||
const pixel *const top, const pixel *const bottom,
|
||||
const int pri_strength, const int sec_strength, const int dir,
|
||||
const int damping, const enum CdefEdgeFlags edges HIGHBD_DECL_SUFFIX);
|
||||
|
||||
extern void BF(dav1d_cdef_filter_block_8x8, rvv)(pixel *dst, const ptrdiff_t dst_stride,
|
||||
const pixel (*left)[2],
|
||||
const pixel *const top, const pixel *const bottom,
|
||||
const int pri_strength, const int sec_strength, const int dir,
|
||||
const int damping, const enum CdefEdgeFlags edges HIGHBD_DECL_SUFFIX);
|
||||
|
||||
decl_cdef_fn(BF(dav1d_cdef_filter_4x4, rvv));
|
||||
decl_cdef_fn(BF(dav1d_cdef_filter_4x8, rvv));
|
||||
decl_cdef_fn(BF(dav1d_cdef_filter_8x8, rvv));
|
||||
|
||||
static ALWAYS_INLINE void cdef_dsp_init_riscv(Dav1dCdefDSPContext *const c) {
|
||||
const unsigned flags = dav1d_get_cpu_flags();
|
||||
if (!(flags & DAV1D_RISCV_CPU_FLAG_V)) return;
|
||||
|
||||
// c->dir = BF(dav1d_cdef_dir, rvv);
|
||||
c->fb[0] = BF(dav1d_cdef_filter_block_8x8, rvv);
|
||||
c->fb[1] = BF(dav1d_cdef_filter_block_4x8, rvv);
|
||||
c->fb[2] = BF(dav1d_cdef_filter_block_4x4, rvv);
|
||||
c->fb[0] = BF(dav1d_cdef_filter_8x8, rvv);
|
||||
c->fb[1] = BF(dav1d_cdef_filter_4x8, rvv);
|
||||
c->fb[2] = BF(dav1d_cdef_filter_4x4, rvv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user