• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright (C) 2018 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *****************************************************************************
18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20 
21 /*!
22 ******************************************************************************
23 * \file ihevce_buffer_que_private.h
24 *
25 * \brief
26 *    This file contains private structures & definitions of Buffer Queue manager
27 *
28 * \date
29 *    18/09/2012
30 *
31 * \author
32 *    Ittiam
33 *
34 ******************************************************************************
35 */
36 
37 #ifndef _IHEVCE_BUFFER_QUE_PRIVATE_H_
38 #define _IHEVCE_BUFFER_QUE_PRIVATE_H_
39 
40 /*****************************************************************************/
41 /* Enums                                                                     */
42 /*****************************************************************************/
43 typedef enum
44 {
45 
46     BUFFER_QUE_CTXT = 0,
47     BUFFER_QUE_NUM_USER_MEM,
48     BUFFER_QUE_PROD_STS_MEM,
49     BUFFER_QUE_ENC_SEQ_MEM,
50     BUFFER_QUE_QUED_SEQ_MEM,
51 
52     /* should be last entry */
53     NUM_BUFFER_QUE_MEM_RECS
54 
55 } BUFFER_QUE_MEM_T;
56 
57 /*****************************************************************************/
58 /* Structures                                                                */
59 /*****************************************************************************/
60 
61 typedef struct
62 {
63     UWORD32 u4_next_disp_seq; /*! < Next display sequence number   */
64     UWORD32 u4_last_disp_seq; /*! < Last displayed sequence number */
65     UWORD32 u4_last_cons; /*! < last consumed buffer ID        */
66     UWORD32 u4_last_prod; /*! < last produced buffer ID        */
67     WORD32 i4_num_bufs; /*! < number of buffers              */
68     WORD32 i4_num_active_bufs; /*! < number of active buffers       */
69 
70     UWORD32 *pu4_enc_seq; /*! < Array to store encode seq of each
71                                       buffer */
72     UWORD32 *pu4_que_seq; /*! < Array to store queued seq of each
73                                        buffer */
74     void **ppv_buff_ptrs; /*! < Pointer to array of buffer structure */
75     WORD32 *pi4_num_users; /*! < Array to store number of users */
76     WORD32 *pi4_produced_sts; /*! < Array to store produced status */
77 } buf_que_t;
78 
79 #endif  //_IHEVCE_BUFFER_QUE_PRIVATE_H_
80