• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# AVPixelFormat类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中AVPixelFormat的典型用法代码示例。如果您正苦于以下问题:C# AVPixelFormat类的具体用法?C# AVPixelFormat怎么用?C# AVPixelFormat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AVPixelFormat类属于命名空间,在下文中一共展示了AVPixelFormat类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Initialize

 private void Initialize(int width, int height, AVPixelFormat inFormat)
 {
   _initialized = true;
   _pContext = FFmpegInvoke.sws_getContext(width, height, inFormat, width, height, _pixelFormat, FFmpegInvoke.SWS_FAST_BILINEAR, null, null, null);
   if (_pContext == null)
     throw new VideoConverterException("Could not initialize the conversion context.");
   _pCurrentFrame = FFmpegInvoke.avcodec_alloc_frame();
   int outputDataSize = FFmpegInvoke.avpicture_get_size(_pixelFormat, width, height);
   _outputData = new byte[outputDataSize];
   fixed (byte* pOutputData = &_outputData[0])
   {
     FFmpegInvoke.avpicture_fill((AVPicture*)_pCurrentFrame, pOutputData, _pixelFormat, width, height);
   }
 }
开发者ID:guozanhua,项目名称:OculusArDroneKinect,代码行数:14,代码来源:VideoConverter.cs


示例2: av_picture_copy

 public static extern void av_picture_copy(AVPicture* dst, AVPicture* src, AVPixelFormat pix_fmt, int width, int height);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例3: sws_isSupportedEndiannessConversion

 public static extern int sws_isSupportedEndiannessConversion(AVPixelFormat pix_fmt);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例4: av_image_copy_to_buffer

 public static extern int av_image_copy_to_buffer(byte* dst, int dst_size, byte** src_data, int* src_linesize, AVPixelFormat pix_fmt, int width, int height, int align);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例5: av_image_fill_arrays

 public static extern int av_image_fill_arrays(byte** dst_data, int* dst_linesize, byte* src, AVPixelFormat pix_fmt, int width, int height, int align);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例6: av_image_alloc

 public static extern int av_image_alloc(byte** pointers, int* linesizes, int w, int h, AVPixelFormat pix_fmt, int align);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例7: av_image_fill_linesizes

 public static extern int av_image_fill_linesizes(int* linesizes, AVPixelFormat pix_fmt, int width);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例8: av_find_best_pix_fmt_of_2

 public static extern AVPixelFormat av_find_best_pix_fmt_of_2(AVPixelFormat dst_pix_fmt1, AVPixelFormat dst_pix_fmt2, AVPixelFormat src_pix_fmt, int has_alpha, int* loss_ptr);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例9: av_opt_set_pixel_fmt

 public static extern int av_opt_set_pixel_fmt(void* obj, String name, AVPixelFormat fmt, int search_flags);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例10: avcodec_default_get_format

 public static extern AVPixelFormat avcodec_default_get_format(AVCodecContext* s, AVPixelFormat* fmt);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例11: avcodec_find_best_pix_fmt_of_list

 public static extern AVPixelFormat avcodec_find_best_pix_fmt_of_list(AVPixelFormat* pix_fmt_list, AVPixelFormat src_pix_fmt, int has_alpha, int* loss_ptr);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例12: avcodec_pix_fmt_to_codec_tag

 public static extern int avcodec_pix_fmt_to_codec_tag(AVPixelFormat pix_fmt);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例13: avcodec_get_chroma_sub_sample

 public static extern void avcodec_get_chroma_sub_sample(AVPixelFormat pix_fmt, int* h_shift, int* v_shift);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例14: av_picture_pad

 public static extern int av_picture_pad(AVPicture* dst, AVPicture* src, int height, int width, AVPixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int* color);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例15: av_picture_crop

 public static extern int av_picture_crop(AVPicture* dst, AVPicture* src, AVPixelFormat pix_fmt, int top_band, int left_band);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例16: av_pix_fmt_swap_endianness

 public static extern AVPixelFormat av_pix_fmt_swap_endianness(AVPixelFormat pix_fmt);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例17: av_get_pix_fmt_loss

 public static extern int av_get_pix_fmt_loss(AVPixelFormat dst_pix_fmt, AVPixelFormat src_pix_fmt, int has_alpha);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例18: av_opt_get_pixel_fmt

 public static extern int av_opt_get_pixel_fmt(void* obj, String name, int search_flags, AVPixelFormat* out_fmt);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例19: av_image_get_linesize

 public static extern int av_image_get_linesize(AVPixelFormat pix_fmt, int width, int plane);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs


示例20: avfilter_get_video_buffer_ref_from_arrays

 public static extern AVFilterBufferRef* avfilter_get_video_buffer_ref_from_arrays(byte** data, int* linesize, int perms, int w, int h, AVPixelFormat format);
开发者ID:nbomeroglu37,项目名称:FFmpeg.Wrapper,代码行数:1,代码来源:FFmpegInvoke.cs



注:本文中的AVPixelFormat类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AVSampleFormat类代码示例发布时间:2022-05-24
下一篇:
C# AType类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap