Questions tagged [packed]
78 questions
0
votes
2 answers
Packet (AV_PIX_FMT_UYVY422) to Planar (AV_PIX_FMT_YUVJ422P) format conversion
My image format is "YUV422_8_UYVY" which is packed AV_PIX_FMT_UYVY422 format, i am trying to convert it in Planar "AV_PIX_FMT_YUVJ422P", but not able to succeed yet, below is the code on which i am working.
error message : [swscaler @ 004b3fa0]…

user3743908
- 59
- 8
0
votes
1 answer
odd sized structure with bitfields
I am trying to fit a few bitfields into a 3-byte struct
#pragma pack(push, 1)
typedef struct _DSTEntry {
uint8_t reserved :6;
uint8_t startMonth:4;
uint8_t startDay:5;
uint8_t endMonth:4;
uint8_t endDay:5;
}…

Random Profile
- 21
- 3
0
votes
1 answer
Portable alternative for packed structures with a flexible array member
Suppose we were writing a C++ network application using UDP sockets. We needed to pass a not-so-small pack of data, so we used this kind of structure, making sure the byte order is the network one:
struct [[gnu::packed]] datagram {
uint64_t…

marmistrz
- 5,974
- 10
- 42
- 94
0
votes
0 answers
ASM not working after I packed my EXE
I attached my asm into my source code of dll and hooked it to my exe, and it works like a charm but when I packed my exe using exe packer. the dll with asm not working on exe packed. any idea how to solve this problem?
#include "StdAfx.h"
void…

djsoda
- 25
- 1
- 9
0
votes
2 answers
PACKING data without using the "PACKED" compiler directive in C
Background:
It's a 16 bit TI DSP (TMS320F2812 to be precise). the DSP is little-endian. The compiler is C2000 (which does NOT support PACKED directive). I need to communicate several structures of varied sizes from source to destination through the…

raghu rajappa
- 81
- 1
- 11
0
votes
1 answer
how to create Packed numeric style for current date in oracle
Specify the day, month, and year as three INTEGER values with no separators between them, using these rules:
The day and month components must have two digits. When the day or month is less than 10, it must be preceded by a zero.
For any year, the…
0
votes
0 answers
COBOL Packed field to distributed systems
We are converting a legacy system to a Java Platform. In the interim, we are sending files from legacy to a distributed server running Java. We are encountering an issue with packed fields. The COBOL (EBCDIC) COMP-3 fields have to be manipulated…

Kevin McFadden
- 337
- 1
- 5
- 23
0
votes
1 answer
Android typeface changed after i pack my project
My app display normal on any other phone except my XIAOMI 2A,the typeface changed.
What is confusing that when I run the app directly, the typeface is ok, but after I packed the protected, the typeface changes. How colud this be?

sunrise
- 28
- 4
0
votes
2 answers
Find packed size of a structure
Is there a way to find the packed size of a structure defined and declared without packed attribute in GCC compiler?
Example:
struct Name
{
int a;
char ch;
}
any function or macro like get_packed_size(Name) should return 5

Dinesh
- 1,825
- 5
- 31
- 40
0
votes
1 answer
Packed value in C++ or C
struct FILE_UPC_RECORD
{
char UPC[FILE_UPC_KEY_SIZE];// packed up to 16 digits right justified and zero filled
// possibilities are:
// 1. 12-digit UPC w/2 leading 0's
…

Ravi
- 163
- 1
- 2
- 12
0
votes
1 answer
Packed structure reading from EFS giving strange result
I have created one EFS item, that has the following structure
struct
{
uint8 version; // uint8 - 1 byte data type, uint16 - 2 byte
uint16 y1;
uint16 y2;
uint16 y3;
uint8 reserved[9];
}
Now the EFS file size comes out to be 16…

Sohrab Ahmad
- 145
- 3
- 8
0
votes
1 answer
packed structure size in C, is this correct?
I found it in some exsiting code, it looks some problems, but the code works fine, can you help if this piece of code has any tricking things in.
why ignore two unsigned when calculate the size of the structure?
tmsg_sz =…

Judeyou
- 41
- 1
- 4
0
votes
0 answers
How to remove packed.js and packed.css from richfaces
I have a problem that I cannot seem to solve. I have been handed a large project and asked to reduce the size of certain pages to speed up loading times for mobile users however the project is a lot more complex then I am used to and I am kind of…

Chaney
- 455
- 1
- 7
- 20
0
votes
0 answers
what's the difference between javascript PACKED and PACKER
I found two difference way to pack javascript file, there's packed and packer.
the encode js file after packed looks like this:
eval(function(p,a,c,k,e,d){..});
and
eval(function(p,a,c,k,e,r){...});
what is the difference of two kinds?
I know the…

Andrew Nguyen
- 39
- 4
0
votes
0 answers
GCC packed struct including unpacked struct is packed in 4.4.3
Consider the following code from ttyrpld 2.60 include/rpl_packet.h:
struct rpltime {
uint64_t tv_sec;
uint32_t tv_usec;
};
union rpldev_evmagic {
uint32_t n;
char m[4];
};
struct rpldsk_packet {
union rpldev_evmagic evmagic;
…

Jonathan Ben-Avraham
- 4,615
- 2
- 34
- 37