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
7bb98b75
Commit
7bb98b75
authored
Dec 26, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: implement ff_all_channel_counts().
parent
b6afb2dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
formats.c
libavfilter/formats.c
+9
-0
formats.h
libavfilter/formats.h
+7
-1
No files found.
libavfilter/formats.c
View file @
7bb98b75
...
...
@@ -376,6 +376,15 @@ AVFilterChannelLayouts *ff_all_channel_layouts(void)
return
ret
;
}
AVFilterChannelLayouts
*
ff_all_channel_counts
(
void
)
{
AVFilterChannelLayouts
*
ret
=
av_mallocz
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
NULL
;
ret
->
all_layouts
=
ret
->
all_counts
=
1
;
return
ret
;
}
#define FORMATS_REF(f, ref) \
do { \
*ref = f; \
...
...
libavfilter/formats.h
View file @
7bb98b75
...
...
@@ -123,11 +123,17 @@ AVFilterFormats *ff_merge_samplerates(AVFilterFormats *a,
/**
* Construct an empty AVFilterChannelLayouts/AVFilterFormats struct --
* representing any channel layout/sample rate.
* representing any channel layout
(with known disposition)
/sample rate.
*/
AVFilterChannelLayouts
*
ff_all_channel_layouts
(
void
);
AVFilterFormats
*
ff_all_samplerates
(
void
);
/**
* Construct an AVFilterChannelLayouts coding for any channel layout, with
* known or unknown disposition.
*/
AVFilterChannelLayouts
*
ff_all_channel_counts
(
void
);
AVFilterChannelLayouts
*
avfilter_make_format64_list
(
const
int64_t
*
fmts
);
...
...
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