Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
9e46dcd2
Commit
9e46dcd2
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Moving dqcoeff array to MACROBLOCKD in decoder."
parents
0a6d5547
03349d2b
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
vp9/common/vp9_blockd.h
+7
-1
vp9/common/vp9_blockd.h
vp9/decoder/vp9_decodeframe.c
+4
-15
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decoder.c
+1
-10
vp9/decoder/vp9_decoder.c
vp9/decoder/vp9_decoder.h
+0
-2
vp9/decoder/vp9_decoder.h
vp9/decoder/vp9_dthread.h
+0
-1
vp9/decoder/vp9_dthread.h
with
12 additions
and
29 deletions
vp9/common/vp9_blockd.h
+
7
−
1
View file @
9e46dcd2
...
...
@@ -235,7 +235,8 @@ typedef struct macroblockd {
int
corrupted
;
/* Y,U,V,(A) */
DECLARE_ALIGNED
(
16
,
int16_t
,
dqcoeff
[
MAX_MB_PLANE
][
64
*
64
]);
ENTROPY_CONTEXT
*
above_context
[
MAX_MB_PLANE
];
ENTROPY_CONTEXT
left_context
[
MAX_MB_PLANE
][
16
];
...
...
@@ -243,7 +244,12 @@ typedef struct macroblockd {
PARTITION_CONTEXT
left_seg_context
[
8
];
}
MACROBLOCKD
;
static
INLINE
void
init_macroblockd
(
MACROBLOCKD
*
xd
)
{
int
i
;
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
++
i
)
xd
->
plane
[
i
].
dqcoeff
=
xd
->
dqcoeff
[
i
];
}
static
INLINE
BLOCK_SIZE
get_subsize
(
BLOCK_SIZE
bsize
,
PARTITION_TYPE
partition
)
{
...
...
This diff is collapsed.
Click to expand it.
vp9/decoder/vp9_decodeframe.c
+
4
−
15
View file @
9e46dcd2
...
...
@@ -853,17 +853,6 @@ static const uint8_t *decode_tiles(VP9D_COMP *pbi,
return
end
;
}
static
void
setup_tile_macroblockd
(
TileWorkerData
*
const
tile_data
)
{
MACROBLOCKD
*
xd
=
&
tile_data
->
xd
;
struct
macroblockd_plane
*
const
pd
=
xd
->
plane
;
int
i
;
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
++
i
)
{
pd
[
i
].
dqcoeff
=
tile_data
->
dqcoeff
[
i
];
vpx_memset
(
xd
->
plane
[
i
].
dqcoeff
,
0
,
64
*
64
*
sizeof
(
int16_t
));
}
}
static
int
tile_worker_hook
(
void
*
arg1
,
void
*
arg2
)
{
TileWorkerData
*
const
tile_data
=
(
TileWorkerData
*
)
arg1
;
const
TileInfo
*
const
tile
=
(
TileInfo
*
)
arg2
;
...
...
@@ -990,8 +979,10 @@ static const uint8_t *decode_tiles_mt(VP9D_COMP *pbi,
setup_token_decoder
(
buf
->
data
,
data_end
,
buf
->
size
,
&
cm
->
error
,
&
tile_data
->
bit_reader
);
setup_tile_context
(
cm
,
&
tile_data
->
xd
,
0
,
buf
->
col
);
setup_tile_macroblockd
(
tile_data
);
init_macroblockd
(
&
tile_data
->
xd
);
vp9_zero
(
tile_data
->
xd
.
dqcoeff
);
worker
->
had_error
=
0
;
if
(
i
==
num_workers
-
1
||
n
==
tile_cols
-
1
)
{
...
...
@@ -1281,7 +1272,6 @@ static void debug_check_frame_counts(const VP9_COMMON *const cm) {
int
vp9_decode_frame
(
VP9D_COMP
*
pbi
,
const
uint8_t
*
data
,
const
uint8_t
*
data_end
,
const
uint8_t
**
p_data_end
)
{
int
i
;
VP9_COMMON
*
const
cm
=
&
pbi
->
common
;
MACROBLOCKD
*
const
xd
=
&
pbi
->
mb
;
...
...
@@ -1330,8 +1320,7 @@ int vp9_decode_frame(VP9D_COMP *pbi,
cm
->
fc
=
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
vp9_zero
(
cm
->
counts
);
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
++
i
)
vpx_memset
(
xd
->
plane
[
i
].
dqcoeff
,
0
,
64
*
64
*
sizeof
(
int16_t
));
vp9_zero
(
xd
->
dqcoeff
);
xd
->
corrupted
=
0
;
new_fb
->
corrupted
=
read_compressed_header
(
pbi
,
data
,
first_partition_size
);
...
...
This diff is collapsed.
Click to expand it.
vp9/decoder/vp9_decoder.c
+
1
−
10
View file @
9e46dcd2
...
...
@@ -110,15 +110,6 @@ void vp9_initialize_dec() {
}
}
static
void
init_macroblockd
(
VP9D_COMP
*
const
pbi
)
{
MACROBLOCKD
*
xd
=
&
pbi
->
mb
;
struct
macroblockd_plane
*
const
pd
=
xd
->
plane
;
int
i
;
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
++
i
)
pd
[
i
].
dqcoeff
=
pbi
->
dqcoeff
[
i
];
}
VP9D_COMP
*
vp9_create_decompressor
(
const
VP9D_CONFIG
*
oxcf
)
{
VP9D_COMP
*
const
pbi
=
vpx_memalign
(
32
,
sizeof
(
VP9D_COMP
));
VP9_COMMON
*
const
cm
=
pbi
?
&
pbi
->
common
:
NULL
;
...
...
@@ -156,7 +147,7 @@ VP9D_COMP *vp9_create_decompressor(const VP9D_CONFIG *oxcf) {
cm
->
error
.
setjmp
=
0
;
pbi
->
decoded_key_frame
=
0
;
init_macroblockd
(
pbi
);
init_macroblockd
(
&
pbi
->
mb
);
vp9_worker_init
(
&
pbi
->
lf_worker
);
...
...
This diff is collapsed.
Click to expand it.
vp9/decoder/vp9_decoder.h
+
0
−
2
View file @
9e46dcd2
...
...
@@ -40,8 +40,6 @@ typedef struct VP9Decompressor {
DECLARE_ALIGNED
(
16
,
VP9_COMMON
,
common
);
DECLARE_ALIGNED
(
16
,
int16_t
,
dqcoeff
[
MAX_MB_PLANE
][
64
*
64
]);
VP9D_CONFIG
oxcf
;
int64_t
last_time_stamp
;
...
...
This diff is collapsed.
Click to expand it.
vp9/decoder/vp9_dthread.h
+
0
−
1
View file @
9e46dcd2
...
...
@@ -24,7 +24,6 @@ typedef struct TileWorkerData {
struct
VP9Common
*
cm
;
vp9_reader
bit_reader
;
DECLARE_ALIGNED
(
16
,
struct
macroblockd
,
xd
);
DECLARE_ALIGNED
(
16
,
int16_t
,
dqcoeff
[
MAX_MB_PLANE
][
64
*
64
]);
// Row-based parallel loopfilter data
LFWorkerData
lfdata
;
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets