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
3532dd52
Commit
3532dd52
authored
11 years ago
by
Nicolas George
Browse files
Options
Downloads
Patches
Plain Diff
lavu/rational: add syntactic sugar.
Add a function to create a rational and macros for common values.
parent
56072421
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavutil/rational.h
+11
-0
11 additions, 0 deletions
libavutil/rational.h
libavutil/version.h
+1
-1
1 addition, 1 deletion
libavutil/version.h
with
15 additions
and
1 deletion
doc/APIchanges
+
3
−
0
View file @
3532dd52
...
@@ -15,6 +15,9 @@ libavutil: 2012-10-22
...
@@ -15,6 +15,9 @@ libavutil: 2012-10-22
API changes, most recent first:
API changes, most recent first:
2014-01-19 - xxxxxxx - lavu 52.63.100 - rational.h
Add av_make_q() function.
2013-12-xx - xxxxxxx - lavu 53.2.0 - frame.h
2013-12-xx - xxxxxxx - lavu 53.2.0 - frame.h
Add AV_FRAME_DATA_MATRIXENCODING value to the AVFrameSideDataType enum, which
Add AV_FRAME_DATA_MATRIXENCODING value to the AVFrameSideDataType enum, which
identifies AVMatrixEncoding data.
identifies AVMatrixEncoding data.
...
...
This diff is collapsed.
Click to expand it.
libavutil/rational.h
+
11
−
0
View file @
3532dd52
...
@@ -45,6 +45,17 @@ typedef struct AVRational{
...
@@ -45,6 +45,17 @@ typedef struct AVRational{
int
den
;
///< denominator
int
den
;
///< denominator
}
AVRational
;
}
AVRational
;
/**
* Create a rational.
* Useful for compilers that do not support compound literals.
* @note The return value is not reduced.
*/
static
inline
AVRational
av_make_q
(
int
num
,
int
den
)
{
AVRational
r
=
{
num
,
den
};
return
r
;
}
/**
/**
* Compare two rationals.
* Compare two rationals.
* @param a first rational
* @param a first rational
...
...
This diff is collapsed.
Click to expand it.
libavutil/version.h
+
1
−
1
View file @
3532dd52
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
*/
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR 6
2
#define LIBAVUTIL_VERSION_MINOR 6
3
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
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