• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_VIDEO_PRIVATE_H__
10 #define __MIX_VIDEO_PRIVATE_H__
11 
12 
13 typedef struct _MixVideoPrivate MixVideoPrivate;
14 
15 struct _MixVideoPrivate {
16 	/*< private > */
17 
18 	GMutex *objlock;
19 	gboolean initialized;
20 	gboolean configured;
21 
22 	VADisplay va_display;
23 
24 	int va_major_version;
25 	int va_minor_version;
26 
27 	MixCodecMode codec_mode;
28 
29 	MixVideoInitParams 	*init_params;
30 	MixDrmParams 		*drm_params;
31 
32 	MixVideoConfigParams 	*config_params;
33 
34 	MixFrameManager 	*frame_manager;
35 	MixVideoFormat 		*video_format;
36 	MixVideoFormatEnc       *video_format_enc;
37 
38 	MixSurfacePool		*surface_pool;
39 	MixBufferPool		*buffer_pool;
40 
41 };
42 
43 /**
44  * MIX_VIDEO_PRIVATE:
45  *
46  * Get private structure of this class.
47  * @obj: class object for which to get private data.
48  */
49 #define MIX_VIDEO_GET_PRIVATE(obj)  \
50    (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MIX_TYPE_VIDEO, MixVideoPrivate))
51 
52 /* Private functions */
53 void mix_video_private_initialize(MixVideoPrivate* priv);
54 void mix_video_private_cleanup(MixVideoPrivate* priv);
55 
56 
57 #endif /* __MIX_VIDEO_PRIVATE_H__ */
58