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 SUNOS
mlib_videocolorjfifycc2rgb420
mlib_VideoColorJFIFYCC2RGB420(3MLIB) mediaLib Library Functions mlib_VideoColorJFIFYCC2RGB420(3MLIB)NAME
mlib_VideoColorJFIFYCC2RGB420 - JFIF YCbCr to RGB color conversion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_VideoColorJFIFYCC2RGB420(mlib_u8 *rgb0, mlib_u8 *rgb1, const mlib_u8 *y0, const mlib_u8 *y1, const mlib_u8 *cb0, const
mlib_u8 *cr0, const mlib_u8 *cb1, const mlib_u8 *cr1, const mlib_u8 *cb2, const mlib_u8 *cr2, mlib_s32 n);
DESCRIPTION
The mlib_VideoColorJFIFYCC2RGB420() function performs color space conversion from YCbCr to RGB together with sampling rate conversion when
used in the JPEG File Interchange Format (JFIF).
PARAMETERS
The function takes the following arguments:
rgb0 Pointer to upper destination RGB multi-component row. rgb0 must be 8-byte aligned.
rgb1 Pointer to lower destination RGB multi-component row. rgb1 must be 8-byte aligned.
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.
cb0 Pointer to source upper Cb component row. cb0 must be 8-byte aligned.
cr0 Pointer to source upper Cr component row. cr0 must be 8-byte aligned.
cb1 Pointer to source middle Cb component row. cb1 must be 8-byte aligned.
cr1 Pointer to source middle Cr component row. cr1 must be 8-byte aligned.
cb2 Pointer to source lower Cb component row. cb2 must be 8-byte aligned.
cr2 Pointer to source lower Cr component row. cr2 must be 8-byte aligned.
n Length of Y component row. The length of Cb and Cr component rows must be n. The length of the RGB multi-component 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 |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_VideoColorJFIFYCC2RGB420_Nearest(3MLIB), mlib_VideoColorJFIFYCC2RGB422(3MLIB), mlib_VideoColorJFIFYCC2RGB422_Nearest(3MLIB),
attributes(5)SunOS 5.10 9 Nov 2004 mlib_VideoColorJFIFYCC2RGB420(3MLIB)