Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 81) sorted by relevance

1234

/hardware/intel/common/libva/test/decode/
Dtinyjpeg.c155 static int build_default_huffman_tables(struct jdec_private *priv) in build_default_huffman_tables() argument
158 if (priv->default_huffman_table_initialized) in build_default_huffman_tables()
162 priv->HTDC_valid[i] = 1; in build_default_huffman_tables()
163 memcpy(priv->HTDC[i].bits, default_huffman_table_param.huffman_table[i].num_dc_codes, 16); in build_default_huffman_tables()
164 memcpy(priv->HTDC[i].values, default_huffman_table_param.huffman_table[i].dc_values, 16); in build_default_huffman_tables()
165 priv->HTAC_valid[i] = 1; in build_default_huffman_tables()
166 memcpy(priv->HTAC[i].bits, default_huffman_table_param.huffman_table[i].num_ac_codes, 16); in build_default_huffman_tables()
167 memcpy(priv->HTAC[i].values, default_huffman_table_param.huffman_table[i].ac_values, 256); in build_default_huffman_tables()
169 priv->default_huffman_table_initialized = 1; in build_default_huffman_tables()
199 static int parse_DQT(struct jdec_private *priv, const unsigned char *stream) in parse_DQT() argument
[all …]
Dtinyjpeg.h57 void tinyjpeg_free(struct jdec_private *priv);
59 int tinyjpeg_parse_header(struct jdec_private *priv, const unsigned char *buf, unsigned int size);
60 int tinyjpeg_decode(struct jdec_private *priv);
61 const char *tinyjpeg_get_errorstring(struct jdec_private *priv);
62 void tinyjpeg_get_size(struct jdec_private *priv, unsigned int *width, unsigned int *height);
Dtinyjpeg-internal.h83 typedef void (*decode_MCU_fct) (struct jdec_private *priv);
84 typedef void (*convert_colorspace_fct) (struct jdec_private *priv);
/hardware/intel/common/libmix/mix_video/src/
Dmixvideo.c52 #define CHECK_INIT(mix, priv) \ argument
60 priv = MIX_VIDEO_PRIVATE(mix); \
61 if (!priv->initialized) { \
66 #define CHECK_INIT_CONFIG(mix, priv) \ argument
67 CHECK_INIT(mix, priv); \
68 if (!priv->configured) { \
132 MixVideoPrivate *priv = MIX_VIDEO_GET_PRIVATE(self); in mix_video_init() local
135 self->context = priv; in mix_video_init()
142 mix_video_private_initialize(priv); in mix_video_init()
195 void mix_video_private_initialize(MixVideoPrivate* priv) { in mix_video_private_initialize() argument
[all …]
Dmixvideorenderparams.c38 MixVideoRenderParamsPrivate *priv = MIX_VIDEORENDERPARAMS_GET_PRIVATE(self); in mix_videorenderparams_init() local
39 priv->va_cliprects = NULL; in mix_videorenderparams_init()
40 self->reserved = priv; in mix_videorenderparams_init()
86 MixVideoRenderParamsPrivate *priv = in mix_videorenderparams_finalize() local
94 if (priv->va_cliprects) { in mix_videorenderparams_finalize()
96 priv->va_cliprects = NULL; in mix_videorenderparams_finalize()
325 MixVideoRenderParamsPrivate *priv = NULL; in mix_videorenderparams_set_clipping_rects() local
328 priv = (MixVideoRenderParamsPrivate *) obj->reserved; in mix_videorenderparams_set_clipping_rects()
337 if(priv->va_cliprects) { in mix_videorenderparams_set_clipping_rects()
338 g_free(priv->va_cliprects); in mix_videorenderparams_set_clipping_rects()
[all …]
Dmixvideoframe.c46 MixVideoFramePrivate *priv = MIX_VIDEOFRAME_GET_PRIVATE(self); in mix_videoframe_init() local
47 self->reserved1 = priv; in mix_videoframe_init()
53 priv -> pool = NULL; in mix_videoframe_init()
56 priv -> is_skipped = FALSE; in mix_videoframe_init()
57 priv -> real_frame = NULL; in mix_videoframe_init()
59 g_static_rec_mutex_init (&priv -> lock); in mix_videoframe_init()
89 MixVideoFramePrivate *priv = VIDEOFRAME_PRIVATE(self); in mix_videoframe_finalize() local
91 g_static_rec_mutex_free (&priv->lock); in mix_videoframe_finalize()
103 MixVideoFramePrivate *priv = VIDEOFRAME_PRIVATE(obj); in mix_videoframe_ref() local
104 g_static_rec_mutex_lock(&priv->lock); in mix_videoframe_ref()
[all …]
Dmixbuffer.c38 MixBufferPrivate *priv = MIX_BUFFER_GET_PRIVATE(self); in mix_buffer_init() local
39 self->reserved = priv; in mix_buffer_init()
41 priv->pool = NULL; in mix_buffer_init()
195 MixBufferPrivate *priv = (MixBufferPrivate *) obj->reserved; in mix_buffer_set_pool() local
196 priv->pool = pool; in mix_buffer_set_pool()
211 MixBufferPrivate *priv = (MixBufferPrivate *) obj->reserved; in mix_buffer_unref() local
212 g_return_if_fail(priv->pool != NULL); in mix_buffer_unref()
217 mix_bufferpool_put(priv->pool, obj); in mix_buffer_unref()
Dmixvideo_private.h53 void mix_video_private_initialize(MixVideoPrivate* priv);
54 void mix_video_private_cleanup(MixVideoPrivate* priv);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
Dvpx_encoder.c49 ctx->priv = NULL; in vpx_codec_enc_init_ver()
55 ctx->err_detail = ctx->priv ? ctx->priv->err_detail : NULL; in vpx_codec_enc_init_ver()
59 if (ctx->priv) in vpx_codec_enc_init_ver()
60 ctx->priv->iface = ctx->iface; in vpx_codec_enc_init_ver()
121 ctx->priv = NULL; in vpx_codec_enc_init_multi_ver()
128 ctx->priv ? ctx->priv->err_detail : NULL; in vpx_codec_enc_init_multi_ver()
142 if (ctx->priv) in vpx_codec_enc_init_multi_ver()
143 ctx->priv->iface = ctx->iface; in vpx_codec_enc_init_multi_ver()
214 else if (!ctx->iface || !ctx->priv) in vpx_codec_encode()
219 unsigned int num_enc = ctx->priv->enc.total_encoders; in vpx_codec_encode()
[all …]
Dvpx_decoder.c54 ctx->priv = NULL; in vpx_codec_dec_init_ver()
63 ctx->err_detail = ctx->priv ? ctx->priv->err_detail : NULL; in vpx_codec_dec_init_ver()
67 if (ctx->priv) in vpx_codec_dec_init_ver()
68 ctx->priv->iface = ctx->iface; in vpx_codec_dec_init_ver()
103 else if (!ctx->iface || !ctx->priv) in vpx_codec_get_stream_info()
110 res = ctx->iface->dec.get_si(ctx->priv->alg_priv, si); in vpx_codec_get_stream_info()
128 else if (!ctx->iface || !ctx->priv) in vpx_codec_decode()
131 res = ctx->iface->dec.decode(ctx->priv->alg_priv, data, data_sz, in vpx_codec_decode()
142 if (!ctx || !iter || !ctx->iface || !ctx->priv) in vpx_codec_get_frame()
145 img = ctx->iface->dec.get_frame(ctx->priv->alg_priv, iter); in vpx_codec_get_frame()
[all …]
Dvpx_codec.c77 return ctx->priv ? ctx->priv->err_detail : ctx->err_detail; in vpx_codec_error_detail()
88 else if (!ctx->iface || !ctx->priv) in vpx_codec_destroy()
91 if (ctx->priv->alg_priv) in vpx_codec_destroy()
92 ctx->iface->destroy(ctx->priv->alg_priv); in vpx_codec_destroy()
96 ctx->priv = NULL; in vpx_codec_destroy()
116 else if (!ctx->iface || !ctx->priv || !ctx->iface->ctrl_maps) in vpx_codec_control_()
128 res = entry->fn(ctx->priv->alg_priv, ctrl_id, ap); in vpx_codec_control_()
145 mmap->priv = calloc(1, mmap->sz + align); in vpx_mmap_alloc()
147 mmap->priv = malloc(mmap->sz + align); in vpx_mmap_alloc()
149 if (mmap->priv == NULL) return VPX_CODEC_MEM_ERROR; in vpx_mmap_alloc()
[all …]
/hardware/libhardware/modules/tv_input/
Dtv_input.cpp63 tv_input_private_t* priv = (tv_input_private_t*)dev; in tv_input_initialize() local
64 if (priv->callback != NULL) { in tv_input_initialize()
68 priv->callback = callback; in tv_input_initialize()
69 priv->callback_data = data; in tv_input_initialize()
105 tv_input_private_t* priv = (tv_input_private_t*)dev; in tv_input_device_close() local
106 if (priv) { in tv_input_device_close()
107 free(priv); in tv_input_device_close()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
Dvp8_dx_iface.c92 ctx->priv = mmap->base; in vp8_init_ctx()
93 ctx->priv->sz = sizeof(*ctx->priv); in vp8_init_ctx()
94 ctx->priv->iface = ctx->iface; in vp8_init_ctx()
95 ctx->priv->alg_priv = mmap->base; in vp8_init_ctx()
97 for (i = 0; i < NELEMENTS(ctx->priv->alg_priv->mmaps); i++) in vp8_init_ctx()
98 ctx->priv->alg_priv->mmaps[i].id = vp8_mem_req_segs[i].id; in vp8_init_ctx()
100 ctx->priv->alg_priv->mmaps[0] = *mmap; in vp8_init_ctx()
101 ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si); in vp8_init_ctx()
102 ctx->priv->alg_priv->decrypt_cb = NULL; in vp8_init_ctx()
103 ctx->priv->alg_priv->decrypt_state = NULL; in vp8_init_ctx()
[all …]
Dvp8_cx_iface.c578 struct vpx_codec_alg_priv *priv; in vp8e_init() local
586 if (!ctx->priv) in vp8e_init()
588 priv = calloc(1, sizeof(struct vpx_codec_alg_priv)); in vp8e_init()
590 if (!priv) in vp8e_init()
595 ctx->priv = &priv->base; in vp8e_init()
596 ctx->priv->sz = sizeof(*ctx->priv); in vp8e_init()
597 ctx->priv->iface = ctx->iface; in vp8e_init()
598 ctx->priv->alg_priv = priv; in vp8e_init()
599 ctx->priv->init_flags = ctx->init_flags; in vp8e_init()
606 ctx->priv->alg_priv->cfg = *ctx->config.enc; in vp8e_init()
[all …]
/hardware/intel/common/libwsbm/src/
Dwsbm_fencemgr.c362 struct _WsbmTTMFenceMgrPriv *priv = in tSignaled() local
372 ret = drmCommandWriteRead(priv->fd, priv->devOffset + TTM_FENCE_SIGNALED, in tSignaled()
385 struct _WsbmTTMFenceMgrPriv *priv = in tFinish() local
395 ret = drmCommandWriteRead(priv->fd, priv->devOffset + TTM_FENCE_FINISH, in tFinish()
405 struct _WsbmTTMFenceMgrPriv *priv = in tUnref() local
411 return drmCommandWrite(priv->fd, priv->devOffset + TTM_FENCE_UNREF, in tUnref()
420 struct _WsbmTTMFenceMgrPriv *priv = malloc(sizeof(*priv)); in wsbmFenceMgrTTMInit() local
422 if (!priv) in wsbmFenceMgrTTMInit()
425 priv->fd = fd; in wsbmFenceMgrTTMInit()
426 priv->devOffset = devOffset; in wsbmFenceMgrTTMInit()
[all …]
/hardware/ti/omap3/omx/system/src/openmax_il/perf/inc/
Dperf_log.h264 INLINE void __PERF_log1(PERF_Private *priv, in __PERF_log1() argument
268 PERF_LOG_Private *me = priv->pLog; in __PERF_log1()
272 __PERF_LOG_log_common(priv, time_loc); in __PERF_log1()
276 INLINE void __PERF_log2(PERF_Private *priv, in __PERF_log2() argument
281 PERF_LOG_Private *me = priv->pLog; in __PERF_log2()
286 __PERF_LOG_log_common(priv, time_loc); in __PERF_log2()
290 INLINE void __PERF_log3(PERF_Private *priv, in __PERF_log3() argument
296 PERF_LOG_Private *me = priv->pLog; in __PERF_log3()
302 __PERF_LOG_log_common(priv, time_loc); in __PERF_log3()
311 __PERF_log8(PERF_Private *priv, in __PERF_log8() argument
[all …]
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c75 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument
78 struct i802_bss *bss = priv; in wpa_driver_nl80211_driver_cmd()
142 int wpa_driver_set_p2p_noa(void *priv, u8 count, int start, int duration) in wpa_driver_set_p2p_noa() argument
149 return wpa_driver_nl80211_driver_cmd(priv, buf, buf, strlen(buf)+1); in wpa_driver_set_p2p_noa()
152 int wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len) in wpa_driver_get_p2p_noa() argument
158 int wpa_driver_set_p2p_ps(void *priv, int legacy_ps, int opp_ps, int ctwindow) in wpa_driver_set_p2p_ps() argument
165 return wpa_driver_nl80211_driver_cmd(priv, buf, buf, strlen(buf) + 1); in wpa_driver_set_p2p_ps()
168 int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon, in wpa_driver_set_ap_wps_p2p_ie() argument
209 ret = wpa_driver_nl80211_driver_cmd(priv, buf, buf, buf_len); in wpa_driver_set_ap_wps_p2p_ie()
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c69 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument
72 struct i802_bss *bss = priv; in wpa_driver_nl80211_driver_cmd()
141 int wpa_driver_set_p2p_noa(void *priv, u8 count, int start, int duration) in wpa_driver_set_p2p_noa() argument
148 return wpa_driver_nl80211_driver_cmd(priv, buf, buf, strlen(buf)+1); in wpa_driver_set_p2p_noa()
151 int wpa_driver_get_p2p_noa(void *priv __unused, u8 *buf __unused, size_t len __unused) in wpa_driver_get_p2p_noa()
157 int wpa_driver_set_p2p_ps(void *priv, int legacy_ps, int opp_ps, int ctwindow) in wpa_driver_set_p2p_ps() argument
164 return wpa_driver_nl80211_driver_cmd(priv, buf, buf, strlen(buf) + 1); in wpa_driver_set_p2p_ps()
167 int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon, in wpa_driver_set_ap_wps_p2p_ie() argument
208 ret = wpa_driver_nl80211_driver_cmd(priv, buf, buf, buf_len); in wpa_driver_set_ap_wps_p2p_ie()
Ddriver_cmd_wext.c47 static void wpa_driver_wext_set_scan_timeout(void *priv) in wpa_driver_wext_set_scan_timeout() argument
49 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_set_scan_timeout()
75 int wpa_driver_wext_combo_scan(void *priv, struct wpa_driver_scan_params *params) in wpa_driver_wext_combo_scan() argument
78 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_combo_scan()
202 static int wpa_driver_set_backgroundscan_params(void *priv) in wpa_driver_set_backgroundscan_params() argument
204 struct wpa_driver_wext_data *drv = priv; in wpa_driver_set_backgroundscan_params()
281 int wpa_driver_wext_driver_cmd( void *priv, char *cmd, char *buf, size_t buf_len ) in wpa_driver_wext_driver_cmd() argument
283 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_driver_cmd()
310 ret = wpa_driver_set_backgroundscan_params(priv); in wpa_driver_wext_driver_cmd()
364 wpa_driver_wext_set_scan_timeout(priv); in wpa_driver_wext_driver_cmd()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/
Dvp9_cx_iface.c510 if (ctx->priv == NULL) { in vp9e_common_init()
513 struct vpx_codec_alg_priv *priv = calloc(1, sizeof(*priv)); in vp9e_common_init() local
515 if (priv == NULL) return VPX_CODEC_MEM_ERROR; in vp9e_common_init()
517 ctx->priv = &priv->base; in vp9e_common_init()
518 ctx->priv->sz = sizeof(*ctx->priv); in vp9e_common_init()
519 ctx->priv->iface = ctx->iface; in vp9e_common_init()
520 ctx->priv->alg_priv = priv; in vp9e_common_init()
521 ctx->priv->init_flags = ctx->init_flags; in vp9e_common_init()
522 ctx->priv->enc.total_encoders = 1; in vp9e_common_init()
527 ctx->priv->alg_priv->cfg = *ctx->config.enc; in vp9e_common_init()
[all …]
Dvp9_dx_iface.c58 if (!ctx->priv) { in vp9_init()
64 ctx->priv = (vpx_codec_priv_t *)base; in vp9_init()
65 ctx->priv->sz = sizeof(*ctx->priv); in vp9_init()
66 ctx->priv->iface = ctx->iface; in vp9_init()
67 ctx->priv->alg_priv = (vpx_codec_alg_priv_t *)base; in vp9_init()
68 ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si); in vp9_init()
69 ctx->priv->init_flags = ctx->init_flags; in vp9_init()
73 ctx->priv->alg_priv->cfg = *ctx->config.dec; in vp9_init()
74 ctx->config.dec = &ctx->priv->alg_priv->cfg; in vp9_init()
268 ctx->img.fb_priv = cm->frame_bufs[cm->new_fb_idx].raw_frame_buffer.priv; in decode_one()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/
Dvpx_frame_buffer.h39 void *priv; /**< Frame's private data */ member
65 void *priv, size_t min_size, vpx_codec_frame_buffer_t *fb);
78 void *priv, vpx_codec_frame_buffer_t *fb);
/hardware/libhardware/modules/camera/
DCamera.cpp46 Camera* cam = static_cast<Camera*>(cam_dev->priv); in close_device()
66 mDevice.priv = this; in Camera()
180 astream->priv = newStreams[i]; in configureStreams()
221 Stream *priv = reinterpret_cast<Stream*>(astream->priv); in reuseStream() local
223 if (!priv->isValidReuseStream(mId, astream)) { in reuseStream()
228 priv->mReuse = true; in reuseStream()
229 return priv; in reuseStream()
305 Stream *stream = reinterpret_cast<Stream*>(buf_set->stream->priv); in registerStreamBuffers()
535 return reinterpret_cast<Camera*>(dev->priv); in camdev_to_camera()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Dexample_xma.c73 free(mmap->priv); in my_mem_dtor()
169 mmap.priv = calloc(1, mmap.sz + align); in main()
171 mmap.priv = malloc(mmap.sz + align); in main()
173 mmap.base = (void *)((((uintptr_t)mmap.priv) + align) & in main()
/hardware/libhardware/modules/usbcamera/
DCamera.cpp42 Camera* cam = static_cast<Camera*>(cam_dev->priv); in close_device()
48 return reinterpret_cast<Camera*>(dev->priv); in camdev_to_camera()
108 mDevice.priv = this; in Camera()
236 astream->priv = reinterpret_cast<void *>(newStreams[i]); in configureStreams()
270 Stream *priv = reinterpret_cast<Stream*>(astream->priv); in reuseStreamLocked() local
272 if (!priv->isValidReuseStream(mId, astream)) { in reuseStreamLocked()
277 priv->mReuse = true; in reuseStreamLocked()
278 return priv; in reuseStreamLocked()

1234