h263free.c
来自「Linux下的基于intel的ipp库的h.263解码源代码」· C语言 代码 · 共 49 行
C
49 行
/******************************************************************************
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2003 Intel Corporation. All Rights Reserved.
//
// Description:
// Intel(R) Integrated Performance Primitives Sample Code H263 Decoder
//
// Function List
// decoder_free_h263()
//
******************************************************************************/
#include "samph263.h"
#include <stdlib.h>
#include <string.h>
/******************************************************************************
// Function Name: decoder_free_h263
//
// Description: Free allocated memory buffer and set the pointer to NULL.
// This function is called after all pictures are decoded.
//
// Parameter:
// Input:
// state: Pointer to h263_dec_state structure holding decode status
// Output:
// state: Pointer to h263_dec_state structure holding decode status
//
// Return:
// sample_status:
// [SAMPLE_STATUS_NOERR]: Succeeds
//
// Notes: None
******************************************************************************/
sample_status decoder_free_h263(h263_dec_state *state)
{
if(NULL != state->work_buf) {
free(state->work_buf);
}
state->work_buf = NULL;
return SAMPLE_STATUS_NOERR;
}
/* EOF */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?