Home
last modified time | relevance | path

Searched refs:omx (Results 1 – 25 of 82) sorted by relevance

1234

/hardware/interfaces/media/omx/1.0/vts/functional/master/
DVtsHalMediaOmxV1_0TargetMasterTest.cpp33 using ::android::hardware::media::omx::V1_0::IOmx;
34 using ::android::hardware::media::omx::V1_0::IOmxObserver;
35 using ::android::hardware::media::omx::V1_0::IOmxNode;
36 using ::android::hardware::media::omx::V1_0::IOmxStore;
37 using ::android::hardware::media::omx::V1_0::Message;
38 using ::android::hardware::media::omx::V1_0::CodecBuffer;
39 using ::android::hardware::media::omx::V1_0::PortMode;
64 omx = nullptr; in SetUp()
65 omx = omxStore->getOmx(gEnv->getInstance()); in SetUp()
66 ASSERT_NE(omx, nullptr); in SetUp()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/video/
Dmedia_video_hidl_test_common.cpp32 using ::android::hardware::media::omx::V1_0::IOmx;
33 using ::android::hardware::media::omx::V1_0::IOmxObserver;
34 using ::android::hardware::media::omx::V1_0::IOmxNode;
35 using ::android::hardware::media::omx::V1_0::Message;
36 using ::android::hardware::media::omx::V1_0::CodecBuffer;
37 using ::android::hardware::media::omx::V1_0::PortMode;
57 android::hardware::media::omx::V1_0::Status status; in enumerateProfileAndLevel()
66 if (status != ::android::hardware::media::omx::V1_0::Status::OK) break; in enumerateProfileAndLevel()
82 android::hardware::media::omx::V1_0::Status status; in setupRAWPort()
87 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupRAWPort()
[all …]
DVtsHalMediaOmxV1_0TargetVideoDecTest.cpp32 using ::android::hardware::media::omx::V1_0::IOmx;
33 using ::android::hardware::media::omx::V1_0::IOmxObserver;
34 using ::android::hardware::media::omx::V1_0::IOmxNode;
35 using ::android::hardware::media::omx::V1_0::Message;
36 using ::android::hardware::media::omx::V1_0::CodecBuffer;
37 using ::android::hardware::media::omx::V1_0::PortMode;
72 android::hardware::media::omx::V1_0::Status status; in SetUp()
73 omx = Super::getService<IOmx>(gEnv->getInstance()); in SetUp()
74 ASSERT_NE(omx, nullptr); in SetUp()
82 EXPECT_TRUE(omx->allocateNode( in SetUp()
[all …]
DVtsHalMediaOmxV1_0TargetVideoEncTest.cpp42 using ::android::hardware::media::omx::V1_0::IGraphicBufferSource;
43 using ::android::hardware::media::omx::V1_0::IOmxBufferSource;
44 using ::android::hardware::media::omx::V1_0::IOmx;
45 using ::android::hardware::media::omx::V1_0::IOmxObserver;
46 using ::android::hardware::media::omx::V1_0::IOmxNode;
47 using ::android::hardware::media::omx::V1_0::Message;
48 using ::android::hardware::media::omx::V1_0::CodecBuffer;
49 using ::android::hardware::media::omx::V1_0::PortMode;
86 android::hardware::media::omx::V1_0::Status status; in SetUp()
87 omx = Super::getService<IOmx>(gEnv->getInstance()); in SetUp()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/component/
DVtsHalMediaOmxV1_0TargetComponentTest.cpp32 using ::android::hardware::media::omx::V1_0::IOmx;
33 using ::android::hardware::media::omx::V1_0::IOmxObserver;
34 using ::android::hardware::media::omx::V1_0::IOmxNode;
35 using ::android::hardware::media::omx::V1_0::Message;
36 using ::android::hardware::media::omx::V1_0::CodecBuffer;
37 using ::android::hardware::media::omx::V1_0::PortMode;
68 android::hardware::media::omx::V1_0::Status status; in SetUp()
69 omx = Super::getService<IOmx>(gEnv->getInstance()); in SetUp()
70 ASSERT_NE(omx, nullptr); in SetUp()
75 EXPECT_TRUE(omx->allocateNode( in SetUp()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/audio/
Dmedia_audio_hidl_test_common.cpp32 using ::android::hardware::media::omx::V1_0::IOmx;
33 using ::android::hardware::media::omx::V1_0::IOmxObserver;
34 using ::android::hardware::media::omx::V1_0::IOmxNode;
35 using ::android::hardware::media::omx::V1_0::Message;
36 using ::android::hardware::media::omx::V1_0::CodecBuffer;
37 using ::android::hardware::media::omx::V1_0::PortMode;
55 android::hardware::media::omx::V1_0::Status status; in enumerateProfile()
63 if (status != ::android::hardware::media::omx::V1_0::Status::OK) break; in enumerateProfile()
79 android::hardware::media::omx::V1_0::Status status; in setupPCMPort()
81 EXPECT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); in setupPCMPort()
[all …]
DVtsHalMediaOmxV1_0TargetAudioEncTest.cpp32 using ::android::hardware::media::omx::V1_0::IOmx;
33 using ::android::hardware::media::omx::V1_0::IOmxObserver;
34 using ::android::hardware::media::omx::V1_0::IOmxNode;
35 using ::android::hardware::media::omx::V1_0::Message;
36 using ::android::hardware::media::omx::V1_0::CodecBuffer;
37 using ::android::hardware::media::omx::V1_0::PortMode;
71 android::hardware::media::omx::V1_0::Status status; in SetUp()
72 omx = Super::getService<IOmx>(gEnv->getInstance()); in SetUp()
73 ASSERT_NE(omx, nullptr); in SetUp()
81 EXPECT_TRUE(omx->allocateNode( in SetUp()
[all …]
DVtsHalMediaOmxV1_0TargetAudioDecTest.cpp32 using ::android::hardware::media::omx::V1_0::IOmx;
33 using ::android::hardware::media::omx::V1_0::IOmxObserver;
34 using ::android::hardware::media::omx::V1_0::IOmxNode;
35 using ::android::hardware::media::omx::V1_0::Message;
36 using ::android::hardware::media::omx::V1_0::CodecBuffer;
37 using ::android::hardware::media::omx::V1_0::PortMode;
71 android::hardware::media::omx::V1_0::Status status; in SetUp()
72 omx = Super::getService<IOmx>(gEnv->getInstance()); in SetUp()
73 ASSERT_NE(omx, nullptr); in SetUp()
81 EXPECT_TRUE(omx->allocateNode( in SetUp()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/common/
Dmedia_hidl_test_common.cpp43 using ::android::hardware::media::omx::V1_0::IOmx;
44 using ::android::hardware::media::omx::V1_0::IOmxObserver;
45 using ::android::hardware::media::omx::V1_0::IOmxNode;
46 using ::android::hardware::media::omx::V1_0::Message;
47 using ::android::hardware::media::omx::V1_0::CodecBuffer;
48 using ::android::hardware::media::omx::V1_0::PortMode;
49 using ::android::hardware::media::omx::V1_0::Status;
66 Return<android::hardware::media::omx::V1_0::Status> setRole( in setRole()
73 Return<android::hardware::media::omx::V1_0::Status> setPortBufferSize( in setPortBufferSize()
75 android::hardware::media::omx::V1_0::Status status; in setPortBufferSize()
[all …]
Dmedia_hidl_test_common.h90 inline android::hardware::media::omx::V1_0::Status toStatus( in toStatus()
92 return static_cast<android::hardware::media::omx::V1_0::Status>(l); in toStatus()
111 android::hardware::media::omx::V1_0::CodecBuffer omxBuffer;
139 android::hardware::media::omx::V1_0::Status dequeueMessage(
149 android::hardware::media::omx::V1_0::Message::Type::EVENT) {
160 return ::android::hardware::media::omx::V1_0::Status::OK;
161 } else if (it->type == android::hardware::media::omx::V1_0::
176 } else if (it->type == android::hardware::media::omx::V1_0::
223 Return<android::hardware::media::omx::V1_0::Status> getParam( in getParam()
225 android::hardware::media::omx::V1_0::Status status; in getParam()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/
DREADME.md4 … is not restricted solely to testing omx hal @ 1.0 API but also test to omx core functionality and…
7 Functionality of master is to enumerate all the omx components (and the roles it supports) availabl…
12omx compatible components. For instance, port enabling/disabling, enumerating port formats, state …
17 …o on. These tests are aimed towards testing the plugin that connects the component to the omx core.
26 …o on. These tests are aimed towards testing the plugin that connects the component to the omx core.
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_v4l2.cpp197 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
200 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
201 pfds[1].fd = omx->m_poll_efd; in async_message_thread()
205 while (!omx->async_thread_force_stop) { in async_message_thread()
223 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
234 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
250 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
267 omx->dpb_bit_depth = ptr[2]; in async_message_thread()
269 omx->m_progressive = ptr[3]; in async_message_thread()
271 omx->m_color_space = (ptr[4] == MSM_VIDC_BT2020 ? (omx_vdec::BT2020): in async_message_thread()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
Domx_vdec.cpp167 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
176 error_code = ioctl ( omx->drv_ctx.video_driver_fd,VDEC_IOCTL_GET_NEXT_MSG, in async_message_thread()
187 else if (omx->async_message_process(input,&vdec_msg) < 0) in async_message_thread()
198 omx_vdec* omx = reinterpret_cast<omx_vdec*>(input); in message_thread() local
207 n = read(omx->m_pipe_in, &id, 1); in message_thread()
216 omx->process_event_cb(omx, id); in message_thread()
228 void post_message(omx_vdec *omx, unsigned char id) in post_message() argument
231 DEBUG_PRINT_LOW("omx_vdec: post_message %d pipe out%d\n", id,omx->m_pipe_out); in post_message()
232 ret_value = write(omx->m_pipe_out, &id, 1); in post_message()
6763 omx_vdec* omx = NULL; in async_message_process() local
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp138 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
140 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
158 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
174 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
190 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
203 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
212 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
219 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
231 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
238 omx->buf_ref_remove(ptr[0], ptr[1]); in async_message_thread()
[all …]
Domx_vdec_msm8974.cpp149 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
151 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
169 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
187 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
203 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
216 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
225 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
232 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
244 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
253 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
[all …]
Domx_vdec_hevc.cpp147 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
149 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
166 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
182 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
198 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
211 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
220 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
229 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
236 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
248 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
[all …]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp132 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
134 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
153 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
169 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
185 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
198 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
207 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
214 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
226 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
234 omx->buf_ref_remove(ptr[0], ptr[1]); in async_message_thread()
[all …]
Domx_vdec_hevc.cpp143 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
145 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
162 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
178 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
194 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
207 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
216 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
225 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
232 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
244 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
[all …]
Domx_vdec_v4l2.cpp161 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
164 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
165 pfds[1].fd = omx->m_poll_efd; in async_message_thread()
169 while (!omx->async_thread_force_stop) { in async_message_thread()
187 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
205 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
221 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
238 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
246 omx->dpb_bit_depth = dqevent.u.data[0]; in async_message_thread()
248 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
[all …]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_v4l2.cpp176 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input); in async_message_thread() local
179 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread()
180 pfds[1].fd = omx->m_poll_efd; in async_message_thread()
184 while (!omx->async_thread_force_stop) { in async_message_thread()
202 v4l2_buf.length = omx->drv_ctx.num_planes; in async_message_thread()
213 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
229 if (omx->async_message_process(input,&vdec_msg) < 0) { in async_message_thread()
247 omx->dpb_bit_depth = ptr[3]; in async_message_thread()
251 omx->m_progressive = ptr[4]; in async_message_thread()
256 omx->m_color_space = omx_vdec::BT2020; in async_message_thread()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
Domx_video_encoder.cpp1606 omx_video* omx = NULL; in async_message_process() local
1618 omx = reinterpret_cast<omx_video*>(context); in async_message_process()
1624 omx->omx_report_error(); in async_message_process()
1633 omx->post_event (NULL,m_sVenc_msg->statuscode,\ in async_message_process()
1638 omx->post_event (NULL,m_sVenc_msg->statuscode,\ in async_message_process()
1643 omx->post_event (NULL,m_sVenc_msg->statuscode,\ in async_message_process()
1648 omx->post_event (NULL,m_sVenc_msg->statuscode,\ in async_message_process()
1655 omx->post_event (NULL,m_sVenc_msg->statuscode,\ in async_message_process()
1659 omx->post_event (NULL,m_sVenc_msg->statuscode,\ in async_message_process()
1667 (((OMX_U32)(omxhdr - omx->m_inp_mem_ptr) > omx->m_sInPortDef.nBufferCountActual) && in async_message_process()
[all …]
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp2406 omx_video* omx = NULL; in async_message_process() local
2418 omx = reinterpret_cast<omx_video*>(context); in async_message_process()
2424 omx->post_event (0, m_sVenc_msg->statuscode,\ in async_message_process()
2427 omx->post_event (0, m_sVenc_msg->statuscode,\ in async_message_process()
2436 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2440 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2444 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2448 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2453 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2457 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp2191 omx_video* omx = NULL; in async_message_process() local
2202 omx = reinterpret_cast<omx_video*>(context); in async_message_process()
2208 omx->omx_report_hw_overload(); in async_message_process()
2210 omx->omx_report_error(); in async_message_process()
2217 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2221 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2225 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2229 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2234 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2238 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
[all …]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp2643 omx_video* omx = NULL; in async_message_process() local
2655 omx = reinterpret_cast<omx_video*>(context); in async_message_process()
2661 omx->post_event (0, m_sVenc_msg->statuscode,\ in async_message_process()
2664 omx->post_event (0, m_sVenc_msg->statuscode,\ in async_message_process()
2673 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2677 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2681 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2685 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2690 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2694 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
[all …]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp2476 omx_video* omx = NULL; in async_message_process() local
2487 omx = reinterpret_cast<omx_video*>(context); in async_message_process()
2493 omx->post_event (0, m_sVenc_msg->statuscode,\ in async_message_process()
2496 omx->post_event (0, m_sVenc_msg->statuscode,\ in async_message_process()
2505 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2509 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2513 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2517 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2522 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
2526 omx->post_event (0,m_sVenc_msg->statuscode,\ in async_message_process()
[all …]

1234