Home | History | Annotate | Download | only in mediaeditor

Lines Matching defs:pC

56     VideoBrowserContext* pC = (VideoBrowserContext*)pContext;
65 CHECK_STATE(videoBrowserSetWindow, VideoBrowser_kVBOpened, pC);
67 pC->m_outputPlane[0].u_topleft = 0;
69 pC->m_outputPlane[0].u_height = dy;
70 pC->m_outputPlane[0].u_width = dx;
71 pC->m_x = x;
72 pC->m_y = y;
74 if (pC->m_frameColorType == VideoBrowser_kGB565) {
75 pC->m_outputPlane[0].u_stride = pC->m_outputPlane[0].u_width << 1;
76 pC->m_outputPlane[0].pac_data = (M4OSA_UInt8*)M4OSA_32bitAlignedMalloc(
77 pC->m_outputPlane[0].u_stride * pC->m_outputPlane[0].u_height,
81 pC->m_outputPlane[0].pac_data, err, M4ERR_ALLOC);
83 else if (pC->m_frameColorType == VideoBrowser_kYUV420) {
84 pC->m_outputPlane[0].u_stride = pC->m_outputPlane[0].u_width;
85 pC->m_outputPlane[1].u_height = pC->m_outputPlane[0].u_height >> 1;
86 pC->m_outputPlane[1].u_width = pC->m_outputPlane[0].u_width >> 1;
87 pC->m_outputPlane[1].u_topleft = 0;
88 pC->m_outputPlane[1].u_stride = pC->m_outputPlane[1].u_width;
90 pC->m_outputPlane[2].u_height = pC->m_outputPlane[0].u_height >> 1;
91 pC->m_outputPlane[2].u_width = pC->m_outputPlane[0].u_width >> 1;
92 pC->m_outputPlane[2].u_topleft = 0;
93 pC->m_outputPlane[2].u_stride = pC->m_outputPlane[2].u_width;
95 pC->m_outputPlane[0].pac_data = (M4OSA_UInt8*)pPixelArray;
98 pC->m_outputPlane[0].pac_data, err, M4ERR_ALLOC);
100 pC->m_outputPlane[1].pac_data =
101 pC->m_outputPlane[0].pac_data +
102 (pC->m_outputPlane[0].u_stride * pC->m_outputPlane[0].u_height);
104 pC->m_outputPlane[2].pac_data =
105 pC->m_outputPlane[1].pac_data +
106 (pC->m_outputPlane[1].u_stride * pC->m_outputPlane[1].u_height);
395 VideoBrowserContext* pC = (VideoBrowserContext*)pContext;
403 if (M4OSA_NULL != pC->m_pDecoderCtx)
405 pC->m_pDecoder->m_pFctDestroy(pC->m_pDecoderCtx);
406 pC->m_pDecoderCtx = M4OSA_NULL ;
409 if (M4OSA_NULL != pC->m_pReaderCtx)
411 pC->m_3gpReader->m_pFctClose(pC->m_pReaderCtx) ;
412 pC->m_3gpReader->m_pFctDestroy(pC->m_pReaderCtx);
413 pC->m_pReaderCtx = M4OSA_NULL;
416 SAFE_FREE(pC->m_pDecoder);
417 SAFE_FREE(pC->m_3gpReader);
418 SAFE_FREE(pC->m_3gpData);
420 if (pC->m_frameColorType != VideoBrowser_kYUV420) {
421 SAFE_FREE(pC->m_outputPlane[0].pac_data);
423 SAFE_FREE(pC);
447 VideoBrowserContext* pC = (VideoBrowserContext*)pContext;
461 if (VideoBrowser_kVBOpened == pC->m_state)
463 pC->m_state = VideoBrowser_kVBBrowsing;
465 else if (VideoBrowser_kVBBrowsing != pC->m_state)
473 if (pC->m_currentCTS == 0 ||
474 targetTime < pC->m_currentCTS ||
475 targetTime > (pC->m_currentCTS + 85))
481 err = pC->m_pDecoder->m_pFctDecode(
482 pC->m_pDecoderCtx, &timeMS, bJumpNeeded, tolerance);
489 err = pC->m_pDecoder->m_pFctRender(
490 pC->m_pDecoderCtx, &timeMS, pC->m_outputPlane, M4OSA_TRUE);
498 pC->m_currentCTS = (M4OSA_UInt32)timeMS;
500 *pTime = pC->m_currentCTS;
510 else if (M4OSA_NULL != pC)
512 pC->m_currentCTS = 0;
527 VideoBrowserContext* pC = (VideoBrowserContext*)pContext ;
534 pC->m_pfCallback((M4OSA_Context) pC, // VB context
537 (M4OSA_Void*) &(pC->m_outputPlane[0]), // image to be displayed
538 (M4OSA_Void*) pC->m_pCallbackUserData); // user-provided data
548 (M4OSA_MemAddr8) pC->m_outputPlane[0].pac_data,
549 pC->m_outputPlane[0].u_height*pC->m_outputPlane[0].u_width*2);