FFmpeg
Loading...
Searching...
No Matches
amfdec.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 AVCODEC_AMFDEC_H
20#define AVCODEC_AMFDEC_H
21
22#include <AMF/core/Version.h>
23#include <AMF/core/Buffer.h>
24#include <AMF/core/Factory.h>
25#include <AMF/core/Context.h>
26#include <AMF/core/Surface.h>
27#include <AMF/components/Component.h>
28#include <AMF/components/VideoDecoderUVD.h>
29
30#include "avcodec.h"
32#include "libavutil/fifo.h"
33#include "libavutil/frame.h"
34#include "libavutil/opt.h"
36/**
37* AMF decoder context
38*/
39typedef struct AMFDecoderContext {
42
43 //decoder
44 AMFComponent *decoder; ///< AMF decoder object
45 AMF_SURFACE_FORMAT format; ///< AMF surface format
46
47 // common decoder options
55 int drain;
60 enum AMF_SURFACE_FORMAT output_format;
61
63
64#endif // AVCODEC_AMFDEC_H
Libavcodec external API header.
Main libavformat public API header.
A generic FIFO API.
reference-counted frame API
AVOptions.
AMF decoder context.
Definition amfdec.h:39
int skip_transfer_sav
Definition amfdec.h:54
int resolution_changed
Definition amfdec.h:56
AMF_SURFACE_FORMAT format
AMF surface format.
Definition amfdec.h:45
int surface_pool_size
Definition amfdec.h:50
AVBufferRef * device_ctx_ref
Definition amfdec.h:41
AVPacket * in_pkt
Definition amfdec.h:59
int dimensions_initialized
Definition amfdec.h:58
int smart_access_video
Definition amfdec.h:53
AMFComponent * decoder
AMF decoder object.
Definition amfdec.h:44
AVClass * avclass
Definition amfdec.h:40
enum AMF_SURFACE_FORMAT output_format
Definition amfdec.h:60
A reference to a data buffer.
Definition buffer.h:82
Describe the class of an AVClass context structure.
Definition log.h:76
This structure stores compressed data.
Definition packet.h:580