# Is there any difference between settings for the converter for the camera and sharing frames before sending?

**URL:** <https://devforum.zoom.us/t/is-there-any-difference-between-settings-for-the-converter-for-the-camera-and-sharing-frames-before-sending/79375>\
**Category:** macOS\
**Created:** [November 28, 2022, 11:00am UTC](https://devforum.zoom.us/t/is-there-any-difference-between-settings-for-the-converter-for-the-camera-and-sharing-frames-before-sending/79375 "2022-11-28T11:00:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [November 28, 2022, 11:00am UTC](https://devforum.zoom.us/t/is-there-any-difference-between-settings-for-the-converter-for-the-camera-and-sharing-frames-before-sending/79375/1 "2022-11-28T11:00:20Z")

</div>

**Description**

Hi,  
I am using raw data API for receiving video of remote participants and sending video of the local participant.

🙂 And when I send camera frames of the local participant (using `ZoomSDKRawDataSender` and _a custom converter_) frames look normal, and we can see the expected image in another Zoom client.

🤔 But when I send sharing frames of the local participant (using `ZoomSDKShareSender` and _the same custom converter_) frames look a little corrupted, and we can see the image with anomalies (_pic. 1, pic. 2_).

❓ Is there any difference between settings for the converter for the camera and sharing frames before sending?

**Which macOS Meeting SDK version?**  
zoom-sdk-macos-5.12.2.11472

**Screenshots**

 ![pic 1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/6/7618847f2a9f5cf483b60ea99d580c3e86baf9a7.jpeg)

 ![pic 2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/b/3b2b8f0490d9f89df095e3ca5be11018dde4d097.jpeg)

**Device (please complete the following information):**

- Device: Apple MacBook Pro (14-inch, M1 Pro)
- OS: macOS Ventura 13.0

**Additional context**

_Some additional information about formats and options that I used in converting step:_

`originalBuffer` - initial CVPixelBuffer;  
`permuteMap` - [3, 2, 1, 0];  
`outInfo` - `vImage_ARGBToYpCbCr` object filed by `vImageConvert_ARGBToYpCbCr_GenerateConversion` (code snippet below):

```
var conversionError = vImageConvert_ARGBToYpCbCr_GenerateConversion(
  kvImage_ARGBToYpCbCrMatrix_ITU_R_601_4,
  &pixelRange,
  &outInfo,
  kvImageARGB8888,
  kvImage420Yp8_Cb8_Cr8,
  vImage_Flags(kvImageNoFlags)
)

```

Finally, original `CVPixelBuffer` converts using `vImageConvert_ARGB8888To420Yp8_Cb8_Cr8`(code snippet below):

```
var conversionError = vImageConvert_ARGB8888To420Yp8_Cb8_Cr8(
  &originalBuffer,
  &destYp,
  &destCb,
  &destCr,
  &outInfo,
  permuteMap,
  vImage_Flags(kvImageNoFlags)
)

```

Than `destYp`, `destCb`, `destCr` concat in one `UnsafeMutablePointer<CChar>` to be sent using `ZoomSDKRawDataSender`.

Thank you!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [December 8, 2022, 8:32am UTC](https://devforum.zoom.us/t/is-there-any-difference-between-settings-for-the-converter-for-the-camera-and-sharing-frames-before-sending/79375/2 "2022-12-08T08:32:07Z")

</div>

Hi!  
If you need some additional information for this case, please, let me know  
Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 7, 2023, 6:32pm UTC](https://devforum.zoom.us/t/is-there-any-difference-between-settings-for-the-converter-for-the-camera-and-sharing-frames-before-sending/79375/3 "2023-01-07T18:32:35Z")

</div>

Closed on January 7, 2023, 6:32pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
