/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
H A D | superframe_test.cc | 39 if (video->frame() == 1) { 49 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); 50 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; 55 pkt->data.frame.sz >= index_sz && 56 buffer[pkt->data.frame.sz - index_sz] == marker) { 57 // frame is a superframe. strip off the index. 60 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; 61 memcpy(modified_buf_, pkt->data.frame.buf, 62 pkt->data.frame.sz - index_sz); 64 modified_pkt_.data.frame [all...] |
H A D | resize_test.cc | 72 pts = pkt->data.frame.pts; 73 mem_put_le32(header, static_cast<unsigned int>(pkt->data.frame.sz)); 84 unsigned int ScaleForFrameNumber(unsigned int frame, unsigned int val) { argument 85 if (frame < 10) 87 if (frame < 20) 89 if (frame < 30) 91 if (frame < 40) 93 if (frame < 50) 151 const unsigned int frame = static_cast<unsigned>(info->pts); local 152 const unsigned int expected_w = ScaleForFrameNumber(frame, kInitialWidt [all...] |
H A D | altref_test.cc | 38 if (video->frame() == 1) { 45 if (pkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) ++altref_count_;
|
H A D | active_map_test.cc | 38 if (video->frame() == 1) { 40 } else if (video->frame() == 3) { 59 } else if (video->frame() == 15) {
|
H A D | tile_independence_test.cc | 53 if (video->frame() == 1) { 61 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz);
|
H A D | keyframe_test.cc | 38 frame_flags_ = (video->frame() % 3) ? 0 : VPX_EFLAG_FORCE_KF; 39 if (set_cpu_used_ && video->frame() == 1) 44 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) { 45 kf_pts_list_.push_back(pkt->data.frame.pts); 89 // verify that every third frame is a keyframe. 92 ASSERT_EQ(0, *iter % 3) << "Unexpected keyframe at frame " << *iter; 105 ASSERT_EQ(0, *iter % 25) << "Unexpected keyframe at frame " << *iter; 121 // I check only the first 40 frames to make sure there's a keyframe at frame 137 EXPECT_EQ(0, (*iter - 1) % 30) << "Unexpected keyframe at frame " 140 EXPECT_EQ(0, *iter % 30) << "Unexpected keyframe at frame " << *ite [all...] |
H A D | borders_test.cc | 33 if (video->frame() == 1) { 43 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) {
|
H A D | datarate_test.cc | 52 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; 57 // plus one frame's time. 65 /* Test the buffer model here before subtracting the frame. Do so because 70 const bool key_frame = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) 73 ASSERT_GE(bits_in_buffer_model_, 0) << "Buffer Underrun at frame " 74 << pkt->data.frame.pts; 77 const size_t frame_size_in_bits = pkt->data.frame.sz * 8; 79 // Subtract from the buffer the bits associated with a played back frame. 90 last_pts_ = pkt->data.frame.pts; 93 // frame encode [all...] |
/hardware/ti/omap4-aah/camera/ |
H A D | AppCallbackNotifier.cpp | 309 ///Received a frame from one of the frame providers 310 //CAMHAL_LOGDA("Notification Thread received a frame from frame provider (CameraAdapter)"); 702 static void copyCroppedNV12(CameraFrame* frame, unsigned char *dst) argument 708 CAMHAL_ASSERT(frame && dst); 710 offset = frame->mOffset; 711 stride = frame->mAlignment; 712 width = frame->mWidth; 713 height = frame 740 copyAndSendPictureFrame(CameraFrame* frame, int32_t msgType) argument 789 copyAndSendPreviewFrame(CameraFrame* frame, int32_t msgType) argument 902 CameraFrame *frame; local 1256 CameraFrame *frame; local 1285 CameraFrame *frame; local 1763 CameraBuffer *frame = NULL; local [all...] |
H A D | BaseCameraAdapter.cpp | 309 CameraFrame *frame = new CameraFrame; local 310 frame->mBuffer = frameBuf; 311 frame->mYuv[0] = pBuf[0]; 312 frame->mYuv[1] = pBuf[1]; 313 mFrameQueue.add(frameBuf, frame); 315 CAMHAL_LOGVB("Adding Frame=0x%x Y=0x%x UV=0x%x", frame->mBuffer, frame->mYuv[0], frame->mYuv[1]); 327 CameraFrame *frame = (CameraFrame *)mFrameQueue.valueAt(i); local 328 CAMHAL_LOGVB("Free Frame=0x%x Y=0x%x UV=0x%x", frame 412 CameraFrame *frame = NULL; local 1285 sendFrameToSubscribers(CameraFrame *frame) argument 1354 __sendFrameToSubscribers(CameraFrame* frame, android::KeyedVector<int, frame_callback> *subscribers, CameraFrame::FrameType frameType) argument 1802 getPictureBufferSize(CameraFrame &frame, size_t bufferCount) argument [all...] |
/hardware/ti/omap4xxx/camera/ |
H A D | AppCallbackNotifier.cpp | 299 ///Received a frame from one of the frame providers 300 //CAMHAL_LOGDA("Notification Thread received a frame from frame provider (CameraAdapter)"); 690 void AppCallbackNotifier::copyAndSendPictureFrame(CameraFrame* frame, int32_t msgType) argument 703 picture = mRequestMemory(-1, frame->mLength, 1, NULL); 708 src = (void *) ((unsigned int) frame->mBuffer + frame->mOffset); 709 memcpy(dest, src, frame->mLength); 715 mFrameProvider->returnFrame(frame 726 copyAndSendPreviewFrame(CameraFrame* frame, int32_t msgType) argument 837 CameraFrame *frame; local 1182 CameraFrame *frame; local 1209 CameraFrame *frame; local 1702 void *frame = NULL; local [all...] |
H A D | BaseCameraAdapter.cpp | 230 CameraFrame *frame = new CameraFrame; local 231 frame->mBuffer = frameBuf; 232 frame->mYuv[0] = pBuf[0]; 233 frame->mYuv[1] = pBuf[1]; 234 mFrameQueue.add(frameBuf, frame); 236 CAMHAL_LOGVB("Adding Frame=0x%x Y=0x%x UV=0x%x", frame->mBuffer, frame->mYuv[0], frame->mYuv[1]); 248 CameraFrame *frame = (CameraFrame *)mFrameQueue.valueAt(i); local 249 CAMHAL_LOGVB("Free Frame=0x%x Y=0x%x UV=0x%x", frame 332 CameraFrame *frame = NULL; local 1140 sendFrameToSubscribers(CameraFrame *frame) argument 1204 __sendFrameToSubscribers(CameraFrame* frame, KeyedVector<int, frame_callback> *subscribers, CameraFrame::FrameType frameType) argument [all...] |
/hardware/ti/omap4-aah/camera/inc/ |
H A D | BufferSourceAdapter.h | 44 // helper class to return frame in different thread context 91 // helper class to queue frame in different thread context 101 void addFrame(CameraFrame *frame) { argument 103 mFrames.add(new CameraFrame(*frame)); 114 CameraFrame *frame = mFrames.itemAt(0); local 116 frame->mMetaData.clear(); 117 delete frame; 123 CameraFrame *frame = NULL; local 128 frame = mFrames.itemAt(0); 133 if (frame) { [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
H A D | debugmodes.c | 16 void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols, int frame) argument 26 fprintf(mvs, "Mb Modes for Frame %d\n", frame); 45 fprintf(mvs, "Mb mv ref for Frame %d\n", frame); 65 fprintf(mvs, "UV Modes for Frame %d\n", frame); 85 fprintf(mvs, "Mbs for Frame %d\n", frame); 113 fprintf(mvs, "MVs for Frame %d\n", frame); 133 fprintf(mvs, "MVs for Frame %d\n", frame);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
H A D | decode_with_partial_drops.c | 26 // To drop a range of frames, specify the starting frame and the ending 27 // frame to drop, separated by a dash. The following command will drop 45 // A third argument tuple is available to split the frame into 1500 bytes pieces 46 // and randomly drop pieces rather than frames. The frame will be split at 60 // The example decides whether to drop the frame based on the current 61 // frame number, immediately before decoding the frame. 140 void throw_packets(unsigned char* frame, int* size, int loss_rate, argument 157 tmp = (frame[2] << 16) | (frame[ 201 unsigned char frame[256*1024]; local [all...] |
H A D | simple_decoder.c | 23 // followed by a variable number of frames. Each frame consists of a frame 25 // is specified in the first four bytes of the frame header. The payload is 49 // Once the frame has been read into memory, it is decoded using the 51 // (`frame`) and the length of the data (`frame_sz`). No application data 52 // is associated with the frame in this example, so the `user_priv` 135 const unsigned char *frame = vpx_video_reader_get_frame(reader, local 137 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 0)) 138 die_codec(&codec, "Failed to decode frame.");
|
H A D | simple_encoder.c | 22 // followed by a variable number of frames. Each frame consists of a frame 24 // is specified in the first four bytes of the frame header. The payload is 59 // The frame is read as a continuous block (size width * height * 3 / 2) 60 // from the input file. If a frame was read (the input file has not hit 61 // EOF) then the frame is passed to the encoder. Otherwise, a NULL 64 // frame is shown for one frame-time in duration. The flags parameter is 80 // for this frame. We write a IVF frame heade [all...] |
H A D | vp8cx_set_ref.c | 16 // internal reference frame. In the sample we set the last frame to the 17 // current frame. If this is done at a cut scene it will avoid a keyframe. 20 // Note that the decoder would also have to set the reference frame to the 21 // same value on the same frame, or the video will become corrupt. 26 // which specifies the frame number to update the reference frame on. 32 // This example maintains the frame number passed on the command line 39 // The reference frame is updated on the frame specifie [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
H A D | vp9_temporal_filter.c | 148 // Setup frame pointers 196 int frame; local 252 for (frame = 0; frame < frame_count; frame++) { 253 if (cpi->frames[frame] == NULL) 259 if (frame == alt_ref_index) { 267 // Find best match in this frame by MC 271 cpi->frames[frame]->y_buffer + mb_y_offset, 272 cpi->frames[frame] 374 int frame = 0; local [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
H A D | temporal_filter.c | 169 /* Setup frame pointers */ 231 int frame; local 283 for (frame = 0; frame < frame_count; frame++) 285 if (cpi->frames[frame] == NULL) 291 if (frame == alt_ref_index) 301 /* Find best match in this frame by MC */ 305 cpi->frames[frame], 322 cpi->frames[frame] 433 int frame = 0; local [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libwebm/ |
H A D | mkvmuxer.cpp | 141 bool Frame::Init(const uint8* frame, uint64 length) { argument 151 memcpy(frame_, frame, static_cast<size_t>(length_)); 1001 // for a frame using exactly 4 bytes. 1490 bool Cluster::AddFrame(const uint8* frame, argument 1495 return DoWriteBlock(frame, 1503 bool Cluster::AddFrameWithAdditional(const uint8* frame, argument 1511 return DoWriteBlockWithAdditional(frame, 1522 bool Cluster::AddFrameWithDiscardPadding(const uint8* frame, argument 1528 return DoWriteBlockWithDiscardPadding(frame, 1537 bool Cluster::AddMetadata(const uint8* frame, argument 1619 DoWriteBlock( const uint8* frame, uint64 length, uint64 track_number, uint64 abs_timecode, uint64 generic_arg, WriteBlock write_block) argument 1652 DoWriteBlockWithAdditional( const uint8* frame, uint64 length, const uint8* additional, uint64 additional_length, uint64 add_id, uint64 track_number, uint64 abs_timecode, uint64 generic_arg, WriteBlockAdditional write_block) argument 1692 DoWriteBlockWithDiscardPadding( const uint8* frame, uint64 length, int64 discard_padding, uint64 track_number, uint64 abs_timecode, uint64 generic_arg, WriteBlockDiscardPadding write_block) argument 2101 Frame* const frame = frames_[i]; local 2384 AddFrame(const uint8* frame, uint64 length, uint64 track_number, uint64 timestamp, bool is_key) argument 2447 AddFrameWithAdditional(const uint8* frame, uint64 length, const uint8* additional, uint64 additional_length, uint64 add_id, uint64 track_number, uint64 timestamp, bool is_key) argument 2516 AddFrameWithDiscardPadding(const uint8* frame, uint64 length, int64 discard_padding, uint64 track_number, uint64 timestamp, bool is_key) argument 2582 AddMetadata(const uint8* frame, uint64 length, uint64 track_number, uint64 timestamp_ns, uint64 duration_ns) argument 2625 AddGenericFrame(const Frame* frame) argument 3086 QueueFrame(Frame* frame) argument 3129 Frame*& frame = frames_[i]; local [all...] |
/hardware/intel/img/libdrm/shared-core/ |
H A D | drm_sarea.h | 58 /** SAREA frame */ 74 struct drm_sarea_frame frame; /**< frame */ member in struct:drm_sarea
|
/hardware/ti/omap4-aah/camera/V4LCameraAdapter/ |
H A D | V4LCameraAdapter.cpp | 256 //set frame rate 398 //set frame rate 541 CameraFrame frame; local 603 //get the frame and send to encode as JPG 606 CAMHAL_LOGEA("!!! Captured frame is NULL !!!!"); 635 CAMHAL_LOGDA("::sending capture frame to encoder::"); 636 frame.mFrameType = CameraFrame::IMAGE_FRAME; 637 frame.mBuffer = buffer; 638 frame.mLength = yuv422i_buff_size; 639 frame 826 getPictureBufferSize(CameraFrame &frame, size_t bufferCount) argument 1133 CameraFrame frame; local [all...] |
/hardware/ti/omap3/dspbridge/libbridge/ |
H A D | Android.mk | 20 LOCAL_CFLAGS += -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -msoft-float -Uarm -DMODULE -D__LINUX_ARM_ARCH__=7 -fno-common -DLINUX -DOMAP_3430 -fpic
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
H A D | vp9_decoder.c | 70 void write_dx_frame_to_file(YV12_BUFFER_CONFIG *frame, int this_frame) { argument 71 // write the frame 79 for (i = 0; i < frame->y_height; i++) 80 fwrite(frame->y_buffer + i * frame->y_stride, 81 frame->y_width, 1, yframe); 87 for (i = 0; i < frame->uv_height; i++) 88 fwrite(frame->u_buffer + i * frame->uv_stride, 89 frame [all...] |