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
b33c3bc1
Commit
b33c3bc1
authored
Mar 27, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sepia: cleanups
Remove tabs, trailing spaces, and write-only variables
parent
964fc34b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
modules/video_filter/sepia.c
modules/video_filter/sepia.c
+7
-9
No files found.
modules/video_filter/sepia.c
View file @
b33c3bc1
...
@@ -31,9 +31,9 @@
...
@@ -31,9 +31,9 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <assert.h>
#include <assert.h>
#include <vlc_filter.h>
#include "filter_picture.h"
#include "filter_picture.h"
/*****************************************************************************
/*****************************************************************************
...
@@ -268,7 +268,7 @@ static void PlanarI420Sepia( picture_t *p_pic, picture_t *p_outpic,
...
@@ -268,7 +268,7 @@ static void PlanarI420Sepia( picture_t *p_pic, picture_t *p_outpic,
static
void
PackedYUVSepia
(
picture_t
*
p_pic
,
picture_t
*
p_outpic
,
static
void
PackedYUVSepia
(
picture_t
*
p_pic
,
picture_t
*
p_outpic
,
int
i_intensity
)
int
i_intensity
)
{
{
uint8_t
*
p_in
,
*
p_in_end
,
*
p_line_
start
,
*
p_line_
end
,
*
p_out
;
uint8_t
*
p_in
,
*
p_in_end
,
*
p_line_end
,
*
p_out
;
int
i_yindex
=
1
,
i_uindex
=
2
,
i_vindex
=
0
;
int
i_yindex
=
1
,
i_uindex
=
2
,
i_vindex
=
0
;
GetPackedYuvOffsets
(
p_outpic
->
format
.
i_chroma
,
GetPackedYuvOffsets
(
p_outpic
->
format
.
i_chroma
,
...
@@ -281,7 +281,6 @@ static void PackedYUVSepia( picture_t *p_pic, picture_t *p_outpic,
...
@@ -281,7 +281,6 @@ static void PackedYUVSepia( picture_t *p_pic, picture_t *p_outpic,
while
(
p_in
<
p_in_end
)
while
(
p_in
<
p_in_end
)
{
{
p_line_start
=
p_in
;
p_line_end
=
p_in
+
p_pic
->
p
[
0
].
i_visible_pitch
;
p_line_end
=
p_in
+
p_pic
->
p
[
0
].
i_visible_pitch
;
while
(
p_in
<
p_line_end
)
while
(
p_in
<
p_line_end
)
{
{
...
@@ -307,7 +306,7 @@ static void PackedYUVSepia( picture_t *p_pic, picture_t *p_outpic,
...
@@ -307,7 +306,7 @@ static void PackedYUVSepia( picture_t *p_pic, picture_t *p_outpic,
*****************************************************************************/
*****************************************************************************/
static
void
RVSepia
(
picture_t
*
p_pic
,
picture_t
*
p_outpic
,
int
i_intensity
)
static
void
RVSepia
(
picture_t
*
p_pic
,
picture_t
*
p_outpic
,
int
i_intensity
)
{
{
uint8_t
*
p_in
,
*
p_in_end
,
*
p_line_
start
,
*
p_line_
end
,
*
p_out
;
uint8_t
*
p_in
,
*
p_in_end
,
*
p_line_end
,
*
p_out
;
int
i_r
,
i_g
,
i_b
;
int
i_r
,
i_g
,
i_b
;
bool
b_isRV32
=
p_pic
->
format
.
i_chroma
==
VLC_CODEC_RGB32
;
bool
b_isRV32
=
p_pic
->
format
.
i_chroma
==
VLC_CODEC_RGB32
;
int
i_rindex
=
0
,
i_gindex
=
1
,
i_bindex
=
2
;
int
i_rindex
=
0
,
i_gindex
=
1
,
i_bindex
=
2
;
...
@@ -321,7 +320,6 @@ static void RVSepia( picture_t *p_pic, picture_t *p_outpic, int i_intensity )
...
@@ -321,7 +320,6 @@ static void RVSepia( picture_t *p_pic, picture_t *p_outpic, int i_intensity )
while
(
p_in
<
p_in_end
)
while
(
p_in
<
p_in_end
)
{
{
p_line_start
=
p_in
;
p_line_end
=
p_in
+
p_pic
->
p
[
0
].
i_visible_pitch
;
p_line_end
=
p_in
+
p_pic
->
p
[
0
].
i_visible_pitch
;
while
(
p_in
<
p_line_end
)
while
(
p_in
<
p_line_end
)
{
{
...
...
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