java - rotate Frame in JavaCV -


i write simple app android whick use ffmpeg + javacv. can capture image camera , can recorde video. want rotate frame when record video, don't can :-(

please see image

stop , save code:

public void stoprecording() {          runaudiothread = false;         try {             audiothread.join();         } catch (interruptedexception e) {             e.printstacktrace();         }         audiorecordrunnable = null;         audiothread = null;           if (recorder != null && recording) {             if (record_length > 0) {                 log.v(log_tag,"writing frames");                 try {                     int firstindex = imagesindex % samples.length;                     int lastindex = (imagesindex - 1) % images.length;                     if (imagesindex <= images.length) {                         firstindex = 0;                         lastindex = imagesindex - 1;                     }                     if ((starttime = timestamps[lastindex] - record_length * 1000000l) < 0) {                         starttime = 0;                     }                     if (lastindex < firstindex) {                         lastindex += images.length;                     }                     (int = firstindex; <= lastindex; i++) {                         long t = timestamps[i % timestamps.length] - starttime;                         if (t >= 0) {                             if (t > recorder.gettimestamp()) {                                 recorder.settimestamp(t);                             }                             recorder.record(images[i % images.length]);                         }                     }                      firstindex = samplesindex % samples.length;                     lastindex = (samplesindex - 1) % samples.length;                     if (samplesindex <= samples.length) {                         firstindex = 0;                         lastindex = samplesindex - 1;                     }                     if (lastindex < firstindex) {                         lastindex += samples.length;                     }                     (int = firstindex; <= lastindex; i++) {                         recorder.recordsamples(samples[i % samples.length]);                     }                 } catch (ffmpegframerecorder.exception e) {                     log.v(log_tag,e.getmessage());                     e.printstacktrace();                 }             }              recording = false;             log.v(log_tag,"finishing recording, calling stop , release on recorder");             try {                 recorder.stop();                 recorder.release();             } catch (ffmpegframerecorder.exception e) {                 e.printstacktrace();             }             recorder = null;          }     } 

in step recorder.record(images[i % images.length]); need rotate frame (images parameter)

how can me ? thank you.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -