1/* 2INTEL CONFIDENTIAL 3Copyright 2009 Intel Corporation All Rights Reserved. 4The 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 6No 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_H264_H__ 10#define __MIX_VIDEOCONFIGPARAMSENC_H264_H__ 11 12#include "mixvideoconfigparamsenc.h" 13#include "mixvideodef.h" 14 15/** 16* MIX_TYPE_VIDEOCONFIGPARAMSENC_H264: 17* 18* Get type of class. 19*/ 20#define MIX_TYPE_VIDEOCONFIGPARAMSENC_H264 (mix_videoconfigparamsenc_h264_get_type ()) 21 22/** 23* MIX_VIDEOCONFIGPARAMSENC_H264: 24* @obj: object to be type-casted. 25*/ 26#define MIX_VIDEOCONFIGPARAMSENC_H264(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIX_TYPE_VIDEOCONFIGPARAMSENC_H264, MixVideoConfigParamsEncH264)) 27 28/** 29* MIX_IS_VIDEOCONFIGPARAMSENC_H264: 30* @obj: an object. 31* 32* Checks if the given object is an instance of #MixVideoConfigParamsEncH264 33*/ 34#define MIX_IS_VIDEOCONFIGPARAMSENC_H264(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIX_TYPE_VIDEOCONFIGPARAMSENC_H264)) 35 36/** 37* MIX_VIDEOCONFIGPARAMSENC_H264_CLASS: 38* @klass: class to be type-casted. 39*/ 40#define MIX_VIDEOCONFIGPARAMSENC_H264_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIX_TYPE_VIDEOCONFIGPARAMSENC_H264, MixVideoConfigParamsEncH264Class)) 41 42/** 43* MIX_IS_VIDEOCONFIGPARAMSENC_H264_CLASS: 44* @klass: a class. 45* 46* Checks if the given class is #MixVideoConfigParamsEncH264Class 47*/ 48#define MIX_IS_VIDEOCONFIGPARAMSENC_H264_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIX_TYPE_VIDEOCONFIGPARAMSENC_H264)) 49 50/** 51* MIX_VIDEOCONFIGPARAMSENC_H264_GET_CLASS: 52* @obj: a #MixParams object. 53* 54* Get the class instance of the object. 55*/ 56#define MIX_VIDEOCONFIGPARAMSENC_H264_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIX_TYPE_VIDEOCONFIGPARAMSENC_H264, MixVideoConfigParamsEncH264Class)) 57 58typedef struct _MixVideoConfigParamsEncH264 MixVideoConfigParamsEncH264; 59typedef struct _MixVideoConfigParamsEncH264Class MixVideoConfigParamsEncH264Class; 60 61/** 62* MixVideoConfigParamsEncH264: 63* 64* MI-X VideoConfig Parameter object 65*/ 66struct _MixVideoConfigParamsEncH264 67{ 68 /*< public > */ 69 MixVideoConfigParamsEnc parent; 70 71 /*< public > */ 72 73 /* TODO: Add H.264 configuration paramters */ 74 guint basic_unit_size; 75 guint slice_num; 76 guint8 disable_deblocking_filter_idc; 77 78 MixDelimiterType delimiter_type; 79 80 void *reserved1; 81 void *reserved2; 82 void *reserved3; 83 void *reserved4; 84}; 85 86/** 87* MixVideoConfigParamsEncH264Class: 88* 89* MI-X VideoConfig object class 90*/ 91struct _MixVideoConfigParamsEncH264Class 92{ 93 /*< public > */ 94 MixVideoConfigParamsEncClass parent_class; 95 96 /* class members */ 97}; 98 99/** 100* mix_videoconfigparamsenc_h264_get_type: 101* @returns: type 102* 103* Get the type of object. 104*/ 105GType mix_videoconfigparamsenc_h264_get_type (void); 106 107/** 108* mix_videoconfigparamsenc_h264_new: 109* @returns: A newly allocated instance of #MixVideoConfigParamsEncH264 110* 111* Use this method to create new instance of #MixVideoConfigParamsEncH264 112*/ 113MixVideoConfigParamsEncH264 *mix_videoconfigparamsenc_h264_new (void); 114/** 115* mix_videoconfigparamsenc_h264_ref: 116* @mix: object to add reference 117* @returns: the MixVideoConfigParamsEncH264 instance where reference count has been increased. 118* 119* Add reference count. 120*/ 121MixVideoConfigParamsEncH264 122 * mix_videoconfigparamsenc_h264_ref (MixVideoConfigParamsEncH264 * mix); 123 124/** 125* mix_videoconfigparamsenc_h264_unref: 126* @obj: object to unref. 127* 128* Decrement reference count of the object. 129*/ 130#define mix_videoconfigparamsenc_h264_unref(obj) mix_params_unref(MIX_PARAMS(obj)) 131 132/* Class Methods */ 133 134/* TODO: Add getters and setters for other properties */ 135MIX_RESULT mix_videoconfigparamsenc_h264_set_bus (MixVideoConfigParamsEncH264 * obj, 136 guint basic_unit_size); 137 138MIX_RESULT mix_videoconfigparamsenc_h264_get_bus (MixVideoConfigParamsEncH264 * obj, 139 guint * basic_unit_size); 140 141MIX_RESULT mix_videoconfigparamsenc_h264_set_dlk (MixVideoConfigParamsEncH264 * obj, 142 guint disable_deblocking_filter_idc); 143 144MIX_RESULT mix_videoconfigparamsenc_h264_get_dlk (MixVideoConfigParamsEncH264 * obj, 145 guint * disable_deblocking_filter_idc); 146 147MIX_RESULT mix_videoconfigparamsenc_h264_set_slice_num(MixVideoConfigParamsEncH264 * obj, 148 guint slice_num); 149 150MIX_RESULT mix_videoconfigparamsenc_h264_get_slice_num(MixVideoConfigParamsEncH264 * obj, 151 guint * slice_num); 152 153MIX_RESULT mix_videoconfigparamsenc_h264_set_delimiter_type (MixVideoConfigParamsEncH264 * obj, 154 MixDelimiterType delimiter_type); 155 156MIX_RESULT mix_videoconfigparamsenc_h264_get_delimiter_type (MixVideoConfigParamsEncH264 * obj, 157 MixDelimiterType * delimiter_type); 158 159#endif /* __MIX_VIDEOCONFIGPARAMSENC_H264_H__ */ 160 161