1 /* 2 * Copyright (c) 2011 Intel Corporation. All Rights Reserved. 3 * Copyright (c) Imagination Technologies Limited, UK 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, 9 * distribute, sub license, and/or sell copies of the Software, and to 10 * permit persons to whom the Software is furnished to do so, subject to 11 * the following conditions: 12 * 13 * The above copyright notice and this permission notice (including the 14 * next paragraph) shall be included in all copies or substantial portions 15 * of the Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 20 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR 21 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 * 25 */ 26 #ifndef _TNG_TRACE_H_ 27 #define _TNG_TRACE_H_ 28 29 #include <va/va_enc_h264.h> 30 #include "tng_hostcode.h" 31 #include "psb_drv_video.h" 32 33 void tng_trace_setvideo(context_ENC_p ctx, IMG_UINT32 ui32StreamID); 34 void tng_H264ES_trace_seq_params(VAEncSequenceParameterBufferH264 *psTraceSeqParams); 35 void tng_H264ES_trace_pic_params(VAEncPictureParameterBufferH264 *psTracePicParams); 36 void tng_H264ES_trace_slice_params(VAEncSliceParameterBufferH264 *psTraceSliceParams); 37 void tng_H264ES_trace_misc_rc_params(VAEncMiscParameterRateControl *psTraceMiscRcParams); 38 39 void tng_trace_seq_header_params(H264_SEQUENCE_HEADER_PARAMS *psSHParams); 40 void tng_trace_pic_header_params(H264_PICTURE_HEADER_PARAMS *psSHParams); 41 void tng_trace_slice_header_params(H264_SLICE_HEADER_PARAMS *psSlHParams); 42 int apSliceParamsTemplates_dump(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex, IMG_UINT32 ui32SliceBufIdx); 43 void tng__trace_seqconfig( 44 IMG_BOOL bIsBPicture, 45 IMG_BOOL bFieldMode, 46 IMG_UINT8 ui8SwapChromas, 47 IMG_BOOL32 ui32FrameStoreFormat, 48 IMG_UINT8 uiDeblockIDC); 49 void tng__trace_seq_header(void* pointer); 50 51 #endif 52