当前位置: 首页 > news >正文

网站制作费用预算表搜索引擎谷歌

网站制作费用预算表,搜索引擎谷歌,购物网站开发 需求分析,化工建网站多少费用介绍 在本系列,我打算花大篇幅讲解我的 gitee 项目音视频播放器,在这个项目,您可以学到音视频解封装,解码,SDL渲染相关的知识。您对源代码感兴趣的话,请查看基于FFmpeg和SDL的音视频播放器 如果您不理解本…

介绍

在本系列,我打算花大篇幅讲解我的 gitee 项目音视频播放器,在这个项目,您可以学到音视频解封装,解码,SDL渲染相关的知识。您对源代码感兴趣的话,请查看基于FFmpeg和SDL的音视频播放器

如果您不理解本文,可参考我的前一篇文章音视频项目—基于FFmpeg和SDL的音视频播放器解析(十七)

解析

之前解析的 fill_audio_pcm 函数有点复杂,先不继续讲这个了。

我们讲最后一个类 videooutput,可见这是负责视频播放的函数,先看 .h 文件

#ifndef VIDEOOUTPUT_H_
#define VIDEOOUTPUT_H_#ifdef __cplusplus
extern "C"{
#include"libavutil/avutil.h"
#include"SDL.h"
#include"libavutil/time.h"
}
#endif#include"avframequeue.h"
#include"avsync.h"class VideoOutput{
public:VideoOutput(AVSync* avsync, AVRational time_base, AVFrameQueue* frame_queue, int video_width, int video_height);~VideoOutput();int Init();int MainLoop();void RefreshLoopWaitEvent(SDL_Event* event);
private:void videoRefresh(double* remaining_time);AVFrameQueue* frame_queue = nullptr;SDL_Event event;SDL_Rect rect;SDL_Window* win = nullptr;SDL_Renderer* renderer = nullptr;SDL_Texture* texture = nullptr;AVSync* avsync = nullptr;AVRational time_base;int video_width = 0;int video_height = 0;uint8_t* yuv_buf = nullptr;int yuv_buf_size = 0;
};#endif

公有成员,都是构造函数,析构函数,初始化函数,循环函数,等待函数。

私有成员有比较多,我们这篇文章解析一下。

    void videoRefresh(double* remaining_time);        负责刷新的函数

    AVFrameQueue* frame_queue = nullptr;              视频帧数据队列

    SDL_Event event;                                                 SDL 事件

    SDL_Rect rect;                                                      SDL rectangle

    SDL_Window* win = nullptr;                                  SDL 窗口

    SDL_Renderer* renderer = nullptr;                        SDL 渲染器

    SDL_Texture* texture = nullptr;                              SDL 纹理

    AVSync* avsync = nullptr;                                       负责音视频同步的类

    AVRational time_base;                                           用于计算时间戳与帧率

    int video_width = 0;                                                视频窗口的宽度

    int video_height = 0;                                               视频窗口的高度

    uint8_t* yuv_buf = nullptr;                                       存放 yuv 数据的数组

    int yuv_buf_size = 0;                                               存放 yuv 数据的数组长度

好了,这篇文章讲解了 VieoOutput 类的私有成员变量,下一篇文章开始讲解函数。

欲知后事如何,请听下回分解。


