Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
f84ef19f
Commit
f84ef19f
authored
Feb 15, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/kerndeint: move is_rgb_packed definition to the internal context
No need to recompute it for each new frame.
parent
51ba843f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vf_kerndeint.c
libavfilter/vf_kerndeint.c
+3
-1
No files found.
libavfilter/vf_kerndeint.c
View file @
f84ef19f
...
...
@@ -40,6 +40,7 @@ typedef struct {
int
frame
;
///< frame count, starting from 0
int
thresh
,
map
,
order
,
sharp
,
twoway
;
int
vsub
;
int
is_packed_rgb
;
uint8_t
*
tmp_data
[
4
];
///< temporary plane data buffer
int
tmp_linesize
[
4
];
///< temporary plane byte linesize
int
tmp_bwidth
[
4
];
///< temporary plane byte width
...
...
@@ -100,6 +101,7 @@ static int config_props(AVFilterLink *inlink)
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
inlink
->
format
);
int
ret
;
kerndeint
->
is_packed_rgb
=
av_pix_fmt_desc_get
(
inlink
->
format
)
->
flags
&
PIX_FMT_RGB
;
kerndeint
->
vsub
=
desc
->
log2_chroma_h
;
ret
=
av_image_alloc
(
kerndeint
->
tmp_data
,
kerndeint
->
tmp_linesize
,
...
...
@@ -150,7 +152,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
const
int
sharp
=
kerndeint
->
sharp
;
const
int
twoway
=
kerndeint
->
twoway
;
const
int
is_packed_rgb
=
av_pix_fmt_desc_get
(
inlink
->
format
)
->
flags
&
PIX_FMT_RGB
;
const
int
is_packed_rgb
=
kerndeint
->
is_packed_rgb
;
outpic
=
ff_get_video_buffer
(
outlink
,
AV_PERM_WRITE
|
AV_PERM_ALIGN
,
outlink
->
w
,
outlink
->
h
);
if
(
!
outpic
)
{
...
...
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