Path: blob/master/dep/ffmpeg/include/libavcodec/hwcontext_amf.h
5196 views
/*1* This file is part of FFmpeg.2*3* FFmpeg is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* FFmpeg is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with FFmpeg; if not, write to the Free Software15* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA16*/171819#ifndef AVUTIL_HWCONTEXT_AMF_H20#define AVUTIL_HWCONTEXT_AMF_H2122#include "pixfmt.h"23#include "hwcontext.h"24#include <AMF/core/Factory.h>25#include <AMF/core/Context.h>26#include <AMF/core/Trace.h>27#include <AMF/core/Debug.h>2829/**30* This struct is allocated as AVHWDeviceContext.hwctx31*/32typedef struct AVAMFDeviceContext {33void * library;34AMFFactory *factory;35void *trace_writer;3637int64_t version; ///< version of AMF runtime38AMFContext *context;39AMF_MEMORY_TYPE memory_type;40} AVAMFDeviceContext;4142enum AMF_SURFACE_FORMAT av_av_to_amf_format(enum AVPixelFormat fmt);43enum AVPixelFormat av_amf_to_av_format(enum AMF_SURFACE_FORMAT fmt);4445#endif /* AVUTIL_HWCONTEXT_AMF_H */464748