or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

camera-features.mdformat7.mdimage-conversion.mdindex.mdiso-resource-management.mdlogging.mdsystem-management.mdtrigger-control.mdutility-functions.mdvideo-capture.mdvideo-modes.md

index.mddocs/

0

# libdc1394

1

2

libdc1394 provides Java bindings for the libdc1394 library, which offers high-level API for controlling IEEE 1394 (FireWire) digital cameras following IIDC/DCAM specifications. The library enables cross-platform camera management and control, supporting approximately 500 camera models with features including camera detection, comprehensive feature controls, multiple video mode support, high-performance video capture using DMA, color space conversion capabilities, and demosaicing of Bayer color pattern images.

3

4

## Package Information

5

6

- **Package Name**: org.bytedeco:libdc1394

7

- **Package Type**: maven

8

- **Language**: Java (JavaCPP bindings for C library)

9

- **Installation**: Maven dependency:

10

```xml

11

<dependency>

12

<groupId>org.bytedeco</groupId>

13

<artifactId>libdc1394-platform</artifactId>

14

<version>2.2.6-1.5.12</version>

15

</dependency>

16

```

17

18

## Core Imports

19

20

```java

21

import org.bytedeco.libdc1394.*;

22

import static org.bytedeco.libdc1394.global.dc1394.*;

23

```

24

25

## Basic Usage

26

27

```java

28

import org.bytedeco.libdc1394.*;

29

import static org.bytedeco.libdc1394.global.dc1394.*;

30

import java.io.*;

31

32

// Initialize libdc1394 system

33

dc1394_t d = dc1394_new();

34

if (d == null) {

35

System.exit(1);

36

}

37

38

// Enumerate cameras

39

dc1394camera_list_t list = new dc1394camera_list_t();

40

int err = dc1394_camera_enumerate(d, list);

41

if (err != 0 || list.num() == 0) {

42

dc1394_log_error("No cameras found");

43

dc1394_free(d);

44

System.exit(1);

45

}

46

47

// Create camera instance

48

dc1394camera_t camera = dc1394_camera_new(d, list.ids().guid());

49

if (camera == null) {

50

dc1394_log_error("Failed to initialize camera");

51

dc1394_camera_free_list(list);

52

dc1394_free(d);

53

System.exit(1);

54

}

55

dc1394_camera_free_list(list);

56

57

// Configure camera

58

dc1394_video_set_iso_speed(camera, DC1394_ISO_SPEED_400);

59

dc1394_video_set_mode(camera, DC1394_VIDEO_MODE_640x480_RGB8);

60

dc1394_video_set_framerate(camera, DC1394_FRAMERATE_7_5);

61

62

// Setup capture

63

dc1394_capture_setup(camera, 4, DC1394_CAPTURE_FLAGS_DEFAULT);

64

dc1394_video_set_transmission(camera, DC1394_ON);

65

66

// Capture frame

67

dc1394video_frame_t frame = new dc1394video_frame_t(null);

68

dc1394_capture_dequeue(camera, DC1394_CAPTURE_POLICY_WAIT, frame);

69

70

// Process frame data

71

byte[] imageData = new byte[(int)frame.total_bytes()];

72

frame.image().get(imageData);

73

74

// Return frame and cleanup

75

dc1394_capture_enqueue(camera, frame);

76

dc1394_video_set_transmission(camera, DC1394_OFF);

77

dc1394_capture_stop(camera);

78

dc1394_camera_free(camera);

79

dc1394_free(d);

80

```

81

82

## Architecture

83

84

libdc1394 is built around several key components:

85

86

- **System Context**: `dc1394_t` provides the main library context for all operations

87

- **Camera Management**: Discovery, initialization, and control of individual cameras through `dc1394camera_t`

88

- **Video Capture**: Frame-based image acquisition with DMA transfer support

89

- **Feature Control**: Comprehensive camera parameter control (exposure, gain, white balance, etc.)

90

- **Format7 Support**: Scalable image format with ROI (Region of Interest) capabilities

91

- **Image Conversion**: Built-in color space conversion and Bayer demosaicing

92

- **Trigger Control**: External and software trigger support for synchronized capture

93

94

## Capabilities

95

96

### System Management

97

98

Core system initialization, camera discovery, and resource management functionality.

99

100

