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
e0640333
Commit
e0640333
authored
Jan 14, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: Move Contexts used only in hscale.c into it
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
7b6e6895
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
hscale.c
libswscale/hscale.c
+15
-0
swscale_internal.h
libswscale/swscale_internal.h
+0
-15
No files found.
libswscale/hscale.c
View file @
e0640333
...
...
@@ -20,6 +20,21 @@
#include "swscale_internal.h"
/// Scaler instance data
typedef
struct
FilterContext
{
uint16_t
*
filter
;
int
*
filter_pos
;
int
filter_size
;
int
xInc
;
}
FilterContext
;
/// Color conversion instance data
typedef
struct
ColorContext
{
uint32_t
*
pal
;
}
ColorContext
;
static
int
lum_h_scale
(
SwsContext
*
c
,
SwsFilterDescriptor
*
desc
,
int
sliceY
,
int
sliceH
)
{
FilterContext
*
instance
=
desc
->
instance
;
...
...
libswscale/swscale_internal.h
View file @
e0640333
...
...
@@ -989,21 +989,6 @@ typedef struct SwsFilterDescriptor
int
(
*
process
)(
SwsContext
*
c
,
struct
SwsFilterDescriptor
*
desc
,
int
sliceY
,
int
sliceH
);
}
SwsFilterDescriptor
;
/// Color conversion instance data
typedef
struct
ColorContext
{
uint32_t
*
pal
;
}
ColorContext
;
/// Scaler instance data
typedef
struct
FilterContext
{
uint16_t
*
filter
;
int
*
filter_pos
;
int
filter_size
;
int
xInc
;
}
FilterContext
;
// warp input lines in the form (src + width*i + j) to slice format (line[i][j])
// relative=true means first line src[x][0] otherwise first line is src[x][lum/crh Y]
int
ff_init_slice_from_src
(
SwsSlice
*
s
,
uint8_t
*
src
[
4
],
int
stride
[
4
],
int
srcW
,
int
lumY
,
int
lumH
,
int
chrY
,
int
chrH
,
int
relative
);
...
...
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