yxibng
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

如何使用vscode在macOS平台调试ffmpeg

使用vscode调试ffmpeg准备知识:Debug C++ in Visual Studio Code ffmpeg 源码 https://github.com/FFmpeg/FFmpeg.git ffmpeg 配置, 使其支持调试关于-g3相关知识gcc-g-vs-g3-gdb-flag-what-is-the-difference 12./configure --disable-optim
2022-03-09
#ffmpeg

Shell 变量

Shell 变量变量名The name of a variable can contain only letters (a to z or A to Z), numbers ( 0 to 9) or the underscore character ( _). By convention, Unix shell variables will have their names in UPPERCAS
2022-02-25
#Shell

Shell 数组

Shell 数组参考: Shell中的数组及其相关操作_杰瑞的专栏-CSDN博客 应用场景: 求数组的长度 元素长度 遍历数组 元素切片 替换 删除 备注: Shell中的数组不像JAVA/C,只能是一维数组, 没有二维数组 数组元素大小无约束,也无需先定义数组的元素个数 索引从0开始 不像JAVA/C等强编程语言,在赋值前必须声明;SHELL只是弱编程
2022-02-25
#Shell

Shell 函数

shell 函数语法 123function_name () { list of commands} 示例 123456789#!/bin/sh# Define your function hereHello () { echo "Hello World"}# Invoke your functionHello 函数传参函数
2022-02-25
#Shell

Shell 循环语句

shell 循环语句while 循环while 循环可以嵌套,语法如下 1234567891011while command1 ; # this is loop1, the outer loopdo Statement(s) to be executed if command1 is true while command2 ; # this is loop2, the inner loop
2022-02-25
#Shell

Shell 条件语句

shell 条件语句if123456if test-commands; then consequent-commands;[elif more-test-commands; then more-consequents;][else alternate-consequents;]fi case123case word in [ [(] pattern [| pattern]…) comm
2022-02-25
#Shell

Shell 特殊变量

特殊变量$$当前 shell 的进程ID 1$echo $$ 输出当前进程的pid 12➜ ~ echo $$19248 $0 当前脚本的文件名 $n 当前脚本的参数,从1开始 $1第一个参数,$2第二个参数,$n第n个参数 $# 脚本参数的总个数 $* 脚本参数集合,所有的参数被双引号包裹。如果脚本2个参数,$*="$1 $2" $@
2022-02-25
#Shell

Shell 运算符

shell 运算符参考:Unix / Linux - Shell Basic Operators 算数运算符shell 本身不支持算数运算,使用awk 或者expr来实现。 示例: 两数相加 1234#!/bin/shval=`expr 2 + 2`echo "Total value : $val" 结果 1Total value : 4 假设a=
2022-02-25
#Shell

Shell 脚本,带名字的参数

shell 脚本,带名字的参数参考: bash - Passing named arguments to shell scripts - Unix & Linux Stack Exchange From 3.5.3 Shell Parameter Expansion of the GNU Bash manual: ${parameter:-word}If parame
2022-02-25
#Shell

常用的shell语句

常用的shell语句判断软件是否安装 1234567#!/bin/bashif [ ! -x "$(command -v xcodeproj)" ]; then echo "xcodeproj is not installed. installing..." > &2 echo "run 'gem instal
2022-02-24
#Shell
1…345

搜索

Hexo Fluid