```java { .api }

101

// System context management

102

dc1394_t dc1394_new();

103

void dc1394_free(dc1394_t d);

104

105

// Camera discovery and management

106

int dc1394_camera_enumerate(dc1394_t d, dc1394camera_list_t list);

107

void dc1394_camera_free_list(dc1394camera_list_t list);

108

dc1394camera_t dc1394_camera_new(dc1394_t d, long guid);

109

dc1394camera_t dc1394_camera_new_unit(dc1394_t d, long guid, int unit);

110

void dc1394_camera_free(dc1394camera_t camera);

111

```

112

113

[System Management](./system-management.md)

114

115

### Video Capture

116

117

High-performance video frame capture with DMA support and flexible capture policies.

118

119

```java { .api }

120

// Capture setup and control

121

int dc1394_capture_setup(dc1394camera_t camera, int num_dma_buffers, int flags);

122

int dc1394_capture_dequeue(dc1394camera_t camera, int policy, dc1394video_frame_t frame);

123

int dc1394_capture_enqueue(dc1394camera_t camera, dc1394video_frame_t frame);

124

int dc1394_capture_stop(dc1394camera_t camera);

125

126

// Frame structure access

127

interface dc1394video_frame_t {

128

BytePointer image(); // Raw image data

129

long total_bytes(); // Total frame size in bytes

130

long image_bytes(); // Image data size in bytes

131

int size(int i); // Width (i=0) and height (i=1)

132

int color_coding(); // Color format

133

int video_mode(); // Video mode

134

long timestamp(); // Frame timestamp

135

}

136

```

137

138

[Video Capture](./video-capture.md)

139

140

### Camera Features

141

142

Comprehensive camera feature control including exposure, gain, white balance, focus, and advanced parameters.

143

144

```java { .api }

145

// Feature information and control

146

int dc1394_feature_get_all(dc1394camera_t camera, dc1394featureset_t features);

147

int dc1394_feature_get_value(dc1394camera_t camera, int feature, IntPointer value);

148

int dc1394_feature_set_value(dc1394camera_t camera, int feature, int value);

149

int dc1394_feature_get_mode(dc1394camera_t camera, int feature, IntPointer mode);

150

int dc1394_feature_set_mode(dc1394camera_t camera, int feature, int mode);

151

152

// Feature structure

153

interface dc1394feature_info_t {

154

int id(); // Feature identifier

155

boolean available(); // Feature availability

156

boolean absolute_capable(); // Absolute value support

157

int min(); // Minimum value

158

int max(); // Maximum value

159

int value(); // Current value

160

int mode(); // Control mode (manual/auto)

161

}

162

```

163

164

[Camera Features](./camera-features.md)

165

166

### Video Modes and Formats

167

168

Video mode configuration with support for standard formats and scalable Format7 modes.

169

170

```java { .api }

171

// Video mode control

172

int dc1394_video_get_supported_modes(dc1394camera_t camera, dc1394video_modes_t modes);

173

int dc1394_video_set_mode(dc1394camera_t camera, int video_mode);

174

int dc1394_video_get_mode(dc1394camera_t camera, IntPointer video_mode);

175

int dc1394_video_set_framerate(dc1394camera_t camera, int framerate);

176

int dc1394_video_get_framerate(dc1394camera_t camera, IntPointer framerate);

177

178

// Standard video modes (32 constants)

179

static final int DC1394_VIDEO_MODE_160x120_YUV444 = 64;

180

static final int DC1394_VIDEO_MODE_640x480_RGB8 = 68;

181

static final int DC1394_VIDEO_MODE_800x600_MONO8 = 73;

182

static final int DC1394_VIDEO_MODE_1600x1200_MONO16 = 86;

183

// ... and 28 more video modes

184

```

185

186

[Video Modes and Formats](./video-modes.md)

187

188

### Format7 (Scalable Format)

189

190

Advanced scalable format support allowing custom image sizes, positions, and region of interest (ROI) configuration.

191

192

