I am reading a file that contains over 5000 lines and I want to assign it to a shell variable array (which has a restriction of 1024 rows). I had an idea that if I could grab 1000 record hunks of the file, and pipe the records out, that I could perform a loop until I got to the end and process 1000... (5 Replies)
I have to delete 1st 7000 lines of a file which is 12GB large. As it is so large, i can't open in vi and delete these lines. Also I found one post here which gave solution using perl, but I don't have perl installed. Also some solutions were redirecting the o/p to a different file and renaming it.... (3 Replies)
Dear All,
I am working with windoes OS but remote a linux machine. I wonder the way to copy an paste some part of a huge file in linux machine.
the contain of file like as follow:
...
dump annealling all custom 10 anneal_*.dat id type x y z q
timestep 0.02
run 200000
Memory... (2 Replies)
Hi,
I would like to clarify about the NAWK array to store multiple lines from huge file.
The file is having an unique REF.NO, I wants to store the lines (it may be
100+ lines) till I found the new REF.NO.
How can I apply NAWK - arrays for the above?
Rgds,
sharif. (1 Reply)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
into small files. i need to add a head.txt and tail.txt into small files at the begin and end, and give a name as q1.xml q2.xml q3.xml ....
thank you very much. (2 Replies)
Hi,
I have a huge file with a single line.
But I want to break that line into lines of with each line having five columns.
My file is like this:
code:
"hi","there","how","are","you?","It","was","great","working","with","you.","hope","to","work","you."
I want it like this:
code:... (1 Reply)
I have big files (some are >300GB!) that need substitution for some patterns, for example, change Multiple Spaces into Tab. I used this oneliner:sed '1,18s/ \{1,\}/\t/g' infile_big.sam > outfile_big.sambut it seems very slow as the job is still running after 24 hours! In this example, only the... (8 Replies)
Discussion started by: yifangt
8 Replies
LEARN ABOUT OPENSOLARIS
mlib_videocolorbgr2jfifycc420
mlib_VideoColorBGR2JFIFYCC420(3MLIB) mediaLib Library Functions mlib_VideoColorBGR2JFIFYCC420(3MLIB)NAME
mlib_VideoColorBGR2JFIFYCC420 - BGR to JFIF YCbCr color conversion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_VideoColorBGR2JFIFYCC420(mlib_u8 *y0, mlib_u8 *y1,
mlib_u8 *cb, mlib_u8 *cr, const mlib_u8 *bgr0, const mlib_u8 *bgr1,
mlib_s32 n);
DESCRIPTION
The mlib_VideoColorBGR2JFIFYCC420() function performs color space conversion from BGR to YCbCr together with sampling rate conversion when
used in the JPEG File Interchange Format (JFIF).
PARAMETERS
The function takes the following arguments:
y0 Pointer to upper destination Y component row. y0 must be 8-byte aligned.
y1 Pointer to lower destination Y component row. y1 must be 8-byte aligned.
cb Pointer to destination Cb component row. cb must be 8-byte aligned.
cr Pointer to destination Cr component row. cr must be 8-byte aligned.
bgr0 Pointer to upper source BGR multi-component row. bgr0 must be 8-byte aligned.
bgr1 Pointer to lower source BGR multi-component row. bgr1 must be 8-byte aligned.
n Length of Y component row. n must be even. The length of Cb and Cr component rows must be n/2. The length of the BGR multi-compo-
nent row must be 3*n.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_VideoColorBGR2JFIFYCC422(3MLIB), mlib_VideoColorBGR2JFIFYCC444(3MLIB), mlib_VideoColorBGR2JFIFYCC444_S16(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_VideoColorBGR2JFIFYCC420(3MLIB)