You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avdevice: remove deprecated FF_API_OPENGL_DEVICE
Deprecated since 2024-02-28. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
5
configure
vendored
5
configure
vendored
@ -2297,7 +2297,6 @@ HEADERS_LIST="
|
||||
linux_perf_event_h
|
||||
malloc_h
|
||||
opencv2_core_core_c_h
|
||||
OpenGL_gl3_h
|
||||
poll_h
|
||||
pthread_np_h
|
||||
sys_hwprobe_h
|
||||
@ -3766,8 +3765,6 @@ lavfi_indev_deps="avfilter"
|
||||
libcdio_indev_deps="libcdio"
|
||||
libdc1394_indev_deps="libdc1394"
|
||||
openal_indev_deps="openal"
|
||||
opengl_outdev_deps="opengl"
|
||||
opengl_outdev_suggest="sdl2"
|
||||
oss_indev_deps_any="sys_soundcard_h"
|
||||
oss_outdev_deps_any="sys_soundcard_h"
|
||||
pulse_indev_deps="libpulse"
|
||||
@ -7884,7 +7881,7 @@ enabled zoompan_filter && prepend avfilter_deps "swscale"
|
||||
enabled lavfi_indev && prepend avdevice_deps "avfilter"
|
||||
|
||||
#FIXME
|
||||
enabled_any sdl2_outdev opengl_outdev && enabled sdl2 &&
|
||||
enabled_any sdl2_outdev && enabled sdl2 &&
|
||||
add_cflags $(filter_out '-Dmain=SDL_main' $sdl2_cflags)
|
||||
|
||||
enabled opus_decoder && prepend avcodec_deps "swresample"
|
||||
|
@ -34,7 +34,6 @@ OBJS-$(CONFIG_JACK_INDEV) += jack.o timefilter.o
|
||||
OBJS-$(CONFIG_KMSGRAB_INDEV) += kmsgrab.o
|
||||
OBJS-$(CONFIG_LAVFI_INDEV) += lavfi.o
|
||||
OBJS-$(CONFIG_OPENAL_INDEV) += openal-dec.o
|
||||
OBJS-$(CONFIG_OPENGL_OUTDEV) += opengl_enc.o
|
||||
OBJS-$(CONFIG_OSS_INDEV) += oss_dec.o oss.o
|
||||
OBJS-$(CONFIG_OSS_OUTDEV) += oss_enc.o oss.o
|
||||
OBJS-$(CONFIG_PULSE_INDEV) += pulse_audio_dec.o \
|
||||
|
@ -44,7 +44,6 @@ extern const FFInputFormat ff_jack_demuxer;
|
||||
extern const FFInputFormat ff_kmsgrab_demuxer;
|
||||
extern const FFInputFormat ff_lavfi_demuxer;
|
||||
extern const FFInputFormat ff_openal_demuxer;
|
||||
extern const FFOutputFormat ff_opengl_muxer;
|
||||
extern const FFInputFormat ff_oss_demuxer;
|
||||
extern const FFOutputFormat ff_oss_muxer;
|
||||
extern const FFInputFormat ff_pulse_demuxer;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,188 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Lukasz Marek
|
||||
*
|
||||
* This file is part of FFmpeg.
|
||||
*
|
||||
* FFmpeg is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* FFmpeg is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with FFmpeg; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef AVDEVICE_OPENGL_ENC_SHADERS_H
|
||||
#define AVDEVICE_OPENGL_ENC_SHADERS_H
|
||||
|
||||
#include "libavutil/pixfmt.h"
|
||||
|
||||
static const char * const FF_OPENGL_VERTEX_SHADER =
|
||||
"uniform mat4 u_projectionMatrix;"
|
||||
"uniform mat4 u_modelViewMatrix;"
|
||||
|
||||
"attribute vec4 a_position;"
|
||||
"attribute vec2 a_textureCoords;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"gl_Position = u_projectionMatrix * (a_position * u_modelViewMatrix);"
|
||||
"texture_coordinate = a_textureCoords;"
|
||||
"}";
|
||||
|
||||
/**
|
||||
* Fragment shader for packet RGBA formats.
|
||||
*/
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_RGBA_PACKET =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"uniform mat4 u_colorMap;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"gl_FragColor = texture2D(u_texture0, texture_coordinate) * u_colorMap;"
|
||||
"}";
|
||||
|
||||
/**
|
||||
* Fragment shader for packet RGB formats.
|
||||
*/
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_RGB_PACKET =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"uniform mat4 u_colorMap;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"gl_FragColor = vec4((texture2D(u_texture0, texture_coordinate) * u_colorMap).rgb, 1.0);"
|
||||
"}";
|
||||
|
||||
/**
|
||||
* Fragment shader for planar RGBA formats.
|
||||
*/
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_RGBA_PLANAR =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"uniform sampler2D u_texture1;"
|
||||
"uniform sampler2D u_texture2;"
|
||||
"uniform sampler2D u_texture3;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"gl_FragColor = vec4(texture2D(u_texture0, texture_coordinate).r,"
|
||||
"texture2D(u_texture1, texture_coordinate).r,"
|
||||
"texture2D(u_texture2, texture_coordinate).r,"
|
||||
"texture2D(u_texture3, texture_coordinate).r);"
|
||||
"}";
|
||||
|
||||
/**
|
||||
* Fragment shader for planar RGB formats.
|
||||
*/
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_RGB_PLANAR =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"uniform sampler2D u_texture1;"
|
||||
"uniform sampler2D u_texture2;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"gl_FragColor = vec4(texture2D(u_texture0, texture_coordinate).r,"
|
||||
"texture2D(u_texture1, texture_coordinate).r,"
|
||||
"texture2D(u_texture2, texture_coordinate).r,"
|
||||
"1.0);"
|
||||
"}";
|
||||
|
||||
/**
|
||||
* Fragment shader for planar YUV formats.
|
||||
*/
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_YUV_PLANAR =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"uniform sampler2D u_texture1;"
|
||||
"uniform sampler2D u_texture2;"
|
||||
"uniform float u_chroma_div_w;"
|
||||
"uniform float u_chroma_div_h;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"vec3 yuv;"
|
||||
|
||||
"yuv.r = texture2D(u_texture0, texture_coordinate).r - 0.0625;"
|
||||
"yuv.g = texture2D(u_texture1, vec2(texture_coordinate.x / u_chroma_div_w, texture_coordinate.y / u_chroma_div_h)).r - 0.5;"
|
||||
"yuv.b = texture2D(u_texture2, vec2(texture_coordinate.x / u_chroma_div_w, texture_coordinate.y / u_chroma_div_h)).r - 0.5;"
|
||||
|
||||
"gl_FragColor = clamp(vec4(mat3(1.1643, 1.16430, 1.1643,"
|
||||
"0.0, -0.39173, 2.0170,"
|
||||
"1.5958, -0.81290, 0.0) * yuv, 1.0), 0.0, 1.0);"
|
||||
|
||||
"}";
|
||||
|
||||
/**
|
||||
* Fragment shader for planar YUVA formats.
|
||||
*/
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_YUVA_PLANAR =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"uniform sampler2D u_texture1;"
|
||||
"uniform sampler2D u_texture2;"
|
||||
"uniform sampler2D u_texture3;"
|
||||
"uniform float u_chroma_div_w;"
|
||||
"uniform float u_chroma_div_h;"
|
||||
|
||||
"varying vec2 texture_coordinate;"
|
||||
|
||||
"void main()"
|
||||
"{"
|
||||
"vec3 yuv;"
|
||||
|
||||
"yuv.r = texture2D(u_texture0, texture_coordinate).r - 0.0625;"
|
||||
"yuv.g = texture2D(u_texture1, vec2(texture_coordinate.x / u_chroma_div_w, texture_coordinate.y / u_chroma_div_h)).r - 0.5;"
|
||||
"yuv.b = texture2D(u_texture2, vec2(texture_coordinate.x / u_chroma_div_w, texture_coordinate.y / u_chroma_div_h)).r - 0.5;"
|
||||
|
||||
"gl_FragColor = clamp(vec4(mat3(1.1643, 1.16430, 1.1643,"
|
||||
"0.0, -0.39173, 2.0170,"
|
||||
"1.5958, -0.81290, 0.0) * yuv, texture2D(u_texture3, texture_coordinate).r), 0.0, 1.0);"
|
||||
"}";
|
||||
|
||||
static const char * const FF_OPENGL_FRAGMENT_SHADER_GRAY =
|
||||
#if defined(GL_ES_VERSION_2_0)
|
||||
"precision mediump float;"
|
||||
#endif
|
||||
"uniform sampler2D u_texture0;"
|
||||
"varying vec2 texture_coordinate;"
|
||||
"void main()"
|
||||
"{"
|
||||
"float c = texture2D(u_texture0, texture_coordinate).r;"
|
||||
"gl_FragColor = vec4(c, c, c, 1.0);"
|
||||
"}";
|
||||
|
||||
#endif /* AVDEVICE_OPENGL_ENC_SHADERS_H */
|
@ -33,8 +33,6 @@
|
||||
* the public API and may change, break or disappear at any time.
|
||||
*/
|
||||
|
||||
// reminder to remove the opengl device on next major bump
|
||||
#define FF_API_OPENGL_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
|
||||
// reminder to remove the sdl2 device on next major bump
|
||||
#define FF_API_SDL2_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
|
||||
#define FF_API_ALSA_CHANNELS (LIBAVDEVICE_VERSION_MAJOR < 62)
|
||||
|
Reference in New Issue
Block a user