```java { .api }

193

// Format7 mode configuration

194

int dc1394_format7_get_modeset(dc1394camera_t camera, dc1394format7modeset_t modeset);

195

int dc1394_format7_set_roi(dc1394camera_t camera, int mode, int color_coding,

196

int packet_size, int left, int top, int width, int height);

197

int dc1394_format7_get_max_image_size(dc1394camera_t camera, int mode,

198

IntPointer h_size, IntPointer v_size);

199

int dc1394_format7_set_image_size(dc1394camera_t camera, int mode, int width, int height);

200

int dc1394_format7_set_color_coding(dc1394camera_t camera, int mode, int color_coding);

201

202

// Format7 mode structure

203

interface dc1394format7mode_t {

204

boolean present(); // Mode availability

205

int max_size_x(); // Maximum width

206

int max_size_y(); // Maximum height

207

int unit_size_x(); // Width increment unit

208

int unit_size_y(); // Height increment unit

209

int packet_size_per_unit(); // Packet size per unit

210

}

211

```

212

213

[Format7 Support](./format7.md)

214

215

### Trigger Control

216

217

External and software trigger control for synchronized image capture and multi-camera setups.

218

219

```java { .api }

220

// Trigger configuration

221

int dc1394_external_trigger_set_mode(dc1394camera_t camera, int mode);

222

int dc1394_external_trigger_get_mode(dc1394camera_t camera, IntPointer mode);

223

int dc1394_external_trigger_set_source(dc1394camera_t camera, int source);

224

int dc1394_external_trigger_set_polarity(dc1394camera_t camera, int polarity);

225

int dc1394_external_trigger_set_power(dc1394camera_t camera, int pwr);

226

int dc1394_software_trigger_set_power(dc1394camera_t camera, int pwr);

227

228

// Trigger modes and sources

229

static final int DC1394_TRIGGER_MODE_0 = 384;

230

static final int DC1394_TRIGGER_SOURCE_0 = 576;

231

static final int DC1394_TRIGGER_SOURCE_SOFTWARE = 580;

232

static final int DC1394_TRIGGER_ACTIVE_LOW = 518;

233

static final int DC1394_TRIGGER_ACTIVE_HIGH = 519;

234

```

235

236

[Trigger Control](./trigger-control.md)

237

238

### Image Conversion

239

240

Built-in image format conversion including Bayer pattern demosaicing, color space conversion, and stereo processing.

241

242

```java { .api }

243

// Bayer pattern demosaicing

244

int dc1394_bayer_decoding_8bit(BytePointer bayer, BytePointer rgb, int sx, int sy,

245

int tile, int method);

246

int dc1394_bayer_decoding_16bit(ShortPointer bayer, ShortPointer rgb, int sx, int sy,

247

int tile, int method, int bits);

248

249

// Format conversion

250

int dc1394_convert_to_YUV422(BytePointer src, BytePointer dest, int width, int height,

251

int byte_order, int source_coding, int bits);

252

int dc1394_convert_to_RGB8(BytePointer src, BytePointer dest, int width, int height,

253

int byte_order, int source_coding, int bits);

254

255

// Bayer methods and color filters

256

static final int DC1394_BAYER_METHOD_NEAREST = 0;

257

static final int DC1394_BAYER_METHOD_BILINEAR = 2;

258

static final int DC1394_COLOR_FILTER_RGGB = 512;

259

static final int DC1394_COLOR_FILTER_GBRG = 513;

260

```

261

262

[Image Conversion](./image-conversion.md)

263

264

### ISO Resource Management

265

266

IEEE 1394 bus resource allocation for bandwidth and channel management in multi-camera setups.

267

268

```java { .api }

269

// Channel and bandwidth allocation

270

int dc1394_iso_allocate_channel(dc1394camera_t camera, long channels_allowed, IntPointer channel);

271

int dc1394_iso_release_channel(dc1394camera_t camera, int channel);

272

int dc1394_iso_allocate_bandwidth(dc1394camera_t camera, int bandwidth_units);

273

int dc1394_iso_release_bandwidth(dc1394camera_t camera, int bandwidth_units);

274

int dc1394_iso_set_persist(dc1394camera_t camera);

275

int dc1394_iso_release_all(dc1394camera_t camera);

276

```

277

278

[ISO Resource Management](./iso-resource-management.md)

279

280

### Utility Functions

281

282

Helper functions for format validation, error handling, and data conversion.

283

284

```java { .api }

285

// Format validation and conversion

286

int dc1394_get_image_size_from_video_mode(dc1394camera_t camera, int video_mode,

287

IntPointer width, IntPointer height);

288

int dc1394_framerate_as_float(int framerate_enum, FloatPointer framerate);

289

boolean dc1394_is_video_mode_scalable(int video_mode);

290

boolean dc1394_is_same_camera(dc1394camera_id_t id1, dc1394camera_id_t id2);

291

BytePointer dc1394_feature_get_string(int feature);

292

BytePointer dc1394_error_get_string(int error);

293

```

