List of commits:
Subject Hash Author Date (UTC)
# 9575b3e86695e1585d8063722776c59d0cd12c10 Alexey 2017-03-09 01:08:10
op # 066b109760c5ea0f36a08bf4256426ac6311ea30 Alexey 2017-03-08 14:44:26
h# cf98cf078fa4b35b3228082cba8dad1a2e4e0adb Alexey 2017-03-07 13:00:11
ko# f144472b7c0900692ee11fccda7bc7d3e3b50096 Alexey 2017-03-06 16:55:29
nk 449c7c4a58b96c1f21999ace709d4c3486874fe7 Alexey 2017-03-06 16:38:08
on/off 270d34eac26f7fccc70e7dd492899c535a866511 Alexey 2017-03-06 10:58:34
reel 5bdd2c0dbf3d743b3818d038a054280f37e117f8 Alexey 2017-03-05 21:13:49
c++ t.c --target=arm-linux-gnu `pkg-config --libs --cflags gtk+-3.0 epoxy ` -o op -lOpenImageIO -lopencv_videoio ebaac349ce934d80f1444df53b7bbda3a42a35b6 Alexey 2017-03-05 18:25:42
c++ t.c --target=arm-linux-gnu `pkg-config --libs --cflags gtk+-3.0 epoxy ` -o op -lOpenImageIO -lopencv_videoio 7ddf326fbc3789c95efafe10b0381290ab37632f Alexey 2017-03-05 15:32:41
Commit 9575b3e86695e1585d8063722776c59d0cd12c10 - #
Author: Alexey
Author date (UTC): 2017-03-09 01:08
Committer name: Alexey
Committer date (UTC): 2017-03-09 01:08
Parent(s): 066b109760c5ea0f36a08bf4256426ac6311ea30
Signing key:
Tree: c4f090bc3c2022f5fba577fcabc26a6b8b86d4e0
File Lines added Lines deleted
t.c 33 31
to run 1 1
File t.c changed (mode: 100644) (index ff43bc6..50ba63c)
... ... OIIO_NAMESPACE_USING
14 14
15 15
16 16
17 const GLchar *vert_src ="\n" \
18 "#version 330 \n" \
19 " #extension GL_ARB_explicit_uniform_location : enable \n" \
20 " out vec2 kn; \n" \
21 " \n" \
22 " out vec4 knn; \n" \
23 " layout(location = 1) in vec2 in_p; \n" \
24 " layout(location = 0) in vec4 in_position; \n" \
25 " layout(location =10)uniform mat4 projection; \n" \
26 "void main() \n" \
27 "{ \n" \
28 " gl_Position = projection*in_position; \n" \
29 "knn=in_position ; \n" \
30 "kn=in_p ; \n" \
31 "// gl_Position = in_position; \n" \
32 "} \n" ;
33 const GLchar *frag_src ="\n" \
34 "#version 330 \n" \
35 " #extension GL_ARB_explicit_uniform_location : enable \n" \
36 "layout(location =11)uniform sampler2D t; \n" \
37 " vec4 b; \n" \
38 " in vec4 knn; \n" \
39 " in vec2 kn; \n" \
40 "void main (void) \n" \
41 "{ \n" \
42 " if(gl_FrontFacing) \n" \
43 " gl_FragColor = texture( t, kn); \n" \
44 "else discard; \n" \
45 "} \n";
17 const GLchar *vert_src = R"(
18 #version 330
19 #extension GL_ARB_explicit_uniform_location : enable
20 out vec2 kn;
21
22 out vec4 knn;
23 layout(location = 1) in vec2 in_p;
24 layout(location = 0) in vec4 in_position;
25 layout(location =10)uniform mat4 projection;
26 void main()
27 {
28 gl_Position = projection*in_position;
29 knn=in_position ;
30 kn=in_p ;
31 // gl_Position = in_position;
32 }
33 )";
34
35 const GLchar *frag_src =R"(
36 #version 330
37 #extension GL_ARB_explicit_uniform_location : enable
38 layout(location =11)uniform sampler2D t;
39 vec4 b;
40 in vec4 knn;
41 in vec2 kn;
42 void main (void) {
43 if(gl_FrontFacing)
44 gl_FragColor = texture( t, kn);
45 else discard;
46 }
47 )";
46 48
47 49
48 50
 
... ... c.nchannels=4;
204 206 c.x=0; c.x=0;
205 207 c.y=0; c.y=0;
206 208 c.format=TypeDesc::UINT8; c.format=TypeDesc::UINT8;
207
209 GLfloat ok[] ={0.4,0.4,0.8};
208 210 ImageBuf k(c,trr); ImageBuf k(c,trr);
209 211 ImageBuf h("161208ap5410_fpx.jpg"); ImageBuf h("161208ap5410_fpx.jpg");
210 212 h.read(); h.read();
211 213 k.copy_pixels(h); k.copy_pixels(h);
212 214 h.clear (); h.clear ();
213 //ImageBufAlgo::noise(k,"gaussian");
215 //ImageBufAlgo::render_text(k,34,157,"2.75",129,"/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf",ok);
214 216
215 217
216 218 GLuint frag_shader, vert_shader; GLuint frag_shader, vert_shader;
File to run changed (mode: 100644) (index 4bac547..86a799c)
9 9 # new file: 161208ap5410_fpx.jpg # new file: 161208ap5410_fpx.jpg
10 10 # new file: t.c # new file: t.c
11 11 # #
12 c++ t.c --target=arm-linux-gnu `pkg-config --libs --cflags gtk+-3.0 epoxy ` -o op -lOpenImageIO -lopencv_videoio
12 c++ t.c --target=arm-linux-gnu -std=c++11 `pkg-config --libs --cflags gtk+-3.0 epoxy ` -o op -lOpenImageIO -lopencv_videoio
13 13
14 14 gtk3 opencv: gtk3 opencv:
15 15 ...clone opencv ...clone opencv
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/bowler17/gl

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/bowler17/gl

Clone this repository using git:
git clone git://git.rocketgit.com/user/bowler17/gl

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main