Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7bbdae81
Commit
7bbdae81
authored
Mar 23, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq3: move block_offset to SVQ3Context
parent
1848a154
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
svq3.c
libavcodec/svq3.c
+8
-7
No files found.
libavcodec/svq3.c
View file @
7bbdae81
...
...
@@ -127,6 +127,7 @@ typedef struct SVQ3Context {
DECLARE_ALIGNED
(
16
,
int16_t
,
mb_luma_dc
)[
3
][
16
*
2
];
DECLARE_ALIGNED
(
8
,
uint8_t
,
non_zero_count_cache
)[
15
*
8
];
uint32_t
dequant4_coeff
[
QP_MAX_NUM
+
1
][
16
];
int
block_offset
[
2
*
(
16
*
3
)];
}
SVQ3Context
;
#define FULLPEL_MODE 1
...
...
@@ -663,7 +664,7 @@ static void hl_decode_mb(SVQ3Context *s, const H264Context *h)
uint8_t
*
dest_y
,
*
dest_cb
,
*
dest_cr
;
int
linesize
,
uvlinesize
;
int
i
,
j
;
const
int
*
block_offset
=
&
h
->
block_offset
[
0
];
const
int
*
block_offset
=
&
s
->
block_offset
[
0
];
const
int
block_h
=
16
>>
h
->
chroma_y_shift
;
linesize
=
s
->
cur_pic
->
f
->
linesize
[
0
];
...
...
@@ -1419,14 +1420,14 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
return
ret
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
h
->
block_offset
[
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
4
*
s
->
cur_pic
->
f
->
linesize
[
0
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
h
->
block_offset
[
48
+
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
8
*
s
->
cur_pic
->
f
->
linesize
[
0
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
s
->
block_offset
[
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
4
*
s
->
cur_pic
->
f
->
linesize
[
0
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
s
->
block_offset
[
48
+
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
8
*
s
->
cur_pic
->
f
->
linesize
[
0
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
}
for
(
i
=
0
;
i
<
16
;
i
++
)
{
h
->
block_offset
[
16
+
i
]
=
h
->
block_offset
[
32
+
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
4
*
s
->
cur_pic
->
f
->
linesize
[
1
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
h
->
block_offset
[
48
+
16
+
i
]
=
h
->
block_offset
[
48
+
32
+
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
8
*
s
->
cur_pic
->
f
->
linesize
[
1
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
s
->
block_offset
[
16
+
i
]
=
s
->
block_offset
[
32
+
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
4
*
s
->
cur_pic
->
f
->
linesize
[
1
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
s
->
block_offset
[
48
+
16
+
i
]
=
s
->
block_offset
[
48
+
32
+
i
]
=
(
4
*
((
scan8
[
i
]
-
scan8
[
0
])
&
7
))
+
8
*
s
->
cur_pic
->
f
->
linesize
[
1
]
*
((
scan8
[
i
]
-
scan8
[
0
])
>>
3
);
}
if
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
)
{
...
...
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