294

295

[Utility Functions](./utility-functions.md)

296

297

### Logging and Debugging

298

299

Error reporting, debug logging, and custom message handling.

300

301

```java { .api }

302

// Built-in logging functions

303

void dc1394_log_error(String format);

304

void dc1394_log_warning(String format);

305

void dc1394_log_debug(String format);

306

307

// Custom log handler registration

308

int dc1394_log_register_handler(int type, Log_handler_int_BytePointer_Pointer log_handler,

309

Pointer user);

310

int dc1394_log_set_default_handler(int type);

311

```

312

313

[Logging and Debugging](./logging.md)

314

315

## Types

316

317

### Core System Types

318

319

```java { .api }

320

// Main system context

321

class dc1394_t extends Pointer {

322

// Opaque system context - no direct field access

323

}

324

325

// Camera list for discovery

326

class dc1394camera_list_t extends Pointer {

327

int num(); // Number of cameras found

328

dc1394camera_id_t ids(); // Array of camera identifiers

329

}

330

331

// Camera identifier

332

class dc1394camera_id_t extends Pointer {

333

int unit(); // Camera unit number

334

long guid(); // Camera GUID

335

}

336

```

337

338

### Camera Object

339

340

```java { .api }

341

// Main camera object with 22 properties

342

class dc1394camera_t extends Pointer {

343

// System information

344

long guid(); // Camera GUID

345

int unit(); // Unit number on bus

346

String vendor(); // Vendor name

347

String model(); // Camera model

348

349

// Hardware identifiers

350

int vendor_id(); // Vendor ID

351

int model_id(); // Model ID

352

int unit_spec_ID(); // Unit specification ID

353

354

// Firmware information

355

int unit_sw_version(); // Software version

356

int unit_sub_sw_version(); // Sub software version

357

int iidc_version(); // IIDC version

358

359

// Capabilities

360

boolean bmode_capable(); // B-mode capability

361

boolean one_shot_capable(); // One-shot capability

362

boolean multi_shot_capable(); // Multi-shot capability

363

boolean can_switch_on_off(); // Power switch capability

364

365

// ... and 8 more fields for memory layout and CSR addresses

366

}

367

```

368

369

### Video Frame Structure

370

371

```java { .api }

372

// Video frame with comprehensive metadata

373

class dc1394video_frame_t extends Pointer {

374

// Image data

375

BytePointer image(); // Raw image data pointer

376

long total_bytes(); // Total frame size in bytes

377

long image_bytes(); // Image data size in bytes

378

long allocated_image_bytes(); // Allocated buffer size

379

380

// Frame dimensions and position

381

int size(int i); // Width (i=0) and height (i=1)

382

int _position(int i); // Left (i=0) and top (i=1) position

383

384

// Format information

385

int color_coding(); // Color coding format

386

int color_filter(); // Bayer color filter pattern

387

int video_mode(); // Video mode

388

int data_depth(); // Bits per pixel

389

int stride(); // Bytes per line

390

391

// Timing and metadata

392

long timestamp(); // Frame timestamp

393

int frames_behind(); // Frames behind in buffer

394

int packet_size(); // Packet size for Format7

395

int packets_per_frame(); // Packets per frame

396

397

// Status information

398

int padding_bytes(); // Padding bytes

399

boolean little_endian(); // Byte order

400

boolean data_in_padding(); // Data in padding area

401

dc1394camera_t camera(); // Source camera

402

long id(); // Frame ID

403

}

404

```

405

406

### Feature Control Types

407

408

