FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libavcodec
mediacodec_sw_buffer.h
Go to the documentation of this file.
1
/*
2
* Android MediaCodec software buffer copy functions
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_MEDIACODEC_SW_BUFFER_H
24
#define AVCODEC_MEDIACODEC_SW_BUFFER_H
25
26
#include <sys/types.h>
27
28
#include "
libavutil/frame.h
"
29
30
#include "
avcodec.h
"
31
#include "
mediacodecdec.h
"
32
#include "
mediacodec_wrapper.h
"
33
34
void
ff_mediacodec_sw_buffer_copy_yuv420_planar
(
AVCodecContext
*avctx,
35
MediaCodecDecContext
*
s
,
36
uint8_t
*
data
,
37
size_t
size
,
38
FFAMediaCodecBufferInfo
*info,
39
AVFrame
*
frame
);
40
41
void
ff_mediacodec_sw_buffer_copy_yuv420_semi_planar
(
AVCodecContext
*avctx,
42
MediaCodecDecContext
*
s
,
43
uint8_t
*
data
,
44
size_t
size
,
45
FFAMediaCodecBufferInfo
*info,
46
AVFrame
*
frame
);
47
48
void
ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar
(
AVCodecContext
*avctx,
49
MediaCodecDecContext
*
s
,
50
uint8_t
*
data
,
51
size_t
size
,
52
FFAMediaCodecBufferInfo
*info,
53
AVFrame
*
frame
);
54
55
void
ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka
(
AVCodecContext
*avctx,
56
MediaCodecDecContext
*
s
,
57
uint8_t
*
data
,
58
size_t
size
,
59
FFAMediaCodecBufferInfo
*info,
60
AVFrame
*
frame
);
61
62
#endif
/* AVCODEC_MEDIACODEC_SW_BUFFER_H */
mediacodec_wrapper.h
s
const char * s
Definition:
avisynth_c.h:631
AVFrame
This structure describes decoded (raw) audio or video data.
Definition:
frame.h:184
MediaCodecDecContext
Definition:
mediacodecdec.h:35
data
ptrdiff_t const GLvoid * data
Definition:
opengl_enc.c:101
ff_mediacodec_sw_buffer_copy_yuv420_planar
void ff_mediacodec_sw_buffer_copy_yuv420_planar(AVCodecContext *avctx, MediaCodecDecContext *s, uint8_t *data, size_t size, FFAMediaCodecBufferInfo *info, AVFrame *frame)
The code handling the various YUV color formats is taken from the GStreamer project.
Definition:
mediacodec_sw_buffer.c:76
uint8_t
uint8_t
Definition:
audio_convert.c:194
frame
static AVFrame * frame
Definition:
demuxing_decoding.c:53
size
ptrdiff_t size
Definition:
opengl_enc.c:101
FFAMediaCodecBufferInfo
Definition:
mediacodec_wrapper.h:83
ff_mediacodec_sw_buffer_copy_yuv420_semi_planar
void ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(AVCodecContext *avctx, MediaCodecDecContext *s, uint8_t *data, size_t size, FFAMediaCodecBufferInfo *info, AVFrame *frame)
Definition:
mediacodec_sw_buffer.c:131
frame.h
reference-counted frame API
avcodec.h
Libavcodec external API header.
AVCodecContext
main external API structure.
Definition:
avcodec.h:1649
mediacodecdec.h
ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar
void ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(AVCodecContext *avctx, MediaCodecDecContext *s, uint8_t *data, size_t size, FFAMediaCodecBufferInfo *info, AVFrame *frame)
Definition:
mediacodec_sw_buffer.c:181
ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka
void ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(AVCodecContext *avctx, MediaCodecDecContext *s, uint8_t *data, size_t size, FFAMediaCodecBufferInfo *info, AVFrame *frame)
Definition:
mediacodec_sw_buffer.c:272
Generated on Mon Jun 27 2016 02:34:37 for FFmpeg by
1.8.6