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
0bcea7b5
Commit
0bcea7b5
authored
Mar 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_pp: use new API to access qp table
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fa80967a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vf_pp.c
libavfilter/vf_pp.c
+6
-3
No files found.
libavfilter/vf_pp.c
View file @
0bcea7b5
...
...
@@ -108,6 +108,8 @@ static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf)
const
int
aligned_w
=
FFALIGN
(
outlink
->
w
,
8
);
const
int
aligned_h
=
FFALIGN
(
outlink
->
h
,
8
);
AVFrame
*
outbuf
;
int
qstride
,
qp_type
;
int8_t
*
qp_table
;
outbuf
=
ff_get_video_buffer
(
outlink
,
aligned_w
,
aligned_h
);
if
(
!
outbuf
)
{
...
...
@@ -115,15 +117,16 @@ static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf)
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
outbuf
,
inbuf
);
qp_table
=
av_frame_get_qp_table
(
inbuf
,
&
qstride
,
&
qp_type
);
pp_postprocess
((
const
uint8_t
**
)
inbuf
->
data
,
inbuf
->
linesize
,
outbuf
->
data
,
outbuf
->
linesize
,
aligned_w
,
outlink
->
h
,
outbuf
->
qscale
_table
,
outbuf
->
qstride
,
qp
_table
,
qstride
,
pp
->
modes
[
pp
->
mode_id
],
pp
->
pp_ctx
,
outbuf
->
pict_type
);
outbuf
->
pict_type
|
(
qp_type
?
PP_PICT_TYPE_QP2
:
0
)
);
av_frame_free
(
&
inbuf
);
return
ff_filter_frame
(
outlink
,
outbuf
);
...
...
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