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 * \file isvcd_nal_parse.h 23 * 24 * \brief 25 * Contains routines that resample for SVC resampling 26 * 27 * Detailed_description 28 * 29 * \date 30 * 31 * 32 * \author : Kishore 33 ************************************************************************** 34 */ 35 36 #ifndef _SVCD_BITSTREAM_EXTRACT_H_ 37 #define _SVCD_BITSTREAM_EXTRACT_H_ 38 39 /*****************************************************************************/ 40 /* File Includes */ 41 /*****************************************************************************/ 42 43 /*****************************************************************************/ 44 /* Constant Macros */ 45 /*****************************************************************************/ 46 47 /*****************************************************************************/ 48 /* Function Macros */ 49 /*****************************************************************************/ 50 51 /*****************************************************************************/ 52 /* Typedefs */ 53 /*****************************************************************************/ 54 55 /*****************************************************************************/ 56 /* Enums */ 57 /*****************************************************************************/ 58 59 typedef enum 60 { 61 FULL_INPUT_MODE = 0, 62 PARTIAL_INPUT_MODE 63 } NAL_PARSE_INPUT_MODE_T; 64 65 typedef enum 66 { 67 VCL_NAL_FOUND_FALSE = 0, 68 VCL_NAL_FOUND_TRUE 69 } EXTRACT_NON_VCL_NAL_RETURN_STATUS_T; 70 71 typedef enum 72 { 73 PIC_BOUNDARY_FALSE, 74 PIC_BOUNDARY_TRUE, 75 FLUSH_DECODED_PICTURE 76 } EXTRACT_VCL_NAL_RETURN_STATUS_T; 77 78 /*****************************************************************************/ 79 /* Structure */ 80 /*****************************************************************************/ 81 82 /*****************************************************************************/ 83 /* Extern Variable Declarations */ 84 /*****************************************************************************/ 85 86 /*****************************************************************************/ 87 /* Extern Function Declarations */ 88 /*****************************************************************************/ 89 90 void isvcd_nal_parse_reset_ctxt(WORD32 i4_input_bitstream_mode, WORD32 i4_input_mode, 91 void *pv_nal_parse_ctxt); 92 93 WORD32 isvcd_nal_parse_set_target_attr(WORD32 i4_target_quality_id, WORD32 i4_target_dependency_id, 94 WORD32 i4_target_temporal_id, WORD32 i4_target_priority_id, 95 void *pv_nal_parse_ctxt); 96 97 WORD32 isvcd_nal_parse_vcl_nal_partial(void *pv_nal_parse_ctxt, UWORD8 *pu1_stream_buffer, 98 void *pv_out_non_vcl_nal, void *pv_out_vcl_nal, 99 UWORD32 *pu4_bytes_consumed, UWORD32 *pu4_num_bytes); 100 101 WORD32 isvcd_nal_parse_non_vcl_nal(void *pv_nal_parse_ctxt, UWORD8 *pu1_stream_buffer, 102 void *pv_out_non_vcl_nal, UWORD32 *pu4_bytes_consumed, 103 UWORD32 *pu4_num_bytes); 104 105 WORD32 isvcd_nal_parse_partial_signal_eos(void *pv_nal_parse_ctxt, void *pv_out_vcl_nal, 106 void *pv_out_non_vcl_nal); 107 108 #endif /* _SVCD_BITSTREAM_EXTRACT_H_ */ 109