Project

General

Profile

Actions

Support Request #2704

closed

ADTF2 tAdditonalDataInfoIndex

Added by hidden almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Customer:
BOSCH
Department:
CC-DA/ETV
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 7 64bit
Topic:
ADTF::Streaming
FAQ Links:

Description

Supportanfrage

habt Ihr ein internes Beispiel oder eine kurze Anleitung wie man enum tAdditonalDataInfoIndex { MSAI_DeviceOriginalTime = 0, MSAI_Counter = 1, MSAI_InfoUserOffset = 200 } für MSAI_InfoUSerOffset verwendet?

Ich möchte zu dem Bildsample eine Check Summe übertragen und möchte dafür nicht MSAI_DeviceOriginalTime missbrauchen wenn möglich.

Lösung

Du musst einfach nur wissen, dass 0 (=MSAI_DeviceOriginalTime) bis 199 (=MSAI_InfoUserOffset - 1) reserved ist, ab 200 (=MSAI_InfoUserOffset) kannst du machen was du willst.

ucom::cObjectPtr<IMediaSampleInfo> pSampleInfo;
if (IS_OK(pMediaSample->GetInterface(IID_ADTF_MEDIA_SAMPLE_INFO, (tVoid**)&pSampleInfo)))
{
    pSampleInfo->SetInfoInt(IMediaSampleInfo::MSAI_InfoUserOffset, 0x05ADFACE);
    pSampleInfo->SetInfoInt(IMediaSampleInfo::MSAI_InfoUserOffset + 1, 0xCAFEBABE);
    // ...
}
Actions

Also available in: Atom PDF