Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
abc8110f
Commit
abc8110f
authored
Jul 17, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: add avcodec_chroma_pos_to_enum()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b7397857
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
APIchanges
doc/APIchanges
+4
-0
avcodec.h
libavcodec/avcodec.h
+11
-0
utils.c
libavcodec/utils.c
+11
-0
version.h
libavcodec/version.h
+2
-2
No files found.
doc/APIchanges
View file @
abc8110f
...
...
@@ -15,6 +15,10 @@ libavutil: 2012-10-22
API changes, most recent first:
2013-07-XX - xxxxxxx - XXXXXXXXXXXXXX - avcodec.h
Add avcodec_chroma_pos_to_enum()
Add avcodec_enum_to_chroma_pos()
2013-07-03 - xxxxxxx - lavfi 3.78.100 - avfilter.h
Deprecate avfilter_graph_parse() in favor of the equivalent
avfilter_graph_parse_ptr().
...
...
libavcodec/avcodec.h
View file @
abc8110f
...
...
@@ -3617,6 +3617,17 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
*/
int
avcodec_enum_to_chroma_pos
(
int
*
xpos
,
int
*
ypos
,
enum
AVChromaLocation
pos
);
/**
* Converts swscale x/y chroma position to AVChromaLocation.
*
* The positions represent the chroma (0,0) position in a coordinates system
* with luma (0,0) representing the origin and luma(1,1) representing 256,256
*
* @param xpos horizontal chroma sample position
* @param ypos vertical chroma sample position
*/
enum
AVChromaLocation
avcodec_chroma_pos_to_enum
(
int
xpos
,
int
ypos
);
#if FF_API_OLD_DECODE_AUDIO
/**
* Wrapper function which calls avcodec_decode_audio4.
...
...
libavcodec/utils.c
View file @
abc8110f
...
...
@@ -350,6 +350,17 @@ int avcodec_enum_to_chroma_pos(int *xpos, int *ypos, enum AVChromaLocation pos)
return
0
;
}
enum
AVChromaLocation
avcodec_chroma_pos_to_enum
(
int
xpos
,
int
ypos
)
{
int
pos
,
xout
,
yout
;
for
(
pos
=
AVCHROMA_LOC_UNSPECIFIED
+
1
;
pos
<
AVCHROMA_LOC_NB
;
pos
++
)
{
if
(
avcodec_enum_to_chroma_pos
(
&
xout
,
&
yout
,
pos
)
==
0
&&
xout
==
xpos
&&
yout
==
ypos
)
return
pos
;
}
return
AVCHROMA_LOC_UNSPECIFIED
;
}
int
avcodec_fill_audio_frame
(
AVFrame
*
frame
,
int
nb_channels
,
enum
AVSampleFormat
sample_fmt
,
const
uint8_t
*
buf
,
int
buf_size
,
int
align
)
...
...
libavcodec/version.h
View file @
abc8110f
...
...
@@ -29,8 +29,8 @@
#include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 1
8
#define LIBAVCODEC_VERSION_MICRO 10
2
#define LIBAVCODEC_VERSION_MINOR 1
9
#define LIBAVCODEC_VERSION_MICRO 10
0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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