mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
The following Cflags has been added to libmfx.pc, so mfx/ prefix is no
longer needed when including mfx headers in FFmpeg.
Cflags: -I${includedir} -I${includedir}/mfx
Some old versions of libmfx have the following Cflags in libmfx.pc
Cflags: -I${includedir}
We may add -I${includedir}/mfx to CFLAGS when running 'configure
--enable-libmfx' for old versions of libmfx, if so, mfx headers without
mfx/ prefix can be included too.
If libmfx comes without pkg-config support, we may do a small change to
the settings of the environment(e.g. set -I/opt/intel/mediasdk/include/mfx
instead of -I/opt/intel/mediasdk/include to CFLAGS), then the build can
find the mfx headers without mfx/ prefix
After applying this change, we won't need to change #include for mfx
headers when mfx headers are installed under a new directory.
This is in preparation for oneVPL support (mfx headers in oneVPL are
installed under vpl directory)
53 lines
1.5 KiB
C
53 lines
1.5 KiB
C
/*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVUTIL_HWCONTEXT_QSV_H
|
|
#define AVUTIL_HWCONTEXT_QSV_H
|
|
|
|
#include <mfxvideo.h>
|
|
|
|
/**
|
|
* @file
|
|
* An API-specific header for AV_HWDEVICE_TYPE_QSV.
|
|
*
|
|
* This API does not support dynamic frame pools. AVHWFramesContext.pool must
|
|
* contain AVBufferRefs whose data pointer points to an mfxFrameSurface1 struct.
|
|
*/
|
|
|
|
/**
|
|
* This struct is allocated as AVHWDeviceContext.hwctx
|
|
*/
|
|
typedef struct AVQSVDeviceContext {
|
|
mfxSession session;
|
|
} AVQSVDeviceContext;
|
|
|
|
/**
|
|
* This struct is allocated as AVHWFramesContext.hwctx
|
|
*/
|
|
typedef struct AVQSVFramesContext {
|
|
mfxFrameSurface1 *surfaces;
|
|
int nb_surfaces;
|
|
|
|
/**
|
|
* A combination of MFX_MEMTYPE_* describing the frame pool.
|
|
*/
|
|
int frame_type;
|
|
} AVQSVFramesContext;
|
|
|
|
#endif /* AVUTIL_HWCONTEXT_QSV_H */
|
|
|