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
/** | |
* FFmpeg sample player | |
* Related to the article at http://habrahabr.ru/blogs/video/137793/ | |
*/ | |
#include <stdio.h> | |
#include <SDL.h> | |
#include <libavcodec/avcodec.h> | |
#include <libavformat/avformat.h> |
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
/* | |
* Copyright (c) 2003 Fabrice Bellard | |
* | |
* This file is part of FFmpeg. | |
* | |
* FFmpeg is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
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
/* from http://stackoverflow.com/questions/10110905/simple-wave-generator-with-sdl-in-c */ | |
#include <SDL/SDL.h> | |
#include <SDL/SDL_audio.h> | |
#include <queue> | |
#include <cmath> | |
const int AMPLITUDE = 28000; | |
const int FREQUENCY = 44100; |
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
unit sdl_test; | |
interface | |
uses | |
System.Classes, System.Generics.Collections, System.Math, | |
sdl2; | |
procedure main; |
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
procedure Mix(ADest: PByte; ASources: array of PByte; ASize, ALength: Integer); | |
var | |
i, j: Integer; | |
begin | |
for i := 0 to (ALength - 1) div ASize do | |
for j := 0 to Length(ASources) - 1 do | |
begin | |
Move(ASources[j]^, ADest^, ASize); | |
Inc(ADest, ASize); |
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
(* | |
3 потока, один ждет сигнал, при срабатывании сигнала вытягивает из очереди значения, остальные потоки через критическую | |
секцию ставят в очередь значения (один положительную прогрессию, второй — отрицательную) | |
*) | |
unit main_u; | |
interface | |
uses |
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
mongoimport --db mybase --collection mycollection --type csv --headerline --file file.csv |
- Скачиваем iReport
- Скачиваем jre-7u67-windows-x64.tar.gz
- Распаковываем архив в папку с iReport
- Открываем на редактирование файл:
\iReport-5.6.0\etc\ireport.conf
- Прописываем в файле следующее:
OlderNewer