Home
last modified time | relevance | path

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

123456

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp70 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData; in PVInitVideoDecoder() local
86 video = IMEM_VideoDecData; in PVInitVideoDecoder()
88 video = (VideoDecData *) oscl_malloc(sizeof(VideoDecData)); in PVInitVideoDecoder()
90 if (video != NULL) in PVInitVideoDecoder()
92 oscl_memset(video, 0, sizeof(VideoDecData)); in PVInitVideoDecoder()
93 video->memoryUsage = sizeof(VideoDecData); in PVInitVideoDecoder()
94 video->numberOfLayers = nLayers; in PVInitVideoDecoder()
96 video->vol = (Vol **) IMEM_VOL; in PVInitVideoDecoder()
98 video->vol = (Vol **) oscl_malloc(nLayers * sizeof(Vol *)); in PVInitVideoDecoder()
100 if (video->vol == NULL) status = PV_FALSE; 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.cpp31 void ConcealTexture_I(VideoDecData *video, int32 startFirstPartition, int mb_start, int mb_stop, in… in ConcealTexture_I() argument
34 BitstreamDecVideo *stream = video->bitstream; in ConcealTexture_I()
36 int intra_dc_vlc_thr = video->currVop->intraDCVlcThr; in ConcealTexture_I()
40 video->usePrevQP = 0; in ConcealTexture_I()
43 video->mbnum = mbnum; in ConcealTexture_I()
44 video->mbnum_row = PV_GET_ROW(mbnum, video->nMBPerRow); in ConcealTexture_I()
45 video->mbnum_col = mbnum - video->mbnum_row * video->nMBPerRow; in ConcealTexture_I()
46 video->sliceNo[mbnum] = (uint8) slice_counter; in ConcealTexture_I()
47 QP = video->QPMB[mbnum]; in ConcealTexture_I()
49 GetMBheaderDataPart_DQUANT_DC(video, &QP); in ConcealTexture_I()
[all …]
Dvop.cpp80 PV_STATUS DecodeVOLHeader(VideoDecData *video, int layer) in DecodeVOLHeader() argument
96 currVol = video->vol[layer]; in DecodeVOLHeader()
252 video->shortVideoHeader = TRUE; in DecodeVOLHeader()
275 video->shortVideoHeader = 0; in DecodeVOLHeader()
406 video->displayWidth = video->width = (int) BitstreamReadBits16(stream, 13); in DecodeVOLHeader()
409 video->width = (video->width + 15) & -16; in DecodeVOLHeader()
416 video->displayHeight = video->height = (int) BitstreamReadBits16(stream, 13); in DecodeVOLHeader()
419 video->height = (video->height + 15) & -16; in DecodeVOLHeader()
592 video->vlcDecCoeffIntra = &VlcDecTCOEFIntra; in DecodeVOLHeader()
593 video->vlcDecCoeffInter = &VlcDecTCOEFInter; in DecodeVOLHeader()
[all …]
Dmb_motion_comp.cpp120 VideoDecData *video, in MBMotionComp() argument
129 Vop *prev = video->prevVop; in MBMotionComp()
132 int mbnum = video->mbnum; in MBMotionComp()
135 int MB_in_width = video->nMBPerRow; in MBMotionComp()
155 int32 size = (int32) video->nTotalMB << 8; in MBMotionComp()
166 round1 = (int)(1 - video->currVop->roundingType); in MBMotionComp()
169 width = video->width; in MBMotionComp()
172 height = video->height; in MBMotionComp()
178 ypos = video->mbnum_row << 4 ; in MBMotionComp()
180 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 …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmp4enc_api.cpp131 Int DetermineCodingLayer(VideoEncData *video, Int *nLayer, ULong modTime);
132 void DetermineVopType(VideoEncData *video, Int currLayer);
133 Int UpdateSkipNextFrame(VideoEncData *video, ULong *modTime, Int *size, PV_STATUS status);
134 Bool SetProfile_BufferSize(VideoEncData *video, float delay, Int bInitialized);
193 VideoEncData *video; in PVInitVideoEncoder() local
220 video = (VideoEncData *)M4VENC_MALLOC(sizeof(VideoEncData)); /* allocate memory for encData */ in PVInitVideoEncoder()
222 if (video == NULL) in PVInitVideoEncoder()
225 M4VENC_MEMSET(video, 0, sizeof(VideoEncData)); in PVInitVideoEncoder()
227 …encoderControl->videoEncoderData = (void *) video; /* set up pointer in VideoEncData struc… in PVInitVideoEncoder()
229 video->encParams = (VideoEncParams *)M4VENC_MALLOC(sizeof(VideoEncParams)); in PVInitVideoEncoder()
[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 …]
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 …]
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 …]
/frameworks/av/media/libstagefright/codecs/avc/common/src/
Ddpb.cpp22 AVCStatus InitDPB(AVCHandle *avcHandle, AVCCommonObj *video, int FrameHeightInMbs, int PicWidthInMb… in InitDPB() argument
24 AVCDecPicBuffer *dpb = video->decPicBuf; in InitDPB()
31 level = video->currSeqParams->level_idc; in InitDPB()
41video->padded_size = (int)((((FrameHeightInMbs + 2) * (PicWidthInMbs + 2)) << 7) * 3) - framesize; in InitDPB()
45 video->padded_size = 0; in InitDPB()
63 if (video->currSeqParams->num_ref_frames + 1 > (uint32)dpb->num_fs) in InitDPB()
65 dpb->num_fs = video->currSeqParams->num_ref_frames + 1; in InitDPB()
68 dpb->dpb_size = dpb->num_fs * (framesize + video->padded_size); in InitDPB()
99 video->RefPicList0[num_fs] = &(dpb->fs[num_fs]->frame); in InitDPB()
101 dpb->used_size += (framesize + video->padded_size); in InitDPB()
[all …]
Dmb_access.cpp22 OSCL_EXPORT_REF void InitNeighborAvailability(AVCCommonObj *video, int mbNum) in InitNeighborAvailability() argument
24 int PicWidthInMbs = video->PicWidthInMbs; in InitNeighborAvailability()
27 video->mbAddrA = mbNum - 1; in InitNeighborAvailability()
28 video->mbAddrB = mbNum - PicWidthInMbs; in InitNeighborAvailability()
29 video->mbAddrC = mbNum - PicWidthInMbs + 1; in InitNeighborAvailability()
30 video->mbAddrD = mbNum - PicWidthInMbs - 1; in InitNeighborAvailability()
32 video->mbAvailA = video->mbAvailB = video->mbAvailC = video->mbAvailD = 0; in InitNeighborAvailability()
33 if (video->mb_x) in InitNeighborAvailability()
35 video->mbAvailA = (video->mblock[video->mbAddrA].slice_id == video->currMB->slice_id); in InitNeighborAvailability()
36 if (video->mb_y) in InitNeighborAvailability()
[all …]
Dreflist.cpp21 OSCL_EXPORT_REF void RefListInit(AVCCommonObj *video) in RefListInit() argument
23 AVCSliceHeader *sliceHdr = video->sliceHdr; in RefListInit()
24 AVCDecPicBuffer *dpb = video->decPicBuf; in RefListInit()
25 int slice_type = video->slice_type; in RefListInit()
34 video->refList0Size = 0; in RefListInit()
35 video->refList1Size = 0; in RefListInit()
47 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum - video->MaxFrameNum; in RefListInit()
71 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum - video->MaxFrameNum; in RefListInit()
78 video->RefPicList0[list0idx++] = &(dpb->fs[i]->frame); in RefListInit()
85 video->RefPicList0[0] = &(dpb->fs[0]->frame); in RefListInit()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dheader.cpp27 AVCCommonObj *video = encvid->common; in EncodeSPS() local
28 AVCSeqParamSet *seqParam = video->currSeqParams; in EncodeSPS()
229 AVCCommonObj *video = encvid->common; in EncodePPS() local
231 AVCPicParamSet *picParam = video->currPicParams; in EncodePPS()
318 AVCCommonObj *video = encvid->common; in EncodeSliceHeader() local
319 AVCSliceHeader *sliceHdr = video->sliceHdr; in EncodeSliceHeader()
320 AVCPicParamSet *currPPS = video->currPicParams; in EncodeSliceHeader()
321 AVCSeqParamSet *currSPS = video->currSeqParams; in EncodeSliceHeader()
330 slice_type = video->slice_type; in EncodeSliceHeader()
332 if (video->mbNum == 0) /* first mb in frame */ in EncodeSliceHeader()
[all …]
Dslice.cpp24 AVCCommonObj *video = encvid->common; in AVCEncodeSlice() local
25 AVCPicParamSet *pps = video->currPicParams; in AVCEncodeSlice()
26 AVCSliceHeader *sliceHdr = video->sliceHdr; in AVCEncodeSlice()
32 slice_type = video->slice_type; in AVCEncodeSlice()
35 video->mbNum = CurrMbAddr = sliceHdr->first_mb_in_slice;// * (1+video->MbaffFrameFlag); in AVCEncodeSlice()
36 slice_group_id = video->MbToSliceGroupMap[CurrMbAddr]; in AVCEncodeSlice()
38 video->mb_skip_run = 0; in AVCEncodeSlice()
43 video->mbNum = CurrMbAddr; in AVCEncodeSlice()
44 currMB = video->currMB = &(video->mblock[CurrMbAddr]); in AVCEncodeSlice()
45 currMB->slice_id = video->slice_id; // for deblocking in AVCEncodeSlice()
[all …]
Dinit.cpp29 AVCCommonObj *video = encvid->common; in SetEncodeParam() local
30 AVCSeqParamSet *seqParam = video->currSeqParams; in SetEncodeParam()
31 AVCPicParamSet *picParam = video->currPicParams; in SetEncodeParam()
32 AVCSliceHeader *sliceHdr = video->sliceHdr; in SetEncodeParam()
63 video->MaxPicOrderCntLsb = 1 << (extS->log2_max_pic_order_cnt_lsb_minus4 + 4); in SetEncodeParam()
64 video->PicWidthInMbs = extS->pic_width_in_mbs_minus1 + 1; in SetEncodeParam()
65 video->PicHeightInMapUnits = extS->pic_height_in_map_units_minus1 + 1 ; in SetEncodeParam()
66 video->FrameHeightInMbs = (2 - extS->frame_mbs_only_flag) * video->PicHeightInMapUnits ; in SetEncodeParam()
70 video->MaxPicOrderCntLsb = 1 << (encParam->log2_max_poc_lsb_minus_4 + 4); in SetEncodeParam()
71 video->PicWidthInMbs = (encParam->width + 15) >> 4; /* round it to multiple of 16 */ in SetEncodeParam()
[all …]
Davcenc_api.cpp61 AVCCommonObj *video; in PVAVCEncInitialize() local
91 video = encvid->common; in PVAVCEncInitialize()
102video->currSeqParams = (AVCSeqParamSet*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCSeqParamSet),… in PVAVCEncInitialize()
103 if (video->currSeqParams == NULL) in PVAVCEncInitialize()
109video->currPicParams = (AVCPicParamSet*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCPicParamSet),… in PVAVCEncInitialize()
110 if (video->currPicParams == NULL) in PVAVCEncInitialize()
116video->sliceHdr = (AVCSliceHeader*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCSliceHeader), DEFA… in PVAVCEncInitialize()
117 if (video->sliceHdr == NULL) in PVAVCEncInitialize()
123video->decPicBuf = (AVCDecPicBuffer*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCDecPicBuffer), D… in PVAVCEncInitialize()
124 if (video->decPicBuf == NULL) in PVAVCEncInitialize()
[all …]
Dintra_est.cpp34 AVCCommonObj *video = encvid->common; in IntraDecisionABE() local
37 int x_pos = (video->mb_x) << 4; in IntraDecisionABE()
38 int y_pos = (video->mb_y) << 4; in IntraDecisionABE()
46 if (((x_pos >> 4) != (int)video->PicWidthInMbs - 1) && in IntraDecisionABE()
47 ((y_pos >> 4) != (int)video->PicHeightInMbs - 1) && in IntraDecisionABE()
48 video->intraAvailA && in IntraDecisionABE()
49 video->intraAvailB) in IntraDecisionABE()
68 topL = video->currPic->Scb + offset; in IntraDecisionABE()
82 topL = video->currPic->Scr + offset; in IntraDecisionABE()
113 AVCCommonObj *video = encvid->common; in MBIntraSearch() local
[all …]
/frameworks/av/media/libstagefright/codecs/avc/common/include/
Davclib_common.h37 OSCL_IMPORT_REF AVCStatus DeblockPicture(AVCCommonObj *video);
45 void MBInLoopDeblock(AVCCommonObj *video);
56 OSCL_IMPORT_REF AVCStatus AVCConfigureSequence(AVCHandle *avcHandle, AVCCommonObj *video, bool padd…
69 AVCStatus InitDPB(AVCHandle *avcHandle, AVCCommonObj *video, int FrameHeightInMbs, int PicWidthInMb…
77 OSCL_IMPORT_REF AVCStatus CleanUpDPB(AVCHandle *avcHandle, AVCCommonObj *video);
87 OSCL_IMPORT_REF AVCStatus DPBInitBuffer(AVCHandle *avcHandle, AVCCommonObj *video);
97 OSCL_IMPORT_REF void DPBInitPic(AVCCommonObj *video, int CurrPicNum);
105 OSCL_IMPORT_REF void DPBReleaseCurrentFrame(AVCHandle *avcHandle, AVCCommonObj *video);
114 OSCL_IMPORT_REF AVCStatus StorePictureInDPB(AVCHandle *avcHandle, AVCCommonObj *video);
124 AVCStatus sliding_window_process(AVCHandle *avcHandle, AVCCommonObj *video, AVCDecPicBuffer *dpb);
[all …]
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp76 def.format.video.cMIMEType = const_cast<char *>(MEDIA_MIMETYPE_VIDEO_VPX); in initPorts()
77 def.format.video.pNativeRender = NULL; in initPorts()
78 def.format.video.nFrameWidth = mWidth; in initPorts()
79 def.format.video.nFrameHeight = mHeight; in initPorts()
80 def.format.video.nStride = def.format.video.nFrameWidth; in initPorts()
81 def.format.video.nSliceHeight = def.format.video.nFrameHeight; in initPorts()
82 def.format.video.nBitrate = 0; in initPorts()
83 def.format.video.xFramerate = 0; in initPorts()
84 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts()
85 def.format.video.eCompressionFormat = OMX_VIDEO_CodingVPX; in initPorts()
[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/codecs/m4v_h263/dec/
DSoftMPEG4.cpp114 def.format.video.cMIMEType = in initPorts()
119 def.format.video.pNativeRender = NULL; in initPorts()
120 def.format.video.nFrameWidth = mWidth; in initPorts()
121 def.format.video.nFrameHeight = mHeight; in initPorts()
122 def.format.video.nStride = def.format.video.nFrameWidth; in initPorts()
123 def.format.video.nSliceHeight = def.format.video.nFrameHeight; in initPorts()
124 def.format.video.nBitrate = 0; in initPorts()
125 def.format.video.xFramerate = 0; in initPorts()
126 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts()
128 def.format.video.eCompressionFormat = in initPorts()
[all …]

123456