Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 125) sorted by relevance

12345

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dsvc_test.cc50 const vpx_codec_err_t res = in SetUp() local
52 EXPECT_EQ(VPX_CODEC_OK, res); in SetUp()
84 vpx_codec_err_t res = vpx_svc_init(NULL, &codec_, codec_iface_, &codec_enc_); in TEST_F() local
85 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F()
86 res = vpx_svc_init(&svc_, NULL, codec_iface_, &codec_enc_); in TEST_F()
87 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F()
88 res = vpx_svc_init(&svc_, &codec_, NULL, &codec_enc_); in TEST_F()
89 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F()
91 res = vpx_svc_init(&svc_, &codec_, codec_iface_, NULL); in TEST_F()
92 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, res); in TEST_F()
[all …]
Dencode_test_driver.cc39 vpx_codec_err_t res; in EncodeFrameInternal() local
48 res = vpx_codec_enc_init(&encoder_, CodecInterface(), &cfg_, in EncodeFrameInternal()
50 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in EncodeFrameInternal()
57 res = vpx_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal()
58 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in EncodeFrameInternal()
63 res = vpx_codec_encode(&encoder_, in EncodeFrameInternal()
66 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in EncodeFrameInternal()
70 const vpx_codec_err_t res = vpx_codec_encode(&encoder_, NULL, 0, 0, 0, in Flush() local
72 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); in Flush()
76 const vpx_codec_err_t res = codec_->DefaultEncoderConfig(&cfg_, 0); in InitializeConfig() local
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
Dvpx_decoder.c27 vpx_codec_err_t res; in vpx_codec_dec_init_ver() local
31 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_dec_init_ver()
34 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_dec_init_ver()
36 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_dec_init_ver()
39 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver()
41 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver()
44 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver()
47 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver()
49 res = VPX_CODEC_INCAPABLE; in vpx_codec_dec_init_ver()
57 res = VPX_CODEC_OK; in vpx_codec_dec_init_ver()
[all …]
Dvpx_encoder.c28 vpx_codec_err_t res; in vpx_codec_enc_init_ver() local
31 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_enc_init_ver()
33 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_enc_init_ver()
35 res = VPX_CODEC_ABI_MISMATCH; in vpx_codec_enc_init_ver()
37 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver()
39 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver()
42 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver()
45 res = VPX_CODEC_INCAPABLE; in vpx_codec_enc_init_ver()
52 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver()
54 if (res) { in vpx_codec_enc_init_ver()
[all …]
Dvpx_codec.c84 vpx_codec_err_t res; in vpx_codec_destroy() local
87 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_destroy()
89 res = VPX_CODEC_ERROR; in vpx_codec_destroy()
97 res = VPX_CODEC_OK; in vpx_codec_destroy()
100 return SAVE_STATUS(ctx, res); in vpx_codec_destroy()
112 vpx_codec_err_t res; in vpx_codec_control_() local
115 res = VPX_CODEC_INVALID_PARAM; in vpx_codec_control_()
117 res = VPX_CODEC_ERROR; in vpx_codec_control_()
121 res = VPX_CODEC_ERROR; in vpx_codec_control_()
128 res = entry->fn(ctx->priv->alg_priv, ctrl_id, ap); in vpx_codec_control_()
[all …]
/hardware/libhardware/modules/camera/
DExampleCamera.cpp182 int res; in initDevice() local
187 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice()
188 if (res) in initDevice()
189 return res; in initDevice()
192 res = setPreviewTemplate(base); in initDevice()
193 if (res) in initDevice()
194 return res; in initDevice()
195 res = setStillTemplate(base); in initDevice()
196 if (res) in initDevice()
197 return res; in initDevice()
[all …]
/hardware/libhardware/tests/camera2/
Dcamera2.cpp41 int res; in SetUpModule() local
44 res = hw_get_module(CAMERA_HARDWARE_MODULE_ID, in SetUpModule()
47 ASSERT_EQ(0, res) in SetUpModule()
48 << "Failure opening camera hardware module: " << res; in SetUpModule()
83 res = sCameraModule->get_camera_info(i, &info); in SetUpModule()
84 ASSERT_EQ(0, res) in SetUpModule()
141 int res; in openCameraDevice() local
144 res = cam_module->common.methods->open( in openCameraDevice()
148 if (res != NO_ERROR || device == NULL) { in openCameraDevice()
180 int res; in closeCameraDevice() local
[all …]
Dcamera2_utils.cpp139 status_t res; in waitForBuffer() local
141 res = notEmpty.waitRelative(mMutex,timeout); in waitForBuffer()
142 if (res != OK) return res; in waitForBuffer()
343 status_t res; in connectToDevice() local
355 res = d->ops->allocate_stream(d, in connectToDevice()
358 if (res != OK) { in connectToDevice()
360 __FUNCTION__, strerror(-res), res); in connectToDevice()
362 return res; in connectToDevice()
372 res = native_window_api_connect(mConsumerInterface.get(), in connectToDevice()
374 if (res != OK) { in connectToDevice()
[all …]
/hardware/intel/img/libdrm/tests/modeprint/
Dmodeprint.c90 int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t value) in printProperty() argument
142 int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uint32_t id) in printConnector() argument
181 printProperty(fd, res, props, connector->prop_values[i]); in printConnector()
190 int printEncoder(int fd, drmModeResPtr res, drmModeEncoderPtr encoder, uint32_t id) in printEncoder() argument
201 int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id) in printCrtc() argument
215 int printFrameBuffer(int fd, drmModeResPtr res, drmModeFBPtr fb) in printFrameBuffer() argument
229 int printRes(int fd, drmModeResPtr res) in printRes() argument
239 printf("count_connectors : %i\n", res->count_connectors); in printRes()
240 printf("count_encoders : %i\n", res->count_encoders); in printRes()
241 printf("count_crtcs : %i\n", res->count_crtcs); in printRes()
[all …]
/hardware/invensense/65xx/libsensors_iio/
DMPLSensor.cpp264 int res; in MPLSensor() local
900 int res, fd; in loadDMP() local
1077 int res = 0; in setGyroInitialState() local
1082 res = errno; in setGyroInitialState()
1085 mpu.gyro_rate, strerror(res), res); in setGyroInitialState()
1086 return res; in setGyroInitialState()
1088 res = write_attribute_sensor(fd, HW_GYRO_RATE_HZ); in setGyroInitialState()
1089 if(res < 0) { in setGyroInitialState()
1092 return res; in setGyroInitialState()
1127 int res = -1; in onDmp() local
[all …]
DMPLSupport.cpp148 int res=0; in read_sysfs_int() local
154 res = errno; in read_sysfs_int()
155 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int()
158 return -res; in read_sysfs_int()
163 int res=0; in read_sysfs_int64() local
169 res = errno; in read_sysfs_int64()
170 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int64()
173 return -res; in read_sysfs_int64()
191 int res=0; in write_sysfs_int() local
197 res = errno; in write_sysfs_int()
[all …]
DCompassSensor.IIO.primary.cpp167 int res = errno; in enable_iio_sysfs() local
171 compass, iio_device_node, strerror(res), res); in enable_iio_sysfs()
248 int res = 0; in enable() local
251 res = masterEnable(0); in enable()
252 if (res < 0) { in enable()
253 return res; in enable()
259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable()
262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable()
265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable()
267 res = masterEnable(en); in enable()
[all …]
/hardware/invensense/6515/libsensors_iio/
DMPLSensor.cpp141 int res; in MPLSensor() local
357 res = write_sysfs_int(mpu.smd_threshold, motionThreshold); in MPLSensor()
363 res = write_sysfs_int(mpu.pedometer_step_thresh, StepCounterThreshold); in MPLSensor()
810 int res, fd; in loadDMP() local
1019 int res = -1; in onDmp() local
1045 res = 0; //Indicate write successful in onDmp()
1062 res = -1; in onDmp()
1068 res = 0; //DMP already set as requested in onDmp()
1076 return res; in onDmp()
1081 int res = 0; in setDmpFeature() local
[all …]
DMPLSupport.cpp148 int res=0; in read_sysfs_int() local
154 res = errno; in read_sysfs_int()
155 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int()
158 return -res; in read_sysfs_int()
163 int res=0; in read_sysfs_int64() local
169 res = errno; in read_sysfs_int64()
170 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int64()
173 return -res; in read_sysfs_int64()
191 int res=0; in write_sysfs_int() local
197 res = errno; in write_sysfs_int()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dcpp_bindings.cpp552 int res = create(NL80211_CMD_VENDOR); in create() local
553 if (res < 0) { in create()
554 return res; in create()
557 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create()
558 if (res < 0) { in create()
559 return res; in create()
562 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create()
563 if (res < 0) { in create()
564 return res; in create()
568 res = set_iface_id(mIface); in create()
[all …]
/hardware/invensense/60xx/libsensors_iio/
DMPLSupport.cpp140 int res=0; in read_sysfs_int() local
147 res = -EINVAL; in read_sysfs_int()
151 res = -errno; in read_sysfs_int()
152 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int()
154 return res; in read_sysfs_int()
159 int res = 0; in write_sysfs_int() local
166 res = -errno; in write_sysfs_int()
167 LOGE("HAL:ERR open file %s to write with error %d", filename, res); in write_sysfs_int()
168 return res; in write_sysfs_int()
176 res = -errno; in write_sysfs_int()
[all …]
DMPLSensor.cpp184 int res; in MPLSensor() local
561 int res, fd; in loadDMP() local
588 res = inv_load_dmp(fptr); in loadDMP()
589 if(res < 0) { in loadDMP()
708 int res = 0; in setGyroInitialState() local
713 res = errno; in setGyroInitialState()
716 mpu.gyro_fifo_rate, strerror(res), res); in setGyroInitialState()
717 return res; in setGyroInitialState()
719 res = write_attribute_sensor(fd, HW_GYRO_RATE_HZ); in setGyroInitialState()
720 if(res < 0) { in setGyroInitialState()
[all …]
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dcpp_bindings.cpp569 int res = create(NL80211_CMD_VENDOR); in create() local
570 if (res < 0) { in create()
571 return res; in create()
574 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create()
575 if (res < 0) { in create()
576 return res; in create()
579 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create()
580 if (res < 0) { in create()
581 return res; in create()
585 res = set_iface_id(mIface); in create()
[all …]
/hardware/intel/img/libdrm/libdrm/
Dxf86drmMode.c138 struct drm_mode_card_res res; in drmModeGetResources() local
141 memset(&res, 0, sizeof(struct drm_mode_card_res)); in drmModeGetResources()
143 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources()
146 if (res.count_fbs) in drmModeGetResources()
147 res.fb_id_ptr = VOID2U64(drmMalloc(res.count_fbs*sizeof(uint32_t))); in drmModeGetResources()
148 if (res.count_crtcs) in drmModeGetResources()
149 res.crtc_id_ptr = VOID2U64(drmMalloc(res.count_crtcs*sizeof(uint32_t))); in drmModeGetResources()
150 if (res.count_connectors) in drmModeGetResources()
151 res.connector_id_ptr = VOID2U64(drmMalloc(res.count_connectors*sizeof(uint32_t))); in drmModeGetResources()
152 if (res.count_encoders) in drmModeGetResources()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c73 int res; in inv_create_mutex() local
78 res = pthread_mutex_init(pm, NULL); in inv_create_mutex()
79 if(res == -1) { in inv_create_mutex()
97 int res; in inv_lock_mutex() local
100 res = pthread_mutex_lock(pm); in inv_lock_mutex()
101 if(res == -1) in inv_lock_mutex()
115 int res; in inv_unlock_mutex() local
118 res = pthread_mutex_unlock(pm); in inv_unlock_mutex()
119 if(res == -1) in inv_unlock_mutex()
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c73 int res; in inv_create_mutex() local
78 res = pthread_mutex_init(pm, NULL); in inv_create_mutex()
79 if(res == -1) { in inv_create_mutex()
97 int res; in inv_lock_mutex() local
100 res = pthread_mutex_lock(pm); in inv_lock_mutex()
101 if(res == -1) in inv_lock_mutex()
115 int res; in inv_unlock_mutex() local
118 res = pthread_mutex_unlock(pm); in inv_unlock_mutex()
119 if(res == -1) in inv_unlock_mutex()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c73 int res; in inv_create_mutex() local
78 res = pthread_mutex_init(pm, NULL); in inv_create_mutex()
79 if(res == -1) { in inv_create_mutex()
97 int res; in inv_lock_mutex() local
100 res = pthread_mutex_lock(pm); in inv_lock_mutex()
101 if(res == -1) in inv_lock_mutex()
115 int res; in inv_unlock_mutex() local
118 res = pthread_mutex_unlock(pm); in inv_unlock_mutex()
119 if(res == -1) in inv_unlock_mutex()
/hardware/invensense/60xx/mlsdk/platform/linux/
Dmlos_linux.c86 int res; in inv_create_mutex() local
91 res = pthread_mutex_init(pm, NULL); in inv_create_mutex()
92 if(res == -1) { in inv_create_mutex()
110 int res; in inv_lock_mutex() local
113 res = pthread_mutex_lock(pm); in inv_lock_mutex()
114 if(res == -1) in inv_lock_mutex()
128 int res; in inv_unlock_mutex() local
131 res = pthread_mutex_unlock(pm); in inv_unlock_mutex()
132 if(res == -1) in inv_unlock_mutex()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
Dvp8_dx_iface.c123 vpx_codec_err_t res = VPX_CODEC_OK; in vp8_init() local
141 res = vpx_mmap_alloc(&mmap); in vp8_init()
142 if (res != VPX_CODEC_OK) return res; in vp8_init()
172 res = VPX_CODEC_INVALID_PARAM; in vp8_init()
175 return res; in vp8_init()
199 vpx_codec_err_t res = VPX_CODEC_OK; in vp8_peek_si_internal() local
203 res = VPX_CODEC_INVALID_PARAM; in vp8_peek_si_internal()
229 res = VPX_CODEC_UNSUP_BITSTREAM; in vp8_peek_si_internal()
236 res = VPX_CODEC_UNSUP_BITSTREAM; in vp8_peek_si_internal()
240 res = VPX_CODEC_UNSUP_BITSTREAM; in vp8_peek_si_internal()
[all …]
/hardware/intel/img/libdrm/libdrm/nouveau/
Dnouveau_resource.c46 struct nouveau_resource **res) in nouveau_resource_alloc() argument
50 if (!heap || !size || !res || *res) in nouveau_resource_alloc()
72 *res = r; in nouveau_resource_alloc()
83 nouveau_resource_free(struct nouveau_resource **res) in nouveau_resource_free() argument
87 if (!res || !*res) in nouveau_resource_free()
89 r = *res; in nouveau_resource_free()
90 *res = NULL; in nouveau_resource_free()

12345