1
0
Fork 0
android_external_ffmpeg_codec2/ffmpeg_utils/ffmpeg_utils.h
2025-06-24 22:41:51 -05:00

46 lines
1.3 KiB
C++

/*
* Copyright 2012 Michael Chen <omxcodec@gmail.com>
* Copyright 2015 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef FFMPEG_UTILS_H_
#define FFMPEG_UTILS_H_
#include <utils/Mutex.h>
extern "C" {
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
}
namespace android {
void nam_av_log_callback(void* ptr, int level, const char* fmt, va_list vl);
status_t initFFmpeg();
void deInitFFmpeg();
bool setup_vorbis_extradata(uint8_t **extradata, int *extradata_size,
const uint8_t *header_start[3], const int header_len[3]);
} // namespace android
#endif // FFMPEG_UTILS_H_