Hello,
I am reading raw 14 bits gray frames and I need to convert it to RGB32.
I'd like to use swscale, as it is easy to use.
I am currently creating my context like this:
SwsContext* pContext = sws_getContext( inputWidth, inputHeight,
PIX_FMT_GRAY16LE,
outputWidth, outputHeight, PIX_FMT_RGB32, SWS_BICUBIC, NULL, NULL,
NULL );
But of course, swscale thinks the image range is 0-65535 (16 bits) instead of
0-16383 (14 bits), and then my images are too dark. So I have to apply a
dynamic correction after that.
Do you know a way to avoid that, and to tell swscale the real range of my
images?
Thanks in advance,
Chris.
#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractère privé. S'ils ne vous sont
pas destinés, nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le
contenu. Si ce message vous a été transmis par erreur, merci d'en informer
l'expéditeur et de supprimer immédiatement de votre système informatique ce
courriel ainsi que tous les documents qui y sont attachés."
******
" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the sender
immediately and delete this e-mail and all attached documents from your
computer system."
#
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user