Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dabc6661
authored
Feb 02, 2022
by
andrewlewis
Committed by
Ian Baker
Feb 04, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add comments describing shader programs
PiperOrigin-RevId: 425885803
parent
5144b740
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
library/transformer/src/main/assets/shaders/fragment_shader_copy_external.glsl
library/transformer/src/main/assets/shaders/fragment_shader_copy_external_yuv_es3.glsl
library/transformer/src/main/assets/shaders/vertex_shader_transformation.glsl
library/transformer/src/main/assets/shaders/vertex_shader_transformation_es3.glsl
library/transformer/src/main/assets/shaders/fragment_shader_copy_external.glsl
View file @
dabc6661
...
...
@@ -11,6 +11,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Fragment shader that samples from an external texture with uTexSampler,
// copying from this texture to the current output.
#extension GL_OES_EGL_image_external : require
precision
mediump
float
;
uniform
samplerExternalOES
uTexSampler
;
...
...
library/transformer/src/main/assets/shaders/fragment_shader_copy_external_yuv_es3.glsl
View file @
dabc6661
...
...
@@ -12,6 +12,13 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ES 3 fragment shader that samples from an external texture with uTexSampler,
// copying from this texture to the current output while applying the specified
// color transform uColorTransform, which should be a YUV to RGB conversion
// matrix. The sampler uses the using the EXT_YUV_target extension:
// https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_YUV_target.txt.
#extension GL_OES_EGL_image_external : require
#extension GL_EXT_YUV_target : require
precision
mediump
float
;
...
...
library/transformer/src/main/assets/shaders/vertex_shader_transformation.glsl
View file @
dabc6661
...
...
@@ -11,6 +11,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Vertex shader that applies the 4 * 4 transformation matrix
// uTransformationMatrix.
attribute
vec4
aFramePosition
;
attribute
vec4
aTexCoords
;
uniform
mat4
uTexTransform
;
...
...
library/transformer/src/main/assets/shaders/vertex_shader_transformation_es3.glsl
View file @
dabc6661
...
...
@@ -12,6 +12,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ES 3 vertex shader that applies the 4 * 4 transformation matrix
// uTransformationMatrix.
in
vec4
aFramePosition
;
in
vec4
aTexCoords
;
uniform
mat4
uTexTransform
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment