-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7e4d086
Showing
9 changed files
with
749 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: BlockIndent | ||
AlignArrayOfStructures: Right | ||
AlignConsecutiveAssignments: None | ||
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments | ||
AlignConsecutiveMacros: Consecutive | ||
AlignEscapedNewlines: Left | ||
AlignOperands: Align | ||
AlignTrailingComments: true | ||
AllowAllArgumentsOnNextLine: false | ||
AllowAllConstructorInitializersOnNextLine: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: Always | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: Inline | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: MultiLine | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BitFieldColonSpacing: Before | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterControlStatement: Never | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
AfterExternBlock: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
BeforeLambdaBody: false | ||
BeforeWhile: false | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeConceptDeclarations: Allowed | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeComma | ||
BreakInheritanceList: BeforeComma | ||
BreakStringLiterals: false | ||
ColumnLimit: 0 | ||
CompactNamespaces: false | ||
ContinuationIndentWidth: 2 | ||
EmptyLineAfterAccessModifier: Never | ||
EmptyLineBeforeAccessModifier: Always | ||
FixNamespaceComments: true | ||
IncludeBlocks: Preserve | ||
IndentAccessModifiers: false | ||
IndentCaseLabels: false | ||
IndentExternBlock: NoIndent | ||
IndentGotoLabels: false | ||
IndentPPDirectives: None | ||
IndentWidth: 2 | ||
IndentWrappedFunctionNames: false | ||
InsertTrailingCommas: Wrapped | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
LambdaBodyIndentation: Signature | ||
MaxEmptyLinesToKeep: 2 | ||
NamespaceIndentation: All | ||
PackConstructorInitializers: CurrentLine | ||
PointerAlignment: Left | ||
QualifierAlignment: Custom | ||
QualifierOrder: [ 'inline', 'static', 'constexpr', 'const', 'volatile', 'type', 'restrict' ] | ||
ReferenceAlignment: Left | ||
ReflowComments: false | ||
RequiresClausePosition: OwnLine | ||
SeparateDefinitionBlocks: Always | ||
ShortNamespaceLines: 10 | ||
SortIncludes: CaseInsensitive | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceBeforeSquareBrackets: false | ||
SpaceInEmptyBlock: false | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInConditionalStatement: false | ||
SpacesInContainerLiterals: false | ||
SpacesInLineCommentPrefix: | ||
Minimum: 1 | ||
Maximum: -1 | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: c++20 | ||
TabWidth: 2 | ||
UseTab: Never |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cmake-* | ||
.idea |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
project(cxadc_vhs_server C) | ||
|
||
set(CMAKE_C_STANDARD 11) | ||
|
||
add_executable(cxadc_vhs_server | ||
src/main.c | ||
src/http.c | ||
src/files.c) | ||
|
||
target_compile_options(cxadc_vhs_server PRIVATE | ||
-Wall | ||
-Wpedantic | ||
-Wextra) | ||
|
||
target_link_libraries(cxadc_vhs_server PRIVATE | ||
asound | ||
pthread) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# cxadc_vhs_server | ||
|
||
A terrible HTTP server made for capturing VHS with two cxadc cards and [cxadc-clockgen-mod](/~https://github.com/namazso/cxadc-clockgen-mod/). | ||
|
||
## Usage | ||
|
||
`cxadc_vhs_server <port>` | ||
|
||
Using this, you can start the server on the capture machine: | ||
|
||
```text | ||
$ cxadc_vhs_server 8080 | ||
``` | ||
|
||
Then you can queue up the download of the streams: | ||
|
||
```text | ||
$ aria2c -Z \ | ||
http://192.168.1.1:8080/linear \ | ||
http://192.168.1.1:8080/cxadc0 \ | ||
http://192.168.1.1:8080/cxadc1 | ||
``` | ||
|
||
Then start the capture: | ||
|
||
```text | ||
$ curl http://192.168.1.1:8080/start | ||
``` | ||
|
||
Once you're done, you just need to stop it: | ||
|
||
```text | ||
$ curl http://192.168.1.1:8080/stop | ||
``` |
Oops, something went wrong.