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 Intel’s 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_VIDEOCONFIGPARAMSENC_MPEG4_H__ 10 #define __MIX_VIDEOCONFIGPARAMSENC_MPEG4_H__ 11 12 #include "mixvideoconfigparamsenc.h" 13 #include "mixvideodef.h" 14 15 /** 16 * MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4: 17 * 18 * Get type of class. 19 */ 20 #define MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4 (mix_videoconfigparamsenc_mpeg4_get_type ()) 21 22 /** 23 * MIX_VIDEOCONFIGPARAMSENC_MPEG4: 24 * @obj: object to be type-casted. 25 */ 26 #define MIX_VIDEOCONFIGPARAMSENC_MPEG4(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4, MixVideoConfigParamsEncMPEG4)) 27 28 /** 29 * MIX_IS_VIDEOCONFIGPARAMSENC_MPEG4: 30 * @obj: an object. 31 * 32 * Checks if the given object is an instance of #MixVideoConfigParamsEncMPEG4 33 */ 34 #define MIX_IS_VIDEOCONFIGPARAMSENC_MPEG4(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4)) 35 36 /** 37 * MIX_VIDEOCONFIGPARAMSENC_MPEG4_CLASS: 38 * @klass: class to be type-casted. 39 */ 40 #define MIX_VIDEOCONFIGPARAMSENC_MPEG4_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4, MixVideoConfigParamsEncMPEG4Class)) 41 42 /** 43 * MIX_IS_VIDEOCONFIGPARAMSENC_MPEG4_CLASS: 44 * @klass: a class. 45 * 46 * Checks if the given class is #MixVideoConfigParamsEncMPEG4Class 47 */ 48 #define MIX_IS_VIDEOCONFIGPARAMSENC_MPEG4_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4)) 49 50 /** 51 * MIX_VIDEOCONFIGPARAMSENC_MPEG4_GET_CLASS: 52 * @obj: a #MixParams object. 53 * 54 * Get the class instance of the object. 55 */ 56 #define MIX_VIDEOCONFIGPARAMSENC_MPEG4_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIX_TYPE_VIDEOCONFIGPARAMSENC_MPEG4, MixVideoConfigParamsEncMPEG4Class)) 57 58 typedef struct _MixVideoConfigParamsEncMPEG4 MixVideoConfigParamsEncMPEG4; 59 typedef struct _MixVideoConfigParamsEncMPEG4Class MixVideoConfigParamsEncMPEG4Class; 60 61 /** 62 * MixVideoConfigParamsEncMPEG4: 63 * 64 * MI-X VideoConfig Parameter object 65 */ 66 struct _MixVideoConfigParamsEncMPEG4 67 { 68 /*< public > */ 69 MixVideoConfigParamsEnc parent; 70 71 /*< public > */ 72 73 /* TODO: Add MPEG-4 configuration paramters */ 74 guchar profile_and_level_indication; 75 guint fixed_vop_time_increment; 76 guint disable_deblocking_filter_idc; 77 78 void *reserved1; 79 void *reserved2; 80 void *reserved3; 81 void *reserved4; 82 }; 83 84 /** 85 * MixVideoConfigParamsEncMPEG4Class: 86 * 87 * MI-X VideoConfig object class 88 */ 89 struct _MixVideoConfigParamsEncMPEG4Class 90 { 91 /*< public > */ 92 MixVideoConfigParamsEncClass parent_class; 93 94 /* class members */ 95 }; 96 97 /** 98 * mix_videoconfigparamsenc_mpeg4_get_type: 99 * @returns: type 100 * 101 * Get the type of object. 102 */ 103 GType mix_videoconfigparamsenc_mpeg4_get_type (void); 104 105 /** 106 * mix_videoconfigparamsenc_mpeg4_new: 107 * @returns: A newly allocated instance of #MixVideoConfigParamsEncMPEG4 108 * 109 * Use this method to create new instance of #MixVideoConfigParamsEncMPEG4 110 */ 111 MixVideoConfigParamsEncMPEG4 *mix_videoconfigparamsenc_mpeg4_new (void); 112 /** 113 * mix_videoconfigparamsenc_mpeg4_ref: 114 * @mix: object to add reference 115 * @returns: the MixVideoConfigParamsEncMPEG4 instance where reference count has been increased. 116 * 117 * Add reference count. 118 */ 119 MixVideoConfigParamsEncMPEG4 120 * mix_videoconfigparamsenc_mpeg4_ref (MixVideoConfigParamsEncMPEG4 * mix); 121 122 /** 123 * mix_videoconfigparamsenc_mpeg4_unref: 124 * @obj: object to unref. 125 * 126 * Decrement reference count of the object. 127 */ 128 #define mix_videoconfigparamsenc_mpeg4_unref(obj) mix_params_unref(MIX_PARAMS(obj)) 129 130 /* Class Methods */ 131 132 /* TODO: Add getters and setters for other properties */ 133 134 MIX_RESULT mix_videoconfigparamsenc_mpeg4_set_dlk (MixVideoConfigParamsEncMPEG4 * obj, 135 guint disable_deblocking_filter_idc); 136 137 MIX_RESULT mix_videoconfigparamsenc_mpeg4_get_dlk (MixVideoConfigParamsEncMPEG4 * obj, 138 guint * disable_deblocking_filter_idc); 139 140 MIX_RESULT mix_videoconfigparamsenc_mpeg4_set_profile_level (MixVideoConfigParamsEncMPEG4 * obj, 141 guchar profile_and_level_indication); 142 143 MIX_RESULT mix_videoconfigparamsenc_mpeg4_get_profile_level (MixVideoConfigParamsEncMPEG4 * obj, 144 guchar * profile_and_level_indication); 145 146 MIX_RESULT mix_videoconfigparamsenc_mpeg4_set_fixed_vti (MixVideoConfigParamsEncMPEG4 * obj, 147 guint fixed_vop_time_increment); 148 149 MIX_RESULT mix_videoconfigparamsenc_mpeg4_get_fixed_vti (MixVideoConfigParamsEncMPEG4 * obj, 150 guint * fixed_vop_time_increment); 151 152 #endif /* __MIX_VIDEOCONFIGPARAMSENC_MPEG4_H__ */ 153