Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added libxavs2 8/10bit for ffmpeg 7.1/gcc #36

Open
wants to merge 99 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
8b14baa
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
759910b
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
e116ec1
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
189a3a2
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
789ce21
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
e7c8c91
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
342aaa7
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
014aac3
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
c3f4842
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
0c12a71
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
5d46994
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
d88b7b1
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
1d5793d
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
ac3241a
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
b4d7877
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
a02d571
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
a931671
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
9cb74f2
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
57f04eb
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
ee7f685
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
2d835d2
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
5fc0739
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
90b1087
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
18f8f3b
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
1b37eee
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
867be9a
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
04097fb
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
8e9a1c7
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
1c0356c
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
2ce447a
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
fee9382
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 16, 2024
01f6c57
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
da357a9
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
638a304
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
d2cea45
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
9e67949
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
b329916
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
0035ee5
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
4059de1
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
2bd876b
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
464e350
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
5d72a3e
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
8f3e8be
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
fe92499
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
4125ede
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
cbf7f46
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
8cf598f
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
62fe27d
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
efc6553
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
c4f8eca
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
7fea401
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
d191d7d
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
9ec197f
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
feef026
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
3af7d66
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
544b5b2
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
7f2bb08
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
3519bd9
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 18, 2024
1f3ed5d
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 19, 2024
153c022
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 19, 2024
f8fb29e
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 19, 2024
467b2df
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 19, 2024
2800f5c
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
6fec54f
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
ec439c6
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
5aaefa9
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
8e9786c
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
e343520
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
399e26c
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
3b6e374
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
09f578c
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
d5f3cab
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
a6c4aaa
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9530b41
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
cda534b
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9d89996
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
2e1b063
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
acc12af
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
dbb0bfc
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
3f6aa45
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
eb6435b
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
f1f3b9c
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
aa71012
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
e02d469
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
c6ea55f
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
ecb0ac6
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
cf47243
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9b56c74
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
0730123
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
7fad281
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9ca3ea0
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
97e45a9
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9dab691
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9e447f1
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
6e0eb7d
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
d7e67f6
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
6abb52f
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
9362534
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
0fdc646
Added libxavs2 8/10bit for ffmpeg 7.1/gcc
Jamaika1 Jun 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions source/common/avs2_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ enum sao_class_e {
#define XAVS2_MIN3(a, b, c) XAVS2_MIN((a), XAVS2_MIN((b),(c)))
#define XAVS2_MAX3(a, b, c) XAVS2_MAX((a), XAVS2_MAX((b),(c)))

#define XAVS2_CLIP1(a) ((a) > max_pel_value ? max_pel_value : ((a) < 0 ? 0 : (a)))
//#define XAVS2_CLIP1(a) ((a) > max_pel_value ? max_pel_value : ((a) < 0 ? 0 : (a)))
#define XAVS2_CLIP3F(L, H, v) (((v) < (L)) ? (L) : (((v) > (H)) ? (H) : (v)))
#define XAVS2_CLIP3(L, H, v) xavs2_clip3(L, H, v)
#define XAVS2_ABS(A) ((A) < 0 ? (-(A)) : (A)) // abs macro, faster than procedure
Expand All @@ -281,20 +281,20 @@ static void XAVS2_SWAP_PTR(T *&x, T *&y)
* global variables
* ===========================================================================
*/
static const int g_bit_depth = BIT_DEPTH;
static const int max_pel_value = (1 << BIT_DEPTH) - 1;
static const int g_dc_value = (1 << BIT_DEPTH) >> 1;
//static const int g_bit_depth = BIT_DEPTH;
//static const int max_pel_value = (1 << BIT_DEPTH) - 1;
//static const int g_dc_value = (1 << BIT_DEPTH) >> 1;

/**
* ===========================================================================
* inline function defines
* ===========================================================================
*/

static ALWAYS_INLINE pel_t xavs2_clip_pixel(int x)
/*static ALWAYS_INLINE pel_t xavs2_clip_pixel(int x)
{
return (pel_t)((x & ~max_pel_value) ? (-x) >> 31 & max_pel_value : x);
}
}*/

static ALWAYS_INLINE int xavs2_clip3(int i_min, int i_max, int v)
{
Expand Down Expand Up @@ -323,19 +323,19 @@ static ALWAYS_INLINE int xavs2_median(int a, int b, int c)
return b;
}

// ������ֵ�ķ���λ����������-1�����򷵻�1
// 返回数值的符号位,负数返回-1,否则返回1
static ALWAYS_INLINE int xavs2_sign2(int val)
{
return ((val >> 31) << 1) + 1;
}

// ������ֵ�ķ���λ����������-1��0ֵ����0����������1
// 返回数值的符号位,负数返回-1,0值返回0,正数返回1
static ALWAYS_INLINE int xavs2_sign3(int val)
{
return (val >> 31) | (int)(((uint32_t)-val) >> 31u);
}

// ������������log2ֵ��0��1ʱ����0����������log2(val)
// 计算正整数的log2值,0和1时返回0,其他返回log2(val)
#define xavs2_log2u(val) xavs2_ctz(val)


Expand Down
11 changes: 8 additions & 3 deletions source/common/basic_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@
* basic types
* ===========================================================================
*/
typedef uint8_t pel_t; /* type for pixel */
typedef int16_t itr_t; /* intra prediction temp */

typedef uint16_t pel10_t; /* type for pixel value */
typedef uint64_t pixel10_4; /* type for 4-pixels value */
typedef int32_t itr10_t; /* intra prediction temp */
typedef uint8_t pel8_t; /* type for pixel value */
typedef uint32_t pixel8_4; /* type for 4-pixels value */
typedef int16_t itr8_t; /* intra prediction temp */

typedef uint16_t sum_t;
typedef uint32_t sum2_t;
typedef uint32_t pixel4;
typedef int32_t ssum2_t; /* Signed sum */
typedef int32_t dist_t;

Expand Down
162 changes: 101 additions & 61 deletions source/common/common.h

Large diffs are not rendered by default.

Loading