Home
last modified time | relevance | path

Searched refs:video (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp80 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData; in PVInitVideoDecoder() local
96 video = IMEM_VideoDecData; in PVInitVideoDecoder()
98 video = (VideoDecData *) oscl_malloc(sizeof(VideoDecData)); in PVInitVideoDecoder()
100 if (video != NULL) in PVInitVideoDecoder()
102 oscl_memset(video, 0, sizeof(VideoDecData)); in PVInitVideoDecoder()
103 video->memoryUsage = sizeof(VideoDecData); in PVInitVideoDecoder()
104 video->numberOfLayers = nLayers; in PVInitVideoDecoder()
106 video->vol = (Vol **) IMEM_VOL; in PVInitVideoDecoder()
110 oscl_free(video); in PVInitVideoDecoder()
114 video->vol = (Vol **) oscl_malloc(nLayers * sizeof(Vol *)); in PVInitVideoDecoder()
[all …]
Ddatapart_decode.cpp39 PV_STATUS DecodeFrameDataPartMode(VideoDecData *video) in DecodeFrameDataPartMode() argument
42 Vop *currVop = video->currVop; in DecodeFrameDataPartMode()
43 BitstreamDecVideo *stream = video->bitstream; in DecodeFrameDataPartMode()
45 int nMBPerRow = video->nMBPerRow; in DecodeFrameDataPartMode()
49 int nTotalMB = video->nTotalMB; in DecodeFrameDataPartMode()
61 oscl_memset(video->motX, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameDataPartMode()
62 oscl_memset(video->motY, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameDataPartMode()
79 video->mbnum = mbnum; in DecodeFrameDataPartMode()
80video->mbnum_row = PV_GET_ROW(mbnum, nMBPerRow); /* This is needed if nbnum is read from the pa… in DecodeFrameDataPartMode()
81 video->mbnum_col = mbnum - video->mbnum_row * nMBPerRow; in DecodeFrameDataPartMode()
[all …]
Dcombined_decode.cpp42 PV_STATUS DecodeFrameCombinedMode(VideoDecData *video) in DecodeFrameCombinedMode() argument
46 Vop *currVop = video->currVop; in DecodeFrameCombinedMode()
47 BitstreamDecVideo *stream = video->bitstream; in DecodeFrameCombinedMode()
48 int shortVideoHeader = video->shortVideoHeader; in DecodeFrameCombinedMode()
49 int16 QP, *QPMB = video->QPMB; in DecodeFrameCombinedMode()
50 uint8 *Mode = video->headerInfo.Mode; in DecodeFrameCombinedMode()
51 int nTotalMB = video->nTotalMB; in DecodeFrameCombinedMode()
52 int nMBPerRow = video->nMBPerRow; in DecodeFrameCombinedMode()
72 oscl_memset(video->motX, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameCombinedMode()
73 oscl_memset(video->motY, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameCombinedMode()
[all …]
Dconceal.cpp36 void ConcealTexture_I(VideoDecData *video, int32 startFirstPartition, int mb_start, int mb_stop, in… in ConcealTexture_I() argument
39 BitstreamDecVideo *stream = video->bitstream; in ConcealTexture_I()
41 int intra_dc_vlc_thr = video->currVop->intraDCVlcThr; in ConcealTexture_I()
45 video->usePrevQP = 0; in ConcealTexture_I()
48 video->mbnum = mbnum; in ConcealTexture_I()
49 video->mbnum_row = PV_GET_ROW(mbnum, video->nMBPerRow); in ConcealTexture_I()
50 video->mbnum_col = mbnum - video->mbnum_row * video->nMBPerRow; in ConcealTexture_I()
51 video->sliceNo[mbnum] = (uint8) slice_counter; in ConcealTexture_I()
52 QP = video->QPMB[mbnum]; in ConcealTexture_I()
54 GetMBheaderDataPart_DQUANT_DC(video, &QP); in ConcealTexture_I()
[all …]
Dvop.cpp82 PV_STATUS DecodeVOLHeader(VideoDecData *video, int layer) in DecodeVOLHeader() argument
98 currVol = video->vol[layer]; in DecodeVOLHeader()
258 video->shortVideoHeader = TRUE; in DecodeVOLHeader()
281 video->shortVideoHeader = 0; in DecodeVOLHeader()
414 video->displayWidth = video->width = tmpvar; in DecodeVOLHeader()
417 video->width = (video->width + 15) & -16; in DecodeVOLHeader()
426 video->displayHeight = video->height = tmpvar; in DecodeVOLHeader()
429 video->height = (video->height + 15) & -16; in DecodeVOLHeader()
602 video->vlcDecCoeffIntra = &VlcDecTCOEFIntra; in DecodeVOLHeader()
603 video->vlcDecCoeffInter = &VlcDecTCOEFInter; in DecodeVOLHeader()
[all …]
Dmb_motion_comp.cpp124 VideoDecData *video, in MBMotionComp() argument
133 Vop *prev = video->prevVop; in MBMotionComp()
136 int mbnum = video->mbnum; in MBMotionComp()
139 int MB_in_width = video->nMBPerRow; in MBMotionComp()
159 int32 size = (int32) video->nTotalMB << 8; in MBMotionComp()
170 round1 = (int)(1 - video->currVop->roundingType); in MBMotionComp()
173 width = video->width; in MBMotionComp()
176 height = video->height; in MBMotionComp()
182 ypos = video->mbnum_row << 4 ; in MBMotionComp()
184 xpos = video->mbnum_col << 4 ; in MBMotionComp()
[all …]
Dmp4dec_lib.h65 uint VideoDecoderErrorDetected(VideoDecData *video);
85 void doDCACPrediction(VideoDecData *video, int comp, int16 *q_block,
89 void doDCACPrediction_I(VideoDecData *video, int comp, int16 *q_block);
93 void MBlockIDCTAdd(VideoDecData *video, int nz_coefs[]);
98 void MBlockIDCT(VideoDecData *video);
102 PV_STATUS DecodeFrameCombinedMode(VideoDecData *video);
103 PV_STATUS GetMBheader(VideoDecData *video, int16 *QP);
104 PV_STATUS GetMBData(VideoDecData *video);
108 PV_STATUS DecodeFrameDataPartMode(VideoDecData *video);
109 PV_STATUS GetMBheaderDataPart_DQUANT_DC(VideoDecData *video, int16 *QP);
[all …]
Dvlc_dequant.cpp53 VideoDecData *video = (VideoDecData*) vid; in VlcDequantMpegIntraBlock() local
54 Vol *currVol = video->vol[video->currLayer]; in VlcDequantMpegIntraBlock()
55 BitstreamDecVideo *stream = video->bitstream; in VlcDequantMpegIntraBlock()
56 …int16 *datablock = video->mblock->block[comp]; /* 10/20/2000, assume it has been reset of all-zero… in VlcDequantMpegIntraBlock()
57 int mbnum = video->mbnum; in VlcDequantMpegIntraBlock()
58 uint CBP = video->headerInfo.CBP[mbnum]; in VlcDequantMpegIntraBlock()
59 int QP = video->QPMB[mbnum]; in VlcDequantMpegIntraBlock()
60 typeDCStore *DC = video->predDC + mbnum; in VlcDequantMpegIntraBlock()
61 int x_pos = video->mbnum_col; in VlcDequantMpegIntraBlock()
62 typeDCACStore *DCAC_row = video->predDCAC_row + x_pos; in VlcDequantMpegIntraBlock()
[all …]
Dpacket_util.cpp28 PV_STATUS PV_ReadVideoPacketHeader(VideoDecData *video, int *next_MB) in PV_ReadVideoPacketHeader() argument
31 Vol *currVol = video->vol[video->currLayer]; in PV_ReadVideoPacketHeader()
32 Vop *currVop = video->currVop; in PV_ReadVideoPacketHeader()
33 BitstreamDecVideo *stream = video->bitstream; in PV_ReadVideoPacketHeader()
36 int nbits = video->nBitsForMBID; in PV_ReadVideoPacketHeader()
40 int nTotalMB = video->nTotalMB; in PV_ReadVideoPacketHeader()
65 *next_MB = video->mbnum + 1; in PV_ReadVideoPacketHeader()
148 PV_STATUS PV_GobHeader(VideoDecData *video) in PV_GobHeader() argument
151 Vop *currVop = video->currVop; in PV_GobHeader()
152 BitstreamDecVideo *stream = video->bitstream; in PV_GobHeader()
[all …]
Ddcac_prediction.cpp29 VideoDecData *video, in doDCACPrediction() argument
39 int mbnum = video->mbnum; in doDCACPrediction()
40 int nMBPerRow = video->nMBPerRow; in doDCACPrediction()
41 int x_pos = video->mbnum_col; in doDCACPrediction()
42 int y_pos = video->mbnum_row; in doDCACPrediction()
45 int16 *QP_store = video->QPMB + mbnum; in doDCACPrediction()
46 int QP = video->QPMB[mbnum]; in doDCACPrediction()
50 uint8 *slice_nb = video->sliceNo; in doDCACPrediction()
51 typeDCStore *DC_store = video->predDC + mbnum; in doDCACPrediction()
52 typeDCACStore *DCAC_row = video->predDCAC_row + x_pos; in doDCACPrediction()
[all …]
Dpost_filter.cpp32 VideoDecData *video, in PostFilter() argument
42 int nTotalMB = video->nTotalMB; in PostFilter()
46 uint8 *decodedFrame = video->videoDecControls->outputFrame; in PostFilter()
50 width = video->width; in PostFilter()
51 height = video->height; in PostFilter()
62 …if (PVGetDecBitrate(video->videoDecControls) > (100*video->frameRate*(size >> 12))) // MC_sofDebl… in PostFilter()
68 QP_store = video->QPMB; in PostFilter()
71 pp_mod = video->pstprcTypCur; in PostFilter()
163 pp_mod = video->pstprcTypCur; in PostFilter()
164 video->pstprcTypCur = video->pstprcTypPrv; in PostFilter()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmp4enc_api.cpp138 Int DetermineCodingLayer(VideoEncData *video, Int *nLayer, ULong modTime);
139 void DetermineVopType(VideoEncData *video, Int currLayer);
140 Int UpdateSkipNextFrame(VideoEncData *video, ULong *modTime, Int *size, PV_STATUS status);
141 Bool SetProfile_BufferSize(VideoEncData *video, float delay, Int bInitialized);
200 VideoEncData *video; in PVInitVideoEncoder() local
227 video = (VideoEncData *)M4VENC_MALLOC(sizeof(VideoEncData)); /* allocate memory for encData */ in PVInitVideoEncoder()
229 if (video == NULL) in PVInitVideoEncoder()
232 M4VENC_MEMSET(video, 0, sizeof(VideoEncData)); in PVInitVideoEncoder()
234 …encoderControl->videoEncoderData = (void *) video; /* set up pointer in VideoEncData struc… in PVInitVideoEncoder()
236 video->encParams = (VideoEncParams *)M4VENC_MALLOC(sizeof(VideoEncParams)); in PVInitVideoEncoder()
[all …]
Dcombined_encode.cpp25 PV_STATUS EncodeGOBHeader(VideoEncData *video, Int GOB_number, Int quant_scale, Int bs1stream);
37 PV_STATUS EncodeFrameCombinedMode(VideoEncData *video) in EncodeFrameCombinedMode() argument
40 Vol *currVol = video->vol[video->currLayer]; in EncodeFrameCombinedMode()
41 Vop *currVop = video->currVop; in EncodeFrameCombinedMode()
42 VideoEncParams *encParams = video->encParams; in EncodeFrameCombinedMode()
48 UChar *QPMB = video->QPMB; in EncodeFrameCombinedMode()
53 BitstreamEncVideo *bs1 = video->bitstream1; in EncodeFrameCombinedMode()
64 video->QP_prev = currVop->quantizer; in EncodeFrameCombinedMode()
105 video->usePrevQP = 0; in EncodeFrameCombinedMode()
110 video->outputMB->mb_y = ind_y; /* 5/28/01 */ in EncodeFrameCombinedMode()
[all …]
Ddatapart_encode.cpp36 PV_STATUS EncodeFrameDataPartMode(VideoEncData *video) in EncodeFrameDataPartMode() argument
39 Vol *currVol = video->vol[video->currLayer]; in EncodeFrameDataPartMode()
40 Vop *currVop = video->currVop; in EncodeFrameDataPartMode()
41 VideoEncParams *encParams = video->encParams; in EncodeFrameDataPartMode()
47 UChar *QPMB = video->QPMB; in EncodeFrameDataPartMode()
51 BitstreamEncVideo *bs1 = video->bitstream1; in EncodeFrameDataPartMode()
52 BitstreamEncVideo *bs2 = video->bitstream2; in EncodeFrameDataPartMode()
53 BitstreamEncVideo *bs3 = video->bitstream3; in EncodeFrameDataPartMode()
61 video->QP_prev = currVop->quantizer; in EncodeFrameDataPartMode()
93 video->usePrevQP = 0; in EncodeFrameDataPartMode()
[all …]
Dvop.cpp28 PV_STATUS EncodeVop_BXRC(VideoEncData *video);
29 PV_STATUS EncodeVop_NoME(VideoEncData *video);
39 PV_STATUS EncodeVop(VideoEncData *video) in EncodeVop() argument
43 Int currLayer = video->currLayer; in EncodeVop()
44 Vol *currVol = video->vol[currLayer]; in EncodeVop()
45 Vop *currVop = video->currVop; in EncodeVop()
47 UChar *Mode = video->headerInfo.Mode; in EncodeVop()
48 rateControl **rc = video->rc; in EncodeVop()
75 MotionEstimation(video); /* do ME for the whole frame */ in EncodeVop()
81 status = RC_VopQPSetting(video, rc); in EncodeVop()
[all …]
Drate_control.cpp26 void calculateQuantizer_Multipass(void *video);
27 void updateRateControl(rateControl *rc, VideoEncData *video);
28 void updateRC_PostProc(rateControl *rc, VideoEncData *video);
52 VideoEncData *video = (VideoEncData *) input; in RC_Initialize() local
53 VideoEncParams *encParams = video->encParams; in RC_Initialize()
54 rateControl **rc = video->rc; in RC_Initialize()
58 MultiPass **pMP = video->pMP; in RC_Initialize()
71 rc[n]->Bs = video->encParams->BufferSize[n]; in RC_Initialize()
83 if (video->encParams->H263_Enabled) in RC_Initialize()
85 …rc[n]->max_BitVariance_num = (Int)((rc[n]->Bs - video->encParams->maxFrameSize) / 2 / (rc[n]->bitr… in RC_Initialize()
[all …]
Dvlc_encode.cpp168 void RunLevel(VideoEncData *video, Int intra, Int intraDC_decision, Int ncoefblck[]);
170 Void DCACPred(VideoEncData *video, UChar Mode, Int *intraDC_decision, Int intraDCVlcQP);
171 Void find_pmvs(VideoEncData *video, Int block, Int *mvx, Int *mvy);
882 VideoEncData *video, in MBVlcEncodeDataPar_I_VOP() argument
887 BitstreamEncVideo *bs1 = video->bitstream1; in MBVlcEncodeDataPar_I_VOP()
888 BitstreamEncVideo *bs2 = video->bitstream2; in MBVlcEncodeDataPar_I_VOP()
889 BitstreamEncVideo *bs3 = video->bitstream3; in MBVlcEncodeDataPar_I_VOP()
891 UChar Mode = video->headerInfo.Mode[video->mbnum]; in MBVlcEncodeDataPar_I_VOP()
894 Int mbnum = video->mbnum; in MBVlcEncodeDataPar_I_VOP()
898 RunLevelBlock *RLB = video->RLB; in MBVlcEncodeDataPar_I_VOP()
[all …]
Dmotion_est.cpp75 void MBMotionSearch(VideoEncData *video, UChar *cur, UChar *best_cand[],
78 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *ref, UChar *cur,
80 Int fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur,
83 VideoEncData *video, Int type_pred);
91 void PrepareCurMB(VideoEncData *video, UChar *cur);
105 void HTFMPrepareCurMB(VideoEncData *video, HTFM_Stat *htfm_stat, UChar *cur);
136 void MotionEstimation(VideoEncData *video) in MotionEstimation() argument
138 UChar use_4mv = video->encParams->MV8x8_Enabled; in MotionEstimation()
139 Vol *currVol = video->vol[video->currLayer]; in MotionEstimation()
140 Vop *currVop = video->currVop; in MotionEstimation()
[all …]
Dmp4enc_lib.h30 PV_STATUS EncodeVop(VideoEncData *video);
31 PV_STATUS EncodeSlice(VideoEncData *video);
32 PV_STATUS EncodeVideoPacketHeader(VideoEncData *video, int MB_number,
35 PV_STATUS EncodeVopNotCoded(VideoEncData *video, UChar *bstream, Int *size, ULong modTime);
39 PV_STATUS EncodeFrameCombinedMode(VideoEncData *video);
40 PV_STATUS EncodeSliceCombinedMode(VideoEncData *video);
43 PV_STATUS EncodeFrameDataPartMode(VideoEncData *video);
44 PV_STATUS EncodeSliceDataPartMode(VideoEncData *video);
50 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int offsetQP, Int ncoefblck[]);
52 PV_STATUS CodeMB_MPEG(VideoEncData *video, approxDCT *function, Int offsetQP, Int ncoefblck[]);
[all …]
Dfastcodemb.cpp50 PV_STATUS CodeMB_H263(VideoEncData *video, approxDCT *function, Int QP, Int ncoefblck[]) in CodeMB_H263() argument
52 Int sad, k, CBP, mbnum = video->mbnum; in CodeMB_H263()
54 UChar Mode = video->headerInfo.Mode[mbnum]; in CodeMB_H263()
55 UChar *bitmapcol, *bitmaprow = video->bitmaprow; in CodeMB_H263()
57 UChar shortHeader = video->vol[video->currLayer]->shortVideoHeader; in CodeMB_H263()
73 Vop *currVop = video->currVop; in CodeMB_H263()
74 VideoEncFrameIO *inputFrame = video->input; in CodeMB_H263()
75 Int ind_x = video->outputMB->mb_x; in CodeMB_H263()
76 Int ind_y = video->outputMB->mb_y; in CodeMB_H263()
86 output = video->outputMB->block[0]; in CodeMB_H263()
[all …]
Dfindhalfpel.cpp65 void FindHalfPelMB(VideoEncData *video, UChar *cur, MOT *mot, UChar *ncand, in FindHalfPelMB() argument
76 Int h263_mode = video->encParams->H263_Enabled; /* 3/29/01 */ in FindHalfPelMB()
78 Int range = video->encParams->SearchRange; in FindHalfPelMB()
79 Int lx = video->currVop->pitch; in FindHalfPelMB()
80 Int width = video->currVop->width; /* padding */ in FindHalfPelMB()
81 Int height = video->vol[video->currLayer]->height; in FindHalfPelMB()
83 video->functionPointer->SAD_MB_HalfPel; in FindHalfPelMB()
84 void *extra_info = video->sad_extra_info; in FindHalfPelMB()
89 cur = video->currYMB; in FindHalfPelMB()
184 Int FindHalfPelBlk(VideoEncData *video, UChar *cur, MOT *mot, Int sad16, UChar *ncand8[], in FindHalfPelBlk() argument
[all …]
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java197 public void addVideo(YouTubeVideo video) { in addVideo() argument
206 YouTubeVideo video; field in SafeSaxTest.HandlerFactory
220 video.videoId = body; in newContentHandler()
228 video.dateAdded = new Time(Time.TIMEZONE_UTC); in newContentHandler()
229 video.dateAdded.parse3339(body); in newContentHandler()
237 video.authorName = body; in newContentHandler()
247 if (video.thumbnailUrl == null && url.length() > 0) { in newContentHandler()
248 video.thumbnailUrl = url; in newContentHandler()
258 video.videoUrl = url; in newContentHandler()
268 video.playbackUrl = url; in newContentHandler()
[all …]
/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp101 def.format.video.pNativeRender = NULL; in initPorts()
102 def.format.video.nFrameWidth = mWidth; in initPorts()
103 def.format.video.nFrameHeight = mHeight; in initPorts()
104 def.format.video.nStride = def.format.video.nFrameWidth; in initPorts()
105 def.format.video.nSliceHeight = def.format.video.nFrameHeight; in initPorts()
106 def.format.video.nBitrate = 0; in initPorts()
108 def.format.video.xFramerate = mFramerate; in initPorts()
109 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts()
111 def.format.video.cMIMEType = const_cast<char *>("video/raw"); in initPorts()
112 def.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused; in initPorts()
[all …]
DSoftVideoDecoderOMXComponent.cpp116 def.format.video.cMIMEType = const_cast<char *>(mimeType); in initPorts()
117 def.format.video.pNativeRender = NULL; in initPorts()
119 def.format.video.nBitrate = 0; in initPorts()
120 def.format.video.xFramerate = 0; in initPorts()
121 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts()
122 def.format.video.eCompressionFormat = mCodingType; in initPorts()
123 def.format.video.eColorFormat = OMX_COLOR_FormatUnused; in initPorts()
124 def.format.video.pNativeWindow = NULL; in initPorts()
138 def.format.video.cMIMEType = const_cast<char *>("video/raw"); in initPorts()
139 def.format.video.pNativeRender = NULL; in initPorts()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DIfElseFilterTest.java54 FrameImage2D video = in testIfElseFilterTrue() local
65 video.setBitmap(videoBitmap); in testIfElseFilterTrue()
66 injectInputFrame("trueResult", video); in testIfElseFilterTrue()
77 assertEquals(outputImage, video); in testIfElseFilterTrue()
85 FrameImage2D video = in testIfElseFilterFalse() local
96 video.setBitmap(videoBitmap); in testIfElseFilterFalse()
97 injectInputFrame("trueResult", video); in testIfElseFilterFalse()

1234