FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qsvenc.h
Go to the documentation of this file.
1 /*
2  * Intel MediaSDK QSV encoder utility functions
3  *
4  * copyright (c) 2013 Yukinori Yamazoe
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVCODEC_QSVENC_H
24 #define AVCODEC_QSVENC_H
25 
26 #include <stdint.h>
27 #include <sys/types.h>
28 
29 #include <mfx/mfxvideo.h>
30 
31 #include "libavutil/avutil.h"
32 
33 #include "avcodec.h"
34 #include "qsv_internal.h"
35 
36 typedef struct QSVEncContext {
38 
40 
41  mfxSession session;
42  mfxSession internal_session;
43 
45 
46  mfxVideoParam param;
47  mfxFrameAllocRequest req;
48 
49  mfxExtCodingOption extco;
50  mfxExtBuffer *extparam[1];
51 
52  // options set by the caller
55  int profile;
56  int preset;
60 
62 
64  AVPacket *pkt, const AVFrame *frame, int *got_packet);
65 
67 
68 #endif /* AVCODEC_QSVENC_H */
This structure describes decoded (raw) audio or video data.
Definition: frame.h:171
mfxFrameAllocRequest req
Definition: qsvenc.h:47
int avbr_accuracy
Definition: qsvenc.h:57
QSVFrame * work_frames
Definition: qsvenc.h:39
external API header
int packet_size
Definition: qsvenc.h:44
static AVPacket pkt
mfxSession internal_session
Definition: qsvenc.h:42
mfxVideoParam param
Definition: qsvenc.h:46
mfxExtCodingOption extco
Definition: qsvenc.h:49
static AVFrame * frame
int ff_qsv_encode(AVCodecContext *avctx, QSVEncContext *q, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: qsvenc.c:362
Libavcodec external API header.
int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
Definition: qsvenc.c:423
AVCodecContext * avctx
Definition: qsvenc.h:37
int idr_interval
Definition: qsvenc.h:54
int preset
Definition: qsvenc.h:56
int ff_qsv_enc_init(AVCodecContext *avctx, QSVEncContext *q)
Definition: qsvenc.c:185
int async_depth
Definition: qsvenc.h:53
main external API structure.
Definition: avcodec.h:1241
int profile
Definition: qsvenc.h:55
int avbr_convergence
Definition: qsvenc.h:58
mfxExtBuffer * extparam[1]
Definition: qsvenc.h:50
This structure stores compressed data.
Definition: avcodec.h:1139
mfxSession session
Definition: qsvenc.h:41