```java { .api }

409

// Individual feature information (22 fields)

410

class dc1394feature_info_t extends Pointer {

411

int id(); // Feature identifier (DC1394_FEATURE_*)

412

boolean available(); // Feature availability

413

boolean absolute_capable(); // Absolute value support

414

boolean on_off_capable(); // On/off control support

415

boolean polarity_capable(); // Polarity control support

416

boolean is_on(); // Current on/off state

417

boolean auto_capable(); // Auto mode support

418

boolean manual_capable(); // Manual mode support

419

boolean one_push_capable(); // One-push auto support

420

int one_push(); // One-push state

421

boolean readout_capable(); // Readout capability

422

int polarity(); // Current polarity

423

int mode(); // Control mode

424

int min(); // Minimum value

425

int max(); // Maximum value

426

int value(); // Current value

427

int BU_value(); // Blue/U component value (for white balance)

428

int RV_value(); // Red/V component value (for white balance)

429

int target_value(); // Target value for auto mode

430

boolean abs_capable(); // Absolute value capability

431

float abs_value(); // Absolute value

432

float abs_min(); // Absolute minimum

433

float abs_max(); // Absolute maximum

434

}

435

436

// Complete feature set

437

class dc1394featureset_t extends Pointer {

438

dc1394feature_info_t feature(int i); // Access individual features by index

439

}

440

```

441

442

## Constants

443

444

### Error Codes

445

446

```java { .api }

447

// Core operation results

448

static final int DC1394_SUCCESS = 0;

449

static final int DC1394_FAILURE = -1;

450

static final int DC1394_NOT_A_CAMERA = -2;

451

static final int DC1394_FUNCTION_NOT_SUPPORTED = -3;

452

static final int DC1394_CAMERA_NOT_INITIALIZED = -4;

453

static final int DC1394_MEMORY_ALLOCATION_FAILURE = -5;

454

static final int DC1394_INVALID_ARGUMENT_VALUE = -6;

455

static final int DC1394_INVALID_FEATURE = -7;

456

static final int DC1394_INVALID_VIDEO_FORMAT = -8;

457

static final int DC1394_INVALID_VIDEO_MODE = -9;

458

static final int DC1394_INVALID_FRAMERATE = -10;

459

static final int DC1394_INVALID_TRIGGER_MODE = -11;

460

static final int DC1394_INVALID_TRIGGER_SOURCE = -12;

461

static final int DC1394_INVALID_ISO_SPEED = -13;

462

static final int DC1394_INVALID_IIDC_VERSION = -14;

463

static final int DC1394_INVALID_COLOR_CODING = -15;

464

static final int DC1394_INVALID_COLOR_FILTER = -16;

465

static final int DC1394_INVALID_CAPTURE_POLICY = -17;

466

static final int DC1394_INVALID_ERROR_CODE = -18;

467

static final int DC1394_INVALID_BAYER_METHOD = -19;

468

static final int DC1394_INVALID_VIDEO_SETTING = -20;

469

static final int DC1394_INVALID_FORMAT7_MODE = -21;

470

static final int DC1394_INVALID_FORMAT7_SETTING = -22;

471

static final int DC1394_INVALID_WHITEBALANCE_MODE = -23;

472

static final int DC1394_INVALID_TEMPERATURE_MODE = -24;

473

static final int DC1394_INVALID_OPERATION_MODE = -25;

474

static final int DC1394_REQ_VALUE_OUTSIDE_RANGE = -26;

475

static final int DC1394_INVALID_REGISTER = -27;

476

static final int DC1394_INVALID_ADDRSPACE = -28;

477

static final int DC1394_INVALID_CAPTURE_BUFFER = -29;

478

static final int DC1394_INVALID_CAMERA = -30;

479

static final int DC1394_UNABLE_TO_AQUIRE_CAMERA = -31;

480

static final int DC1394_SYNCHRONIZATION_FAILURE = -32;

481

static final int DC1394_CAMERA_ALREADY_USED = -33;

482

static final int DC1394_RAW1394_FAILURE = -34;

483

static final int DC1394_FORMAT7_ERROR_FLAG_1 = -35;

484

static final int DC1394_FORMAT7_ERROR_FLAG_2 = -36;

485

static final int DC1394_INVALID_STATE = -37;

486

static final int DC1394_FEATURE_NOT_AVAILABLE = -38;

487

static final int DC1394_FEATURE_NOT_SWITCHABLE = -39;

488

```

489

490

### Boolean and State Constants

491

492

```java { .api }

493

// Boolean values

494

static final int DC1394_FALSE = 0;

495

static final int DC1394_TRUE = 1;

496

497

// Power states

498

static final int DC1394_OFF = 0;

499

static final int DC1394_ON = 1;

500

501

// Switch states

502

static final int DC1394_SWITCH_MIN = 0;

503

static final int DC1394_SWITCH_MAX = 1;

504

```

505

506

