Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
bb789016
Commit
bb789016
authored
10 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
swscale: Undeprecate sws_getContext()
sws_getCachedContext is not a full replacement for the function.
parent
ad1ee5fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libswscale/swscale.h
+0
-3
0 additions, 3 deletions
libswscale/swscale.h
libswscale/utils.c
+0
-2
0 additions, 2 deletions
libswscale/utils.c
libswscale/version.h
+1
-4
1 addition, 4 deletions
libswscale/version.h
with
4 additions
and
9 deletions
doc/APIchanges
+
3
−
0
View file @
bb789016
...
@@ -13,6 +13,9 @@ libavutil: 2013-12-xx
...
@@ -13,6 +13,9 @@ libavutil: 2013-12-xx
API changes, most recent first:
API changes, most recent first:
2014-08-xx - xxxxxxx - lsws 2.1.3 - swscale.h
sws_getCachedContext is not going to be removed in the future.
2014-08-xx - xxxxxxx - lavc 55.57.3 - avcodec.h
2014-08-xx - xxxxxxx - lavc 55.57.3 - avcodec.h
reordered_opaque is not going to be removed in the future.
reordered_opaque is not going to be removed in the future.
...
...
This diff is collapsed.
Click to expand it.
libswscale/swscale.h
+
0
−
3
View file @
bb789016
...
@@ -174,7 +174,6 @@ int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFi
...
@@ -174,7 +174,6 @@ int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFi
*/
*/
void
sws_freeContext
(
struct
SwsContext
*
swsContext
);
void
sws_freeContext
(
struct
SwsContext
*
swsContext
);
#if FF_API_SWS_GETCONTEXT
/**
/**
* Allocate and return an SwsContext. You need it to perform
* Allocate and return an SwsContext. You need it to perform
* scaling/conversion operations using sws_scale().
* scaling/conversion operations using sws_scale().
...
@@ -189,13 +188,11 @@ void sws_freeContext(struct SwsContext *swsContext);
...
@@ -189,13 +188,11 @@ void sws_freeContext(struct SwsContext *swsContext);
* @return a pointer to an allocated context, or NULL in case of error
* @return a pointer to an allocated context, or NULL in case of error
* @note this function is to be removed after a saner alternative is
* @note this function is to be removed after a saner alternative is
* written
* written
* @deprecated Use sws_getCachedContext() instead.
*/
*/
struct
SwsContext
*
sws_getContext
(
int
srcW
,
int
srcH
,
enum
AVPixelFormat
srcFormat
,
struct
SwsContext
*
sws_getContext
(
int
srcW
,
int
srcH
,
enum
AVPixelFormat
srcFormat
,
int
dstW
,
int
dstH
,
enum
AVPixelFormat
dstFormat
,
int
dstW
,
int
dstH
,
enum
AVPixelFormat
dstFormat
,
int
flags
,
SwsFilter
*
srcFilter
,
int
flags
,
SwsFilter
*
srcFilter
,
SwsFilter
*
dstFilter
,
const
double
*
param
);
SwsFilter
*
dstFilter
,
const
double
*
param
);
#endif
/**
/**
* Scale the image slice in srcSlice and put the resulting scaled
* Scale the image slice in srcSlice and put the resulting scaled
...
...
This diff is collapsed.
Click to expand it.
libswscale/utils.c
+
0
−
2
View file @
bb789016
...
@@ -1318,7 +1318,6 @@ fail: // FIXME replace things by appropriate error codes
...
@@ -1318,7 +1318,6 @@ fail: // FIXME replace things by appropriate error codes
return
-
1
;
return
-
1
;
}
}
#if FF_API_SWS_GETCONTEXT
SwsContext
*
sws_getContext
(
int
srcW
,
int
srcH
,
enum
AVPixelFormat
srcFormat
,
SwsContext
*
sws_getContext
(
int
srcW
,
int
srcH
,
enum
AVPixelFormat
srcFormat
,
int
dstW
,
int
dstH
,
enum
AVPixelFormat
dstFormat
,
int
dstW
,
int
dstH
,
enum
AVPixelFormat
dstFormat
,
int
flags
,
SwsFilter
*
srcFilter
,
int
flags
,
SwsFilter
*
srcFilter
,
...
@@ -1354,7 +1353,6 @@ SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat,
...
@@ -1354,7 +1353,6 @@ SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat,
return
c
;
return
c
;
}
}
#endif
SwsFilter
*
sws_getDefaultFilter
(
float
lumaGBlur
,
float
chromaGBlur
,
SwsFilter
*
sws_getDefaultFilter
(
float
lumaGBlur
,
float
chromaGBlur
,
float
lumaSharpen
,
float
chromaSharpen
,
float
lumaSharpen
,
float
chromaSharpen
,
...
...
This diff is collapsed.
Click to expand it.
libswscale/version.h
+
1
−
4
View file @
bb789016
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define LIBSWSCALE_VERSION_MAJOR 2
#define LIBSWSCALE_VERSION_MAJOR 2
#define LIBSWSCALE_VERSION_MINOR 1
#define LIBSWSCALE_VERSION_MINOR 1
#define LIBSWSCALE_VERSION_MICRO
2
#define LIBSWSCALE_VERSION_MICRO
3
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
LIBSWSCALE_VERSION_MINOR, \
LIBSWSCALE_VERSION_MINOR, \
...
@@ -46,9 +46,6 @@
...
@@ -46,9 +46,6 @@
* the public API and may change, break or disappear at any time.
* the public API and may change, break or disappear at any time.
*/
*/
#ifndef FF_API_SWS_GETCONTEXT
#define FF_API_SWS_GETCONTEXT (LIBSWSCALE_VERSION_MAJOR < 3)
#endif
#ifndef FF_API_SWS_CPU_CAPS
#ifndef FF_API_SWS_CPU_CAPS
#define FF_API_SWS_CPU_CAPS (LIBSWSCALE_VERSION_MAJOR < 3)
#define FF_API_SWS_CPU_CAPS (LIBSWSCALE_VERSION_MAJOR < 3)
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment