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
| //----- GPIO wrapper example ----- | |
| enum class GpioPort : uintptr_t | |
| { | |
| A = GPIOA_BASE, | |
| B = GPIOB_BASE, | |
| C = GPIOC_BASE, | |
| D = GPIOD_BASE, | |
| E = GPIOE_BASE, | |
| F = GPIOF_BASE, |
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
| /// <inheritdoc /> | |
| /// <summary> | |
| /// Wrapper control around VlcControl. Provides basic UI for video playback. | |
| /// </summary> | |
| public partial class VideoBox : UserControl | |
| { | |
| private static readonly String[] MediaOptions = {":avcodec-hw=dxva2"}; //Should enable GPU acceleration | |
| private readonly Dispatcher _dispatcher; | |
| private Boolean _isChangingPosition; //Prevents (sometimes) unwanted feedback | |
| private Video3D _video; |
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
| //From https://github.com/pbhogan/Signals | |
| // horrible_cast< > | |
| // This is truly evil. It completely subverts C++'s type system, allowing you | |
| // to cast from any class to any other class. Technically, using a union | |
| // to perform the cast is undefined behaviour (even in C). But we can see if | |
| // it is OK by checking that the union is the same size as each of its members. | |
| // horrible_cast<> should only be used for compiler-specific workarounds. | |
| // Usage is identical to reinterpret_cast<>. |
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
| 13:26 w013:26 e1Enable:1 | |
| #e1.#Success# | |
| 13:26 w013:26 i1 | |
| Version:2 | |
| #i1.#Success# | |
| 13:26 e0Enable:0 | |
| 13:26 #e0.#Success# | |
| 13:26 e1Enable:1 | |
| 13:26 #e1.#Success# | |
| 13:26 z0#z0.#Success# |