Home | History | Annotate | Download | only in src

Lines Matching refs:h264_scratch

656     memset (&h264_scratch,0,sizeof (OMX_BUFFERHEADERTYPE));
2016 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size;
2017 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size);
2018 h264_scratch.nFilledLen = 0;
2019 h264_scratch.nOffset = 0;
2021 if (h264_scratch.pBuffer == NULL)
2023 DEBUG_PRINT_ERROR("h264_scratch.pBuffer Allocation failed ");
2856 h264_scratch.nFilledLen = 0;
6158 h264_scratch.nFilledLen = 0;
6543 if(h264_scratch.pBuffer)
6545 free(h264_scratch.pBuffer);
6546 h264_scratch.pBuffer = NULL;
7684 if (h264_scratch.pBuffer == NULL)
7691 DEBUG_PRINT_LOW("h264_scratch.nFilledLen %lu has look_ahead_nal %d pdest_frame nFilledLen %lu nTimeStamp %lld",
7692 h264_scratch.nFilledLen, look_ahead_nal, pdest_frame->nFilledLen, pdest_frame->nTimeStamp);
7694 if (h264_scratch.nFilledLen && look_ahead_nal)
7699 rc = copy_buffer(pdest_frame, &h264_scratch);
7708 &h264_scratch,&partial_frame) == -1)
7718 &h264_scratch,&partial_frame) == -1)
7727 if (nal_count == 0 && h264_scratch.nFilledLen == 0)
7731 h264_scratch.nTimeStamp = psource_frame->nTimeStamp;
7732 h264_scratch.nFlags = psource_frame->nFlags;
7736 h264_scratch.nFilledLen);
7737 if(h264_scratch.nFilledLen)
7739 mHEVCutils.isNewFrame(&h264_scratch, 0, isNewFrame);
7745 DEBUG_PRINT_LOW("Not a new frame, copy h264_scratch nFilledLen %lu nTimestamp %lld, pdest_frame nFilledLen %lu nTimestamp %lld",
7746 h264_scratch.nFilledLen, h264_scratch.nTimeStamp, pdest_frame->nFilledLen, pdest_frame->nTimeStamp);
7747 rc = copy_buffer(pdest_frame, &h264_scratch);
7760 rc = copy_buffer(pdest_frame, &h264_scratch);
7768 if(psource_frame->nFilledLen || h264_scratch.nFilledLen)
7773 DEBUG_PRINT_LOW("FrameDetecetd # %d pdest_frame nFilledLen %lu nTimeStamp %lld, look_ahead_nal in h264_scratch nFilledLen %lu nTimeStamp %lld",
7774 frame_count++, pdest_frame->nFilledLen, pdest_frame->nTimeStamp, h264_scratch.nFilledLen, h264_scratch.nTimeStamp);
7795 DEBUG_PRINT_LOW("psource_frame is partial nFilledLen %lu nTimeStamp %lld, pdest_frame nFilledLen %lu nTimeStamp %lld, h264_scratch nFilledLen %lu nTimeStamp %lld",
7796 psource_frame->nFilledLen, psource_frame->nTimeStamp, pdest_frame->nFilledLen, pdest_frame->nTimeStamp, h264_scratch.nFilledLen, h264_scratch.nTimeStamp);
7799 if (h264_scratch.nAllocLen ==
7800 h264_scratch.nFilledLen + h264_scratch.nOffset)
7816 rc = copy_buffer(pdest_frame, &h264_scratch);
7821 pdest_frame->nTimeStamp = h264_scratch.nTimeStamp;
7822 pdest_frame->nFlags = h264_scratch.nFlags | psource_frame->nFlags;
7838 pdest_frame,h264_scratch.nFilledLen, frame_count);