Unhandled exception. System.ArgumentException: An item with the same key has already been added. Key: av_image_copy2
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at Sdcb.FFmpeg.AutoGen.Generator.WriteInlineFunctions(String outputFile) in F:\Sdcb.FFmpeg\src\Sdcb.FFmpeg.AutoGen\Generator.cs:line 150
at Sdcb.FFmpeg.AutoGen.Program.Main(String[] args) in F:\Sdcb.FFmpeg\src\Sdcb.FFmpeg.AutoGen\Program.cs:line 98
@param dst_data destination image data buffer to copy to
@param dst_linesizes linesizes for the image in dst_data
@param src_data source image data buffer to copy from
@param src_linesizes linesizes for the image in src_data
@param pix_fmt the AVPixelFormat of the image
@param width width of the image in pixels
@param height height of the image in pixels
/
void av_image_copy(uint8_t const dst_data[4], const int dst_linesizes[4],
const uint8_t * const src_data[4], const int src_linesizes[4],
enum AVPixelFormat pix_fmt, int width, int height);
/**
Wrapper around av_image_copy() to workaround the limitation
that the conversion from uint8_t const to const uint8_t const
is not performed automatically in C.
@see av_image_copy()
/
static inline
void av_image_copy2(uint8_t const dst_data[4], const int dst_linesizes[4],
uint8_t const src_data[4], const int src_linesizes[4],
enum AVPixelFormat pix_fmt, int width, int height)
{
av_image_copy(dst_data, dst_linesizes,
(const uint8_t const *)src_data, src_linesizes,
pix_fmt, width, height);
}
libavutil/imgutils.h
av_image_copy2 这个 会有多个
Unhandled exception. System.ArgumentException: An item with the same key has already been added. Key: av_image_copy2 at System.Collections.Generic.Dictionary
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value) at Sdcb.FFmpeg.AutoGen.Generator.WriteInlineFunctions(String outputFile) in F:\Sdcb.FFmpeg\src\Sdcb.FFmpeg.AutoGen\Generator.cs:line 150 at Sdcb.FFmpeg.AutoGen.Program.Main(String[] args) in F:\Sdcb.FFmpeg\src\Sdcb.FFmpeg.AutoGen\Program.cs:line 98