- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I am using GetFrame() of MPEG4 decoder in DirectShow. The renderered image does not show correct image. I have set output to YUY2. I have crossed checked with sample code with IPP and everything seems all right. Following is the code
MediaData p_dataIn;
VideoData p_dataOut;
int err_code = 0;
int mRetval;
p_dataIn.SetBufferPointer((vm_byte *)pSrc,lSrcLen);
p_dataOut.SetBufferPointer(pDest,*lDestLen);
mRetval = GetFrame(&p_dataIn,&p_dataOut);
if( mRetval == UMC_OK )
{
int nRet = p_dataOut.GetDataSize();
}
In the above code
pDest = pointer to the DirectShow buffer from IMediaSample
*lDestLen = length of the buffer.
Thanx in advance
Enlace copiado
2 Respuestas
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi!
Does lSrcLen and lDestLen are the same type? Because if they are, then you should use *lSrcLen instead of lSrcLen. What is the color format of the source video?
Greetings,
Bendeguy
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
And I also think, you shoud use
yourrenderervariable.LockInputBuffer(&p_dataOut); before thge GetFrame() and
yourrenderervariable.UnLockInputBuffer(&p_dataOut); after the GetFrame().
Bendeguy

Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla