加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

FFMPEG中重要的数据结构的挖掘

发布时间:2021-05-26 00:06:12 所属栏目:大数据 来源:网络整理
导读:[cpp] ? view plain ?copy ? typedef ? struct ? AVFormatContext ?{?? ???? struct ?AVInputFormat?*iformat;?? ???? void ?*priv_data;?? ?????? ????ByteIOContext?*pb;?? ????unsigned? int ?nb_streams;?? ???? AVStream?*streams[MAX_STREAMS];? ? }?A

[cpp]? view plain ?copy ?

在CODE上查看代码片

派生到我的代码片

  1. typedef?struct?AVFormatContext?{??
  2. ????struct?AVInputFormat?*iformat;??
  3. ????void?*priv_data;??
  4. ??????
  5. ????ByteIOContext?*pb;??
  6. ????unsigned?int?nb_streams;??
  7. ????AVStream?*streams[MAX_STREAMS];??
  8. }?AVFormatContext;??
  9. ??
  10. ??
  11. struct?AVStream?{??
  12. ????int?index;????/**<?stream?index?in?AVFormatContext?*/??
  13. ????int?id;???????/**<?format-specific?stream?ID?*/??
  14. ????AVCodecContext?*codec;?/**<?codec?context?*/??
  15. ????AVRational?time_base;??
  16. struct?AVCodecParserContext?*parser;??
  17. }?AVStream;??
  18. struct?AVCodecContext?{??
  19. ????uint8_t?*extradata;??
  20. int?extradata_size;??
  21. ????AVRational?time_base;??
  22. int?width,?height;??
  23. enum?PixelFormat?pix_fmt;??
  24. ????/*?audio?only?*/??
  25. int?sample_rate;?///<?samples?per?second??
  26. int?channels;????///<?number?of?audio?channels??
  27. char?codec_name[32];??
  28. enum?CodecType?codec_type;?/*?see?CODEC_TYPE_xxx?*/??
  29. enum?CodecID?codec_id;?/*?see?CODEC_ID_xxx?*/??
  30. ????unsigned?int?codec_tag;??
  31. ????struct?AVCodec?*codec;??
  32. void?*priv_data;??
  33. }?AVCodecContext;??
  34. AVCodec?{??
  35. int?(*init)(AVCodecContext?*);??
  36. int?(*encode)(AVCodecContext?*,?uint8_t?*buf,?int?buf_size,?void?*data);??
  37. int?(*close)(AVCodecContext?*);??
  38. int?(*decode)(AVCodecContext?*,153); font-weight:bold; background-color:inherit">void?*outdata,87); font-weight:bold; background-color:inherit">int?*outdata_size,??
  39. ??????????????????const?uint8_t?*buf,87); font-weight:bold; background-color:inherit">int?buf_size);??
  40. }??

http://blog.csdn.net/mydeardingxiaoli/article/details/17168899

(编辑:核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读