Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
000f3512
Commit
000f3512
authored
May 21, 2021
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: move av_get_[exact_]bits_per_sample() to codec_id.h
parent
ff0a9604
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
+22
-18
APIchanges
doc/APIchanges
+4
-0
avcodec.h
libavcodec/avcodec.h
+0
-18
codec_id.h
libavcodec/codec_id.h
+18
-0
No files found.
doc/APIchanges
View file @
000f3512
...
...
@@ -14,6 +14,10 @@ libavutil: 2021-04-27
API changes, most recent first:
2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_id.h
Move av_get_bits_per_sample() and av_get_exact_bits_per_sample()
from avcodec.h to codec_id.h.
2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h defs.h
Add new installed header defs.h. The following definitions are moved
into it from avcodec.h:
...
...
libavcodec/avcodec.h
View file @
000f3512
...
...
@@ -3124,14 +3124,6 @@ int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels,
*/
void
avcodec_flush_buffers
(
AVCodecContext
*
avctx
);
/**
* Return codec bits per sample.
*
* @param[in] codec_id the codec
* @return Number of bits per sample or zero if unknown for the given codec.
*/
int
av_get_bits_per_sample
(
enum
AVCodecID
codec_id
);
/**
* Return the PCM codec associated with a sample format.
* @param be endianness, 0 for little, 1 for big,
...
...
@@ -3140,16 +3132,6 @@ int av_get_bits_per_sample(enum AVCodecID codec_id);
*/
enum
AVCodecID
av_get_pcm_codec
(
enum
AVSampleFormat
fmt
,
int
be
);
/**
* Return codec bits per sample.
* Only return non-zero if the bits per sample is exactly correct, not an
* approximation.
*
* @param[in] codec_id the codec
* @return Number of bits per sample or zero if unknown for the given codec.
*/
int
av_get_exact_bits_per_sample
(
enum
AVCodecID
codec_id
);
/**
* Return audio frame duration.
*
...
...
libavcodec/codec_id.h
View file @
000f3512
...
...
@@ -580,6 +580,24 @@ enum AVMediaType avcodec_get_type(enum AVCodecID codec_id);
*/
const
char
*
avcodec_get_name
(
enum
AVCodecID
id
);
/**
* Return codec bits per sample.
*
* @param[in] codec_id the codec
* @return Number of bits per sample or zero if unknown for the given codec.
*/
int
av_get_bits_per_sample
(
enum
AVCodecID
codec_id
);
/**
* Return codec bits per sample.
* Only return non-zero if the bits per sample is exactly correct, not an
* approximation.
*
* @param[in] codec_id the codec
* @return Number of bits per sample or zero if unknown for the given codec.
*/
int
av_get_exact_bits_per_sample
(
enum
AVCodecID
codec_id
);
/**
* @}
*/
...
...
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