ACMX 2.136.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
camera_probe_windows.cpp File Reference
#include "camera_probe.hpp"
#include <dshow.h>
#include <dvdmedia.h>
#include <olectl.h>
#include <windows.h>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <map>
#include <memory>
#include <ostream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  acmxvk::anonymous_namespace{camera_probe_windows.cpp}::CameraDevice
struct  acmxvk::anonymous_namespace{camera_probe_windows.cpp}::ComReleaser< T >
class  acmxvk::anonymous_namespace{camera_probe_windows.cpp}::ComScope

Namespaces

namespace  acmxvk
namespace  acmxvk::anonymous_namespace{camera_probe_windows.cpp}

Macros

#define NOMINMAX

Typedefs

template<typename T>
using acmxvk::anonymous_namespace{camera_probe_windows.cpp}::ComPtr = std::unique_ptr<T, ComReleaser<T>>

Functions

void acmxvk::anonymous_namespace{camera_probe_windows.cpp}::append_frame_rate (std::vector< double > &rates, double value)
std::string acmxvk::anonymous_namespace{camera_probe_windows.cpp}::camera_name (IPropertyBag *property_bag)
std::vector< CameraDeviceacmxvk::anonymous_namespace{camera_probe_windows.cpp}::enumerate_devices ()
void acmxvk::anonymous_namespace{camera_probe_windows.cpp}::free_media_type (AM_MEDIA_TYPE *media_type)
bool acmxvk::listCameraDevices (std::ostream &output, std::ostream &error)
 Print native camera device indices and names as tab-separated records.
bool acmxvk::probeCameraDevice (int device_index, std::ostream &output, std::ostream &error)
 Print the native capture formats, resolutions, and frame rates exposed by a camera device.
ComPtr< IAMStreamConfig > acmxvk::anonymous_namespace{camera_probe_windows.cpp}::stream_config (IMoniker *moniker)
std::string acmxvk::anonymous_namespace{camera_probe_windows.cpp}::subtype_name (const GUID &subtype)
bool acmxvk::anonymous_namespace{camera_probe_windows.cpp}::video_format (const AM_MEDIA_TYPE *media_type, int &width, int &height, double &frame_rate)
std::string acmxvk::anonymous_namespace{camera_probe_windows.cpp}::wide_to_utf8 (const wchar_t *value)

Variables

static const GUID MEDIASUBTYPE_I420

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

Definition at line 4 of file camera_probe_windows.cpp.

Variable Documentation

◆ MEDIASUBTYPE_I420

const GUID MEDIASUBTYPE_I420
static
Initial value:
= {
0x30323449, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71}}

Definition at line 21 of file camera_probe_windows.cpp.

Referenced by acmxvk::anonymous_namespace{camera_probe_windows.cpp}::subtype_name().