| 1 | /* |
| 2 | * GStreamer |
| 3 | * Copyright (C) 2015 Matthew Waters <matthew@centricular.com> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Library General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Library General Public |
| 16 | * License along with this library; if not, write to the |
| 17 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 18 | * Boston, MA 02110-1301, USA. |
| 19 | */ |
| 20 | |
| 21 | GST_GL_EXT_BEGIN (buffer_copy_sub_data, |
| 22 | GST_GL_API_OPENGL3 | |
| 23 | GST_GL_API_GLES2, |
| 24 | 3, 1, |
| 25 | 3, 0, |
| 26 | /* extension is available in GL 3.0 */ |
| 27 | "\0" , |
| 28 | "\0" ) |
| 29 | GST_GL_EXT_FUNCTION (void, CopyBufferSubData, |
| 30 | (GLenum readTarget, |
| 31 | GLenum writeTarget, |
| 32 | GLintptr readOffset, |
| 33 | GLintptr writeOffset, |
| 34 | GLsizeiptr size)) |
| 35 | GST_GL_EXT_END () |
| 36 | |
| 37 | GST_GL_EXT_BEGIN (get_buffer_sub_data, |
| 38 | GST_GL_API_OPENGL3, |
| 39 | 1, 5, |
| 40 | 255, 255, |
| 41 | "\0" , |
| 42 | "\0" ) |
| 43 | GST_GL_EXT_FUNCTION (void, GetBufferSubData, |
| 44 | (GLenum target, |
| 45 | GLintptr offset, |
| 46 | GLsizeiptr size, |
| 47 | void * data)) |
| 48 | GST_GL_EXT_END () |
| 49 | |