Q&A

  • VCM 관해서 질문 입니다. ^^
안녕하세요

VCM 쪽을 공부 하고 있는데 질문이 있어서 이렇게 글을 올립니다.

제가 궁금한 부분은

  dwSize := ICGetStateSize(m_hIC);
  GetMem(p, dwSize);
  FillMemory(p, dwSize,1);
  ICGetState(m_hIC, p, dwSize);
  ICSetState(m_hIC, p, dwSize);
  FreeMem(p, dwSize);

이 부분 중에 ICGetState 로 얻어오는 정보에 관한 자료가 없어서

무슨 갑이 리턴되고 어떤값을 넣어줘야 하는지를 잘 모르겠습니다.

이부분에 대해서 아시는분은 답변 부탁 드립니다.

그럼 추운데 감기 조심하시고 새해 복 많이 받으세요
1  COMMENTS
  • Profile
    박상윤 2006.01.11 02:30

    The ICGetState macro queries a video compression driver to return its current configuration in a block of memory. You can use this macro or explicitly call the ICM_GETSTATE message.

    DWORD ICGetState(
      hic,
      pv,  
      cb  
    );
    Parameters

    hic

    Handle of the compressor.

    pv

    Pointer to a block of memory to contain the current configuration information. You can specify NULL for this parameter to determine the amount of memory required for the configuration information, as in ICGetStateSize.

    cb

    Size, in bytes, of the block of memory.

    Return Values

    If pv is NULL, returns the amount of memory, in bytes, required for configuration information.

    If pv is not NULL, returns ICERR_OK if successful or an error otherwise.

    Remarks

    The ICGetStateSize macro returns the number of bytes used by the state data.

    The structure used to represent configuration information is driver specific and is defined by the driver.

    Use ICGetStateSize before calling the ICGetState macro to determine the size of buffer to allocate for the call.

    Requirements

      Windows NT/2000/XP: Included in Windows NT 3.1 and later.
      Windows 95/98/Me: Included in Windows 95 and later.
      Header: Declared in Vfw.h.

    See Also

    Video Compression Manager, Video Compression Macros, ICGetStateSize, ICM_GETSTATE