FFmpeg
Loading...
Searching...
No Matches
mediacodecdec_common.h
Go to the documentation of this file.
1/*
2 * Android MediaCodec decoder
3 *
4 * Copyright (c) 2015-2016 Matthieu Bouron <matthieu.bouron stupeflix.com>
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_MEDIACODECDEC_COMMON_H
24#define AVCODEC_MEDIACODECDEC_COMMON_H
25
26#include <stdint.h>
27#include <stdatomic.h>
28#include <stdbool.h>
29#include <sys/types.h>
30
31#include "libavutil/frame.h"
32#include "libavutil/pixfmt.h"
33
34#include "avcodec.h"
35#include "mediacodec_wrapper.h"
36
75
78 const char *mime,
80
84 bool wait);
85
89 bool wait);
90
93
96
99
109
110#endif /* AVCODEC_MEDIACODECDEC_COMMON_H */
static const char *const format[]
Definition af_aiir.c:444
Libavcodec external API header.
#define s(width, name)
Definition cbs_vp9.c:198
long long int64_t
Definition coverity.c:34
static AVPacket * pkt
static AVFrame * frame
intptr_t atomic_int
Definition stdatomic.h:55
reference-counted frame API
int ff_mediacodec_dec_send(AVCodecContext *avctx, MediaCodecDecContext *s, AVPacket *pkt, bool wait)
int ff_mediacodec_dec_flush(AVCodecContext *avctx, MediaCodecDecContext *s)
int ff_mediacodec_dec_receive(AVCodecContext *avctx, MediaCodecDecContext *s, AVFrame *frame, bool wait)
int ff_mediacodec_dec_close(AVCodecContext *avctx, MediaCodecDecContext *s)
int ff_mediacodec_dec_init(AVCodecContext *avctx, MediaCodecDecContext *s, const char *mime, FFAMediaFormat *format)
int ff_mediacodec_dec_is_flushing(AVCodecContext *avctx, MediaCodecDecContext *s)
pixel format definitions
main external API structure.
Definition avcodec.h:443
This structure describes decoded (raw) audio or video data.
Definition frame.h:472
This structure stores compressed data.
Definition packet.h:580
Opaque structure representing a MediaCodec buffer to render.
MediaCodecDecContext * ctx