XvQueryEncodings

XvQueryEncodings(3X)                                      XvQueryEncodings(3X)



åå
       XvQueryEncodings - ã¢ããã¿ã対å¿ãã¦ããã¨ã³ã³ã¼ãã£ã³ã°ã®ãªã¹ããè¿ã

æ¸å¼
       #include <X11/extensions/Xvlib.h>

       XvQueryEncodings(dpy, port, p_num_encodings, pp_encoding_info)

       register Display *dpy;
       XvPortID port;
       unsigned long *p_num_encodings;
       XvEncodingInfo **pp_encoding_info;

å¼ãæ°
       *dpy           Xv ãµã¼ãã Xv
                      ã¯ã©ã¤ã¢ã³ãããã®ãªã¯ã¨ã¹ããåãä»ãããã£ã¹ãã¬ã¤ç»é¢
                      ãæå®ããããã£ã¹ãã¬ã¤ãæå®ãããªãã·ã§ã³ãæå®ããã¦ããªããã°ãXv ã¯
                      DISPLAY ç°å¢å¤æ°ã§æå®ããã¦ãããã£ã¹ãã¬ã¤ã使ãããã£ã¹ãã¬ã¤
                      æå®ãªãã·ã§ã³ã¯ããã¹ãå:çªå·ãã¨ããå½¢å¼ã§ãããã³ãã³ 1
                      ã¤(:)ã§ãª ããã³ãã³ 2
                      ã¤(::)ã使ã£ãå ´åã«ã¯ããã©ã³ã¹ãã¼ã層㧠DECnet ã使ã
                      ãã¨ãæå®ãããã

       port           ã¨ã³ã³ã¼ãã£ã³ã°ã®ãªã¹ããåãåãããã¢ããã¿ãæã¤ãã¼ããæå®ããã

       p_num_encodings
                      ã¢ããã¿ããµãã¼ããã¦ããã¨ã³ã³ã¼ãã£ã³ã°ã®æ°ã¸ã®ãã¤ã³ã¿ãæ¸ãè¾¼ã¾ã
                      ãã

       pp_encoding_info
                      è¿ãããã¨ã³ã³ã¼ãã£ã³ã°æå ±ã®ãªã¹ãã¸ã®ãã¤ã³ã¿ãè¿ãããã
                      XvEncodingInfo ã¯ã以ä¸ã®å容ãæã¤æ§é ä½ã§ãã:

                          typedef struct {
                            XvEncodingID encoding_id;
                            char *name;
                            unsigned long width;
                            unsigned long height;
                            XvRational rate;
                            unsigned long num_encodings;
                          } XvEncodingInfo;


       encoding_id    ã¨ã³ã³ã¼ãã£ã³ã°ã® ID ãæå®ãããã¨ã³ã³ã¼ãã£ã³ã° ID ã¯ããã¼ãã®
                      ã¨ã³ã³ã¼ãã£ã³ã°å±æ§ãå¤åããæã«ã¨ã³ã³ã¼ãã£ã³ã°ãè‐
                      å¥ããããã«ä½¿ã ããã

       name           ã¨ã³ã³ã¼ãã£ã³ã°ãèå¥ããããã®æ´å½¢ãããæååã¸ã®ãã¤ã³ã¿ããã®æå
                      å㯠"ã¿ã¤ãã³ã°-ã·ã°ãã«ã®ç¨®é¡" ã¨ããå½¢å¼ã§ãããä¾ãã°
                      "ntsc-composite" ãªã©ã§ããã

       width,height   ãã³ã¼ãããããããªã¤ã¡ã¼ã¸ã®å¹ã¨é«ã(ãã¯ã»ã«åä½)ã

       rate           ãã³ã¼ãããããããªã®ãã£ã¼ã«ãã¬ã¼ãã

       XvRational æ§é ä½ã¯ãåæ°ãæå®ããããã«ç¨ããã ããã¯ä»¥ä¸ã®ãããªæ§é ä½ã§ãã:

           typedef struct {
             int numerator;
             int denominator;
           } XvRational;

       numerator ã¯ååã表ããdenominator ã¯åæ¯ã表ãã

説æ
       XvQueryEncodings(3X) ã¯ã¢ããã¿ã«ã¤ãã¦ã®ã¨ã³ã³ã¼ãã£ã³ã°æå ±ãè¿ãã
       ããããã®ã¨ã³ã³ã¼ãã£ã³ã°ã¯ãåè¿°ã® XvEncodingInfo æ§é ä½ã«ãã£ã¦è¨è¿°
       ããããã¨ã³ã³ã¼ãã£ã³ã°ã¯ã¨ã³ã³ã¼ãã£ã³ã° ID ã«ãã£ã¦èå¥ãããããã®
       å¤ã使ãã¨ãã¼ãã®ã¨ã³ã³ã¼ãã£ã³ã°å±æ§ã®è¨å®ãåå¾ãè¡ããã¨ãã§ããã

è¿ãå¤
       [Success]
               XvQueryEncodings(3X) ãæ£å¸¸ã«çµäºããå ´åã«è¿ãããã

       [XvBadExtension]
               Xv æ©è½æ¡å¼µã使ç¨ã§ããªãå ´åã«è¿ãããã

       [XvBadAlloc]
               XvQueryEncodings(3X) ããªã¯ã¨ã¹ããå¦çããããã®ã¡ã¢ãªã®å²ãå½ã¦ã«å¤±
               æããå ´åã«è¿ãããã

診æ
       [XvBadPort]
               è¦æ±ããããã¼ããåå¨ããªãå ´åã«çæãããã

é¢é£é ç®
       XvFreeEncodingInfo(3X)



XFree86                          Version 4.1.0            XvQueryEncodings(3X)