Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
91013efa
Commit
91013efa
authored
Dec 16, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/image.c: no need to restart a filter when only the image size changes.
parent
7fbe765a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/misc/image.c
src/misc/image.c
+9
-7
No files found.
src/misc/image.c
View file @
91013efa
...
...
@@ -137,13 +137,7 @@ static picture_t *ImageRead( image_handler_t *p_image, block_t *p_block,
if
(
p_image
->
p_filter
)
if
(
p_image
->
p_filter
->
fmt_in
.
video
.
i_chroma
!=
p_image
->
p_dec
->
fmt_out
.
video
.
i_chroma
||
p_image
->
p_filter
->
fmt_in
.
video
.
i_width
!=
p_image
->
p_dec
->
fmt_out
.
video
.
i_width
||
p_image
->
p_filter
->
fmt_in
.
video
.
i_height
!=
p_image
->
p_dec
->
fmt_out
.
video
.
i_height
||
p_image
->
p_filter
->
fmt_out
.
video
.
i_chroma
!=
p_fmt_out
->
i_chroma
||
p_image
->
p_filter
->
fmt_out
.
video
.
i_width
!=
p_fmt_out
->
i_width
||
p_image
->
p_filter
->
fmt_out
.
video
.
i_height
!=
p_fmt_out
->
i_height
)
p_image
->
p_filter
->
fmt_out
.
video
.
i_chroma
!=
p_fmt_out
->
i_chroma
)
{
/* We need to restart a new filter */
DeleteFilter
(
p_image
->
p_filter
);
...
...
@@ -163,6 +157,14 @@ static picture_t *ImageRead( image_handler_t *p_image, block_t *p_block,
return
NULL
;
}
}
else
{
/* Filters should handle on-the-fly size changes */
p_image
->
p_filter
->
fmt_in
=
p_image
->
p_dec
->
fmt_out
;
p_image
->
p_filter
->
fmt_out
=
p_image
->
p_dec
->
fmt_out
;
p_image
->
p_filter
->
fmt_out
.
i_codec
=
p_fmt_out
->
i_chroma
;
p_image
->
p_filter
->
fmt_out
.
video
=
*
p_fmt_out
;
}
p_pic
=
p_image
->
p_filter
->
pf_video_filter
(
p_image
->
p_filter
,
p_pic
);
*
p_fmt_out
=
p_image
->
p_filter
->
fmt_out
.
video
;
...
...
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