레이어 / 뷰
'프로그램 사용 > wayland' 카테고리의 다른 글
weston shell (0) | 2021.11.26 |
---|---|
weston_log() (0) | 2021.11.25 |
wayland weston flow (0) | 2021.11.22 |
wayland / weston (0) | 2021.11.18 |
wayland weston (0) | 2021.11.17 |
레이어 / 뷰
weston shell (0) | 2021.11.26 |
---|---|
weston_log() (0) | 2021.11.25 |
wayland weston flow (0) | 2021.11.22 |
wayland / weston (0) | 2021.11.18 |
wayland weston (0) | 2021.11.17 |
weston shell (0) | 2021.11.26 |
---|---|
weston_log() (0) | 2021.11.25 |
wayland weston 구조 (0) | 2021.11.24 |
wayland / weston (0) | 2021.11.18 |
wayland weston (0) | 2021.11.17 |
nc를 이용해 udp 소켓을 테스트 하고 있는데
UDP 서버(?)
$ nc -ul 0.0.0.0 6000 |
UDP 클라이언트
$ nc -u 0.0.0.0 6000 |
로 설정하고 클라이언트에서 1번 메시지를 보낸 후, ctrl-c를 눌러 종료하고
다시 전송하려고 nc -u 옵션을 통해 실행하면 전송되지 않고 종료된다.
혹시나 해서 옵션을 찾아보니 forces nc to stay listening for another connection 이라는게 보이네..
아무튼 udp 커넥션(?)이 이뤄지면 netstat -unl 에서도 사라지는데 멀까...?
-k' Forces nc to stay listening for another connection after its current connection is completed. It is an error to use this option without the -l option. -l' Used to specify that nc should listen for an incoming connection rather than initiate a connection to a remote host. It is an error to use this option in conjunction with the -p, -s, or -z options. Additionally, any timeouts specified with the -w option are ignored. |
nc 엔터 없이 보내기 (0) | 2024.01.17 |
---|---|
shell과 nc를 이용하여 주기적으로 데이터 보내기 (0) | 2023.06.23 |
static const struct android_wlegl_handle_interface server_handle_impl = { add_fd, destroy }; server_wlegl_handle * server_wlegl_handle_create(uint32_t id) { server_wlegl_handle *handle = new server_wlegl_handle; memset(handle, 0, sizeof(*handle)); handle->resource.object.id = id; handle->resource.object.interface = &android_wlegl_handle_interface; handle->resource.object.implementation = (void (**)(void))&server_handle_impl; handle->resource.destroy = server_wlegl_handle_dtor; handle->resource.data = handle; wl_array_init(&handle->ints); wl_array_init(&handle->fds); return handle; } |
extern const struct wl_interface android_wlegl_handle_interface; |
[링크 : https://github.com/groleo/simple-yuv/blob/master/wayland-android-client-protocol.h]
weston shell (0) | 2021.11.26 |
---|---|
weston_log() (0) | 2021.11.25 |
wayland weston 구조 (0) | 2021.11.24 |
wayland weston flow (0) | 2021.11.22 |
wayland weston (0) | 2021.11.17 |
gcc에서 해보는데 헐.. 이게 되네?
변수명과 구조체 타입명은 다른 영역으로 구분되나?
identifier로 동일하게 취급될줄 알았는데 아니라니?
$ cat t.c #include <stdio.h> struct help { int a; int b; int c;}; struct help a; int help = 1; void main() { a.a = 5; a.b = 7; a.c = 9; printf("%d %d %d %d\n",help, a.a, a.b, a.c); } |
$ gcc t.c $ ./a.out 1 5 7 9 |
다만, 함수와 변수명의 식별자 영역은 동일한지 에러가 발생한다.
$ cat t.c #include <stdio.h> void help() { printf("%s\n",__func__); } struct help { int a; int b; int c;}; struct help a; int help = 1; void main() { a.a = 5; a.b = 7; a.c = 9; printf("%d %d %d %d\n",help, a.a, a.b, a.c); help(); } |
$ gcc t.c t.c:11:5: error: ‘help’ redeclared as different kind of symbol int help = 1; ^~~~ t.c:3:6: note: previous definition of ‘help’ was here void help() ^~~~ t.c: In function ‘main’: t.c:19:2: error: called object ‘help’ is not a function or function pointer help(); ^~~~ t.c:11:5: note: declared here int help = 1; ^~~~ |
gcc / 문자열 선언 (0) | 2022.03.17 |
---|---|
static link (0) | 2022.02.07 |
gcc unsigned to signed upcast 테스트 (0) | 2021.07.08 |
gcc vectorized loop (0) | 2021.06.30 |
gcc unsigned to signed cast (0) | 2021.06.22 |
weston shell (0) | 2021.11.26 |
---|---|
weston_log() (0) | 2021.11.25 |
wayland weston 구조 (0) | 2021.11.24 |
wayland weston flow (0) | 2021.11.22 |
wayland / weston (0) | 2021.11.18 |
mysql, mariadb, amazon aurora, azure database for mysql을 지원하는 connector
MIT 라이선스를 적용하고 있고 다운로드 24.8M에 빛나는 패키지
[링크 : https://www.nuget.org/packages/MySqlConnector/1.3.14?_src=template]
mysql connector
[링크 : https://dev.mysql.com/downloads/connector/net/]
mariadb foundation의 connector는 소스로 제공되네..
mariadb msec 단위 시간 얻기 (0) | 2022.08.31 |
---|---|
mariadb 초기설정 (0) | 2022.08.30 |
HeidiSQL (2) | 2021.08.18 |
sql zerofill (0) | 2019.11.25 |
mysql-dump compatible 함정 -_- (0) | 2019.09.04 |
리눅스 홈 디렉토리 용량 검사하다 보니 이상하게 많이 먹어 추적해보니
~/.cache/bazel 이 7기가 정도?
bazel clean 을 통해서 용량을 감소시킬수 있다고 하는데 문제는 워크스페이스 날렸으면 무리
그냥 쿨(?) 하게 ~/.cache/bazel 을 날리니 용량이 훅 줄어든다.
$ bazel clean Extracting Bazel installation... ERROR: The 'clean' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/master/build-ref.html#workspace |
tflite bazel rpi3b+ (0) | 2022.01.27 |
---|---|
bazel cross compile (0) | 2022.01.27 |
2.7.0-rc with opencl (0) | 2021.10.13 |
tf release 2.7.0-rc (0) | 2021.10.12 |
tflite delegate (0) | 2021.10.11 |
ffmpeg 옵션 순서가 은근히 까다로운가 보네 -_-
아래처럼 입력하면 이미지가 깨져서 변환된다.
$ ffmpeg -vcodec rawvideo -s 480x800 -f rawvideo -i fb1.cap_date -pix_fmt rgb565 -vf "transpose=2" output_1.png |
이렇게 입력 코덱, 입력 비디오 포맷, 포맷에 따른 비디오 크기, 입력 파일 명 순서로 받고
출력시 회전, 출력 파일 명으로 넣어주어야 정상적으로 되는 듯.
$ ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 480x800 -i fb1.cap_date -vf "transpose=2" output_1.png |
---
// List available formats for ffmpeg ffmpeg -pix_fmts // Convert raw rgb565 image to png ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 1024x768 -i freescale_1024x768.raw -f image2 -vcodec png screen.png |
[링크 : https://github-wiki-see.page/m/rogeriorps/ipu-examples/wiki/Converting-image-format-on-PC]
2번은 counter니까 반시계 90도(-=270도 회전)
ffmpeg -i in.mov -vf "transpose=1" out.mov For the transpose parameter you can pass: 0 = 90CounterCLockwise and Vertical Flip (default) 1 = 90Clockwise 2 = 90CounterClockwise 3 = 90Clockwise and Vertical Flip Use -vf "transpose=2,transpose=2" for 180 degrees. |
[링크 : https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg]
ffmpeg을 이용하여 동영상을 프레임 별로 jpeg 로 변환하기 (0) | 2022.04.15 |
---|---|
mp4 복구 시도 (0) | 2022.01.24 |
ffmpeg 재생 어렵다 -_ㅠ (0) | 2021.02.22 |
ffmpeg fbdev (0) | 2021.02.09 |
ffmpeg build (0) | 2020.11.25 |
처음 패키지가 본체(?)고 그 위에는 한글언어 인식 데이터 패키지
$ sudo apt install tesseract-ocr tesseract-ocr-kor tesseract-ocr-script-hang tesseract-ocr-script-hang-vert |
도움말을 보는데 도움은 안된다(응?)
리눅스에서 실행시 outputbase를 stdout으로 하면 콘솔에 텍스트로 출력된다.
$ tesseract --help Usage: tesseract --help | --help-extra | --version tesseract --list-langs tesseract imagename outputbase [options...] [configfile...] OCR options: -l LANG[+LANG] Specify language(s) used for OCR. NOTE: These options must occur before any configfile. Single options: --help Show this help message. --help-extra Show extra help for advanced users. --version Show version information. --list-langs List available languages for tesseract engine. $ tesseract --list-langs List of available languages (5): Hangul Hangul_vert eng kor osd |
LSTM 학습
[링크 : https://hongjong.tistory.com/19]
[링크 : https://diyworld.tistory.com/114]
[링크 : https://davelogs.tistory.com/70]
tesseract 버전별 차이? (0) | 2023.12.27 |
---|---|
tesseract 학습 데이터 (0) | 2023.12.27 |
tesseract on arm (0) | 2023.12.26 |
tesseract ocr (0) | 2023.12.21 |