diff options
author | Rakesh Raghava <rakeshraghava@google.com> | 2022-11-15 18:30:58 +0000 |
---|---|---|
committer | Rakesh Raghava <rakeshraghava@google.com> | 2022-11-15 18:33:35 +0000 |
commit | f5f331a8c78fe2223de7885e7a9fda71eb1e7787 (patch) | |
tree | c600305cf96658602ee73482cc6165fab759a1c0 /service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/VideoStreamGraphRtpTx.h | |
parent | 5c60b21cc38bfac7887f51588e2323d686e84efb (diff) | |
download | ImsMedia-f5f331a8c78fe2223de7885e7a9fda71eb1e7787.tar.gz |
ImsMedia update to support presubmit
- core, config, protocol submodule static libs are created
- libimsmedia shared lib accesses these static libs
- ImsMediaNativeTests accesses these static libs
- Folder structure updated accordingly
Bug: 258455118
Test: Verified MO and MT calls and atest ImsMediaNativeTests
Change-Id: I06e98c7d3dded536ec8a78fc332f9213f4279269
Diffstat (limited to 'service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/VideoStreamGraphRtpTx.h')
-rw-r--r-- | service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/VideoStreamGraphRtpTx.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/VideoStreamGraphRtpTx.h b/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/VideoStreamGraphRtpTx.h new file mode 100644 index 00000000..b60916bc --- /dev/null +++ b/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/VideoStreamGraphRtpTx.h @@ -0,0 +1,41 @@ +/** + * Copyright (C) 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VIDEO_STREAM_GRAPH_RTP_TX_H +#define VIDEO_STREAM_GRAPH_RTP_TX_H + +#include <ImsMediaDefine.h> +#include <VideoStreamGraph.h> +#include <android/native_window.h> + +class VideoStreamGraphRtpTx : public VideoStreamGraph +{ +public: + VideoStreamGraphRtpTx(BaseSessionCallback* callback, int localFd = 0); + virtual ~VideoStreamGraphRtpTx(); + virtual ImsMediaResult create(RtpConfig* config); + virtual ImsMediaResult update(RtpConfig* config); + virtual ImsMediaResult start(); + void setSurface(ANativeWindow* surface); + virtual bool OnEvent(int32_t type, uint64_t param1, uint64_t param2); + +private: + ImsMediaResult createPreviewMode(RtpConfig* config); + ANativeWindow* mSurface; + int32_t mVideoMode; +}; + +#endif
\ No newline at end of file |