/frameworks/av/cmds/stagefright/ |
H A D | jpeg.cpp | 40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument 74 uint16_t *src = (uint16_t *)(frame + row * width * 2);
|
H A D | stagefright.cpp | 381 printf("decoded a total of %d frame(s).\n", n); 433 CHECK(!"sync frame detection not implemented yet for MPEG4"); 436 CHECK(!"sync frame detection not implemented yet for H.263"); 493 // Ignore everything up to the first IDR frame. 851 VideoFrame *frame = (VideoFrame *)mem->pointer(); local 854 (uint8_t *)frame + sizeof(VideoFrame), 855 frame->mWidth, frame->mHeight), 0);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 190 VideoFrame *frame = mRetriever->getFrameAtTime(timeUs, option); local 191 if (frame == NULL) { 192 ALOGE("failed to capture a video frame"); 195 size_t size = sizeof(VideoFrame) + frame->mSize; 199 delete frame; 205 delete frame; 209 frameCopy->mWidth = frame->mWidth; 210 frameCopy->mHeight = frame->mHeight; 211 frameCopy->mDisplayWidth = frame->mDisplayWidth; 212 frameCopy->mDisplayHeight = frame [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 190 int16_t *frame = (int16_t *) data; local 197 frame[0] = (frame[0] * fixedMultiplier) >> kShift; 198 ++frame; 201 frame[0] = (frame[0] * fixedMultiplier) >> kShift; 202 frame[1] = (frame[1] * fixedMultiplier) >> kShift; 203 frame += 2; 304 if (mNumFramesReceived > 0) { // Ignore earlier frame los [all...] |
H A D | CameraSource.cpp | 234 * @param width the video frame width in pixels 235 * @param height the video frame height in pixels 263 * Query the camera to retrieve the supported video frame sizes 270 * supported video frame sizes advertised by the camera. 303 * (width and height) and/or frame rate. If both width and 305 * if frameRate is -1, configuration on the frame rate 311 * @param width the target video frame width in pixels 312 * @param height the target video frame height in pixels 313 * @param frameRate the target frame rate in frames per second. 352 ALOGV("Supported frame rate 759 releaseRecordingFrame(const sp<IMemory>& frame) argument 784 releaseOneRecordingFrame(const sp<IMemory>& frame) argument 818 sp<IMemory> frame; local [all...] |
H A D | FLACExtractor.cpp | 165 const FLAC__Frame *frame, const FLAC__int32 * const buffer[]); 191 const FLAC__Frame *frame, const FLAC__int32 * const buffer[], 245 const FLAC__StreamDecoder * /* decoder */, const FLAC__Frame *frame, 248 return ((FLACParser *) client_data)->writeCallback(frame, buffer); 320 const FLAC__Frame *frame, const FLAC__int32 * const buffer[]) 324 // FLAC parser doesn't free or realloc buffer until next frame or finish 325 mWriteHeader = frame->header; 244 write_callback( const FLAC__StreamDecoder * , const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data) argument 319 writeCallback( const FLAC__Frame *frame, const FLAC__int32 * const buffer[]) argument
|
H A D | StagefrightMetadataRetriever.cpp | 219 ALOGV("decoding frame failed."); 225 ALOGV("successfully decoded video frame."); 230 ALOGV("video frame is unreadable, decoder does not give us access " 273 VideoFrame *frame = new VideoFrame; local 274 frame->mWidth = crop_right - crop_left + 1; 275 frame->mHeight = crop_bottom - crop_top + 1; 276 frame->mDisplayWidth = frame->mWidth; 277 frame->mDisplayHeight = frame 387 VideoFrame *frame = local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dtx_dec.cpp | 204 // initialize decoder log frame energy 312 /* initialize decoder log frame energy */ 580 Set_zero(lsfState->past_r_q, M); // reset for next speech frame 1073 Set_zero(lsfState->past_r_q, M); /* reset for next speech frame */ 1396 frame = 1430 Word16 frame[]) 1445 // compute log energy based on frame energy 1449 L_frame_en = L_mac(L_frame_en, frame[i], frame[i]); 1495 Word16 frame[], 1493 dtx_dec_activity_update(dtx_decState *st, Word16 lsf[], Word16 frame[], Flag *pOverflow) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/common/include/ |
H A D | avcint_common.h | 79 #define MAX_FS (16+1) /* pre-defined size of frame store array */ 479 reference frame. 484 uint16 RefIdx; /* index used for reference frame */ 493 AVCPictureType picType; /* frame, top-field or bot-field */ 511 This structure contains information for frame storage. 518 int IsReference; /* 0=not used for ref; 1=top used; 2=bottom used; 3=both fields (or frame) used */ 519 int IsLongTerm; /* 0=not used for ref; 1=top used; 2=bottom used; 3=both fields (or frame) used */ 526 AVCPictureData frame; member in struct:tagFrameStore 531 int PicOrderCnt; /* of the frame, smaller of the 2 fields */ 541 NOTE:: In order to maintain contiguous memory space, memory equal to a single frame i [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4lib_int.h | 45 Int frame; /* frame number */ member in struct:tagVOP 53 Int padded; /* flag whether this frame has been padded */ 206 Int Refresh; /* Number of MBs refresh in each frame */ 209 Bool FineFrameSkip_Enabled; /* src rate resolution frame skipping */ 211 Bool NoFrameSkip_Enabled; /* do not allow frame skip */ 228 Int maxFrameSize; /* maximum frame size(bits) for H263/Short header mode, k*16384 */ 263 Int target_bits; /* target bits for current frame, = rc->T */ 264 Int actual_bits; /* actual bits for current frame obtained after encoding, = rc->Rc*/ 265 Int QP; /* quantization level for current frame, [all...] |
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 475 // Accept the first key frame 516 MediaBuffer *frame = *mPendingFrames.begin(); local 519 frame->release(); 520 frame = NULL; 536 const mkvparser::Block::Frame &frame = block->GetFrame(i); local 538 MediaBuffer *mbuf = new MediaBuffer(frame.len); 542 long n = frame.Read(mExtractor->mReader, (unsigned char *)mbuf->data()); 591 MediaBuffer *frame = *mPendingFrames.begin(); local 596 frame->meta_data()->setInt64( 600 *out = frame; [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 473 // release a recording frame 708 // invoke methods in the Client class again (For example, the preview frame 816 // preview callback - frame buffer update 830 LOG2("frame callback is disabled"); 848 // Is the received frame copied out or not? 850 LOG2("frame is copied"); 853 LOG2("frame is forwarded"); 956 ALOGE("%s: Failed to mmap heap for preview frame.", __FUNCTION__); 960 ALOGE("%s: Failed to mmap preview buffer for preview frame.", __FUNCTION__); 967 sp<MemoryBase> frame local [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | FrameProcessor.cpp | 63 bool FrameProcessor::processSingleFrame(CaptureResult &frame, argument 74 isPartialResult = frame.mResultExtras.partialResultCount < mNumPartialResults; 77 entry = frame.mMetadata.find(ANDROID_QUIRKS_PARTIAL_RESULT); 85 if (!isPartialResult && processFaceDetect(frame.mMetadata, client) != OK) { 90 process3aState(frame, client); 93 return FrameProcessorBase::processSingleFrame(frame, device); 96 status_t FrameProcessor::processFaceDetect(const CameraMetadata &frame, argument 107 entry = frame.find(ANDROID_STATISTICS_FACE_DETECT_MODE); 124 entry = frame.find(ANDROID_STATISTICS_FACE_RECTANGLES); 126 // No faces this frame 241 process3aState(const CaptureResult &frame, const sp<Camera2Client> &client) argument [all...] |
H A D | ZslProcessor.cpp | 85 ALOGVV("Got preview frame for timestamp %" PRId64, timestamp); 286 if (!mZslQueue[index].frame.isEmpty()) { 287 request = mZslQueue[index].frame; 297 // Verify that the frame is reasonable for reprocessing 302 ALOGE("%s: ZSL queue frame has no AE state field!", 308 ALOGV("%s: ZSL queue frame AE state is %d, need full capture", 331 ALOGE("%s: Unable to update frame to a reprocess request", __FUNCTION__); 476 queueHead.frame.release(); 495 if (!queueEntry.frame.isEmpty()) { 496 entry = queueEntry.frame 506 CameraMetadata &frame = mFrameList.editItemAt(j); local [all...] |
H A D | ZslProcessor.h | 107 CameraMetadata frame; member in struct:android::camera2::ZslProcessor::ZslPair 127 // Match up entries from frame list to buffers in ZSL queue
|
H A D | ZslProcessor3.cpp | 57 // Initialize buffer queue and frame list based on pipeline max depth. 80 ALOGV("%s: Initialize buffer queue and frame list depth based on max pipeline depth (%d)", 114 ALOGE("%s: metadata doesn't have frame number, skip this result", __FUNCTION__); 119 ALOGVV("Got preview metadata for frame %d with timestamp %" PRId64, frameNumber, timestamp); 327 // Verify that the frame is reasonable for reprocessing 332 ALOGE("%s: ZSL queue frame has no AE state field!", 338 ALOGV("%s: ZSL queue frame AE state is %d, need full capture", 372 // TODO: Shouldn't we also update the latest preview frame? 386 ALOGE("%s: Unable to update frame to a reprocess request", 489 if (!queueEntry.frame 536 const CameraMetadata &frame = mFrameList[j]; local [all...] |
H A D | ZslProcessor3.h | 108 CameraMetadata frame; member in struct:android::camera2::ZslProcessor3::ZslPair
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Device.cpp | 20 //#define LOG_NNDEBUG 0 // Per-frame verbose logging 1185 ALOGW("%s: Camera %d: No frame in %" PRId64 " ns: %s (%d)", 1193 status_t Camera3Device::getNextResult(CaptureResult *frame) { argument 1201 if (frame == NULL) { 1207 frame->mResultExtras = result.mResultExtras; 1208 frame->mMetadata.acquire(result.mMetadata); 1714 * to the output frame queue 1917 ATRACE_ASYNC_END("frame capture", frameNumber); 1923 ") for frame %d doesn't match shutter timestamp (%" PRId64 ")", 1936 ALOGVV("%s: removed frame [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 163 status_t BootAnimation::initTexture(const Animation::Frame& frame) argument 168 SkMemoryStream stream(frame.map->getDataPtr(), frame.map->getDataLength()); 181 frame.map->release(); 543 Animation::Frame frame; local 544 frame.name = leaf; 545 frame.map = map; 546 part.frames.add(frame); 606 const Animation::Frame& frame(part.frames[j]); 610 glBindTexture(GL_TEXTURE_2D, frame [all...] |
/frameworks/base/core/java/android/view/ |
H A D | Choreographer.java | 35 * the next display frame. 43 * display frame rendering, use {@link android.animation.ValueAnimator#start}.</li> 45 * frame, use {@link View#postOnAnimation}.</li> 47 * frame after a delay, use {@link View#postOnAnimationDelayed}.</li> 49 * next display frame, use {@link View#postInvalidateOnAnimation()} or 52 * sync with display frame rendering, do nothing. This already happens automatically. 79 // default value be less than the true inter-frame delay on all devices to avoid 106 // Enable/disable using the frame time instead of returning now. 119 // All frame callbacks posted by applications have this token. 196 * The amount of time, in milliseconds, between each frame o 509 doFrame(long frameTimeNanos, int frame) argument 705 onVsync(long timestampNanos, int builtInDisplayId, int frame) argument [all...] |
H A D | DisplayEventReceiver.java | 99 * The recipient should render a frame and then call {@link #scheduleVsync} 106 * @param frame The frame number. Increases by one for each vertical sync interval. 108 public void onVsync(long timestampNanos, int builtInDisplayId, int frame) { argument 125 * display frame begins. 138 private void dispatchVsync(long timestampNanos, int builtInDisplayId, int frame) { argument 139 onVsync(timestampNanos, builtInDisplayId, frame);
|
H A D | SurfaceView.java | 528 + ", vis=" + visible + ", frame=" + mWinFrame); 620 ", frame=" + mSurfaceFrame); 656 public void resized(Rect frame, Rect overscanInsets, Rect contentInsets, argument 662 "SurfaceView", surfaceView + " got resized: w=" + frame.width() 663 + " h=" + frame.height() + ", cur w=" + mCurWidth + " h=" + mCurHeight); 670 } else if (surfaceView.mWinFrame.width() != frame.width() 671 || surfaceView.mWinFrame.height() != frame.height()) {
|
H A D | ViewRootImpl.java | 256 final Rect mWinFrame; // frame given by window manager. 1018 * Notifies the HardwareRenderer that a new frame will be coming soon. 1266 Rect frame = mWinFrame; 1305 desiredWindowWidth = frame.width(); 1306 desiredWindowHeight = frame.height(); 1309 "View " + host + " resized to: " + frame); 1451 frame.width() < desiredWindowWidth && frame.width() != mWidth) 1453 frame.height() < desiredWindowHeight && frame 5587 dispatchResized(Rect frame, Rect overscanInsets, Rect contentInsets, Rect visibleInsets, Rect stableInsets, boolean reportDraw, Configuration newConfig) argument 6486 resized(Rect frame, Rect overscanInsets, Rect contentInsets, Rect visibleInsets, Rect stableInsets, boolean reportDraw, Configuration newConfig) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | BaseIWindow.java | 37 public void resized(Rect frame, Rect overscanInsets, Rect contentInsets, argument
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/ |
H A D | FrameLayoutGravity.java | 17 package android.widget.layout.frame;
|