• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*!
2  * \copy
3  *     Copyright (c)  2009-2013, Cisco Systems
4  *     All rights reserved.
5  *
6  *     Redistribution and use in source and binary forms, with or without
7  *     modification, are permitted provided that the following conditions
8  *     are met:
9  *
10  *        * Redistributions of source code must retain the above copyright
11  *          notice, this list of conditions and the following disclaimer.
12  *
13  *        * Redistributions in binary form must reproduce the above copyright
14  *          notice, this list of conditions and the following disclaimer in
15  *          the documentation and/or other materials provided with the
16  *          distribution.
17  *
18  *     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  *     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  *     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21  *     FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22  *     COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23  *     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24  *     BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25  *     LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26  *     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27  *     LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28  *     ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  *     POSSIBILITY OF SUCH DAMAGE.
30  *
31  *
32  * \file    stat.h
33  *
34  * \brief   statistical pData information
35  *
36  * \date    4/22/2009 Created
37  *
38  *************************************************************************************
39  */
40 #if !defined(WELS_ENCODER_STATISTICAL_DATA_H__)
41 #define WELS_ENCODER_STATISTICAL_DATA_H__
42 
43 namespace WelsEnc {
44 
45 /*
46  *  Stat quality
47  */
48 typedef struct TagStatQuality {
49 
50 float   rYPsnr[5];
51 float   rUPsnr[5];
52 float   rVPsnr[5];
53 
54 } SStatQuality;
55 
56 /*
57  *  Stat complexity pData
58  */
59 typedef struct TagComplexityStat {
60 
61 #ifdef FME_TEST
62 int32_t         cost_time;
63 int32_t         me_time;
64 int32_t         mvp_time;
65 int32_t         mvb_time;
66 #endif
67 
68 // any else?
69 
70 } SComplexityStat;
71 
72 /*
73  *  Stat slice details information
74  */
75 typedef struct TagStatSliceInfo {
76 
77 /* per slice info */
78 int32_t         iSliceCount[5];
79 int32_t         iSliceSize [5];
80 int32_t         iMbCount   [5][18];
81 
82 } SStatSliceInfo;
83 
84 /*
85  *  For overall statistical pData
86  */
87 typedef struct TagStatData {
88 
89 // Quality
90 SStatQuality    sQualityStat;
91 
92 // Complexity
93 SComplexityStat sComplexityStat;
94 
95 // SSlice information output
96 SStatSliceInfo  sSliceData;
97 
98 } SStatData;
99 
100 }
101 
102 #endif//WELS_ENCODER_STATISTICAL_DATA_H__
103