<div dir="ltr">Sorry, but I've never modified those values myself and I don't know how they work. I think you'll have to read the source code for the JPEG encoder to find out.<div><br></div><div>- Richard</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 18, 2020 at 1:37 PM Виктор Мулин <<a href="mailto:17sep96@gmail.com">17sep96@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the answer.<br>intra_matrix and inter_matrix are of type uint16_t, and tables from jpegtables.c are of type uint8_t. What to do? Make a cast of uint8_t * to uint16_t * or define a new array of type uint16_t by filling it with values from standard tables?<br>Will these tables be added to the output file automatically after I specify array references in the AVCodecContext structure?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 18 мая 2020 г. в 19:54, Richard Hussong <<a href="mailto:rhussong@westpond.com" target="_blank">rhussong@westpond.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 18, 2020 at 7:38 AM Виктор Мулин <<a href="mailto:17sep96@gmail.com" target="_blank">17sep96@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello! When using the mjpeg codec to convert an image from bmp to jpg format, a picture with one quantization table is created. I need two standard tables described in the jpeg iso / iec 10918-1 T.81 standard in Appendix K.1 and K.2 to be added to the output image file. I also found them in the ffmpeg source codes (jpegtables.c -> std_luminance_quant_tbl and jpegtables.c -> std_chrominance_quant_tbl [url: <a href="https://ffmpeg.org/doxygen/trunk/jpegtables_8c_source.html" target="_blank">https://ffmpeg.org/doxygen/trunk/jpegtables_8c_source.html</a>]. I looked through the mailing list archive and found old solutions (<a href="https://ffmpeg.org/pipermail/libav-user/2015-July/008318.html" target="_blank">https://ffmpeg.org/pipermail/libav-user/2015-July/008318.html</a>), but now the av_codec_set_chroma_intra_matrix () function is declared depricated. How do I get what I want? How to set intra_matrix, chroma_intra_matrix and inter_matrix (in the description they are almost the same)?<br></div></blockquote><div><br></div><div>The intra_matrix and inter_matrix can now be set directly in the AVCodecContext structure. See <a href="https://ffmpeg.org/doxygen/trunk/structAVCodecContext.html" target="_blank">https://ffmpeg.org/doxygen/trunk/structAVCodecContext.html</a>, and search for "intra_matrix" and "inter_matrix".</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">P.S .: Sorry, I don't speak English well. I use google translator.<br></div></blockquote><div> </div><div>Don't worry - what you wrote is clear enough. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>