Searched refs:avFormatContext (Results 1 – 2 of 2) sorted by relevance
/external/oboe/samples/RhythmGame/src/main/cpp/audio/ |
D | FFMpegExtractor.cpp | 67 FFMpegExtractor::createAVFormatContext(AVIOContext *avioContext, AVFormatContext **avFormatContext)… in createAVFormatContext() argument 69 *avFormatContext = avformat_alloc_context(); in createAVFormatContext() 70 (*avFormatContext)->pb = avioContext; in createAVFormatContext() 72 if (*avFormatContext == nullptr){ in createAVFormatContext() 80 bool FFMpegExtractor::openAVFormatContext(AVFormatContext *avFormatContext) { in openAVFormatContext() argument 82 int result = avformat_open_input(&avFormatContext, in openAVFormatContext() 96 bool FFMpegExtractor::getStreamInfo(AVFormatContext *avFormatContext) { in getStreamInfo() argument 98 int result = avformat_find_stream_info(avFormatContext, nullptr); in getStreamInfo() 107 AVStream *FFMpegExtractor::getBestAudioStream(AVFormatContext *avFormatContext) { in getBestAudioStream() argument 109 int streamIndex = av_find_best_stream(avFormatContext, AVMEDIA_TYPE_AUDIO, -1, -1, nullptr, 0); in getBestAudioStream() [all …]
|
D | FFMpegExtractor.h | 39 static bool createAVFormatContext(AVIOContext *avioContext, AVFormatContext **avFormatContext); 41 static bool openAVFormatContext(AVFormatContext *avFormatContext); 43 static int32_t cleanup(AVIOContext *avioContext, AVFormatContext *avFormatContext); 45 static bool getStreamInfo(AVFormatContext *avFormatContext); 47 static AVStream *getBestAudioStream(AVFormatContext *avFormatContext);
|