iOS如何序列化要在NSDictionary中发送的CVPixelBufferRef?

iOS如何序列化要在NSDictionary中发送的CVPixelBufferRef?,ios,objective-c,serialization,avfoundation,core-video,Ios,Objective C,Serialization,Avfoundation,Core Video,我有一个客户机-服务器应用程序,客户机将处理后的图像发送到服务器。我想客户端发送这些作为CVPixelBufferRef,这样服务器可以更容易地组合图像。客户端以NSDictionary的形式发送数据 如何在NSDictionary中通过网络发送core foundation/core视频对象? CVPixelBufferRef pxbuffer = NULL; CVReturn status = CVPixelBufferCreate(kCFAllocatorDefault,

我有一个客户机-服务器应用程序,客户机将处理后的图像发送到服务器。我想客户端发送这些作为CVPixelBufferRef,这样服务器可以更容易地组合图像。客户端以NSDictionary的形式发送数据

如何在NSDictionary中通过网络发送core foundation/core视频对象?

    CVPixelBufferRef pxbuffer = NULL;
    CVReturn status = CVPixelBufferCreate(kCFAllocatorDefault,
                                          size.width,
                                          size.height,
                                          kCVPixelFormatType_32ARGB,
                                          (__bridge CFDictionaryRef) options,
                                          &pxbuffer);
//If I try this:
    NSDictionary* dataToSend = @{@"data":pxbuffer};
//Get Compiler Error: Collection element of type 'CVPixelBufferRef' (aka '__CVBuffer *') is not an Objective-C object

你找到怎么做的方法了吗?