Clarify live555 version error
[vlc/asuraparaju-public.git] / modules / codec / avcodec / copy.h
blob93d246af5a131ea004a20b0afac782d955ea74b5
1 /*****************************************************************************
2 * copy.h: Fast YV12/NV12 copy
3 *****************************************************************************
4 * Copyright (C) 2009 Laurent Aimar
5 * $Id$
7 * Authors: Laurent Aimar <fenrir_AT_ videolan _DOT_ org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _VLC_AVCODEC_COPY_H
25 #define _VLC_AVCODEC_COPY_H 1
27 typedef struct {
28 void *base;
29 uint8_t *buffer;
30 size_t size;
31 } copy_cache_t;
33 int CopyInitCache(copy_cache_t *cache, unsigned width);
34 void CopyCleanCache(copy_cache_t *cache);
36 void CopyFromNv12(picture_t *dst, uint8_t *src[2], size_t src_pitch[2],
37 unsigned width, unsigned height,
38 copy_cache_t *cache);
39 void CopyFromYv12(picture_t *dst, uint8_t *src[3], size_t src_pitch[3],
40 unsigned width, unsigned height,
41 copy_cache_t *cache);
43 #endif