Questions tagged [capture]

capture is the process of converting a set of pixels on a screen into a bitmap image stored in memory

1457 questions
7
votes
3 answers

Capture ALL (stdout, stderr AND CON) output of cmd executing plink with C# (std out+err ok, CON not working)

I want to open SSH connections from c# via opening a process and running plink. All output should be collected and depending on the results the program will fire actions to the ssh. My big problem is, that i am using a couple if different scripts…
Michael K.
  • 73
  • 1
  • 3
7
votes
1 answer

Why will local captured timer not go out of scope?

Possible Duplicate: Timer, event and garbage collection : am I missing something? private void TrayForm_Load(object sender, EventArgs e) { System.Timers.Timer HideMeTimer = new System.Timers.Timer(2500); HideMeTimer.Elapsed += …
Niklas
  • 1,753
  • 4
  • 16
  • 35
7
votes
1 answer

Why do lambda functions need to capture [this] pointer explicitly in c++20?

Pre-c++20, the this pointer is captured in [=] implicity. So what's the reason that c++20 decided that user should write [=, this] to capture this pointer explicitly, I mean, without this change, the pre-c++20 code could have any code-smell or…
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
7
votes
1 answer

No matching function compile error when passing lambda expression to a templated caller function?

Code: #include template void caller(const FunctorType& func) { func(); } int main() { double data[5] = {5., 0., 0., 0., 0.}; auto peek_data = [data]() { std::cout << data[0] << std::endl; }; auto change_data…
aaronfu
  • 93
  • 5
7
votes
2 answers

CVPixelBufferLockBaseAddress why? Capture still image using AVFoundation

I'm writing an iPhone app that creates still images from the camera using AVFoundation. Reading the programming guide I've found a code that does almost I need to do, so I'm trying to "reverse engineering" and understand it. I'm founding some…
Andrea
  • 26,120
  • 10
  • 85
  • 131
7
votes
8 answers

android capture video frame

I need to get a frame of a video file (it may be on sdcard, cache dir or app dir). I have package android.media in my application and inside I have class MediaMetadataRetriever. To get first frame into a bitmap, I use code: public static Bitmap…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
7
votes
2 answers

Android out of memory on image capture

I have an Activity which takes photos (with full possible resolution, so quite large), the application have then the chance to analyze them. Only one photo is handled at a time. The problem is that I run in to a "Out of memory" after 4 - 5 photos. I…
georgij
  • 2,054
  • 4
  • 27
  • 43
7
votes
1 answer

How to create an AST with a CAPTURE binding?

I am interested in using the Eclipse JDT to create a CAPTURE binding. I've read several capture conversion tutorials, but when I copy-paste sample code snippets, I can never find a capture conversion binding in the Abstract Syntax Tree (using the…
John Assymptoth
  • 8,227
  • 12
  • 49
  • 68
7
votes
3 answers

Capturing Win32 messages

Does anyone know a tool that can capture win32 messages that get sent to a particular process? I thought there was a tool from sysinternals for that but now I can't locate it. Anyone knows some?
Peter Krumins
  • 838
  • 1
  • 7
  • 24
7
votes
1 answer

Get screenshot of startmenu

I am using bitblt to to capture a window. If the aero theme is enabled, The background of the captured image is black. If I disable the DWM and capture the window then the captured image is very good. Here is part of my code. HDC hdcMemDC =…
Vishnu
  • 11,614
  • 6
  • 51
  • 90
7
votes
1 answer

How could I capture wire shark traces on loop back interface?

How can I capture wireshark traces on the interface it is configured to capture the traces?
crusader
  • 181
  • 1
  • 1
  • 13
7
votes
3 answers

How to use custom video resolution when use AVFoundation and AVCaptureVideoDataOutput on mac

I need to process each frame of captured video frame, although AVCaptureDevice.formats provided so many different dimension of frame sizes, it seems AVCaptureSession only support those frame sizes defined in presets. I've also tried to set…
steve3d
  • 103
  • 1
  • 7
7
votes
1 answer

How to capture video using Intent and set path of recorded and limit recording time

I use an example of recording video using intent based on Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult(intent, REQUEST_VIDEO_CAPTURED); For time limit I have used:…
mira
  • 1,056
  • 3
  • 15
  • 32
7
votes
4 answers

How to Write a Screen Recorder in .NET?

Is there a way to make a screen recorder in C#? If so, does anybody know of any tutorials I could use or any information on the subject?
user
  • 16,429
  • 28
  • 80
  • 97
7
votes
2 answers

Why AVCaptureStillImageOutput ::captureStillImageAsynchronouslyFromConnection:completionHandler is never called?

I try to build an app which captures frames from iPhone camera and does some processing with these frames. I tried some pieces of codes found on the Internet, e.g. here: How to capture image without displaying preview in iOS and I ended up with the…
Jakub
  • 3,129
  • 8
  • 44
  • 63