chromium/third_party/ffmpeg/libavcodec/hwconfig.h

/*
 * 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 AVCODEC_HWCONFIG_H
#define AVCODEC_HWCONFIG_H

#include "avcodec.h"
#include "hwaccels.h"

AVCodecHWConfigInternal;

void ff_hwaccel_uninit(AVCodecContext *avctx);

// These macros are used to simplify AVCodecHWConfigInternal definitions.

#define HW_CONFIG_HWACCEL(device, frames, ad_hoc, format, device_type_, name)

#define HW_CONFIG_INTERNAL(format)

#define HWACCEL_DXVA2(codec)
#define HWACCEL_D3D11VA2(codec)
#define HWACCEL_NVDEC(codec)
#define HWACCEL_VAAPI(codec)
#define HWACCEL_VDPAU(codec)
#define HWACCEL_VIDEOTOOLBOX(codec)
#define HWACCEL_VULKAN(codec)
#define HWACCEL_D3D11VA(codec)
#define HWACCEL_D3D12VA(codec)

#define HW_CONFIG_ENCODER(device, frames, ad_hoc, format, device_type_)

#define HW_CONFIG_ENCODER_DEVICE(format, device_type_)

#define HW_CONFIG_ENCODER_FRAMES(format, device_type_)

#endif /* AVCODEC_HWCONFIG_H */