Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
750f6445
Commit
750f6445
authored
Jan 29, 2018
by
Sebastien Alaiwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move encoder-only function to encodemb.c
Change-Id: Id7ea17a5124215907d076e0e3500b9aeea1146fc
parent
1a709944
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
29 deletions
+22
-29
av1/common/idct.c
av1/common/idct.c
+2
-22
av1/common/idct.h
av1/common/idct.h
+0
-7
av1/encoder/encodemb.c
av1/encoder/encodemb.c
+20
-0
No files found.
av1/common/idct.c
View file @
750f6445
...
...
@@ -1296,28 +1296,8 @@ void av1_iht64x16_1024_add_c(const tran_low_t *input, uint8_t *dest, int stride,
#endif // CONFIG_TX64X64
// idct
void
av1_idct4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
txfm_param
)
{
assert
(
av1_ext_tx_used
[
txfm_param
->
tx_set_type
][
txfm_param
->
tx_type
]);
const
int
eob
=
txfm_param
->
eob
;
if
(
eob
>
1
)
av1_iht4x4_16_add
(
input
,
dest
,
stride
,
txfm_param
);
else
aom_idct4x4_1_add
(
input
,
dest
,
stride
);
}
void
av1_iwht4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
txfm_param
)
{
assert
(
av1_ext_tx_used
[
txfm_param
->
tx_set_type
][
txfm_param
->
tx_type
]);
const
int
eob
=
txfm_param
->
eob
;
if
(
eob
>
1
)
aom_iwht4x4_16_add
(
input
,
dest
,
stride
);
else
aom_iwht4x4_1_add
(
input
,
dest
,
stride
);
}
void
av1_highbd_iwht4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
int
eob
,
int
bd
)
{
static
void
av1_highbd_iwht4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
int
eob
,
int
bd
)
{
if
(
eob
>
1
)
aom_highbd_iwht4x4_16_add
(
input
,
dest
,
stride
,
bd
);
else
...
...
av1/common/idct.h
View file @
750f6445
...
...
@@ -32,18 +32,11 @@ typedef struct {
#define MAX_TX_SCALE 1
int
av1_get_tx_scale
(
const
TX_SIZE
tx_size
);
void
av1_iwht4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
txfm_param
);
void
av1_idct4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
txfm_param
);
void
av1_inverse_transform_block
(
const
MACROBLOCKD
*
xd
,
const
tran_low_t
*
dqcoeff
,
int
plane
,
TX_TYPE
tx_type
,
TX_SIZE
tx_size
,
uint8_t
*
dst
,
int
stride
,
int
eob
,
int
reduced_tx_set
);
void
av1_highbd_iwht4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
int
eob
,
int
bd
);
void
av1_highbd_inv_txfm_add_4x4
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
param
);
#ifdef __cplusplus
...
...
av1/encoder/encodemb.c
View file @
750f6445
...
...
@@ -659,6 +659,26 @@ typedef struct encode_block_pass1_args {
MACROBLOCK
*
x
;
}
encode_block_pass1_args
;
static
void
av1_iwht4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
txfm_param
)
{
assert
(
av1_ext_tx_used
[
txfm_param
->
tx_set_type
][
txfm_param
->
tx_type
]);
const
int
eob
=
txfm_param
->
eob
;
if
(
eob
>
1
)
aom_iwht4x4_16_add
(
input
,
dest
,
stride
);
else
aom_iwht4x4_1_add
(
input
,
dest
,
stride
);
}
static
void
av1_idct4x4_add
(
const
tran_low_t
*
input
,
uint8_t
*
dest
,
int
stride
,
const
TxfmParam
*
txfm_param
)
{
assert
(
av1_ext_tx_used
[
txfm_param
->
tx_set_type
][
txfm_param
->
tx_type
]);
const
int
eob
=
txfm_param
->
eob
;
if
(
eob
>
1
)
av1_iht4x4_16_add
(
input
,
dest
,
stride
,
txfm_param
);
else
aom_idct4x4_1_add
(
input
,
dest
,
stride
);
}
static
void
encode_block_pass1
(
int
plane
,
int
block
,
int
blk_row
,
int
blk_col
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
,
void
*
arg
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment