xref: /aosp_15_r20/external/libavc/encoder/svc/isvce_mode_stat_visualiser.h (revision 495ae853bb871d1e5a258cb02c2cc13cde8ddb9a)
1 /******************************************************************************
2  *
3  * Copyright (C) 2022 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
24 *  isvce_mode_stat_visualiser.h
25 *
26 * @brief
27 *  Contains function declarations for function declared in
28 *  isvce_mode_stat_visualiser.c
29 *
30 * @author
31 *  ittiam
32 *
33 * @remarks
34 *  None
35 *
36 *******************************************************************************
37 */
38 
39 #ifndef _ISVCE_MODE_STAT_VISUALISER_H_
40 #define _ISVCE_MODE_STAT_VISUALISER_H_
41 #if ENABLE_MODE_STAT_VISUALISER
42 
43 #include <stdio.h>
44 
45 #include "ih264_typedefs.h"
46 #include "isvc_structs.h"
47 #include "isvce_structs.h"
48 
49 typedef struct mode_stat_visualiser_t
50 {
51     FILE *ps_output_file;
52 
53     yuv_buf_props_t s_frame_buf;
54 
55 } mode_stat_visualiser_t;
56 
57 extern UWORD32 isvce_get_msv_ctxt_size(UWORD32 u4_wd, UWORD32 u4_ht);
58 
59 extern void isvce_msv_ctxt_init(isvce_codec_t *ps_codec, iv_mem_rec_t *ps_mem_rec);
60 
61 extern void isvce_msv_ctxt_delete(mode_stat_visualiser_t *ps_mode_stat_visualiser);
62 
63 extern void isvce_msv_get_input_frame(mode_stat_visualiser_t *ps_mode_stat_visualiser,
64                                       isvce_inp_buf_t *ps_inp_buf);
65 
66 extern void isvce_msv_dump_visualisation(mode_stat_visualiser_t *ps_mode_stat_visualiser);
67 
68 extern void isvce_msv_set_mode(mode_stat_visualiser_t *ps_mode_stat_visualiser,
69                                isvce_mb_info_t *ps_mb_info, coordinates_t *ps_mb_pos);
70 #endif
71 
72 #endif
73