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_VIDEOFRAME_PRIVATE_H__
10 #define __MIX_VIDEOFRAME_PRIVATE_H__
11 
12 #include "mixvideoframe.h"
13 #include "mixsurfacepool.h"
14 
15 typedef enum _MixFrameType
16 {
17   TYPE_I,
18   TYPE_P,
19   TYPE_B,
20   TYPE_INVALID
21 } MixFrameType;
22 
23 typedef struct _MixVideoFramePrivate MixVideoFramePrivate;
24 
25 struct _MixVideoFramePrivate
26 {
27   /*< private > */
28   MixSurfacePool *pool;
29   MixFrameType frame_type;
30   gboolean is_skipped;
31   MixVideoFrame *real_frame;
32   GStaticRecMutex lock;
33 };
34 
35 /**
36 * MIX_VIDEOFRAME_PRIVATE:
37 *
38 * Get private structure of this class.
39 * @obj: class object for which to get private data.
40 */
41 #define MIX_VIDEOFRAME_GET_PRIVATE(obj)  \
42    (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MIX_TYPE_VIDEOFRAME, MixVideoFramePrivate))
43 
44 
45 /* Private functions */
46 MIX_RESULT
47 mix_videoframe_set_pool (MixVideoFrame *obj, MixSurfacePool *pool);
48 
49 MIX_RESULT
50 mix_videoframe_set_frame_type (MixVideoFrame *obj,  MixFrameType frame_type);
51 
52 MIX_RESULT
53 mix_videoframe_get_frame_type (MixVideoFrame *obj,  MixFrameType *frame_type);
54 
55 MIX_RESULT
56 mix_videoframe_set_is_skipped (MixVideoFrame *obj,  gboolean is_skipped);
57 
58 MIX_RESULT
59 mix_videoframe_get_is_skipped (MixVideoFrame *obj,  gboolean *is_skipped);
60 
61 MIX_RESULT
62 mix_videoframe_set_real_frame (MixVideoFrame *obj,  MixVideoFrame *real);
63 
64 MIX_RESULT
65 mix_videoframe_get_real_frame (MixVideoFrame *obj,  MixVideoFrame **real);
66 
67 
68 #endif /* __MIX_VIDEOFRAME_PRIVATE_H__ */
69