Lines Matching refs:va_status
63 #define CHECK_VASTATUS(va_status,func) \
64 if (va_status != VA_STATUS_SUCCESS) { \
66 rfbClientErr("%s:%s:%d failed (0x%x),exit\n", __func__, func, __LINE__, va_status); \
168 VAStatus va_status;
173 va_status = vaDestroySurfaces(va_dpy, &va_surface_id[0], SURFACE_NUM);
174 CHECK_VASTATUS(va_status, "vaDestroySurfaces");
178 va_status = vaDestroyContext(va_dpy, va_context_id);
179 CHECK_VASTATUS(va_status, "vaDestroyContext");
191 VAStatus va_status;
212 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver);
213 CHECK_VASTATUS(va_status, "vaInitialize");
224 va_status = vaQueryConfigEntrypoints(va_dpy, profile, entrypoints, &num_entrypoints);
225 CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints");
242 va_status = vaCreateConfig(va_dpy, profile, VAEntrypointVLD, &attrib, 1, &va_config_id);
243 CHECK_VASTATUS(va_status, "vaCreateConfig");
253 va_status = vaCreateSurfaces(va_dpy, width, height, VA_RT_FORMAT_YUV420, SURFACE_NUM, &va_surface_id[0]);
254 CHECK_VASTATUS(va_status, "vaCreateSurfaces");
260 va_status = vaCreateContext(va_dpy, va_config_id, width, height, 0/*VA_PROGRESSIVE*/, &va_surface_id[0], SURFACE_NUM, &va_context_id);
261 CHECK_VASTATUS(va_status, "vaCreateContext");
266 va_status = vaBeginPicture(va_dpy, va_context_id, va_surface_id[0]);
267 CHECK_VASTATUS(va_status, "vaBeginPicture");
274 VAStatus va_status;
311 va_status = vaCreateBuffer(va_dpy, va_context_id, VAPictureParameterBufferType, sizeof(VAPictureParameterBufferH264), 1, NULL, &va_pic_param_buf_id[sid]);
312 CHECK_VASTATUS(va_status, "vaCreateBuffer(PicParam)");
317 va_status = vaMapBuffer(va_dpy, va_pic_param_buf_id[sid], (void **)&pic_param_buf);
318 CHECK_VASTATUS(va_status, "vaMapBuffer(PicParam)");
333 va_status = vaUnmapBuffer(va_dpy, va_pic_param_buf_id[sid]);
334 CHECK_VASTATUS(va_status, "vaUnmapBuffer(PicParam)");
338 va_status = vaCreateBuffer(va_dpy, va_context_id, VAIQMatrixBufferType, sizeof(VAIQMatrixBufferH264), 1, NULL, &va_mat_param_buf_id[sid]);
339 CHECK_VASTATUS(va_status, "vaCreateBuffer(IQMatrix)");
344 va_status = vaMapBuffer(va_dpy, va_mat_param_buf_id[sid], (void **)&iq_matrix_buf);
345 CHECK_VASTATUS(va_status, "vaMapBuffer(IQMatrix)");
375 va_status = vaUnmapBuffer(va_dpy, va_mat_param_buf_id[sid]);
376 CHECK_VASTATUS(va_status, "vaUnmapBuffer(IQMatrix)");
383 va_status = vaRenderPicture(va_dpy, va_context_id, buffer_ids, 2);
384 CHECK_VASTATUS(va_status, "vaRenderPicture");
388 va_status = vaCreateBuffer(va_dpy, va_context_id, VASliceParameterBufferType, sizeof(VASliceParameterBufferH264), 1, NULL, &va_sp_param_buf_id[sid]);
389 CHECK_VASTATUS(va_status, "vaCreateBuffer(SliceParam)");
394 va_status = vaMapBuffer(va_dpy, va_sp_param_buf_id[sid], (void **)&slice_param_buf);
395 CHECK_VASTATUS(va_status, "vaMapBuffer(SliceParam)");
409 va_status = vaUnmapBuffer(va_dpy, va_sp_param_buf_id[sid]);
410 CHECK_VASTATUS(va_status, "vaUnmapBuffer(SliceParam)");
416 va_status = vaCreateBuffer(va_dpy, va_context_id, VASliceDataBufferType, 4177920, 1, NULL, &va_d_param_buf_id[sid]); /* 1080p size */
417 CHECK_VASTATUS(va_status, "vaCreateBuffer(SliceData)");
421 va_status = vaMapBuffer(va_dpy, va_d_param_buf_id[sid], (void **)&slice_data_buf);
422 CHECK_VASTATUS(va_status, "vaMapBuffer(SliceData)");
426 va_status
427 CHECK_VASTATUS(va_status, "vaUnmapBuffer(SliceData)");
433 va_status = vaRenderPicture(va_dpy, va_context_id, buffer_ids, 2);
434 CHECK_VASTATUS(va_status, "vaRenderPicture");
436 va_status = vaEndPicture(va_dpy, va_context_id);
437 CHECK_VASTATUS(va_status, "vaEndPicture");
442 va_status = vaBeginPicture(va_dpy, va_context_id, va_surface_id[sid_new]);
443 CHECK_VASTATUS(va_status, "vaBeginPicture");
446 va_status = vaSyncSurface(va_dpy, va_surface_id[sid]);
447 CHECK_VASTATUS(va_status, "vaSyncSurface");
472 VAStatus va_status;
478 va_status = vaPutSurface(va_dpy, curr_surface, client->outputWindow, 0, 0, f_width, f_height, 0, 0, f_width, f_height, NULL, 0, VA_FRAME_PICTURE);
479 CHECK_VASTATUS(va_status, "vaPutSurface");
487 va_status = vaDeriveImage(va_dpy, curr_surface, &decoded_image);
488 CHECK_VASTATUS(va_status, "vaDeriveImage");
496 va_status = vaDestroyImage(va_dpy, decoded_image.image_id);
497 CHECK_VASTATUS(va_status, "vaDestroyImage");
578 VAStatus va_status;
580 va_status = vaMapBuffer(va_dpy, vaImage.buf, (void **)&nv12_buf);
581 CHECK_VASTATUS(va_status, "vaMapBuffer(DecodedData)");
640 va_status = vaUnmapBuffer(va_dpy, vaImage.buf);
641 CHECK_VASTATUS(va_status, "vaUnmapBuffer(DecodedData)");