dvp_histogram.c

来自「ZPAV (H265) PC(X86) demo ZPAV (H26」· C语言 代码 · 共 55 行

C
55
字号

/*
///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//   Copyright (C) 2006-2008  Beijing,  pengzhen (pengzhenxp@yahoo.com.cn)   //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////
*/

/*
#include "dvps.h"

#include "zpav8sys.h"

#include "histogram.h"
*/

#include "interpolate.c"

#include "histogram_system.c"

#include "emd_histogram.c"

int dvp_draw_histogram( dvp_ctx *dvpctx, BYTE* data, int stride, int dw0, int dh0, int dw, int dh )
{

    //DvpContext *s = dvpctx->m_handle; //if( ! s ) return davp_m_handle_fail ; /* error */

	HistogramContext* hc = &(m_pHistogramContext) ;

	/*draw histogram */
	draw_histogram( 0x10, hc->m_pHistogram, data, stride, dw0,dh0, dw, dh ) ; 

	return davp_success ;

}

int dvp_get_histogram( dvp_ctx *dvpctx, void* data, int width, int height, int stride, int dh )
{

    //DvpContext *s = dvpctx->m_handle; //if( ! s ) return davp_m_handle_fail ; /* error */

	HistogramContext* hc = &(m_pHistogramContext) ;

	/* histogram */
	get_histogram(  hc, data, width, height, stride ) ;
	
	/* norm histogram */
	norm_histogram( hc->m_pHistogram , dh ) ; 

	return davp_success ;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?