Skip to content

Commit

Permalink
Windows version experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
avesus committed May 15, 2014
1 parent 0036679 commit 55fbcbc
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 178 deletions.
23 changes: 18 additions & 5 deletions win/capture_video_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ const VIDEO_STREAM_RESOLUTION modes[] = {
#define SHOW_STATS
//# define BYPASS
# define YUV_BILINEAR
# define CODEC_FPS 3
# define CODEC_FPS 30
//# define DROP_30_TO_25 99999999// 6

// show first 1 in DROP_30_TO_3 frames
# define DROP_30_TO_3 10 //10
//# define DROP_30_TO_3 10 //10
//# define MAXFRAME 5000 //(1480-28)
//# define DROPFRAMEBEFORE 107
//# define DROPFRAMESHOW 7
Expand All @@ -81,13 +81,15 @@ const VIDEO_STREAM_RESOLUTION modes[] = {
// soft mtu
//# define MTU_PROFILE // 64k (up to 120k)
// hard mtu
//# define MTU_HI_PROFILE
// # define MTU_HI_PROFILE

# define HI_Q_W_320

// soft gprs
//# define GPRS_PROFILE // 30k (up to 50)

// hard gprs, needs 3 FPS
# define MTU_LO_PROFILE
//# define MTU_LO_PROFILE


//# define USE_THEORA 1 // 16k
Expand All @@ -103,6 +105,17 @@ const VIDEO_STREAM_RESOLUTION modes[] = {
// VBR!!!
# endif

# ifdef HI_Q_W_320 // 640x480 hi-q
# define FRAME_RESOLUTION_NUMBER 6
# define VP8_QP_MAX 31
# define VP8_QP_MIN 1
# define VP8_KBITS_PER_SEC 4000///350 //700
//# define VP8_CPU_USE -3
# define VP8_CPU_USE -15
//# define MAX_KEYFRAME_DIST 999999
// VBR!!!
# endif

// soft mtu mode, 90k
# ifdef MTU_PROFILE // 240x144 1400 bytes max packet
# define FRAME_RESOLUTION_NUMBER 3
Expand Down Expand Up @@ -445,7 +458,7 @@ unsigned int __stdcall RenderThread(void*)
if(pcktsiz>MAXFRAME)
{
// drop packet
packetToDecode = &emptyPacket;
//packetToDecode = &emptyPacket;
encPacket = 0;
vp8compressedSize = 0;
if(firstTime)
Expand Down
1 change: 1 addition & 0 deletions win/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@

class IDevice;
class IDeviceInfo;
class IDeviceSupply;

enum EOnOffBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion win/dsound_audiostream.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# include "audiostream.h"
# include "audio_capture.h"
# define INITGUID
# include <dsound.h>
# pragma comment(lib, "dsound")
Expand Down
Loading

0 comments on commit 55fbcbc

Please sign in to comment.