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
56087ec0
Commit
56087ec0
authored
Apr 11, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: drop a pointless indirection
parent
0e7772c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
h264.h
libavcodec/h264.h
+0
-4
h264_mb_template.c
libavcodec/h264_mb_template.c
+12
-6
h264_mc_template.c
libavcodec/h264_mc_template.c
+2
-2
h264_slice.c
libavcodec/h264_slice.c
+0
-3
No files found.
libavcodec/h264.h
View file @
56087ec0
...
...
@@ -644,10 +644,6 @@ typedef struct H264Context {
AVBufferPool
*
mb_type_pool
;
AVBufferPool
*
motion_val_pool
;
AVBufferPool
*
ref_index_pool
;
/* Motion Estimation */
qpel_mc_func
(
*
qpel_put
)[
16
];
qpel_mc_func
(
*
qpel_avg
)[
16
];
}
H264Context
;
extern
const
uint16_t
ff_h264_mb_sizes
[
4
];
...
...
libavcodec/h264_mb_template.c
View file @
56087ec0
...
...
@@ -173,14 +173,18 @@ static av_noinline void FUNC(hl_decode_mb)(const H264Context *h, H264SliceContex
}
else
{
if
(
chroma422
)
{
FUNC
(
hl_motion_422
)(
h
,
sl
,
dest_y
,
dest_cb
,
dest_cr
,
h
->
qpel_put
,
h
->
h264chroma
.
put_h264_chroma_pixels_tab
,
h
->
qpel_avg
,
h
->
h264chroma
.
avg_h264_chroma_pixels_tab
,
h
->
h264qpel
.
put_h264_qpel_pixels_tab
,
h
->
h264chroma
.
put_h264_chroma_pixels_tab
,
h
->
h264qpel
.
avg_h264_qpel_pixels_tab
,
h
->
h264chroma
.
avg_h264_chroma_pixels_tab
,
h
->
h264dsp
.
weight_h264_pixels_tab
,
h
->
h264dsp
.
biweight_h264_pixels_tab
);
}
else
{
FUNC
(
hl_motion_420
)(
h
,
sl
,
dest_y
,
dest_cb
,
dest_cr
,
h
->
qpel_put
,
h
->
h264chroma
.
put_h264_chroma_pixels_tab
,
h
->
qpel_avg
,
h
->
h264chroma
.
avg_h264_chroma_pixels_tab
,
h
->
h264qpel
.
put_h264_qpel_pixels_tab
,
h
->
h264chroma
.
put_h264_chroma_pixels_tab
,
h
->
h264qpel
.
avg_h264_qpel_pixels_tab
,
h
->
h264chroma
.
avg_h264_chroma_pixels_tab
,
h
->
h264dsp
.
weight_h264_pixels_tab
,
h
->
h264dsp
.
biweight_h264_pixels_tab
);
}
...
...
@@ -336,8 +340,10 @@ static av_noinline void FUNC(hl_decode_mb_444)(const H264Context *h, H264SliceCo
linesize
,
0
,
1
,
SIMPLE
,
PIXEL_SHIFT
);
}
else
{
FUNC
(
hl_motion_444
)(
h
,
sl
,
dest
[
0
],
dest
[
1
],
dest
[
2
],
h
->
qpel_put
,
h
->
h264chroma
.
put_h264_chroma_pixels_tab
,
h
->
qpel_avg
,
h
->
h264chroma
.
avg_h264_chroma_pixels_tab
,
h
->
h264qpel
.
put_h264_qpel_pixels_tab
,
h
->
h264chroma
.
put_h264_chroma_pixels_tab
,
h
->
h264qpel
.
avg_h264_qpel_pixels_tab
,
h
->
h264chroma
.
avg_h264_chroma_pixels_tab
,
h
->
h264dsp
.
weight_h264_pixels_tab
,
h
->
h264dsp
.
biweight_h264_pixels_tab
);
}
...
...
libavcodec/h264_mc_template.c
View file @
56087ec0
...
...
@@ -64,9 +64,9 @@ static void mc_part(const H264Context *h, H264SliceContext *sl,
static
void
MCFUNC
(
hl_motion
)(
const
H264Context
*
h
,
H264SliceContext
*
sl
,
uint8_t
*
dest_y
,
uint8_t
*
dest_cb
,
uint8_t
*
dest_cr
,
qpel_mc_func
(
*
qpix_put
)[
16
],
const
qpel_mc_func
(
*
qpix_put
)[
16
],
const
h264_chroma_mc_func
(
*
chroma_put
),
qpel_mc_func
(
*
qpix_avg
)[
16
],
const
qpel_mc_func
(
*
qpix_avg
)[
16
],
const
h264_chroma_mc_func
(
*
chroma_avg
),
const
h264_weight_func
*
weight_op
,
const
h264_biweight_func
*
weight_avg
)
...
...
libavcodec/h264_slice.c
View file @
56087ec0
...
...
@@ -934,9 +934,6 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
int
frame_num
,
droppable
,
picture_structure
;
int
mb_aff_frame
=
0
;
h
->
qpel_put
=
h
->
h264qpel
.
put_h264_qpel_pixels_tab
;
h
->
qpel_avg
=
h
->
h264qpel
.
avg_h264_qpel_pixels_tab
;
first_mb_in_slice
=
get_ue_golomb
(
&
sl
->
gb
);
if
(
first_mb_in_slice
==
0
)
{
// FIXME better field boundary detection
...
...
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