| 568 | } |
| 569 | |
| 570 | XnCodecID RecorderImpl::GetDefaultCodecID(ProductionNode& node) |
| 571 | { |
| 572 | XN_ASSERT(node.IsValid()); |
| 573 | XnProductionNodeType type = node.GetInfo().GetDescription().Type; |
| 574 | |
| 575 | if (xnIsTypeDerivedFrom(type, XN_NODE_TYPE_DEPTH)) |
| 576 | { |
| 577 | return XN_CODEC_16Z_EMB_TABLES; |
| 578 | } |
| 579 | else if (xnIsTypeDerivedFrom(type, XN_NODE_TYPE_IMAGE)) |
| 580 | { |
| 581 | ImageGenerator gen(node); |
| 582 | XnPixelFormat format = gen.GetPixelFormat(); |
| 583 | switch (format) |
| 584 | { |
| 585 | case XN_PIXEL_FORMAT_RGB24: |
| 586 | return XN_CODEC_JPEG; |
| 587 | case XN_PIXEL_FORMAT_GRAYSCALE_8_BIT: |
| 588 | return XN_CODEC_8Z; |
| 589 | default: |
| 590 | return XN_CODEC_UNCOMPRESSED; |
| 591 | } |
| 592 | } |
| 593 | else |
| 594 | { |
| 595 | return XN_CODEC_UNCOMPRESSED; |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | XnBool RecorderImpl::IsRawNode(const XnChar* strNodeName) |
| 600 | { |
nothing calls this directly
no test coverage detected