Trying to import name, though it might fail becuase its a pointer
This commit is contained in:
+4
-2
@@ -216,7 +216,8 @@ transcode_to_ppm(JPEG* input, PPM* out)
|
|||||||
PPM
|
PPM
|
||||||
inherit_from_jpeg(const JPEG* in, const char fmt)
|
inherit_from_jpeg(const JPEG* in, const char fmt)
|
||||||
{
|
{
|
||||||
PPM image = { .width = in->width,
|
PPM image = { .name = in->name,
|
||||||
|
.width = in->width,
|
||||||
.height = in->height,
|
.height = in->height,
|
||||||
.len = in->len,
|
.len = in->len,
|
||||||
.fmt = fmt };
|
.fmt = fmt };
|
||||||
@@ -227,6 +228,7 @@ JPEG
|
|||||||
inherit_from_ppm(const PPM* in)
|
inherit_from_ppm(const PPM* in)
|
||||||
{
|
{
|
||||||
JPEG image = {
|
JPEG image = {
|
||||||
|
.name = in->name,
|
||||||
.width = in->width,
|
.width = in->width,
|
||||||
.height = in->height,
|
.height = in->height,
|
||||||
.len = in->len,
|
.len = in->len,
|
||||||
@@ -236,7 +238,7 @@ inherit_from_ppm(const PPM* in)
|
|||||||
|
|
||||||
/** The Second image gets merged into the first.
|
/** The Second image gets merged into the first.
|
||||||
* The First image obtains attributes from the second image that were not found.
|
* The First image obtains attributes from the second image that were not found.
|
||||||
*/
|
*/
|
||||||
// PPM
|
// PPM
|
||||||
// merge_ppm(const PPM* in_1, const PPM* in_2) {
|
// merge_ppm(const PPM* in_1, const PPM* in_2) {
|
||||||
// if(in)
|
// if(in)
|
||||||
|
|||||||
Reference in New Issue
Block a user