FFmpeg
Loading...
Searching...
No Matches
vf_amf_common.h
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef AVFILTER_AMF_COMMON_H
20#define AVFILTER_AMF_COMMON_H
21
22#include "avfilter.h"
23
24#include "AMF/core/Surface.h"
25#include "AMF/components/Component.h"
28
70
73int amf_init_filter_config(AVFilterLink *outlink, enum AVPixelFormat *in_format);
74int amf_copy_surface(AVFilterContext *avctx, const AVFrame *frame, AMFSurface* surface);
75void amf_free_amfsurface(void *opaque, uint8_t *data);
76AVFrame *amf_amfsurface_to_avframe(AVFilterContext *avctx, AMFSurface* pSurface);
77int amf_avframe_to_amfsurface(AVFilterContext *avctx, const AVFrame *frame, AMFSurface** ppSurface);
78int amf_setup_input_output_formats(AVFilterContext *avctx, const enum AVPixelFormat *input_pix_fmts, const enum AVPixelFormat *output_pix_fmts);
80
81#endif /* AVFILTER_AMF_COMMON_H */
Main libavfilter public API header.
static AVFrame * frame
const char data[16]
Definition mxf.c:149
AVPixelFormat
Pixel format.
Definition pixfmt.h:71
enum AVPixelFormat format
AVContentLightMetadata * light_meta
AVMasteringDisplayMetadata * master_display
AVBufferRef * hwframes_out_ref
AVBufferRef * amf_device_ref
AVAMFDeviceContext * amf_device_ctx
AVBufferRef * hwdevice_ref
AVBufferRef * hwframes_in_ref
int force_original_aspect_ratio
AMFComponent * component
This struct is allocated as AVHWDeviceContext.hwctx.
A reference to a data buffer.
Definition buffer.h:82
Describe the class of an AVClass context structure.
Definition log.h:76
Content light level needed by to transmit HDR over HDMI (CTA-861.3).
An instance of a filter.
Definition avfilter.h:273
This structure describes decoded (raw) audio or video data.
Definition frame.h:472
Mastering display metadata capable of representing the color volume of the display used to master the...
void amf_free_amfsurface(void *opaque, uint8_t *data)
AVFrame * amf_amfsurface_to_avframe(AVFilterContext *avctx, AMFSurface *pSurface)
int amf_copy_surface(AVFilterContext *avctx, const AVFrame *frame, AMFSurface *surface)
int amf_avframe_to_amfsurface(AVFilterContext *avctx, const AVFrame *frame, AMFSurface **ppSurface)
int amf_filter_init(AVFilterContext *avctx)
int amf_init_filter_config(AVFilterLink *outlink, enum AVPixelFormat *in_format)
int amf_filter_filter_frame(AVFilterLink *inlink, AVFrame *in)
int amf_setup_input_output_formats(AVFilterContext *avctx, const enum AVPixelFormat *input_pix_fmts, const enum AVPixelFormat *output_pix_fmts)
void amf_filter_uninit(AVFilterContext *avctx)