/hardware/ti/omap4-aah/camera/ |
D | AppCallbackNotifier.cpp | 702 static void copyCroppedNV12(CameraFrame* frame, unsigned char *dst) in copyCroppedNV12() argument 708 CAMHAL_ASSERT(frame && dst); in copyCroppedNV12() 710 offset = frame->mOffset; in copyCroppedNV12() 711 stride = frame->mAlignment; in copyCroppedNV12() 712 width = frame->mWidth; in copyCroppedNV12() 713 height = frame->mHeight; in copyCroppedNV12() 714 size = frame->mLength; in copyCroppedNV12() 715 unsigned const char *src = (unsigned char *) frame->mBuffer->mapped; in copyCroppedNV12() 740 void AppCallbackNotifier::copyAndSendPictureFrame(CameraFrame* frame, int32_t msgType) in copyAndSendPictureFrame() argument 753 if (frame->mBuffer->format && in copyAndSendPictureFrame() [all …]
|
D | BaseCameraAdapter.cpp | 309 CameraFrame *frame = new CameraFrame; in addFramePointers() local 310 frame->mBuffer = frameBuf; in addFramePointers() 311 frame->mYuv[0] = pBuf[0]; in addFramePointers() 312 frame->mYuv[1] = pBuf[1]; in addFramePointers() 313 mFrameQueue.add(frameBuf, frame); in addFramePointers() 315 … CAMHAL_LOGVB("Adding Frame=0x%x Y=0x%x UV=0x%x", frame->mBuffer, frame->mYuv[0], frame->mYuv[1]); in addFramePointers() 327 CameraFrame *frame = (CameraFrame *)mFrameQueue.valueAt(i); in removeFramePointers() local 328 … CAMHAL_LOGVB("Free Frame=0x%x Y=0x%x UV=0x%x", frame->mBuffer, frame->mYuv[0], frame->mYuv[1]); in removeFramePointers() 329 delete frame; in removeFramePointers() 412 CameraFrame *frame = NULL; in sendCommand() local [all …]
|
D | BufferSourceAdapter.cpp | 834 void BufferSourceAdapter::addFrame(CameraFrame* frame) in addFrame() argument 837 mQueueFrame->addFrame(frame); in addFrame() 841 void BufferSourceAdapter::handleFrameCallback(CameraFrame* frame) in handleFrameCallback() argument 851 if (!mBuffers || !frame->mBuffer) { in handleFrameCallback() 857 if (frame->mBuffer == &mBuffers[i]) { in handleFrameCallback() 864 if (frame->mFrameType != CameraFrame::REPROCESS_INPUT_FRAME) { in handleFrameCallback() 865 mFrameProvider->returnFrame(frame->mBuffer, in handleFrameCallback() 866 static_cast<CameraFrame::FrameType>(frame->mFrameType)); in handleFrameCallback() 876 if (frame->mFrameType == CameraFrame::REPROCESS_INPUT_FRAME) { in handleFrameCallback() 882 CameraHal::getXYFromOffset(&x, &y, frame->mOffset, frame->mAlignment, mPixelFormat); in handleFrameCallback() [all …]
|
/hardware/ti/omap4xxx/camera/ |
D | AppCallbackNotifier.cpp | 690 void AppCallbackNotifier::copyAndSendPictureFrame(CameraFrame* frame, int32_t msgType) in copyAndSendPictureFrame() argument 703 picture = mRequestMemory(-1, frame->mLength, 1, NULL); in copyAndSendPictureFrame() 708 src = (void *) ((unsigned int) frame->mBuffer + frame->mOffset); in copyAndSendPictureFrame() 709 memcpy(dest, src, frame->mLength); in copyAndSendPictureFrame() 715 mFrameProvider->returnFrame(frame->mBuffer, (CameraFrame::FrameType) frame->mFrameType); in copyAndSendPictureFrame() 726 void AppCallbackNotifier::copyAndSendPreviewFrame(CameraFrame* frame, int32_t msgType) in copyAndSendPreviewFrame() argument 739 if (!mPreviewMemory || !frame->mBuffer) { in copyAndSendPreviewFrame() 750 frame->mBuffer, in copyAndSendPreviewFrame() 751 frame->mWidth, in copyAndSendPreviewFrame() 752 frame->mHeight, in copyAndSendPreviewFrame() [all …]
|
D | BaseCameraAdapter.cpp | 230 CameraFrame *frame = new CameraFrame; in addFramePointers() local 231 frame->mBuffer = frameBuf; in addFramePointers() 232 frame->mYuv[0] = pBuf[0]; in addFramePointers() 233 frame->mYuv[1] = pBuf[1]; in addFramePointers() 234 mFrameQueue.add(frameBuf, frame); in addFramePointers() 236 … CAMHAL_LOGVB("Adding Frame=0x%x Y=0x%x UV=0x%x", frame->mBuffer, frame->mYuv[0], frame->mYuv[1]); in addFramePointers() 248 CameraFrame *frame = (CameraFrame *)mFrameQueue.valueAt(i); in removeFramePointers() local 249 … CAMHAL_LOGVB("Free Frame=0x%x Y=0x%x UV=0x%x", frame->mBuffer, frame->mYuv[0], frame->mYuv[1]); in removeFramePointers() 250 delete frame; in removeFramePointers() 332 CameraFrame *frame = NULL; in sendCommand() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | superframe_test.cc | 39 if (video->frame() == 1) { in PreEncodeFrameHook() 49 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); in MutateEncoderOutputHook() 50 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; in MutateEncoderOutputHook() 55 pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook() 56 buffer[pkt->data.frame.sz - index_sz] == marker) { in MutateEncoderOutputHook() 60 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; in MutateEncoderOutputHook() 61 memcpy(modified_buf_, pkt->data.frame.buf, in MutateEncoderOutputHook() 62 pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook() 64 modified_pkt_.data.frame.buf = modified_buf_; in MutateEncoderOutputHook() 65 modified_pkt_.data.frame.sz -= index_sz; in MutateEncoderOutputHook() [all …]
|
D | resize_test.cc | 72 pts = pkt->data.frame.pts; in write_ivf_frame_header() 73 mem_put_le32(header, static_cast<unsigned int>(pkt->data.frame.sz)); in write_ivf_frame_header() 84 unsigned int ScaleForFrameNumber(unsigned int frame, unsigned int val) { in ScaleForFrameNumber() argument 85 if (frame < 10) in ScaleForFrameNumber() 87 if (frame < 20) in ScaleForFrameNumber() 89 if (frame < 30) in ScaleForFrameNumber() 91 if (frame < 40) in ScaleForFrameNumber() 93 if (frame < 50) in ScaleForFrameNumber() 151 const unsigned int frame = static_cast<unsigned>(info->pts); in TEST_P() local 152 const unsigned int expected_w = ScaleForFrameNumber(frame, kInitialWidth); in TEST_P() [all …]
|
D | datarate_test.cc | 52 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; in FramePktHook() 70 const bool key_frame = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) in FramePktHook() 74 << pkt->data.frame.pts; in FramePktHook() 77 const size_t frame_size_in_bits = pkt->data.frame.sz * 8; in FramePktHook() 90 last_pts_ = pkt->data.frame.pts; in FramePktHook() 277 if (video->frame() == 1) { in PreEncodeFrameHook() 281 if (video->frame() == 1) { in PreEncodeFrameHook() 286 frame_flags_ = SetFrameFlags(video->frame(), cfg_.ts_number_layers); in PreEncodeFrameHook() 287 layer_id.temporal_layer_id = SetLayerId(video->frame(), in PreEncodeFrameHook() 289 if (video->frame() > 0) { in PreEncodeFrameHook() [all …]
|
D | keyframe_test.cc | 38 frame_flags_ = (video->frame() % 3) ? 0 : VPX_EFLAG_FORCE_KF; in PreEncodeFrameHook() 39 if (set_cpu_used_ && video->frame() == 1) in PreEncodeFrameHook() 44 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) { in FramePktHook() 45 kf_pts_list_.push_back(pkt->data.frame.pts); in FramePktHook()
|
D | active_map_test.cc | 38 if (video->frame() == 1) { in PreEncodeFrameHook() 40 } else if (video->frame() == 3) { in PreEncodeFrameHook() 59 } else if (video->frame() == 15) { in PreEncodeFrameHook()
|
/hardware/ti/omap4-aah/camera/inc/ |
D | BufferSourceAdapter.h | 101 void addFrame(CameraFrame *frame) { in addFrame() argument 103 mFrames.add(new CameraFrame(*frame)); in addFrame() 114 CameraFrame *frame = mFrames.itemAt(0); in requestExit() local 116 frame->mMetaData.clear(); in requestExit() 117 delete frame; in requestExit() local 123 CameraFrame *frame = NULL; in threadLoop() local 128 frame = mFrames.itemAt(0); in threadLoop() 133 if (frame) { in threadLoop() 134 mBufferSourceAdapter->handleFrameCallback(frame); in threadLoop() 135 frame->mMetaData.clear(); in threadLoop() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
D | decode_with_partial_drops.c | 140 void throw_packets(unsigned char* frame, int* size, int loss_rate, in throw_packets() argument 157 tmp = (frame[2] << 16) | (frame[1] << 8) | frame[0]; in throw_packets() 178 memcpy(loss_frame + loss_pos, frame + pos, pkg_size); in throw_packets() 190 memcpy(frame, loss_frame, loss_pos); in throw_packets() 191 memset(frame + loss_pos, 0, *size - loss_pos); in throw_packets() 201 unsigned char frame[256*1024]; in main() local 258 if(frame_sz > sizeof(frame)) in main() 260 if(fread(frame, 1, frame_sz, infile) != frame_sz) in main() 282 throw_packets(frame, &frame_sz, n, &thrown_frame, &kept_frame); in main() 303 if(vpx_codec_decode(&codec, frame, frame_sz, NULL, 0)) in main()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libwebm/ |
D | mkvmuxer.cpp | 141 bool Frame::Init(const uint8* frame, uint64 length) { in Init() argument 151 memcpy(frame_, frame, static_cast<size_t>(length_)); in Init() 1490 bool Cluster::AddFrame(const uint8* frame, in AddFrame() argument 1495 return DoWriteBlock(frame, in AddFrame() 1503 bool Cluster::AddFrameWithAdditional(const uint8* frame, in AddFrameWithAdditional() argument 1511 return DoWriteBlockWithAdditional(frame, in AddFrameWithAdditional() 1522 bool Cluster::AddFrameWithDiscardPadding(const uint8* frame, in AddFrameWithDiscardPadding() argument 1528 return DoWriteBlockWithDiscardPadding(frame, in AddFrameWithDiscardPadding() 1537 bool Cluster::AddMetadata(const uint8* frame, in AddMetadata() argument 1542 return DoWriteBlock(frame, in AddMetadata() [all …]
|
D | mkvmuxer.hpp | 74 bool Init(const uint8* frame, uint64 length); 85 const uint8* frame() const { return frame_; } in frame() function in mkvmuxer::Frame 727 bool AddFrame(const uint8* frame, 746 bool AddFrameWithAdditional(const uint8* frame, 766 bool AddFrameWithDiscardPadding(const uint8* frame, 787 bool AddMetadata(const uint8* frame, 861 bool DoWriteBlock(const uint8* frame, 869 bool DoWriteBlockWithAdditional(const uint8* frame, 880 bool DoWriteBlockWithDiscardPadding(const uint8* frame, 1073 bool AddFrame(const uint8* frame, [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
D | temporal_filter.c | 231 int frame; in vp8_temporal_filter_iterate_c() local 283 for (frame = 0; frame < frame_count; frame++) in vp8_temporal_filter_iterate_c() 285 if (cpi->frames[frame] == NULL) in vp8_temporal_filter_iterate_c() 291 if (frame == alt_ref_index) in vp8_temporal_filter_iterate_c() 305 cpi->frames[frame], in vp8_temporal_filter_iterate_c() 322 cpi->frames[frame]->y_buffer + mb_y_offset, in vp8_temporal_filter_iterate_c() 323 cpi->frames[frame]->u_buffer + mb_uv_offset, in vp8_temporal_filter_iterate_c() 324 cpi->frames[frame]->v_buffer + mb_uv_offset, in vp8_temporal_filter_iterate_c() 325 cpi->frames[frame]->y_stride, in vp8_temporal_filter_iterate_c() 433 int frame = 0; in vp8_temporal_filter_prepare_c() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
D | debugmodes.c | 16 void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols, int frame) in vp8_print_modes_and_motion_vectors() argument 26 fprintf(mvs, "Mb Modes for Frame %d\n", frame); in vp8_print_modes_and_motion_vectors() 45 fprintf(mvs, "Mb mv ref for Frame %d\n", frame); in vp8_print_modes_and_motion_vectors() 65 fprintf(mvs, "UV Modes for Frame %d\n", frame); in vp8_print_modes_and_motion_vectors() 85 fprintf(mvs, "Mbs for Frame %d\n", frame); in vp8_print_modes_and_motion_vectors() 113 fprintf(mvs, "MVs for Frame %d\n", frame); in vp8_print_modes_and_motion_vectors() 133 fprintf(mvs, "MVs for Frame %d\n", frame); in vp8_print_modes_and_motion_vectors()
|
/hardware/ti/omap4-aah/camera/V4LCameraAdapter/ |
D | V4LCameraAdapter.cpp | 541 CameraFrame frame; in takePicture() local 636 frame.mFrameType = CameraFrame::IMAGE_FRAME; in takePicture() 637 frame.mBuffer = buffer; in takePicture() 638 frame.mLength = yuv422i_buff_size; in takePicture() 639 frame.mWidth = width; in takePicture() 640 frame.mHeight = height; in takePicture() 641 frame.mAlignment = width*2; in takePicture() 642 frame.mOffset = 0; in takePicture() 643 frame.mTimestamp = systemTime(SYSTEM_TIME_MONOTONIC); in takePicture() 644 frame.mFrameMask = (unsigned int)CameraFrame::IMAGE_FRAME; in takePicture() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_temporal_filter.c | 196 int frame; in temporal_filter_iterate_c() local 252 for (frame = 0; frame < frame_count; frame++) { in temporal_filter_iterate_c() 253 if (cpi->frames[frame] == NULL) in temporal_filter_iterate_c() 259 if (frame == alt_ref_index) { in temporal_filter_iterate_c() 271 cpi->frames[frame]->y_buffer + mb_y_offset, in temporal_filter_iterate_c() 272 cpi->frames[frame]->y_stride); in temporal_filter_iterate_c() 285 cpi->frames[frame]->y_buffer + mb_y_offset, in temporal_filter_iterate_c() 286 cpi->frames[frame]->u_buffer + mb_uv_offset, in temporal_filter_iterate_c() 287 cpi->frames[frame]->v_buffer + mb_uv_offset, in temporal_filter_iterate_c() 288 cpi->frames[frame]->y_stride, in temporal_filter_iterate_c() [all …]
|
D | vp9_firstpass.c | 138 stats->frame, in output_stats() 163 section->frame = 0.0; in zero_stats() 186 const FIRSTPASS_STATS *frame) { in accumulate_stats() argument 187 section->frame += frame->frame; in accumulate_stats() 188 section->spatial_layer_id = frame->spatial_layer_id; in accumulate_stats() 189 section->intra_error += frame->intra_error; in accumulate_stats() 190 section->coded_error += frame->coded_error; in accumulate_stats() 191 section->sr_coded_error += frame->sr_coded_error; in accumulate_stats() 192 section->ssim_weighted_pred_err += frame->ssim_weighted_pred_err; in accumulate_stats() 193 section->pcnt_inter += frame->pcnt_inter; in accumulate_stats() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | usage_dx.dox | 6 frame of data. Packets \ref MUST be passed in decode order. If the 7 application wishes to associate some data with the frame, the 10 spend working on the frame. This is typically used to support adaptive 18 There are two methods for the application to access decoded frame data. Some 24 frame-based and slice-based variants. Frame based callbacks conform to the 26 frame has been decoded. Slice based callbacks conform to the signature of 27 #vpx_codec_put_slice_cb_fn_t and are invoked after a subsection of the frame 32 assembled into a full frame. For this reason, the application \ref MUST 50 Postprocessing is a process that is applied after a frame is decoded to 52 compression process. It is not required to properly decode the frame, and [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
D | vp9_decoder.c | 70 void write_dx_frame_to_file(YV12_BUFFER_CONFIG *frame, int this_frame) { in write_dx_frame_to_file() argument 79 for (i = 0; i < frame->y_height; i++) in write_dx_frame_to_file() 80 fwrite(frame->y_buffer + i * frame->y_stride, in write_dx_frame_to_file() 81 frame->y_width, 1, yframe); in write_dx_frame_to_file() 87 for (i = 0; i < frame->uv_height; i++) in write_dx_frame_to_file() 88 fwrite(frame->u_buffer + i * frame->uv_stride, in write_dx_frame_to_file() 89 frame->uv_width, 1, yframe); in write_dx_frame_to_file() 95 for (i = 0; i < frame->uv_height; i++) in write_dx_frame_to_file() 96 fwrite(frame->v_buffer + i * frame->uv_stride, in write_dx_frame_to_file() 97 frame->uv_width, 1, yframe); in write_dx_frame_to_file()
|
/hardware/intel/common/libva/test/basic/ |
D | testplan.txt | 60 - Render single MPEG2 I-frame 64 - Render single MPEG2 I-frame, multiple buffer submission 68 - Render single MPEG2 I-frame, split buffers 72 - Render single MPEG2 I-frame, split buffers 77 - Render single MPEG2 I-frame, then check vaQuerySurfaceStatus, vaSyncSurface and vaQuerySurfaceSta… 89 - Render single MPEG2 I-frame, copy surface data to image, check resulting 95 - Render single MPEG2 I-frame, copy half of a VAImage to surface, copy
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/ |
D | vp9_cx_iface.c | 93 static VP9_REFFRAME ref_frame_to_vp9_reframe(vpx_ref_frame_type_t frame) { in ref_frame_to_vp9_reframe() argument 94 switch (frame) { in ref_frame_to_vp9_reframe() 799 pkt.data.frame.pts = in vp9e_encode() 802 pkt.data.frame.duration = (unsigned long) in vp9e_encode() 805 pkt.data.frame.flags = lib_flags << 16; in vp9e_encode() 808 pkt.data.frame.flags |= VPX_FRAME_IS_KEY; in vp9e_encode() 811 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE; in vp9e_encode() 817 pkt.data.frame.pts = ((cpi->last_time_stamp_seen in vp9e_encode() 820 pkt.data.frame.duration = 0; in vp9e_encode() 824 pkt.data.frame.flags |= VPX_FRAME_IS_DROPPABLE; in vp9e_encode() [all …]
|
/hardware/ti/omap4xxx/camera/inc/ |
D | CameraHal.h | 275 CameraFrame(const CameraFrame &frame) : in CameraFrame() argument 276 mCookie(frame.mCookie), in CameraFrame() 277 mCookie2(frame.mCookie2), in CameraFrame() 278 mBuffer(frame.mBuffer), in CameraFrame() 279 mFrameType(frame.mFrameType), in CameraFrame() 280 mTimestamp(frame.mTimestamp), in CameraFrame() 281 mWidth(frame.mWidth), in CameraFrame() 282 mHeight(frame.mHeight), in CameraFrame() 283 mOffset(frame.mOffset), in CameraFrame() 284 mAlignment(frame.mAlignment), in CameraFrame() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/ |
D | vp8_cx_iface.c | 896 pkt.data.frame.pts = in vp8e_encode() 899 pkt.data.frame.duration = (unsigned long) in vp8e_encode() 902 pkt.data.frame.flags = lib_flags << 16; in vp8e_encode() 905 pkt.data.frame.flags |= VPX_FRAME_IS_KEY; in vp8e_encode() 909 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE; in vp8e_encode() 916 pkt.data.frame.pts = ((cpi->last_time_stamp_seen in vp8e_encode() 919 pkt.data.frame.duration = 0; in vp8e_encode() 923 pkt.data.frame.flags |= VPX_FRAME_IS_DROPPABLE; in vp8e_encode() 931 pkt.data.frame.flags |= VPX_FRAME_IS_FRAGMENT; in vp8e_encode() 936 pkt.data.frame.buf = cpi->partition_d[i]; in vp8e_encode() [all …]
|