資源簡介
支持對ts文件中pat、pmt的分析。 可以獲取指定節目的i幀,并保持為yuv或bmp文件。(為什么沒有0積分的選項 ???)
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?“cvshow.h“
using?namespace?cv;
int?cvshow_rgb(uint8_t?*rgb_data?int32_t?rgb_size?int32_t?width?int32_t?height?int32_t?channel?char?*name)
{
????cv::Mat?rgb_mat;
????namedWindow(name?WINDOW_AUTOSIZE);
????rgb_mat.create(height?width?CV_8UC3);?/*CV_8UC3?uint8_t?RGB3通道*/
????memcpy(rgb_mat.data?rgb_data?rgb_size*sizeof(uint8_t));
????cv::imshow(name?rgb_mat);
????waitKey();
????
????rgb_mat.release();
????destroyWindow(name);
????return?0;
}
- 上一篇:HPPRO3330 開啟SLIC
- 下一篇:中文情感分析詞庫包含極值表第一版
評論
共有 條評論