/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_video.cpp | 50 [](const RefPtr<VideoComponent>& video, const std::string& val) { in SetSpecializedAttr() 51 video->SetMute(StringToBool(val)); in SetSpecializedAttr() 54 [](const RefPtr<VideoComponent>& video, const std::string& val) { in SetSpecializedAttr() 55 video->SetSrc(val); in SetSpecializedAttr() 58 [](const RefPtr<VideoComponent>& video, const std::string& val) { in SetSpecializedAttr() 59 video->SetAutoPlay(StringToBool(val)); in SetSpecializedAttr() 62 [](const RefPtr<VideoComponent>& video, const std::string& val) { in SetSpecializedAttr() 63 video->SetPoster(val); in SetSpecializedAttr() 66 [](const RefPtr<VideoComponent>& video, const std::string& val) { in SetSpecializedAttr() 67 video in SetSpecializedAttr() [all...] |
/foundation/distributeddatamgr/udmf/framework/jskitsimpl/data/ |
H A D | video_napi.cpp | 20 #include "video.h" 48 auto *video = new (std::nothrow) VideoNapi(); in New() local 49 ASSERT_ERR(ctxt->env, video != nullptr, Status::E_ERROR, "no memory for video!"); in New() 50 video->value_ = std::make_shared<Video>(); in New() 51 ASSERT_CALL(env, napi_wrap(env, ctxt->self, video, Destructor, nullptr, nullptr), video); in New() 59 auto *video = new (std::nothrow) VideoNapi(); in NewInstance() local 60 ASSERT_ERR_VOID(env, video != nullptr, Status::E_ERROR, "no memory for video!"); in NewInstance() 68 auto *video = static_cast<VideoNapi *>(data); Destructor() local 85 auto video = GetVideo(env, info, ctxt); GetVideoUri() local 107 auto video = static_cast<VideoNapi *>(ctxt->native); SetVideoUri() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | xmv.c | 54 /** A video packet with an XMV file. */ 57 int stream_index; ///< The decoder stream index for this video packet. 59 uint32_t data_size; ///< The size of the remaining video data. 60 uint64_t data_offset; ///< The offset of the video data within the file. 62 uint32_t current_frame; ///< The current frame within this video packet. 63 uint32_t frame_count; ///< The amount of frames within this video packet. 65 int has_extradata; ///< Does the video packet contain extra data? 68 int64_t last_pts; ///< PTS of the last video frame. 69 int64_t pts; ///< PTS of the most current video frame. 114 XMVVideoPacket video; ///< Th member 487 XMVVideoPacket *video = &xmv->video; xmv_fetch_video_packet() local [all...] |
H A D | electronicarts.c | 80 VideoProperties video, alpha; member 317 static void process_video_header_mdec(AVFormatContext *s, VideoProperties *video) in process_video_header_mdec() argument 321 video->width = avio_rl16(pb); in process_video_header_mdec() 322 video->height = avio_rl16(pb); in process_video_header_mdec() 323 video->time_base = (AVRational) { 1, 15 }; in process_video_header_mdec() 324 video->codec = AV_CODEC_ID_MDEC; in process_video_header_mdec() 327 static int process_video_header_vp6(AVFormatContext *s, VideoProperties *video) in process_video_header_vp6() argument 332 video->nb_frames = avio_rl32(pb); in process_video_header_vp6() 334 video->time_base.den = avio_rl32(pb); in process_video_header_vp6() 335 video in process_video_header_vp6() 345 process_video_header_cmv(AVFormatContext *s, VideoProperties *video) process_video_header_cmv() argument 490 init_video_stream(AVFormatContext *s, VideoProperties *video) init_video_stream() argument [all...] |
H A D | c93.c | 62 AVStream *video; in read_header() local 82 video = avformat_new_stream(s, NULL); in read_header() 83 if (!video) in read_header() 86 video->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header() 87 video->codecpar->codec_id = AV_CODEC_ID_C93; in read_header() 88 video->codecpar->width = 320; in read_header() 89 video->codecpar->height = 192; in read_header() 91 video->sample_aspect_ratio = (AVRational) { 5, 6 }; in read_header() 92 avpriv_set_pts_info(video, 64, 2, 25); in read_header() 93 video in read_header() [all...] |
H A D | segafilmenc.c | 141 av_log(format_context, AV_LOG_ERROR, "Sega FILM allows a maximum of one video stream.\n"); in film_init() 147 "Incompatible video stream format.\n"); in film_init() 160 av_log(format_context, AV_LOG_ERROR, "No video stream present.\n"); in film_init() 188 AVStream *video = NULL; in film_write_header() local 219 video = format_context->streams[film->video_index]; in film_write_header() 221 /* The only two supported codecs; raw video is rare */ in film_write_header() 222 switch (video->codecpar->codec_id) { in film_write_header() 231 bytestream_put_be32(&ptr, video->codecpar->height); in film_write_header() 232 bytestream_put_be32(&ptr, video->codecpar->width); in film_write_header() 264 bytestream_put_be32(&ptr, av_q2d(av_inv_q(video in film_write_header() [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/component/video/dec/ |
H A D | Rkvpu_OMX_Vdec.c | 156 if ((rockchipOutputPort->portDefinition.format.video.nFrameWidth != in UpdateFrameSize() 157 rockchipInputPort->portDefinition.format.video.nFrameWidth) || in UpdateFrameSize() 158 (rockchipOutputPort->portDefinition.format.video.nFrameHeight != in UpdateFrameSize() 159 rockchipInputPort->portDefinition.format.video.nFrameHeight) || in UpdateFrameSize() 160 (rockchipOutputPort->portDefinition.format.video.nStride != in UpdateFrameSize() 161 rockchipInputPort->portDefinition.format.video.nStride) || in UpdateFrameSize() 162 (rockchipOutputPort->portDefinition.format.video.nSliceHeight != in UpdateFrameSize() 163 rockchipInputPort->portDefinition.format.video.nSliceHeight)) { in UpdateFrameSize() 166 rockchipOutputPort->portDefinition.format.video.nFrameWidth = in UpdateFrameSize() 167 rockchipInputPort->portDefinition.format.video in UpdateFrameSize() [all...] |
H A D | Rkvpu_OMX_VdecControl.c | 723 pInputPort->portDefinition.format.video.nFrameWidth = pInputPort->newPortDefinition.format.video.nFrameWidth; in Rkvpu_ResolutionUpdate() 724 pInputPort->portDefinition.format.video.nFrameHeight = pInputPort->newPortDefinition.format.video.nFrameHeight; in Rkvpu_ResolutionUpdate() 725 pInputPort->portDefinition.format.video.nStride = pInputPort->newPortDefinition.format.video.nStride; in Rkvpu_ResolutionUpdate() 726 pOutputPort->portDefinition.format.video.nStride = pInputPort->newPortDefinition.format.video.nStride; in Rkvpu_ResolutionUpdate() 727 pInputPort->portDefinition.format.video.nSliceHeight = pInputPort->newPortDefinition.format.video in Rkvpu_ResolutionUpdate() [all...] |
/third_party/mesa3d/src/gallium/frontends/omx/tizonia/ |
H A D | h264dinport.c | 71 OMX_VIDEO_PORTDEFINITIONTYPE * p_def = &(p_prc->out_port_def_.format.video); in h264d_inport_SetParameter() 75 if ((p_def->nFrameWidth == i_def->format.video.nFrameWidth) && in h264d_inport_SetParameter() 76 (p_def->nFrameHeight == i_def->format.video.nFrameHeight) && in h264d_inport_SetParameter() 77 (p_def->eCompressionFormat == i_def->format.video.eCompressionFormat)) in h264d_inport_SetParameter() 81 if (i_def->format.video.nStride == 0) in h264d_inport_SetParameter() 82 i_def->format.video.nStride = i_def->format.video.nFrameWidth; in h264d_inport_SetParameter() 83 if (i_def->format.video.nSliceHeight == 0) in h264d_inport_SetParameter() 84 i_def->format.video.nSliceHeight = i_def->format.video in h264d_inport_SetParameter() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/ |
H A D | codec_port.cpp | 59 portDef_.format.video.eCompressionFormat = CodingTypeHstToHdi(mime); in Config() 60 portDef_.format.video.eColorFormat = FormatHstToOmx(vdecFormat); in Config() 61 portDef_.format.video.nFrameHeight = AlignUp(height, HDI_VIDEO_ALIGNMENT); in Config() 62 portDef_.format.video.nSliceHeight = AlignUp(height, HDI_VIDEO_ALIGNMENT); in Config() 63 portDef_.format.video.nFrameWidth = AlignUp(width, HDI_VIDEO_WIDTH_ALIGNMENT); in Config() 64 portDef_.format.video.nStride = static_cast<int32_t>(AlignUp(width, HDI_VIDEO_ALIGNMENT)); in Config() 65 portDef_.format.video.xFramerate = frameRate << HDI_FRAME_RATE_MOVE; in Config() 66 MEDIA_LOG_D("frame_rate: " PUBLIC_LOG_U32, portDef_.format.video.xFramerate); in Config() 67 portDef_.format.video.nBitrate = static_cast<uint32_t>(bitRate); in Config()
|
/device/soc/rockchip/rk3568/hardware/omx_il/component/video/enc/ |
H A D | Rkvpu_OMX_Venc.c | 149 if ((outputPortDefine->format.video.nFrameWidth != inputPortDefine->format.video.nFrameWidth) || in UpdateFrameSize() 150 (outputPortDefine->format.video.nFrameHeight != inputPortDefine->format.video.nFrameHeight)) { in UpdateFrameSize() 152 outputPortDefine->format.video.nFrameWidth = inputPortDefine->format.video.nFrameWidth; in UpdateFrameSize() 153 outputPortDefine->format.video.nFrameHeight = inputPortDefine->format.video.nFrameHeight; in UpdateFrameSize() 154 width = outputPortDefine->format.video.nStride = inputPortDefine->format.video in UpdateFrameSize() [all...] |
H A D | Rkvpu_OMX_VencControl.c | 658 dst->format.video.nFrameWidth = src->format.video.nFrameWidth; in Rkvpu_PortFormatSet() 659 dst->format.video.nFrameHeight = src->format.video.nFrameHeight; in Rkvpu_PortFormatSet() 660 dst->format.video.nStride = src->format.video.nStride; in Rkvpu_PortFormatSet() 661 dst->format.video.nSliceHeight = src->format.video.nSliceHeight; in Rkvpu_PortFormatSet() 672 // reset input port video in Rkvpu_ResolutionUpdate() 1003 portFormat->xFramerate = portDefinition->format.video in Rkvpu_OMX_GetParameter() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/video/ |
H A D | video_property_test_ng.cpp | 41 #include "core/components/video/video_theme.h" 42 #include "core/components/video/video_utils.h" 52 #include "core/components_ng/pattern/video/video_full_screen_node.h" 53 #include "core/components_ng/pattern/video/video_full_screen_pattern.h" 54 #include "core/components_ng/pattern/video/video_layout_algorithm.h" 55 #include "core/components_ng/pattern/video/video_layout_property.h" 56 #include "core/components_ng/pattern/video/video_model_ng.h" 57 #include "core/components_ng/pattern/video/video_node.h" 58 #include "core/components_ng/pattern/video/video_pattern.h" 59 #include "core/components_ng/pattern/video/video_style 209 VideoModelNG video; HWTEST_F() local 253 VideoModelNG video; HWTEST_F() local 312 VideoModelNG video; HWTEST_F() local 369 VideoModelNG video; HWTEST_F() local 447 VideoModelNG video; HWTEST_F() local 537 VideoModelNG video; HWTEST_F() local 890 VideoModelNG video; HWTEST_F() local 944 VideoModelNG video; HWTEST_F() local 980 VideoModelNG video; HWTEST_F() local 1014 VideoModelNG video; HWTEST_F() local 1048 VideoModelNG video; HWTEST_F() local 1095 VideoModelNG video; HWTEST_F() local 1126 VideoModelNG video; HWTEST_F() local 1170 VideoModelNG video; HWTEST_F() local 1207 VideoModelNG video; HWTEST_F() local 1257 VideoModelNG video; HWTEST_F() local 1297 VideoModelNG video; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | dscreen_hidumper.cpp | 220 void DscreenHidumper::SaveFile(std::string file, const VideoData &video) in SaveFile() argument 223 std::string fileName = DUMP_FILE_PATH + "/" + file + std::to_string(video.width) + ")_height(" + in SaveFile() 224 std::to_string(video.height) + ")_" + video.format + ".jpg"; in SaveFile() 243 if ((static_cast<size_t>(fileSize) + video.size) < DUMP_FILE_MAX_SIZE) { in SaveFile() 245 ofs.write(reinterpret_cast<const char *>(video.data), video.size); in SaveFile()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/2.0/src/ |
H A D | av_sender_engine_adapter.cpp | 147 int32_t AVTransSenderAdapter::PushData(const VideoData &video) in PushData() argument 154 auto bufferData = transBuffer->WrapBufferData(video.data, video.size, video.size); in PushData() 157 bufferMata->SetMetaItem(AVTransTag::VIDEO_WIDTH, std::to_string(video.width)); in PushData() 158 bufferMata->SetMetaItem(AVTransTag::VIDEO_HEIGHT, std::to_string(video.height)); in PushData() 159 bufferMata->SetMetaItem(AVTransTag::VIDEO_PIXEL_FORMAT, video.format); in PushData() 160 bufferMata->SetMetaItem(AVTransTag::PRE_TIMESTAMP, std::to_string(video.timestamp)); in PushData()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_full_screen_node.cpp | 16 #include "core/components_ng/pattern/video/video_full_screen_node.h" 20 #include "core/components_ng/pattern/video/video_full_screen_pattern.h" 23 void VideoFullScreenNode::InitVideoFullScreenNode(const RefPtr<VideoNode>& video) in InitVideoFullScreenNode() argument 25 if (video->HasMediaColumnNode()) { in InitVideoFullScreenNode() 32 if (video->HasPreviewImageNode()) { in InitVideoFullScreenNode() 39 if (video->HasControllerRowNode()) { in InitVideoFullScreenNode()
|
H A D | video_pattern.cpp | 16 #include "core/components_ng/pattern/video/video_pattern.h" 32 #include "core/components/video/video_theme.h" 35 #include "core/components_ng/pattern/video/video_full_screen_node.h" 36 #include "core/components_ng/pattern/video/video_full_screen_pattern.h" 157 // Just return contentSize as the video frame area. in MeasureVideoContentLayout() 299 // When video is autoPlay, start playing the video when it is initial state. in UpdateMediaPlayerOnBg() 343 auto video = weak.Upgrade(); in PrepareMediaPlayer() 344 CHECK_NULL_VOID(video); in PrepareMediaPlayer() 345 auto targetPattern = video in PrepareMediaPlayer() 629 auto video = AceType::DynamicCast<VideoNode>(host); OnStartRenderFrameCb() local 1015 auto video = AceType::DynamicCast<VideoNode>(host); OnModifyDone() local 1052 auto video = AceType::DynamicCast<VideoNode>(host); OnModifyDone() local 1086 auto video = AceType::DynamicCast<VideoNode>(host); OnModifyDone() local 1117 auto video = AceType::DynamicCast<VideoNode>(host); OnModifyDone() local 1129 auto video = AceType::DynamicCast<VideoNode>(host); OnModifyDone() local 1184 auto video = AceType::DynamicCast<VideoNode>(host); OnModifyDone() local [all...] |
/third_party/mesa3d/src/gallium/frontends/omx/bellagio/ |
H A D | vid_dec.c | 239 strcpy(port->sPortParam.format.video.cMIMEType,"video/MPEG2"); in vid_dec_Constructor() 243 port->sPortParam.format.video.nFrameWidth = 176; in vid_dec_Constructor() 244 port->sPortParam.format.video.nFrameHeight = 144; in vid_dec_Constructor() 245 port->sPortParam.format.video.eCompressionFormat = OMX_VIDEO_CodingMPEG2; in vid_dec_Constructor() 257 port->sPortParam.format.video.nFrameWidth = 176; in vid_dec_Constructor() 258 port->sPortParam.format.video.nFrameHeight = 144; in vid_dec_Constructor() 259 port->sPortParam.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar; in vid_dec_Constructor() 313 unsigned framesize = def->format.video.nFrameWidth * def->format.video in vid_dec_SetParameter() [all...] |
H A D | vid_enc.c | 199 port->sPortParam.format.video.nFrameWidth = 176; in vid_enc_Constructor() 200 port->sPortParam.format.video.nFrameHeight = 144; in vid_enc_Constructor() 201 port->sPortParam.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar; in vid_enc_Constructor() 212 strcpy(port->sPortParam.format.video.cMIMEType,"video/H264"); in vid_enc_Constructor() 213 port->sPortParam.format.video.nFrameWidth = 176; in vid_enc_Constructor() 214 port->sPortParam.format.video.nFrameHeight = 144; in vid_enc_Constructor() 215 port->sPortParam.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC; in vid_enc_Constructor() 303 buf_templ.width0 = port->sPortParam.format.video.nFrameWidth; in enc_AllocateBackTexture() 304 buf_templ.height0 = port->sPortParam.format.video in enc_AllocateBackTexture() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | mmaldec.c | 321 if ((ret = ff_set_dimensions(avctx, format_out->es->video.crop.x + format_out->es->video.crop.width, in ffmal_update_format() 322 format_out->es->video.crop.y + format_out->es->video.crop.height)) < 0) in ffmal_update_format() 325 if (format_out->es->video.par.num && format_out->es->video.par.den) { in ffmal_update_format() 326 avctx->sample_aspect_ratio.num = format_out->es->video.par.num; in ffmal_update_format() 327 avctx->sample_aspect_ratio.den = format_out->es->video.par.den; in ffmal_update_format() 329 if (format_out->es->video.frame_rate.num && format_out->es->video in ffmal_update_format() [all...] |
H A D | omx.c | 471 in_port_params.format.video.pNativeRender = NULL; in omx_component_init() 472 in_port_params.format.video.bFlagErrorConcealment = OMX_FALSE; in omx_component_init() 473 in_port_params.format.video.eColorFormat = s->color_format; in omx_component_init() 478 in_port_params.format.video.nStride = s->stride; in omx_component_init() 479 in_port_params.format.video.nSliceHeight = s->plane_size; in omx_component_init() 480 in_port_params.format.video.nFrameWidth = avctx->width; in omx_component_init() 481 in_port_params.format.video.nFrameHeight = avctx->height; in omx_component_init() 483 in_port_params.format.video.xFramerate = (1LL << 16) * avctx->framerate.num / avctx->framerate.den; in omx_component_init() 485 in_port_params.format.video.xFramerate = (1LL << 16) * avctx->time_base.den / avctx->time_base.num; in omx_component_init() 491 s->stride = in_port_params.format.video in omx_component_init() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | video_element.cpp | 16 #include "core/components/video/video_element.h" 38 #include "core/components/video/render_texture.h" 47 #include "core/components/video/rosen_render_texture.h" 235 auto video = videoElement.Upgrade(); in RegisterMediaPlayerEvent() 236 if (video != nullptr) { in RegisterMediaPlayerEvent() 237 video->OnCurrentTimeChange(currentPos); in RegisterMediaPlayerEvent() 244 auto video = videoElement.Upgrade(); in RegisterMediaPlayerEvent() 245 if (video) { in RegisterMediaPlayerEvent() 246 video->OnPlayerStatus(status); in RegisterMediaPlayerEvent() 253 auto video in RegisterMediaPlayerEvent() 1208 auto video = AceType::MakeRefPtr<VideoComponent>(); OnPrepared() local [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_OHOS.cpp | 139 width = pPort->portDefinition.format.video.nFrameWidth; in Get_Video_HorAlign() 140 height = pPort->portDefinition.format.video.nFrameHeight; in Get_Video_HorAlign() 456 OMX_U32 width = pRockchipPort->portDefinition.format.video.nStride; in Get_Video_HorAlign() 457 OMX_U32 height = pRockchipPort->portDefinition.format.video.nSliceHeight; in Get_Video_HorAlign() 550 pRockchipPort->portDefinition.format.video.nFrameWidth, in Get_Video_HorAlign() 551 pRockchipPort->portDefinition.format.video.nFrameHeight, pVideoDec->codecProfile); in Get_Video_HorAlign() 554 pRockchipPort->portDefinition.format.video.nFrameHeight, pVideoDec->codecProfile); in Get_Video_HorAlign() 636 OMX_COLOR_FORMATTYPE eColorFormat = pOutputPort->portDefinition.format.video.eColorFormat; in Get_Video_HorAlign() 672 pInputPort->portDefinition.format.video.xFramerate, in Get_Video_HorAlign() 682 pInputPort->portDefinition.format.video in Get_Video_HorAlign() [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | video.mak | 59 FATE_BINK_VIDEO += fate-bink-video-b 60 fate-bink-video-b: CMD = framecrc -i $(TARGET_SAMPLES)/bink/RISE.BIK -frames 30 62 FATE_BINK_VIDEO += fate-bink-video-f 63 fate-bink-video-f: CMD = framecrc -i $(TARGET_SAMPLES)/bink/hol2br.bik 65 FATE_BINK_VIDEO += fate-bink-video-i 66 fate-bink-video-i: CMD = framecrc -i $(TARGET_SAMPLES)/bink/RazOnBull.bik -an 70 FATE_VIDEO-$(call FRAMECRC, BMV, BMV_VIDEO, SCALE_FILTER) += fate-bmv-video 71 fate-bmv-video: CMD = framecrc -i $(TARGET_SAMPLES)/bmv/SURFING-partial.BMV -pix_fmt rgb24 -an -vf scale 121 FATE_VIDEO-$(call FRAMECRC, DSICIN, DSICINVIDEO, SCALE_FILTER) += fate-delphine-cin-video 122 fate-delphine-cin-video [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/ |
H A D | session_coordinator.cpp | 150 auto video = coordinator_.lock(); variable 151 DP_CHECK_ERROR_RETURN_LOG(video == nullptr, "SessionCoordinator is nullptr."); 152 video->OnVideoProcessDone(userId, videoId, ipcFd); 157 auto video = coordinator_.lock(); variable 158 DP_CHECK_ERROR_RETURN_LOG(video == nullptr, "SessionCoordinator is nullptr."); 159 video->OnVideoError(userId, videoId, errorCode); 164 auto video = coordinator_.lock(); variable 165 DP_CHECK_ERROR_RETURN_LOG(video == nullptr, "SessionCoordinator is nullptr."); 166 video->OnStateChanged(userId, statusCode);
|