Article directory Preface 1. Hardware preparation and hardware equipment inquiry 2. Transplantation of jpeg library 2.1 Source code download 2.2 Transplantation of jpeg library 3. Transplantation of mjpeg-stream 4. Test results Summarize Foreword Continuing from the previous issue, we have implemented many functions, but the real-time upload of video streams has not yet been implemented. […]
Tag: jpeg
It takes time to convert gstreamer’s I420 to jpeg format data
1. Convert I430 data into jpg data JPegEncoder.h #pragma once #include <cstdint> #include <vector> #include <functional> #include <gst/gst.h> #include <gst/app/gstappsink.h> #include “Resolution.h” #include “VideoSettings.h” namespace sinftech { namespace tv { class JpegEncoder { public: using Handler = std::function<void(const uint8_t* data, size_t size, const Resolution & amp; resolution)>; JpegEncoder(Handler & amp; & amp; handler); ~JpegEncoder(); void […]
Front-end – Convert non-jpeg format images to jpeg format, compress images
Directory Convert non-jpeg format images to jpeg format Compress Pictures Use (there is a problem with the mini program) Convert non-jpeg format images to jpeg format /common/compressImage/convertImage //The idea is to create a picture, set file equal to this picture, then create a canvas layer, and scale the canvas in equal proportions. //Then use canvas’s […]
Various image processing, cropping tools of hutool. Generate progressive jpeg format pictures and generate thumbnails
Various picture tools: imageConversion2ImgStream method: Crop various image streams to generate a rectangular thumbnail stream form. bufferedConversion2ProgressiveJPEGStream: Get the image stream and target address conversion ProgressiveJPEG stream. imgType: can determine the image type. Required dependencies: <!– hutool tool package –> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.8.18</version> </dependency> <!–webp format pictures–> <dependency> <groupId>org.sejda.imageio</groupId> <artifactId>webp-imageio</artifactId> <version>0.1.6</version> </dependency> ImageWUtil tool […]
libjpeg practice 1: source code compilation and MJPG conversion to BMP testing:
Compile source code Download source code http://www.ijg.org/files/ wget http://www.ijg.org/files/jpegsrc.v9b.tar.gz Unzip: tar zxvf jpegsrc.v9b.tar.gz Start configuring and compiling because it is tested in ubuntu. So the configuration is very simple ./configure –prefix=/home/lkmao/linux/3588-linux/app/tools/jpeg-9b/_install_ubuntu/ Then make and make install When executing make install, a warning appears: Is it to execute this command: Based on the principle of listening […]
“Long jump has already been run” error occurs when Qt loads the libjpeg library
Following the previous article, some errors encountered when upgrading Qt5.15.0 to Qt5.15.9 The article is a bit long. Let me talk about the solution first. Add -qt-libjpeg when compiling the static library. After compiling the libjpeg library, use #pragma comment to link in the project. OK, let’s review the painful experience The problem came when […]
Display of mjpeg-streamer video images realized by linux security monitoring
mjpeg-streamer video image display 1, MJPG Introduction: MJPG is the abbreviation of MJPEG, but MJPEG can also represent the file format extension. MJPEG The full name is “Motion Joint Photographic Experts Group”, which is a video encoding format. Motion JPEG technology is commonly used with closed-circuit television cameras to “translate” the analog video signal into […]
Install libjpeg library in Linux (two applications)
About the installation and use of libjpeg library foreword 1. Applied to ubuntu 1. Download the compressed package (libjpeg source code) 2. Unzip to a certain directory 3. Perform some operations in this directory 4. How to use 2. Applied to embedded Linux development board 1. Download the compressed package (same as above) 2. Unzip […]
Detailed analysis of libjpeg library usage examples
Detailed analysis of libjpeg library usage examples Article directory Detailed analysis of libjpeg library usage examples error manager structure libjpeg library error handling function Is the file a JPG file Take out a row of pixel data and convert it into a format that can be used on the display device #include <config.h> #include <pic_operation.h> […]
FFmpeg converts the video into a frame-by-frame jpeg image (code implementation)
#include <iostream> using namespace std; extern “C” { #include “libavcodec/avcodec.h” #include “libavformat/avformat.h” #include “libswscale/swscale.h” #include “libavutil/imgutils.h” } int savePicture(AVFrame *pFrame, char *out_name) ; int main(int argc, char *argv[]) {//decode video int ret; const char *in_filename, *out_filename; AVFormatContext *fmt_ctx = NULL; const AVCodec *codec; AVCodecContext *codeCtx = NULL; AVStream *stream = NULL; int stream_index; AVPacket avpkt; […]