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_VIDEOENCODEPARAMS_H__
     10 #define __MIX_VIDEOENCODEPARAMS_H__
     11 
     12 #include <mixparams.h>
     13 #include "mixvideodef.h"
     14 
     15 /**
     16  * MIX_TYPE_VIDEOENCODEPARAMS:
     17  *
     18  * Get type of class.
     19  */
     20 #define MIX_TYPE_VIDEOENCODEPARAMS (mix_videoencodeparams_get_type ())
     21 
     22 /**
     23  * MIX_VIDEOENCODEPARAMS:
     24  * @obj: object to be type-casted.
     25  */
     26 #define MIX_VIDEOENCODEPARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIX_TYPE_VIDEOENCODEPARAMS, MixVideoEncodeParams))
     27 
     28 /**
     29  * MIX_IS_VIDEOENCODEPARAMS:
     30  * @obj: an object.
     31  *
     32  * Checks if the given object is an instance of #MixParams
     33  */
     34 #define MIX_IS_VIDEOENCODEPARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIX_TYPE_VIDEOENCODEPARAMS))
     35 
     36 /**
     37  * MIX_VIDEOENCODEPARAMS_CLASS:
     38  * @klass: class to be type-casted.
     39  */
     40 #define MIX_VIDEOENCODEPARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIX_TYPE_VIDEOENCODEPARAMS, MixVideoEncodeParamsClass))
     41 
     42 /**
     43  * MIX_IS_VIDEOENCODEPARAMS_CLASS:
     44  * @klass: a class.
     45  *
     46  * Checks if the given class is #MixParamsClass
     47  */
     48 #define MIX_IS_VIDEOENCODEPARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIX_TYPE_VIDEOENCODEPARAMS))
     49 
     50 /**
     51  * MIX_VIDEOENCODEPARAMS_GET_CLASS:
     52  * @obj: a #MixParams object.
     53  *
     54  * Get the class instance of the object.
     55  */
     56 #define MIX_VIDEOENCODEPARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIX_TYPE_VIDEOENCODEPARAMS, MixVideoEncodeParamsClass))
     57 
     58 typedef struct _MixVideoEncodeParams MixVideoEncodeParams;
     59 typedef struct _MixVideoEncodeParamsClass MixVideoEncodeParamsClass;
     60 
     61 /**
     62  * MixVideoEncodeParams:
     63  *
     64  * MI-X VideoDecode Parameter object
     65  */
     66 struct _MixVideoEncodeParams {
     67 	/*< public > */
     68 	MixParams parent;
     69 
     70 	/*< public > */
     71 
     72 	/* TODO: Add properties */
     73 	guint64 timestamp;
     74 	gboolean discontinuity;
     75 
     76 	void *reserved1;
     77 	void *reserved2;
     78 	void *reserved3;
     79 	void *reserved4;
     80 };
     81 
     82 /**
     83  * MixVideoEncodeParamsClass:
     84  *
     85  * MI-X VideoDecode object class
     86  */
     87 struct _MixVideoEncodeParamsClass {
     88 	/*< public > */
     89 	MixParamsClass parent_class;
     90 
     91 	/* class members */
     92 };
     93 
     94 /**
     95  * mix_videoencodeparams_get_type:
     96  * @returns: type
     97  *
     98  * Get the type of object.
     99  */
    100 GType mix_videoencodeparams_get_type(void);
    101 
    102 /**
    103  * mix_videoencodeparams_new:
    104  * @returns: A newly allocated instance of #MixVideoEncodeParams
    105  *
    106  * Use this method to create new instance of #MixVideoEncodeParams
    107  */
    108 MixVideoEncodeParams *mix_videoencodeparams_new(void);
    109 /**
    110  * mix_videoencodeparams_ref:
    111  * @mix: object to add reference
    112  * @returns: the MixVideoEncodeParams instance where reference count has been increased.
    113  *
    114  * Add reference count.
    115  */
    116 MixVideoEncodeParams *mix_videoencodeparams_ref(MixVideoEncodeParams * mix);
    117 
    118 /**
    119  * mix_videoencodeparams_unref:
    120  * @obj: object to unref.
    121  *
    122  * Decrement reference count of the object.
    123  */
    124 #define mix_videoencodeparams_unref(obj) mix_params_unref(MIX_PARAMS(obj))
    125 
    126 /* Class Methods */
    127 
    128 /* TODO: Add getters and setters for properties */
    129 MIX_RESULT mix_videoencodeparams_set_timestamp(MixVideoEncodeParams * obj,
    130 		guint64 timestamp);
    131 MIX_RESULT mix_videoencodeparams_get_timestamp(MixVideoEncodeParams * obj,
    132 		guint64 * timestamp);
    133 
    134 MIX_RESULT mix_videoencodeparams_set_discontinuity(MixVideoEncodeParams * obj,
    135 		gboolean discontinuity);
    136 MIX_RESULT mix_videoencodeparams_get_discontinuity(MixVideoEncodeParams * obj,
    137 		gboolean *discontinuity);
    138 
    139 #endif /* __MIX_VIDEOENCODEPARAMS_H__ */
    140 
    141