Skip to content

Commit 6a83814

Browse files
author
Clement Champetier
committed
util: renamed getPixelSampleFormats to getSupportedPixel/SampleFormats
1 parent 046cf9c commit 6a83814

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/AvTranscoder/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bool matchFormat(const std::string& format, const std::string& filename)
1818
return avOutputFormat != NULL;
1919
}
2020

21-
std::vector<std::string> getPixelFormats(const std::string& videoCodecName)
21+
std::vector<std::string> getSupportedPixelFormats(const std::string& videoCodecName)
2222
{
2323
std::vector<std::string> pixelFormats;
2424

@@ -63,7 +63,7 @@ std::vector<std::string> getPixelFormats(const std::string& videoCodecName)
6363
return pixelFormats;
6464
}
6565

66-
std::vector<std::string> getSampleFormats(const std::string& audioCodecName)
66+
std::vector<std::string> getSupportedSampleFormats(const std::string& audioCodecName)
6767
{
6868
std::vector<std::string> sampleFormats;
6969

src/AvTranscoder/util.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ bool AvExport matchFormat(const std::string& format, const std::string& filename
2929
* @param videoCodecName: the video codec name (empty if not indicated, and so get all pixel formats supported by all video
3030
* codecs).
3131
*/
32-
std::vector<std::string> AvExport getPixelFormats(const std::string& videoCodecName = "");
32+
std::vector<std::string> AvExport getSupportedPixelFormats(const std::string& videoCodecName = "");
3333

3434
/**
3535
* @brief Get sample format supported by an audio codec.
3636
* @param audioCodecName: the audio codec name (empty if not indicated, and so get all sample formats supported by all audio
3737
* codecs).
3838
*/
39-
std::vector<std::string> AvExport getSampleFormats(const std::string& audioCodecName = "");
39+
std::vector<std::string> AvExport getSupportedSampleFormats(const std::string& audioCodecName = "");
4040

4141
/**
4242
* @brief Get the corresponding AVPixelFormat from the pixel format name

0 commit comments

Comments
 (0)