propdp‘创建一个依赖属性,如下所示:{ setDependencyProperty.Register("MyProperty", typeof(int), typeof(ownerclass), new UIPropertyMetadata(0));public int MyProperty get { return (int)GetVa
我正在使用它来编码MPEG-2视频,在4:2:2配置文件,主要水平。我在AVCodecContext中选择了像素格式PIX_FMT_YUV422P,但是我得到的视频输出的所有颜色都错了,在我看来,编码器错误地读取缓冲区,就好像它认为它是4:2:0色度而不是4:2:2。以下是我的编解码器设置:// AVFormatContext* _avFormatContext previously defined as mpeg2video// <