blob: 3ddd0e0cd8a125a3b83f7b68a14e67d4e459cf85 [file] [log] [blame]
agsantos5aa39652020-08-11 18:18:04 -04001/**
Sébastien Blincb783e32021-02-12 11:34:10 -05002 * Copyright (C) 2020-2021 Savoir-faire Linux Inc.
agsantos5aa39652020-08-11 18:18:04 -04003 *
4 * Author: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
agsantos66e1e4e2020-07-28 14:48:46 -040020
agsantosc9181b42020-11-26 12:03:04 -050021#ifndef ACCEL_H
22#define ACCEL_H
23
agsantos5aa39652020-08-11 18:18:04 -040024extern "C" {
agsantos66e1e4e2020-07-28 14:48:46 -040025#include <libavutil/pixdesc.h>
26#include <libavutil/hwcontext.h>
27#include <libavutil/frame.h>
28#include <libavutil/buffer.h>
agsantos5aa39652020-08-11 18:18:04 -040029}
agsantos66e1e4e2020-07-28 14:48:46 -040030
agsantos66e1e4e2020-07-28 14:48:46 -040031extern "C" {
32#if LIBAVUTIL_VERSION_MAJOR < 56
agsantos1e7736c2020-10-28 14:39:13 -040033AVFrameSideData* av_frame_new_side_data_from_buf(AVFrame* frame,
34 enum AVFrameSideDataType type,
35 AVBufferRef* buf);
agsantos66e1e4e2020-07-28 14:48:46 -040036#endif
37}
38
agsantosc9181b42020-11-26 12:03:04 -050039AVFrame* transferToMainMemory(const AVFrame* framePtr, AVPixelFormat desiredFormat);
40
41#endif // ACCEL_H