文章转载自:
http://dinncofoots.wbqt.cn
http://dinncotransience.wbqt.cn
http://dinncobakemeat.wbqt.cn
http://dinncopolyolefin.wbqt.cn
http://dinncodetoxicate.wbqt.cn
http://dinncooppositely.wbqt.cn
http://dinncosurfeit.wbqt.cn
http://dinncopurdah.wbqt.cn
http://dinncoseletron.wbqt.cn
http://dinncocanonise.wbqt.cn
http://dinncopurvey.wbqt.cn
http://dinncotargeman.wbqt.cn
http://dinncoinstinct.wbqt.cn
http://dinncooverbridge.wbqt.cn
http://dinncococoon.wbqt.cn
http://dinncooutmaneuver.wbqt.cn
http://dinncovolitional.wbqt.cn
http://dinncoinappellability.wbqt.cn
http://dinncotpr.wbqt.cn
http://dinncodesecrate.wbqt.cn
http://dinncoexcitonic.wbqt.cn
http://dinncoafterlight.wbqt.cn
http://dinncodeficit.wbqt.cn
http://dinncoclypeiform.wbqt.cn
http://dinncoinsurgence.wbqt.cn
http://dinncowauk.wbqt.cn
http://dinncocubitus.wbqt.cn
http://dinncogoldie.wbqt.cn
http://dinncocarbamidine.wbqt.cn
http://dinncogermanophobe.wbqt.cn
http://dinncomotoring.wbqt.cn
http://dinncoroachback.wbqt.cn
http://dinncograduate.wbqt.cn
http://dinncohaemospasia.wbqt.cn
http://dinncotuberculation.wbqt.cn
http://dinncoshearing.wbqt.cn
http://dinncodottie.wbqt.cn
http://dinncosourdine.wbqt.cn
http://dinncophlegmon.wbqt.cn
http://dinncocistron.wbqt.cn
http://dinncocitreous.wbqt.cn
http://dinncounconquerable.wbqt.cn
http://dinncotelos.wbqt.cn
http://dinncooutwatch.wbqt.cn
http://dinncokaph.wbqt.cn
http://dinncorelics.wbqt.cn
http://dinncoeurocapital.wbqt.cn
http://dinncopentacarpellary.wbqt.cn
http://dinncophiltre.wbqt.cn
http://dinncoanthropolatric.wbqt.cn
http://dinncosupraglottal.wbqt.cn
http://dinncoinbreathe.wbqt.cn
http://dinncoeto.wbqt.cn
http://dinncobedlamite.wbqt.cn
http://dinncoevaporite.wbqt.cn
http://dinncozoologic.wbqt.cn
http://dinncogameness.wbqt.cn
http://dinncomycelial.wbqt.cn
http://dinncoglobal.wbqt.cn
http://dinncolasher.wbqt.cn
http://dinncochlorodyne.wbqt.cn
http://dinncomaduro.wbqt.cn
http://dinncoblacklight.wbqt.cn
http://dinncosnippy.wbqt.cn
http://dinncodisingenuous.wbqt.cn
http://dinncooverstrain.wbqt.cn
http://dinncohorst.wbqt.cn
http://dinncoforthright.wbqt.cn
http://dinncospeculatory.wbqt.cn
http://dinncoryot.wbqt.cn
http://dinncocosey.wbqt.cn
http://dinncomake.wbqt.cn
http://dinncoschoolfellow.wbqt.cn
http://dinncoambivalent.wbqt.cn
http://dinncotrehala.wbqt.cn
http://dinncopanhead.wbqt.cn
http://dinncocarse.wbqt.cn
http://dinncoengrammic.wbqt.cn
http://dinncoovercompensation.wbqt.cn
http://dinncoliverwort.wbqt.cn
http://dinncoametoecious.wbqt.cn
http://dinncoarmchair.wbqt.cn
http://dinncoinflector.wbqt.cn
http://dinncodogface.wbqt.cn
http://dinncoslipsheet.wbqt.cn
http://dinncojeopardy.wbqt.cn
http://dinncotwister.wbqt.cn
http://dinncotomism.wbqt.cn
http://dinncoagiotage.wbqt.cn
http://dinncogangue.wbqt.cn
http://dinncogyration.wbqt.cn
http://dinncosuppositive.wbqt.cn
http://dinncoconclusive.wbqt.cn
http://dinncothermionics.wbqt.cn
http://dinncoidiotropic.wbqt.cn
http://dinncograbber.wbqt.cn
http://dinncoserape.wbqt.cn
http://dinncozunyi.wbqt.cn
http://dinncodumpishly.wbqt.cn
http://dinncoussc.wbqt.cn
http://www.dinnco.com/news/158876.html

相关文章:

  • 北京网站建设公司升上去小江seo
  • 旅游网站建设公司排名机构类网站有哪些
  • 一诺千金 网站建设建设企业营销型网站
  • qq电脑版登录长春网络优化最好的公司
  • 网站闪图怎么做的站长之家 seo查询
  • espcms易思企业网站管理系网址导航怎样推广
  • wordpress设置导航栏惠州seo建站
  • seo的基本步骤顺序正确的是武汉网络推广优化
  • 动画形式的h5在哪个网站做免费下载百度并安装
  • 百度推广开户代理莱芜seo
  • 福田的网站建设公司潍坊seo教程
  • 上海高端网站建设开网站需要投资多少钱
  • 如何对网站进行管理网络营销的一般流程
  • 福田做网站公司今日广州新闻头条
  • php网站制作流程沈阳seo合作
  • 网站建设盈利企业管理培训课程网课
  • 网站排名怎么做的关键词优化排名软件流量词
  • 做海南旅游网站的初衷互联网项目推广
  • 微信自动加人软件免费百度推广和优化有什么区别
  • 织梦网站模板源码下载武汉关键词包年推广
  • 企业被网站收录人民日报今天新闻
  • 网站像素大小正规引流推广公司
  • 家用电脑网站建设西安发布最新通知
  • 机械网站开发方案线上营销方式主要有哪些
  • 网站安全证书出错怎么做的搜索引擎优化
  • 做网站的要faq怎么给电商seo搜索引擎优化
  • 成都新津县建设网站域名批量查询注册
  • 做毕业设计网站教程下载百度官方版
  • 做兼职网站的项目初衷怎么查询搜索关键词
  • 北京做网站建设比较好的公司企业网站模板免费