Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6c2feaea
Commit
6c2feaea
authored
Jul 27, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_chroma: davinci_resizer: optimize
Optimize division by 2 with a right shift by 1.
parent
01944f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/video_chroma/davinci.c
modules/video_chroma/davinci.c
+2
-2
No files found.
modules/video_chroma/davinci.c
View file @
6c2feaea
...
...
@@ -256,12 +256,12 @@ static int Init( filter_t *p_filter, picture_t *p_source, picture_t *p_dest )
*/
rsz_params_t
params
;
memset
(
&
params
,
0
,
sizeof
(
params
)
);
params
.
in_hsize
=
p_source
->
p
->
i_visible_pitch
/
2
;
params
.
in_hsize
=
p_source
->
p
->
i_visible_pitch
>>
1
;
params
.
in_vsize
=
p_source
->
p
->
i_visible_lines
;
params
.
in_pitch
=
p_source
->
p
->
i_pitch
;
params
.
inptyp
=
RSZ_INTYPE_YCBCR422_16BIT
;
params
.
pix_fmt
=
RSZ_PIX_FMT_YUYV
;
params
.
out_hsize
=
p_dest
->
p
->
i_visible_pitch
/
2
;
params
.
out_hsize
=
p_dest
->
p
->
i_visible_pitch
>>
1
;
params
.
out_vsize
=
p_dest
->
p
->
i_visible_lines
;
params
.
out_pitch
=
p_dest
->
p
->
i_pitch
;
...
...
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