Home | History | Annotate | Download | only in src
      1 /*
      2  INTEL CONFIDENTIAL
      3  Copyright 2009 Intel Corporation All Rights Reserved.
      4  The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material contains trade secrets and proprietary and confidential information of Intel or its suppliers and licensors. The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intels prior express written permission.
      5 
      6  No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing.
      7 */
      8 
      9 #ifndef __MIX_VIDEOINITPARAMS_H__
     10 #define __MIX_VIDEOINITPARAMS_H__
     11 
     12 #include <mixparams.h>
     13 #include "mixdisplay.h"
     14 #include "mixvideodef.h"
     15 
     16 /**
     17  * MIX_TYPE_VIDEOINITPARAMS:
     18  *
     19  * Get type of class.
     20  */
     21 #define MIX_TYPE_VIDEOINITPARAMS (mix_videoinitparams_get_type ())
     22 
     23 /**
     24  * MIX_VIDEOINITPARAMS:
     25  * @obj: object to be type-casted.
     26  */
     27 #define MIX_VIDEOINITPARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIX_TYPE_VIDEOINITPARAMS, MixVideoInitParams))
     28 
     29 /**
     30  * MIX_IS_VIDEOINITPARAMS:
     31  * @obj: an object.
     32  *
     33  * Checks if the given object is an instance of #MixParams
     34  */
     35 #define MIX_IS_VIDEOINITPARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIX_TYPE_VIDEOINITPARAMS))
     36 
     37 /**
     38  * MIX_VIDEOINITPARAMS_CLASS:
     39  * @klass: class to be type-casted.
     40  */
     41 #define MIX_VIDEOINITPARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIX_TYPE_VIDEOINITPARAMS, MixVideoInitParamsClass))
     42 
     43 /**
     44  * MIX_IS_VIDEOINITPARAMS_CLASS:
     45  * @klass: a class.
     46  *
     47  * Checks if the given class is #MixParamsClass
     48  */
     49 #define MIX_IS_VIDEOINITPARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIX_TYPE_VIDEOINITPARAMS))
     50 
     51 /**
     52  * MIX_VIDEOINITPARAMS_GET_CLASS:
     53  * @obj: a #MixParams object.
     54  *
     55  * Get the class instance of the object.
     56  */
     57 #define MIX_VIDEOINITPARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIX_TYPE_VIDEOINITPARAMS, MixVideoInitParamsClass))
     58 
     59 typedef struct _MixVideoInitParams MixVideoInitParams;
     60 typedef struct _MixVideoInitParamsClass MixVideoInitParamsClass;
     61 
     62 /**
     63  * MixVideoInitParams:
     64  *
     65  * MI-X VideoInit Parameter object
     66  */
     67 struct _MixVideoInitParams
     68 {
     69   /*< public > */
     70   MixParams parent;
     71 
     72   /*< public > */
     73 
     74   MixDisplay *display;
     75   void *reserved1;
     76   void *reserved2;
     77   void *reserved3;
     78   void *reserved4;
     79 };
     80 
     81 /**
     82  * MixVideoInitParamsClass:
     83  *
     84  * MI-X VideoInit object class
     85  */
     86 struct _MixVideoInitParamsClass
     87 {
     88   /*< public > */
     89   MixParamsClass parent_class;
     90 
     91   /* class members */
     92 };
     93 
     94 /**
     95  * mix_videoinitparams_get_type:
     96  * @returns: type
     97  *
     98  * Get the type of object.
     99  */
    100 GType mix_videoinitparams_get_type (void);
    101 
    102 /**
    103  * mix_videoinitparams_new:
    104  * @returns: A newly allocated instance of #MixVideoInitParams
    105  *
    106  * Use this method to create new instance of #MixVideoInitParams
    107  */
    108 MixVideoInitParams *mix_videoinitparams_new (void);
    109 /**
    110  * mix_videoinitparams_ref:
    111  * @mix: object to add reference
    112  * @returns: the MixVideoInitParams instance where reference count has been increased.
    113  *
    114  * Add reference count.
    115  */
    116 MixVideoInitParams *mix_videoinitparams_ref (MixVideoInitParams * mix);
    117 
    118 /**
    119  * mix_videoinitparams_unref:
    120  * @obj: object to unref.
    121  *
    122  * Decrement reference count of the object.
    123  */
    124 #define mix_videoinitparams_unref(obj) mix_params_unref(MIX_PARAMS(obj))
    125 
    126 /* Class Methods */
    127 
    128 /*
    129 	TO DO: Add documents
    130 */
    131 
    132 MIX_RESULT mix_videoinitparams_set_display (MixVideoInitParams * obj,
    133 					    MixDisplay * display);
    134 
    135 MIX_RESULT mix_videoinitparams_get_display (MixVideoInitParams * obj,
    136 					    MixDisplay ** dislay);
    137 
    138 #endif /* __MIX_VIDEOINITPARAMS_H__ */
    139