decoder

Hierarchical JPEG Encoder/Decoder

旧时模样 提交于 2019-12-05 13:59:00
问题 Does anyone knows of any implementation of the hierarchical JPEG mode (ITU T.81) ? I am not talking about progressive mode (or sequential), I really mean the hierarchical mode. 回答1: After some googling, I finally found out: https://github.com/thorfdbg/libjpeg Which was referenced from: http://calendar.perfplanet.com/2012/progressive-jpegs-a-new-best-practice/ This seems by far the more advanced option. Some other results showed: http://flying_oe.tripod.com/academic/SoC/cs3242/index.html And

Morse Code Converter in C

馋奶兔 提交于 2019-12-04 22:10:07
Yes its homework We were suppose to have char 2D array holding character with size limit of 255 char char string[100][255]; Program neede: change the input morse code by a user to alphabet/English letter (Capital Letters) Sample Input 2 .... . .-.. .-.. --- / .-- --- .-. .-.. -.. .--- --- -.- . Sample OutPut Case#1: HELLO WORLD Case#2: JOKE My only idea is to have the first characters of a word that is inputed by the user.. to be.. checked if its '.' or '-' then scrupulously and manually assigning.. the nested if(string[i][c]=='.') and the last if on each nested would be if(string[i][c]==' ')

Video decoder on Cuda ffmpeg

有些话、适合烂在心里 提交于 2019-12-04 19:52:08
I starting to implement custum video decoder that utilize cuda HW decoder to generate YUV frame for next to encode it. How can I fill "CUVIDPICPARAMS" struc ??? Is it possible? My algorithm are: For get video stream packet I'm use ffmpeg-dev libs avcodec, avformat... My steps: 1) Open input file: avformat_open_input(&ff_formatContext,in_filename,nullptr,nullptr); 2) Get video stream property's: avformat_find_stream_info(ff_formatContext,nullptr); 3) Get video stream: ff_video_stream=ff_formatContext->streams[i]; 4) Get CUDA device and init it: cuDeviceGet(&cu_device,0); CUcontext cu_vid_ctx; 5

Iso8583 message encoding and decoding [closed]

﹥>﹥吖頭↗ 提交于 2019-12-04 13:49:44
My question is based on ISO8583 Transaction message standard. My problem statement is to develop an app which will decode the ISO8583 message which is provided as a input in HEX format. for ex : my input = 0200B2200000001000000000000000800000201234000000010000011072218012345606A5DFGR021ABCDEFGHIJ 1234567890 Using jPOS library i am parsing this hex code and output is as follows : MTI : 0200 Field-3 : 201234 Field-4 : 000000010000 Field-7 : 0110722180 Field-11 : 123456 Field-44 : A5DFGR Field-105 : ABCDEFGHIJ 1234567890 Now this parsed output i want to decode i.e i want to convert it into the

Jpeg restart markers

匆匆过客 提交于 2019-12-04 10:40:31
问题 I made jpeg decoder, but I didn't implement restart markers logic. That is reason why my program don't work on some images (for example images saved with Photoshop: File->Save As->jpeg). I want to implement restart marker logic, but there is no detailed online explanation how restart marker logic works. Please can anyone tell me more about restart markers, or suggest me online resource where I can read more about it. Thx! 回答1: Restart markers are quite simple. They were designed to allow

Is there any free or commercal jpeg decode which is really fast [closed]

别来无恙 提交于 2019-12-04 09:09:05
I am using c++, libjpeg for decoding jpeg file. I find it is not fast enough, is there any method to make it faster by setting some compile parameter? or are there any other lib can open jpeg files more faster? now it takes about 750ms to open a 4368 * 2912 4m jpeg image. I wish this can be reduced to 150ms. Many thanks! Added: IJL seems faster than libjpeg:) The fastest way is not to decode it at all. Usually you can use a low-res preview first; that requires only the low frequencies. For a 546 x 289 pixel preview, you in fact only need the (0,0) (DC) component. There's the Intel Performance

Fastest way to draw a MediaCodec-decoded video frame to screen?

回眸只為那壹抹淺笑 提交于 2019-12-03 14:44:15
I'm looking for the fastest way to take an image frame received from the MediaCodec decoder and draw it to the Android device screen. The important constraints and explanations are: Cannot use MediaPlayer. No intermediate app allowed. Must draw output frames from the MediaCodec decoder to the screen as quickly as possible (minimize latency). The available decoder output formats are as follows: ColorFormat[0] 0x00000013 COLOR_FormatYUV420Planar ColorFormat[1] 0x00000015 COLOR_FormatYUV420SemiPlanar ColorFormat[2] 0x7F000001 OMX_SEC_COLOR_FormatNV12TPhysicalAddress ColorFormat[3] 0x7FC00002 OMX

Jpeg restart markers

有些话、适合烂在心里 提交于 2019-12-03 08:06:22
I made jpeg decoder, but I didn't implement restart markers logic. That is reason why my program don't work on some images (for example images saved with Photoshop: File->Save As->jpeg). I want to implement restart marker logic, but there is no detailed online explanation how restart marker logic works. Please can anyone tell me more about restart markers, or suggest me online resource where I can read more about it. Thx! Restart markers are quite simple. They were designed to allow resynchronization after an error. Since most JPEG images are transmitted over error-free channels, they're

Implementing a custom Decoder in Swift 4

99封情书 提交于 2019-12-03 03:06:23
问题 I'd like to decode an XML document using the new Decodable protocol introduced in Swift 4, however, there doesn't seem to be an existing implementation for an XML decoder that conforms to the Decoder protocol. My plan was to use the SWXMLHash library to parse the XML, then possibly make the XMLIndexer class in that library extend the Decoder protocol so that my model can be initialized with an instance of XMLIndexer ( XMLIndexer is returned by SWXMLHash.parse(xmlString) ). My issue is that I

Implementing a custom Decoder in Swift 4

佐手、 提交于 2019-12-02 17:40:51
I'd like to decode an XML document using the new Decodable protocol introduced in Swift 4, however, there doesn't seem to be an existing implementation for an XML decoder that conforms to the Decoder protocol. My plan was to use the SWXMLHash library to parse the XML, then possibly make the XMLIndexer class in that library extend the Decoder protocol so that my model can be initialized with an instance of XMLIndexer ( XMLIndexer is returned by SWXMLHash.parse(xmlString) ). My issue is that I have no clue how to implement the Decoder protocol and I can't seem to find any resources online that