Is anybody know the flag doNotDisplay in struct VCODEC_BITSBUF_S work or not?
because i set this flag TRUE but it still display the frame , i want decode but not display!!
my package is DVRRDK_02.00.00.23
Thanks for help !!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is anybody know the flag doNotDisplay in struct VCODEC_BITSBUF_S work or not?
because i set this flag TRUE but it still display the frame , i want decode but not display!!
my package is DVRRDK_02.00.00.23
Thanks for help !!
Frank,
I dont see doNotDisplay is being used anywhere in the code. It is being set to FALSE in multiple places but it is not taking effect in displayLink. What is your data flow? If you are decoding the frame and not displaying what exactly you trying to do with decoded data?
HI Yogesh Marathe, thanks for your reply,
as you said, i didn't see doNotDisplay being use either, only set FALSE at beginning, i want use this flag to perform Trick play function: reverse single step play(RSTEP)
i need find nearest I FRAME and decode each frame from this I frame to the P frame which i really want to play and display~ so i need decode but not display , until which i want see.
regards.
Frank.
Frank,
You can modify decLink to actually skip frames at the output so they dont get displayed. Can you try changing following condition in DecLink_codecGetProcessedData()?
file : dvr_rdk\mcfw\src_bios6\links_m3video\iva_dec\decLink_common.c
patch
@@ -1857,7 +1857,7 @@ static Int32 DecLink_codecGetProcessedData(DecLink_Obj * pObj)
pChObj->trickPlayObj.skipFrame = Utils_doSkipFrame(&(pChObj->trickPlayObj.frameSkipCtx));
- if (pChObj->trickPlayObj.skipFrame == TRUE)
+ if ((pChObj->trickPlayObj.skipFrame == TRUE) || (pReqObj->InBuf->doNotDisplay == TRUE))
{
/* Skip the output frame */
outFrameSkipList.frames[outFrameSkipList.numFrames] =
I'm assuming you are setting doNotDisplay to TRUE for the frames you want to skip. You need to rebuild VideoM3 binaries after this.