### Video Mode Constants

507

508

```java { .api }

509

// Standard video modes (32 modes)

510

static final int DC1394_VIDEO_MODE_160x120_YUV444 = 64;

511

static final int DC1394_VIDEO_MODE_320x240_YUV422 = 65;

512

static final int DC1394_VIDEO_MODE_640x480_YUV411 = 66;

513

static final int DC1394_VIDEO_MODE_640x480_YUV422 = 67;

514

static final int DC1394_VIDEO_MODE_640x480_RGB8 = 68;

515

static final int DC1394_VIDEO_MODE_640x480_MONO8 = 69;

516

static final int DC1394_VIDEO_MODE_640x480_MONO16 = 70;

517

static final int DC1394_VIDEO_MODE_800x600_YUV422 = 71;

518

static final int DC1394_VIDEO_MODE_800x600_RGB8 = 72;

519

static final int DC1394_VIDEO_MODE_800x600_MONO8 = 73;

520

static final int DC1394_VIDEO_MODE_1024x768_YUV422 = 74;

521

static final int DC1394_VIDEO_MODE_1024x768_RGB8 = 75;

522

static final int DC1394_VIDEO_MODE_1024x768_MONO8 = 76;

523

static final int DC1394_VIDEO_MODE_800x600_MONO16 = 77;

524

static final int DC1394_VIDEO_MODE_1024x768_MONO16 = 78;

525

static final int DC1394_VIDEO_MODE_1280x960_YUV422 = 79;

526

static final int DC1394_VIDEO_MODE_1280x960_RGB8 = 80;

527

static final int DC1394_VIDEO_MODE_1280x960_MONO8 = 81;

528

static final int DC1394_VIDEO_MODE_1600x1200_YUV422 = 82;

529

static final int DC1394_VIDEO_MODE_1600x1200_RGB8 = 83;

530

static final int DC1394_VIDEO_MODE_1600x1200_MONO8 = 84;

531

static final int DC1394_VIDEO_MODE_1280x960_MONO16 = 85;

532

static final int DC1394_VIDEO_MODE_1600x1200_MONO16 = 86;

533

static final int DC1394_VIDEO_MODE_EXIF = 87;

534

static final int DC1394_VIDEO_MODE_FORMAT7_0 = 88;

535

static final int DC1394_VIDEO_MODE_FORMAT7_1 = 89;

536

static final int DC1394_VIDEO_MODE_FORMAT7_2 = 90;

537

static final int DC1394_VIDEO_MODE_FORMAT7_3 = 91;

538

static final int DC1394_VIDEO_MODE_FORMAT7_4 = 92;

539

static final int DC1394_VIDEO_MODE_FORMAT7_5 = 93;

540

static final int DC1394_VIDEO_MODE_FORMAT7_6 = 94;

541

static final int DC1394_VIDEO_MODE_FORMAT7_7 = 95;

542

```

543

544

### Color Coding Constants

545

546

```java { .api }

547

// Color coding formats (11 formats)

548

static final int DC1394_COLOR_CODING_MONO8 = 352;

549

static final int DC1394_COLOR_CODING_YUV422 = 353;

550

static final int DC1394_COLOR_CODING_YUV411 = 354;

551

static final int DC1394_COLOR_CODING_YUV444 = 355;

552

static final int DC1394_COLOR_CODING_RGB8 = 356;

553

static final int DC1394_COLOR_CODING_MONO16 = 357;

554

static final int DC1394_COLOR_CODING_RGB16 = 358;

555

static final int DC1394_COLOR_CODING_MONO16S = 359;

556

static final int DC1394_COLOR_CODING_RGB16S = 360;

557

static final int DC1394_COLOR_CODING_RAW8 = 361;

558

static final int DC1394_COLOR_CODING_RAW16 = 362;

559

560

// Color filter patterns (4 patterns)

561

static final int DC1394_COLOR_FILTER_RGGB = 512;

562

static final int DC1394_COLOR_FILTER_GBRG = 513;

563

static final int DC1394_COLOR_FILTER_GRBG = 514;

564

static final int DC1394_COLOR_FILTER_BGGR = 515;

565

566

// Byte order (2 values)

567

static final int DC1394_BYTE_ORDER_UYVY = 800;

568

static final int DC1394_BYTE_ORDER_YUYV = 801;

569

```

570

571

### Framerate and Speed Constants

572

573

```java { .api }

574

// Framerates (8 rates)

575

static final int DC1394_FRAMERATE_1_875 = 32;

576

static final int DC1394_FRAMERATE_3_75 = 33;

577

static final int DC1394_FRAMERATE_7_5 = 34;

578

static final int DC1394_FRAMERATE_15 = 35;

579

static final int DC1394_FRAMERATE_30 = 36;

580

static final int DC1394_FRAMERATE_60 = 37;

581

static final int DC1394_FRAMERATE_120 = 38;

582

static final int DC1394_FRAMERATE_240 = 39;

583

584

// ISO speeds (6 speeds)

585

static final int DC1394_ISO_SPEED_100 = 0;

586

static final int DC1394_ISO_SPEED_200 = 1;

587

static final int DC1394_ISO_SPEED_400 = 2;

588

static final int DC1394_ISO_SPEED_800 = 3;

589

static final int DC1394_ISO_SPEED_1600 = 4;

590

static final int DC1394_ISO_SPEED_3200 = 5;

591

592

// Operation modes (2 modes)

593

static final int DC1394_OPERATION_MODE_LEGACY = 480;

594

static final int DC1394_OPERATION_MODE_1394B = 481;

595

```

596

597

### Feature Constants

598

599

```java { .api }

600

// Camera features (22 features)

601

static final int DC1394_FEATURE_BRIGHTNESS = 416;

602

static final int DC1394_FEATURE_EXPOSURE = 417;

603

static final int DC1394_FEATURE_SHARPNESS = 418;

604

static final int DC1394_FEATURE_WHITE_BALANCE = 419;

605

static final int DC1394_FEATURE_HUE = 420;

606

static final int DC1394_FEATURE_SATURATION = 421;

607

static final int DC1394_FEATURE_GAMMA = 422;

608

static final int DC1394_FEATURE_SHUTTER = 423;

609

static final int DC1394_FEATURE_GAIN = 424;

610

static final int DC1394_FEATURE_IRIS = 425;

611

static final int DC1394_FEATURE_FOCUS = 426;

612

static final int DC1394_FEATURE_TEMPERATURE = 427;

613

static final int DC1394_FEATURE_TRIGGER = 428;

614

static final int DC1394_FEATURE_TRIGGER_DELAY = 429;

615

static final int DC1394_FEATURE_WHITE_SHADING = 430;

616

static final int DC1394_FEATURE_FRAME_RATE = 431;

617

static final int DC1394_FEATURE_ZOOM = 432;

618

static final int DC1394_FEATURE_PAN = 433;

619

static final int DC1394_FEATURE_TILT = 434;

620

static final int DC1394_FEATURE_OPTICAL_FILTER = 435;

621

static final int DC1394_FEATURE_CAPTURE_SIZE = 436;

622

static final int DC1394_FEATURE_CAPTURE_QUALITY = 437;

623

624

// Feature modes (3 modes)

625

static final int DC1394_FEATURE_MODE_MANUAL = 736;

626

static final int DC1394_FEATURE_MODE_AUTO = 737;

627

static final int DC1394_FEATURE_MODE_ONE_PUSH_AUTO = 738;

628

```

629

630

### Trigger Constants

631

632

```java { .api }

633

// Trigger modes (8 modes)

634

static final int DC1394_TRIGGER_MODE_0 = 384;

635

static final int DC1394_TRIGGER_MODE_1 = 385;

636

static final int DC1394_TRIGGER_MODE_2 = 386;

637

static final int DC1394_TRIGGER_MODE_3 = 387;

638

static final int DC1394_TRIGGER_MODE_4 = 388;

639

static final int DC1394_TRIGGER_MODE_5 = 389;

640

static final int DC1394_TRIGGER_MODE_14 = 390;

641

static final int DC1394_TRIGGER_MODE_15 = 391;

642

643

// Trigger sources (5 sources)

644

static final int DC1394_TRIGGER_SOURCE_0 = 576;

645

static final int DC1394_TRIGGER_SOURCE_1 = 577;

646

static final int DC1394_TRIGGER_SOURCE_2 = 578;

647

static final int DC1394_TRIGGER_SOURCE_3 = 579;

648

static final int DC1394_TRIGGER_SOURCE_SOFTWARE = 580;

649

650

// Trigger polarity (2 values)

651

static final int DC1394_TRIGGER_ACTIVE_LOW = 518;

652

static final int DC1394_TRIGGER_ACTIVE_HIGH = 519;

653

```

