/frameworks/av/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 146 off64_t size = lseek64(fd, 0, SEEK_END); local 147 if (size < 0) { 153 if (mRetriever->setDataSource(fd, 0, size) == OK) {
|
H A D | StagefrightMetadataRetriever.cpp | 237 size_t index, offset, size; local 279 ALOGE("buffer size (%zu) too large for codec input size (%zu)", 300 if (err == OK && inputIndex < inputBuffers.size()) { 301 ALOGV("QueueInput: size=%zu ts=%" PRId64 " us flags=%x", 302 codecBuffer->size(), ptsUs, flags); 306 codecBuffer->size(), 321 &size, 348 if (err != OK || size <= 0 || outputFormat == NULL) { 504 for (size_t i = 0; i < matchingCodecs.size(); 607 int size = detector->size(); local [all...] |
H A D | ThrottledSource.cpp | 34 ssize_t ThrottledSource::readAt(off64_t offset, void *data, size_t size) { argument 37 ssize_t n = mSource->readAt(offset, data, size);
|
H A D | Utils.cpp | 83 if (((*buffer)->size() + 4 + length) > ((*buffer)->capacity() - (*buffer)->offset())) { 84 sp<ABuffer> tmpBuffer = new (std::nothrow) ABuffer((*buffer)->size() + 4 + length + 1024); 88 memcpy(tmpBuffer->data(), (*buffer)->data(), (*buffer)->size()); 89 tmpBuffer->setRange(0, (*buffer)->size()); 93 memcpy((*buffer)->data() + (*buffer)->size(), "\x00\x00\x00\x01", 4); 94 memcpy((*buffer)->data() + (*buffer)->size() + 4, ptr, length); 95 (*buffer)->setRange((*buffer)->offset(), (*buffer)->size() + 4 + length); 167 if (csd->size() < 2) { 197 static void parseAvcProfileLevelFromAvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) { argument 198 if (size < 250 parseH263ProfileLevelFromD263(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument 292 parseHevcProfileLevelFromHvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument 359 parseMpeg2ProfileLevelFromHeader( const uint8_t *data, size_t size, sp<AMessage> &format) argument 677 size_t size; local 751 size_t size; local 1088 int size = i - lastparamoffset; local 1120 int size = i - lastparamoffset; local 1201 size_t size = hvccSize; local [all...] |
H A D | WAVExtractor.cpp | 64 off64_t offset, size_t size); 352 off64_t offset, size_t size) 360 mSize(size), 347 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument
|
H A D | avc_utils.cpp | 95 ABitReader br(seqParamSet->data() + 1, seqParamSet->size() - 1); 262 size_t size = *_size; local 267 if (size < 3) { 274 for (; offset + 2 < size; ++offset) { 280 if (offset + 2 >= size) { 290 while (offset < size && data[offset] != 0x01) { 294 if (offset == size) { 296 offset = size + 2; 318 if (offset + 2 < size) { 320 *_size = size 329 FindNAL(const uint8_t *data, size_t size, unsigned nalType) argument 367 size_t size = accessUnit->size(); local 452 size_t size = buffer->size(); local 474 size_t size = accessUnit->size(); local 541 ExtractDimensionsFromVOLHeader( const uint8_t *data, size_t size, int32_t *width, int32_t *height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
H A D | bitbuffer.h | 59 Word16 size; /*!< size of bitbuffer in bits */ member in struct:BIT_BUF 61 }; /* size Word16: 8 */ 87 #define GetNrBitsRead(hBitBuf) ((hBitBuf)->size-(hBitBuf)->cntBits)
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | memalign.c | 40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument 49 MemInfo.Size = size + 1; 55 pMemop->Set(CodecID, mem_ptr, 0, size + 1); 64 MemInfo.Size = size + alignment; 71 pMemop->Set(CodecID, tmp, 0, size + alignment);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/ |
H A D | AMRWB_E_SAMPLE.c | 65 int GetNextBuf(FILE* inFile,unsigned char* dst,int size) argument 67 int size2 = (int)fread(dst, sizeof(signed char), size,inFile);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | mem_align.c | 40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument 49 MemInfo.Size = size + 1; 55 pMemop->Set(CodecID, mem_ptr, 0, size + 1); 64 MemInfo.Size = size + alignment; 71 pMemop->Set(CodecID, tmp, 0, size + alignment);
|
H A D | q_gain2.c | 78 Word16 index, *p, min_ind, size; local 96 size = RANGE; 100 size = size - 16; /* limit gain pitch to 1.0 */ 124 size = RANGE; 278 for (i = 0; i < size; i++)
|
/frameworks/av/media/libstagefright/codecs/avc/enc/ |
H A D | SoftAVCEncoder.cpp | 122 void * /* userData */, int32_t size, int32_t /* attrs */) { 123 void *ptr = malloc(size); 125 memset(ptr, 0, size); 248 ALOGE("Buffer size is too big."); 258 ALOGE("Video frame size %dx%d must be a multiple of 16", 272 ALOGE("requested memory size is too big."); 357 for (size_t i = 0; i < mOutputBuffers.size(); ++i) { 717 CHECK(index < (int32_t) mOutputBuffers.size()); 121 MallocWrapper( void * , int32_t size, int32_t ) argument
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | avcenc_api.cpp | 29 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncGetNALType(unsigned char *bitstream, int size, argument 33 if (size > 0) 170 /* allocate frame size dependent structures */ 247 /* Purpose : Return max output buffer size that apps should allocate for */ 251 /* Modified : size */ 254 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncGetMaxOutputBufferSize(AVCHandle *avcHandle, int* size) argument 263 *size = encvid->rateCtrl->cpbSize;
|
/frameworks/av/media/libstagefright/codecs/avc/enc/test/ |
H A D | h264_enc_test.cpp | 50 static void *MallocCb(void * /*userData*/, int32_t size, int32_t /*attrs*/) { argument 51 void *ptr = calloc(size, 1); 103 fprintf(stderr, "Video frame size %dx%d must be a multiple of 16\n", 337 printf("NAL %d of size %d written\n", numNalEncoded, dataLength + 4);
|
/frameworks/av/media/libstagefright/codecs/avcdec/ |
H A D | SoftAVCDec.cpp | 138 static void *ivd_aligned_malloc(void *ctxt, WORD32 alignment, WORD32 size) { argument 140 return memalign(alignment, size); 424 // mFlushOutBuffer always has the right size. 446 ALOGE("Could not allocate flushOutputBuffer of size %u", bufferSize);
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.cpp | 80 // INPUT_BUF_SIZE is given by HEVC codec as minimum input size 95 static void *ivd_aligned_malloc(void *ctxt, WORD32 alignment, WORD32 size) { argument 97 return memalign(alignment, size); 385 // mFlushOutBuffer always has the right size. 407 ALOGE("Could not allocate flushOutputBuffer of size %u", bufferSize);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/include/ |
H A D | mp4dec_api.h | 87 int32 size; member in struct:tagvideoDecControls
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | conceal.cpp | 149 int32 lumstart, chrstart, size; local 157 size = (int32)height * width_Y; 163 u2 = prevFrame + size + chrstart; 164 v2 = prevFrame + size + (size >> 2) + chrstart;
|
H A D | mb_motion_comp.cpp | 155 int32 size = (int32) video->nTotalMB << 8; local 412 pp_dec_u = video->pstprcTypCur + (size >> 6) + 416 video->pstprcTypPrv, dx, dy, mvwidth, height, size, 428 pp_dec_u = video->pstprcTypCur + (size >> 6) + 431 pp_dec_u[size>>8] = 4; 562 int32 size = (int32) video->nTotalMB << 8; local 610 pp_prev1 = video->pstprcTypPrv + (size >> 6) + 612 pp_dec_u = video->pstprcTypCur + (size >> 6) + 615 pp_dec_u[size>>8] = pp_prev1[size>> [all...] |
H A D | mp4lib_int.h | 245 int displayWidth; /* Handle image whose size is not a multiple of 16. */ 246 int displayHeight; /* This is the actual size. 08/09/2000 */ 247 int32 size; member in struct:tagVideoDecData
|
H A D | post_filter.cpp | 44 int32 size; local 52 size = (int32)width * height; 54 oscl_memcpy(output, decodedFrame, size); 55 oscl_memcpy(output + size, decodedFrame + size, (size >> 2)); 56 oscl_memcpy(output + size + (size >> 2), decodedFrame + size + (size >> [all...] |
H A D | pp_semaphore_chroma_inter.cpp | 33 size = total number of pixel in the current luminance VOP (int) 120 int32 size, /* i */ 168 /* (pstprcTypPrv + (size>>6)). */ 172 pp_prev1 = pstprcTypPrv + (size >> 6) + nmvx + nmvy * (mvwidth >> 1) ; 211 /* = size/256 = size>>8 */ 212 mv_loc = (size >> 8); 111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument
|
H A D | pvdec_api.cpp | 84 oscl_memset(decCtrl, 0, sizeof(VideoDecControls)); /* fix a size bug. 03/28/2001 */ 273 video->size = (int32)video->width * video->height; 310 int32 size; local 331 size = (int32)sizeof(PIXEL) * video->width * video->height; 333 decCtrl->size = size; 338 video->currVop->uChan = video->currVop->yChan + size; 339 video->currVop->vChan = video->currVop->uChan + (size >> 2); 343 video->prevVop->uChan = video->prevVop->yChan + size; 344 video->prevVop->vChan = video->prevVop->uChan + (size >> 980 PVLocateFrameHeader(uint8 *ptr, int32 size) argument 1015 PVLocateH263FrameHeader(uint8 *ptr, int32 size) argument 1656 int32 size = (int32)width * video->height; local 1696 int32 size = (int32) video->width * video->height; local [all...] |
H A D | vop.cpp | 122 /* We'll fail later if the size is too large. This is to allow playback of */ 414 // video->displayWidth += (video->displayWidth & 0x1); /* displayed image should be even size */ 424 // video->displayHeight += (video->displayHeight & 0x1); /* displayed image should be even size */ 1022 int32 size; local 1085 if (video->size < 128*96) 1095 if (video->size < 176*144) 1105 if (video->size < 352*288) 1115 if (video->size < 704*576) 1125 if (video->size < 1408*1152) 1168 if (video->size < 12 [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4enc_api.cpp | 140 Int UpdateSkipNextFrame(VideoEncData *video, ULong *modTime, Int *size, PV_STATUS status); 199 Int size = 0, nTotalMB = 0; local 273 /* cannot have zero size packet with these modes */ 360 encParams->VBV_delay = encOption->vbvDelay; /* 2sec VBV buffer size */ 548 encParams->VBV_delay = (float)2.0; /* default 2sec VBV buffer size */ 552 encParams->VBV_delay = (float)0.5; /* default 0.5sec VBV buffer size */ 557 encParams->VBV_delay = (float)10.0; /* default 10sec VBV buffer size */ 627 /* Check if the video size and framerate(MBsPerSec) are vald */ 770 size = pitch * max_height; 772 if (size > INT32_MA 1315 PVGetVolHeader(VideoEncControls *encCtrl, UChar *volHeader, Int *size, Int layer) argument 1386 PVEncodeVideoFrame(VideoEncControls *encCtrl, VideoEncFrameIO *vid_in, VideoEncFrameIO *vid_out, ULong *nextModTime, UChar *bstream, Int *size, Int *nLayer) argument 1871 PVEncodeSlice(VideoEncControls *encCtrl, UChar *bstream, Int *size, Int *endofFrame, VideoEncFrameIO *vid_out, ULong *nextModTime) argument 2859 UpdateSkipNextFrame(VideoEncData *video, ULong *modTime, Int *size, PV_STATUS status) argument [all...] |