Lines Matching refs:a_this

66 static void ephyrXVPrivDelete(EphyrXVPriv * a_this);
67 static Bool ephyrXVPrivQueryHostAdaptors(EphyrXVPriv * a_this);
68 static Bool ephyrXVPrivSetAdaptorsHooks(EphyrXVPriv * a_this);
69 static Bool ephyrXVPrivRegisterAdaptors(EphyrXVPriv * a_this,
286 ephyrXVPrivDelete(EphyrXVPriv * a_this) in ephyrXVPrivDelete() argument
290 if (!a_this) in ephyrXVPrivDelete()
292 if (a_this->host_adaptors) { in ephyrXVPrivDelete()
293 free(a_this->host_adaptors); in ephyrXVPrivDelete()
294 a_this->host_adaptors = NULL; in ephyrXVPrivDelete()
296 free(a_this->adaptors); in ephyrXVPrivDelete()
297 a_this->adaptors = NULL; in ephyrXVPrivDelete()
298 free(a_this); in ephyrXVPrivDelete()
444 ephyrXVPrivQueryHostAdaptors(EphyrXVPriv * a_this) in ephyrXVPrivQueryHostAdaptors() argument
453 EPHYR_RETURN_VAL_IF_FAIL(a_this, FALSE); in ephyrXVPrivQueryHostAdaptors()
460 a_this->host_adaptors = xcb_xv_query_adaptors_reply(conn, cookie, &e); in ephyrXVPrivQueryHostAdaptors()
468 if (a_this->host_adaptors) in ephyrXVPrivQueryHostAdaptors()
469 a_this->num_adaptors = a_this->host_adaptors->num_adaptors; in ephyrXVPrivQueryHostAdaptors()
470 if (a_this->num_adaptors <= 0) { in ephyrXVPrivQueryHostAdaptors()
474 EPHYR_LOG("host has %d adaptors\n", a_this->num_adaptors); in ephyrXVPrivQueryHostAdaptors()
478 if (a_this->num_adaptors) { in ephyrXVPrivQueryHostAdaptors()
479 a_this->adaptors = calloc(a_this->num_adaptors, in ephyrXVPrivQueryHostAdaptors()
481 if (!a_this->adaptors) { in ephyrXVPrivQueryHostAdaptors()
487 it = xcb_xv_query_adaptors_info_iterator(a_this->host_adaptors); in ephyrXVPrivQueryHostAdaptors()
488 for (i = 0; i < a_this->num_adaptors; i++) { in ephyrXVPrivQueryHostAdaptors()
493 a_this->adaptors[i].nPorts = cur_host_adaptor->num_ports; in ephyrXVPrivQueryHostAdaptors()
494 if (a_this->adaptors[i].nPorts <= 0) { in ephyrXVPrivQueryHostAdaptors()
498 a_this->adaptors[i].type = cur_host_adaptor->type; in ephyrXVPrivQueryHostAdaptors()
499 a_this->adaptors[i].type |= XvWindowMask; in ephyrXVPrivQueryHostAdaptors()
500 a_this->adaptors[i].flags = in ephyrXVPrivQueryHostAdaptors()
502 a_this->adaptors[i].name = in ephyrXVPrivQueryHostAdaptors()
505 if (!a_this->adaptors[i].name) in ephyrXVPrivQueryHostAdaptors()
506 a_this->adaptors[i].name = strdup("Xephyr Video Overlay"); in ephyrXVPrivQueryHostAdaptors()
515 if (!translate_video_encodings(&a_this->adaptors[i], in ephyrXVPrivQueryHostAdaptors()
522 a_this->adaptors[i].nFormats = cur_host_adaptor->num_formats; in ephyrXVPrivQueryHostAdaptors()
523 a_this->adaptors[i].pFormats = in ephyrXVPrivQueryHostAdaptors()
525 sizeof(*a_this->adaptors[i].pFormats)); in ephyrXVPrivQueryHostAdaptors()
529 a_this->adaptors[i].pFormats[j].depth = format[j].depth; in ephyrXVPrivQueryHostAdaptors()
530 a_this->adaptors[i].pFormats[j].class = visual->_class; in ephyrXVPrivQueryHostAdaptors()
533 a_this->adaptors[i].pPortPrivates = in ephyrXVPrivQueryHostAdaptors()
534 calloc(a_this->adaptors[i].nPorts, in ephyrXVPrivQueryHostAdaptors()
536 port_priv_offset = a_this->adaptors[i].nPorts; in ephyrXVPrivQueryHostAdaptors()
537 for (j = 0; j < a_this->adaptors[i].nPorts; j++) { in ephyrXVPrivQueryHostAdaptors()
539 (EphyrPortPriv *) &a_this->adaptors[i]. in ephyrXVPrivQueryHostAdaptors()
544 port_priv->current_adaptor = &a_this->adaptors[i]; in ephyrXVPrivQueryHostAdaptors()
545 port_priv->xv_priv = a_this; in ephyrXVPrivQueryHostAdaptors()
546 a_this->adaptors[i].pPortPrivates[j].ptr = port_priv; in ephyrXVPrivQueryHostAdaptors()
549 if (!translate_xv_attributes(&a_this->adaptors[i], cur_host_adaptor)) { in ephyrXVPrivQueryHostAdaptors()
557 if (!translate_xv_image_formats(&a_this->adaptors[i], cur_host_adaptor)) { in ephyrXVPrivQueryHostAdaptors()
573 ephyrXVPrivSetAdaptorsHooks(EphyrXVPriv * a_this) in ephyrXVPrivSetAdaptorsHooks() argument
578 EPHYR_RETURN_VAL_IF_FAIL(a_this, FALSE); in ephyrXVPrivSetAdaptorsHooks()
582 it = xcb_xv_query_adaptors_info_iterator(a_this->host_adaptors); in ephyrXVPrivSetAdaptorsHooks()
583 for (i = 0; i < a_this->num_adaptors; i++) { in ephyrXVPrivSetAdaptorsHooks()
586 a_this->adaptors[i].ReputImage = ephyrReputImage; in ephyrXVPrivSetAdaptorsHooks()
587 a_this->adaptors[i].StopVideo = ephyrStopVideo; in ephyrXVPrivSetAdaptorsHooks()
588 a_this->adaptors[i].SetPortAttribute = ephyrSetPortAttribute; in ephyrXVPrivSetAdaptorsHooks()
589 a_this->adaptors[i].GetPortAttribute = ephyrGetPortAttribute; in ephyrXVPrivSetAdaptorsHooks()
590 a_this->adaptors[i].QueryBestSize = ephyrQueryBestSize; in ephyrXVPrivSetAdaptorsHooks()
591 a_this->adaptors[i].QueryImageAttributes = ephyrQueryImageAttributes; in ephyrXVPrivSetAdaptorsHooks()
595 a_this->adaptors[i].PutImage = ephyrPutImage; in ephyrXVPrivSetAdaptorsHooks()
599 a_this->adaptors[i].PutVideo = ephyrPutVideo; in ephyrXVPrivSetAdaptorsHooks()
603 a_this->adaptors[i].GetVideo = ephyrGetVideo; in ephyrXVPrivSetAdaptorsHooks()
607 a_this->adaptors[i].PutStill = ephyrPutStill; in ephyrXVPrivSetAdaptorsHooks()
611 a_this->adaptors[i].GetStill = ephyrGetStill; in ephyrXVPrivSetAdaptorsHooks()
618 ephyrXVPrivRegisterAdaptors(EphyrXVPriv * a_this, ScreenPtr a_screen) in ephyrXVPrivRegisterAdaptors() argument
622 EPHYR_RETURN_VAL_IF_FAIL(a_this && a_screen, FALSE); in ephyrXVPrivRegisterAdaptors()
626 if (!a_this->num_adaptors) in ephyrXVPrivRegisterAdaptors()
629 if (!KdXVScreenInit(a_screen, a_this->adaptors, a_this->num_adaptors)) { in ephyrXVPrivRegisterAdaptors()
633 EPHYR_LOG("there are %d registered adaptors\n", a_this->num_adaptors); in ephyrXVPrivRegisterAdaptors()