654

655

### Capture Constants

656

657

```java { .api }

658

// Capture policies (2 policies)

659

static final int DC1394_CAPTURE_POLICY_WAIT = 672;

660

static final int DC1394_CAPTURE_POLICY_POLL = 673;

661

662

// Capture flags (4 flags)

663

static final int DC1394_CAPTURE_FLAGS_CHANNEL_ALLOC = 1;

664

static final int DC1394_CAPTURE_FLAGS_BANDWIDTH_ALLOC = 2;

665

static final int DC1394_CAPTURE_FLAGS_DEFAULT = 4;

666

static final int DC1394_CAPTURE_FLAGS_AUTO_ISO = 8;

667

```

668

669

### Image Processing Constants

670

671

```java { .api }

672

// Bayer decoding methods (8 methods)

673

static final int DC1394_BAYER_METHOD_NEAREST = 0;

674

static final int DC1394_BAYER_METHOD_SIMPLE = 1;

675

static final int DC1394_BAYER_METHOD_BILINEAR = 2;

676

static final int DC1394_BAYER_METHOD_HQLINEAR = 3;

677

static final int DC1394_BAYER_METHOD_DOWNSAMPLE = 4;

678

static final int DC1394_BAYER_METHOD_EDGESENSE = 5;

679

static final int DC1394_BAYER_METHOD_VNG = 6;

680

static final int DC1394_BAYER_METHOD_AHD = 7;

681

682

// Stereo decoding methods (2 methods)

683

static final int DC1394_STEREO_METHOD_INTERLACED = 0;

684

static final int DC1394_STEREO_METHOD_FIELD = 1;

685

```

686

687

### Format7 Constants

688

689

```java { .api }

690

// Format7 special values (3 values)

691

static final int DC1394_QUERY_FROM_CAMERA = -1;

692

static final int DC1394_USE_MAX_AVAIL = -2;

693

static final int DC1394_USE_RECOMMENDED = -3;

694

```

695

696

### Log Level Constants

697

698

```java { .api }

699

// Log levels (3 levels)

700

static final int DC1394_LOG_ERROR = 768;

701

static final int DC1394_LOG_WARNING = 769;

702

static final int DC1394_LOG_DEBUG = 770;

703

```

704

705

### IIDC Version Constants

706

707

```java { .api }

708

// IIDC specification versions (13 versions)

709

static final int DC1394_IIDC_VERSION_1_04 = 544;

710

static final int DC1394_IIDC_VERSION_1_20 = 545;

711

static final int DC1394_IIDC_VERSION_PTGREY = 546;

712

static final int DC1394_IIDC_VERSION_1_30 = 547;

713

static final int DC1394_IIDC_VERSION_1_31 = 548;

714

static final int DC1394_IIDC_VERSION_1_32 = 549;

715

static final int DC1394_IIDC_VERSION_1_33 = 550;

716

static final int DC1394_IIDC_VERSION_1_34 = 551;

717

static final int DC1394_IIDC_VERSION_1_35 = 552;

718

static final int DC1394_IIDC_VERSION_1_36 = 553;

719

static final int DC1394_IIDC_VERSION_1_37 = 554;

720

static final int DC1394_IIDC_VERSION_1_38 = 555;

721

static final int DC1394_IIDC_VERSION_1_39 = 556;

722

```

723

724

### Power Class Constants

725

726

```java { .api }

727

// Power class specifications (8 classes)

728

static final int DC1394_POWER_CLASS_NONE = 608;

729

static final int DC1394_POWER_CLASS_PROV_MIN_15W = 609;

730

static final int DC1394_POWER_CLASS_PROV_MIN_20W = 610;

731

static final int DC1394_POWER_CLASS_PROV_MIN_25W = 611;

732

static final int DC1394_POWER_CLASS_PROV_MIN_30W = 612;

733

static final int DC1394_POWER_CLASS_USES_MAX_1W = 613;

734

static final int DC1394_POWER_CLASS_USES_MAX_3W = 614;

735

static final int DC1394_POWER_CLASS_USES_MAX_6W = 615;

736

static final int DC1394_POWER_CLASS_USES_MAX_10W = 616;

737

```