This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hello.hellospring.controller; | |
import groovy.lang.*; | |
import groovy.util.GroovyScriptEngine; | |
import hello.hellospring.scriptRoots.ScriptRoot1; | |
import hello.hellospring.util.TaxCalculator; | |
import org.codehaus.groovy.control.CompilerConfiguration; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.GetMapping; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="playShape" | |
Storyboard.TargetProperty="Data" | |
Duration="0:0:0.5"> | |
<ObjectAnimationUsingKeyFrames.KeyFrames> | |
<DiscreteObjectKeyFrame KeyTime="0:0:0"> | |
<DiscreteObjectKeyFrame.Value> | |
<Geometry>M 0,0 0,20 14,10 14,10 L 0,0</Geometry> | |
</DiscreteObjectKeyFrame.Value> | |
</DiscreteObjectKeyFrame> | |
<DiscreteObjectKeyFrame KeyTime="0:0:0.5"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL/glew.h> | |
#include <GLFW/glfw3.h> | |
#include <vector> | |
#include <cmath> | |
#include <cstdio> | |
#include <limits> | |
#include <chrono> | |
#include <thread> | |
#include <mutex> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 150 | |
#define MAX_TEXTURES 2 | |
uniform sampler2DArray textures; | |
uniform int texID; | |
in vec2 vTexCoord; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define COBJMACROS | |
#define INITGUID | |
#include <intrin.h> | |
#include <windows.h> | |
#include <d3d11.h> | |
#include <gl/GL.h> | |
#include "glext.h" // https://www.opengl.org/registry/api/GL/glext.h | |
#include "wglext.h" // https://www.opengl.org/registry/api/GL/wglext.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Note: this Google copyright notice only applies to the original file, which has large sections copy-pasted here. my changes are under CC0 (public domain). | |
* Copyright 2015 Google Inc. | |
* | |
* Use of this source code is governed by a BSD-style license that can be | |
* found in the LICENSE file. | |
*/ | |
/* | |
The official instructions don't work well. These alternative instructions are intended to be the shortest path to get a minimal setup running. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void copy_texture(GLuint srcTex, GLuint destTex, int width, int height) { | |
GLuint fboIds[2]; | |
glGenFramebuffers(2, fboIds); | |
glBindFramebuffer(GL_READ_FRAMEBUFFER, fboIds[0]); | |
glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTex, 0); | |
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fboIds[1]); | |
glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, destTex, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** A fragment shader to convert NV12 to RGB. | |
* Input textures Y - is a block of size w*h. | |
* texture UV is of size w*h/2. | |
* Remember, both U and V are individually of size w/2*h/2, but they are interleaved. | |
* The layout looks like this : | |
* ---------- | |
* | | | |
* | Y | size = w*h | |
* | | | |
* |________| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libvlc_media_track_t** pp_tracks; | |
unsigned i_count = libvlc_media_tracks_get(m, &pp_tracks); | |
if (i_count > 0) { | |
for (unsigned i = 0; i < i_count; ++i) | |
{ | |
libvlc_media_track_t* p_track = pp_tracks[i]; | |
switch (p_track->i_type) | |
{ | |
case libvlc_track_audio: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void picture_CopyPixels( picture_t *p_dst, const picture_t *p_src ) | |
{ | |
for( int i = 0; i < p_src->i_planes ; i++ ) | |
plane_CopyPixels( p_dst->p+i, p_src->p+i ); | |
assert( p_dst->context == NULL ); | |
if( p_src->context != NULL ) | |
p_dst->context = p_src->context->copy( p_src->context ); | |
} |
NewerOlder