I found that different Iphone hardware encoders have different matrices for converting input RGB to YUV.That is, in the function OSStatus VTCompressionSessionEncodeFrame(VTCompressionSessionRef session, CVImageBufferRef imageBuffer, CMTime presentationTimeStamp, CMTime duration, CFDictionaryRef frameProperties, void *sourceFrameRefcon, VTEncodeInfoFlags *infoFlagsOut); the imageBuffer format is RGB.Before encoding, VideoToolBox will convert RGB to YUV and send it to the encoder.I want to know what kind of matrix VideoToolBox uses for RGB conversion to YUV, and how to control the selection of the conversion matrix. Among the input parameters of the hardware encoder VideoToolbox, only kVTCompressionPropertyKey_YCbCrMatrix is related to color conversion.But this parameter does not control the input RGB to YUV matrix. Because I tried to enter a different value, it didn't change.This leads to the inability to match the matrix during decoding, which causes chromatic aberration.I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.
Is it possible to control the conversion of RGB to YUV matrix in VideoToolBox?
632 views Asked by 马学睿 At
2
There are 2 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in RGB
- How do I modify this intrinsics code going from YUV420 to RGB24 to output RGBA32
- What is the size difference between Convolutional Neural Networks that take as input an RGB vs. monochrome image?
- Do decimal values affect color channels in CSS?
- Python converting an sRGB value to RGB
- RAW10 to RGB888 conversion
- How many colors in YCbCr JPEG under common conditions 3x8bits?
- Python: grayscale image to RGB image with provided palette
- Kornia outputs only white images
- How do I change my code to fill an excel spreadsheet with colour?
- Converting Front Hand View to Back Hand View or vice versa Using Python
- Patching a PIL image in pytorch tensor and convert back
- Plot camera sensitivity-wavelength distribution based on RGB image
- Trouble changing background of input textbox
- how do I convert a large array of rgb values to a hex array
- Conflicting LAB Results from RGB
Related Questions in COLOR-SPACE
- I want write code to predict CIE XYZ from LED driver R,G,B output value
- none vs 0 - when are they equivalent, and when not, in CSS color functions?
- CIE XY chromaticities into CCT and back
- How many colors in YCbCr JPEG under common conditions 3x8bits?
- Colors washed out in cam preview but vibrant in Google Photo, Gimp, Lightroom mobile
- Why is there a discrepancy in CVImageBufferYCbCrMatrix between full range and video range formats?
- Is there a way to convert between D65/2 to C/2 observer/illuminant?
- Why Does OpenGL Correctly Display Images with P3 Color Profile Without Special Configuration?
- How to Determine Correct Color Space for Bitmaps in Android?
- multiple images in a single frame in opencv
- Calculating the Y value in xy diagram and how to plot color gamuts in 3D
- Normalization for different color spaces for ResNet
- How to find a maximum chroma value in the OKLCH color space for given hue and lightness?
- Change colors while maintining intensity of the original color in Opencv
- How can i tell ImageMagick to not change any color values
Related Questions in VIDEO-TOOLBOX
- Sometimes when video is encoded using the Video Toolbox Encoder for web live streaming, the decoder output always has a 4 frame latency
- How to set reference frame to 1 while using ffmpeg with h264_videotoolbox encoder
- failed to create HWDeviceContext for h264 and Videotoolbox using FFmpeg for iOS
- Checking VP9 hardware video decode support on Apple Silicon
- Does VTDecompressionSession support smoothing frames via presentationTimestamp (to fix stuttering)
- decode H264 B frame without timeStamp
- kVTVideoDecoderBadDataErr when using VTDecompressionSessionDecodeFrame and H264 NAL units
- ffmpeg transparent HVEC video from alpha matte and color video
- Error Code -8969 Decoding, and AVCC Contents
- Copying Image Buffer Output From Video Frame Decompression Callback
- VideoToolbox hardware encoded I frame not clear on Intel Mac
- Memory leak creating a CVPixelBuffer in Swift using VTPixelTransferSessionTransferImage
- How to compress an HDR video
- CVBuffer is nil in call back of h264 decoder
- Problem in decoding h264 raw frame in swift
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)